Tritac_ChannelEngine - Version 4.6.0

Version Notes

* Add diagnostic information

Download this release

Release Info

Developer Christiaan de Ridder
Extension Tritac_ChannelEngine
Version 4.6.0
Comparing to
See all releases


Code changes from version 4.4.1 to 4.6.0

Files changed (200) hide show
  1. app/code/community/Tritac/ChannelEngine/Block/Adminhtml/System/Config/Feed.php +0 -55
  2. app/code/community/Tritac/ChannelEngine/Block/Adminhtml/System/Config/Form/Button.php +81 -0
  3. app/code/community/Tritac/ChannelEngine/Block/Adminhtml/System/Config/Form/Feed.php +41 -0
  4. app/code/community/Tritac/ChannelEngine/Block/Adminhtml/System/Config/Form/Link.php +49 -0
  5. app/code/community/Tritac/ChannelEngine/Block/Adminhtml/System/Config/Form/Version.php +47 -0
  6. app/code/community/Tritac/ChannelEngine/Block/Head.php +2 -0
  7. app/code/community/Tritac/ChannelEngine/Helper/Data.php +6 -1
  8. app/code/community/Tritac/ChannelEngine/Model/Observer.php +132 -57
  9. app/code/community/Tritac/ChannelEngine/controllers/Adminhtml/GenerateController.php +49 -10
  10. app/code/community/Tritac/ChannelEngine/etc/config.xml +1 -1
  11. app/code/community/Tritac/ChannelEngine/etc/system.xml +96 -31
  12. app/design/adminhtml/default/default/template/channelengine/system/config/{feed/generate_button.phtml → form/ajax_button.phtml} +9 -12
  13. lib/ChannelEngine/.gitignore +0 -2
  14. lib/ChannelEngine/composer.json +5 -0
  15. lib/ChannelEngine/composer.lock +71 -0
  16. lib/ChannelEngine/vendor/autoload.php +7 -0
  17. lib/ChannelEngine/vendor/channelengine/api-client/.gitignore +4 -0
  18. lib/ChannelEngine/vendor/channelengine/api-client/.php_cs +18 -0
  19. lib/ChannelEngine/vendor/channelengine/api-client/.travis.yml +10 -0
  20. lib/ChannelEngine/vendor/channelengine/api-client/README.md +176 -0
  21. lib/ChannelEngine/vendor/channelengine/api-client/api-client.sublime-project +9 -0
  22. lib/ChannelEngine/vendor/channelengine/api-client/autoload.php +54 -0
  23. lib/ChannelEngine/vendor/channelengine/api-client/composer.json +37 -0
  24. lib/ChannelEngine/vendor/channelengine/api-client/docs/Api/BackOrderApi.md +161 -0
  25. lib/ChannelEngine/vendor/channelengine/api-client/docs/Api/CancellationApi.md +110 -0
  26. lib/ChannelEngine/vendor/channelengine/api-client/docs/Api/ClientApi.md +59 -0
  27. lib/ChannelEngine/vendor/channelengine/api-client/docs/Api/OrderApi.md +263 -0
  28. lib/ChannelEngine/vendor/channelengine/api-client/docs/Api/ProductApi.md +361 -0
  29. lib/ChannelEngine/vendor/channelengine/api-client/docs/Api/ReturnApi.md +212 -0
  30. lib/ChannelEngine/vendor/channelengine/api-client/docs/Api/ShipmentApi.md +163 -0
  31. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ApiResponse.md +13 -0
  32. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/BackOrder.md +13 -0
  33. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/BackOrderLine.md +11 -0
  34. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ChannelCancellationLineResponse.md +11 -0
  35. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ChannelCancellationResponse.md +12 -0
  36. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ChannelOfferResponse.md +12 -0
  37. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ChannelOrderLineRequest.md +15 -0
  38. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ChannelOrderRequest.md +23 -0
  39. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ChannelProcessedChangesRequest.md +12 -0
  40. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ChannelProductChangesResponse.md +12 -0
  41. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ChannelProductResponse.md +30 -0
  42. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ChannelReferencesRequest.md +11 -0
  43. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ChannelReturnLineRequest.md +11 -0
  44. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ChannelReturnLineResponse.md +11 -0
  45. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ChannelReturnRequest.md +17 -0
  46. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ChannelReturnResponse.md +17 -0
  47. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ChannelShipmentLineResponse.md +11 -0
  48. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ChannelShipmentResponse.md +14 -0
  49. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/CollectionOfBackOrder.md +15 -0
  50. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/CollectionOfChannelCancellationResponse.md +15 -0
  51. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/CollectionOfChannelOfferResponse.md +15 -0
  52. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/CollectionOfChannelReturnResponse.md +15 -0
  53. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/CollectionOfChannelShipmentResponse.md +15 -0
  54. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/CollectionOfMerchantOrderResponse.md +15 -0
  55. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/CollectionOfMerchantReturnResponse.md +15 -0
  56. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/EntitiesAddressModels.md +21 -0
  57. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ExtraDataItem.md +13 -0
  58. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/MerchantCancellationLineRequest.md +11 -0
  59. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/MerchantCancellationRequest.md +13 -0
  60. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/MerchantOrderLineResponse.md +16 -0
  61. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/MerchantOrderResponse.md +26 -0
  62. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/MerchantProductRequest.md +29 -0
  63. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/MerchantProductResponse.md +29 -0
  64. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/MerchantReturnLineRequest.md +11 -0
  65. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/MerchantReturnLineResponse.md +11 -0
  66. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/MerchantReturnRequest.md +17 -0
  67. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/MerchantReturnResponse.md +16 -0
  68. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/MerchantShipmentLineRequest.md +11 -0
  69. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/MerchantShipmentRequest.md +15 -0
  70. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/MerchantShipmentTrackingRequest.md +12 -0
  71. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/OrderAcknowledgement.md +11 -0
  72. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ProductCreationResult.md +12 -0
  73. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ProductMessage.md +13 -0
  74. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/SingleOfBackOrder.md +14 -0
  75. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/SingleOfChannelProductChangesResponse.md +14 -0
  76. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/SingleOfMerchantProductResponse.md +14 -0
  77. lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/SingleOfProductCreationResult.md +14 -0
  78. lib/ChannelEngine/vendor/channelengine/api-client/git_push.sh +52 -0
  79. lib/ChannelEngine/vendor/channelengine/api-client/lib/Api/BackOrderApi.php +352 -0
  80. lib/ChannelEngine/vendor/channelengine/api-client/lib/Api/CancellationApi.php +262 -0
  81. lib/ChannelEngine/vendor/channelengine/api-client/lib/Api/ClientApi.php +179 -0
  82. lib/ChannelEngine/vendor/channelengine/api-client/lib/Api/OrderApi.php +531 -0
  83. lib/ChannelEngine/vendor/channelengine/api-client/lib/Api/ProductApi.php +688 -0
  84. lib/ChannelEngine/vendor/channelengine/api-client/lib/Api/ReturnApi.php +435 -0
  85. lib/ChannelEngine/vendor/channelengine/api-client/lib/Api/ShipmentApi.php +363 -0
  86. lib/ChannelEngine/vendor/channelengine/api-client/lib/ApiClient.php +367 -0
  87. lib/ChannelEngine/vendor/channelengine/api-client/lib/ApiException.php +121 -0
  88. lib/ChannelEngine/vendor/channelengine/api-client/lib/Configuration.php +703 -0
  89. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ApiResponse.php +307 -0
  90. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/BackOrder.php +388 -0
  91. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/BackOrderLine.php +288 -0
  92. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ChannelCancellationLineResponse.php +267 -0
  93. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ChannelCancellationResponse.php +293 -0
  94. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ChannelOfferResponse.php +281 -0
  95. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ChannelOrderLineRequest.php +435 -0
  96. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ChannelOrderRequest.php +768 -0
  97. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ChannelProcessedChangesRequest.php +281 -0
  98. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ChannelProductChangesResponse.php +281 -0
  99. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ChannelProductResponse.php +778 -0
  100. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ChannelReferencesRequest.php +255 -0
  101. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ChannelReturnLineRequest.php +267 -0
  102. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ChannelReturnLineResponse.php +267 -0
  103. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ChannelReturnRequest.php +508 -0
  104. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ChannelReturnResponse.php +508 -0
  105. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ChannelShipmentLineResponse.php +267 -0
  106. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ChannelShipmentResponse.php +408 -0
  107. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/CollectionOfBackOrder.php +359 -0
  108. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/CollectionOfChannelCancellationResponse.php +359 -0
  109. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/CollectionOfChannelOfferResponse.php +359 -0
  110. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/CollectionOfChannelReturnResponse.php +359 -0
  111. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/CollectionOfChannelShipmentResponse.php +359 -0
  112. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/CollectionOfMerchantOrderResponse.php +359 -0
  113. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/CollectionOfMerchantReturnResponse.php +359 -0
  114. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/EntitiesAddressModels.php +649 -0
  115. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ExtraDataItem.php +338 -0
  116. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/MerchantCancellationLineRequest.php +267 -0
  117. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/MerchantCancellationRequest.php +325 -0
  118. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/MerchantOrderLineResponse.php +461 -0
  119. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/MerchantOrderResponse.php +844 -0
  120. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/MerchantProductRequest.php +752 -0
  121. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/MerchantProductResponse.php +752 -0
  122. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/MerchantReturnLineRequest.php +267 -0
  123. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/MerchantReturnLineResponse.php +261 -0
  124. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/MerchantReturnRequest.php +508 -0
  125. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/MerchantReturnResponse.php +464 -0
  126. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/MerchantShipmentLineRequest.php +267 -0
  127. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/MerchantShipmentRequest.php +440 -0
  128. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/MerchantShipmentTrackingRequest.php +356 -0
  129. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/OrderAcknowledgement.php +288 -0
  130. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ProductCreationResult.php +281 -0
  131. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ProductMessage.php +307 -0
  132. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/SingleOfBackOrder.php +333 -0
  133. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/SingleOfChannelProductChangesResponse.php +333 -0
  134. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/SingleOfMerchantProductResponse.php +333 -0
  135. lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/SingleOfProductCreationResult.php +333 -0
  136. lib/ChannelEngine/vendor/channelengine/api-client/lib/ObjectSerializer.php +297 -0
  137. lib/ChannelEngine/vendor/channelengine/api-client/phpunit.xml.dist +21 -0
  138. lib/ChannelEngine/vendor/channelengine/api-client/test/Api/BackOrderApiTest.php +112 -0
  139. lib/ChannelEngine/vendor/channelengine/api-client/test/Api/CancellationApiTest.php +101 -0
  140. lib/ChannelEngine/vendor/channelengine/api-client/test/Api/ClientApiTest.php +90 -0
  141. lib/ChannelEngine/vendor/channelengine/api-client/test/Api/OrderApiTest.php +134 -0
  142. lib/ChannelEngine/vendor/channelengine/api-client/test/Api/ProductApiTest.php +156 -0
  143. lib/ChannelEngine/vendor/channelengine/api-client/test/Api/ReturnApiTest.php +123 -0
  144. lib/ChannelEngine/vendor/channelengine/api-client/test/Api/ShipmentApiTest.php +112 -0
  145. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ApiResponseTest.php +117 -0
  146. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/BackOrderLineTest.php +101 -0
  147. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/BackOrderTest.php +117 -0
  148. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ChannelCancellationLineResponseTest.php +101 -0
  149. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ChannelCancellationResponseTest.php +109 -0
  150. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ChannelOfferResponseTest.php +109 -0
  151. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ChannelOrderLineRequestTest.php +133 -0
  152. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ChannelOrderRequestTest.php +197 -0
  153. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ChannelProcessedChangesRequestTest.php +109 -0
  154. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ChannelProductChangesResponseTest.php +109 -0
  155. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ChannelProductResponseTest.php +253 -0
  156. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ChannelReferencesRequestTest.php +101 -0
  157. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ChannelReturnLineRequestTest.php +101 -0
  158. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ChannelReturnLineResponseTest.php +101 -0
  159. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ChannelReturnRequestTest.php +149 -0
  160. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ChannelReturnResponseTest.php +149 -0
  161. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ChannelShipmentLineResponseTest.php +101 -0
  162. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ChannelShipmentResponseTest.php +125 -0
  163. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/CollectionOfBackOrderTest.php +133 -0
  164. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/CollectionOfChannelCancellationResponseTest.php +133 -0
  165. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/CollectionOfChannelOfferResponseTest.php +133 -0
  166. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/CollectionOfChannelReturnResponseTest.php +133 -0
  167. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/CollectionOfChannelShipmentResponseTest.php +133 -0
  168. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/CollectionOfMerchantOrderResponseTest.php +133 -0
  169. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/CollectionOfMerchantReturnResponseTest.php +133 -0
  170. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/EntitiesAddressModelsTest.php +181 -0
  171. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ExtraDataItemTest.php +117 -0
  172. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/MerchantCancellationLineRequestTest.php +101 -0
  173. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/MerchantCancellationRequestTest.php +117 -0
  174. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/MerchantOrderLineResponseTest.php +141 -0
  175. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/MerchantOrderResponseTest.php +221 -0
  176. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/MerchantProductRequestTest.php +245 -0
  177. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/MerchantProductResponseTest.php +245 -0
  178. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/MerchantReturnLineRequestTest.php +101 -0
  179. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/MerchantReturnLineResponseTest.php +101 -0
  180. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/MerchantReturnRequestTest.php +149 -0
  181. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/MerchantReturnResponseTest.php +141 -0
  182. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/MerchantShipmentLineRequestTest.php +101 -0
  183. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/MerchantShipmentRequestTest.php +133 -0
  184. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/MerchantShipmentTrackingRequestTest.php +109 -0
  185. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/OrderAcknowledgementTest.php +101 -0
  186. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ProductCreationResultTest.php +109 -0
  187. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ProductMessageTest.php +117 -0
  188. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/SingleOfBackOrderTest.php +125 -0
  189. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/SingleOfChannelProductChangesResponseTest.php +125 -0
  190. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/SingleOfMerchantProductResponseTest.php +125 -0
  191. lib/ChannelEngine/vendor/channelengine/api-client/test/Model/SingleOfProductCreationResultTest.php +125 -0
  192. lib/ChannelEngine/vendor/composer/ClassLoader.php +445 -0
  193. lib/ChannelEngine/vendor/composer/LICENSE +21 -0
  194. lib/ChannelEngine/vendor/composer/autoload_classmap.php +9 -0
  195. lib/ChannelEngine/vendor/composer/autoload_namespaces.php +9 -0
  196. lib/ChannelEngine/vendor/composer/autoload_psr4.php +10 -0
  197. lib/ChannelEngine/vendor/composer/autoload_real.php +52 -0
  198. lib/ChannelEngine/vendor/composer/autoload_static.php +31 -0
  199. lib/ChannelEngine/vendor/composer/installed.json +55 -0
  200. package.xml +5 -5
app/code/community/Tritac/ChannelEngine/Block/Adminhtml/System/Config/Feed.php DELETED
@@ -1,55 +0,0 @@
1
- <?php
2
- /**
3
- * Adminhtml system "generate feed" button
4
- *
5
- * @category Tritac
6
- * @package Tritac_ChannelEngine
7
- */
8
- class Tritac_ChannelEngine_Block_Adminhtml_System_Config_Feed extends Mage_Adminhtml_Block_System_Config_Form_Field
9
- {
10
- /*
11
- * Set template
12
- */
13
- protected function _construct()
14
- {
15
- parent::_construct();
16
- $this->setTemplate('channelengine/system/config/feed/generate_button.phtml');
17
- }
18
-
19
- /**
20
- * Return element html
21
- *
22
- * @param Varien_Data_Form_Element_Abstract $element
23
- * @return string
24
- */
25
- protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
26
- {
27
- return $this->_toHtml();
28
- }
29
-
30
- /**
31
- * Return ajax url for button
32
- *
33
- * @return string
34
- */
35
- public function getAjaxUrl()
36
- {
37
- return Mage::helper('adminhtml')->getUrl('channelengine/adminhtml_generate/ajax');
38
- }
39
-
40
- /**
41
- * Generate button html
42
- *
43
- * @return string
44
- */
45
- public function getButtonHtml()
46
- {
47
- $button = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array(
48
- 'id' => 'channelengine_generate_feed_button',
49
- 'label' => $this->helper('channelengine')->__('Generate Feed'),
50
- 'onclick' => 'javascript:generateFeed(); return false;'
51
- ));
52
-
53
- return $button->toHtml();
54
- }
55
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Tritac/ChannelEngine/Block/Adminhtml/System/Config/Form/Button.php ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Adminhtml system "generate feed" button
4
+ *
5
+ * @category Tritac
6
+ * @package Tritac_ChannelEngine
7
+ */
8
+ class Tritac_ChannelEngine_Block_Adminhtml_System_Config_Form_Button extends Mage_Adminhtml_Block_System_Config_Form_Field
9
+ {
10
+ /*
11
+ * Set template
12
+ */
13
+ private $data;
14
+ private $id;
15
+
16
+ protected function _construct()
17
+ {
18
+ parent::_construct();
19
+ $this->setTemplate('channelengine/system/config/form/ajax_button.phtml');
20
+ }
21
+
22
+ /**
23
+ * Return element html
24
+ *
25
+ * @param Varien_Data_Form_Element_Abstract $element
26
+ * @return string
27
+ */
28
+ protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
29
+ {
30
+ $this->data = $element->getOriginalData();
31
+ $this->id = '_id_' . rand();
32
+ return $this->_toHtml();
33
+ }
34
+
35
+ /**
36
+ * Return ajax url for button
37
+ *
38
+ * @return string
39
+ */
40
+ public function getAjaxUrl()
41
+ {
42
+ $action = $this->data['ajax_action'];
43
+ return Mage::helper('adminhtml')->getUrl('channelengine/adminhtml_generate/' . $action);
44
+ }
45
+
46
+ public function getId()
47
+ {
48
+ return $this->id;
49
+ }
50
+
51
+ /**
52
+ * Generate button html
53
+ *
54
+ * @return string
55
+ */
56
+ public function getButtonHtml()
57
+ {
58
+ $label = $this->data['button_label'];
59
+
60
+ $button = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array(
61
+ 'id' => $this->id,
62
+ 'label' => $label, //$this->helper('channelengine')->__('Generate Feed'),
63
+ 'onclick' => 'javascript:makeRequest'.$this->id .'(); return false;'
64
+ ));
65
+
66
+ return $button->toHtml();
67
+ }
68
+
69
+ /**
70
+ * Render element
71
+ *
72
+ * @param Varien_Data_Form_Element_Abstract $element
73
+ * @return string
74
+ */
75
+ public function render(Varien_Data_Form_Element_Abstract $element)
76
+ {
77
+ // Hide checkbox
78
+ $element->unsCanUseWebsiteValue()->unsCanUseDefaultValue()->unsScope();
79
+ return parent::render($element);
80
+ }
81
+ }
app/code/community/Tritac/ChannelEngine/Block/Adminhtml/System/Config/Form/Feed.php ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Adminhtml system "generate feed" button
4
+ *
5
+ * @category Tritac
6
+ * @package Tritac_ChannelEngine
7
+ */
8
+ class Tritac_ChannelEngine_Block_Adminhtml_System_Config_Form_Feed extends Mage_Adminhtml_Block_System_Config_Form_Field
9
+ {
10
+ /*
11
+ * Set template
12
+ */
13
+ private $helper;
14
+
15
+ protected function _construct()
16
+ {
17
+ parent::_construct();
18
+ $this->helper = Mage::helper('channelengine');
19
+ }
20
+
21
+ /**
22
+ * Return element html
23
+ *
24
+ * @param Varien_Data_Form_Element_Abstract $element
25
+ * @return string
26
+ */
27
+ protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
28
+ {
29
+ $value = "Please set your account name";
30
+ $disabled = "disabled";
31
+ $storeId= Mage::getSingleton('adminhtml/config_data')->getScopeId();
32
+ $config = $this->helper->getConfig($storeId);
33
+ $hasValue = $config && !empty($config['general']['tenant']);
34
+ if($hasValue) {
35
+ $baseUrl = Mage::app()->getStore($storeId)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);
36
+ $value = $baseUrl . "channelengine/" . $config['general']['tenant'] . "_products.xml";
37
+ $disabled = "";
38
+ }
39
+ return '<input type="text" class="input-text" value="'.$value.'" '.$disabled.'/>';
40
+ }
41
+ }
app/code/community/Tritac/ChannelEngine/Block/Adminhtml/System/Config/Form/Link.php ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Adminhtml system href
4
+ *
5
+ * @category Tritac
6
+ * @package Tritac_ChannelEngine
7
+ */
8
+ class Tritac_ChannelEngine_Block_Adminhtml_System_Config_Form_Link extends Mage_Adminhtml_Block_System_Config_Form_Field
9
+ {
10
+ /*
11
+ * Set template
12
+ */
13
+ private $helper;
14
+ private $data;
15
+
16
+ protected function _construct()
17
+ {
18
+ parent::_construct();
19
+ $this->helper = Mage::helper('channelengine');
20
+ }
21
+
22
+ /**
23
+ * Return element html
24
+ *
25
+ * @param Varien_Data_Form_Element_Abstract $element
26
+ * @return string
27
+ */
28
+ protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
29
+ {
30
+ $data = $element->getOriginalData();
31
+ $action = $data['link_action'];
32
+ $label = $data['link_label'];
33
+ $url = Mage::helper('adminhtml')->getUrl('channelengine/adminhtml_generate/' . $action);
34
+ return '<a type="text" href="'.$url.'" target="_blank">'.$label.'</a>';
35
+ }
36
+
37
+ /**
38
+ * Render element
39
+ *
40
+ * @param Varien_Data_Form_Element_Abstract $element
41
+ * @return string
42
+ */
43
+ public function render(Varien_Data_Form_Element_Abstract $element)
44
+ {
45
+ // Hide checkbox
46
+ $element->unsCanUseWebsiteValue()->unsCanUseDefaultValue()->unsScope();
47
+ return parent::render($element);
48
+ }
49
+ }
app/code/community/Tritac/ChannelEngine/Block/Adminhtml/System/Config/Form/Version.php ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Adminhtml system href
4
+ *
5
+ * @category Tritac
6
+ * @package Tritac_ChannelEngine
7
+ */
8
+ class Tritac_ChannelEngine_Block_Adminhtml_System_Config_Form_Version extends Mage_Adminhtml_Block_System_Config_Form_Field
9
+ {
10
+ /*
11
+ * Set template
12
+ */
13
+ private $helper;
14
+ private $data;
15
+
16
+ protected function _construct()
17
+ {
18
+ parent::_construct();
19
+ $this->helper = Mage::helper('channelengine');
20
+ }
21
+
22
+ /**
23
+ * Return element html
24
+ *
25
+ * @param Varien_Data_Form_Element_Abstract $element
26
+ * @return string
27
+ */
28
+ protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
29
+ {
30
+ // Hide checkbox
31
+ $element->unsCanUseWebsiteValue();
32
+ return $this->helper->getExtensionVersion();
33
+ }
34
+
35
+ /**
36
+ * Render element
37
+ *
38
+ * @param Varien_Data_Form_Element_Abstract $element
39
+ * @return string
40
+ */
41
+ public function render(Varien_Data_Form_Element_Abstract $element)
42
+ {
43
+ // Hide checkbox
44
+ $element->unsCanUseWebsiteValue()->unsCanUseDefaultValue()->unsScope();
45
+ return parent::render($element);
46
+ }
47
+ }
app/code/community/Tritac/ChannelEngine/Block/Head.php CHANGED
@@ -6,6 +6,8 @@ class Tritac_ChannelEngine_Block_Head extends Mage_Core_Block_Template
6
  $storeId = Mage::app()->getStore()->getId();
7
  $config = Mage::helper('channelengine')->getGeneralConfig();
8
 
 
 
9
  return $config[$storeId]['tenant'];
10
  }
11
  }
6
  $storeId = Mage::app()->getStore()->getId();
7
  $config = Mage::helper('channelengine')->getGeneralConfig();
8
 
9
+ if(!isset($config[$storeId]) || empty($config[$storeId]['tenant'])) return false;
10
+
11
  return $config[$storeId]['tenant'];
12
  }
13
  }
app/code/community/Tritac/ChannelEngine/Helper/Data.php CHANGED
@@ -115,11 +115,16 @@ class Tritac_ChannelEngine_Helper_Data extends Mage_Core_Helper_Abstract {
115
  {
116
  $config = $this->getConfig($storeId);
117
 
118
- $weekdays = (int) $config['shipping']['expected_date'];
119
  if($weekdays <= 0)
120
  $weekdays = $this->_defaultTimeToShip;
121
 
122
  $expectedDate = date("Y-m-d", strtotime("{$weekdays} weekdays"));
123
  return new DateTime($expectedDate);
124
  }
 
 
 
 
 
125
  }
115
  {
116
  $config = $this->getConfig($storeId);
117
 
118
+ $weekdays = (int) $config['optional']['expected_date'];
119
  if($weekdays <= 0)
120
  $weekdays = $this->_defaultTimeToShip;
121
 
122
  $expectedDate = date("Y-m-d", strtotime("{$weekdays} weekdays"));
123
  return new DateTime($expectedDate);
124
  }
125
+
126
+ public function getExtensionVersion()
127
+ {
128
+ return (string) Mage::getConfig()->getNode()->modules->Tritac_ChannelEngine->version;
129
+ }
130
  }
app/code/community/Tritac/ChannelEngine/Model/Observer.php CHANGED
@@ -5,6 +5,7 @@
5
 
6
  use ChannelEngine\ApiClient\ApiClient;
7
  use ChannelEngine\ApiClient\Configuration;
 
8
 
9
  use ChannelEngine\ApiClient\Api\OrderApi;
10
  use ChannelEngine\ApiClient\Api\ShipmentApi;
@@ -19,6 +20,21 @@ use ChannelEngine\ApiClient\Model\MerchantShipmentLineRequest;
19
 
20
  class Tritac_ChannelEngine_Model_Observer
21
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  /**
23
  * API client
24
  *
@@ -40,8 +56,11 @@ class Tritac_ChannelEngine_Model_Observer
40
  */
41
  protected $_helper = null;
42
 
43
- const ATTRIBUTES_LIMIT = 30;
44
-
 
 
 
45
  private $_hasPostNL = false;
46
 
47
  /**
@@ -70,12 +89,33 @@ class Tritac_ChannelEngine_Model_Observer
70
  }
71
  }
72
 
73
- private function logApiError($storeId, $apiResponse)
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  {
75
- Mage::log(
76
- 'Failed to make ChannelEngine API call '. $storeId . "\r\n" .
77
- '['.$response->getStatusCode().'] ' . $response->getMessage()
78
- );
 
 
 
 
 
 
 
 
79
  }
80
 
81
  /**
@@ -94,11 +134,20 @@ class Tritac_ChannelEngine_Model_Observer
94
  foreach($this->_client as $storeId => $client)
95
  {
96
  $orderApi = new OrderApi($client);
 
97
 
98
- $response = $orderApi->orderGetNew();
99
- if(!$response->getSuccess())
 
 
 
 
 
 
 
 
100
  {
101
- $this->logApiError($storeId, $response);
102
  continue;
103
  }
104
 
@@ -168,8 +217,8 @@ class Tritac_ChannelEngine_Model_Observer
168
  "An order ({$order->getChannelName()} #{$order->getChannelOrderNo()}) could not be imported",
169
  "Failed add product to order: #{$productNo}. Reason: {$e->getMessage()} Please contact ChannelEngine support at <a href='mailto:support@channelengine.com'>support@channelengine.com</a> or +31(0)71-5288792"
170
  );
171
- Mage::logException($e);
172
- break;
173
  }
174
  }
175
 
@@ -247,7 +296,7 @@ class Tritac_ChannelEngine_Model_Observer
247
  "An order ({$order->getChannelName()} #{$order->getChannelOrderNo()}) could not be imported",
248
  "Reason: {$e->getMessage()} Please contact ChannelEngine support at <a href='mailto:support@channelengine.com'>support@channelengine.com</a> or +31(0)71-5288792"
249
  );
250
- Mage::logException($e);
251
  continue;
252
  }
253
 
@@ -255,7 +304,7 @@ class Tritac_ChannelEngine_Model_Observer
255
 
256
  if(!$magentoOrder->getIncrementId())
257
  {
258
- Mage::log("An order (#{$order->getId()}) could not be imported");
259
  continue;
260
  }
261
 
@@ -277,7 +326,6 @@ class Tritac_ChannelEngine_Model_Observer
277
  $os = $order->getChannelOrderSupport();
278
  $canShipPartiallyItem = ($os == MerchantOrderResponse::CHANNEL_ORDER_SUPPORT_SPLIT_ORDER_LINES);
279
  $canShipPartially = ($canShipPartiallyItem || $os == MerchantOrderResponse::CHANNEL_ORDER_SUPPORT_SPLIT_ORDERS);
280
-
281
 
282
  // Initialize new channel order
283
  $_channelOrder = Mage::getModel('channelengine/order');
@@ -296,26 +344,38 @@ class Tritac_ChannelEngine_Model_Observer
296
  ->addObject($invoice->getOrder())
297
  ->addObject($_channelOrder);
298
  $transactionSave->save();
 
 
 
 
 
 
 
 
 
 
 
299
 
300
 
 
 
301
  // Send order acknowledgement to CE.
302
  $ack = new OrderAcknowledgement();
303
  $ack->setMerchantOrderNo($magentoOrder->getId());
304
  $ack->setOrderId($order->getId());
305
- $orderApi->orderAcknowledge($ack);
306
 
 
 
 
 
 
307
  }
308
- catch (Exception $e)
309
  {
310
- Mage::getModel('adminnotification/inbox')->addCritical(
311
- "An invoice could not be created (order #{$magentoOrder->getIncrementId()}, {$order->getChannelName()} #{$order->getChannelOrderNo()})",
312
- "Reason: {$e->getMessage()} Please contact ChannelEngine support at <a href='mailto:support@channelengine.com'>support@channelengine.com</a> or +31(0)71-5288792"
313
- );
314
- Mage::logException($e);
315
  continue;
316
  }
317
-
318
- Mage::log("Order #{$magentoOrder->getIncrementId()} was imported successfully.");
319
  }
320
  }
321
 
@@ -382,22 +442,21 @@ class Tritac_ChannelEngine_Model_Observer
382
  {
383
  $ceShipmentUpdate = new MerchantShipmentTrackingRequest();
384
  $ceShipmentUpdate->setTrackTraceNo($ceShipment->getTrackTraceNo());
385
- $ceShipmentUpdate->setTrackTraceNo($ceShipment->getMethod());
386
 
387
  try
388
  {
389
  $response = $shipmentApi->shipmentUpdate($_shipment->getId(), $ceShipmentUpdate);
390
  if(!$response->getSuccess())
391
  {
392
- $this->logApiError($storeId, $response);
393
  Mage::getModel('adminnotification/inbox')->addCritical($errorTitle, $errorMessage);
394
  return false;
395
  }
396
  }
397
  catch(Exception $e)
398
  {
399
- //Mage::getModel('adminnotification/inbox')->addCritical($errorTitle, $errorMessage);
400
- Mage::logException($e);
401
  return false;
402
  }
403
 
@@ -431,24 +490,20 @@ class Tritac_ChannelEngine_Model_Observer
431
  try
432
  {
433
  $response = $shipmentApi->shipmentCreate($ceShipment);
434
-
435
  if(!$response->getSuccess())
436
  {
437
- $this->logApiError($storeId, $response);
438
  Mage::getModel('adminnotification/inbox')->addCritical($errorTitle, $errorMessage);
439
  return false;
440
  }
441
 
442
- $_channelShipment = Mage::getModel('channelengine/shipment')
443
- ->setShipmentId($_shipment->getId());
444
  $_channelShipment->save();
445
-
446
- Mage::log("Shipment #{$_shipment->getId()} was placed successfully.");
447
  }
448
  catch(Exception $e)
449
  {
450
- Mage::getModel('adminnotification/inbox')->addCritical($errorTitle, $errorMessage);
451
- Mage::logException($e);
452
  return false;
453
  }
454
 
@@ -468,14 +523,24 @@ class Tritac_ChannelEngine_Model_Observer
468
  {
469
  $returnApi = new ReturnApi($client);
470
  $lastUpdatedAt = new DateTime('-1 day');
471
- $response = $returnApi->returnGetDeclaredByChannel($lastUpdatedAt);
472
 
473
- if(!$response->getSuccess())
 
 
 
 
 
 
 
 
 
 
 
474
  {
475
- $this->logApiError($storeId, $response);
476
  continue;
477
  }
478
-
479
  if($response->getCount() == 0) continue;
480
 
481
  foreach($response->getContent() as $return)
@@ -556,6 +621,9 @@ class Tritac_ChannelEngine_Model_Observer
556
 
557
  $path = Mage::getBaseDir('media') . DS . 'channelengine' . DS;
558
  $storeConfig = $this->_helper->getConfig($_store->getId());
 
 
 
559
  $name = $storeConfig['general']['tenant'].'_products.xml';
560
  $file = $path . DS . $name;
561
  $date = date('c');
@@ -610,6 +678,7 @@ class Tritac_ChannelEngine_Model_Observer
610
  $attributesToSelect = array(
611
  'sku',
612
  'name',
 
613
  'description',
614
  'image',
615
  'url_key',
@@ -622,9 +691,11 @@ class Tritac_ChannelEngine_Model_Observer
622
  'msrp'
623
  );
624
 
625
- if(!empty($this->_config[$storeId]['feed']['gtin'])) $attributesToSelect[] = $this->_config[$storeId]['feed']['gtin'];
626
  $attributes = Mage::getResourceModel('catalog/product_attribute_collection');
627
 
 
 
628
  foreach($attributes as $attribute)
629
  {
630
  $code = $attribute->getAttributeCode();
@@ -634,7 +705,13 @@ class Tritac_ChannelEngine_Model_Observer
634
  // Only allow a subset of system attributes
635
  $isSystem = !$attribute->getIsUserDefined();
636
 
637
- if(!$isFlat && !$isRegular || in_array($code, $attributesToSelect)) continue;
 
 
 
 
 
 
638
 
639
  if($isSystem)
640
  {
@@ -642,13 +719,10 @@ class Tritac_ChannelEngine_Model_Observer
642
  continue;
643
  }
644
 
 
 
645
  $attributesToSelect[] = $code;
646
-
647
- $visibleAttributes[$code]['label'] = $attribute->getFrontendLabel();
648
- foreach($attribute->getSource()->getAllOptions(false) as $option)
649
- {
650
- $visibleAttributes[$code]['values'][$option['value']] = $option['label'];
651
- }
652
  }
653
 
654
  $collection->addAttributeToSelect($attributesToSelect, 'left')
@@ -674,7 +748,7 @@ class Tritac_ChannelEngine_Model_Observer
674
  array('category_id' => 'MAX(`ccp`.`category_id`)')
675
  )
676
  ->group('e.entity_id');
677
-
678
  Mage::getSingleton('core/resource_iterator')->walk(
679
  $collection->getSelect(),
680
  array(array($this, 'callbackGenerateFeed')),
@@ -722,10 +796,11 @@ class Tritac_ChannelEngine_Model_Observer
722
 
723
  $xml = $this->_getProductXml($parentData, $categoryArray, array('systemAttributes' => $systemAttributes, 'attributes' => $visibleAttributes));
724
 
725
- $_childProducts = Mage::getModel('catalog/product_type_configurable')
726
  ->getUsedProductCollection($_product)
727
- ->addAttributeToSelect($attributesToSelect)
728
- ->getItems();
 
729
 
730
 
731
  foreach($_childProducts as $_child) {
@@ -787,8 +862,8 @@ class Tritac_ChannelEngine_Model_Observer
787
  $xml = '';
788
 
789
  $product['store_id'] = $storeId;
790
- if(!empty($this->_config[$storeId]['feed']['gtin'])) {
791
- $product['gtin'] = $product[$this->_config[$storeId]['feed']['gtin']];
792
  }
793
 
794
  $specialPrice = $product['special_price'];
@@ -865,12 +940,12 @@ class Tritac_ChannelEngine_Model_Observer
865
  }
866
 
867
  // VAT and Shipping Time are pre configured in extension settings
868
- if(!empty($this->_config[$product['store_id']]['feed']['vat_rate'])) {
869
- $vat = $this->_config[$product['store_id']]['feed']['vat_rate'];
870
  $xml .= "<VAT><![CDATA[".$vat."]]></VAT>";
871
  }
872
 
873
- $shippingTime = ($product['qty'] > 0) ? $this->_config[$product['store_id']]['feed']['shipping_time'] : $this->_config[$product['store_id']]['feed']['shipping_time_oos'];
874
 
875
  if($shippingTime) {
876
  $xml .= "<ShippingTime><![CDATA[".$shippingTime."]]></ShippingTime>";
5
 
6
  use ChannelEngine\ApiClient\ApiClient;
7
  use ChannelEngine\ApiClient\Configuration;
8
+ use ChannelEngine\ApiClient\ApiException;
9
 
10
  use ChannelEngine\ApiClient\Api\OrderApi;
11
  use ChannelEngine\ApiClient\Api\ShipmentApi;
20
 
21
  class Tritac_ChannelEngine_Model_Observer
22
  {
23
+ /**
24
+ * To prevent exceeding the maximum number of allowed mySQL joins
25
+ * when not using the flat catalog.
26
+ *
27
+ * @var int
28
+ */
29
+ const ATTRIBUTES_LIMIT = 30;
30
+
31
+ /**
32
+ * The CE logfile path
33
+ *
34
+ * @var string
35
+ */
36
+ const LOGFILE = 'channelengine.log';
37
+
38
  /**
39
  * API client
40
  *
56
  */
57
  protected $_helper = null;
58
 
59
+ /**
60
+ * Whether this merchant uses the postNL extension
61
+ *
62
+ * @var bool
63
+ */
64
  private $_hasPostNL = false;
65
 
66
  /**
89
  }
90
  }
91
 
92
+ private function logApiError($response, $model = null)
93
+ {
94
+ $this->log(
95
+ 'API Call failed ['.$response->getStatusCode().'] ' . $response->getMessage() . PHP_EOL . print_r($model, true),
96
+ Zend_Log::ERR
97
+ );
98
+ }
99
+
100
+ private function log($message, $level = null)
101
+ {
102
+ Mage::log($message . PHP_EOL . '--------------------', $level, $file = self::LOGFILE, true);
103
+ }
104
+
105
+ private function logException($e, $model = null)
106
  {
107
+ if($e instanceof ApiException)
108
+ {
109
+ $message = $e->getMessage() . PHP_EOL .
110
+ print_r($e->getResponseBody(), true) .
111
+ print_r($e->getResponseHeaders(), true) .
112
+ print_r($model, true) .
113
+ $e->getTraceAsString();
114
+ $this->log($message, Zend_Log::ERR);
115
+ return;
116
+ }
117
+
118
+ $this->log($e->__toString(), Zend_Log::ERR);
119
  }
120
 
121
  /**
134
  foreach($this->_client as $storeId => $client)
135
  {
136
  $orderApi = new OrderApi($client);
137
+ $response = null;
138
 
139
+ try
140
+ {
141
+ $response = $orderApi->orderGetNew();
142
+ if(!$response->getSuccess())
143
+ {
144
+ $this->logApiError($response);
145
+ continue;
146
+ }
147
+ }
148
+ catch (Exception $e)
149
  {
150
+ $this->logException($e);
151
  continue;
152
  }
153
 
217
  "An order ({$order->getChannelName()} #{$order->getChannelOrderNo()}) could not be imported",
218
  "Failed add product to order: #{$productNo}. Reason: {$e->getMessage()} Please contact ChannelEngine support at <a href='mailto:support@channelengine.com'>support@channelengine.com</a> or +31(0)71-5288792"
219
  );
220
+ $this->logException($e);
221
+ continue 2;
222
  }
223
  }
224
 
296
  "An order ({$order->getChannelName()} #{$order->getChannelOrderNo()}) could not be imported",
297
  "Reason: {$e->getMessage()} Please contact ChannelEngine support at <a href='mailto:support@channelengine.com'>support@channelengine.com</a> or +31(0)71-5288792"
298
  );
299
+ $this->logException($e);
300
  continue;
301
  }
302
 
304
 
305
  if(!$magentoOrder->getIncrementId())
306
  {
307
+ $this->log("An order (#{$order->getId()}) could not be imported");
308
  continue;
309
  }
310
 
326
  $os = $order->getChannelOrderSupport();
327
  $canShipPartiallyItem = ($os == MerchantOrderResponse::CHANNEL_ORDER_SUPPORT_SPLIT_ORDER_LINES);
328
  $canShipPartially = ($canShipPartiallyItem || $os == MerchantOrderResponse::CHANNEL_ORDER_SUPPORT_SPLIT_ORDERS);
 
329
 
330
  // Initialize new channel order
331
  $_channelOrder = Mage::getModel('channelengine/order');
344
  ->addObject($invoice->getOrder())
345
  ->addObject($_channelOrder);
346
  $transactionSave->save();
347
+ }
348
+ catch (Exception $e)
349
+ {
350
+ Mage::getModel('adminnotification/inbox')->addCritical(
351
+ "An invoice could not be created (order #{$magentoOrder->getIncrementId()}, {$order->getChannelName()} #{$order->getChannelOrderNo()})",
352
+ "Reason: {$e->getMessage()} Please contact ChannelEngine support at <a href='mailto:support@channelengine.com'>support@channelengine.com</a> or +31(0)71-5288792"
353
+ );
354
+
355
+ $this->logException($e);
356
+ continue;
357
+ }
358
 
359
 
360
+ try
361
+ {
362
  // Send order acknowledgement to CE.
363
  $ack = new OrderAcknowledgement();
364
  $ack->setMerchantOrderNo($magentoOrder->getId());
365
  $ack->setOrderId($order->getId());
366
+ $response = $orderApi->orderAcknowledge($ack);
367
 
368
+ if(!$response->getSuccess())
369
+ {
370
+ $this->logApiError($response, $ack);
371
+ continue;
372
+ }
373
  }
374
+ catch(Exception $e)
375
  {
376
+ $this->logException($e);
 
 
 
 
377
  continue;
378
  }
 
 
379
  }
380
  }
381
 
442
  {
443
  $ceShipmentUpdate = new MerchantShipmentTrackingRequest();
444
  $ceShipmentUpdate->setTrackTraceNo($ceShipment->getTrackTraceNo());
445
+ $ceShipmentUpdate->setMethod($ceShipment->getMethod());
446
 
447
  try
448
  {
449
  $response = $shipmentApi->shipmentUpdate($_shipment->getId(), $ceShipmentUpdate);
450
  if(!$response->getSuccess())
451
  {
452
+ $this->logApiError($response, $ceShipmentUpdate);
453
  Mage::getModel('adminnotification/inbox')->addCritical($errorTitle, $errorMessage);
454
  return false;
455
  }
456
  }
457
  catch(Exception $e)
458
  {
459
+ $this->logException($e);
 
460
  return false;
461
  }
462
 
490
  try
491
  {
492
  $response = $shipmentApi->shipmentCreate($ceShipment);
 
493
  if(!$response->getSuccess())
494
  {
495
+ $this->logApiError($response, $ceShipment);
496
  Mage::getModel('adminnotification/inbox')->addCritical($errorTitle, $errorMessage);
497
  return false;
498
  }
499
 
500
+ $_channelShipment = Mage::getModel('channelengine/shipment')->setShipmentId($_shipment->getId());
 
501
  $_channelShipment->save();
 
 
502
  }
503
  catch(Exception $e)
504
  {
505
+ $this->logException($e);
506
+ Mage::getModel('adminnotification/inbox')->addCritical($errorTitle, $errorMessage);
507
  return false;
508
  }
509
 
523
  {
524
  $returnApi = new ReturnApi($client);
525
  $lastUpdatedAt = new DateTime('-1 day');
 
526
 
527
+ $response = null;
528
+
529
+ try
530
+ {
531
+ $response = $returnApi->returnGetDeclaredByChannel($lastUpdatedAt);
532
+ if(!$response->getSuccess())
533
+ {
534
+ $this->logApiError($response);
535
+ continue;
536
+ }
537
+ }
538
+ catch (Exception $e)
539
  {
540
+ $this->logException($e);
541
  continue;
542
  }
543
+
544
  if($response->getCount() == 0) continue;
545
 
546
  foreach($response->getContent() as $return)
621
 
622
  $path = Mage::getBaseDir('media') . DS . 'channelengine' . DS;
623
  $storeConfig = $this->_helper->getConfig($_store->getId());
624
+
625
+ if(!$this->_helper->checkGeneralConfig($_store->getId())) continue;
626
+
627
  $name = $storeConfig['general']['tenant'].'_products.xml';
628
  $file = $path . DS . $name;
629
  $date = date('c');
678
  $attributesToSelect = array(
679
  'sku',
680
  'name',
681
+ 'manufacturer',
682
  'description',
683
  'image',
684
  'url_key',
691
  'msrp'
692
  );
693
 
694
+ if(!empty($this->_config[$storeId]['general']['gtin'])) $attributesToSelect[] = $this->_config[$storeId]['general']['gtin'];
695
  $attributes = Mage::getResourceModel('catalog/product_attribute_collection');
696
 
697
+ $totalAttributes = count($attributesToSelect);
698
+
699
  foreach($attributes as $attribute)
700
  {
701
  $code = $attribute->getAttributeCode();
705
  // Only allow a subset of system attributes
706
  $isSystem = !$attribute->getIsUserDefined();
707
 
708
+ if(!$isFlat && !$isRegular || ($isRegular && $totalAttributes >= self::ATTRIBUTES_LIMIT)) continue;
709
+
710
+ $visibleAttributes[$code]['label'] = $attribute->getFrontendLabel();
711
+ foreach($attribute->getSource()->getAllOptions(false) as $option)
712
+ {
713
+ $visibleAttributes[$code]['values'][$option['value']] = $option['label'];
714
+ }
715
 
716
  if($isSystem)
717
  {
719
  continue;
720
  }
721
 
722
+ if(in_array($code, $attributesToSelect)) continue;
723
+
724
  $attributesToSelect[] = $code;
725
+ $totalAttributes++;
 
 
 
 
 
726
  }
727
 
728
  $collection->addAttributeToSelect($attributesToSelect, 'left')
748
  array('category_id' => 'MAX(`ccp`.`category_id`)')
749
  )
750
  ->group('e.entity_id');
751
+
752
  Mage::getSingleton('core/resource_iterator')->walk(
753
  $collection->getSelect(),
754
  array(array($this, 'callbackGenerateFeed')),
796
 
797
  $xml = $this->_getProductXml($parentData, $categoryArray, array('systemAttributes' => $systemAttributes, 'attributes' => $visibleAttributes));
798
 
799
+ $childProductCollection = Mage::getModel('catalog/product_type_configurable')
800
  ->getUsedProductCollection($_product)
801
+ ->addAttributeToSelect($attributesToSelect);
802
+
803
+ $_childProducts = $childProductCollection->getItems();
804
 
805
 
806
  foreach($_childProducts as $_child) {
862
  $xml = '';
863
 
864
  $product['store_id'] = $storeId;
865
+ if(!empty($this->_config[$storeId]['general']['gtin'])) {
866
+ $product['gtin'] = $product[$this->_config[$storeId]['general']['gtin']];
867
  }
868
 
869
  $specialPrice = $product['special_price'];
940
  }
941
 
942
  // VAT and Shipping Time are pre configured in extension settings
943
+ if(!empty($this->_config[$product['store_id']]['optional']['vat_rate'])) {
944
+ $vat = $this->_config[$product['store_id']]['optional']['vat_rate'];
945
  $xml .= "<VAT><![CDATA[".$vat."]]></VAT>";
946
  }
947
 
948
+ $shippingTime = ($product['qty'] > 0) ? $this->_config[$product['store_id']]['optional']['shipping_time'] : $this->_config[$product['store_id']]['optional']['shipping_time_oos'];
949
 
950
  if($shippingTime) {
951
  $xml .= "<ShippingTime><![CDATA[".$shippingTime."]]></ShippingTime>";
app/code/community/Tritac/ChannelEngine/controllers/Adminhtml/GenerateController.php CHANGED
@@ -1,27 +1,66 @@
1
  <?php
2
  class Tritac_ChannelEngine_Adminhtml_GenerateController extends Mage_Adminhtml_Controller_Action
3
  {
4
- public function ajaxAction()
5
  {
6
  $observer = Mage::getModel('channelengine/observer');
7
- $res = $this->getResponse();
8
- $res->setHeader('Content-type', 'application/json');
9
- if($observer->generateFeed()) $res->setBody(1);
 
 
 
10
  }
11
 
12
- public function importOrdersAction()
13
  {
14
  $observer = Mage::getModel('channelengine/observer');
15
- $res = $this->getResponse();
16
- $res->setHeader('Content-type', 'application/json');
17
- if($observer->fetchNewOrders()) $res->setBody(1);
 
 
 
18
  }
19
 
20
- public function importReturnsAction()
21
  {
22
  $observer = Mage::getModel('channelengine/observer');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  $res = $this->getResponse();
24
  $res->setHeader('Content-type', 'application/json');
25
- if($observer->fetchReturns()) $res->setBody(1);
 
 
 
26
  }
27
  }
1
  <?php
2
  class Tritac_ChannelEngine_Adminhtml_GenerateController extends Mage_Adminhtml_Controller_Action
3
  {
4
+ public function feedAction()
5
  {
6
  $observer = Mage::getModel('channelengine/observer');
7
+ $result = $observer->generateFeed();
8
+ if($result) {
9
+ $this->returnStatus(false, $result);
10
+ } else {
11
+ $this->returnStatus(true, $result);
12
+ }
13
  }
14
 
15
+ public function ordersAction()
16
  {
17
  $observer = Mage::getModel('channelengine/observer');
18
+ $result = $observer->fetchNewOrders();
19
+ if($result) {
20
+ $this->returnStatus(false, $result);
21
+ } else {
22
+ $this->returnStatus(true, $result);
23
+ }
24
  }
25
 
26
+ public function returnsAction()
27
  {
28
  $observer = Mage::getModel('channelengine/observer');
29
+ $result = $observer->fetchReturns();
30
+ if($result) {
31
+ $this->returnStatus(false, $result);
32
+ } else {
33
+ $this->returnStatus(true, $result);
34
+ }
35
+ }
36
+
37
+ public function logAction()
38
+ {
39
+ $logFile = Mage::getBaseDir('log') . '/' . 'channelengine.log';
40
+ if (!is_file($logFile) || !is_readable($logFile)) return;
41
+
42
+ $this->getResponse()
43
+ ->setHttpResponseCode(200)
44
+ ->setHeader('Cache-Control', 'must-revalidate, post-check=0, pre-check=0', true)
45
+ ->setHeader('Pragma', 'public', true)
46
+ ->setHeader('Content-type', 'application/force-download')
47
+ ->setHeader('Content-Length', filesize($logFile))
48
+ ->setHeader('Content-Disposition', 'attachment' . '; filename=' . basename($logFile));
49
+
50
+ $this->getResponse ()->clearBody();
51
+ $this->getResponse ()->sendHeaders();
52
+ readfile($logFile);
53
+
54
+ exit;
55
+ }
56
+
57
+ private function returnStatus($error, $message)
58
+ {
59
  $res = $this->getResponse();
60
  $res->setHeader('Content-type', 'application/json');
61
+
62
+ $body = json_encode(array('error' => $error, 'message' => $message));
63
+
64
+ $res->setBody($body);
65
  }
66
  }
app/code/community/Tritac/ChannelEngine/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Tritac_ChannelEngine>
5
- <version>4.4.1</version>
6
  </Tritac_ChannelEngine>
7
  </modules>
8
 
2
  <config>
3
  <modules>
4
  <Tritac_ChannelEngine>
5
+ <version>4.6.0</version>
6
  </Tritac_ChannelEngine>
7
  </modules>
8
 
app/code/community/Tritac/ChannelEngine/etc/system.xml CHANGED
@@ -16,14 +16,18 @@
16
  <show_in_website>1</show_in_website>
17
  <show_in_store>1</show_in_store>
18
  <sort_order>1000</sort_order>
 
19
  <groups>
20
  <general translate="label">
21
  <label>General</label>
22
  <frontend_type>text</frontend_type>
23
- <show_in_default>0</show_in_default>
24
- <show_in_website>0</show_in_website>
25
  <show_in_store>1</show_in_store>
26
  <sort_order>1</sort_order>
 
 
 
27
  <fields>
28
  <api_key translate="label">
29
  <label>Api Key</label>
@@ -44,36 +48,39 @@
44
  <show_in_website>0</show_in_website>
45
  <show_in_store>1</show_in_store>
46
  </tenant>
47
- </fields>
48
- </general>
49
- <shipping translate="label">
50
- <label>Shipping</label>
51
- <frontend_type>text</frontend_type>
52
- <show_in_default>1</show_in_default>
53
- <show_in_website>1</show_in_website>
54
- <show_in_store>1</show_in_store>
55
- <sort_order>2</sort_order>
56
- <fields>
57
- <expected_date translate="label">
58
- <label>Expected Shipping Period (For backorders)</label>
59
- <frontend_type>text</frontend_type>
60
  <comment>
61
- <![CDATA[<span class="notice">Please set the number of working days. Applies to order items with status "In Backorder"</span>]]>
62
  </comment>
63
- <sort_order>2</sort_order>
 
 
 
 
 
 
 
 
 
 
 
 
64
  <show_in_default>1</show_in_default>
65
  <show_in_website>1</show_in_website>
66
  <show_in_store>1</show_in_store>
67
- </expected_date>
68
  </fields>
69
- </shipping>
70
- <feed translate="label">
71
- <label>Product Feed</label>
72
  <frontend_type>text</frontend_type>
73
  <show_in_default>1</show_in_default>
74
  <show_in_website>1</show_in_website>
75
  <show_in_store>1</show_in_store>
76
- <sort_order>3</sort_order>
77
  <fields>
78
  <vat_rate translate="label">
79
  <label>Default Vat Rate (%)</label>
@@ -105,33 +112,91 @@
105
  <show_in_website>1</show_in_website>
106
  <show_in_store>1</show_in_store>
107
  </shipping_time_oos>
108
- <gtin translate="label">
109
- <label>Product GTIN</label>
110
- <frontend_type>select</frontend_type>
111
- <source_model>channelengine/system_config_source_gtin</source_model>
112
  <comment>
113
- <![CDATA[<span class="notice">The attribute that contains the product GTIN (i.e. EAN, ISBN, UPC)</span>]]>
114
  </comment>
115
- <sort_order>4</sort_order>
116
  <show_in_default>1</show_in_default>
117
  <show_in_website>1</show_in_website>
118
  <show_in_store>1</show_in_store>
119
- </gtin>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
120
  <generate_product_feed translate="button_label">
121
  <label>Generate product feed</label>
122
  <button_label>Generate Product Feed</button_label>
123
  <comment>
124
  <![CDATA[<span class="notice">You need to configure cronjobs on your server to generate feeds automatically</span>]]>
125
  </comment>
 
126
  <frontend_type>button</frontend_type>
127
- <frontend_model>channelengine/adminhtml_system_config_feed</frontend_model>
128
  <sort_order>5</sort_order>
129
  <show_in_default>1</show_in_default>
130
  <show_in_website>1</show_in_website>
131
  <show_in_store>1</show_in_store>
132
  </generate_product_feed>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
133
  </fields>
134
- </feed>
135
  </groups>
136
  </channelengine>
137
  </sections>
16
  <show_in_website>1</show_in_website>
17
  <show_in_store>1</show_in_store>
18
  <sort_order>1000</sort_order>
19
+
20
  <groups>
21
  <general translate="label">
22
  <label>General</label>
23
  <frontend_type>text</frontend_type>
24
+ <show_in_default>1</show_in_default>
25
+ <show_in_website>1</show_in_website>
26
  <show_in_store>1</show_in_store>
27
  <sort_order>1</sort_order>
28
+ <comment>
29
+ <![CDATA[Please set the your ChannelEngine account details per individual store view.]]>
30
+ </comment>
31
  <fields>
32
  <api_key translate="label">
33
  <label>Api Key</label>
48
  <show_in_website>0</show_in_website>
49
  <show_in_store>1</show_in_store>
50
  </tenant>
51
+ <feed_url translate="label">
52
+ <label>Feed URL</label>
53
+ <frontend_type>label</frontend_type>
54
+ <frontend_model>channelengine/adminhtml_system_config_form_feed</frontend_model>
 
 
 
 
 
 
 
 
 
55
  <comment>
56
+ <![CDATA[<span class="notice">This is the feed that can be imported into ChannelEngine</span>]]>
57
  </comment>
58
+ <sort_order>4</sort_order>
59
+ <show_in_default>0</show_in_default>
60
+ <show_in_website>0</show_in_website>
61
+ <show_in_store>1</show_in_store>
62
+ </feed_url>
63
+ <gtin translate="label">
64
+ <label>Product GTIN</label>
65
+ <frontend_type>select</frontend_type>
66
+ <source_model>channelengine/system_config_source_gtin</source_model>
67
+ <comment>
68
+ <![CDATA[<span class="notice">The attribute that contains the product GTIN (i.e. EAN, ISBN, UPC)</span>]]>
69
+ </comment>
70
+ <sort_order>5</sort_order>
71
  <show_in_default>1</show_in_default>
72
  <show_in_website>1</show_in_website>
73
  <show_in_store>1</show_in_store>
74
+ </gtin>
75
  </fields>
76
+ </general>
77
+ <optional translate="label">
78
+ <label>Optional settings</label>
79
  <frontend_type>text</frontend_type>
80
  <show_in_default>1</show_in_default>
81
  <show_in_website>1</show_in_website>
82
  <show_in_store>1</show_in_store>
83
+ <sort_order>2</sort_order>
84
  <fields>
85
  <vat_rate translate="label">
86
  <label>Default Vat Rate (%)</label>
112
  <show_in_website>1</show_in_website>
113
  <show_in_store>1</show_in_store>
114
  </shipping_time_oos>
115
+ <expected_date translate="label">
116
+ <label>Expected Shipping Period (For backorders)</label>
117
+ <frontend_type>text</frontend_type>
 
118
  <comment>
119
+ <![CDATA[<span class="notice">Please set the number of working days. Applies to order items with status "In Backorder"</span>]]>
120
  </comment>
121
+ <sort_order>5</sort_order>
122
  <show_in_default>1</show_in_default>
123
  <show_in_website>1</show_in_website>
124
  <show_in_store>1</show_in_store>
125
+ </expected_date>
126
+ </fields>
127
+ </optional>
128
+ <diagnostics>
129
+ <label>Diagnostics</label>
130
+ <frontend_type>text</frontend_type>
131
+ <show_in_default>1</show_in_default>
132
+ <show_in_website>1</show_in_website>
133
+ <show_in_store>1</show_in_store>
134
+ <sort_order>3</sort_order>
135
+ <fields>
136
+ <log>
137
+ <label>Download Log</label>
138
+ <link_action>log</link_action>
139
+ <link_label>Download</link_label>
140
+ <frontend_type>label</frontend_type>
141
+ <frontend_model>channelengine/adminhtml_system_config_form_link</frontend_model>
142
+ <sort_order>5</sort_order>
143
+ <show_in_default>1</show_in_default>
144
+ <show_in_website>1</show_in_website>
145
+ <show_in_store>1</show_in_store>
146
+ </log>
147
+ <version>
148
+ <label>Version</label>
149
+ <frontend_type>note</frontend_type>
150
+ <frontend_model>channelengine/adminhtml_system_config_form_version</frontend_model>
151
+ <sort_order>5</sort_order>
152
+ <show_in_default>1</show_in_default>
153
+ <show_in_website>1</show_in_website>
154
+ <show_in_store>1</show_in_store>
155
+ </version>
156
  <generate_product_feed translate="button_label">
157
  <label>Generate product feed</label>
158
  <button_label>Generate Product Feed</button_label>
159
  <comment>
160
  <![CDATA[<span class="notice">You need to configure cronjobs on your server to generate feeds automatically</span>]]>
161
  </comment>
162
+ <ajax_action>feed</ajax_action>
163
  <frontend_type>button</frontend_type>
164
+ <frontend_model>channelengine/adminhtml_system_config_form_button</frontend_model>
165
  <sort_order>5</sort_order>
166
  <show_in_default>1</show_in_default>
167
  <show_in_website>1</show_in_website>
168
  <show_in_store>1</show_in_store>
169
  </generate_product_feed>
170
+ <import_orders translate="button_label">
171
+ <label>Import orders</label>
172
+ <button_label>Manually import orders</button_label>
173
+ <comment>
174
+ <![CDATA[<span class="notice">You need to configure cronjobs on your server to import orders automatically</span>]]>
175
+ </comment>
176
+ <ajax_action>orders</ajax_action>
177
+ <frontend_type>button</frontend_type>
178
+ <frontend_model>channelengine/adminhtml_system_config_form_button</frontend_model>
179
+ <sort_order>5</sort_order>
180
+ <show_in_default>1</show_in_default>
181
+ <show_in_website>1</show_in_website>
182
+ <show_in_store>1</show_in_store>
183
+ </import_orders>
184
+ <import_returns translate="button_label">
185
+ <label>Import returns</label>
186
+ <button_label>Manually import returns</button_label>
187
+ <comment>
188
+ <![CDATA[<span class="notice">You need to configure cronjobs on your server to import returns automatically</span>]]>
189
+ </comment>
190
+ <ajax_action>returns</ajax_action>
191
+ <frontend_type>button</frontend_type>
192
+ <frontend_model>channelengine/adminhtml_system_config_form_button</frontend_model>
193
+ <sort_order>5</sort_order>
194
+ <show_in_default>1</show_in_default>
195
+ <show_in_website>1</show_in_website>
196
+ <show_in_store>1</show_in_store>
197
+ </import_returns>
198
  </fields>
199
+ </diagnostics>
200
  </groups>
201
  </channelengine>
202
  </sections>
app/design/adminhtml/default/default/template/channelengine/system/config/{feed/generate_button.phtml → form/ajax_button.phtml} RENAMED
@@ -5,35 +5,32 @@
5
  ?>
6
  <script type="text/javascript">
7
  //<![CDATA[
8
- function generateFeed() {
9
  var elem = $('<?php echo $this->getId() ?>');
10
-
 
11
  new Ajax.Request('<?php echo $this->getAjaxUrl() ?>', {
12
  onSuccess: function(response) {
13
- result = "<?php echo $this->__("Couldn't generate feed. See magento log.") ?>";
14
  try {
15
- response = response.responseText;
16
- if (response == 1) {
17
- result = '<?php echo $this->__("Product Feed was generated successfully") ?>';
18
  elem.removeClassName('fail').addClassName('success')
19
- } else if(response == 'redirect') {
20
- result = "<?php echo $this->__("Too many visible attributes.") ?>";
21
- window.location.reload();
22
  } else {
23
  elem.removeClassName('success').addClassName('fail')
24
  }
 
25
  } catch (e) {
26
  elem.removeClassName('success').addClassName('fail')
27
  }
28
- $('#generate_result').update(result);
29
  },
30
  onFailure: function(response) {
31
- result = "<?php echo $this->__("Couldn't generate feed. See magento log.") ?>";
32
  elem.removeClassName('success').addClassName('fail');
 
33
  }
34
  });
35
  }
36
  //]]>
37
  </script>
38
  <?php echo $this->getButtonHtml(); ?>
39
- <span id="generate_result"><?php echo $this->escapeHtml($this->getLabel()) ?></span>
5
  ?>
6
  <script type="text/javascript">
7
  //<![CDATA[
8
+ function makeRequest<?php echo $this->getId() ?>() {
9
  var elem = $('<?php echo $this->getId() ?>');
10
+ var resultElem = $('<?php echo 'ce_res_'. $this->getId() ?>')
11
+ var result = "<?php echo $this->__("Failed to run manual task. See magento log.") ?>";
12
  new Ajax.Request('<?php echo $this->getAjaxUrl() ?>', {
13
  onSuccess: function(response) {
 
14
  try {
15
+ response = response.responseText.evalJSON(true);
16
+ if (!response.error) {
 
17
  elem.removeClassName('fail').addClassName('success')
 
 
 
18
  } else {
19
  elem.removeClassName('success').addClassName('fail')
20
  }
21
+ result = response.message;
22
  } catch (e) {
23
  elem.removeClassName('success').addClassName('fail')
24
  }
25
+ resultElem.update(result);
26
  },
27
  onFailure: function(response) {
 
28
  elem.removeClassName('success').addClassName('fail');
29
+ resultElem.update(result);
30
  }
31
  });
32
  }
33
  //]]>
34
  </script>
35
  <?php echo $this->getButtonHtml(); ?>
36
+ <span id="ce_res<?php echo $this->getId() ?>"><?php echo $this->escapeHtml($this->getLabel()) ?></span>
lib/ChannelEngine/.gitignore DELETED
@@ -1,2 +0,0 @@
1
- *
2
- !.gitignore
 
 
lib/ChannelEngine/composer.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ {
2
+ "require": {
3
+ "channelengine/api-client": "dev-master"
4
+ }
5
+ }
lib/ChannelEngine/composer.lock ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_readme": [
3
+ "This file locks the dependencies of your project to a known state",
4
+ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
5
+ "This file is @generated automatically"
6
+ ],
7
+ "content-hash": "37e634d92ddf2c628f9d962c5f848841",
8
+ "packages": [
9
+ {
10
+ "name": "channelengine/api-client",
11
+ "version": "dev-master",
12
+ "source": {
13
+ "type": "git",
14
+ "url": "https://github.com/channelengine/api-client-php.git",
15
+ "reference": "063843e3c7576a507f7de661bb105ac2a9e57767"
16
+ },
17
+ "dist": {
18
+ "type": "zip",
19
+ "url": "https://api.github.com/repos/channelengine/api-client-php/zipball/063843e3c7576a507f7de661bb105ac2a9e57767",
20
+ "reference": "063843e3c7576a507f7de661bb105ac2a9e57767",
21
+ "shasum": ""
22
+ },
23
+ "require": {
24
+ "ext-curl": "*",
25
+ "ext-json": "*",
26
+ "ext-mbstring": "*",
27
+ "php": ">=5.4"
28
+ },
29
+ "require-dev": {
30
+ "friendsofphp/php-cs-fixer": "~1.12",
31
+ "phpunit/phpunit": "~4.8",
32
+ "satooshi/php-coveralls": "~1.0",
33
+ "squizlabs/php_codesniffer": "~2.6"
34
+ },
35
+ "type": "library",
36
+ "autoload": {
37
+ "psr-4": {
38
+ "ChannelEngine\\ApiClient\\": "lib/"
39
+ }
40
+ },
41
+ "notification-url": "https://packagist.org/downloads/",
42
+ "license": [
43
+ "proprietary"
44
+ ],
45
+ "authors": [
46
+ {
47
+ "name": "Swagger and contributors",
48
+ "homepage": "https://github.com/swagger-api/swagger-codegen"
49
+ }
50
+ ],
51
+ "homepage": "http://swagger.io",
52
+ "keywords": [
53
+ "api",
54
+ "php",
55
+ "sdk",
56
+ "swagger"
57
+ ],
58
+ "time": "2017-04-12 09:44:32"
59
+ }
60
+ ],
61
+ "packages-dev": [],
62
+ "aliases": [],
63
+ "minimum-stability": "stable",
64
+ "stability-flags": {
65
+ "channelengine/api-client": 20
66
+ },
67
+ "prefer-stable": false,
68
+ "prefer-lowest": false,
69
+ "platform": [],
70
+ "platform-dev": []
71
+ }
lib/ChannelEngine/vendor/autoload.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // autoload.php @generated by Composer
4
+
5
+ require_once __DIR__ . '/composer/autoload_real.php';
6
+
7
+ return ComposerAutoloaderInit117267288e7b25b85c8b9c4bc7264ba6::getLoader();
lib/ChannelEngine/vendor/channelengine/api-client/.gitignore ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ composer.phar
2
+ vendor/
3
+ *.sublime-workspace
4
+ *.log
lib/ChannelEngine/vendor/channelengine/api-client/.php_cs ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ return Symfony\CS\Config::create()
4
+ ->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
5
+ ->setUsingCache(true)
6
+ ->fixers(
7
+ [
8
+ 'ordered_use',
9
+ 'phpdoc_order',
10
+ 'short_array_syntax',
11
+ 'strict',
12
+ 'strict_param'
13
+ ]
14
+ )
15
+ ->finder(
16
+ Symfony\CS\Finder\DefaultFinder::create()
17
+ ->in(__DIR__)
18
+ );
lib/ChannelEngine/vendor/channelengine/api-client/.travis.yml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ language: php
2
+ sudo: false
3
+ php:
4
+ - 5.4
5
+ - 5.5
6
+ - 5.6
7
+ - 7.0
8
+ - hhvm
9
+ before_install: "composer install"
10
+ script: "vendor/bin/phpunit"
lib/ChannelEngine/vendor/channelengine/api-client/README.md ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ChannelEngine
2
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
3
+
4
+ This PHP package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
5
+
6
+ - API version: v2
7
+ - Package version: 2.1.0
8
+ - Build package: io.swagger.codegen.languages.PhpClientCodegen
9
+
10
+ ## Requirements
11
+
12
+ PHP 5.4.0 and later
13
+
14
+ ## Installation & Usage
15
+ ### Composer
16
+
17
+ To install the bindings via [Composer](http://getcomposer.org/), add the following to `composer.json`:
18
+
19
+ ```
20
+ {
21
+ "repositories": [
22
+ {
23
+ "type": "git",
24
+ "url": "https://github.com/channelengine/api-client.git"
25
+ }
26
+ ],
27
+ "require": {
28
+ "channelengine/api-client": "*@dev"
29
+ }
30
+ }
31
+ ```
32
+
33
+ Then run `composer install`
34
+
35
+ ### Manual Installation
36
+
37
+ Download the files and include `autoload.php`:
38
+
39
+ ```php
40
+ require_once('/path/to/ChannelEngine/autoload.php');
41
+ ```
42
+
43
+ ## Tests
44
+
45
+ To run the unit tests:
46
+
47
+ ```
48
+ composer install
49
+ ./vendor/bin/phpunit
50
+ ```
51
+
52
+ ## Getting Started
53
+
54
+ Please follow the [installation procedure](#installation--usage) and then run the following:
55
+
56
+ ```php
57
+ <?php
58
+ require_once(__DIR__ . '/vendor/autoload.php');
59
+
60
+ // Configure API key authorization: apikey
61
+ ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
62
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
63
+ // ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');
64
+
65
+ $api_instance = new ChannelEngine\ApiClient\Api\BackOrderApi();
66
+ $backOrder = new \ChannelEngine\ApiClient\Model\BackOrder(); // \ChannelEngine\ApiClient\Model\BackOrder | The Backorder to create
67
+
68
+ try {
69
+ $result = $api_instance->backOrderCreate($backOrder);
70
+ print_r($result);
71
+ } catch (Exception $e) {
72
+ echo 'Exception when calling BackOrderApi->backOrderCreate: ', $e->getMessage(), PHP_EOL;
73
+ }
74
+
75
+ ?>
76
+ ```
77
+
78
+ ## Documentation for API Endpoints
79
+
80
+ All URIs are relative to *http://dev.channelengine.local/api*
81
+
82
+ Class | Method | HTTP request | Description
83
+ ------------ | ------------- | ------------- | -------------
84
+ *BackOrderApi* | [**backOrderCreate**](docs/Api/BackOrderApi.md#backordercreate) | **POST** /v2/backorders | Merchant: Create Backorder
85
+ *BackOrderApi* | [**backOrderGet**](docs/Api/BackOrderApi.md#backorderget) | **GET** /v2/backorders/{merchantBackorderNo} | Merchant: Get Backorder
86
+ *BackOrderApi* | [**backOrderIndex**](docs/Api/BackOrderApi.md#backorderindex) | **GET** /v2/backorders | Get Backorders
87
+ *CancellationApi* | [**cancellationCreate**](docs/Api/CancellationApi.md#cancellationcreate) | **POST** /v2/cancellations | Merchant: Create Cancellation
88
+ *CancellationApi* | [**cancellationIndex**](docs/Api/CancellationApi.md#cancellationindex) | **GET** /v2/cancellations | Channel: Get Cancellations
89
+ *ClientApi* | [**clientGet**](docs/Api/ClientApi.md#clientget) | **GET** /v2/clients/{language} | Get API Client
90
+ *OrderApi* | [**orderAcknowledge**](docs/Api/OrderApi.md#orderacknowledge) | **POST** /v2/orders/acknowledge | Merchant: Acknowledge Order
91
+ *OrderApi* | [**orderCreate**](docs/Api/OrderApi.md#ordercreate) | **POST** /v2/orders | Channel: Create Order
92
+ *OrderApi* | [**orderGetNew**](docs/Api/OrderApi.md#ordergetnew) | **GET** /v2/orders/new | Merchant: Get New Orders
93
+ *OrderApi* | [**orderInvoice**](docs/Api/OrderApi.md#orderinvoice) | **GET** /v2/orders/{merchantOrderNo}/invoice | Merchant: Download Invoice
94
+ *OrderApi* | [**orderPackingSlip**](docs/Api/OrderApi.md#orderpackingslip) | **GET** /v2/orders/{merchantOrderNo}/packingslip | Merchant: Download Packing Slip
95
+ *ProductApi* | [**productAcknowledgeDataChanges**](docs/Api/ProductApi.md#productacknowledgedatachanges) | **POST** /v2/products/data | Channel: Acknowledge Product Data Changes
96
+ *ProductApi* | [**productAcknowledgeOfferChanges**](docs/Api/ProductApi.md#productacknowledgeofferchanges) | **POST** /v2/products/offers | Channel: Acknowledge Product Offer Changes
97
+ *ProductApi* | [**productCreate**](docs/Api/ProductApi.md#productcreate) | **POST** /v2/products | Merchant: Create Product
98
+ *ProductApi* | [**productDelete**](docs/Api/ProductApi.md#productdelete) | **DELETE** /v2/products/{merchantProductNo} | Merchant: Delete Product
99
+ *ProductApi* | [**productGetByMerchantProductNo**](docs/Api/ProductApi.md#productgetbymerchantproductno) | **GET** /v2/products/merchant/{merchantProductNo} | Merchant: Get Product
100
+ *ProductApi* | [**productGetDataChanges**](docs/Api/ProductApi.md#productgetdatachanges) | **GET** /v2/products/data | Channel: Get Product Data Changes
101
+ *ProductApi* | [**productGetOfferChanges**](docs/Api/ProductApi.md#productgetofferchanges) | **GET** /v2/products/offers | Channel: Get Product Offer Changes
102
+ *ReturnApi* | [**returnDeclareForChannel**](docs/Api/ReturnApi.md#returndeclareforchannel) | **POST** /v2/returns/channel | Channel: Create Return
103
+ *ReturnApi* | [**returnDeclareForMerchant**](docs/Api/ReturnApi.md#returndeclareformerchant) | **POST** /v2/returns/merchant | Merchant: Create Return
104
+ *ReturnApi* | [**returnGetDeclaredByChannel**](docs/Api/ReturnApi.md#returngetdeclaredbychannel) | **GET** /v2/returns/merchant | Merchant: Get Returns
105
+ *ReturnApi* | [**returnGetDeclaredByMerchant**](docs/Api/ReturnApi.md#returngetdeclaredbymerchant) | **GET** /v2/returns/channel | Channel: Get Returns
106
+ *ShipmentApi* | [**shipmentCreate**](docs/Api/ShipmentApi.md#shipmentcreate) | **POST** /v2/shipments | Merchant: Create Shipment
107
+ *ShipmentApi* | [**shipmentIndex**](docs/Api/ShipmentApi.md#shipmentindex) | **GET** /v2/shipments | Channel: Get Shipments
108
+ *ShipmentApi* | [**shipmentUpdate**](docs/Api/ShipmentApi.md#shipmentupdate) | **PUT** /v2/shipments/{merchantShipmentNo} | Merchant: Update Shipment
109
+
110
+
111
+ ## Documentation For Models
112
+
113
+ - [ApiResponse](docs/Model/ApiResponse.md)
114
+ - [BackOrder](docs/Model/BackOrder.md)
115
+ - [BackOrderLine](docs/Model/BackOrderLine.md)
116
+ - [ChannelCancellationLineResponse](docs/Model/ChannelCancellationLineResponse.md)
117
+ - [ChannelCancellationResponse](docs/Model/ChannelCancellationResponse.md)
118
+ - [ChannelOfferResponse](docs/Model/ChannelOfferResponse.md)
119
+ - [ChannelOrderLineRequest](docs/Model/ChannelOrderLineRequest.md)
120
+ - [ChannelOrderRequest](docs/Model/ChannelOrderRequest.md)
121
+ - [ChannelProcessedChangesRequest](docs/Model/ChannelProcessedChangesRequest.md)
122
+ - [ChannelProductChangesResponse](docs/Model/ChannelProductChangesResponse.md)
123
+ - [ChannelProductResponse](docs/Model/ChannelProductResponse.md)
124
+ - [ChannelReferencesRequest](docs/Model/ChannelReferencesRequest.md)
125
+ - [ChannelReturnLineRequest](docs/Model/ChannelReturnLineRequest.md)
126
+ - [ChannelReturnLineResponse](docs/Model/ChannelReturnLineResponse.md)
127
+ - [ChannelReturnRequest](docs/Model/ChannelReturnRequest.md)
128
+ - [ChannelReturnResponse](docs/Model/ChannelReturnResponse.md)
129
+ - [ChannelShipmentLineResponse](docs/Model/ChannelShipmentLineResponse.md)
130
+ - [ChannelShipmentResponse](docs/Model/ChannelShipmentResponse.md)
131
+ - [CollectionOfBackOrder](docs/Model/CollectionOfBackOrder.md)
132
+ - [CollectionOfChannelCancellationResponse](docs/Model/CollectionOfChannelCancellationResponse.md)
133
+ - [CollectionOfChannelOfferResponse](docs/Model/CollectionOfChannelOfferResponse.md)
134
+ - [CollectionOfChannelReturnResponse](docs/Model/CollectionOfChannelReturnResponse.md)
135
+ - [CollectionOfChannelShipmentResponse](docs/Model/CollectionOfChannelShipmentResponse.md)
136
+ - [CollectionOfMerchantOrderResponse](docs/Model/CollectionOfMerchantOrderResponse.md)
137
+ - [CollectionOfMerchantReturnResponse](docs/Model/CollectionOfMerchantReturnResponse.md)
138
+ - [EntitiesAddressModels](docs/Model/EntitiesAddressModels.md)
139
+ - [ExtraDataItem](docs/Model/ExtraDataItem.md)
140
+ - [MerchantCancellationLineRequest](docs/Model/MerchantCancellationLineRequest.md)
141
+ - [MerchantCancellationRequest](docs/Model/MerchantCancellationRequest.md)
142
+ - [MerchantOrderLineResponse](docs/Model/MerchantOrderLineResponse.md)
143
+ - [MerchantOrderResponse](docs/Model/MerchantOrderResponse.md)
144
+ - [MerchantProductRequest](docs/Model/MerchantProductRequest.md)
145
+ - [MerchantProductResponse](docs/Model/MerchantProductResponse.md)
146
+ - [MerchantReturnLineRequest](docs/Model/MerchantReturnLineRequest.md)
147
+ - [MerchantReturnLineResponse](docs/Model/MerchantReturnLineResponse.md)
148
+ - [MerchantReturnRequest](docs/Model/MerchantReturnRequest.md)
149
+ - [MerchantReturnResponse](docs/Model/MerchantReturnResponse.md)
150
+ - [MerchantShipmentLineRequest](docs/Model/MerchantShipmentLineRequest.md)
151
+ - [MerchantShipmentRequest](docs/Model/MerchantShipmentRequest.md)
152
+ - [MerchantShipmentTrackingRequest](docs/Model/MerchantShipmentTrackingRequest.md)
153
+ - [OrderAcknowledgement](docs/Model/OrderAcknowledgement.md)
154
+ - [ProductCreationResult](docs/Model/ProductCreationResult.md)
155
+ - [ProductMessage](docs/Model/ProductMessage.md)
156
+ - [SingleOfBackOrder](docs/Model/SingleOfBackOrder.md)
157
+ - [SingleOfChannelProductChangesResponse](docs/Model/SingleOfChannelProductChangesResponse.md)
158
+ - [SingleOfMerchantProductResponse](docs/Model/SingleOfMerchantProductResponse.md)
159
+ - [SingleOfProductCreationResult](docs/Model/SingleOfProductCreationResult.md)
160
+
161
+
162
+ ## Documentation For Authorization
163
+
164
+
165
+ ## apikey
166
+
167
+ - **Type**: API key
168
+ - **API key parameter name**: apikey
169
+ - **Location**: URL query string
170
+
171
+
172
+ ## Author
173
+
174
+
175
+
176
+
lib/ChannelEngine/vendor/channelengine/api-client/api-client.sublime-project ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "folders":
3
+ [
4
+ {
5
+ "follow_symlinks": true,
6
+ "path": "."
7
+ }
8
+ ]
9
+ }
lib/ChannelEngine/vendor/channelengine/api-client/autoload.php ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * ChannelEngine API V2
5
+ *
6
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
7
+ *
8
+ * OpenAPI spec version: v2
9
+ *
10
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ *
12
+ */
13
+
14
+ /**
15
+ * An example of a project-specific implementation.
16
+ *
17
+ * After registering this autoload function with SPL, the following line
18
+ * would cause the function to attempt to load the \ChannelEngine\ApiClient\Baz\Qux class
19
+ * from /path/to/project/lib/Baz/Qux.php:
20
+ *
21
+ * new \ChannelEngine\ApiClient\Baz\Qux;
22
+ *
23
+ * @param string $class The fully-qualified class name.
24
+ *
25
+ * @return void
26
+ */
27
+ spl_autoload_register(function ($class) {
28
+
29
+ // project-specific namespace prefix
30
+ $prefix = 'ChannelEngine\\ApiClient\\';
31
+
32
+ // base directory for the namespace prefix
33
+ $base_dir = __DIR__ . '/lib/';
34
+
35
+ // does the class use the namespace prefix?
36
+ $len = strlen($prefix);
37
+ if (strncmp($prefix, $class, $len) !== 0) {
38
+ // no, move to the next registered autoloader
39
+ return;
40
+ }
41
+
42
+ // get the relative class name
43
+ $relative_class = substr($class, $len);
44
+
45
+ // replace the namespace prefix with the base directory, replace namespace
46
+ // separators with directory separators in the relative class name, append
47
+ // with .php
48
+ $file = $base_dir . str_replace('\\', '/', $relative_class) . '.php';
49
+
50
+ // if the file exists, require it
51
+ if (file_exists($file)) {
52
+ require $file;
53
+ }
54
+ });
lib/ChannelEngine/vendor/channelengine/api-client/composer.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "channelengine/api-client",
3
+ "version": "2.1.0",
4
+ "description": "",
5
+ "keywords": [
6
+ "swagger",
7
+ "php",
8
+ "sdk",
9
+ "api"
10
+ ],
11
+ "homepage": "http://swagger.io",
12
+ "license": "proprietary",
13
+ "authors": [
14
+ {
15
+ "name": "Swagger and contributors",
16
+ "homepage": "https://github.com/swagger-api/swagger-codegen"
17
+ }
18
+ ],
19
+ "require": {
20
+ "php": ">=5.4",
21
+ "ext-curl": "*",
22
+ "ext-json": "*",
23
+ "ext-mbstring": "*"
24
+ },
25
+ "require-dev": {
26
+ "phpunit/phpunit": "~4.8",
27
+ "satooshi/php-coveralls": "~1.0",
28
+ "squizlabs/php_codesniffer": "~2.6",
29
+ "friendsofphp/php-cs-fixer": "~1.12"
30
+ },
31
+ "autoload": {
32
+ "psr-4": { "ChannelEngine\\ApiClient\\" : "lib/" }
33
+ },
34
+ "autoload-dev": {
35
+ "psr-4": { "ChannelEngine\\ApiClient\\" : "test/" }
36
+ }
37
+ }
lib/ChannelEngine/vendor/channelengine/api-client/docs/Api/BackOrderApi.md ADDED
@@ -0,0 +1,161 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ChannelEngine\ApiClient\BackOrderApi
2
+
3
+ All URIs are relative to *http://dev.channelengine.local/api*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**backOrderCreate**](BackOrderApi.md#backOrderCreate) | **POST** /v2/backorders | Merchant: Create Backorder
8
+ [**backOrderGet**](BackOrderApi.md#backOrderGet) | **GET** /v2/backorders/{merchantBackorderNo} | Merchant: Get Backorder
9
+ [**backOrderIndex**](BackOrderApi.md#backOrderIndex) | **GET** /v2/backorders | Get Backorders
10
+
11
+
12
+ # **backOrderCreate**
13
+ > \ChannelEngine\ApiClient\Model\ApiResponse backOrderCreate($backOrder)
14
+
15
+ Merchant: Create Backorder
16
+
17
+ Mark (part of) an order as in backorder.
18
+
19
+ ### Example
20
+ ```php
21
+ <?php
22
+ require_once(__DIR__ . '/vendor/autoload.php');
23
+
24
+ // Configure API key authorization: apikey
25
+ ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
26
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
27
+ // ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');
28
+
29
+ $api_instance = new ChannelEngine\ApiClient\Api\BackOrderApi();
30
+ $backOrder = new \ChannelEngine\ApiClient\Model\BackOrder(); // \ChannelEngine\ApiClient\Model\BackOrder | The Backorder to create
31
+
32
+ try {
33
+ $result = $api_instance->backOrderCreate($backOrder);
34
+ print_r($result);
35
+ } catch (Exception $e) {
36
+ echo 'Exception when calling BackOrderApi->backOrderCreate: ', $e->getMessage(), PHP_EOL;
37
+ }
38
+ ?>
39
+ ```
40
+
41
+ ### Parameters
42
+
43
+ Name | Type | Description | Notes
44
+ ------------- | ------------- | ------------- | -------------
45
+ **backOrder** | [**\ChannelEngine\ApiClient\Model\BackOrder**](../Model/\ChannelEngine\ApiClient\Model\BackOrder.md)| The Backorder to create |
46
+
47
+ ### Return type
48
+
49
+ [**\ChannelEngine\ApiClient\Model\ApiResponse**](../Model/ApiResponse.md)
50
+
51
+ ### Authorization
52
+
53
+ [apikey](../../README.md#apikey)
54
+
55
+ ### HTTP request headers
56
+
57
+ - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
58
+ - **Accept**: application/json, text/json
59
+
60
+ [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
61
+
62
+ # **backOrderGet**
63
+ > \ChannelEngine\ApiClient\Model\SingleOfBackOrder backOrderGet($merchantBackorderNo)
64
+
65
+ Merchant: Get Backorder
66
+
67
+ Retrieve a backorder by its reference. A back order references the order which is temporarly out of stock.
68
+
69
+ ### Example
70
+ ```php
71
+ <?php
72
+ require_once(__DIR__ . '/vendor/autoload.php');
73
+
74
+ // Configure API key authorization: apikey
75
+ ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
76
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
77
+ // ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');
78
+
79
+ $api_instance = new ChannelEngine\ApiClient\Api\BackOrderApi();
80
+ $merchantBackorderNo = "merchantBackorderNo_example"; // string | The unique backorder reference supplied by the merchant
81
+
82
+ try {
83
+ $result = $api_instance->backOrderGet($merchantBackorderNo);
84
+ print_r($result);
85
+ } catch (Exception $e) {
86
+ echo 'Exception when calling BackOrderApi->backOrderGet: ', $e->getMessage(), PHP_EOL;
87
+ }
88
+ ?>
89
+ ```
90
+
91
+ ### Parameters
92
+
93
+ Name | Type | Description | Notes
94
+ ------------- | ------------- | ------------- | -------------
95
+ **merchantBackorderNo** | **string**| The unique backorder reference supplied by the merchant |
96
+
97
+ ### Return type
98
+
99
+ [**\ChannelEngine\ApiClient\Model\SingleOfBackOrder**](../Model/SingleOfBackOrder.md)
100
+
101
+ ### Authorization
102
+
103
+ [apikey](../../README.md#apikey)
104
+
105
+ ### HTTP request headers
106
+
107
+ - **Content-Type**: Not defined
108
+ - **Accept**: application/json, text/json
109
+
110
+ [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
111
+
112
+ # **backOrderIndex**
113
+ > \ChannelEngine\ApiClient\Model\CollectionOfBackOrder backOrderIndex($createdSince)
114
+
115
+ Get Backorders
116
+
117
+ Gets all backorders created since the supplied date.
118
+
119
+ ### Example
120
+ ```php
121
+ <?php
122
+ require_once(__DIR__ . '/vendor/autoload.php');
123
+
124
+ // Configure API key authorization: apikey
125
+ ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
126
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
127
+ // ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');
128
+
129
+ $api_instance = new ChannelEngine\ApiClient\Api\BackOrderApi();
130
+ $createdSince = new \DateTime(); // \DateTime |
131
+
132
+ try {
133
+ $result = $api_instance->backOrderIndex($createdSince);
134
+ print_r($result);
135
+ } catch (Exception $e) {
136
+ echo 'Exception when calling BackOrderApi->backOrderIndex: ', $e->getMessage(), PHP_EOL;
137
+ }
138
+ ?>
139
+ ```
140
+
141
+ ### Parameters
142
+
143
+ Name | Type | Description | Notes
144
+ ------------- | ------------- | ------------- | -------------
145
+ **createdSince** | **\DateTime**| |
146
+
147
+ ### Return type
148
+
149
+ [**\ChannelEngine\ApiClient\Model\CollectionOfBackOrder**](../Model/CollectionOfBackOrder.md)
150
+
151
+ ### Authorization
152
+
153
+ [apikey](../../README.md#apikey)
154
+
155
+ ### HTTP request headers
156
+
157
+ - **Content-Type**: Not defined
158
+ - **Accept**: application/json, text/json
159
+
160
+ [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
161
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Api/CancellationApi.md ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ChannelEngine\ApiClient\CancellationApi
2
+
3
+ All URIs are relative to *http://dev.channelengine.local/api*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**cancellationCreate**](CancellationApi.md#cancellationCreate) | **POST** /v2/cancellations | Merchant: Create Cancellation
8
+ [**cancellationIndex**](CancellationApi.md#cancellationIndex) | **GET** /v2/cancellations | Channel: Get Cancellations
9
+
10
+
11
+ # **cancellationCreate**
12
+ > \ChannelEngine\ApiClient\Model\ApiResponse cancellationCreate($cancellation)
13
+
14
+ Merchant: Create Cancellation
15
+
16
+ For merchants. Mark (part of) an order as cancelled.
17
+
18
+ ### Example
19
+ ```php
20
+ <?php
21
+ require_once(__DIR__ . '/vendor/autoload.php');
22
+
23
+ // Configure API key authorization: apikey
24
+ ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
25
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
26
+ // ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');
27
+
28
+ $api_instance = new ChannelEngine\ApiClient\Api\CancellationApi();
29
+ $cancellation = new \ChannelEngine\ApiClient\Model\MerchantCancellationRequest(); // \ChannelEngine\ApiClient\Model\MerchantCancellationRequest |
30
+
31
+ try {
32
+ $result = $api_instance->cancellationCreate($cancellation);
33
+ print_r($result);
34
+ } catch (Exception $e) {
35
+ echo 'Exception when calling CancellationApi->cancellationCreate: ', $e->getMessage(), PHP_EOL;
36
+ }
37
+ ?>
38
+ ```
39
+
40
+ ### Parameters
41
+
42
+ Name | Type | Description | Notes
43
+ ------------- | ------------- | ------------- | -------------
44
+ **cancellation** | [**\ChannelEngine\ApiClient\Model\MerchantCancellationRequest**](../Model/\ChannelEngine\ApiClient\Model\MerchantCancellationRequest.md)| |
45
+
46
+ ### Return type
47
+
48
+ [**\ChannelEngine\ApiClient\Model\ApiResponse**](../Model/ApiResponse.md)
49
+
50
+ ### Authorization
51
+
52
+ [apikey](../../README.md#apikey)
53
+
54
+ ### HTTP request headers
55
+
56
+ - **Content-Type**: application/json, text/json, application/x-www-form-urlencoded
57
+ - **Accept**: application/json, text/json
58
+
59
+ [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
60
+
61
+ # **cancellationIndex**
62
+ > \ChannelEngine\ApiClient\Model\CollectionOfChannelCancellationResponse cancellationIndex($createdSince)
63
+
64
+ Channel: Get Cancellations
65
+
66
+ For channels. Gets all cancellations created since the supplied date.
67
+
68
+ ### Example
69
+ ```php
70
+ <?php
71
+ require_once(__DIR__ . '/vendor/autoload.php');
72
+
73
+ // Configure API key authorization: apikey
74
+ ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
75
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
76
+ // ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');
77
+
78
+ $api_instance = new ChannelEngine\ApiClient\Api\CancellationApi();
79
+ $createdSince = new \DateTime(); // \DateTime |
80
+
81
+ try {
82
+ $result = $api_instance->cancellationIndex($createdSince);
83
+ print_r($result);
84
+ } catch (Exception $e) {
85
+ echo 'Exception when calling CancellationApi->cancellationIndex: ', $e->getMessage(), PHP_EOL;
86
+ }
87
+ ?>
88
+ ```
89
+
90
+ ### Parameters
91
+
92
+ Name | Type | Description | Notes
93
+ ------------- | ------------- | ------------- | -------------
94
+ **createdSince** | **\DateTime**| |
95
+
96
+ ### Return type
97
+
98
+ [**\ChannelEngine\ApiClient\Model\CollectionOfChannelCancellationResponse**](../Model/CollectionOfChannelCancellationResponse.md)
99
+
100
+ ### Authorization
101
+
102
+ [apikey](../../README.md#apikey)
103
+
104
+ ### HTTP request headers
105
+
106
+ - **Content-Type**: Not defined
107
+ - **Accept**: application/json, text/json
108
+
109
+ [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
110
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Api/ClientApi.md ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ChannelEngine\ApiClient\ClientApi
2
+
3
+ All URIs are relative to *http://dev.channelengine.local/api*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**clientGet**](ClientApi.md#clientGet) | **GET** /v2/clients/{language} | Get API Client
8
+
9
+
10
+ # **clientGet**
11
+ > \SplFileObject clientGet($language)
12
+
13
+ Get API Client
14
+
15
+ This call generates a Swagger API client and returns it as a ZIP
16
+
17
+ ### Example
18
+ ```php
19
+ <?php
20
+ require_once(__DIR__ . '/vendor/autoload.php');
21
+
22
+ // Configure API key authorization: apikey
23
+ ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
24
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
25
+ // ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');
26
+
27
+ $api_instance = new ChannelEngine\ApiClient\Api\ClientApi();
28
+ $language = "language_example"; // string | The programming language
29
+
30
+ try {
31
+ $result = $api_instance->clientGet($language);
32
+ print_r($result);
33
+ } catch (Exception $e) {
34
+ echo 'Exception when calling ClientApi->clientGet: ', $e->getMessage(), PHP_EOL;
35
+ }
36
+ ?>
37
+ ```
38
+
39
+ ### Parameters
40
+
41
+ Name | Type | Description | Notes
42
+ ------------- | ------------- | ------------- | -------------
43
+ **language** | **string**| The programming language |
44
+
45
+ ### Return type
46
+
47
+ [**\SplFileObject**](../Model/\SplFileObject.md)
48
+
49
+ ### Authorization
50
+
51
+ [apikey](../../README.md#apikey)
52
+
53
+ ### HTTP request headers
54
+
55
+ - **Content-Type**: Not defined
56
+ - **Accept**: application/zip
57
+
58
+ [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
59
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Api/OrderApi.md ADDED
@@ -0,0 +1,263 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ChannelEngine\ApiClient\OrderApi
2
+
3
+ All URIs are relative to *http://dev.channelengine.local/api*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**orderAcknowledge**](OrderApi.md#orderAcknowledge) | **POST** /v2/orders/acknowledge | Merchant: Acknowledge Order
8
+ [**orderCreate**](OrderApi.md#orderCreate) | **POST** /v2/orders | Channel: Create Order
9
+ [**orderGetNew**](OrderApi.md#orderGetNew) | **GET** /v2/orders/new | Merchant: Get New Orders
10
+ [**orderInvoice**](OrderApi.md#orderInvoice) | **GET** /v2/orders/{merchantOrderNo}/invoice | Merchant: Download Invoice
11
+ [**orderPackingSlip**](OrderApi.md#orderPackingSlip) | **GET** /v2/orders/{merchantOrderNo}/packingslip | Merchant: Download Packing Slip
12
+
13
+
14
+ # **orderAcknowledge**
15
+ > \ChannelEngine\ApiClient\Model\ApiResponse orderAcknowledge($model)
16
+
17
+ Merchant: Acknowledge Order
18
+
19
+ For merchants. Acknowledge an order. By acknowledging the order the merchant can confirm that the order has been imported. When acknowledging an order the merchant has to supply references that uniquely identify the order and the order lines. These references will be used in the other API calls.
20
+
21
+ ### Example
22
+ ```php
23
+ <?php
24
+ require_once(__DIR__ . '/vendor/autoload.php');
25
+
26
+ // Configure API key authorization: apikey
27
+ ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
28
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
29
+ // ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');
30
+
31
+ $api_instance = new ChannelEngine\ApiClient\Api\OrderApi();
32
+ $model = new \ChannelEngine\ApiClient\Model\OrderAcknowledgement(); // \ChannelEngine\ApiClient\Model\OrderAcknowledgement | Relations between the id's returned by ChannelEngine and the references which the merchant uses
33
+
34
+ try {
35
+ $result = $api_instance->orderAcknowledge($model);
36
+ print_r($result);
37
+ } catch (Exception $e) {
38
+ echo 'Exception when calling OrderApi->orderAcknowledge: ', $e->getMessage(), PHP_EOL;
39
+ }
40
+ ?>
41
+ ```
42
+
43
+ ### Parameters
44
+
45
+ Name | Type | Description | Notes
46
+ ------------- | ------------- | ------------- | -------------
47
+ **model** | [**\ChannelEngine\ApiClient\Model\OrderAcknowledgement**](../Model/\ChannelEngine\ApiClient\Model\OrderAcknowledgement.md)| Relations between the id&#39;s returned by ChannelEngine and the references which the merchant uses |
48
+
49
+ ### Return type
50
+
51
+ [**\ChannelEngine\ApiClient\Model\ApiResponse**](../Model/ApiResponse.md)
52
+
53
+ ### Authorization
54
+
55
+ [apikey](../../README.md#apikey)
56
+
57
+ ### HTTP request headers
58
+
59
+ - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
60
+ - **Accept**: application/json, text/json
61
+
62
+ [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
63
+
64
+ # **orderCreate**
65
+ > \ChannelEngine\ApiClient\Model\ApiResponse orderCreate($model)
66
+
67
+ Channel: Create Order
68
+
69
+ For channels. Create a new order in ChannelEngine.
70
+
71
+ ### Example
72
+ ```php
73
+ <?php
74
+ require_once(__DIR__ . '/vendor/autoload.php');
75
+
76
+ // Configure API key authorization: apikey
77
+ ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
78
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
79
+ // ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');
80
+
81
+ $api_instance = new ChannelEngine\ApiClient\Api\OrderApi();
82
+ $model = new \ChannelEngine\ApiClient\Model\ChannelOrderRequest(); // \ChannelEngine\ApiClient\Model\ChannelOrderRequest |
83
+
84
+ try {
85
+ $result = $api_instance->orderCreate($model);
86
+ print_r($result);
87
+ } catch (Exception $e) {
88
+ echo 'Exception when calling OrderApi->orderCreate: ', $e->getMessage(), PHP_EOL;
89
+ }
90
+ ?>
91
+ ```
92
+
93
+ ### Parameters
94
+
95
+ Name | Type | Description | Notes
96
+ ------------- | ------------- | ------------- | -------------
97
+ **model** | [**\ChannelEngine\ApiClient\Model\ChannelOrderRequest**](../Model/\ChannelEngine\ApiClient\Model\ChannelOrderRequest.md)| |
98
+
99
+ ### Return type
100
+
101
+ [**\ChannelEngine\ApiClient\Model\ApiResponse**](../Model/ApiResponse.md)
102
+
103
+ ### Authorization
104
+
105
+ [apikey](../../README.md#apikey)
106
+
107
+ ### HTTP request headers
108
+
109
+ - **Content-Type**: application/json, text/json, application/x-www-form-urlencoded
110
+ - **Accept**: application/json, text/json
111
+
112
+ [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
113
+
114
+ # **orderGetNew**
115
+ > \ChannelEngine\ApiClient\Model\CollectionOfMerchantOrderResponse orderGetNew()
116
+
117
+ Merchant: Get New Orders
118
+
119
+ For merchants. Fetch newly placed orders (order with status NEW).
120
+
121
+ ### Example
122
+ ```php
123
+ <?php
124
+ require_once(__DIR__ . '/vendor/autoload.php');
125
+
126
+ // Configure API key authorization: apikey
127
+ ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
128
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
129
+ // ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');
130
+
131
+ $api_instance = new ChannelEngine\ApiClient\Api\OrderApi();
132
+
133
+ try {
134
+ $result = $api_instance->orderGetNew();
135
+ print_r($result);
136
+ } catch (Exception $e) {
137
+ echo 'Exception when calling OrderApi->orderGetNew: ', $e->getMessage(), PHP_EOL;
138
+ }
139
+ ?>
140
+ ```
141
+
142
+ ### Parameters
143
+ This endpoint does not need any parameter.
144
+
145
+ ### Return type
146
+
147
+ [**\ChannelEngine\ApiClient\Model\CollectionOfMerchantOrderResponse**](../Model/CollectionOfMerchantOrderResponse.md)
148
+
149
+ ### Authorization
150
+
151
+ [apikey](../../README.md#apikey)
152
+
153
+ ### HTTP request headers
154
+
155
+ - **Content-Type**: Not defined
156
+ - **Accept**: application/json, text/json
157
+
158
+ [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
159
+
160
+ # **orderInvoice**
161
+ > \SplFileObject orderInvoice($merchantOrderNo, $useCustomerCulture)
162
+
163
+ Merchant: Download Invoice
164
+
165
+ For merchants. Generates the ChannelEngine VAT invoice for this order in PDF
166
+
167
+ ### Example
168
+ ```php
169
+ <?php
170
+ require_once(__DIR__ . '/vendor/autoload.php');
171
+
172
+ // Configure API key authorization: apikey
173
+ ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
174
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
175
+ // ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');
176
+
177
+ $api_instance = new ChannelEngine\ApiClient\Api\OrderApi();
178
+ $merchantOrderNo = "merchantOrderNo_example"; // string | The unique order reference as used by the merchant
179
+ $useCustomerCulture = true; // bool | Generate the invoice in the billing address' country's language
180
+
181
+ try {
182
+ $result = $api_instance->orderInvoice($merchantOrderNo, $useCustomerCulture);
183
+ print_r($result);
184
+ } catch (Exception $e) {
185
+ echo 'Exception when calling OrderApi->orderInvoice: ', $e->getMessage(), PHP_EOL;
186
+ }
187
+ ?>
188
+ ```
189
+
190
+ ### Parameters
191
+
192
+ Name | Type | Description | Notes
193
+ ------------- | ------------- | ------------- | -------------
194
+ **merchantOrderNo** | **string**| The unique order reference as used by the merchant |
195
+ **useCustomerCulture** | **bool**| Generate the invoice in the billing address&#39; country&#39;s language | [optional]
196
+
197
+ ### Return type
198
+
199
+ [**\SplFileObject**](../Model/\SplFileObject.md)
200
+
201
+ ### Authorization
202
+
203
+ [apikey](../../README.md#apikey)
204
+
205
+ ### HTTP request headers
206
+
207
+ - **Content-Type**: Not defined
208
+ - **Accept**: application/pdf
209
+
210
+ [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
211
+
212
+ # **orderPackingSlip**
213
+ > \SplFileObject orderPackingSlip($merchantOrderNo, $useCustomerCulture)
214
+
215
+ Merchant: Download Packing Slip
216
+
217
+ For merchants. Generates the ChannelEngine packing slip for this order in PDF
218
+
219
+ ### Example
220
+ ```php
221
+ <?php
222
+ require_once(__DIR__ . '/vendor/autoload.php');
223
+
224
+ // Configure API key authorization: apikey
225
+ ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
226
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
227
+ // ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');
228
+
229
+ $api_instance = new ChannelEngine\ApiClient\Api\OrderApi();
230
+ $merchantOrderNo = "merchantOrderNo_example"; // string | The unique order reference as used by the merchant
231
+ $useCustomerCulture = true; // bool | Generate the invoice in the billing address' country's language
232
+
233
+ try {
234
+ $result = $api_instance->orderPackingSlip($merchantOrderNo, $useCustomerCulture);
235
+ print_r($result);
236
+ } catch (Exception $e) {
237
+ echo 'Exception when calling OrderApi->orderPackingSlip: ', $e->getMessage(), PHP_EOL;
238
+ }
239
+ ?>
240
+ ```
241
+
242
+ ### Parameters
243
+
244
+ Name | Type | Description | Notes
245
+ ------------- | ------------- | ------------- | -------------
246
+ **merchantOrderNo** | **string**| The unique order reference as used by the merchant |
247
+ **useCustomerCulture** | **bool**| Generate the invoice in the billing address&#39; country&#39;s language | [optional]
248
+
249
+ ### Return type
250
+
251
+ [**\SplFileObject**](../Model/\SplFileObject.md)
252
+
253
+ ### Authorization
254
+
255
+ [apikey](../../README.md#apikey)
256
+
257
+ ### HTTP request headers
258
+
259
+ - **Content-Type**: Not defined
260
+ - **Accept**: application/pdf
261
+
262
+ [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
263
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Api/ProductApi.md ADDED
@@ -0,0 +1,361 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ChannelEngine\ApiClient\ProductApi
2
+
3
+ All URIs are relative to *http://dev.channelengine.local/api*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**productAcknowledgeDataChanges**](ProductApi.md#productAcknowledgeDataChanges) | **POST** /v2/products/data | Channel: Acknowledge Product Data Changes
8
+ [**productAcknowledgeOfferChanges**](ProductApi.md#productAcknowledgeOfferChanges) | **POST** /v2/products/offers | Channel: Acknowledge Product Offer Changes
9
+ [**productCreate**](ProductApi.md#productCreate) | **POST** /v2/products | Merchant: Create Product
10
+ [**productDelete**](ProductApi.md#productDelete) | **DELETE** /v2/products/{merchantProductNo} | Merchant: Delete Product
11
+ [**productGetByMerchantProductNo**](ProductApi.md#productGetByMerchantProductNo) | **GET** /v2/products/merchant/{merchantProductNo} | Merchant: Get Product
12
+ [**productGetDataChanges**](ProductApi.md#productGetDataChanges) | **GET** /v2/products/data | Channel: Get Product Data Changes
13
+ [**productGetOfferChanges**](ProductApi.md#productGetOfferChanges) | **GET** /v2/products/offers | Channel: Get Product Offer Changes
14
+
15
+
16
+ # **productAcknowledgeDataChanges**
17
+ > \ChannelEngine\ApiClient\Model\ApiResponse productAcknowledgeDataChanges($changes)
18
+
19
+ Channel: Acknowledge Product Data Changes
20
+
21
+ For channels. This endpoint should be called after a call to GET 'v2/products/data'. After a call to this endpoint ChannelEngine 'knows' which products are known to the channel (and the last time they have been updated) and is therefore able to only return the products that really have changed since the last call to POST 'v2/products/data'. The supplied ChannelReturnNo will be saved in our database and is supposed to be unique, the 'Updated' and 'Removed' fields consist of ChannelReferences which are sent in a previous call within the field 'Created'.
22
+
23
+ ### Example
24
+ ```php
25
+ <?php
26
+ require_once(__DIR__ . '/vendor/autoload.php');
27
+
28
+ // Configure API key authorization: apikey
29
+ ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
30
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
31
+ // ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');
32
+
33
+ $api_instance = new ChannelEngine\ApiClient\Api\ProductApi();
34
+ $changes = new \ChannelEngine\ApiClient\Model\ChannelProcessedChangesRequest(); // \ChannelEngine\ApiClient\Model\ChannelProcessedChangesRequest | The merchant references of the products which have been successfully created, updated or deleted (after a call to 'GetDataChanges')
35
+
36
+ try {
37
+ $result = $api_instance->productAcknowledgeDataChanges($changes);
38
+ print_r($result);
39
+ } catch (Exception $e) {
40
+ echo 'Exception when calling ProductApi->productAcknowledgeDataChanges: ', $e->getMessage(), PHP_EOL;
41
+ }
42
+ ?>
43
+ ```
44
+
45
+ ### Parameters
46
+
47
+ Name | Type | Description | Notes
48
+ ------------- | ------------- | ------------- | -------------
49
+ **changes** | [**\ChannelEngine\ApiClient\Model\ChannelProcessedChangesRequest**](../Model/\ChannelEngine\ApiClient\Model\ChannelProcessedChangesRequest.md)| The merchant references of the products which have been successfully created, updated or deleted (after a call to &#39;GetDataChanges&#39;) |
50
+
51
+ ### Return type
52
+
53
+ [**\ChannelEngine\ApiClient\Model\ApiResponse**](../Model/ApiResponse.md)
54
+
55
+ ### Authorization
56
+
57
+ [apikey](../../README.md#apikey)
58
+
59
+ ### HTTP request headers
60
+
61
+ - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
62
+ - **Accept**: application/json, text/json
63
+
64
+ [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
65
+
66
+ # **productAcknowledgeOfferChanges**
67
+ > \ChannelEngine\ApiClient\Model\ApiResponse productAcknowledgeOfferChanges($changes)
68
+
69
+ Channel: Acknowledge Product Offer Changes
70
+
71
+ For channels. After a call to GET 'v2/products/offers' this endpoint should be called with the ChannelReturnNo of the products that are successfully updated. Please see 'v2/products/data' and 'v2/products/data' for documentation.
72
+
73
+ ### Example
74
+ ```php
75
+ <?php
76
+ require_once(__DIR__ . '/vendor/autoload.php');
77
+
78
+ // Configure API key authorization: apikey
79
+ ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
80
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
81
+ // ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');
82
+
83
+ $api_instance = new ChannelEngine\ApiClient\Api\ProductApi();
84
+ $changes = array(new string[]()); // string[] | The channel references of the updated products
85
+
86
+ try {
87
+ $result = $api_instance->productAcknowledgeOfferChanges($changes);
88
+ print_r($result);
89
+ } catch (Exception $e) {
90
+ echo 'Exception when calling ProductApi->productAcknowledgeOfferChanges: ', $e->getMessage(), PHP_EOL;
91
+ }
92
+ ?>
93
+ ```
94
+
95
+ ### Parameters
96
+
97
+ Name | Type | Description | Notes
98
+ ------------- | ------------- | ------------- | -------------
99
+ **changes** | **string[]**| The channel references of the updated products |
100
+
101
+ ### Return type
102
+
103
+ [**\ChannelEngine\ApiClient\Model\ApiResponse**](../Model/ApiResponse.md)
104
+
105
+ ### Authorization
106
+
107
+ [apikey](../../README.md#apikey)
108
+
109
+ ### HTTP request headers
110
+
111
+ - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
112
+ - **Accept**: application/json, text/json
113
+
114
+ [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
115
+
116
+ # **productCreate**
117
+ > \ChannelEngine\ApiClient\Model\SingleOfProductCreationResult productCreate($products)
118
+
119
+ Merchant: Create Product
120
+
121
+ For merchants. Create a product. The parent serves as the 'base' product of the children. For example, the children could be different sizes or colors of the parent product. For channels where every size and color are different products this does not make any difference (the children will just be sent separately, while ignoring the parent). But there are channels where the parent and the children need to be sent together, for example when there is one product with a list of sizes. In this case all the product information is retrieved from the parent product while the size list is generated from the children. Note that the parent itself is a 'blueprint' of the child products and we do our best to make sure it does not end up on the marketplaces itself. Only the children can be purchased. It's not possible to nest parent and children more than one level (A parent can have many children, but any child cannot itself also have children). The supplied MerchantProductNo needs to be unique.
122
+
123
+ ### Example
124
+ ```php
125
+ <?php
126
+ require_once(__DIR__ . '/vendor/autoload.php');
127
+
128
+ // Configure API key authorization: apikey
129
+ ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
130
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
131
+ // ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');
132
+
133
+ $api_instance = new ChannelEngine\ApiClient\Api\ProductApi();
134
+ $products = array(new MerchantProductRequest()); // \ChannelEngine\ApiClient\Model\MerchantProductRequest[] |
135
+
136
+ try {
137
+ $result = $api_instance->productCreate($products);
138
+ print_r($result);
139
+ } catch (Exception $e) {
140
+ echo 'Exception when calling ProductApi->productCreate: ', $e->getMessage(), PHP_EOL;
141
+ }
142
+ ?>
143
+ ```
144
+
145
+ ### Parameters
146
+
147
+ Name | Type | Description | Notes
148
+ ------------- | ------------- | ------------- | -------------
149
+ **products** | [**\ChannelEngine\ApiClient\Model\MerchantProductRequest[]**](../Model/MerchantProductRequest.md)| |
150
+
151
+ ### Return type
152
+
153
+ [**\ChannelEngine\ApiClient\Model\SingleOfProductCreationResult**](../Model/SingleOfProductCreationResult.md)
154
+
155
+ ### Authorization
156
+
157
+ [apikey](../../README.md#apikey)
158
+
159
+ ### HTTP request headers
160
+
161
+ - **Content-Type**: application/json, text/json, application/x-www-form-urlencoded
162
+ - **Accept**: application/json, text/json
163
+
164
+ [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
165
+
166
+ # **productDelete**
167
+ > \ChannelEngine\ApiClient\Model\ApiResponse productDelete($merchantProductNo)
168
+
169
+ Merchant: Delete Product
170
+
171
+ For merchants. Deactivate a product based on the merchant reference. Note that we do not really delete a product, as the product might still be referenced by orders etc. Therefore, the references used for this product cannot be reused. We do however deactivate the product which means that it will not be sent to channels.
172
+
173
+ ### Example
174
+ ```php
175
+ <?php
176
+ require_once(__DIR__ . '/vendor/autoload.php');
177
+
178
+ // Configure API key authorization: apikey
179
+ ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
180
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
181
+ // ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');
182
+
183
+ $api_instance = new ChannelEngine\ApiClient\Api\ProductApi();
184
+ $merchantProductNo = "merchantProductNo_example"; // string |
185
+
186
+ try {
187
+ $result = $api_instance->productDelete($merchantProductNo);
188
+ print_r($result);
189
+ } catch (Exception $e) {
190
+ echo 'Exception when calling ProductApi->productDelete: ', $e->getMessage(), PHP_EOL;
191
+ }
192
+ ?>
193
+ ```
194
+
195
+ ### Parameters
196
+
197
+ Name | Type | Description | Notes
198
+ ------------- | ------------- | ------------- | -------------
199
+ **merchantProductNo** | **string**| |
200
+
201
+ ### Return type
202
+
203
+ [**\ChannelEngine\ApiClient\Model\ApiResponse**](../Model/ApiResponse.md)
204
+
205
+ ### Authorization
206
+
207
+ [apikey](../../README.md#apikey)
208
+
209
+ ### HTTP request headers
210
+
211
+ - **Content-Type**: Not defined
212
+ - **Accept**: application/json, text/json
213
+
214
+ [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
215
+
216
+ # **productGetByMerchantProductNo**
217
+ > \ChannelEngine\ApiClient\Model\SingleOfMerchantProductResponse productGetByMerchantProductNo($merchantProductNo)
218
+
219
+ Merchant: Get Product
220
+
221
+ For merchants. Retrieve a product based on the merchant reference.
222
+
223
+ ### Example
224
+ ```php
225
+ <?php
226
+ require_once(__DIR__ . '/vendor/autoload.php');
227
+
228
+ // Configure API key authorization: apikey
229
+ ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
230
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
231
+ // ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');
232
+
233
+ $api_instance = new ChannelEngine\ApiClient\Api\ProductApi();
234
+ $merchantProductNo = "merchantProductNo_example"; // string |
235
+
236
+ try {
237
+ $result = $api_instance->productGetByMerchantProductNo($merchantProductNo);
238
+ print_r($result);
239
+ } catch (Exception $e) {
240
+ echo 'Exception when calling ProductApi->productGetByMerchantProductNo: ', $e->getMessage(), PHP_EOL;
241
+ }
242
+ ?>
243
+ ```
244
+
245
+ ### Parameters
246
+
247
+ Name | Type | Description | Notes
248
+ ------------- | ------------- | ------------- | -------------
249
+ **merchantProductNo** | **string**| |
250
+
251
+ ### Return type
252
+
253
+ [**\ChannelEngine\ApiClient\Model\SingleOfMerchantProductResponse**](../Model/SingleOfMerchantProductResponse.md)
254
+
255
+ ### Authorization
256
+
257
+ [apikey](../../README.md#apikey)
258
+
259
+ ### HTTP request headers
260
+
261
+ - **Content-Type**: Not defined
262
+ - **Accept**: application/json, text/json
263
+
264
+ [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
265
+
266
+ # **productGetDataChanges**
267
+ > \ChannelEngine\ApiClient\Model\SingleOfChannelProductChangesResponse productGetDataChanges($maxCount)
268
+
269
+ Channel: Get Product Data Changes
270
+
271
+ For channels. Get all products which have changes since the post http call to POST 'v2/products/data'. The response contains the products which should be created, updated or removed from the channel. After the products have been received and processed successfully 'v2/products/data' should be called with the merchant references of the products which have been processed (see POST 'v2/products/data'). ChannelEnginewill save this information to make sure that the next call to GET 'v2/products/data' only returns the products that really have changes (and therefore should be created, updated or deleted). A channel willing to integrate with channelengine should therefore only do the following things: 1. Periodically poll 'v2/products/data' for changes. 2. If any products are returned, save, update or remove these products. 3. Send the merchant references of the products that have succesfully been processed in step 2 to POST 'v2/products/data'. These three simple steps will make sure that the products on the channel will be synchronized with the products on ChannelEngine. ChannelEngine will use the API key to determine the customer whose products should be returned. Note that child products are only returned if their parent product has been acknowledged in a previous transaction. This way ChannelEngine knows the value of 'ChannelParentReference'.
272
+
273
+ ### Example
274
+ ```php
275
+ <?php
276
+ require_once(__DIR__ . '/vendor/autoload.php');
277
+
278
+ // Configure API key authorization: apikey
279
+ ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
280
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
281
+ // ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');
282
+
283
+ $api_instance = new ChannelEngine\ApiClient\Api\ProductApi();
284
+ $maxCount = 56; // int | Optional - limit the amount of products returned for each field (ToBeCreated, ToBeUpdated, ToBeRemoved) to this number.
285
+
286
+ try {
287
+ $result = $api_instance->productGetDataChanges($maxCount);
288
+ print_r($result);
289
+ } catch (Exception $e) {
290
+ echo 'Exception when calling ProductApi->productGetDataChanges: ', $e->getMessage(), PHP_EOL;
291
+ }
292
+ ?>
293
+ ```
294
+
295
+ ### Parameters
296
+
297
+ Name | Type | Description | Notes
298
+ ------------- | ------------- | ------------- | -------------
299
+ **maxCount** | **int**| Optional - limit the amount of products returned for each field (ToBeCreated, ToBeUpdated, ToBeRemoved) to this number. | [optional]
300
+
301
+ ### Return type
302
+
303
+ [**\ChannelEngine\ApiClient\Model\SingleOfChannelProductChangesResponse**](../Model/SingleOfChannelProductChangesResponse.md)
304
+
305
+ ### Authorization
306
+
307
+ [apikey](../../README.md#apikey)
308
+
309
+ ### HTTP request headers
310
+
311
+ - **Content-Type**: Not defined
312
+ - **Accept**: application/json, text/json
313
+
314
+ [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
315
+
316
+ # **productGetOfferChanges**
317
+ > \ChannelEngine\ApiClient\Model\CollectionOfChannelOfferResponse productGetOfferChanges()
318
+
319
+ Channel: Get Product Offer Changes
320
+
321
+ For channels. GET 'v2/products/offers' and POST 'v2/products/offers' closely resemble GET 'v2/products/data' and POST 'v2/products/data'. See the 'v2/products/data' endpoints for documentation. The difference between both endpoints is that 'v2/products/offers' only returns Price and Stock updates and can (and should) therefore be called more often to keep this information (which might change frequently) up to date.
322
+
323
+ ### Example
324
+ ```php
325
+ <?php
326
+ require_once(__DIR__ . '/vendor/autoload.php');
327
+
328
+ // Configure API key authorization: apikey
329
+ ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
330
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
331
+ // ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');
332
+
333
+ $api_instance = new ChannelEngine\ApiClient\Api\ProductApi();
334
+
335
+ try {
336
+ $result = $api_instance->productGetOfferChanges();
337
+ print_r($result);
338
+ } catch (Exception $e) {
339
+ echo 'Exception when calling ProductApi->productGetOfferChanges: ', $e->getMessage(), PHP_EOL;
340
+ }
341
+ ?>
342
+ ```
343
+
344
+ ### Parameters
345
+ This endpoint does not need any parameter.
346
+
347
+ ### Return type
348
+
349
+ [**\ChannelEngine\ApiClient\Model\CollectionOfChannelOfferResponse**](../Model/CollectionOfChannelOfferResponse.md)
350
+
351
+ ### Authorization
352
+
353
+ [apikey](../../README.md#apikey)
354
+
355
+ ### HTTP request headers
356
+
357
+ - **Content-Type**: Not defined
358
+ - **Accept**: application/json, text/json
359
+
360
+ [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
361
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Api/ReturnApi.md ADDED
@@ -0,0 +1,212 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ChannelEngine\ApiClient\ReturnApi
2
+
3
+ All URIs are relative to *http://dev.channelengine.local/api*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**returnDeclareForChannel**](ReturnApi.md#returnDeclareForChannel) | **POST** /v2/returns/channel | Channel: Create Return
8
+ [**returnDeclareForMerchant**](ReturnApi.md#returnDeclareForMerchant) | **POST** /v2/returns/merchant | Merchant: Create Return
9
+ [**returnGetDeclaredByChannel**](ReturnApi.md#returnGetDeclaredByChannel) | **GET** /v2/returns/merchant | Merchant: Get Returns
10
+ [**returnGetDeclaredByMerchant**](ReturnApi.md#returnGetDeclaredByMerchant) | **GET** /v2/returns/channel | Channel: Get Returns
11
+
12
+
13
+ # **returnDeclareForChannel**
14
+ > \ChannelEngine\ApiClient\Model\ApiResponse returnDeclareForChannel($model)
15
+
16
+ Channel: Create Return
17
+
18
+ For channels. Mark (part of) an order as returned by the customer.
19
+
20
+ ### Example
21
+ ```php
22
+ <?php
23
+ require_once(__DIR__ . '/vendor/autoload.php');
24
+
25
+ // Configure API key authorization: apikey
26
+ ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
27
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
28
+ // ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');
29
+
30
+ $api_instance = new ChannelEngine\ApiClient\Api\ReturnApi();
31
+ $model = new \ChannelEngine\ApiClient\Model\ChannelReturnRequest(); // \ChannelEngine\ApiClient\Model\ChannelReturnRequest |
32
+
33
+ try {
34
+ $result = $api_instance->returnDeclareForChannel($model);
35
+ print_r($result);
36
+ } catch (Exception $e) {
37
+ echo 'Exception when calling ReturnApi->returnDeclareForChannel: ', $e->getMessage(), PHP_EOL;
38
+ }
39
+ ?>
40
+ ```
41
+
42
+ ### Parameters
43
+
44
+ Name | Type | Description | Notes
45
+ ------------- | ------------- | ------------- | -------------
46
+ **model** | [**\ChannelEngine\ApiClient\Model\ChannelReturnRequest**](../Model/\ChannelEngine\ApiClient\Model\ChannelReturnRequest.md)| |
47
+
48
+ ### Return type
49
+
50
+ [**\ChannelEngine\ApiClient\Model\ApiResponse**](../Model/ApiResponse.md)
51
+
52
+ ### Authorization
53
+
54
+ [apikey](../../README.md#apikey)
55
+
56
+ ### HTTP request headers
57
+
58
+ - **Content-Type**: application/json, text/json, application/x-www-form-urlencoded
59
+ - **Accept**: application/json, text/json
60
+
61
+ [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
62
+
63
+ # **returnDeclareForMerchant**
64
+ > \ChannelEngine\ApiClient\Model\ApiResponse returnDeclareForMerchant($model)
65
+
66
+ Merchant: Create Return
67
+
68
+ For merchants. Mark (part of) an order as returned by the customer.
69
+
70
+ ### Example
71
+ ```php
72
+ <?php
73
+ require_once(__DIR__ . '/vendor/autoload.php');
74
+
75
+ // Configure API key authorization: apikey
76
+ ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
77
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
78
+ // ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');
79
+
80
+ $api_instance = new ChannelEngine\ApiClient\Api\ReturnApi();
81
+ $model = new \ChannelEngine\ApiClient\Model\MerchantReturnRequest(); // \ChannelEngine\ApiClient\Model\MerchantReturnRequest |
82
+
83
+ try {
84
+ $result = $api_instance->returnDeclareForMerchant($model);
85
+ print_r($result);
86
+ } catch (Exception $e) {
87
+ echo 'Exception when calling ReturnApi->returnDeclareForMerchant: ', $e->getMessage(), PHP_EOL;
88
+ }
89
+ ?>
90
+ ```
91
+
92
+ ### Parameters
93
+
94
+ Name | Type | Description | Notes
95
+ ------------- | ------------- | ------------- | -------------
96
+ **model** | [**\ChannelEngine\ApiClient\Model\MerchantReturnRequest**](../Model/\ChannelEngine\ApiClient\Model\MerchantReturnRequest.md)| |
97
+
98
+ ### Return type
99
+
100
+ [**\ChannelEngine\ApiClient\Model\ApiResponse**](../Model/ApiResponse.md)
101
+
102
+ ### Authorization
103
+
104
+ [apikey](../../README.md#apikey)
105
+
106
+ ### HTTP request headers
107
+
108
+ - **Content-Type**: application/json, text/json, application/x-www-form-urlencoded
109
+ - **Accept**: application/json, text/json
110
+
111
+ [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
112
+
113
+ # **returnGetDeclaredByChannel**
114
+ > \ChannelEngine\ApiClient\Model\CollectionOfMerchantReturnResponse returnGetDeclaredByChannel($createdSince)
115
+
116
+ Merchant: Get Returns
117
+
118
+ For merchants. Get all returns created by the channel. This call is supposed to be used by merchants. Channels should use the 'GET /v2/returns/channel' call.
119
+
120
+ ### Example
121
+ ```php
122
+ <?php
123
+ require_once(__DIR__ . '/vendor/autoload.php');
124
+
125
+ // Configure API key authorization: apikey
126
+ ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
127
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
128
+ // ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');
129
+
130
+ $api_instance = new ChannelEngine\ApiClient\Api\ReturnApi();
131
+ $createdSince = new \DateTime(); // \DateTime |
132
+
133
+ try {
134
+ $result = $api_instance->returnGetDeclaredByChannel($createdSince);
135
+ print_r($result);
136
+ } catch (Exception $e) {
137
+ echo 'Exception when calling ReturnApi->returnGetDeclaredByChannel: ', $e->getMessage(), PHP_EOL;
138
+ }
139
+ ?>
140
+ ```
141
+
142
+ ### Parameters
143
+
144
+ Name | Type | Description | Notes
145
+ ------------- | ------------- | ------------- | -------------
146
+ **createdSince** | **\DateTime**| |
147
+
148
+ ### Return type
149
+
150
+ [**\ChannelEngine\ApiClient\Model\CollectionOfMerchantReturnResponse**](../Model/CollectionOfMerchantReturnResponse.md)
151
+
152
+ ### Authorization
153
+
154
+ [apikey](../../README.md#apikey)
155
+
156
+ ### HTTP request headers
157
+
158
+ - **Content-Type**: Not defined
159
+ - **Accept**: application/json, text/json
160
+
161
+ [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
162
+
163
+ # **returnGetDeclaredByMerchant**
164
+ > \ChannelEngine\ApiClient\Model\CollectionOfChannelReturnResponse returnGetDeclaredByMerchant($createdSince)
165
+
166
+ Channel: Get Returns
167
+
168
+ For channels. Get all returns created by the merchant. This call is supposed to be used by channels. Merchants should use the 'GET /v2/returns/merchant' call.
169
+
170
+ ### Example
171
+ ```php
172
+ <?php
173
+ require_once(__DIR__ . '/vendor/autoload.php');
174
+
175
+ // Configure API key authorization: apikey
176
+ ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
177
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
178
+ // ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');
179
+
180
+ $api_instance = new ChannelEngine\ApiClient\Api\ReturnApi();
181
+ $createdSince = new \DateTime(); // \DateTime |
182
+
183
+ try {
184
+ $result = $api_instance->returnGetDeclaredByMerchant($createdSince);
185
+ print_r($result);
186
+ } catch (Exception $e) {
187
+ echo 'Exception when calling ReturnApi->returnGetDeclaredByMerchant: ', $e->getMessage(), PHP_EOL;
188
+ }
189
+ ?>
190
+ ```
191
+
192
+ ### Parameters
193
+
194
+ Name | Type | Description | Notes
195
+ ------------- | ------------- | ------------- | -------------
196
+ **createdSince** | **\DateTime**| |
197
+
198
+ ### Return type
199
+
200
+ [**\ChannelEngine\ApiClient\Model\CollectionOfChannelReturnResponse**](../Model/CollectionOfChannelReturnResponse.md)
201
+
202
+ ### Authorization
203
+
204
+ [apikey](../../README.md#apikey)
205
+
206
+ ### HTTP request headers
207
+
208
+ - **Content-Type**: Not defined
209
+ - **Accept**: application/json, text/json
210
+
211
+ [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
212
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Api/ShipmentApi.md ADDED
@@ -0,0 +1,163 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ChannelEngine\ApiClient\ShipmentApi
2
+
3
+ All URIs are relative to *http://dev.channelengine.local/api*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**shipmentCreate**](ShipmentApi.md#shipmentCreate) | **POST** /v2/shipments | Merchant: Create Shipment
8
+ [**shipmentIndex**](ShipmentApi.md#shipmentIndex) | **GET** /v2/shipments | Channel: Get Shipments
9
+ [**shipmentUpdate**](ShipmentApi.md#shipmentUpdate) | **PUT** /v2/shipments/{merchantShipmentNo} | Merchant: Update Shipment
10
+
11
+
12
+ # **shipmentCreate**
13
+ > \ChannelEngine\ApiClient\Model\ApiResponse shipmentCreate($model)
14
+
15
+ Merchant: Create Shipment
16
+
17
+ For merchants. Mark (part of) an order as shipped.
18
+
19
+ ### Example
20
+ ```php
21
+ <?php
22
+ require_once(__DIR__ . '/vendor/autoload.php');
23
+
24
+ // Configure API key authorization: apikey
25
+ ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
26
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
27
+ // ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');
28
+
29
+ $api_instance = new ChannelEngine\ApiClient\Api\ShipmentApi();
30
+ $model = new \ChannelEngine\ApiClient\Model\MerchantShipmentRequest(); // \ChannelEngine\ApiClient\Model\MerchantShipmentRequest |
31
+
32
+ try {
33
+ $result = $api_instance->shipmentCreate($model);
34
+ print_r($result);
35
+ } catch (Exception $e) {
36
+ echo 'Exception when calling ShipmentApi->shipmentCreate: ', $e->getMessage(), PHP_EOL;
37
+ }
38
+ ?>
39
+ ```
40
+
41
+ ### Parameters
42
+
43
+ Name | Type | Description | Notes
44
+ ------------- | ------------- | ------------- | -------------
45
+ **model** | [**\ChannelEngine\ApiClient\Model\MerchantShipmentRequest**](../Model/\ChannelEngine\ApiClient\Model\MerchantShipmentRequest.md)| |
46
+
47
+ ### Return type
48
+
49
+ [**\ChannelEngine\ApiClient\Model\ApiResponse**](../Model/ApiResponse.md)
50
+
51
+ ### Authorization
52
+
53
+ [apikey](../../README.md#apikey)
54
+
55
+ ### HTTP request headers
56
+
57
+ - **Content-Type**: application/json, text/json, application/x-www-form-urlencoded
58
+ - **Accept**: application/json, text/json
59
+
60
+ [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
61
+
62
+ # **shipmentIndex**
63
+ > \ChannelEngine\ApiClient\Model\CollectionOfChannelShipmentResponse shipmentIndex($createdSince)
64
+
65
+ Channel: Get Shipments
66
+
67
+ For channels. Gets all shipments created since the supplied date.
68
+
69
+ ### Example
70
+ ```php
71
+ <?php
72
+ require_once(__DIR__ . '/vendor/autoload.php');
73
+
74
+ // Configure API key authorization: apikey
75
+ ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
76
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
77
+ // ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');
78
+
79
+ $api_instance = new ChannelEngine\ApiClient\Api\ShipmentApi();
80
+ $createdSince = new \DateTime(); // \DateTime |
81
+
82
+ try {
83
+ $result = $api_instance->shipmentIndex($createdSince);
84
+ print_r($result);
85
+ } catch (Exception $e) {
86
+ echo 'Exception when calling ShipmentApi->shipmentIndex: ', $e->getMessage(), PHP_EOL;
87
+ }
88
+ ?>
89
+ ```
90
+
91
+ ### Parameters
92
+
93
+ Name | Type | Description | Notes
94
+ ------------- | ------------- | ------------- | -------------
95
+ **createdSince** | **\DateTime**| |
96
+
97
+ ### Return type
98
+
99
+ [**\ChannelEngine\ApiClient\Model\CollectionOfChannelShipmentResponse**](../Model/CollectionOfChannelShipmentResponse.md)
100
+
101
+ ### Authorization
102
+
103
+ [apikey](../../README.md#apikey)
104
+
105
+ ### HTTP request headers
106
+
107
+ - **Content-Type**: Not defined
108
+ - **Accept**: application/json, text/json
109
+
110
+ [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
111
+
112
+ # **shipmentUpdate**
113
+ > \ChannelEngine\ApiClient\Model\ApiResponse shipmentUpdate($merchantShipmentNo, $model)
114
+
115
+ Merchant: Update Shipment
116
+
117
+ For merchants. Update an existing shipment with tracking information
118
+
119
+ ### Example
120
+ ```php
121
+ <?php
122
+ require_once(__DIR__ . '/vendor/autoload.php');
123
+
124
+ // Configure API key authorization: apikey
125
+ ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
126
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
127
+ // ChannelEngine\ApiClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');
128
+
129
+ $api_instance = new ChannelEngine\ApiClient\Api\ShipmentApi();
130
+ $merchantShipmentNo = "merchantShipmentNo_example"; // string | The merchant's shipment reference
131
+ $model = new \ChannelEngine\ApiClient\Model\MerchantShipmentTrackingRequest(); // \ChannelEngine\ApiClient\Model\MerchantShipmentTrackingRequest | The updated tracking information
132
+
133
+ try {
134
+ $result = $api_instance->shipmentUpdate($merchantShipmentNo, $model);
135
+ print_r($result);
136
+ } catch (Exception $e) {
137
+ echo 'Exception when calling ShipmentApi->shipmentUpdate: ', $e->getMessage(), PHP_EOL;
138
+ }
139
+ ?>
140
+ ```
141
+
142
+ ### Parameters
143
+
144
+ Name | Type | Description | Notes
145
+ ------------- | ------------- | ------------- | -------------
146
+ **merchantShipmentNo** | **string**| The merchant&#39;s shipment reference |
147
+ **model** | [**\ChannelEngine\ApiClient\Model\MerchantShipmentTrackingRequest**](../Model/\ChannelEngine\ApiClient\Model\MerchantShipmentTrackingRequest.md)| The updated tracking information |
148
+
149
+ ### Return type
150
+
151
+ [**\ChannelEngine\ApiClient\Model\ApiResponse**](../Model/ApiResponse.md)
152
+
153
+ ### Authorization
154
+
155
+ [apikey](../../README.md#apikey)
156
+
157
+ ### HTTP request headers
158
+
159
+ - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
160
+ - **Accept**: application/json, text/json
161
+
162
+ [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
163
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ApiResponse.md ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ApiResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **statusCode** | **int** | | [optional]
7
+ **success** | **bool** | | [optional]
8
+ **message** | **string** | | [optional]
9
+ **validationErrors** | [**map[string,string[]]**](array.md) | | [optional]
10
+
11
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
12
+
13
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/BackOrder.md ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # BackOrder
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **merchantBackorderNo** | **string** | |
7
+ **merchantOrderNo** | **string** | |
8
+ **channelOrderNo** | **string** | | [optional]
9
+ **lines** | [**\ChannelEngine\ApiClient\Model\BackOrderLine[]**](BackOrderLine.md) | |
10
+
11
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
12
+
13
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/BackOrderLine.md ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ # BackOrderLine
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **merchantOrderLineNo** | **string** | |
7
+ **quantity** | **int** | |
8
+
9
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10
+
11
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ChannelCancellationLineResponse.md ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ # ChannelCancellationLineResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **channelProductNo** | **string** | |
7
+ **quantity** | **int** | |
8
+
9
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10
+
11
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ChannelCancellationResponse.md ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ChannelCancellationResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **channelOrderNo** | **string** | |
7
+ **lines** | [**\ChannelEngine\ApiClient\Model\ChannelCancellationLineResponse[]**](ChannelCancellationLineResponse.md) | |
8
+ **reason** | **string** | | [optional]
9
+
10
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11
+
12
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ChannelOfferResponse.md ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ChannelOfferResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **channelProductNo** | **string** | | [optional]
7
+ **price** | **double** | | [optional]
8
+ **stock** | **int** | | [optional]
9
+
10
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11
+
12
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ChannelOrderLineRequest.md ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ChannelOrderLineRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **channelProductNo** | **string** | |
7
+ **quantity** | **int** | |
8
+ **unitPriceInclVat** | **double** | The value of a single unit of the ordered product including VAT (in the tenant&#39;s base currency calculated using the exchange rate at the time of ordering). |
9
+ **feeFixed** | **double** | A fixed fee that is charged by the Channel for this orderline. This field is optional, send 0 if not applicable. | [optional]
10
+ **feeRate** | **double** | A percentage fee that is charged by the Channel for this orderline. This field is optional, send 0 if not applicable. | [optional]
11
+ **condition** | **string** | The condition of the product, this can be used to indicate that a product is a second-hand product | [optional]
12
+
13
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
14
+
15
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ChannelOrderRequest.md ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ChannelOrderRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **channelOrderNo** | **string** | The unique order reference used by the Channel |
7
+ **lines** | [**\ChannelEngine\ApiClient\Model\ChannelOrderLineRequest[]**](ChannelOrderLineRequest.md) | The order lines |
8
+ **phone** | **string** | | [optional]
9
+ **email** | **string** | |
10
+ **companyRegistrationNo** | **string** | | [optional]
11
+ **vatNo** | **string** | | [optional]
12
+ **paymentMethod** | **string** | |
13
+ **shippingCostsInclVat** | **double** | The shipping fee including VAT (in the tenant&#39;s base currency calculated using the exchange rate at the time of ordering). |
14
+ **currencyCode** | **string** | |
15
+ **orderDate** | [**\DateTime**](\DateTime.md) | |
16
+ **channelCustomerNo** | **string** | | [optional]
17
+ **billingAddress** | [**\ChannelEngine\ApiClient\Model\EntitiesAddressModels**](EntitiesAddressModels.md) | |
18
+ **shippingAddress** | [**\ChannelEngine\ApiClient\Model\EntitiesAddressModels**](EntitiesAddressModels.md) | |
19
+ **extraData** | **map[string,string]** | | [optional]
20
+
21
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
22
+
23
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ChannelProcessedChangesRequest.md ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ChannelProcessedChangesRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **created** | [**\ChannelEngine\ApiClient\Model\ChannelReferencesRequest[]**](ChannelReferencesRequest.md) | A collection of pairs of merchant and channel references of the products which are successfully created. The channel references are saved such that in subsequent calls these can be used instead of the merchant references. | [optional]
7
+ **updated** | **string[]** | The channel references of the products which are successfully updated. | [optional]
8
+ **removed** | **string[]** | The channel references of the products which are successfully removed. | [optional]
9
+
10
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11
+
12
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ChannelProductChangesResponse.md ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ChannelProductChangesResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **toBeCreated** | [**\ChannelEngine\ApiClient\Model\ChannelProductResponse[]**](ChannelProductResponse.md) | | [optional]
7
+ **toBeUpdated** | [**\ChannelEngine\ApiClient\Model\ChannelProductResponse[]**](ChannelProductResponse.md) | | [optional]
8
+ **toBeRemoved** | **string[]** | | [optional]
9
+
10
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11
+
12
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ChannelProductResponse.md ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ChannelProductResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **int** | An unique identifier which ChannelEngine uses to identify the product. Needed in the call &#39;POST /v2/products/data&#39; | [optional]
7
+ **parentChannelProductNo** | **string** | | [optional]
8
+ **mappedFields** | **map[string,string]** | A channel can require certain fields to be available. The channel can provide ChannelEngine with this fields after which the merchants will be able to fill in this field using custom conditions in ChannelEngine. | [optional]
9
+ **name** | **string** | | [optional]
10
+ **description** | **string** | | [optional]
11
+ **brand** | **string** | | [optional]
12
+ **size** | **string** | | [optional]
13
+ **color** | **string** | | [optional]
14
+ **ean** | **string** | | [optional]
15
+ **manufacturerProductNumber** | **string** | | [optional]
16
+ **stock** | **int** | | [optional]
17
+ **price** | **double** | Price, including VAT. | [optional]
18
+ **mSRP** | **double** | Manufacturer&#39;s suggested retail price | [optional]
19
+ **purchasePrice** | **double** | | [optional]
20
+ **vatRateType** | **string** | The type of VAT which applies to this product. See: http://ec.europa.eu/taxation_customs/taxation/vat/topics/rates_en.htm | [optional]
21
+ **shippingCost** | **double** | | [optional]
22
+ **shippingTime** | **string** | A textual representation of the shippingtime. For example, in Dutch: &#39;Op werkdagen voor 22:00 uur besteld, morgen in huis&#39; | [optional]
23
+ **url** | **string** | A URL pointing to the merchant&#39;s webpage which displays this product. | [optional]
24
+ **imageUrl** | **string** | A URL at which an image of this product can be found. | [optional]
25
+ **categoryTrail** | **string** | The category to which this product belongs. Please supply this field in the following format: &#39;maincategory &amp;gt; category &amp;gt; subcategory&#39; For example: &#39;vehicles &amp;gt; bikes &amp;gt; mountainbike&#39; | [optional]
26
+ **extraData** | [**\ChannelEngine\ApiClient\Model\ExtraDataItem[]**](ExtraDataItem.md) | An optional list of key-value pairs containing extra data about this product. This data can be sent to channels or used for filtering products. | [optional]
27
+
28
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29
+
30
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ChannelReferencesRequest.md ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ # ChannelReferencesRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **int** | | [optional]
7
+ **channelProductNo** | **string** | | [optional]
8
+
9
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10
+
11
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ChannelReturnLineRequest.md ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ # ChannelReturnLineRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **channelProductNo** | **string** | |
7
+ **quantity** | **int** | |
8
+
9
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10
+
11
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ChannelReturnLineResponse.md ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ # ChannelReturnLineResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **channelProductNo** | **string** | |
7
+ **quantity** | **int** | |
8
+
9
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10
+
11
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ChannelReturnRequest.md ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ChannelReturnRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **channelOrderNo** | **string** | |
7
+ **channelReference** | **string** | |
8
+ **lines** | [**\ChannelEngine\ApiClient\Model\ChannelReturnLineRequest[]**](ChannelReturnLineRequest.md) | |
9
+ **reason** | **string** | | [optional]
10
+ **customerComment** | **string** | | [optional]
11
+ **merchantComment** | **string** | | [optional]
12
+ **refundInclVat** | **double** | | [optional]
13
+ **refundExclVat** | **double** | | [optional]
14
+
15
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
16
+
17
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ChannelReturnResponse.md ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ChannelReturnResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **channelReturnNo** | **string** | |
7
+ **channelOrderNo** | **string** | |
8
+ **lines** | [**\ChannelEngine\ApiClient\Model\ChannelReturnLineResponse[]**](ChannelReturnLineResponse.md) | |
9
+ **reason** | **string** | | [optional]
10
+ **customerComment** | **string** | | [optional]
11
+ **merchantComment** | **string** | | [optional]
12
+ **refundInclVat** | **double** | | [optional]
13
+ **refundExclVat** | **double** | | [optional]
14
+
15
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
16
+
17
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ChannelShipmentLineResponse.md ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ # ChannelShipmentLineResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **channelProductNo** | **string** | |
7
+ **quantity** | **int** | |
8
+
9
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10
+
11
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ChannelShipmentResponse.md ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ChannelShipmentResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **channelOrderNo** | **string** | |
7
+ **lines** | [**\ChannelEngine\ApiClient\Model\ChannelShipmentLineResponse[]**](ChannelShipmentLineResponse.md) | |
8
+ **trackTraceNo** | **string** | | [optional]
9
+ **trackTraceUrl** | **string** | | [optional]
10
+ **method** | **string** | | [optional]
11
+
12
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
13
+
14
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/CollectionOfBackOrder.md ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # CollectionOfBackOrder
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **content** | [**\ChannelEngine\ApiClient\Model\BackOrder[]**](BackOrder.md) | | [optional]
7
+ **count** | **int** | | [optional]
8
+ **statusCode** | **int** | | [optional]
9
+ **success** | **bool** | | [optional]
10
+ **message** | **string** | | [optional]
11
+ **validationErrors** | [**map[string,string[]]**](array.md) | | [optional]
12
+
13
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
14
+
15
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/CollectionOfChannelCancellationResponse.md ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # CollectionOfChannelCancellationResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **content** | [**\ChannelEngine\ApiClient\Model\ChannelCancellationResponse[]**](ChannelCancellationResponse.md) | | [optional]
7
+ **count** | **int** | | [optional]
8
+ **statusCode** | **int** | | [optional]
9
+ **success** | **bool** | | [optional]
10
+ **message** | **string** | | [optional]
11
+ **validationErrors** | [**map[string,string[]]**](array.md) | | [optional]
12
+
13
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
14
+
15
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/CollectionOfChannelOfferResponse.md ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # CollectionOfChannelOfferResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **content** | [**\ChannelEngine\ApiClient\Model\ChannelOfferResponse[]**](ChannelOfferResponse.md) | | [optional]
7
+ **count** | **int** | | [optional]
8
+ **statusCode** | **int** | | [optional]
9
+ **success** | **bool** | | [optional]
10
+ **message** | **string** | | [optional]
11
+ **validationErrors** | [**map[string,string[]]**](array.md) | | [optional]
12
+
13
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
14
+
15
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/CollectionOfChannelReturnResponse.md ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # CollectionOfChannelReturnResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **content** | [**\ChannelEngine\ApiClient\Model\ChannelReturnResponse[]**](ChannelReturnResponse.md) | | [optional]
7
+ **count** | **int** | | [optional]
8
+ **statusCode** | **int** | | [optional]
9
+ **success** | **bool** | | [optional]
10
+ **message** | **string** | | [optional]
11
+ **validationErrors** | [**map[string,string[]]**](array.md) | | [optional]
12
+
13
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
14
+
15
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/CollectionOfChannelShipmentResponse.md ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # CollectionOfChannelShipmentResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **content** | [**\ChannelEngine\ApiClient\Model\ChannelShipmentResponse[]**](ChannelShipmentResponse.md) | | [optional]
7
+ **count** | **int** | | [optional]
8
+ **statusCode** | **int** | | [optional]
9
+ **success** | **bool** | | [optional]
10
+ **message** | **string** | | [optional]
11
+ **validationErrors** | [**map[string,string[]]**](array.md) | | [optional]
12
+
13
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
14
+
15
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/CollectionOfMerchantOrderResponse.md ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # CollectionOfMerchantOrderResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **content** | [**\ChannelEngine\ApiClient\Model\MerchantOrderResponse[]**](MerchantOrderResponse.md) | | [optional]
7
+ **count** | **int** | | [optional]
8
+ **statusCode** | **int** | | [optional]
9
+ **success** | **bool** | | [optional]
10
+ **message** | **string** | | [optional]
11
+ **validationErrors** | [**map[string,string[]]**](array.md) | | [optional]
12
+
13
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
14
+
15
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/CollectionOfMerchantReturnResponse.md ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # CollectionOfMerchantReturnResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **content** | [**\ChannelEngine\ApiClient\Model\MerchantReturnResponse[]**](MerchantReturnResponse.md) | | [optional]
7
+ **count** | **int** | | [optional]
8
+ **statusCode** | **int** | | [optional]
9
+ **success** | **bool** | | [optional]
10
+ **message** | **string** | | [optional]
11
+ **validationErrors** | [**map[string,string[]]**](array.md) | | [optional]
12
+
13
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
14
+
15
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/EntitiesAddressModels.md ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # EntitiesAddressModels
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **gender** | **string** | | [optional]
7
+ **companyName** | **string** | | [optional]
8
+ **firstName** | **string** | | [optional]
9
+ **lastName** | **string** | | [optional]
10
+ **streetName** | **string** | | [optional]
11
+ **houseNr** | **string** | | [optional]
12
+ **houseNrAddition** | **string** | | [optional]
13
+ **zipCode** | **string** | | [optional]
14
+ **city** | **string** | | [optional]
15
+ **region** | **string** | | [optional]
16
+ **countryIso** | **string** | | [optional]
17
+ **original** | **string** | | [optional]
18
+
19
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
20
+
21
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ExtraDataItem.md ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ExtraDataItem
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **key** | **string** | | [optional]
7
+ **value** | **string** | | [optional]
8
+ **type** | **string** | | [optional]
9
+ **isPublic** | **bool** | | [optional]
10
+
11
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
12
+
13
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/MerchantCancellationLineRequest.md ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ # MerchantCancellationLineRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **merchantProductNo** | **string** | |
7
+ **quantity** | **int** | |
8
+
9
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10
+
11
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/MerchantCancellationRequest.md ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # MerchantCancellationRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **merchantCancellationNo** | **string** | |
7
+ **merchantOrderNo** | **string** | |
8
+ **lines** | [**\ChannelEngine\ApiClient\Model\MerchantCancellationLineRequest[]**](MerchantCancellationLineRequest.md) | |
9
+ **reason** | **string** | | [optional]
10
+
11
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
12
+
13
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/MerchantOrderLineResponse.md ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # MerchantOrderLineResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **merchantProductNo** | **string** | | [optional]
7
+ **channelProductNo** | **string** | |
8
+ **quantity** | **int** | |
9
+ **unitPriceInclVat** | **double** | The value of a single unit of the ordered product including VAT (in the tenant&#39;s base currency calculated using the exchange rate at the time of ordering). |
10
+ **feeFixed** | **double** | A fixed fee that is charged by the Channel for this orderline. This field is optional, send 0 if not applicable. | [optional]
11
+ **feeRate** | **double** | A percentage fee that is charged by the Channel for this orderline. This field is optional, send 0 if not applicable. | [optional]
12
+ **condition** | **string** | The condition of the product, this can be used to indicate that a product is a second-hand product | [optional]
13
+
14
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
15
+
16
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/MerchantOrderResponse.md ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # MerchantOrderResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **int** | The unique identifier used by ChannelEngine. This identifier does not have to be saved. It should only be used in a call to acknowledge the order. | [optional]
7
+ **channelName** | **string** | | [optional]
8
+ **channelOrderSupport** | **string** | | [optional]
9
+ **channelOrderNo** | **string** | | [optional]
10
+ **lines** | [**\ChannelEngine\ApiClient\Model\MerchantOrderLineResponse[]**](MerchantOrderLineResponse.md) | | [optional]
11
+ **phone** | **string** | | [optional]
12
+ **email** | **string** | |
13
+ **companyRegistrationNo** | **string** | | [optional]
14
+ **vatNo** | **string** | | [optional]
15
+ **paymentMethod** | **string** | |
16
+ **shippingCostsInclVat** | **double** | The shipping fee including VAT (in the tenant&#39;s base currency calculated using the exchange rate at the time of ordering). |
17
+ **currencyCode** | **string** | |
18
+ **orderDate** | [**\DateTime**](\DateTime.md) | |
19
+ **channelCustomerNo** | **string** | | [optional]
20
+ **billingAddress** | [**\ChannelEngine\ApiClient\Model\EntitiesAddressModels**](EntitiesAddressModels.md) | |
21
+ **shippingAddress** | [**\ChannelEngine\ApiClient\Model\EntitiesAddressModels**](EntitiesAddressModels.md) | |
22
+ **extraData** | **map[string,string]** | | [optional]
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
25
+
26
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/MerchantProductRequest.md ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # MerchantProductRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **merchantProductNo** | **string** | A unique identifier of the product. | [optional]
7
+ **parentMerchantProductNo** | **string** | If this product is a different version of another product (for example, all fields are the same except size and/or color), then this field should contain the &#39;MerchantProductNo&#39; of the parent. The parent should already exist (or be present between the products in the content of the API call, it does not matter whether the parent is behind the child in the list). | [optional]
8
+ **name** | **string** | | [optional]
9
+ **description** | **string** | | [optional]
10
+ **brand** | **string** | | [optional]
11
+ **size** | **string** | | [optional]
12
+ **color** | **string** | | [optional]
13
+ **ean** | **string** | | [optional]
14
+ **manufacturerProductNumber** | **string** | | [optional]
15
+ **stock** | **int** | | [optional]
16
+ **price** | **double** | Price, including VAT. | [optional]
17
+ **mSRP** | **double** | Manufacturer&#39;s suggested retail price | [optional]
18
+ **purchasePrice** | **double** | | [optional]
19
+ **vatRateType** | **string** | The type of VAT which applies to this product. See: http://ec.europa.eu/taxation_customs/taxation/vat/topics/rates_en.htm | [optional]
20
+ **shippingCost** | **double** | | [optional]
21
+ **shippingTime** | **string** | A textual representation of the shippingtime. For example, in Dutch: &#39;Op werkdagen voor 22:00 uur besteld, morgen in huis&#39; | [optional]
22
+ **url** | **string** | A URL pointing to the merchant&#39;s webpage which displays this product. | [optional]
23
+ **imageUrl** | **string** | A URL at which an image of this product can be found. | [optional]
24
+ **categoryTrail** | **string** | The category to which this product belongs. Please supply this field in the following format: &#39;maincategory &amp;gt; category &amp;gt; subcategory&#39; For example: &#39;vehicles &amp;gt; bikes &amp;gt; mountainbike&#39; | [optional]
25
+ **extraData** | [**\ChannelEngine\ApiClient\Model\ExtraDataItem[]**](ExtraDataItem.md) | An optional list of key-value pairs containing extra data about this product. This data can be sent to channels or used for filtering products. | [optional]
26
+
27
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
28
+
29
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/MerchantProductResponse.md ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # MerchantProductResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **isActive** | **bool** | | [optional]
7
+ **mappedFields** | **map[string,string]** | A channel can require certain fields to be available. The channel can provide ChannelEngine with this fields after which the merchants will be able to fill in this field using custom conditions in ChannelEngine. There are five different | [optional]
8
+ **name** | **string** | | [optional]
9
+ **description** | **string** | | [optional]
10
+ **brand** | **string** | | [optional]
11
+ **size** | **string** | | [optional]
12
+ **color** | **string** | | [optional]
13
+ **ean** | **string** | | [optional]
14
+ **manufacturerProductNumber** | **string** | | [optional]
15
+ **stock** | **int** | | [optional]
16
+ **price** | **double** | Price, including VAT. | [optional]
17
+ **mSRP** | **double** | Manufacturer&#39;s suggested retail price | [optional]
18
+ **purchasePrice** | **double** | | [optional]
19
+ **vatRateType** | **string** | The type of VAT which applies to this product. See: http://ec.europa.eu/taxation_customs/taxation/vat/topics/rates_en.htm | [optional]
20
+ **shippingCost** | **double** | | [optional]
21
+ **shippingTime** | **string** | A textual representation of the shippingtime. For example, in Dutch: &#39;Op werkdagen voor 22:00 uur besteld, morgen in huis&#39; | [optional]
22
+ **url** | **string** | A URL pointing to the merchant&#39;s webpage which displays this product. | [optional]
23
+ **imageUrl** | **string** | A URL at which an image of this product can be found. | [optional]
24
+ **categoryTrail** | **string** | The category to which this product belongs. Please supply this field in the following format: &#39;maincategory &amp;gt; category &amp;gt; subcategory&#39; For example: &#39;vehicles &amp;gt; bikes &amp;gt; mountainbike&#39; | [optional]
25
+ **extraData** | [**\ChannelEngine\ApiClient\Model\ExtraDataItem[]**](ExtraDataItem.md) | An optional list of key-value pairs containing extra data about this product. This data can be sent to channels or used for filtering products. | [optional]
26
+
27
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
28
+
29
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/MerchantReturnLineRequest.md ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ # MerchantReturnLineRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **merchantProductNo** | **string** | |
7
+ **quantity** | **int** | |
8
+
9
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10
+
11
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/MerchantReturnLineResponse.md ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ # MerchantReturnLineResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **merchantProductNo** | **string** | | [optional]
7
+ **quantity** | **int** | |
8
+
9
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10
+
11
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/MerchantReturnRequest.md ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # MerchantReturnRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **merchantOrderNo** | **string** | |
7
+ **merchantReturnNo** | **string** | |
8
+ **lines** | [**\ChannelEngine\ApiClient\Model\MerchantReturnLineRequest[]**](MerchantReturnLineRequest.md) | |
9
+ **reason** | **string** | | [optional]
10
+ **customerComment** | **string** | | [optional]
11
+ **merchantComment** | **string** | | [optional]
12
+ **refundInclVat** | **double** | | [optional]
13
+ **refundExclVat** | **double** | | [optional]
14
+
15
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
16
+
17
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/MerchantReturnResponse.md ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # MerchantReturnResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **merchantOrderNo** | **string** | | [optional]
7
+ **lines** | [**\ChannelEngine\ApiClient\Model\MerchantReturnLineResponse[]**](MerchantReturnLineResponse.md) | | [optional]
8
+ **reason** | **string** | | [optional]
9
+ **customerComment** | **string** | | [optional]
10
+ **merchantComment** | **string** | | [optional]
11
+ **refundInclVat** | **double** | | [optional]
12
+ **refundExclVat** | **double** | | [optional]
13
+
14
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
15
+
16
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/MerchantShipmentLineRequest.md ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ # MerchantShipmentLineRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **merchantProductNo** | **string** | |
7
+ **quantity** | **int** | |
8
+
9
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10
+
11
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/MerchantShipmentRequest.md ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # MerchantShipmentRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **merchantShipmentNo** | **string** | |
7
+ **merchantOrderNo** | **string** | |
8
+ **lines** | [**\ChannelEngine\ApiClient\Model\MerchantShipmentLineRequest[]**](MerchantShipmentLineRequest.md) | |
9
+ **trackTraceNo** | **string** | | [optional]
10
+ **trackTraceUrl** | **string** | | [optional]
11
+ **method** | **string** | | [optional]
12
+
13
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
14
+
15
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/MerchantShipmentTrackingRequest.md ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # MerchantShipmentTrackingRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **method** | **string** | |
7
+ **trackTraceNo** | **string** | |
8
+ **trackTraceUrl** | **string** | | [optional]
9
+
10
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11
+
12
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/OrderAcknowledgement.md ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ # OrderAcknowledgement
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **merchantOrderNo** | **string** | |
7
+ **orderId** | **int** | |
8
+
9
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10
+
11
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ProductCreationResult.md ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ProductCreationResult
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **rejectedCount** | **int** | | [optional]
7
+ **acceptedCount** | **int** | | [optional]
8
+ **productMessages** | [**\ChannelEngine\ApiClient\Model\ProductMessage[]**](ProductMessage.md) | Messages about the rejected products. | [optional]
9
+
10
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11
+
12
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/ProductMessage.md ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ProductMessage
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **string** | | [optional]
7
+ **reference** | **string** | | [optional]
8
+ **warnings** | **string[]** | | [optional]
9
+ **errors** | **string[]** | | [optional]
10
+
11
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
12
+
13
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/SingleOfBackOrder.md ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SingleOfBackOrder
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **content** | [**\ChannelEngine\ApiClient\Model\BackOrder**](BackOrder.md) | | [optional]
7
+ **statusCode** | **int** | | [optional]
8
+ **success** | **bool** | | [optional]
9
+ **message** | **string** | | [optional]
10
+ **validationErrors** | [**map[string,string[]]**](array.md) | | [optional]
11
+
12
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
13
+
14
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/SingleOfChannelProductChangesResponse.md ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SingleOfChannelProductChangesResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **content** | [**\ChannelEngine\ApiClient\Model\ChannelProductChangesResponse**](ChannelProductChangesResponse.md) | | [optional]
7
+ **statusCode** | **int** | | [optional]
8
+ **success** | **bool** | | [optional]
9
+ **message** | **string** | | [optional]
10
+ **validationErrors** | [**map[string,string[]]**](array.md) | | [optional]
11
+
12
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
13
+
14
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/SingleOfMerchantProductResponse.md ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SingleOfMerchantProductResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **content** | [**\ChannelEngine\ApiClient\Model\MerchantProductResponse**](MerchantProductResponse.md) | | [optional]
7
+ **statusCode** | **int** | | [optional]
8
+ **success** | **bool** | | [optional]
9
+ **message** | **string** | | [optional]
10
+ **validationErrors** | [**map[string,string[]]**](array.md) | | [optional]
11
+
12
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
13
+
14
+
lib/ChannelEngine/vendor/channelengine/api-client/docs/Model/SingleOfProductCreationResult.md ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SingleOfProductCreationResult
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **content** | [**\ChannelEngine\ApiClient\Model\ProductCreationResult**](ProductCreationResult.md) | | [optional]
7
+ **statusCode** | **int** | | [optional]
8
+ **success** | **bool** | | [optional]
9
+ **message** | **string** | | [optional]
10
+ **validationErrors** | [**map[string,string[]]**](array.md) | | [optional]
11
+
12
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
13
+
14
+
lib/ChannelEngine/vendor/channelengine/api-client/git_push.sh ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
+ #
4
+ # Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
5
+
6
+ git_user_id=$1
7
+ git_repo_id=$2
8
+ release_note=$3
9
+
10
+ if [ "$git_user_id" = "" ]; then
11
+ git_user_id="GIT_USER_ID"
12
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
13
+ fi
14
+
15
+ if [ "$git_repo_id" = "" ]; then
16
+ git_repo_id="GIT_REPO_ID"
17
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
18
+ fi
19
+
20
+ if [ "$release_note" = "" ]; then
21
+ release_note="Minor update"
22
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
23
+ fi
24
+
25
+ # Initialize the local directory as a Git repository
26
+ git init
27
+
28
+ # Adds the files in the local repository and stages them for commit.
29
+ git add .
30
+
31
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
32
+ git commit -m "$release_note"
33
+
34
+ # Sets the new remote
35
+ git_remote=`git remote`
36
+ if [ "$git_remote" = "" ]; then # git remote not defined
37
+
38
+ if [ "$GIT_TOKEN" = "" ]; then
39
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment."
40
+ git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
41
+ else
42
+ git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
43
+ fi
44
+
45
+ fi
46
+
47
+ git pull origin master
48
+
49
+ # Pushes (Forces) the changes in the local repository up to the remote repository
50
+ echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
51
+ git push origin master 2>&1 | grep -v 'To https'
52
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Api/BackOrderApi.php ADDED
@@ -0,0 +1,352 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * BackOrderApi
4
+ * PHP version 5
5
+ *
6
+ * @category Class
7
+ * @package ChannelEngine\ApiClient
8
+ * @author Swagger Codegen team
9
+ * @link https://github.com/swagger-api/swagger-codegen
10
+ */
11
+
12
+ /**
13
+ * ChannelEngine API V2
14
+ *
15
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
16
+ *
17
+ * OpenAPI spec version: v2
18
+ *
19
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
20
+ *
21
+ */
22
+
23
+ /**
24
+ * NOTE: This class is auto generated by the swagger code generator program.
25
+ * https://github.com/swagger-api/swagger-codegen
26
+ * Do not edit the class manually.
27
+ */
28
+
29
+ namespace ChannelEngine\ApiClient\Api;
30
+
31
+ use \ChannelEngine\ApiClient\ApiClient;
32
+ use \ChannelEngine\ApiClient\ApiException;
33
+ use \ChannelEngine\ApiClient\Configuration;
34
+ use \ChannelEngine\ApiClient\ObjectSerializer;
35
+
36
+ /**
37
+ * BackOrderApi Class Doc Comment
38
+ *
39
+ * @category Class
40
+ * @package ChannelEngine\ApiClient
41
+ * @author Swagger Codegen team
42
+ * @link https://github.com/swagger-api/swagger-codegen
43
+ */
44
+ class BackOrderApi
45
+ {
46
+ /**
47
+ * API Client
48
+ *
49
+ * @var \ChannelEngine\ApiClient\ApiClient instance of the ApiClient
50
+ */
51
+ protected $apiClient;
52
+
53
+ /**
54
+ * Constructor
55
+ *
56
+ * @param \ChannelEngine\ApiClient\ApiClient|null $apiClient The api client to use
57
+ */
58
+ public function __construct(\ChannelEngine\ApiClient\ApiClient $apiClient = null)
59
+ {
60
+ if ($apiClient === null) {
61
+ $apiClient = new ApiClient();
62
+ }
63
+
64
+ $this->apiClient = $apiClient;
65
+ }
66
+
67
+ /**
68
+ * Get API client
69
+ *
70
+ * @return \ChannelEngine\ApiClient\ApiClient get the API client
71
+ */
72
+ public function getApiClient()
73
+ {
74
+ return $this->apiClient;
75
+ }
76
+
77
+ /**
78
+ * Set the API client
79
+ *
80
+ * @param \ChannelEngine\ApiClient\ApiClient $apiClient set the API client
81
+ *
82
+ * @return BackOrderApi
83
+ */
84
+ public function setApiClient(\ChannelEngine\ApiClient\ApiClient $apiClient)
85
+ {
86
+ $this->apiClient = $apiClient;
87
+ return $this;
88
+ }
89
+
90
+ /**
91
+ * Operation backOrderCreate
92
+ *
93
+ * Merchant: Create Backorder
94
+ *
95
+ * @param \ChannelEngine\ApiClient\Model\BackOrder $backOrder The Backorder to create (required)
96
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
97
+ * @return \ChannelEngine\ApiClient\Model\ApiResponse
98
+ */
99
+ public function backOrderCreate($backOrder)
100
+ {
101
+ list($response) = $this->backOrderCreateWithHttpInfo($backOrder);
102
+ return $response;
103
+ }
104
+
105
+ /**
106
+ * Operation backOrderCreateWithHttpInfo
107
+ *
108
+ * Merchant: Create Backorder
109
+ *
110
+ * @param \ChannelEngine\ApiClient\Model\BackOrder $backOrder The Backorder to create (required)
111
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
112
+ * @return array of \ChannelEngine\ApiClient\Model\ApiResponse, HTTP status code, HTTP response headers (array of strings)
113
+ */
114
+ public function backOrderCreateWithHttpInfo($backOrder)
115
+ {
116
+ // verify the required parameter 'backOrder' is set
117
+ if ($backOrder === null) {
118
+ throw new \InvalidArgumentException('Missing the required parameter $backOrder when calling backOrderCreate');
119
+ }
120
+ // parse inputs
121
+ $resourcePath = "/v2/backorders";
122
+ $httpBody = '';
123
+ $queryParams = [];
124
+ $headerParams = [];
125
+ $formParams = [];
126
+ $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json']);
127
+ if (!is_null($_header_accept)) {
128
+ $headerParams['Accept'] = $_header_accept;
129
+ }
130
+ $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']);
131
+
132
+ // default format to json
133
+ $resourcePath = str_replace("{format}", "json", $resourcePath);
134
+
135
+ // body params
136
+ $_tempBody = null;
137
+ if (isset($backOrder)) {
138
+ $_tempBody = $backOrder;
139
+ }
140
+
141
+ // for model (json/xml)
142
+ if (isset($_tempBody)) {
143
+ $httpBody = $_tempBody; // $_tempBody is the method argument, if present
144
+ } elseif (count($formParams) > 0) {
145
+ $httpBody = $formParams; // for HTTP post (form)
146
+ }
147
+ // this endpoint requires API key authentication
148
+ $apiKey = $this->apiClient->getApiKeyWithPrefix('apikey');
149
+ if (strlen($apiKey) !== 0) {
150
+ $queryParams['apikey'] = $apiKey;
151
+ }
152
+ // make the API Call
153
+ try {
154
+ list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(
155
+ $resourcePath,
156
+ 'POST',
157
+ $queryParams,
158
+ $httpBody,
159
+ $headerParams,
160
+ '\ChannelEngine\ApiClient\Model\ApiResponse',
161
+ '/v2/backorders'
162
+ );
163
+
164
+ return [$this->apiClient->getSerializer()->deserialize($response, '\ChannelEngine\ApiClient\Model\ApiResponse', $httpHeader), $statusCode, $httpHeader];
165
+ } catch (ApiException $e) {
166
+ switch ($e->getCode()) {
167
+ case 200:
168
+ $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\ChannelEngine\ApiClient\Model\ApiResponse', $e->getResponseHeaders());
169
+ $e->setResponseObject($data);
170
+ break;
171
+ }
172
+
173
+ throw $e;
174
+ }
175
+ }
176
+
177
+ /**
178
+ * Operation backOrderGet
179
+ *
180
+ * Merchant: Get Backorder
181
+ *
182
+ * @param string $merchantBackorderNo The unique backorder reference supplied by the merchant (required)
183
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
184
+ * @return \ChannelEngine\ApiClient\Model\SingleOfBackOrder
185
+ */
186
+ public function backOrderGet($merchantBackorderNo)
187
+ {
188
+ list($response) = $this->backOrderGetWithHttpInfo($merchantBackorderNo);
189
+ return $response;
190
+ }
191
+
192
+ /**
193
+ * Operation backOrderGetWithHttpInfo
194
+ *
195
+ * Merchant: Get Backorder
196
+ *
197
+ * @param string $merchantBackorderNo The unique backorder reference supplied by the merchant (required)
198
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
199
+ * @return array of \ChannelEngine\ApiClient\Model\SingleOfBackOrder, HTTP status code, HTTP response headers (array of strings)
200
+ */
201
+ public function backOrderGetWithHttpInfo($merchantBackorderNo)
202
+ {
203
+ // verify the required parameter 'merchantBackorderNo' is set
204
+ if ($merchantBackorderNo === null) {
205
+ throw new \InvalidArgumentException('Missing the required parameter $merchantBackorderNo when calling backOrderGet');
206
+ }
207
+ // parse inputs
208
+ $resourcePath = "/v2/backorders/{merchantBackorderNo}";
209
+ $httpBody = '';
210
+ $queryParams = [];
211
+ $headerParams = [];
212
+ $formParams = [];
213
+ $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json']);
214
+ if (!is_null($_header_accept)) {
215
+ $headerParams['Accept'] = $_header_accept;
216
+ }
217
+ $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]);
218
+
219
+ // path params
220
+ if ($merchantBackorderNo !== null) {
221
+ $resourcePath = str_replace(
222
+ "{" . "merchantBackorderNo" . "}",
223
+ $this->apiClient->getSerializer()->toPathValue($merchantBackorderNo),
224
+ $resourcePath
225
+ );
226
+ }
227
+ // default format to json
228
+ $resourcePath = str_replace("{format}", "json", $resourcePath);
229
+
230
+
231
+ // for model (json/xml)
232
+ if (isset($_tempBody)) {
233
+ $httpBody = $_tempBody; // $_tempBody is the method argument, if present
234
+ } elseif (count($formParams) > 0) {
235
+ $httpBody = $formParams; // for HTTP post (form)
236
+ }
237
+ // this endpoint requires API key authentication
238
+ $apiKey = $this->apiClient->getApiKeyWithPrefix('apikey');
239
+ if (strlen($apiKey) !== 0) {
240
+ $queryParams['apikey'] = $apiKey;
241
+ }
242
+ // make the API Call
243
+ try {
244
+ list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(
245
+ $resourcePath,
246
+ 'GET',
247
+ $queryParams,
248
+ $httpBody,
249
+ $headerParams,
250
+ '\ChannelEngine\ApiClient\Model\SingleOfBackOrder',
251
+ '/v2/backorders/{merchantBackorderNo}'
252
+ );
253
+
254
+ return [$this->apiClient->getSerializer()->deserialize($response, '\ChannelEngine\ApiClient\Model\SingleOfBackOrder', $httpHeader), $statusCode, $httpHeader];
255
+ } catch (ApiException $e) {
256
+ switch ($e->getCode()) {
257
+ case 200:
258
+ $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\ChannelEngine\ApiClient\Model\SingleOfBackOrder', $e->getResponseHeaders());
259
+ $e->setResponseObject($data);
260
+ break;
261
+ }
262
+
263
+ throw $e;
264
+ }
265
+ }
266
+
267
+ /**
268
+ * Operation backOrderIndex
269
+ *
270
+ * Get Backorders
271
+ *
272
+ * @param \DateTime $createdSince (required)
273
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
274
+ * @return \ChannelEngine\ApiClient\Model\CollectionOfBackOrder
275
+ */
276
+ public function backOrderIndex($createdSince)
277
+ {
278
+ list($response) = $this->backOrderIndexWithHttpInfo($createdSince);
279
+ return $response;
280
+ }
281
+
282
+ /**
283
+ * Operation backOrderIndexWithHttpInfo
284
+ *
285
+ * Get Backorders
286
+ *
287
+ * @param \DateTime $createdSince (required)
288
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
289
+ * @return array of \ChannelEngine\ApiClient\Model\CollectionOfBackOrder, HTTP status code, HTTP response headers (array of strings)
290
+ */
291
+ public function backOrderIndexWithHttpInfo($createdSince)
292
+ {
293
+ // verify the required parameter 'createdSince' is set
294
+ if ($createdSince === null) {
295
+ throw new \InvalidArgumentException('Missing the required parameter $createdSince when calling backOrderIndex');
296
+ }
297
+ // parse inputs
298
+ $resourcePath = "/v2/backorders";
299
+ $httpBody = '';
300
+ $queryParams = [];
301
+ $headerParams = [];
302
+ $formParams = [];
303
+ $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json']);
304
+ if (!is_null($_header_accept)) {
305
+ $headerParams['Accept'] = $_header_accept;
306
+ }
307
+ $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]);
308
+
309
+ // query params
310
+ if ($createdSince !== null) {
311
+ $queryParams['createdSince'] = $this->apiClient->getSerializer()->toQueryValue($createdSince);
312
+ }
313
+ // default format to json
314
+ $resourcePath = str_replace("{format}", "json", $resourcePath);
315
+
316
+
317
+ // for model (json/xml)
318
+ if (isset($_tempBody)) {
319
+ $httpBody = $_tempBody; // $_tempBody is the method argument, if present
320
+ } elseif (count($formParams) > 0) {
321
+ $httpBody = $formParams; // for HTTP post (form)
322
+ }
323
+ // this endpoint requires API key authentication
324
+ $apiKey = $this->apiClient->getApiKeyWithPrefix('apikey');
325
+ if (strlen($apiKey) !== 0) {
326
+ $queryParams['apikey'] = $apiKey;
327
+ }
328
+ // make the API Call
329
+ try {
330
+ list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(
331
+ $resourcePath,
332
+ 'GET',
333
+ $queryParams,
334
+ $httpBody,
335
+ $headerParams,
336
+ '\ChannelEngine\ApiClient\Model\CollectionOfBackOrder',
337
+ '/v2/backorders'
338
+ );
339
+
340
+ return [$this->apiClient->getSerializer()->deserialize($response, '\ChannelEngine\ApiClient\Model\CollectionOfBackOrder', $httpHeader), $statusCode, $httpHeader];
341
+ } catch (ApiException $e) {
342
+ switch ($e->getCode()) {
343
+ case 200:
344
+ $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\ChannelEngine\ApiClient\Model\CollectionOfBackOrder', $e->getResponseHeaders());
345
+ $e->setResponseObject($data);
346
+ break;
347
+ }
348
+
349
+ throw $e;
350
+ }
351
+ }
352
+ }
lib/ChannelEngine/vendor/channelengine/api-client/lib/Api/CancellationApi.php ADDED
@@ -0,0 +1,262 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * CancellationApi
4
+ * PHP version 5
5
+ *
6
+ * @category Class
7
+ * @package ChannelEngine\ApiClient
8
+ * @author Swagger Codegen team
9
+ * @link https://github.com/swagger-api/swagger-codegen
10
+ */
11
+
12
+ /**
13
+ * ChannelEngine API V2
14
+ *
15
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
16
+ *
17
+ * OpenAPI spec version: v2
18
+ *
19
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
20
+ *
21
+ */
22
+
23
+ /**
24
+ * NOTE: This class is auto generated by the swagger code generator program.
25
+ * https://github.com/swagger-api/swagger-codegen
26
+ * Do not edit the class manually.
27
+ */
28
+
29
+ namespace ChannelEngine\ApiClient\Api;
30
+
31
+ use \ChannelEngine\ApiClient\ApiClient;
32
+ use \ChannelEngine\ApiClient\ApiException;
33
+ use \ChannelEngine\ApiClient\Configuration;
34
+ use \ChannelEngine\ApiClient\ObjectSerializer;
35
+
36
+ /**
37
+ * CancellationApi Class Doc Comment
38
+ *
39
+ * @category Class
40
+ * @package ChannelEngine\ApiClient
41
+ * @author Swagger Codegen team
42
+ * @link https://github.com/swagger-api/swagger-codegen
43
+ */
44
+ class CancellationApi
45
+ {
46
+ /**
47
+ * API Client
48
+ *
49
+ * @var \ChannelEngine\ApiClient\ApiClient instance of the ApiClient
50
+ */
51
+ protected $apiClient;
52
+
53
+ /**
54
+ * Constructor
55
+ *
56
+ * @param \ChannelEngine\ApiClient\ApiClient|null $apiClient The api client to use
57
+ */
58
+ public function __construct(\ChannelEngine\ApiClient\ApiClient $apiClient = null)
59
+ {
60
+ if ($apiClient === null) {
61
+ $apiClient = new ApiClient();
62
+ }
63
+
64
+ $this->apiClient = $apiClient;
65
+ }
66
+
67
+ /**
68
+ * Get API client
69
+ *
70
+ * @return \ChannelEngine\ApiClient\ApiClient get the API client
71
+ */
72
+ public function getApiClient()
73
+ {
74
+ return $this->apiClient;
75
+ }
76
+
77
+ /**
78
+ * Set the API client
79
+ *
80
+ * @param \ChannelEngine\ApiClient\ApiClient $apiClient set the API client
81
+ *
82
+ * @return CancellationApi
83
+ */
84
+ public function setApiClient(\ChannelEngine\ApiClient\ApiClient $apiClient)
85
+ {
86
+ $this->apiClient = $apiClient;
87
+ return $this;
88
+ }
89
+
90
+ /**
91
+ * Operation cancellationCreate
92
+ *
93
+ * Merchant: Create Cancellation
94
+ *
95
+ * @param \ChannelEngine\ApiClient\Model\MerchantCancellationRequest $cancellation (required)
96
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
97
+ * @return \ChannelEngine\ApiClient\Model\ApiResponse
98
+ */
99
+ public function cancellationCreate($cancellation)
100
+ {
101
+ list($response) = $this->cancellationCreateWithHttpInfo($cancellation);
102
+ return $response;
103
+ }
104
+
105
+ /**
106
+ * Operation cancellationCreateWithHttpInfo
107
+ *
108
+ * Merchant: Create Cancellation
109
+ *
110
+ * @param \ChannelEngine\ApiClient\Model\MerchantCancellationRequest $cancellation (required)
111
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
112
+ * @return array of \ChannelEngine\ApiClient\Model\ApiResponse, HTTP status code, HTTP response headers (array of strings)
113
+ */
114
+ public function cancellationCreateWithHttpInfo($cancellation)
115
+ {
116
+ // verify the required parameter 'cancellation' is set
117
+ if ($cancellation === null) {
118
+ throw new \InvalidArgumentException('Missing the required parameter $cancellation when calling cancellationCreate');
119
+ }
120
+ // parse inputs
121
+ $resourcePath = "/v2/cancellations";
122
+ $httpBody = '';
123
+ $queryParams = [];
124
+ $headerParams = [];
125
+ $formParams = [];
126
+ $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json']);
127
+ if (!is_null($_header_accept)) {
128
+ $headerParams['Accept'] = $_header_accept;
129
+ }
130
+ $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json', 'text/json', 'application/x-www-form-urlencoded']);
131
+
132
+ // default format to json
133
+ $resourcePath = str_replace("{format}", "json", $resourcePath);
134
+
135
+ // body params
136
+ $_tempBody = null;
137
+ if (isset($cancellation)) {
138
+ $_tempBody = $cancellation;
139
+ }
140
+
141
+ // for model (json/xml)
142
+ if (isset($_tempBody)) {
143
+ $httpBody = $_tempBody; // $_tempBody is the method argument, if present
144
+ } elseif (count($formParams) > 0) {
145
+ $httpBody = $formParams; // for HTTP post (form)
146
+ }
147
+ // this endpoint requires API key authentication
148
+ $apiKey = $this->apiClient->getApiKeyWithPrefix('apikey');
149
+ if (strlen($apiKey) !== 0) {
150
+ $queryParams['apikey'] = $apiKey;
151
+ }
152
+ // make the API Call
153
+ try {
154
+ list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(
155
+ $resourcePath,
156
+ 'POST',
157
+ $queryParams,
158
+ $httpBody,
159
+ $headerParams,
160
+ '\ChannelEngine\ApiClient\Model\ApiResponse',
161
+ '/v2/cancellations'
162
+ );
163
+
164
+ return [$this->apiClient->getSerializer()->deserialize($response, '\ChannelEngine\ApiClient\Model\ApiResponse', $httpHeader), $statusCode, $httpHeader];
165
+ } catch (ApiException $e) {
166
+ switch ($e->getCode()) {
167
+ case 200:
168
+ $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\ChannelEngine\ApiClient\Model\ApiResponse', $e->getResponseHeaders());
169
+ $e->setResponseObject($data);
170
+ break;
171
+ }
172
+
173
+ throw $e;
174
+ }
175
+ }
176
+
177
+ /**
178
+ * Operation cancellationIndex
179
+ *
180
+ * Channel: Get Cancellations
181
+ *
182
+ * @param \DateTime $createdSince (required)
183
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
184
+ * @return \ChannelEngine\ApiClient\Model\CollectionOfChannelCancellationResponse
185
+ */
186
+ public function cancellationIndex($createdSince)
187
+ {
188
+ list($response) = $this->cancellationIndexWithHttpInfo($createdSince);
189
+ return $response;
190
+ }
191
+
192
+ /**
193
+ * Operation cancellationIndexWithHttpInfo
194
+ *
195
+ * Channel: Get Cancellations
196
+ *
197
+ * @param \DateTime $createdSince (required)
198
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
199
+ * @return array of \ChannelEngine\ApiClient\Model\CollectionOfChannelCancellationResponse, HTTP status code, HTTP response headers (array of strings)
200
+ */
201
+ public function cancellationIndexWithHttpInfo($createdSince)
202
+ {
203
+ // verify the required parameter 'createdSince' is set
204
+ if ($createdSince === null) {
205
+ throw new \InvalidArgumentException('Missing the required parameter $createdSince when calling cancellationIndex');
206
+ }
207
+ // parse inputs
208
+ $resourcePath = "/v2/cancellations";
209
+ $httpBody = '';
210
+ $queryParams = [];
211
+ $headerParams = [];
212
+ $formParams = [];
213
+ $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json']);
214
+ if (!is_null($_header_accept)) {
215
+ $headerParams['Accept'] = $_header_accept;
216
+ }
217
+ $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]);
218
+
219
+ // query params
220
+ if ($createdSince !== null) {
221
+ $queryParams['createdSince'] = $this->apiClient->getSerializer()->toQueryValue($createdSince);
222
+ }
223
+ // default format to json
224
+ $resourcePath = str_replace("{format}", "json", $resourcePath);
225
+
226
+
227
+ // for model (json/xml)
228
+ if (isset($_tempBody)) {
229
+ $httpBody = $_tempBody; // $_tempBody is the method argument, if present
230
+ } elseif (count($formParams) > 0) {
231
+ $httpBody = $formParams; // for HTTP post (form)
232
+ }
233
+ // this endpoint requires API key authentication
234
+ $apiKey = $this->apiClient->getApiKeyWithPrefix('apikey');
235
+ if (strlen($apiKey) !== 0) {
236
+ $queryParams['apikey'] = $apiKey;
237
+ }
238
+ // make the API Call
239
+ try {
240
+ list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(
241
+ $resourcePath,
242
+ 'GET',
243
+ $queryParams,
244
+ $httpBody,
245
+ $headerParams,
246
+ '\ChannelEngine\ApiClient\Model\CollectionOfChannelCancellationResponse',
247
+ '/v2/cancellations'
248
+ );
249
+
250
+ return [$this->apiClient->getSerializer()->deserialize($response, '\ChannelEngine\ApiClient\Model\CollectionOfChannelCancellationResponse', $httpHeader), $statusCode, $httpHeader];
251
+ } catch (ApiException $e) {
252
+ switch ($e->getCode()) {
253
+ case 200:
254
+ $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\ChannelEngine\ApiClient\Model\CollectionOfChannelCancellationResponse', $e->getResponseHeaders());
255
+ $e->setResponseObject($data);
256
+ break;
257
+ }
258
+
259
+ throw $e;
260
+ }
261
+ }
262
+ }
lib/ChannelEngine/vendor/channelengine/api-client/lib/Api/ClientApi.php ADDED
@@ -0,0 +1,179 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ClientApi
4
+ * PHP version 5
5
+ *
6
+ * @category Class
7
+ * @package ChannelEngine\ApiClient
8
+ * @author Swagger Codegen team
9
+ * @link https://github.com/swagger-api/swagger-codegen
10
+ */
11
+
12
+ /**
13
+ * ChannelEngine API V2
14
+ *
15
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
16
+ *
17
+ * OpenAPI spec version: v2
18
+ *
19
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
20
+ *
21
+ */
22
+
23
+ /**
24
+ * NOTE: This class is auto generated by the swagger code generator program.
25
+ * https://github.com/swagger-api/swagger-codegen
26
+ * Do not edit the class manually.
27
+ */
28
+
29
+ namespace ChannelEngine\ApiClient\Api;
30
+
31
+ use \ChannelEngine\ApiClient\ApiClient;
32
+ use \ChannelEngine\ApiClient\ApiException;
33
+ use \ChannelEngine\ApiClient\Configuration;
34
+ use \ChannelEngine\ApiClient\ObjectSerializer;
35
+
36
+ /**
37
+ * ClientApi Class Doc Comment
38
+ *
39
+ * @category Class
40
+ * @package ChannelEngine\ApiClient
41
+ * @author Swagger Codegen team
42
+ * @link https://github.com/swagger-api/swagger-codegen
43
+ */
44
+ class ClientApi
45
+ {
46
+ /**
47
+ * API Client
48
+ *
49
+ * @var \ChannelEngine\ApiClient\ApiClient instance of the ApiClient
50
+ */
51
+ protected $apiClient;
52
+
53
+ /**
54
+ * Constructor
55
+ *
56
+ * @param \ChannelEngine\ApiClient\ApiClient|null $apiClient The api client to use
57
+ */
58
+ public function __construct(\ChannelEngine\ApiClient\ApiClient $apiClient = null)
59
+ {
60
+ if ($apiClient === null) {
61
+ $apiClient = new ApiClient();
62
+ }
63
+
64
+ $this->apiClient = $apiClient;
65
+ }
66
+
67
+ /**
68
+ * Get API client
69
+ *
70
+ * @return \ChannelEngine\ApiClient\ApiClient get the API client
71
+ */
72
+ public function getApiClient()
73
+ {
74
+ return $this->apiClient;
75
+ }
76
+
77
+ /**
78
+ * Set the API client
79
+ *
80
+ * @param \ChannelEngine\ApiClient\ApiClient $apiClient set the API client
81
+ *
82
+ * @return ClientApi
83
+ */
84
+ public function setApiClient(\ChannelEngine\ApiClient\ApiClient $apiClient)
85
+ {
86
+ $this->apiClient = $apiClient;
87
+ return $this;
88
+ }
89
+
90
+ /**
91
+ * Operation clientGet
92
+ *
93
+ * Get API Client
94
+ *
95
+ * @param string $language The programming language (required)
96
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
97
+ * @return \SplFileObject
98
+ */
99
+ public function clientGet($language)
100
+ {
101
+ list($response) = $this->clientGetWithHttpInfo($language);
102
+ return $response;
103
+ }
104
+
105
+ /**
106
+ * Operation clientGetWithHttpInfo
107
+ *
108
+ * Get API Client
109
+ *
110
+ * @param string $language The programming language (required)
111
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
112
+ * @return array of \SplFileObject, HTTP status code, HTTP response headers (array of strings)
113
+ */
114
+ public function clientGetWithHttpInfo($language)
115
+ {
116
+ // verify the required parameter 'language' is set
117
+ if ($language === null) {
118
+ throw new \InvalidArgumentException('Missing the required parameter $language when calling clientGet');
119
+ }
120
+ // parse inputs
121
+ $resourcePath = "/v2/clients/{language}";
122
+ $httpBody = '';
123
+ $queryParams = [];
124
+ $headerParams = [];
125
+ $formParams = [];
126
+ $_header_accept = $this->apiClient->selectHeaderAccept(['application/zip']);
127
+ if (!is_null($_header_accept)) {
128
+ $headerParams['Accept'] = $_header_accept;
129
+ }
130
+ $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]);
131
+
132
+ // path params
133
+ if ($language !== null) {
134
+ $resourcePath = str_replace(
135
+ "{" . "language" . "}",
136
+ $this->apiClient->getSerializer()->toPathValue($language),
137
+ $resourcePath
138
+ );
139
+ }
140
+ // default format to json
141
+ $resourcePath = str_replace("{format}", "json", $resourcePath);
142
+
143
+
144
+ // for model (json/xml)
145
+ if (isset($_tempBody)) {
146
+ $httpBody = $_tempBody; // $_tempBody is the method argument, if present
147
+ } elseif (count($formParams) > 0) {
148
+ $httpBody = $formParams; // for HTTP post (form)
149
+ }
150
+ // this endpoint requires API key authentication
151
+ $apiKey = $this->apiClient->getApiKeyWithPrefix('apikey');
152
+ if (strlen($apiKey) !== 0) {
153
+ $queryParams['apikey'] = $apiKey;
154
+ }
155
+ // make the API Call
156
+ try {
157
+ list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(
158
+ $resourcePath,
159
+ 'GET',
160
+ $queryParams,
161
+ $httpBody,
162
+ $headerParams,
163
+ '\SplFileObject',
164
+ '/v2/clients/{language}'
165
+ );
166
+
167
+ return [$this->apiClient->getSerializer()->deserialize($response, '\SplFileObject', $httpHeader), $statusCode, $httpHeader];
168
+ } catch (ApiException $e) {
169
+ switch ($e->getCode()) {
170
+ case 200:
171
+ $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\SplFileObject', $e->getResponseHeaders());
172
+ $e->setResponseObject($data);
173
+ break;
174
+ }
175
+
176
+ throw $e;
177
+ }
178
+ }
179
+ }
lib/ChannelEngine/vendor/channelengine/api-client/lib/Api/OrderApi.php ADDED
@@ -0,0 +1,531 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * OrderApi
4
+ * PHP version 5
5
+ *
6
+ * @category Class
7
+ * @package ChannelEngine\ApiClient
8
+ * @author Swagger Codegen team
9
+ * @link https://github.com/swagger-api/swagger-codegen
10
+ */
11
+
12
+ /**
13
+ * ChannelEngine API V2
14
+ *
15
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
16
+ *
17
+ * OpenAPI spec version: v2
18
+ *
19
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
20
+ *
21
+ */
22
+
23
+ /**
24
+ * NOTE: This class is auto generated by the swagger code generator program.
25
+ * https://github.com/swagger-api/swagger-codegen
26
+ * Do not edit the class manually.
27
+ */
28
+
29
+ namespace ChannelEngine\ApiClient\Api;
30
+
31
+ use \ChannelEngine\ApiClient\ApiClient;
32
+ use \ChannelEngine\ApiClient\ApiException;
33
+ use \ChannelEngine\ApiClient\Configuration;
34
+ use \ChannelEngine\ApiClient\ObjectSerializer;
35
+
36
+ /**
37
+ * OrderApi Class Doc Comment
38
+ *
39
+ * @category Class
40
+ * @package ChannelEngine\ApiClient
41
+ * @author Swagger Codegen team
42
+ * @link https://github.com/swagger-api/swagger-codegen
43
+ */
44
+ class OrderApi
45
+ {
46
+ /**
47
+ * API Client
48
+ *
49
+ * @var \ChannelEngine\ApiClient\ApiClient instance of the ApiClient
50
+ */
51
+ protected $apiClient;
52
+
53
+ /**
54
+ * Constructor
55
+ *
56
+ * @param \ChannelEngine\ApiClient\ApiClient|null $apiClient The api client to use
57
+ */
58
+ public function __construct(\ChannelEngine\ApiClient\ApiClient $apiClient = null)
59
+ {
60
+ if ($apiClient === null) {
61
+ $apiClient = new ApiClient();
62
+ }
63
+
64
+ $this->apiClient = $apiClient;
65
+ }
66
+
67
+ /**
68
+ * Get API client
69
+ *
70
+ * @return \ChannelEngine\ApiClient\ApiClient get the API client
71
+ */
72
+ public function getApiClient()
73
+ {
74
+ return $this->apiClient;
75
+ }
76
+
77
+ /**
78
+ * Set the API client
79
+ *
80
+ * @param \ChannelEngine\ApiClient\ApiClient $apiClient set the API client
81
+ *
82
+ * @return OrderApi
83
+ */
84
+ public function setApiClient(\ChannelEngine\ApiClient\ApiClient $apiClient)
85
+ {
86
+ $this->apiClient = $apiClient;
87
+ return $this;
88
+ }
89
+
90
+ /**
91
+ * Operation orderAcknowledge
92
+ *
93
+ * Merchant: Acknowledge Order
94
+ *
95
+ * @param \ChannelEngine\ApiClient\Model\OrderAcknowledgement $model Relations between the id&#39;s returned by ChannelEngine and the references which the merchant uses (required)
96
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
97
+ * @return \ChannelEngine\ApiClient\Model\ApiResponse
98
+ */
99
+ public function orderAcknowledge($model)
100
+ {
101
+ list($response) = $this->orderAcknowledgeWithHttpInfo($model);
102
+ return $response;
103
+ }
104
+
105
+ /**
106
+ * Operation orderAcknowledgeWithHttpInfo
107
+ *
108
+ * Merchant: Acknowledge Order
109
+ *
110
+ * @param \ChannelEngine\ApiClient\Model\OrderAcknowledgement $model Relations between the id&#39;s returned by ChannelEngine and the references which the merchant uses (required)
111
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
112
+ * @return array of \ChannelEngine\ApiClient\Model\ApiResponse, HTTP status code, HTTP response headers (array of strings)
113
+ */
114
+ public function orderAcknowledgeWithHttpInfo($model)
115
+ {
116
+ // verify the required parameter 'model' is set
117
+ if ($model === null) {
118
+ throw new \InvalidArgumentException('Missing the required parameter $model when calling orderAcknowledge');
119
+ }
120
+ // parse inputs
121
+ $resourcePath = "/v2/orders/acknowledge";
122
+ $httpBody = '';
123
+ $queryParams = [];
124
+ $headerParams = [];
125
+ $formParams = [];
126
+ $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json']);
127
+ if (!is_null($_header_accept)) {
128
+ $headerParams['Accept'] = $_header_accept;
129
+ }
130
+ $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']);
131
+
132
+ // default format to json
133
+ $resourcePath = str_replace("{format}", "json", $resourcePath);
134
+
135
+ // body params
136
+ $_tempBody = null;
137
+ if (isset($model)) {
138
+ $_tempBody = $model;
139
+ }
140
+
141
+ // for model (json/xml)
142
+ if (isset($_tempBody)) {
143
+ $httpBody = $_tempBody; // $_tempBody is the method argument, if present
144
+ } elseif (count($formParams) > 0) {
145
+ $httpBody = $formParams; // for HTTP post (form)
146
+ }
147
+ // this endpoint requires API key authentication
148
+ $apiKey = $this->apiClient->getApiKeyWithPrefix('apikey');
149
+ if (strlen($apiKey) !== 0) {
150
+ $queryParams['apikey'] = $apiKey;
151
+ }
152
+ // make the API Call
153
+ try {
154
+ list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(
155
+ $resourcePath,
156
+ 'POST',
157
+ $queryParams,
158
+ $httpBody,
159
+ $headerParams,
160
+ '\ChannelEngine\ApiClient\Model\ApiResponse',
161
+ '/v2/orders/acknowledge'
162
+ );
163
+
164
+ return [$this->apiClient->getSerializer()->deserialize($response, '\ChannelEngine\ApiClient\Model\ApiResponse', $httpHeader), $statusCode, $httpHeader];
165
+ } catch (ApiException $e) {
166
+ switch ($e->getCode()) {
167
+ case 200:
168
+ $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\ChannelEngine\ApiClient\Model\ApiResponse', $e->getResponseHeaders());
169
+ $e->setResponseObject($data);
170
+ break;
171
+ }
172
+
173
+ throw $e;
174
+ }
175
+ }
176
+
177
+ /**
178
+ * Operation orderCreate
179
+ *
180
+ * Channel: Create Order
181
+ *
182
+ * @param \ChannelEngine\ApiClient\Model\ChannelOrderRequest $model (required)
183
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
184
+ * @return \ChannelEngine\ApiClient\Model\ApiResponse
185
+ */
186
+ public function orderCreate($model)
187
+ {
188
+ list($response) = $this->orderCreateWithHttpInfo($model);
189
+ return $response;
190
+ }
191
+
192
+ /**
193
+ * Operation orderCreateWithHttpInfo
194
+ *
195
+ * Channel: Create Order
196
+ *
197
+ * @param \ChannelEngine\ApiClient\Model\ChannelOrderRequest $model (required)
198
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
199
+ * @return array of \ChannelEngine\ApiClient\Model\ApiResponse, HTTP status code, HTTP response headers (array of strings)
200
+ */
201
+ public function orderCreateWithHttpInfo($model)
202
+ {
203
+ // verify the required parameter 'model' is set
204
+ if ($model === null) {
205
+ throw new \InvalidArgumentException('Missing the required parameter $model when calling orderCreate');
206
+ }
207
+ // parse inputs
208
+ $resourcePath = "/v2/orders";
209
+ $httpBody = '';
210
+ $queryParams = [];
211
+ $headerParams = [];
212
+ $formParams = [];
213
+ $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json']);
214
+ if (!is_null($_header_accept)) {
215
+ $headerParams['Accept'] = $_header_accept;
216
+ }
217
+ $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json', 'text/json', 'application/x-www-form-urlencoded']);
218
+
219
+ // default format to json
220
+ $resourcePath = str_replace("{format}", "json", $resourcePath);
221
+
222
+ // body params
223
+ $_tempBody = null;
224
+ if (isset($model)) {
225
+ $_tempBody = $model;
226
+ }
227
+
228
+ // for model (json/xml)
229
+ if (isset($_tempBody)) {
230
+ $httpBody = $_tempBody; // $_tempBody is the method argument, if present
231
+ } elseif (count($formParams) > 0) {
232
+ $httpBody = $formParams; // for HTTP post (form)
233
+ }
234
+ // this endpoint requires API key authentication
235
+ $apiKey = $this->apiClient->getApiKeyWithPrefix('apikey');
236
+ if (strlen($apiKey) !== 0) {
237
+ $queryParams['apikey'] = $apiKey;
238
+ }
239
+ // make the API Call
240
+ try {
241
+ list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(
242
+ $resourcePath,
243
+ 'POST',
244
+ $queryParams,
245
+ $httpBody,
246
+ $headerParams,
247
+ '\ChannelEngine\ApiClient\Model\ApiResponse',
248
+ '/v2/orders'
249
+ );
250
+
251
+ return [$this->apiClient->getSerializer()->deserialize($response, '\ChannelEngine\ApiClient\Model\ApiResponse', $httpHeader), $statusCode, $httpHeader];
252
+ } catch (ApiException $e) {
253
+ switch ($e->getCode()) {
254
+ case 200:
255
+ $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\ChannelEngine\ApiClient\Model\ApiResponse', $e->getResponseHeaders());
256
+ $e->setResponseObject($data);
257
+ break;
258
+ }
259
+
260
+ throw $e;
261
+ }
262
+ }
263
+
264
+ /**
265
+ * Operation orderGetNew
266
+ *
267
+ * Merchant: Get New Orders
268
+ *
269
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
270
+ * @return \ChannelEngine\ApiClient\Model\CollectionOfMerchantOrderResponse
271
+ */
272
+ public function orderGetNew()
273
+ {
274
+ list($response) = $this->orderGetNewWithHttpInfo();
275
+ return $response;
276
+ }
277
+
278
+ /**
279
+ * Operation orderGetNewWithHttpInfo
280
+ *
281
+ * Merchant: Get New Orders
282
+ *
283
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
284
+ * @return array of \ChannelEngine\ApiClient\Model\CollectionOfMerchantOrderResponse, HTTP status code, HTTP response headers (array of strings)
285
+ */
286
+ public function orderGetNewWithHttpInfo()
287
+ {
288
+ // parse inputs
289
+ $resourcePath = "/v2/orders/new";
290
+ $httpBody = '';
291
+ $queryParams = [];
292
+ $headerParams = [];
293
+ $formParams = [];
294
+ $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json']);
295
+ if (!is_null($_header_accept)) {
296
+ $headerParams['Accept'] = $_header_accept;
297
+ }
298
+ $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]);
299
+
300
+ // default format to json
301
+ $resourcePath = str_replace("{format}", "json", $resourcePath);
302
+
303
+
304
+ // for model (json/xml)
305
+ if (isset($_tempBody)) {
306
+ $httpBody = $_tempBody; // $_tempBody is the method argument, if present
307
+ } elseif (count($formParams) > 0) {
308
+ $httpBody = $formParams; // for HTTP post (form)
309
+ }
310
+ // this endpoint requires API key authentication
311
+ $apiKey = $this->apiClient->getApiKeyWithPrefix('apikey');
312
+ if (strlen($apiKey) !== 0) {
313
+ $queryParams['apikey'] = $apiKey;
314
+ }
315
+ // make the API Call
316
+ try {
317
+ list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(
318
+ $resourcePath,
319
+ 'GET',
320
+ $queryParams,
321
+ $httpBody,
322
+ $headerParams,
323
+ '\ChannelEngine\ApiClient\Model\CollectionOfMerchantOrderResponse',
324
+ '/v2/orders/new'
325
+ );
326
+
327
+ return [$this->apiClient->getSerializer()->deserialize($response, '\ChannelEngine\ApiClient\Model\CollectionOfMerchantOrderResponse', $httpHeader), $statusCode, $httpHeader];
328
+ } catch (ApiException $e) {
329
+ switch ($e->getCode()) {
330
+ case 200:
331
+ $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\ChannelEngine\ApiClient\Model\CollectionOfMerchantOrderResponse', $e->getResponseHeaders());
332
+ $e->setResponseObject($data);
333
+ break;
334
+ }
335
+
336
+ throw $e;
337
+ }
338
+ }
339
+
340
+ /**
341
+ * Operation orderInvoice
342
+ *
343
+ * Merchant: Download Invoice
344
+ *
345
+ * @param string $merchantOrderNo The unique order reference as used by the merchant (required)
346
+ * @param bool $useCustomerCulture Generate the invoice in the billing address&#39; country&#39;s language (optional)
347
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
348
+ * @return \SplFileObject
349
+ */
350
+ public function orderInvoice($merchantOrderNo, $useCustomerCulture = null)
351
+ {
352
+ list($response) = $this->orderInvoiceWithHttpInfo($merchantOrderNo, $useCustomerCulture);
353
+ return $response;
354
+ }
355
+
356
+ /**
357
+ * Operation orderInvoiceWithHttpInfo
358
+ *
359
+ * Merchant: Download Invoice
360
+ *
361
+ * @param string $merchantOrderNo The unique order reference as used by the merchant (required)
362
+ * @param bool $useCustomerCulture Generate the invoice in the billing address&#39; country&#39;s language (optional)
363
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
364
+ * @return array of \SplFileObject, HTTP status code, HTTP response headers (array of strings)
365
+ */
366
+ public function orderInvoiceWithHttpInfo($merchantOrderNo, $useCustomerCulture = null)
367
+ {
368
+ // verify the required parameter 'merchantOrderNo' is set
369
+ if ($merchantOrderNo === null) {
370
+ throw new \InvalidArgumentException('Missing the required parameter $merchantOrderNo when calling orderInvoice');
371
+ }
372
+ // parse inputs
373
+ $resourcePath = "/v2/orders/{merchantOrderNo}/invoice";
374
+ $httpBody = '';
375
+ $queryParams = [];
376
+ $headerParams = [];
377
+ $formParams = [];
378
+ $_header_accept = $this->apiClient->selectHeaderAccept(['application/pdf']);
379
+ if (!is_null($_header_accept)) {
380
+ $headerParams['Accept'] = $_header_accept;
381
+ }
382
+ $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]);
383
+
384
+ // query params
385
+ if ($useCustomerCulture !== null) {
386
+ $queryParams['useCustomerCulture'] = $this->apiClient->getSerializer()->toQueryValue($useCustomerCulture);
387
+ }
388
+ // path params
389
+ if ($merchantOrderNo !== null) {
390
+ $resourcePath = str_replace(
391
+ "{" . "merchantOrderNo" . "}",
392
+ $this->apiClient->getSerializer()->toPathValue($merchantOrderNo),
393
+ $resourcePath
394
+ );
395
+ }
396
+ // default format to json
397
+ $resourcePath = str_replace("{format}", "json", $resourcePath);
398
+
399
+
400
+ // for model (json/xml)
401
+ if (isset($_tempBody)) {
402
+ $httpBody = $_tempBody; // $_tempBody is the method argument, if present
403
+ } elseif (count($formParams) > 0) {
404
+ $httpBody = $formParams; // for HTTP post (form)
405
+ }
406
+ // this endpoint requires API key authentication
407
+ $apiKey = $this->apiClient->getApiKeyWithPrefix('apikey');
408
+ if (strlen($apiKey) !== 0) {
409
+ $queryParams['apikey'] = $apiKey;
410
+ }
411
+ // make the API Call
412
+ try {
413
+ list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(
414
+ $resourcePath,
415
+ 'GET',
416
+ $queryParams,
417
+ $httpBody,
418
+ $headerParams,
419
+ '\SplFileObject',
420
+ '/v2/orders/{merchantOrderNo}/invoice'
421
+ );
422
+
423
+ return [$this->apiClient->getSerializer()->deserialize($response, '\SplFileObject', $httpHeader), $statusCode, $httpHeader];
424
+ } catch (ApiException $e) {
425
+ switch ($e->getCode()) {
426
+ case 200:
427
+ $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\SplFileObject', $e->getResponseHeaders());
428
+ $e->setResponseObject($data);
429
+ break;
430
+ }
431
+
432
+ throw $e;
433
+ }
434
+ }
435
+
436
+ /**
437
+ * Operation orderPackingSlip
438
+ *
439
+ * Merchant: Download Packing Slip
440
+ *
441
+ * @param string $merchantOrderNo The unique order reference as used by the merchant (required)
442
+ * @param bool $useCustomerCulture Generate the invoice in the billing address&#39; country&#39;s language (optional)
443
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
444
+ * @return \SplFileObject
445
+ */
446
+ public function orderPackingSlip($merchantOrderNo, $useCustomerCulture = null)
447
+ {
448
+ list($response) = $this->orderPackingSlipWithHttpInfo($merchantOrderNo, $useCustomerCulture);
449
+ return $response;
450
+ }
451
+
452
+ /**
453
+ * Operation orderPackingSlipWithHttpInfo
454
+ *
455
+ * Merchant: Download Packing Slip
456
+ *
457
+ * @param string $merchantOrderNo The unique order reference as used by the merchant (required)
458
+ * @param bool $useCustomerCulture Generate the invoice in the billing address&#39; country&#39;s language (optional)
459
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
460
+ * @return array of \SplFileObject, HTTP status code, HTTP response headers (array of strings)
461
+ */
462
+ public function orderPackingSlipWithHttpInfo($merchantOrderNo, $useCustomerCulture = null)
463
+ {
464
+ // verify the required parameter 'merchantOrderNo' is set
465
+ if ($merchantOrderNo === null) {
466
+ throw new \InvalidArgumentException('Missing the required parameter $merchantOrderNo when calling orderPackingSlip');
467
+ }
468
+ // parse inputs
469
+ $resourcePath = "/v2/orders/{merchantOrderNo}/packingslip";
470
+ $httpBody = '';
471
+ $queryParams = [];
472
+ $headerParams = [];
473
+ $formParams = [];
474
+ $_header_accept = $this->apiClient->selectHeaderAccept(['application/pdf']);
475
+ if (!is_null($_header_accept)) {
476
+ $headerParams['Accept'] = $_header_accept;
477
+ }
478
+ $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]);
479
+
480
+ // query params
481
+ if ($useCustomerCulture !== null) {
482
+ $queryParams['useCustomerCulture'] = $this->apiClient->getSerializer()->toQueryValue($useCustomerCulture);
483
+ }
484
+ // path params
485
+ if ($merchantOrderNo !== null) {
486
+ $resourcePath = str_replace(
487
+ "{" . "merchantOrderNo" . "}",
488
+ $this->apiClient->getSerializer()->toPathValue($merchantOrderNo),
489
+ $resourcePath
490
+ );
491
+ }
492
+ // default format to json
493
+ $resourcePath = str_replace("{format}", "json", $resourcePath);
494
+
495
+
496
+ // for model (json/xml)
497
+ if (isset($_tempBody)) {
498
+ $httpBody = $_tempBody; // $_tempBody is the method argument, if present
499
+ } elseif (count($formParams) > 0) {
500
+ $httpBody = $formParams; // for HTTP post (form)
501
+ }
502
+ // this endpoint requires API key authentication
503
+ $apiKey = $this->apiClient->getApiKeyWithPrefix('apikey');
504
+ if (strlen($apiKey) !== 0) {
505
+ $queryParams['apikey'] = $apiKey;
506
+ }
507
+ // make the API Call
508
+ try {
509
+ list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(
510
+ $resourcePath,
511
+ 'GET',
512
+ $queryParams,
513
+ $httpBody,
514
+ $headerParams,
515
+ '\SplFileObject',
516
+ '/v2/orders/{merchantOrderNo}/packingslip'
517
+ );
518
+
519
+ return [$this->apiClient->getSerializer()->deserialize($response, '\SplFileObject', $httpHeader), $statusCode, $httpHeader];
520
+ } catch (ApiException $e) {
521
+ switch ($e->getCode()) {
522
+ case 200:
523
+ $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\SplFileObject', $e->getResponseHeaders());
524
+ $e->setResponseObject($data);
525
+ break;
526
+ }
527
+
528
+ throw $e;
529
+ }
530
+ }
531
+ }
lib/ChannelEngine/vendor/channelengine/api-client/lib/Api/ProductApi.php ADDED
@@ -0,0 +1,688 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ProductApi
4
+ * PHP version 5
5
+ *
6
+ * @category Class
7
+ * @package ChannelEngine\ApiClient
8
+ * @author Swagger Codegen team
9
+ * @link https://github.com/swagger-api/swagger-codegen
10
+ */
11
+
12
+ /**
13
+ * ChannelEngine API V2
14
+ *
15
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
16
+ *
17
+ * OpenAPI spec version: v2
18
+ *
19
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
20
+ *
21
+ */
22
+
23
+ /**
24
+ * NOTE: This class is auto generated by the swagger code generator program.
25
+ * https://github.com/swagger-api/swagger-codegen
26
+ * Do not edit the class manually.
27
+ */
28
+
29
+ namespace ChannelEngine\ApiClient\Api;
30
+
31
+ use \ChannelEngine\ApiClient\ApiClient;
32
+ use \ChannelEngine\ApiClient\ApiException;
33
+ use \ChannelEngine\ApiClient\Configuration;
34
+ use \ChannelEngine\ApiClient\ObjectSerializer;
35
+
36
+ /**
37
+ * ProductApi Class Doc Comment
38
+ *
39
+ * @category Class
40
+ * @package ChannelEngine\ApiClient
41
+ * @author Swagger Codegen team
42
+ * @link https://github.com/swagger-api/swagger-codegen
43
+ */
44
+ class ProductApi
45
+ {
46
+ /**
47
+ * API Client
48
+ *
49
+ * @var \ChannelEngine\ApiClient\ApiClient instance of the ApiClient
50
+ */
51
+ protected $apiClient;
52
+
53
+ /**
54
+ * Constructor
55
+ *
56
+ * @param \ChannelEngine\ApiClient\ApiClient|null $apiClient The api client to use
57
+ */
58
+ public function __construct(\ChannelEngine\ApiClient\ApiClient $apiClient = null)
59
+ {
60
+ if ($apiClient === null) {
61
+ $apiClient = new ApiClient();
62
+ }
63
+
64
+ $this->apiClient = $apiClient;
65
+ }
66
+
67
+ /**
68
+ * Get API client
69
+ *
70
+ * @return \ChannelEngine\ApiClient\ApiClient get the API client
71
+ */
72
+ public function getApiClient()
73
+ {
74
+ return $this->apiClient;
75
+ }
76
+
77
+ /**
78
+ * Set the API client
79
+ *
80
+ * @param \ChannelEngine\ApiClient\ApiClient $apiClient set the API client
81
+ *
82
+ * @return ProductApi
83
+ */
84
+ public function setApiClient(\ChannelEngine\ApiClient\ApiClient $apiClient)
85
+ {
86
+ $this->apiClient = $apiClient;
87
+ return $this;
88
+ }
89
+
90
+ /**
91
+ * Operation productAcknowledgeDataChanges
92
+ *
93
+ * Channel: Acknowledge Product Data Changes
94
+ *
95
+ * @param \ChannelEngine\ApiClient\Model\ChannelProcessedChangesRequest $changes The merchant references of the products which have been successfully created, updated or deleted (after a call to &#39;GetDataChanges&#39;) (required)
96
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
97
+ * @return \ChannelEngine\ApiClient\Model\ApiResponse
98
+ */
99
+ public function productAcknowledgeDataChanges($changes)
100
+ {
101
+ list($response) = $this->productAcknowledgeDataChangesWithHttpInfo($changes);
102
+ return $response;
103
+ }
104
+
105
+ /**
106
+ * Operation productAcknowledgeDataChangesWithHttpInfo
107
+ *
108
+ * Channel: Acknowledge Product Data Changes
109
+ *
110
+ * @param \ChannelEngine\ApiClient\Model\ChannelProcessedChangesRequest $changes The merchant references of the products which have been successfully created, updated or deleted (after a call to &#39;GetDataChanges&#39;) (required)
111
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
112
+ * @return array of \ChannelEngine\ApiClient\Model\ApiResponse, HTTP status code, HTTP response headers (array of strings)
113
+ */
114
+ public function productAcknowledgeDataChangesWithHttpInfo($changes)
115
+ {
116
+ // verify the required parameter 'changes' is set
117
+ if ($changes === null) {
118
+ throw new \InvalidArgumentException('Missing the required parameter $changes when calling productAcknowledgeDataChanges');
119
+ }
120
+ // parse inputs
121
+ $resourcePath = "/v2/products/data";
122
+ $httpBody = '';
123
+ $queryParams = [];
124
+ $headerParams = [];
125
+ $formParams = [];
126
+ $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json']);
127
+ if (!is_null($_header_accept)) {
128
+ $headerParams['Accept'] = $_header_accept;
129
+ }
130
+ $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']);
131
+
132
+ // default format to json
133
+ $resourcePath = str_replace("{format}", "json", $resourcePath);
134
+
135
+ // body params
136
+ $_tempBody = null;
137
+ if (isset($changes)) {
138
+ $_tempBody = $changes;
139
+ }
140
+
141
+ // for model (json/xml)
142
+ if (isset($_tempBody)) {
143
+ $httpBody = $_tempBody; // $_tempBody is the method argument, if present
144
+ } elseif (count($formParams) > 0) {
145
+ $httpBody = $formParams; // for HTTP post (form)
146
+ }
147
+ // this endpoint requires API key authentication
148
+ $apiKey = $this->apiClient->getApiKeyWithPrefix('apikey');
149
+ if (strlen($apiKey) !== 0) {
150
+ $queryParams['apikey'] = $apiKey;
151
+ }
152
+ // make the API Call
153
+ try {
154
+ list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(
155
+ $resourcePath,
156
+ 'POST',
157
+ $queryParams,
158
+ $httpBody,
159
+ $headerParams,
160
+ '\ChannelEngine\ApiClient\Model\ApiResponse',
161
+ '/v2/products/data'
162
+ );
163
+
164
+ return [$this->apiClient->getSerializer()->deserialize($response, '\ChannelEngine\ApiClient\Model\ApiResponse', $httpHeader), $statusCode, $httpHeader];
165
+ } catch (ApiException $e) {
166
+ switch ($e->getCode()) {
167
+ case 200:
168
+ $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\ChannelEngine\ApiClient\Model\ApiResponse', $e->getResponseHeaders());
169
+ $e->setResponseObject($data);
170
+ break;
171
+ }
172
+
173
+ throw $e;
174
+ }
175
+ }
176
+
177
+ /**
178
+ * Operation productAcknowledgeOfferChanges
179
+ *
180
+ * Channel: Acknowledge Product Offer Changes
181
+ *
182
+ * @param string[] $changes The channel references of the updated products (required)
183
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
184
+ * @return \ChannelEngine\ApiClient\Model\ApiResponse
185
+ */
186
+ public function productAcknowledgeOfferChanges($changes)
187
+ {
188
+ list($response) = $this->productAcknowledgeOfferChangesWithHttpInfo($changes);
189
+ return $response;
190
+ }
191
+
192
+ /**
193
+ * Operation productAcknowledgeOfferChangesWithHttpInfo
194
+ *
195
+ * Channel: Acknowledge Product Offer Changes
196
+ *
197
+ * @param string[] $changes The channel references of the updated products (required)
198
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
199
+ * @return array of \ChannelEngine\ApiClient\Model\ApiResponse, HTTP status code, HTTP response headers (array of strings)
200
+ */
201
+ public function productAcknowledgeOfferChangesWithHttpInfo($changes)
202
+ {
203
+ // verify the required parameter 'changes' is set
204
+ if ($changes === null) {
205
+ throw new \InvalidArgumentException('Missing the required parameter $changes when calling productAcknowledgeOfferChanges');
206
+ }
207
+ // parse inputs
208
+ $resourcePath = "/v2/products/offers";
209
+ $httpBody = '';
210
+ $queryParams = [];
211
+ $headerParams = [];
212
+ $formParams = [];
213
+ $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json']);
214
+ if (!is_null($_header_accept)) {
215
+ $headerParams['Accept'] = $_header_accept;
216
+ }
217
+ $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']);
218
+
219
+ // default format to json
220
+ $resourcePath = str_replace("{format}", "json", $resourcePath);
221
+
222
+ // body params
223
+ $_tempBody = null;
224
+ if (isset($changes)) {
225
+ $_tempBody = $changes;
226
+ }
227
+
228
+ // for model (json/xml)
229
+ if (isset($_tempBody)) {
230
+ $httpBody = $_tempBody; // $_tempBody is the method argument, if present
231
+ } elseif (count($formParams) > 0) {
232
+ $httpBody = $formParams; // for HTTP post (form)
233
+ }
234
+ // this endpoint requires API key authentication
235
+ $apiKey = $this->apiClient->getApiKeyWithPrefix('apikey');
236
+ if (strlen($apiKey) !== 0) {
237
+ $queryParams['apikey'] = $apiKey;
238
+ }
239
+ // make the API Call
240
+ try {
241
+ list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(
242
+ $resourcePath,
243
+ 'POST',
244
+ $queryParams,
245
+ $httpBody,
246
+ $headerParams,
247
+ '\ChannelEngine\ApiClient\Model\ApiResponse',
248
+ '/v2/products/offers'
249
+ );
250
+
251
+ return [$this->apiClient->getSerializer()->deserialize($response, '\ChannelEngine\ApiClient\Model\ApiResponse', $httpHeader), $statusCode, $httpHeader];
252
+ } catch (ApiException $e) {
253
+ switch ($e->getCode()) {
254
+ case 200:
255
+ $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\ChannelEngine\ApiClient\Model\ApiResponse', $e->getResponseHeaders());
256
+ $e->setResponseObject($data);
257
+ break;
258
+ }
259
+
260
+ throw $e;
261
+ }
262
+ }
263
+
264
+ /**
265
+ * Operation productCreate
266
+ *
267
+ * Merchant: Create Product
268
+ *
269
+ * @param \ChannelEngine\ApiClient\Model\MerchantProductRequest[] $products (required)
270
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
271
+ * @return \ChannelEngine\ApiClient\Model\SingleOfProductCreationResult
272
+ */
273
+ public function productCreate($products)
274
+ {
275
+ list($response) = $this->productCreateWithHttpInfo($products);
276
+ return $response;
277
+ }
278
+
279
+ /**
280
+ * Operation productCreateWithHttpInfo
281
+ *
282
+ * Merchant: Create Product
283
+ *
284
+ * @param \ChannelEngine\ApiClient\Model\MerchantProductRequest[] $products (required)
285
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
286
+ * @return array of \ChannelEngine\ApiClient\Model\SingleOfProductCreationResult, HTTP status code, HTTP response headers (array of strings)
287
+ */
288
+ public function productCreateWithHttpInfo($products)
289
+ {
290
+ // verify the required parameter 'products' is set
291
+ if ($products === null) {
292
+ throw new \InvalidArgumentException('Missing the required parameter $products when calling productCreate');
293
+ }
294
+ // parse inputs
295
+ $resourcePath = "/v2/products";
296
+ $httpBody = '';
297
+ $queryParams = [];
298
+ $headerParams = [];
299
+ $formParams = [];
300
+ $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json']);
301
+ if (!is_null($_header_accept)) {
302
+ $headerParams['Accept'] = $_header_accept;
303
+ }
304
+ $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json', 'text/json', 'application/x-www-form-urlencoded']);
305
+
306
+ // default format to json
307
+ $resourcePath = str_replace("{format}", "json", $resourcePath);
308
+
309
+ // body params
310
+ $_tempBody = null;
311
+ if (isset($products)) {
312
+ $_tempBody = $products;
313
+ }
314
+
315
+ // for model (json/xml)
316
+ if (isset($_tempBody)) {
317
+ $httpBody = $_tempBody; // $_tempBody is the method argument, if present
318
+ } elseif (count($formParams) > 0) {
319
+ $httpBody = $formParams; // for HTTP post (form)
320
+ }
321
+ // this endpoint requires API key authentication
322
+ $apiKey = $this->apiClient->getApiKeyWithPrefix('apikey');
323
+ if (strlen($apiKey) !== 0) {
324
+ $queryParams['apikey'] = $apiKey;
325
+ }
326
+ // make the API Call
327
+ try {
328
+ list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(
329
+ $resourcePath,
330
+ 'POST',
331
+ $queryParams,
332
+ $httpBody,
333
+ $headerParams,
334
+ '\ChannelEngine\ApiClient\Model\SingleOfProductCreationResult',
335
+ '/v2/products'
336
+ );
337
+
338
+ return [$this->apiClient->getSerializer()->deserialize($response, '\ChannelEngine\ApiClient\Model\SingleOfProductCreationResult', $httpHeader), $statusCode, $httpHeader];
339
+ } catch (ApiException $e) {
340
+ switch ($e->getCode()) {
341
+ case 200:
342
+ $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\ChannelEngine\ApiClient\Model\SingleOfProductCreationResult', $e->getResponseHeaders());
343
+ $e->setResponseObject($data);
344
+ break;
345
+ }
346
+
347
+ throw $e;
348
+ }
349
+ }
350
+
351
+ /**
352
+ * Operation productDelete
353
+ *
354
+ * Merchant: Delete Product
355
+ *
356
+ * @param string $merchantProductNo (required)
357
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
358
+ * @return \ChannelEngine\ApiClient\Model\ApiResponse
359
+ */
360
+ public function productDelete($merchantProductNo)
361
+ {
362
+ list($response) = $this->productDeleteWithHttpInfo($merchantProductNo);
363
+ return $response;
364
+ }
365
+
366
+ /**
367
+ * Operation productDeleteWithHttpInfo
368
+ *
369
+ * Merchant: Delete Product
370
+ *
371
+ * @param string $merchantProductNo (required)
372
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
373
+ * @return array of \ChannelEngine\ApiClient\Model\ApiResponse, HTTP status code, HTTP response headers (array of strings)
374
+ */
375
+ public function productDeleteWithHttpInfo($merchantProductNo)
376
+ {
377
+ // verify the required parameter 'merchantProductNo' is set
378
+ if ($merchantProductNo === null) {
379
+ throw new \InvalidArgumentException('Missing the required parameter $merchantProductNo when calling productDelete');
380
+ }
381
+ // parse inputs
382
+ $resourcePath = "/v2/products/{merchantProductNo}";
383
+ $httpBody = '';
384
+ $queryParams = [];
385
+ $headerParams = [];
386
+ $formParams = [];
387
+ $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json']);
388
+ if (!is_null($_header_accept)) {
389
+ $headerParams['Accept'] = $_header_accept;
390
+ }
391
+ $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]);
392
+
393
+ // path params
394
+ if ($merchantProductNo !== null) {
395
+ $resourcePath = str_replace(
396
+ "{" . "merchantProductNo" . "}",
397
+ $this->apiClient->getSerializer()->toPathValue($merchantProductNo),
398
+ $resourcePath
399
+ );
400
+ }
401
+ // default format to json
402
+ $resourcePath = str_replace("{format}", "json", $resourcePath);
403
+
404
+
405
+ // for model (json/xml)
406
+ if (isset($_tempBody)) {
407
+ $httpBody = $_tempBody; // $_tempBody is the method argument, if present
408
+ } elseif (count($formParams) > 0) {
409
+ $httpBody = $formParams; // for HTTP post (form)
410
+ }
411
+ // this endpoint requires API key authentication
412
+ $apiKey = $this->apiClient->getApiKeyWithPrefix('apikey');
413
+ if (strlen($apiKey) !== 0) {
414
+ $queryParams['apikey'] = $apiKey;
415
+ }
416
+ // make the API Call
417
+ try {
418
+ list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(
419
+ $resourcePath,
420
+ 'DELETE',
421
+ $queryParams,
422
+ $httpBody,
423
+ $headerParams,
424
+ '\ChannelEngine\ApiClient\Model\ApiResponse',
425
+ '/v2/products/{merchantProductNo}'
426
+ );
427
+
428
+ return [$this->apiClient->getSerializer()->deserialize($response, '\ChannelEngine\ApiClient\Model\ApiResponse', $httpHeader), $statusCode, $httpHeader];
429
+ } catch (ApiException $e) {
430
+ switch ($e->getCode()) {
431
+ case 200:
432
+ $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\ChannelEngine\ApiClient\Model\ApiResponse', $e->getResponseHeaders());
433
+ $e->setResponseObject($data);
434
+ break;
435
+ }
436
+
437
+ throw $e;
438
+ }
439
+ }
440
+
441
+ /**
442
+ * Operation productGetByMerchantProductNo
443
+ *
444
+ * Merchant: Get Product
445
+ *
446
+ * @param string $merchantProductNo (required)
447
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
448
+ * @return \ChannelEngine\ApiClient\Model\SingleOfMerchantProductResponse
449
+ */
450
+ public function productGetByMerchantProductNo($merchantProductNo)
451
+ {
452
+ list($response) = $this->productGetByMerchantProductNoWithHttpInfo($merchantProductNo);
453
+ return $response;
454
+ }
455
+
456
+ /**
457
+ * Operation productGetByMerchantProductNoWithHttpInfo
458
+ *
459
+ * Merchant: Get Product
460
+ *
461
+ * @param string $merchantProductNo (required)
462
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
463
+ * @return array of \ChannelEngine\ApiClient\Model\SingleOfMerchantProductResponse, HTTP status code, HTTP response headers (array of strings)
464
+ */
465
+ public function productGetByMerchantProductNoWithHttpInfo($merchantProductNo)
466
+ {
467
+ // verify the required parameter 'merchantProductNo' is set
468
+ if ($merchantProductNo === null) {
469
+ throw new \InvalidArgumentException('Missing the required parameter $merchantProductNo when calling productGetByMerchantProductNo');
470
+ }
471
+ // parse inputs
472
+ $resourcePath = "/v2/products/merchant/{merchantProductNo}";
473
+ $httpBody = '';
474
+ $queryParams = [];
475
+ $headerParams = [];
476
+ $formParams = [];
477
+ $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json']);
478
+ if (!is_null($_header_accept)) {
479
+ $headerParams['Accept'] = $_header_accept;
480
+ }
481
+ $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]);
482
+
483
+ // path params
484
+ if ($merchantProductNo !== null) {
485
+ $resourcePath = str_replace(
486
+ "{" . "merchantProductNo" . "}",
487
+ $this->apiClient->getSerializer()->toPathValue($merchantProductNo),
488
+ $resourcePath
489
+ );
490
+ }
491
+ // default format to json
492
+ $resourcePath = str_replace("{format}", "json", $resourcePath);
493
+
494
+
495
+ // for model (json/xml)
496
+ if (isset($_tempBody)) {
497
+ $httpBody = $_tempBody; // $_tempBody is the method argument, if present
498
+ } elseif (count($formParams) > 0) {
499
+ $httpBody = $formParams; // for HTTP post (form)
500
+ }
501
+ // this endpoint requires API key authentication
502
+ $apiKey = $this->apiClient->getApiKeyWithPrefix('apikey');
503
+ if (strlen($apiKey) !== 0) {
504
+ $queryParams['apikey'] = $apiKey;
505
+ }
506
+ // make the API Call
507
+ try {
508
+ list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(
509
+ $resourcePath,
510
+ 'GET',
511
+ $queryParams,
512
+ $httpBody,
513
+ $headerParams,
514
+ '\ChannelEngine\ApiClient\Model\SingleOfMerchantProductResponse',
515
+ '/v2/products/merchant/{merchantProductNo}'
516
+ );
517
+
518
+ return [$this->apiClient->getSerializer()->deserialize($response, '\ChannelEngine\ApiClient\Model\SingleOfMerchantProductResponse', $httpHeader), $statusCode, $httpHeader];
519
+ } catch (ApiException $e) {
520
+ switch ($e->getCode()) {
521
+ case 200:
522
+ $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\ChannelEngine\ApiClient\Model\SingleOfMerchantProductResponse', $e->getResponseHeaders());
523
+ $e->setResponseObject($data);
524
+ break;
525
+ }
526
+
527
+ throw $e;
528
+ }
529
+ }
530
+
531
+ /**
532
+ * Operation productGetDataChanges
533
+ *
534
+ * Channel: Get Product Data Changes
535
+ *
536
+ * @param int $maxCount Optional - limit the amount of products returned for each field (ToBeCreated, ToBeUpdated, ToBeRemoved) to this number. (optional)
537
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
538
+ * @return \ChannelEngine\ApiClient\Model\SingleOfChannelProductChangesResponse
539
+ */
540
+ public function productGetDataChanges($maxCount = null)
541
+ {
542
+ list($response) = $this->productGetDataChangesWithHttpInfo($maxCount);
543
+ return $response;
544
+ }
545
+
546
+ /**
547
+ * Operation productGetDataChangesWithHttpInfo
548
+ *
549
+ * Channel: Get Product Data Changes
550
+ *
551
+ * @param int $maxCount Optional - limit the amount of products returned for each field (ToBeCreated, ToBeUpdated, ToBeRemoved) to this number. (optional)
552
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
553
+ * @return array of \ChannelEngine\ApiClient\Model\SingleOfChannelProductChangesResponse, HTTP status code, HTTP response headers (array of strings)
554
+ */
555
+ public function productGetDataChangesWithHttpInfo($maxCount = null)
556
+ {
557
+ // parse inputs
558
+ $resourcePath = "/v2/products/data";
559
+ $httpBody = '';
560
+ $queryParams = [];
561
+ $headerParams = [];
562
+ $formParams = [];
563
+ $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json']);
564
+ if (!is_null($_header_accept)) {
565
+ $headerParams['Accept'] = $_header_accept;
566
+ }
567
+ $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]);
568
+
569
+ // query params
570
+ if ($maxCount !== null) {
571
+ $queryParams['maxCount'] = $this->apiClient->getSerializer()->toQueryValue($maxCount);
572
+ }
573
+ // default format to json
574
+ $resourcePath = str_replace("{format}", "json", $resourcePath);
575
+
576
+
577
+ // for model (json/xml)
578
+ if (isset($_tempBody)) {
579
+ $httpBody = $_tempBody; // $_tempBody is the method argument, if present
580
+ } elseif (count($formParams) > 0) {
581
+ $httpBody = $formParams; // for HTTP post (form)
582
+ }
583
+ // this endpoint requires API key authentication
584
+ $apiKey = $this->apiClient->getApiKeyWithPrefix('apikey');
585
+ if (strlen($apiKey) !== 0) {
586
+ $queryParams['apikey'] = $apiKey;
587
+ }
588
+ // make the API Call
589
+ try {
590
+ list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(
591
+ $resourcePath,
592
+ 'GET',
593
+ $queryParams,
594
+ $httpBody,
595
+ $headerParams,
596
+ '\ChannelEngine\ApiClient\Model\SingleOfChannelProductChangesResponse',
597
+ '/v2/products/data'
598
+ );
599
+
600
+ return [$this->apiClient->getSerializer()->deserialize($response, '\ChannelEngine\ApiClient\Model\SingleOfChannelProductChangesResponse', $httpHeader), $statusCode, $httpHeader];
601
+ } catch (ApiException $e) {
602
+ switch ($e->getCode()) {
603
+ case 200:
604
+ $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\ChannelEngine\ApiClient\Model\SingleOfChannelProductChangesResponse', $e->getResponseHeaders());
605
+ $e->setResponseObject($data);
606
+ break;
607
+ }
608
+
609
+ throw $e;
610
+ }
611
+ }
612
+
613
+ /**
614
+ * Operation productGetOfferChanges
615
+ *
616
+ * Channel: Get Product Offer Changes
617
+ *
618
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
619
+ * @return \ChannelEngine\ApiClient\Model\CollectionOfChannelOfferResponse
620
+ */
621
+ public function productGetOfferChanges()
622
+ {
623
+ list($response) = $this->productGetOfferChangesWithHttpInfo();
624
+ return $response;
625
+ }
626
+
627
+ /**
628
+ * Operation productGetOfferChangesWithHttpInfo
629
+ *
630
+ * Channel: Get Product Offer Changes
631
+ *
632
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
633
+ * @return array of \ChannelEngine\ApiClient\Model\CollectionOfChannelOfferResponse, HTTP status code, HTTP response headers (array of strings)
634
+ */
635
+ public function productGetOfferChangesWithHttpInfo()
636
+ {
637
+ // parse inputs
638
+ $resourcePath = "/v2/products/offers";
639
+ $httpBody = '';
640
+ $queryParams = [];
641
+ $headerParams = [];
642
+ $formParams = [];
643
+ $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json']);
644
+ if (!is_null($_header_accept)) {
645
+ $headerParams['Accept'] = $_header_accept;
646
+ }
647
+ $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]);
648
+
649
+ // default format to json
650
+ $resourcePath = str_replace("{format}", "json", $resourcePath);
651
+
652
+
653
+ // for model (json/xml)
654
+ if (isset($_tempBody)) {
655
+ $httpBody = $_tempBody; // $_tempBody is the method argument, if present
656
+ } elseif (count($formParams) > 0) {
657
+ $httpBody = $formParams; // for HTTP post (form)
658
+ }
659
+ // this endpoint requires API key authentication
660
+ $apiKey = $this->apiClient->getApiKeyWithPrefix('apikey');
661
+ if (strlen($apiKey) !== 0) {
662
+ $queryParams['apikey'] = $apiKey;
663
+ }
664
+ // make the API Call
665
+ try {
666
+ list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(
667
+ $resourcePath,
668
+ 'GET',
669
+ $queryParams,
670
+ $httpBody,
671
+ $headerParams,
672
+ '\ChannelEngine\ApiClient\Model\CollectionOfChannelOfferResponse',
673
+ '/v2/products/offers'
674
+ );
675
+
676
+ return [$this->apiClient->getSerializer()->deserialize($response, '\ChannelEngine\ApiClient\Model\CollectionOfChannelOfferResponse', $httpHeader), $statusCode, $httpHeader];
677
+ } catch (ApiException $e) {
678
+ switch ($e->getCode()) {
679
+ case 200:
680
+ $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\ChannelEngine\ApiClient\Model\CollectionOfChannelOfferResponse', $e->getResponseHeaders());
681
+ $e->setResponseObject($data);
682
+ break;
683
+ }
684
+
685
+ throw $e;
686
+ }
687
+ }
688
+ }
lib/ChannelEngine/vendor/channelengine/api-client/lib/Api/ReturnApi.php ADDED
@@ -0,0 +1,435 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ReturnApi
4
+ * PHP version 5
5
+ *
6
+ * @category Class
7
+ * @package ChannelEngine\ApiClient
8
+ * @author Swagger Codegen team
9
+ * @link https://github.com/swagger-api/swagger-codegen
10
+ */
11
+
12
+ /**
13
+ * ChannelEngine API V2
14
+ *
15
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
16
+ *
17
+ * OpenAPI spec version: v2
18
+ *
19
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
20
+ *
21
+ */
22
+
23
+ /**
24
+ * NOTE: This class is auto generated by the swagger code generator program.
25
+ * https://github.com/swagger-api/swagger-codegen
26
+ * Do not edit the class manually.
27
+ */
28
+
29
+ namespace ChannelEngine\ApiClient\Api;
30
+
31
+ use \ChannelEngine\ApiClient\ApiClient;
32
+ use \ChannelEngine\ApiClient\ApiException;
33
+ use \ChannelEngine\ApiClient\Configuration;
34
+ use \ChannelEngine\ApiClient\ObjectSerializer;
35
+
36
+ /**
37
+ * ReturnApi Class Doc Comment
38
+ *
39
+ * @category Class
40
+ * @package ChannelEngine\ApiClient
41
+ * @author Swagger Codegen team
42
+ * @link https://github.com/swagger-api/swagger-codegen
43
+ */
44
+ class ReturnApi
45
+ {
46
+ /**
47
+ * API Client
48
+ *
49
+ * @var \ChannelEngine\ApiClient\ApiClient instance of the ApiClient
50
+ */
51
+ protected $apiClient;
52
+
53
+ /**
54
+ * Constructor
55
+ *
56
+ * @param \ChannelEngine\ApiClient\ApiClient|null $apiClient The api client to use
57
+ */
58
+ public function __construct(\ChannelEngine\ApiClient\ApiClient $apiClient = null)
59
+ {
60
+ if ($apiClient === null) {
61
+ $apiClient = new ApiClient();
62
+ }
63
+
64
+ $this->apiClient = $apiClient;
65
+ }
66
+
67
+ /**
68
+ * Get API client
69
+ *
70
+ * @return \ChannelEngine\ApiClient\ApiClient get the API client
71
+ */
72
+ public function getApiClient()
73
+ {
74
+ return $this->apiClient;
75
+ }
76
+
77
+ /**
78
+ * Set the API client
79
+ *
80
+ * @param \ChannelEngine\ApiClient\ApiClient $apiClient set the API client
81
+ *
82
+ * @return ReturnApi
83
+ */
84
+ public function setApiClient(\ChannelEngine\ApiClient\ApiClient $apiClient)
85
+ {
86
+ $this->apiClient = $apiClient;
87
+ return $this;
88
+ }
89
+
90
+ /**
91
+ * Operation returnDeclareForChannel
92
+ *
93
+ * Channel: Create Return
94
+ *
95
+ * @param \ChannelEngine\ApiClient\Model\ChannelReturnRequest $model (required)
96
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
97
+ * @return \ChannelEngine\ApiClient\Model\ApiResponse
98
+ */
99
+ public function returnDeclareForChannel($model)
100
+ {
101
+ list($response) = $this->returnDeclareForChannelWithHttpInfo($model);
102
+ return $response;
103
+ }
104
+
105
+ /**
106
+ * Operation returnDeclareForChannelWithHttpInfo
107
+ *
108
+ * Channel: Create Return
109
+ *
110
+ * @param \ChannelEngine\ApiClient\Model\ChannelReturnRequest $model (required)
111
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
112
+ * @return array of \ChannelEngine\ApiClient\Model\ApiResponse, HTTP status code, HTTP response headers (array of strings)
113
+ */
114
+ public function returnDeclareForChannelWithHttpInfo($model)
115
+ {
116
+ // verify the required parameter 'model' is set
117
+ if ($model === null) {
118
+ throw new \InvalidArgumentException('Missing the required parameter $model when calling returnDeclareForChannel');
119
+ }
120
+ // parse inputs
121
+ $resourcePath = "/v2/returns/channel";
122
+ $httpBody = '';
123
+ $queryParams = [];
124
+ $headerParams = [];
125
+ $formParams = [];
126
+ $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json']);
127
+ if (!is_null($_header_accept)) {
128
+ $headerParams['Accept'] = $_header_accept;
129
+ }
130
+ $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json', 'text/json', 'application/x-www-form-urlencoded']);
131
+
132
+ // default format to json
133
+ $resourcePath = str_replace("{format}", "json", $resourcePath);
134
+
135
+ // body params
136
+ $_tempBody = null;
137
+ if (isset($model)) {
138
+ $_tempBody = $model;
139
+ }
140
+
141
+ // for model (json/xml)
142
+ if (isset($_tempBody)) {
143
+ $httpBody = $_tempBody; // $_tempBody is the method argument, if present
144
+ } elseif (count($formParams) > 0) {
145
+ $httpBody = $formParams; // for HTTP post (form)
146
+ }
147
+ // this endpoint requires API key authentication
148
+ $apiKey = $this->apiClient->getApiKeyWithPrefix('apikey');
149
+ if (strlen($apiKey) !== 0) {
150
+ $queryParams['apikey'] = $apiKey;
151
+ }
152
+ // make the API Call
153
+ try {
154
+ list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(
155
+ $resourcePath,
156
+ 'POST',
157
+ $queryParams,
158
+ $httpBody,
159
+ $headerParams,
160
+ '\ChannelEngine\ApiClient\Model\ApiResponse',
161
+ '/v2/returns/channel'
162
+ );
163
+
164
+ return [$this->apiClient->getSerializer()->deserialize($response, '\ChannelEngine\ApiClient\Model\ApiResponse', $httpHeader), $statusCode, $httpHeader];
165
+ } catch (ApiException $e) {
166
+ switch ($e->getCode()) {
167
+ case 200:
168
+ $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\ChannelEngine\ApiClient\Model\ApiResponse', $e->getResponseHeaders());
169
+ $e->setResponseObject($data);
170
+ break;
171
+ }
172
+
173
+ throw $e;
174
+ }
175
+ }
176
+
177
+ /**
178
+ * Operation returnDeclareForMerchant
179
+ *
180
+ * Merchant: Create Return
181
+ *
182
+ * @param \ChannelEngine\ApiClient\Model\MerchantReturnRequest $model (required)
183
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
184
+ * @return \ChannelEngine\ApiClient\Model\ApiResponse
185
+ */
186
+ public function returnDeclareForMerchant($model)
187
+ {
188
+ list($response) = $this->returnDeclareForMerchantWithHttpInfo($model);
189
+ return $response;
190
+ }
191
+
192
+ /**
193
+ * Operation returnDeclareForMerchantWithHttpInfo
194
+ *
195
+ * Merchant: Create Return
196
+ *
197
+ * @param \ChannelEngine\ApiClient\Model\MerchantReturnRequest $model (required)
198
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
199
+ * @return array of \ChannelEngine\ApiClient\Model\ApiResponse, HTTP status code, HTTP response headers (array of strings)
200
+ */
201
+ public function returnDeclareForMerchantWithHttpInfo($model)
202
+ {
203
+ // verify the required parameter 'model' is set
204
+ if ($model === null) {
205
+ throw new \InvalidArgumentException('Missing the required parameter $model when calling returnDeclareForMerchant');
206
+ }
207
+ // parse inputs
208
+ $resourcePath = "/v2/returns/merchant";
209
+ $httpBody = '';
210
+ $queryParams = [];
211
+ $headerParams = [];
212
+ $formParams = [];
213
+ $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json']);
214
+ if (!is_null($_header_accept)) {
215
+ $headerParams['Accept'] = $_header_accept;
216
+ }
217
+ $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json', 'text/json', 'application/x-www-form-urlencoded']);
218
+
219
+ // default format to json
220
+ $resourcePath = str_replace("{format}", "json", $resourcePath);
221
+
222
+ // body params
223
+ $_tempBody = null;
224
+ if (isset($model)) {
225
+ $_tempBody = $model;
226
+ }
227
+
228
+ // for model (json/xml)
229
+ if (isset($_tempBody)) {
230
+ $httpBody = $_tempBody; // $_tempBody is the method argument, if present
231
+ } elseif (count($formParams) > 0) {
232
+ $httpBody = $formParams; // for HTTP post (form)
233
+ }
234
+ // this endpoint requires API key authentication
235
+ $apiKey = $this->apiClient->getApiKeyWithPrefix('apikey');
236
+ if (strlen($apiKey) !== 0) {
237
+ $queryParams['apikey'] = $apiKey;
238
+ }
239
+ // make the API Call
240
+ try {
241
+ list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(
242
+ $resourcePath,
243
+ 'POST',
244
+ $queryParams,
245
+ $httpBody,
246
+ $headerParams,
247
+ '\ChannelEngine\ApiClient\Model\ApiResponse',
248
+ '/v2/returns/merchant'
249
+ );
250
+
251
+ return [$this->apiClient->getSerializer()->deserialize($response, '\ChannelEngine\ApiClient\Model\ApiResponse', $httpHeader), $statusCode, $httpHeader];
252
+ } catch (ApiException $e) {
253
+ switch ($e->getCode()) {
254
+ case 200:
255
+ $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\ChannelEngine\ApiClient\Model\ApiResponse', $e->getResponseHeaders());
256
+ $e->setResponseObject($data);
257
+ break;
258
+ }
259
+
260
+ throw $e;
261
+ }
262
+ }
263
+
264
+ /**
265
+ * Operation returnGetDeclaredByChannel
266
+ *
267
+ * Merchant: Get Returns
268
+ *
269
+ * @param \DateTime $createdSince (required)
270
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
271
+ * @return \ChannelEngine\ApiClient\Model\CollectionOfMerchantReturnResponse
272
+ */
273
+ public function returnGetDeclaredByChannel($createdSince)
274
+ {
275
+ list($response) = $this->returnGetDeclaredByChannelWithHttpInfo($createdSince);
276
+ return $response;
277
+ }
278
+
279
+ /**
280
+ * Operation returnGetDeclaredByChannelWithHttpInfo
281
+ *
282
+ * Merchant: Get Returns
283
+ *
284
+ * @param \DateTime $createdSince (required)
285
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
286
+ * @return array of \ChannelEngine\ApiClient\Model\CollectionOfMerchantReturnResponse, HTTP status code, HTTP response headers (array of strings)
287
+ */
288
+ public function returnGetDeclaredByChannelWithHttpInfo($createdSince)
289
+ {
290
+ // verify the required parameter 'createdSince' is set
291
+ if ($createdSince === null) {
292
+ throw new \InvalidArgumentException('Missing the required parameter $createdSince when calling returnGetDeclaredByChannel');
293
+ }
294
+ // parse inputs
295
+ $resourcePath = "/v2/returns/merchant";
296
+ $httpBody = '';
297
+ $queryParams = [];
298
+ $headerParams = [];
299
+ $formParams = [];
300
+ $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json']);
301
+ if (!is_null($_header_accept)) {
302
+ $headerParams['Accept'] = $_header_accept;
303
+ }
304
+ $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]);
305
+
306
+ // query params
307
+ if ($createdSince !== null) {
308
+ $queryParams['createdSince'] = $this->apiClient->getSerializer()->toQueryValue($createdSince);
309
+ }
310
+ // default format to json
311
+ $resourcePath = str_replace("{format}", "json", $resourcePath);
312
+
313
+
314
+ // for model (json/xml)
315
+ if (isset($_tempBody)) {
316
+ $httpBody = $_tempBody; // $_tempBody is the method argument, if present
317
+ } elseif (count($formParams) > 0) {
318
+ $httpBody = $formParams; // for HTTP post (form)
319
+ }
320
+ // this endpoint requires API key authentication
321
+ $apiKey = $this->apiClient->getApiKeyWithPrefix('apikey');
322
+ if (strlen($apiKey) !== 0) {
323
+ $queryParams['apikey'] = $apiKey;
324
+ }
325
+ // make the API Call
326
+ try {
327
+ list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(
328
+ $resourcePath,
329
+ 'GET',
330
+ $queryParams,
331
+ $httpBody,
332
+ $headerParams,
333
+ '\ChannelEngine\ApiClient\Model\CollectionOfMerchantReturnResponse',
334
+ '/v2/returns/merchant'
335
+ );
336
+
337
+ return [$this->apiClient->getSerializer()->deserialize($response, '\ChannelEngine\ApiClient\Model\CollectionOfMerchantReturnResponse', $httpHeader), $statusCode, $httpHeader];
338
+ } catch (ApiException $e) {
339
+ switch ($e->getCode()) {
340
+ case 200:
341
+ $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\ChannelEngine\ApiClient\Model\CollectionOfMerchantReturnResponse', $e->getResponseHeaders());
342
+ $e->setResponseObject($data);
343
+ break;
344
+ }
345
+
346
+ throw $e;
347
+ }
348
+ }
349
+
350
+ /**
351
+ * Operation returnGetDeclaredByMerchant
352
+ *
353
+ * Channel: Get Returns
354
+ *
355
+ * @param \DateTime $createdSince (required)
356
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
357
+ * @return \ChannelEngine\ApiClient\Model\CollectionOfChannelReturnResponse
358
+ */
359
+ public function returnGetDeclaredByMerchant($createdSince)
360
+ {
361
+ list($response) = $this->returnGetDeclaredByMerchantWithHttpInfo($createdSince);
362
+ return $response;
363
+ }
364
+
365
+ /**
366
+ * Operation returnGetDeclaredByMerchantWithHttpInfo
367
+ *
368
+ * Channel: Get Returns
369
+ *
370
+ * @param \DateTime $createdSince (required)
371
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
372
+ * @return array of \ChannelEngine\ApiClient\Model\CollectionOfChannelReturnResponse, HTTP status code, HTTP response headers (array of strings)
373
+ */
374
+ public function returnGetDeclaredByMerchantWithHttpInfo($createdSince)
375
+ {
376
+ // verify the required parameter 'createdSince' is set
377
+ if ($createdSince === null) {
378
+ throw new \InvalidArgumentException('Missing the required parameter $createdSince when calling returnGetDeclaredByMerchant');
379
+ }
380
+ // parse inputs
381
+ $resourcePath = "/v2/returns/channel";
382
+ $httpBody = '';
383
+ $queryParams = [];
384
+ $headerParams = [];
385
+ $formParams = [];
386
+ $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json']);
387
+ if (!is_null($_header_accept)) {
388
+ $headerParams['Accept'] = $_header_accept;
389
+ }
390
+ $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]);
391
+
392
+ // query params
393
+ if ($createdSince !== null) {
394
+ $queryParams['createdSince'] = $this->apiClient->getSerializer()->toQueryValue($createdSince);
395
+ }
396
+ // default format to json
397
+ $resourcePath = str_replace("{format}", "json", $resourcePath);
398
+
399
+
400
+ // for model (json/xml)
401
+ if (isset($_tempBody)) {
402
+ $httpBody = $_tempBody; // $_tempBody is the method argument, if present
403
+ } elseif (count($formParams) > 0) {
404
+ $httpBody = $formParams; // for HTTP post (form)
405
+ }
406
+ // this endpoint requires API key authentication
407
+ $apiKey = $this->apiClient->getApiKeyWithPrefix('apikey');
408
+ if (strlen($apiKey) !== 0) {
409
+ $queryParams['apikey'] = $apiKey;
410
+ }
411
+ // make the API Call
412
+ try {
413
+ list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(
414
+ $resourcePath,
415
+ 'GET',
416
+ $queryParams,
417
+ $httpBody,
418
+ $headerParams,
419
+ '\ChannelEngine\ApiClient\Model\CollectionOfChannelReturnResponse',
420
+ '/v2/returns/channel'
421
+ );
422
+
423
+ return [$this->apiClient->getSerializer()->deserialize($response, '\ChannelEngine\ApiClient\Model\CollectionOfChannelReturnResponse', $httpHeader), $statusCode, $httpHeader];
424
+ } catch (ApiException $e) {
425
+ switch ($e->getCode()) {
426
+ case 200:
427
+ $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\ChannelEngine\ApiClient\Model\CollectionOfChannelReturnResponse', $e->getResponseHeaders());
428
+ $e->setResponseObject($data);
429
+ break;
430
+ }
431
+
432
+ throw $e;
433
+ }
434
+ }
435
+ }
lib/ChannelEngine/vendor/channelengine/api-client/lib/Api/ShipmentApi.php ADDED
@@ -0,0 +1,363 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ShipmentApi
4
+ * PHP version 5
5
+ *
6
+ * @category Class
7
+ * @package ChannelEngine\ApiClient
8
+ * @author Swagger Codegen team
9
+ * @link https://github.com/swagger-api/swagger-codegen
10
+ */
11
+
12
+ /**
13
+ * ChannelEngine API V2
14
+ *
15
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
16
+ *
17
+ * OpenAPI spec version: v2
18
+ *
19
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
20
+ *
21
+ */
22
+
23
+ /**
24
+ * NOTE: This class is auto generated by the swagger code generator program.
25
+ * https://github.com/swagger-api/swagger-codegen
26
+ * Do not edit the class manually.
27
+ */
28
+
29
+ namespace ChannelEngine\ApiClient\Api;
30
+
31
+ use \ChannelEngine\ApiClient\ApiClient;
32
+ use \ChannelEngine\ApiClient\ApiException;
33
+ use \ChannelEngine\ApiClient\Configuration;
34
+ use \ChannelEngine\ApiClient\ObjectSerializer;
35
+
36
+ /**
37
+ * ShipmentApi Class Doc Comment
38
+ *
39
+ * @category Class
40
+ * @package ChannelEngine\ApiClient
41
+ * @author Swagger Codegen team
42
+ * @link https://github.com/swagger-api/swagger-codegen
43
+ */
44
+ class ShipmentApi
45
+ {
46
+ /**
47
+ * API Client
48
+ *
49
+ * @var \ChannelEngine\ApiClient\ApiClient instance of the ApiClient
50
+ */
51
+ protected $apiClient;
52
+
53
+ /**
54
+ * Constructor
55
+ *
56
+ * @param \ChannelEngine\ApiClient\ApiClient|null $apiClient The api client to use
57
+ */
58
+ public function __construct(\ChannelEngine\ApiClient\ApiClient $apiClient = null)
59
+ {
60
+ if ($apiClient === null) {
61
+ $apiClient = new ApiClient();
62
+ }
63
+
64
+ $this->apiClient = $apiClient;
65
+ }
66
+
67
+ /**
68
+ * Get API client
69
+ *
70
+ * @return \ChannelEngine\ApiClient\ApiClient get the API client
71
+ */
72
+ public function getApiClient()
73
+ {
74
+ return $this->apiClient;
75
+ }
76
+
77
+ /**
78
+ * Set the API client
79
+ *
80
+ * @param \ChannelEngine\ApiClient\ApiClient $apiClient set the API client
81
+ *
82
+ * @return ShipmentApi
83
+ */
84
+ public function setApiClient(\ChannelEngine\ApiClient\ApiClient $apiClient)
85
+ {
86
+ $this->apiClient = $apiClient;
87
+ return $this;
88
+ }
89
+
90
+ /**
91
+ * Operation shipmentCreate
92
+ *
93
+ * Merchant: Create Shipment
94
+ *
95
+ * @param \ChannelEngine\ApiClient\Model\MerchantShipmentRequest $model (required)
96
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
97
+ * @return \ChannelEngine\ApiClient\Model\ApiResponse
98
+ */
99
+ public function shipmentCreate($model)
100
+ {
101
+ list($response) = $this->shipmentCreateWithHttpInfo($model);
102
+ return $response;
103
+ }
104
+
105
+ /**
106
+ * Operation shipmentCreateWithHttpInfo
107
+ *
108
+ * Merchant: Create Shipment
109
+ *
110
+ * @param \ChannelEngine\ApiClient\Model\MerchantShipmentRequest $model (required)
111
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
112
+ * @return array of \ChannelEngine\ApiClient\Model\ApiResponse, HTTP status code, HTTP response headers (array of strings)
113
+ */
114
+ public function shipmentCreateWithHttpInfo($model)
115
+ {
116
+ // verify the required parameter 'model' is set
117
+ if ($model === null) {
118
+ throw new \InvalidArgumentException('Missing the required parameter $model when calling shipmentCreate');
119
+ }
120
+ // parse inputs
121
+ $resourcePath = "/v2/shipments";
122
+ $httpBody = '';
123
+ $queryParams = [];
124
+ $headerParams = [];
125
+ $formParams = [];
126
+ $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json']);
127
+ if (!is_null($_header_accept)) {
128
+ $headerParams['Accept'] = $_header_accept;
129
+ }
130
+ $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json', 'text/json', 'application/x-www-form-urlencoded']);
131
+
132
+ // default format to json
133
+ $resourcePath = str_replace("{format}", "json", $resourcePath);
134
+
135
+ // body params
136
+ $_tempBody = null;
137
+ if (isset($model)) {
138
+ $_tempBody = $model;
139
+ }
140
+
141
+ // for model (json/xml)
142
+ if (isset($_tempBody)) {
143
+ $httpBody = $_tempBody; // $_tempBody is the method argument, if present
144
+ } elseif (count($formParams) > 0) {
145
+ $httpBody = $formParams; // for HTTP post (form)
146
+ }
147
+ // this endpoint requires API key authentication
148
+ $apiKey = $this->apiClient->getApiKeyWithPrefix('apikey');
149
+ if (strlen($apiKey) !== 0) {
150
+ $queryParams['apikey'] = $apiKey;
151
+ }
152
+ // make the API Call
153
+ try {
154
+ list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(
155
+ $resourcePath,
156
+ 'POST',
157
+ $queryParams,
158
+ $httpBody,
159
+ $headerParams,
160
+ '\ChannelEngine\ApiClient\Model\ApiResponse',
161
+ '/v2/shipments'
162
+ );
163
+
164
+ return [$this->apiClient->getSerializer()->deserialize($response, '\ChannelEngine\ApiClient\Model\ApiResponse', $httpHeader), $statusCode, $httpHeader];
165
+ } catch (ApiException $e) {
166
+ switch ($e->getCode()) {
167
+ case 200:
168
+ $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\ChannelEngine\ApiClient\Model\ApiResponse', $e->getResponseHeaders());
169
+ $e->setResponseObject($data);
170
+ break;
171
+ }
172
+
173
+ throw $e;
174
+ }
175
+ }
176
+
177
+ /**
178
+ * Operation shipmentIndex
179
+ *
180
+ * Channel: Get Shipments
181
+ *
182
+ * @param \DateTime $createdSince (required)
183
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
184
+ * @return \ChannelEngine\ApiClient\Model\CollectionOfChannelShipmentResponse
185
+ */
186
+ public function shipmentIndex($createdSince)
187
+ {
188
+ list($response) = $this->shipmentIndexWithHttpInfo($createdSince);
189
+ return $response;
190
+ }
191
+
192
+ /**
193
+ * Operation shipmentIndexWithHttpInfo
194
+ *
195
+ * Channel: Get Shipments
196
+ *
197
+ * @param \DateTime $createdSince (required)
198
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
199
+ * @return array of \ChannelEngine\ApiClient\Model\CollectionOfChannelShipmentResponse, HTTP status code, HTTP response headers (array of strings)
200
+ */
201
+ public function shipmentIndexWithHttpInfo($createdSince)
202
+ {
203
+ // verify the required parameter 'createdSince' is set
204
+ if ($createdSince === null) {
205
+ throw new \InvalidArgumentException('Missing the required parameter $createdSince when calling shipmentIndex');
206
+ }
207
+ // parse inputs
208
+ $resourcePath = "/v2/shipments";
209
+ $httpBody = '';
210
+ $queryParams = [];
211
+ $headerParams = [];
212
+ $formParams = [];
213
+ $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json']);
214
+ if (!is_null($_header_accept)) {
215
+ $headerParams['Accept'] = $_header_accept;
216
+ }
217
+ $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType([]);
218
+
219
+ // query params
220
+ if ($createdSince !== null) {
221
+ $queryParams['createdSince'] = $this->apiClient->getSerializer()->toQueryValue($createdSince);
222
+ }
223
+ // default format to json
224
+ $resourcePath = str_replace("{format}", "json", $resourcePath);
225
+
226
+
227
+ // for model (json/xml)
228
+ if (isset($_tempBody)) {
229
+ $httpBody = $_tempBody; // $_tempBody is the method argument, if present
230
+ } elseif (count($formParams) > 0) {
231
+ $httpBody = $formParams; // for HTTP post (form)
232
+ }
233
+ // this endpoint requires API key authentication
234
+ $apiKey = $this->apiClient->getApiKeyWithPrefix('apikey');
235
+ if (strlen($apiKey) !== 0) {
236
+ $queryParams['apikey'] = $apiKey;
237
+ }
238
+ // make the API Call
239
+ try {
240
+ list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(
241
+ $resourcePath,
242
+ 'GET',
243
+ $queryParams,
244
+ $httpBody,
245
+ $headerParams,
246
+ '\ChannelEngine\ApiClient\Model\CollectionOfChannelShipmentResponse',
247
+ '/v2/shipments'
248
+ );
249
+
250
+ return [$this->apiClient->getSerializer()->deserialize($response, '\ChannelEngine\ApiClient\Model\CollectionOfChannelShipmentResponse', $httpHeader), $statusCode, $httpHeader];
251
+ } catch (ApiException $e) {
252
+ switch ($e->getCode()) {
253
+ case 200:
254
+ $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\ChannelEngine\ApiClient\Model\CollectionOfChannelShipmentResponse', $e->getResponseHeaders());
255
+ $e->setResponseObject($data);
256
+ break;
257
+ }
258
+
259
+ throw $e;
260
+ }
261
+ }
262
+
263
+ /**
264
+ * Operation shipmentUpdate
265
+ *
266
+ * Merchant: Update Shipment
267
+ *
268
+ * @param string $merchantShipmentNo The merchant&#39;s shipment reference (required)
269
+ * @param \ChannelEngine\ApiClient\Model\MerchantShipmentTrackingRequest $model The updated tracking information (required)
270
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
271
+ * @return \ChannelEngine\ApiClient\Model\ApiResponse
272
+ */
273
+ public function shipmentUpdate($merchantShipmentNo, $model)
274
+ {
275
+ list($response) = $this->shipmentUpdateWithHttpInfo($merchantShipmentNo, $model);
276
+ return $response;
277
+ }
278
+
279
+ /**
280
+ * Operation shipmentUpdateWithHttpInfo
281
+ *
282
+ * Merchant: Update Shipment
283
+ *
284
+ * @param string $merchantShipmentNo The merchant&#39;s shipment reference (required)
285
+ * @param \ChannelEngine\ApiClient\Model\MerchantShipmentTrackingRequest $model The updated tracking information (required)
286
+ * @throws \ChannelEngine\ApiClient\ApiException on non-2xx response
287
+ * @return array of \ChannelEngine\ApiClient\Model\ApiResponse, HTTP status code, HTTP response headers (array of strings)
288
+ */
289
+ public function shipmentUpdateWithHttpInfo($merchantShipmentNo, $model)
290
+ {
291
+ // verify the required parameter 'merchantShipmentNo' is set
292
+ if ($merchantShipmentNo === null) {
293
+ throw new \InvalidArgumentException('Missing the required parameter $merchantShipmentNo when calling shipmentUpdate');
294
+ }
295
+ // verify the required parameter 'model' is set
296
+ if ($model === null) {
297
+ throw new \InvalidArgumentException('Missing the required parameter $model when calling shipmentUpdate');
298
+ }
299
+ // parse inputs
300
+ $resourcePath = "/v2/shipments/{merchantShipmentNo}";
301
+ $httpBody = '';
302
+ $queryParams = [];
303
+ $headerParams = [];
304
+ $formParams = [];
305
+ $_header_accept = $this->apiClient->selectHeaderAccept(['application/json', 'text/json']);
306
+ if (!is_null($_header_accept)) {
307
+ $headerParams['Accept'] = $_header_accept;
308
+ }
309
+ $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded']);
310
+
311
+ // path params
312
+ if ($merchantShipmentNo !== null) {
313
+ $resourcePath = str_replace(
314
+ "{" . "merchantShipmentNo" . "}",
315
+ $this->apiClient->getSerializer()->toPathValue($merchantShipmentNo),
316
+ $resourcePath
317
+ );
318
+ }
319
+ // default format to json
320
+ $resourcePath = str_replace("{format}", "json", $resourcePath);
321
+
322
+ // body params
323
+ $_tempBody = null;
324
+ if (isset($model)) {
325
+ $_tempBody = $model;
326
+ }
327
+
328
+ // for model (json/xml)
329
+ if (isset($_tempBody)) {
330
+ $httpBody = $_tempBody; // $_tempBody is the method argument, if present
331
+ } elseif (count($formParams) > 0) {
332
+ $httpBody = $formParams; // for HTTP post (form)
333
+ }
334
+ // this endpoint requires API key authentication
335
+ $apiKey = $this->apiClient->getApiKeyWithPrefix('apikey');
336
+ if (strlen($apiKey) !== 0) {
337
+ $queryParams['apikey'] = $apiKey;
338
+ }
339
+ // make the API Call
340
+ try {
341
+ list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(
342
+ $resourcePath,
343
+ 'PUT',
344
+ $queryParams,
345
+ $httpBody,
346
+ $headerParams,
347
+ '\ChannelEngine\ApiClient\Model\ApiResponse',
348
+ '/v2/shipments/{merchantShipmentNo}'
349
+ );
350
+
351
+ return [$this->apiClient->getSerializer()->deserialize($response, '\ChannelEngine\ApiClient\Model\ApiResponse', $httpHeader), $statusCode, $httpHeader];
352
+ } catch (ApiException $e) {
353
+ switch ($e->getCode()) {
354
+ case 200:
355
+ $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\ChannelEngine\ApiClient\Model\ApiResponse', $e->getResponseHeaders());
356
+ $e->setResponseObject($data);
357
+ break;
358
+ }
359
+
360
+ throw $e;
361
+ }
362
+ }
363
+ }
lib/ChannelEngine/vendor/channelengine/api-client/lib/ApiClient.php ADDED
@@ -0,0 +1,367 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ApiClient
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * ApiClient Class Doc Comment
34
+ *
35
+ * @category Class
36
+ * @package ChannelEngine\ApiClient
37
+ * @author Swagger Codegen team
38
+ * @link https://github.com/swagger-api/swagger-codegen
39
+ */
40
+ class ApiClient
41
+ {
42
+ public static $PATCH = "PATCH";
43
+ public static $POST = "POST";
44
+ public static $GET = "GET";
45
+ public static $HEAD = "HEAD";
46
+ public static $OPTIONS = "OPTIONS";
47
+ public static $PUT = "PUT";
48
+ public static $DELETE = "DELETE";
49
+
50
+ /**
51
+ * Configuration
52
+ *
53
+ * @var Configuration
54
+ */
55
+ protected $config;
56
+
57
+ /**
58
+ * Object Serializer
59
+ *
60
+ * @var ObjectSerializer
61
+ */
62
+ protected $serializer;
63
+
64
+ /**
65
+ * Constructor of the class
66
+ *
67
+ * @param Configuration $config config for this ApiClient
68
+ */
69
+ public function __construct(\ChannelEngine\ApiClient\Configuration $config = null)
70
+ {
71
+ if ($config === null) {
72
+ $config = Configuration::getDefaultConfiguration();
73
+ }
74
+
75
+ $this->config = $config;
76
+ $this->serializer = new ObjectSerializer();
77
+ }
78
+
79
+ /**
80
+ * Get the config
81
+ *
82
+ * @return Configuration
83
+ */
84
+ public function getConfig()
85
+ {
86
+ return $this->config;
87
+ }
88
+
89
+ /**
90
+ * Get the serializer
91
+ *
92
+ * @return ObjectSerializer
93
+ */
94
+ public function getSerializer()
95
+ {
96
+ return $this->serializer;
97
+ }
98
+
99
+ /**
100
+ * Get API key (with prefix if set)
101
+ *
102
+ * @param string $apiKeyIdentifier name of apikey
103
+ *
104
+ * @return string API key with the prefix
105
+ */
106
+ public function getApiKeyWithPrefix($apiKeyIdentifier)
107
+ {
108
+ $prefix = $this->config->getApiKeyPrefix($apiKeyIdentifier);
109
+ $apiKey = $this->config->getApiKey($apiKeyIdentifier);
110
+
111
+ if (!isset($apiKey)) {
112
+ return null;
113
+ }
114
+
115
+ if (isset($prefix)) {
116
+ $keyWithPrefix = $prefix." ".$apiKey;
117
+ } else {
118
+ $keyWithPrefix = $apiKey;
119
+ }
120
+
121
+ return $keyWithPrefix;
122
+ }
123
+
124
+ /**
125
+ * Make the HTTP call (Sync)
126
+ *
127
+ * @param string $resourcePath path to method endpoint
128
+ * @param string $method method to call
129
+ * @param array $queryParams parameters to be place in query URL
130
+ * @param array $postData parameters to be placed in POST body
131
+ * @param array $headerParams parameters to be place in request header
132
+ * @param string $responseType expected response type of the endpoint
133
+ * @param string $endpointPath path to method endpoint before expanding parameters
134
+ *
135
+ * @throws \ChannelEngine\ApiClient\ApiException on a non 2xx response
136
+ * @return mixed
137
+ */
138
+ public function callApi($resourcePath, $method, $queryParams, $postData, $headerParams, $responseType = null, $endpointPath = null)
139
+ {
140
+ $headers = [];
141
+
142
+ // construct the http header
143
+ $headerParams = array_merge(
144
+ (array)$this->config->getDefaultHeaders(),
145
+ (array)$headerParams
146
+ );
147
+
148
+ foreach ($headerParams as $key => $val) {
149
+ $headers[] = "$key: $val";
150
+ }
151
+
152
+ // form data
153
+ if ($postData and in_array('Content-Type: application/x-www-form-urlencoded', $headers, true)) {
154
+ $postData = http_build_query($postData);
155
+ } elseif ((is_object($postData) or is_array($postData)) and !in_array('Content-Type: multipart/form-data', $headers, true)) { // json model
156
+ $postData = json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($postData));
157
+ }
158
+
159
+ $url = $this->config->getHost() . $resourcePath;
160
+
161
+ $curl = curl_init();
162
+ // set timeout, if needed
163
+ if ($this->config->getCurlTimeout() !== 0) {
164
+ curl_setopt($curl, CURLOPT_TIMEOUT, $this->config->getCurlTimeout());
165
+ }
166
+ // set connect timeout, if needed
167
+ if ($this->config->getCurlConnectTimeout() != 0) {
168
+ curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, $this->config->getCurlConnectTimeout());
169
+ }
170
+
171
+ // return the result on success, rather than just true
172
+ curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
173
+
174
+ curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
175
+
176
+ // disable SSL verification, if needed
177
+ if ($this->config->getSSLVerification() === false) {
178
+ curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
179
+ curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);
180
+ }
181
+
182
+ if ($this->config->getCurlProxyHost()) {
183
+ curl_setopt($curl, CURLOPT_PROXY, $this->config->getCurlProxyHost());
184
+ }
185
+
186
+ if ($this->config->getCurlProxyPort()) {
187
+ curl_setopt($curl, CURLOPT_PROXYPORT, $this->config->getCurlProxyPort());
188
+ }
189
+
190
+ if ($this->config->getCurlProxyType()) {
191
+ curl_setopt($curl, CURLOPT_PROXYTYPE, $this->config->getCurlProxyType());
192
+ }
193
+
194
+ if ($this->config->getCurlProxyUser()) {
195
+ curl_setopt($curl, CURLOPT_PROXYUSERPWD, $this->config->getCurlProxyUser() . ':' .$this->config->getCurlProxyPassword());
196
+ }
197
+
198
+ if (!empty($queryParams)) {
199
+ $url = ($url . '?' . http_build_query($queryParams));
200
+ }
201
+
202
+ if ($method === self::$POST) {
203
+ curl_setopt($curl, CURLOPT_POST, true);
204
+ curl_setopt($curl, CURLOPT_POSTFIELDS, $postData);
205
+ } elseif ($method === self::$HEAD) {
206
+ curl_setopt($curl, CURLOPT_NOBODY, true);
207
+ } elseif ($method === self::$OPTIONS) {
208
+ curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "OPTIONS");
209
+ curl_setopt($curl, CURLOPT_POSTFIELDS, $postData);
210
+ } elseif ($method === self::$PATCH) {
211
+ curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "PATCH");
212
+ curl_setopt($curl, CURLOPT_POSTFIELDS, $postData);
213
+ } elseif ($method === self::$PUT) {
214
+ curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "PUT");
215
+ curl_setopt($curl, CURLOPT_POSTFIELDS, $postData);
216
+ } elseif ($method === self::$DELETE) {
217
+ curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "DELETE");
218
+ curl_setopt($curl, CURLOPT_POSTFIELDS, $postData);
219
+ } elseif ($method !== self::$GET) {
220
+ throw new ApiException('Method ' . $method . ' is not recognized.');
221
+ }
222
+ curl_setopt($curl, CURLOPT_URL, $url);
223
+
224
+ // Set user agent
225
+ curl_setopt($curl, CURLOPT_USERAGENT, $this->config->getUserAgent());
226
+
227
+ // debugging for curl
228
+ if ($this->config->getDebug()) {
229
+ error_log("[DEBUG] HTTP Request body ~BEGIN~".PHP_EOL.print_r($postData, true).PHP_EOL."~END~".PHP_EOL, 3, $this->config->getDebugFile());
230
+
231
+ curl_setopt($curl, CURLOPT_VERBOSE, 1);
232
+ curl_setopt($curl, CURLOPT_STDERR, fopen($this->config->getDebugFile(), 'a'));
233
+ } else {
234
+ curl_setopt($curl, CURLOPT_VERBOSE, 0);
235
+ }
236
+
237
+ // obtain the HTTP response headers
238
+ curl_setopt($curl, CURLOPT_HEADER, 1);
239
+
240
+ // Make the request
241
+ $response = curl_exec($curl);
242
+ $http_header_size = curl_getinfo($curl, CURLINFO_HEADER_SIZE);
243
+ $http_header = $this->httpParseHeaders(substr($response, 0, $http_header_size));
244
+ $http_body = substr($response, $http_header_size);
245
+ $response_info = curl_getinfo($curl);
246
+
247
+ // debug HTTP response body
248
+ if ($this->config->getDebug()) {
249
+ error_log("[DEBUG] HTTP Response body ~BEGIN~".PHP_EOL.print_r($http_body, true).PHP_EOL."~END~".PHP_EOL, 3, $this->config->getDebugFile());
250
+ }
251
+
252
+ // Handle the response
253
+ if ($response_info['http_code'] === 0) {
254
+ $curl_error_message = curl_error($curl);
255
+
256
+ // curl_exec can sometimes fail but still return a blank message from curl_error().
257
+ if (!empty($curl_error_message)) {
258
+ $error_message = "API call to $url failed: $curl_error_message";
259
+ } else {
260
+ $error_message = "API call to $url failed, but for an unknown reason. " .
261
+ "This could happen if you are disconnected from the network.";
262
+ }
263
+
264
+ $exception = new ApiException($error_message, 0, null, null);
265
+ $exception->setResponseObject($response_info);
266
+ throw $exception;
267
+ } elseif ($response_info['http_code'] >= 200 && $response_info['http_code'] <= 299) {
268
+ // return raw body if response is a file
269
+ if ($responseType === '\SplFileObject' || $responseType === 'string') {
270
+ return [$http_body, $response_info['http_code'], $http_header];
271
+ }
272
+
273
+ $data = json_decode($http_body);
274
+ if (json_last_error() > 0) { // if response is a string
275
+ $data = $http_body;
276
+ }
277
+ } else {
278
+ $data = json_decode($http_body);
279
+ if (json_last_error() > 0) { // if response is a string
280
+ $data = $http_body;
281
+ }
282
+
283
+ throw new ApiException(
284
+ "[".$response_info['http_code']."] Error connecting to the API ($url)",
285
+ $response_info['http_code'],
286
+ $http_header,
287
+ $data
288
+ );
289
+ }
290
+ return [$data, $response_info['http_code'], $http_header];
291
+ }
292
+
293
+ /**
294
+ * Return the header 'Accept' based on an array of Accept provided
295
+ *
296
+ * @param string[] $accept Array of header
297
+ *
298
+ * @return string Accept (e.g. application/json)
299
+ */
300
+ public function selectHeaderAccept($accept)
301
+ {
302
+ if (count($accept) === 0 or (count($accept) === 1 and $accept[0] === '')) {
303
+ return null;
304
+ } elseif (preg_grep("/application\/json/i", $accept)) {
305
+ return 'application/json';
306
+ } else {
307
+ return implode(',', $accept);
308
+ }
309
+ }
310
+
311
+ /**
312
+ * Return the content type based on an array of content-type provided
313
+ *
314
+ * @param string[] $content_type Array fo content-type
315
+ *
316
+ * @return string Content-Type (e.g. application/json)
317
+ */
318
+ public function selectHeaderContentType($content_type)
319
+ {
320
+ if (count($content_type) === 0 or (count($content_type) === 1 and $content_type[0] === '')) {
321
+ return 'application/json';
322
+ } elseif (preg_grep("/application\/json/i", $content_type)) {
323
+ return 'application/json';
324
+ } else {
325
+ return implode(',', $content_type);
326
+ }
327
+ }
328
+
329
+ /**
330
+ * Return an array of HTTP response headers
331
+ *
332
+ * @param string $raw_headers A string of raw HTTP response headers
333
+ *
334
+ * @return string[] Array of HTTP response heaers
335
+ */
336
+ protected function httpParseHeaders($raw_headers)
337
+ {
338
+ // ref/credit: http://php.net/manual/en/function.http-parse-headers.php#112986
339
+ $headers = [];
340
+ $key = '';
341
+
342
+ foreach (explode("\n", $raw_headers) as $h) {
343
+ $h = explode(':', $h, 2);
344
+
345
+ if (isset($h[1])) {
346
+ if (!isset($headers[$h[0]])) {
347
+ $headers[$h[0]] = trim($h[1]);
348
+ } elseif (is_array($headers[$h[0]])) {
349
+ $headers[$h[0]] = array_merge($headers[$h[0]], [trim($h[1])]);
350
+ } else {
351
+ $headers[$h[0]] = array_merge([$headers[$h[0]]], [trim($h[1])]);
352
+ }
353
+
354
+ $key = $h[0];
355
+ } else {
356
+ if (substr($h[0], 0, 1) === "\t") {
357
+ $headers[$key] .= "\r\n\t".trim($h[0]);
358
+ } elseif (!$key) {
359
+ $headers[0] = trim($h[0]);
360
+ }
361
+ trim($h[0]);
362
+ }
363
+ }
364
+
365
+ return $headers;
366
+ }
367
+ }
lib/ChannelEngine/vendor/channelengine/api-client/lib/ApiException.php ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ApiException
4
+ * PHP version 5
5
+ *
6
+ * @category Class
7
+ * @package ChannelEngine\ApiClient
8
+ * @author Swagger Codegen team
9
+ * @link https://github.com/swagger-api/swagger-codegen
10
+ */
11
+
12
+ /**
13
+ * ChannelEngine API V2
14
+ *
15
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
16
+ *
17
+ * OpenAPI spec version: v2
18
+ *
19
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
20
+ *
21
+ */
22
+
23
+ /**
24
+ * NOTE: This class is auto generated by the swagger code generator program.
25
+ * https://github.com/swagger-api/swagger-codegen
26
+ * Do not edit the class manually.
27
+ */
28
+
29
+ namespace ChannelEngine\ApiClient;
30
+
31
+ use \Exception;
32
+
33
+ /**
34
+ * ApiException Class Doc Comment
35
+ *
36
+ * @category Class
37
+ * @package ChannelEngine\ApiClient
38
+ * @author Swagger Codegen team
39
+ * @link https://github.com/swagger-api/swagger-codegen
40
+ */
41
+ class ApiException extends Exception
42
+ {
43
+
44
+ /**
45
+ * The HTTP body of the server response either as Json or string.
46
+ *
47
+ * @var mixed
48
+ */
49
+ protected $responseBody;
50
+
51
+ /**
52
+ * The HTTP header of the server response.
53
+ *
54
+ * @var string[]
55
+ */
56
+ protected $responseHeaders;
57
+
58
+ /**
59
+ * The deserialized response object
60
+ *
61
+ * @var $responseObject;
62
+ */
63
+ protected $responseObject;
64
+
65
+ /**
66
+ * Constructor
67
+ *
68
+ * @param string $message Error message
69
+ * @param int $code HTTP status code
70
+ * @param string $responseHeaders HTTP response header
71
+ * @param mixed $responseBody HTTP body of the server response either as Json or string
72
+ */
73
+ public function __construct($message = "", $code = 0, $responseHeaders = null, $responseBody = null)
74
+ {
75
+ parent::__construct($message, $code);
76
+ $this->responseHeaders = $responseHeaders;
77
+ $this->responseBody = $responseBody;
78
+ }
79
+
80
+ /**
81
+ * Gets the HTTP response header
82
+ *
83
+ * @return string HTTP response header
84
+ */
85
+ public function getResponseHeaders()
86
+ {
87
+ return $this->responseHeaders;
88
+ }
89
+
90
+ /**
91
+ * Gets the HTTP body of the server response either as Json or string
92
+ *
93
+ * @return mixed HTTP body of the server response either as Json or string
94
+ */
95
+ public function getResponseBody()
96
+ {
97
+ return $this->responseBody;
98
+ }
99
+
100
+ /**
101
+ * Sets the deseralized response object (during deserialization)
102
+ *
103
+ * @param mixed $obj Deserialized response object
104
+ *
105
+ * @return void
106
+ */
107
+ public function setResponseObject($obj)
108
+ {
109
+ $this->responseObject = $obj;
110
+ }
111
+
112
+ /**
113
+ * Gets the deseralized response object (during deserialization)
114
+ *
115
+ * @return mixed the deserialized response object
116
+ */
117
+ public function getResponseObject()
118
+ {
119
+ return $this->responseObject;
120
+ }
121
+ }
lib/ChannelEngine/vendor/channelengine/api-client/lib/Configuration.php ADDED
@@ -0,0 +1,703 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Configuration
4
+ * PHP version 5
5
+ *
6
+ * @category Class
7
+ * @package ChannelEngine\ApiClient
8
+ * @author Swagger Codegen team
9
+ * @link https://github.com/swagger-api/swagger-codegen
10
+ */
11
+
12
+ /**
13
+ * ChannelEngine API V2
14
+ *
15
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
16
+ *
17
+ * OpenAPI spec version: v2
18
+ *
19
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
20
+ *
21
+ */
22
+
23
+ /**
24
+ * NOTE: This class is auto generated by the swagger code generator program.
25
+ * https://github.com/swagger-api/swagger-codegen
26
+ * Do not edit the class manually.
27
+ */
28
+
29
+ namespace ChannelEngine\ApiClient;
30
+
31
+ /**
32
+ * Configuration Class Doc Comment
33
+ * PHP version 5
34
+ *
35
+ * @category Class
36
+ * @package ChannelEngine\ApiClient
37
+ * @author Swagger Codegen team
38
+ * @link https://github.com/swagger-api/swagger-codegen
39
+ */
40
+ class Configuration
41
+ {
42
+ private static $defaultConfiguration = null;
43
+
44
+ /**
45
+ * Associate array to store API key(s)
46
+ *
47
+ * @var string[]
48
+ */
49
+ protected $apiKeys = [];
50
+
51
+ /**
52
+ * Associate array to store API prefix (e.g. Bearer)
53
+ *
54
+ * @var string[]
55
+ */
56
+ protected $apiKeyPrefixes = [];
57
+
58
+ /**
59
+ * Access token for OAuth
60
+ *
61
+ * @var string
62
+ */
63
+ protected $accessToken = '';
64
+
65
+ /**
66
+ * Username for HTTP basic authentication
67
+ *
68
+ * @var string
69
+ */
70
+ protected $username = '';
71
+
72
+ /**
73
+ * Password for HTTP basic authentication
74
+ *
75
+ * @var string
76
+ */
77
+ protected $password = '';
78
+
79
+ /**
80
+ * The default header(s)
81
+ *
82
+ * @var array
83
+ */
84
+ protected $defaultHeaders = [];
85
+
86
+ /**
87
+ * The host
88
+ *
89
+ * @var string
90
+ */
91
+ protected $host = 'http://dev.channelengine.local/api';
92
+
93
+ /**
94
+ * Timeout (second) of the HTTP request, by default set to 0, no timeout
95
+ *
96
+ * @var string
97
+ */
98
+ protected $curlTimeout = 0;
99
+
100
+ /**
101
+ * Timeout (second) of the HTTP connection, by default set to 0, no timeout
102
+ *
103
+ * @var string
104
+ */
105
+ protected $curlConnectTimeout = 0;
106
+
107
+ /**
108
+ * User agent of the HTTP request, set to "PHP-Swagger" by default
109
+ *
110
+ * @var string
111
+ */
112
+ protected $userAgent = "Swagger-Codegen/2.1.0/php";
113
+
114
+ /**
115
+ * Debug switch (default set to false)
116
+ *
117
+ * @var bool
118
+ */
119
+ protected $debug = false;
120
+
121
+ /**
122
+ * Debug file location (log to STDOUT by default)
123
+ *
124
+ * @var string
125
+ */
126
+ protected $debugFile = 'php://output';
127
+
128
+ /**
129
+ * Debug file location (log to STDOUT by default)
130
+ *
131
+ * @var string
132
+ */
133
+ protected $tempFolderPath;
134
+
135
+ /**
136
+ * Indicates if SSL verification should be enabled or disabled.
137
+ *
138
+ * This is useful if the host uses a self-signed SSL certificate.
139
+ *
140
+ * @var boolean True if the certificate should be validated, false otherwise.
141
+ */
142
+ protected $sslVerification = true;
143
+
144
+ /**
145
+ * Curl proxy host
146
+ *
147
+ * @var string
148
+ */
149
+ protected $proxyHost;
150
+
151
+ /**
152
+ * Curl proxy port
153
+ *
154
+ * @var integer
155
+ */
156
+ protected $proxyPort;
157
+
158
+ /**
159
+ * Curl proxy type, e.g. CURLPROXY_HTTP or CURLPROXY_SOCKS5
160
+ *
161
+ * @see https://secure.php.net/manual/en/function.curl-setopt.php
162
+ * @var integer
163
+ */
164
+ protected $proxyType;
165
+
166
+ /**
167
+ * Curl proxy username
168
+ *
169
+ * @var string
170
+ */
171
+ protected $proxyUser;
172
+
173
+ /**
174
+ * Curl proxy password
175
+ *
176
+ * @var string
177
+ */
178
+ protected $proxyPassword;
179
+
180
+ /**
181
+ * Constructor
182
+ */
183
+ public function __construct()
184
+ {
185
+ $this->tempFolderPath = sys_get_temp_dir();
186
+ }
187
+
188
+ /**
189
+ * Sets API key
190
+ *
191
+ * @param string $apiKeyIdentifier API key identifier (authentication scheme)
192
+ * @param string $key API key or token
193
+ *
194
+ * @return Configuration
195
+ */
196
+ public function setApiKey($apiKeyIdentifier, $key)
197
+ {
198
+ $this->apiKeys[$apiKeyIdentifier] = $key;
199
+ return $this;
200
+ }
201
+
202
+ /**
203
+ * Gets API key
204
+ *
205
+ * @param string $apiKeyIdentifier API key identifier (authentication scheme)
206
+ *
207
+ * @return string API key or token
208
+ */
209
+ public function getApiKey($apiKeyIdentifier)
210
+ {
211
+ return isset($this->apiKeys[$apiKeyIdentifier]) ? $this->apiKeys[$apiKeyIdentifier] : null;
212
+ }
213
+
214
+ /**
215
+ * Sets the prefix for API key (e.g. Bearer)
216
+ *
217
+ * @param string $apiKeyIdentifier API key identifier (authentication scheme)
218
+ * @param string $prefix API key prefix, e.g. Bearer
219
+ *
220
+ * @return Configuration
221
+ */
222
+ public function setApiKeyPrefix($apiKeyIdentifier, $prefix)
223
+ {
224
+ $this->apiKeyPrefixes[$apiKeyIdentifier] = $prefix;
225
+ return $this;
226
+ }
227
+
228
+ /**
229
+ * Gets API key prefix
230
+ *
231
+ * @param string $apiKeyIdentifier API key identifier (authentication scheme)
232
+ *
233
+ * @return string
234
+ */
235
+ public function getApiKeyPrefix($apiKeyIdentifier)
236
+ {
237
+ return isset($this->apiKeyPrefixes[$apiKeyIdentifier]) ? $this->apiKeyPrefixes[$apiKeyIdentifier] : null;
238
+ }
239
+
240
+ /**
241
+ * Sets the access token for OAuth
242
+ *
243
+ * @param string $accessToken Token for OAuth
244
+ *
245
+ * @return Configuration
246
+ */
247
+ public function setAccessToken($accessToken)
248
+ {
249
+ $this->accessToken = $accessToken;
250
+ return $this;
251
+ }
252
+
253
+ /**
254
+ * Gets the access token for OAuth
255
+ *
256
+ * @return string Access token for OAuth
257
+ */
258
+ public function getAccessToken()
259
+ {
260
+ return $this->accessToken;
261
+ }
262
+
263
+ /**
264
+ * Sets the username for HTTP basic authentication
265
+ *
266
+ * @param string $username Username for HTTP basic authentication
267
+ *
268
+ * @return Configuration
269
+ */
270
+ public function setUsername($username)
271
+ {
272
+ $this->username = $username;
273
+ return $this;
274
+ }
275
+
276
+ /**
277
+ * Gets the username for HTTP basic authentication
278
+ *
279
+ * @return string Username for HTTP basic authentication
280
+ */
281
+ public function getUsername()
282
+ {
283
+ return $this->username;
284
+ }
285
+
286
+ /**
287
+ * Sets the password for HTTP basic authentication
288
+ *
289
+ * @param string $password Password for HTTP basic authentication
290
+ *
291
+ * @return Configuration
292
+ */
293
+ public function setPassword($password)
294
+ {
295
+ $this->password = $password;
296
+ return $this;
297
+ }
298
+
299
+ /**
300
+ * Gets the password for HTTP basic authentication
301
+ *
302
+ * @return string Password for HTTP basic authentication
303
+ */
304
+ public function getPassword()
305
+ {
306
+ return $this->password;
307
+ }
308
+
309
+ /**
310
+ * Adds a default header
311
+ *
312
+ * @param string $headerName header name (e.g. Token)
313
+ * @param string $headerValue header value (e.g. 1z8wp3)
314
+ *
315
+ * @return Configuration
316
+ */
317
+ public function addDefaultHeader($headerName, $headerValue)
318
+ {
319
+ if (!is_string($headerName)) {
320
+ throw new \InvalidArgumentException('Header name must be a string.');
321
+ }
322
+
323
+ $this->defaultHeaders[$headerName] = $headerValue;
324
+ return $this;
325
+ }
326
+
327
+ /**
328
+ * Gets the default header
329
+ *
330
+ * @return array An array of default header(s)
331
+ */
332
+ public function getDefaultHeaders()
333
+ {
334
+ return $this->defaultHeaders;
335
+ }
336
+
337
+ /**
338
+ * Deletes a default header
339
+ *
340
+ * @param string $headerName the header to delete
341
+ *
342
+ * @return Configuration
343
+ */
344
+ public function deleteDefaultHeader($headerName)
345
+ {
346
+ unset($this->defaultHeaders[$headerName]);
347
+ }
348
+
349
+ /**
350
+ * Sets the host
351
+ *
352
+ * @param string $host Host
353
+ *
354
+ * @return Configuration
355
+ */
356
+ public function setHost($host)
357
+ {
358
+ $this->host = $host;
359
+ return $this;
360
+ }
361
+
362
+ /**
363
+ * Gets the host
364
+ *
365
+ * @return string Host
366
+ */
367
+ public function getHost()
368
+ {
369
+ return $this->host;
370
+ }
371
+
372
+ /**
373
+ * Sets the user agent of the api client
374
+ *
375
+ * @param string $userAgent the user agent of the api client
376
+ *
377
+ * @return Configuration
378
+ */
379
+ public function setUserAgent($userAgent)
380
+ {
381
+ if (!is_string($userAgent)) {
382
+ throw new \InvalidArgumentException('User-agent must be a string.');
383
+ }
384
+
385
+ $this->userAgent = $userAgent;
386
+ return $this;
387
+ }
388
+
389
+ /**
390
+ * Gets the user agent of the api client
391
+ *
392
+ * @return string user agent
393
+ */
394
+ public function getUserAgent()
395
+ {
396
+ return $this->userAgent;
397
+ }
398
+
399
+ /**
400
+ * Sets the HTTP timeout value
401
+ *
402
+ * @param integer $seconds Number of seconds before timing out [set to 0 for no timeout]
403
+ *
404
+ * @return Configuration
405
+ */
406
+ public function setCurlTimeout($seconds)
407
+ {
408
+ if (!is_numeric($seconds) || $seconds < 0) {
409
+ throw new \InvalidArgumentException('Timeout value must be numeric and a non-negative number.');
410
+ }
411
+
412
+ $this->curlTimeout = $seconds;
413
+ return $this;
414
+ }
415
+
416
+ /**
417
+ * Gets the HTTP timeout value
418
+ *
419
+ * @return string HTTP timeout value
420
+ */
421
+ public function getCurlTimeout()
422
+ {
423
+ return $this->curlTimeout;
424
+ }
425
+
426
+ /**
427
+ * Sets the HTTP connect timeout value
428
+ *
429
+ * @param integer $seconds Number of seconds before connection times out [set to 0 for no timeout]
430
+ *
431
+ * @return Configuration
432
+ */
433
+ public function setCurlConnectTimeout($seconds)
434
+ {
435
+ if (!is_numeric($seconds) || $seconds < 0) {
436
+ throw new \InvalidArgumentException('Connect timeout value must be numeric and a non-negative number.');
437
+ }
438
+
439
+ $this->curlConnectTimeout = $seconds;
440
+ return $this;
441
+ }
442
+
443
+ /**
444
+ * Gets the HTTP connect timeout value
445
+ *
446
+ * @return string HTTP connect timeout value
447
+ */
448
+ public function getCurlConnectTimeout()
449
+ {
450
+ return $this->curlConnectTimeout;
451
+ }
452
+
453
+
454
+ /**
455
+ * Sets the HTTP Proxy Host
456
+ *
457
+ * @param string $proxyHost HTTP Proxy URL
458
+ *
459
+ * @return ApiClient
460
+ */
461
+ public function setCurlProxyHost($proxyHost)
462
+ {
463
+ $this->proxyHost = $proxyHost;
464
+ return $this;
465
+ }
466
+
467
+ /**
468
+ * Gets the HTTP Proxy Host
469
+ *
470
+ * @return string
471
+ */
472
+ public function getCurlProxyHost()
473
+ {
474
+ return $this->proxyHost;
475
+ }
476
+
477
+ /**
478
+ * Sets the HTTP Proxy Port
479
+ *
480
+ * @param integer $proxyPort HTTP Proxy Port
481
+ *
482
+ * @return ApiClient
483
+ */
484
+ public function setCurlProxyPort($proxyPort)
485
+ {
486
+ $this->proxyPort = $proxyPort;
487
+ return $this;
488
+ }
489
+
490
+ /**
491
+ * Gets the HTTP Proxy Port
492
+ *
493
+ * @return integer
494
+ */
495
+ public function getCurlProxyPort()
496
+ {
497
+ return $this->proxyPort;
498
+ }
499
+
500
+ /**
501
+ * Sets the HTTP Proxy Type
502
+ *
503
+ * @param integer $proxyType HTTP Proxy Type
504
+ *
505
+ * @return ApiClient
506
+ */
507
+ public function setCurlProxyType($proxyType)
508
+ {
509
+ $this->proxyType = $proxyType;
510
+ return $this;
511
+ }
512
+
513
+ /**
514
+ * Gets the HTTP Proxy Type
515
+ *
516
+ * @return integer
517
+ */
518
+ public function getCurlProxyType()
519
+ {
520
+ return $this->proxyType;
521
+ }
522
+
523
+ /**
524
+ * Sets the HTTP Proxy User
525
+ *
526
+ * @param string $proxyUser HTTP Proxy User
527
+ *
528
+ * @return ApiClient
529
+ */
530
+ public function setCurlProxyUser($proxyUser)
531
+ {
532
+ $this->proxyUser = $proxyUser;
533
+ return $this;
534
+ }
535
+
536
+ /**
537
+ * Gets the HTTP Proxy User
538
+ *
539
+ * @return string
540
+ */
541
+ public function getCurlProxyUser()
542
+ {
543
+ return $this->proxyUser;
544
+ }
545
+
546
+ /**
547
+ * Sets the HTTP Proxy Password
548
+ *
549
+ * @param string $proxyPassword HTTP Proxy Password
550
+ *
551
+ * @return ApiClient
552
+ */
553
+ public function setCurlProxyPassword($proxyPassword)
554
+ {
555
+ $this->proxyPassword = $proxyPassword;
556
+ return $this;
557
+ }
558
+
559
+ /**
560
+ * Gets the HTTP Proxy Password
561
+ *
562
+ * @return string
563
+ */
564
+ public function getCurlProxyPassword()
565
+ {
566
+ return $this->proxyPassword;
567
+ }
568
+
569
+ /**
570
+ * Sets debug flag
571
+ *
572
+ * @param bool $debug Debug flag
573
+ *
574
+ * @return Configuration
575
+ */
576
+ public function setDebug($debug)
577
+ {
578
+ $this->debug = $debug;
579
+ return $this;
580
+ }
581
+
582
+ /**
583
+ * Gets the debug flag
584
+ *
585
+ * @return bool
586
+ */
587
+ public function getDebug()
588
+ {
589
+ return $this->debug;
590
+ }
591
+
592
+ /**
593
+ * Sets the debug file
594
+ *
595
+ * @param string $debugFile Debug file
596
+ *
597
+ * @return Configuration
598
+ */
599
+ public function setDebugFile($debugFile)
600
+ {
601
+ $this->debugFile = $debugFile;
602
+ return $this;
603
+ }
604
+
605
+ /**
606
+ * Gets the debug file
607
+ *
608
+ * @return string
609
+ */
610
+ public function getDebugFile()
611
+ {
612
+ return $this->debugFile;
613
+ }
614
+
615
+ /**
616
+ * Sets the temp folder path
617
+ *
618
+ * @param string $tempFolderPath Temp folder path
619
+ *
620
+ * @return Configuration
621
+ */
622
+ public function setTempFolderPath($tempFolderPath)
623
+ {
624
+ $this->tempFolderPath = $tempFolderPath;
625
+ return $this;
626
+ }
627
+
628
+ /**
629
+ * Gets the temp folder path
630
+ *
631
+ * @return string Temp folder path
632
+ */
633
+ public function getTempFolderPath()
634
+ {
635
+ return $this->tempFolderPath;
636
+ }
637
+
638
+ /**
639
+ * Sets if SSL verification should be enabled or disabled
640
+ *
641
+ * @param boolean $sslVerification True if the certificate should be validated, false otherwise
642
+ *
643
+ * @return Configuration
644
+ */
645
+ public function setSSLVerification($sslVerification)
646
+ {
647
+ $this->sslVerification = $sslVerification;
648
+ return $this;
649
+ }
650
+
651
+ /**
652
+ * Gets if SSL verification should be enabled or disabled
653
+ *
654
+ * @return boolean True if the certificate should be validated, false otherwise
655
+ */
656
+ public function getSSLVerification()
657
+ {
658
+ return $this->sslVerification;
659
+ }
660
+
661
+ /**
662
+ * Gets the default configuration instance
663
+ *
664
+ * @return Configuration
665
+ */
666
+ public static function getDefaultConfiguration()
667
+ {
668
+ if (self::$defaultConfiguration === null) {
669
+ self::$defaultConfiguration = new Configuration();
670
+ }
671
+
672
+ return self::$defaultConfiguration;
673
+ }
674
+
675
+ /**
676
+ * Sets the detault configuration instance
677
+ *
678
+ * @param Configuration $config An instance of the Configuration Object
679
+ *
680
+ * @return void
681
+ */
682
+ public static function setDefaultConfiguration(Configuration $config)
683
+ {
684
+ self::$defaultConfiguration = $config;
685
+ }
686
+
687
+ /**
688
+ * Gets the essential information for debugging
689
+ *
690
+ * @return string The report for debugging
691
+ */
692
+ public static function toDebugReport()
693
+ {
694
+ $report = 'PHP SDK (ChannelEngine\ApiClient) Debug Report:' . PHP_EOL;
695
+ $report .= ' OS: ' . php_uname() . PHP_EOL;
696
+ $report .= ' PHP Version: ' . phpversion() . PHP_EOL;
697
+ $report .= ' OpenAPI Spec Version: v2' . PHP_EOL;
698
+ $report .= ' SDK Package Version: 2.1.0' . PHP_EOL;
699
+ $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
700
+
701
+ return $report;
702
+ }
703
+ }
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ApiResponse.php ADDED
@@ -0,0 +1,307 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ApiResponse
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * ApiResponse Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ApiResponse implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'ApiResponse';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'statusCode' => 'int',
58
+ 'success' => 'bool',
59
+ 'message' => 'string',
60
+ 'validationErrors' => 'map[string,string[]]'
61
+ ];
62
+
63
+ public static function swaggerTypes()
64
+ {
65
+ return self::$swaggerTypes;
66
+ }
67
+
68
+ /**
69
+ * Array of attributes where the key is the local name, and the value is the original name
70
+ * @var string[]
71
+ */
72
+ protected static $attributeMap = [
73
+ 'statusCode' => 'StatusCode',
74
+ 'success' => 'Success',
75
+ 'message' => 'Message',
76
+ 'validationErrors' => 'ValidationErrors'
77
+ ];
78
+
79
+
80
+ /**
81
+ * Array of attributes to setter functions (for deserialization of responses)
82
+ * @var string[]
83
+ */
84
+ protected static $setters = [
85
+ 'statusCode' => 'setStatusCode',
86
+ 'success' => 'setSuccess',
87
+ 'message' => 'setMessage',
88
+ 'validationErrors' => 'setValidationErrors'
89
+ ];
90
+
91
+
92
+ /**
93
+ * Array of attributes to getter functions (for serialization of requests)
94
+ * @var string[]
95
+ */
96
+ protected static $getters = [
97
+ 'statusCode' => 'getStatusCode',
98
+ 'success' => 'getSuccess',
99
+ 'message' => 'getMessage',
100
+ 'validationErrors' => 'getValidationErrors'
101
+ ];
102
+
103
+ public static function attributeMap()
104
+ {
105
+ return self::$attributeMap;
106
+ }
107
+
108
+ public static function setters()
109
+ {
110
+ return self::$setters;
111
+ }
112
+
113
+ public static function getters()
114
+ {
115
+ return self::$getters;
116
+ }
117
+
118
+
119
+
120
+
121
+
122
+ /**
123
+ * Associative array for storing property values
124
+ * @var mixed[]
125
+ */
126
+ protected $container = [];
127
+
128
+ /**
129
+ * Constructor
130
+ * @param mixed[] $data Associated array of property values initializing the model
131
+ */
132
+ public function __construct(array $data = null)
133
+ {
134
+ $this->container['statusCode'] = isset($data['statusCode']) ? $data['statusCode'] : null;
135
+ $this->container['success'] = isset($data['success']) ? $data['success'] : null;
136
+ $this->container['message'] = isset($data['message']) ? $data['message'] : null;
137
+ $this->container['validationErrors'] = isset($data['validationErrors']) ? $data['validationErrors'] : null;
138
+ }
139
+
140
+ /**
141
+ * show all the invalid properties with reasons.
142
+ *
143
+ * @return array invalid properties with reasons
144
+ */
145
+ public function listInvalidProperties()
146
+ {
147
+ $invalid_properties = [];
148
+
149
+ return $invalid_properties;
150
+ }
151
+
152
+ /**
153
+ * validate all the properties in the model
154
+ * return true if all passed
155
+ *
156
+ * @return bool True if all properties are valid
157
+ */
158
+ public function valid()
159
+ {
160
+
161
+ return true;
162
+ }
163
+
164
+
165
+ /**
166
+ * Gets statusCode
167
+ * @return int
168
+ */
169
+ public function getStatusCode()
170
+ {
171
+ return $this->container['statusCode'];
172
+ }
173
+
174
+ /**
175
+ * Sets statusCode
176
+ * @param int $statusCode
177
+ * @return $this
178
+ */
179
+ public function setStatusCode($statusCode)
180
+ {
181
+ $this->container['statusCode'] = $statusCode;
182
+
183
+ return $this;
184
+ }
185
+
186
+ /**
187
+ * Gets success
188
+ * @return bool
189
+ */
190
+ public function getSuccess()
191
+ {
192
+ return $this->container['success'];
193
+ }
194
+
195
+ /**
196
+ * Sets success
197
+ * @param bool $success
198
+ * @return $this
199
+ */
200
+ public function setSuccess($success)
201
+ {
202
+ $this->container['success'] = $success;
203
+
204
+ return $this;
205
+ }
206
+
207
+ /**
208
+ * Gets message
209
+ * @return string
210
+ */
211
+ public function getMessage()
212
+ {
213
+ return $this->container['message'];
214
+ }
215
+
216
+ /**
217
+ * Sets message
218
+ * @param string $message
219
+ * @return $this
220
+ */
221
+ public function setMessage($message)
222
+ {
223
+ $this->container['message'] = $message;
224
+
225
+ return $this;
226
+ }
227
+
228
+ /**
229
+ * Gets validationErrors
230
+ * @return map[string,string[]]
231
+ */
232
+ public function getValidationErrors()
233
+ {
234
+ return $this->container['validationErrors'];
235
+ }
236
+
237
+ /**
238
+ * Sets validationErrors
239
+ * @param map[string,string[]] $validationErrors
240
+ * @return $this
241
+ */
242
+ public function setValidationErrors($validationErrors)
243
+ {
244
+ $this->container['validationErrors'] = $validationErrors;
245
+
246
+ return $this;
247
+ }
248
+ /**
249
+ * Returns true if offset exists. False otherwise.
250
+ * @param integer $offset Offset
251
+ * @return boolean
252
+ */
253
+ public function offsetExists($offset)
254
+ {
255
+ return isset($this->container[$offset]);
256
+ }
257
+
258
+ /**
259
+ * Gets offset.
260
+ * @param integer $offset Offset
261
+ * @return mixed
262
+ */
263
+ public function offsetGet($offset)
264
+ {
265
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
266
+ }
267
+
268
+ /**
269
+ * Sets value based on offset.
270
+ * @param integer $offset Offset
271
+ * @param mixed $value Value to be set
272
+ * @return void
273
+ */
274
+ public function offsetSet($offset, $value)
275
+ {
276
+ if (is_null($offset)) {
277
+ $this->container[] = $value;
278
+ } else {
279
+ $this->container[$offset] = $value;
280
+ }
281
+ }
282
+
283
+ /**
284
+ * Unsets offset.
285
+ * @param integer $offset Offset
286
+ * @return void
287
+ */
288
+ public function offsetUnset($offset)
289
+ {
290
+ unset($this->container[$offset]);
291
+ }
292
+
293
+ /**
294
+ * Gets the string presentation of the object
295
+ * @return string
296
+ */
297
+ public function __toString()
298
+ {
299
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
300
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
301
+ }
302
+
303
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
304
+ }
305
+ }
306
+
307
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/BackOrder.php ADDED
@@ -0,0 +1,388 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * BackOrder
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * BackOrder Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class BackOrder implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'BackOrder';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'merchantBackorderNo' => 'string',
58
+ 'merchantOrderNo' => 'string',
59
+ 'channelOrderNo' => 'string',
60
+ 'lines' => '\ChannelEngine\ApiClient\Model\BackOrderLine[]'
61
+ ];
62
+
63
+ public static function swaggerTypes()
64
+ {
65
+ return self::$swaggerTypes;
66
+ }
67
+
68
+ /**
69
+ * Array of attributes where the key is the local name, and the value is the original name
70
+ * @var string[]
71
+ */
72
+ protected static $attributeMap = [
73
+ 'merchantBackorderNo' => 'MerchantBackorderNo',
74
+ 'merchantOrderNo' => 'MerchantOrderNo',
75
+ 'channelOrderNo' => 'ChannelOrderNo',
76
+ 'lines' => 'Lines'
77
+ ];
78
+
79
+
80
+ /**
81
+ * Array of attributes to setter functions (for deserialization of responses)
82
+ * @var string[]
83
+ */
84
+ protected static $setters = [
85
+ 'merchantBackorderNo' => 'setMerchantBackorderNo',
86
+ 'merchantOrderNo' => 'setMerchantOrderNo',
87
+ 'channelOrderNo' => 'setChannelOrderNo',
88
+ 'lines' => 'setLines'
89
+ ];
90
+
91
+
92
+ /**
93
+ * Array of attributes to getter functions (for serialization of requests)
94
+ * @var string[]
95
+ */
96
+ protected static $getters = [
97
+ 'merchantBackorderNo' => 'getMerchantBackorderNo',
98
+ 'merchantOrderNo' => 'getMerchantOrderNo',
99
+ 'channelOrderNo' => 'getChannelOrderNo',
100
+ 'lines' => 'getLines'
101
+ ];
102
+
103
+ public static function attributeMap()
104
+ {
105
+ return self::$attributeMap;
106
+ }
107
+
108
+ public static function setters()
109
+ {
110
+ return self::$setters;
111
+ }
112
+
113
+ public static function getters()
114
+ {
115
+ return self::$getters;
116
+ }
117
+
118
+
119
+
120
+
121
+
122
+ /**
123
+ * Associative array for storing property values
124
+ * @var mixed[]
125
+ */
126
+ protected $container = [];
127
+
128
+ /**
129
+ * Constructor
130
+ * @param mixed[] $data Associated array of property values initializing the model
131
+ */
132
+ public function __construct(array $data = null)
133
+ {
134
+ $this->container['merchantBackorderNo'] = isset($data['merchantBackorderNo']) ? $data['merchantBackorderNo'] : null;
135
+ $this->container['merchantOrderNo'] = isset($data['merchantOrderNo']) ? $data['merchantOrderNo'] : null;
136
+ $this->container['channelOrderNo'] = isset($data['channelOrderNo']) ? $data['channelOrderNo'] : null;
137
+ $this->container['lines'] = isset($data['lines']) ? $data['lines'] : null;
138
+ }
139
+
140
+ /**
141
+ * show all the invalid properties with reasons.
142
+ *
143
+ * @return array invalid properties with reasons
144
+ */
145
+ public function listInvalidProperties()
146
+ {
147
+ $invalid_properties = [];
148
+
149
+ if ($this->container['merchantBackorderNo'] === null) {
150
+ $invalid_properties[] = "'merchantBackorderNo' can't be null";
151
+ }
152
+ if ((strlen($this->container['merchantBackorderNo']) > 50)) {
153
+ $invalid_properties[] = "invalid value for 'merchantBackorderNo', the character length must be smaller than or equal to 50.";
154
+ }
155
+
156
+ if ((strlen($this->container['merchantBackorderNo']) < 0)) {
157
+ $invalid_properties[] = "invalid value for 'merchantBackorderNo', the character length must be bigger than or equal to 0.";
158
+ }
159
+
160
+ if ($this->container['merchantOrderNo'] === null) {
161
+ $invalid_properties[] = "'merchantOrderNo' can't be null";
162
+ }
163
+ if ((strlen($this->container['merchantOrderNo']) > 50)) {
164
+ $invalid_properties[] = "invalid value for 'merchantOrderNo', the character length must be smaller than or equal to 50.";
165
+ }
166
+
167
+ if ((strlen($this->container['merchantOrderNo']) < 0)) {
168
+ $invalid_properties[] = "invalid value for 'merchantOrderNo', the character length must be bigger than or equal to 0.";
169
+ }
170
+
171
+ if (!is_null($this->container['channelOrderNo']) && (strlen($this->container['channelOrderNo']) > 50)) {
172
+ $invalid_properties[] = "invalid value for 'channelOrderNo', the character length must be smaller than or equal to 50.";
173
+ }
174
+
175
+ if (!is_null($this->container['channelOrderNo']) && (strlen($this->container['channelOrderNo']) < 0)) {
176
+ $invalid_properties[] = "invalid value for 'channelOrderNo', the character length must be bigger than or equal to 0.";
177
+ }
178
+
179
+ if ($this->container['lines'] === null) {
180
+ $invalid_properties[] = "'lines' can't be null";
181
+ }
182
+ return $invalid_properties;
183
+ }
184
+
185
+ /**
186
+ * validate all the properties in the model
187
+ * return true if all passed
188
+ *
189
+ * @return bool True if all properties are valid
190
+ */
191
+ public function valid()
192
+ {
193
+
194
+ if ($this->container['merchantBackorderNo'] === null) {
195
+ return false;
196
+ }
197
+ if (strlen($this->container['merchantBackorderNo']) > 50) {
198
+ return false;
199
+ }
200
+ if (strlen($this->container['merchantBackorderNo']) < 0) {
201
+ return false;
202
+ }
203
+ if ($this->container['merchantOrderNo'] === null) {
204
+ return false;
205
+ }
206
+ if (strlen($this->container['merchantOrderNo']) > 50) {
207
+ return false;
208
+ }
209
+ if (strlen($this->container['merchantOrderNo']) < 0) {
210
+ return false;
211
+ }
212
+ if (strlen($this->container['channelOrderNo']) > 50) {
213
+ return false;
214
+ }
215
+ if (strlen($this->container['channelOrderNo']) < 0) {
216
+ return false;
217
+ }
218
+ if ($this->container['lines'] === null) {
219
+ return false;
220
+ }
221
+ return true;
222
+ }
223
+
224
+
225
+ /**
226
+ * Gets merchantBackorderNo
227
+ * @return string
228
+ */
229
+ public function getMerchantBackorderNo()
230
+ {
231
+ return $this->container['merchantBackorderNo'];
232
+ }
233
+
234
+ /**
235
+ * Sets merchantBackorderNo
236
+ * @param string $merchantBackorderNo
237
+ * @return $this
238
+ */
239
+ public function setMerchantBackorderNo($merchantBackorderNo)
240
+ {
241
+ if ((strlen($merchantBackorderNo) > 50)) {
242
+ throw new \InvalidArgumentException('invalid length for $merchantBackorderNo when calling BackOrder., must be smaller than or equal to 50.');
243
+ }
244
+ if ((strlen($merchantBackorderNo) < 0)) {
245
+ throw new \InvalidArgumentException('invalid length for $merchantBackorderNo when calling BackOrder., must be bigger than or equal to 0.');
246
+ }
247
+
248
+ $this->container['merchantBackorderNo'] = $merchantBackorderNo;
249
+
250
+ return $this;
251
+ }
252
+
253
+ /**
254
+ * Gets merchantOrderNo
255
+ * @return string
256
+ */
257
+ public function getMerchantOrderNo()
258
+ {
259
+ return $this->container['merchantOrderNo'];
260
+ }
261
+
262
+ /**
263
+ * Sets merchantOrderNo
264
+ * @param string $merchantOrderNo
265
+ * @return $this
266
+ */
267
+ public function setMerchantOrderNo($merchantOrderNo)
268
+ {
269
+ if ((strlen($merchantOrderNo) > 50)) {
270
+ throw new \InvalidArgumentException('invalid length for $merchantOrderNo when calling BackOrder., must be smaller than or equal to 50.');
271
+ }
272
+ if ((strlen($merchantOrderNo) < 0)) {
273
+ throw new \InvalidArgumentException('invalid length for $merchantOrderNo when calling BackOrder., must be bigger than or equal to 0.');
274
+ }
275
+
276
+ $this->container['merchantOrderNo'] = $merchantOrderNo;
277
+
278
+ return $this;
279
+ }
280
+
281
+ /**
282
+ * Gets channelOrderNo
283
+ * @return string
284
+ */
285
+ public function getChannelOrderNo()
286
+ {
287
+ return $this->container['channelOrderNo'];
288
+ }
289
+
290
+ /**
291
+ * Sets channelOrderNo
292
+ * @param string $channelOrderNo
293
+ * @return $this
294
+ */
295
+ public function setChannelOrderNo($channelOrderNo)
296
+ {
297
+ if (!is_null($channelOrderNo) && (strlen($channelOrderNo) > 50)) {
298
+ throw new \InvalidArgumentException('invalid length for $channelOrderNo when calling BackOrder., must be smaller than or equal to 50.');
299
+ }
300
+ if (!is_null($channelOrderNo) && (strlen($channelOrderNo) < 0)) {
301
+ throw new \InvalidArgumentException('invalid length for $channelOrderNo when calling BackOrder., must be bigger than or equal to 0.');
302
+ }
303
+
304
+ $this->container['channelOrderNo'] = $channelOrderNo;
305
+
306
+ return $this;
307
+ }
308
+
309
+ /**
310
+ * Gets lines
311
+ * @return \ChannelEngine\ApiClient\Model\BackOrderLine[]
312
+ */
313
+ public function getLines()
314
+ {
315
+ return $this->container['lines'];
316
+ }
317
+
318
+ /**
319
+ * Sets lines
320
+ * @param \ChannelEngine\ApiClient\Model\BackOrderLine[] $lines
321
+ * @return $this
322
+ */
323
+ public function setLines($lines)
324
+ {
325
+ $this->container['lines'] = $lines;
326
+
327
+ return $this;
328
+ }
329
+ /**
330
+ * Returns true if offset exists. False otherwise.
331
+ * @param integer $offset Offset
332
+ * @return boolean
333
+ */
334
+ public function offsetExists($offset)
335
+ {
336
+ return isset($this->container[$offset]);
337
+ }
338
+
339
+ /**
340
+ * Gets offset.
341
+ * @param integer $offset Offset
342
+ * @return mixed
343
+ */
344
+ public function offsetGet($offset)
345
+ {
346
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
347
+ }
348
+
349
+ /**
350
+ * Sets value based on offset.
351
+ * @param integer $offset Offset
352
+ * @param mixed $value Value to be set
353
+ * @return void
354
+ */
355
+ public function offsetSet($offset, $value)
356
+ {
357
+ if (is_null($offset)) {
358
+ $this->container[] = $value;
359
+ } else {
360
+ $this->container[$offset] = $value;
361
+ }
362
+ }
363
+
364
+ /**
365
+ * Unsets offset.
366
+ * @param integer $offset Offset
367
+ * @return void
368
+ */
369
+ public function offsetUnset($offset)
370
+ {
371
+ unset($this->container[$offset]);
372
+ }
373
+
374
+ /**
375
+ * Gets the string presentation of the object
376
+ * @return string
377
+ */
378
+ public function __toString()
379
+ {
380
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
381
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
382
+ }
383
+
384
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
385
+ }
386
+ }
387
+
388
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/BackOrderLine.php ADDED
@@ -0,0 +1,288 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * BackOrderLine
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * BackOrderLine Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class BackOrderLine implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'BackOrderLine';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'merchantOrderLineNo' => 'string',
58
+ 'quantity' => 'int'
59
+ ];
60
+
61
+ public static function swaggerTypes()
62
+ {
63
+ return self::$swaggerTypes;
64
+ }
65
+
66
+ /**
67
+ * Array of attributes where the key is the local name, and the value is the original name
68
+ * @var string[]
69
+ */
70
+ protected static $attributeMap = [
71
+ 'merchantOrderLineNo' => 'MerchantOrderLineNo',
72
+ 'quantity' => 'Quantity'
73
+ ];
74
+
75
+
76
+ /**
77
+ * Array of attributes to setter functions (for deserialization of responses)
78
+ * @var string[]
79
+ */
80
+ protected static $setters = [
81
+ 'merchantOrderLineNo' => 'setMerchantOrderLineNo',
82
+ 'quantity' => 'setQuantity'
83
+ ];
84
+
85
+
86
+ /**
87
+ * Array of attributes to getter functions (for serialization of requests)
88
+ * @var string[]
89
+ */
90
+ protected static $getters = [
91
+ 'merchantOrderLineNo' => 'getMerchantOrderLineNo',
92
+ 'quantity' => 'getQuantity'
93
+ ];
94
+
95
+ public static function attributeMap()
96
+ {
97
+ return self::$attributeMap;
98
+ }
99
+
100
+ public static function setters()
101
+ {
102
+ return self::$setters;
103
+ }
104
+
105
+ public static function getters()
106
+ {
107
+ return self::$getters;
108
+ }
109
+
110
+
111
+
112
+
113
+
114
+ /**
115
+ * Associative array for storing property values
116
+ * @var mixed[]
117
+ */
118
+ protected $container = [];
119
+
120
+ /**
121
+ * Constructor
122
+ * @param mixed[] $data Associated array of property values initializing the model
123
+ */
124
+ public function __construct(array $data = null)
125
+ {
126
+ $this->container['merchantOrderLineNo'] = isset($data['merchantOrderLineNo']) ? $data['merchantOrderLineNo'] : null;
127
+ $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null;
128
+ }
129
+
130
+ /**
131
+ * show all the invalid properties with reasons.
132
+ *
133
+ * @return array invalid properties with reasons
134
+ */
135
+ public function listInvalidProperties()
136
+ {
137
+ $invalid_properties = [];
138
+
139
+ if ($this->container['merchantOrderLineNo'] === null) {
140
+ $invalid_properties[] = "'merchantOrderLineNo' can't be null";
141
+ }
142
+ if ((strlen($this->container['merchantOrderLineNo']) > 50)) {
143
+ $invalid_properties[] = "invalid value for 'merchantOrderLineNo', the character length must be smaller than or equal to 50.";
144
+ }
145
+
146
+ if ((strlen($this->container['merchantOrderLineNo']) < 0)) {
147
+ $invalid_properties[] = "invalid value for 'merchantOrderLineNo', the character length must be bigger than or equal to 0.";
148
+ }
149
+
150
+ if ($this->container['quantity'] === null) {
151
+ $invalid_properties[] = "'quantity' can't be null";
152
+ }
153
+ return $invalid_properties;
154
+ }
155
+
156
+ /**
157
+ * validate all the properties in the model
158
+ * return true if all passed
159
+ *
160
+ * @return bool True if all properties are valid
161
+ */
162
+ public function valid()
163
+ {
164
+
165
+ if ($this->container['merchantOrderLineNo'] === null) {
166
+ return false;
167
+ }
168
+ if (strlen($this->container['merchantOrderLineNo']) > 50) {
169
+ return false;
170
+ }
171
+ if (strlen($this->container['merchantOrderLineNo']) < 0) {
172
+ return false;
173
+ }
174
+ if ($this->container['quantity'] === null) {
175
+ return false;
176
+ }
177
+ return true;
178
+ }
179
+
180
+
181
+ /**
182
+ * Gets merchantOrderLineNo
183
+ * @return string
184
+ */
185
+ public function getMerchantOrderLineNo()
186
+ {
187
+ return $this->container['merchantOrderLineNo'];
188
+ }
189
+
190
+ /**
191
+ * Sets merchantOrderLineNo
192
+ * @param string $merchantOrderLineNo
193
+ * @return $this
194
+ */
195
+ public function setMerchantOrderLineNo($merchantOrderLineNo)
196
+ {
197
+ if ((strlen($merchantOrderLineNo) > 50)) {
198
+ throw new \InvalidArgumentException('invalid length for $merchantOrderLineNo when calling BackOrderLine., must be smaller than or equal to 50.');
199
+ }
200
+ if ((strlen($merchantOrderLineNo) < 0)) {
201
+ throw new \InvalidArgumentException('invalid length for $merchantOrderLineNo when calling BackOrderLine., must be bigger than or equal to 0.');
202
+ }
203
+
204
+ $this->container['merchantOrderLineNo'] = $merchantOrderLineNo;
205
+
206
+ return $this;
207
+ }
208
+
209
+ /**
210
+ * Gets quantity
211
+ * @return int
212
+ */
213
+ public function getQuantity()
214
+ {
215
+ return $this->container['quantity'];
216
+ }
217
+
218
+ /**
219
+ * Sets quantity
220
+ * @param int $quantity
221
+ * @return $this
222
+ */
223
+ public function setQuantity($quantity)
224
+ {
225
+ $this->container['quantity'] = $quantity;
226
+
227
+ return $this;
228
+ }
229
+ /**
230
+ * Returns true if offset exists. False otherwise.
231
+ * @param integer $offset Offset
232
+ * @return boolean
233
+ */
234
+ public function offsetExists($offset)
235
+ {
236
+ return isset($this->container[$offset]);
237
+ }
238
+
239
+ /**
240
+ * Gets offset.
241
+ * @param integer $offset Offset
242
+ * @return mixed
243
+ */
244
+ public function offsetGet($offset)
245
+ {
246
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
247
+ }
248
+
249
+ /**
250
+ * Sets value based on offset.
251
+ * @param integer $offset Offset
252
+ * @param mixed $value Value to be set
253
+ * @return void
254
+ */
255
+ public function offsetSet($offset, $value)
256
+ {
257
+ if (is_null($offset)) {
258
+ $this->container[] = $value;
259
+ } else {
260
+ $this->container[$offset] = $value;
261
+ }
262
+ }
263
+
264
+ /**
265
+ * Unsets offset.
266
+ * @param integer $offset Offset
267
+ * @return void
268
+ */
269
+ public function offsetUnset($offset)
270
+ {
271
+ unset($this->container[$offset]);
272
+ }
273
+
274
+ /**
275
+ * Gets the string presentation of the object
276
+ * @return string
277
+ */
278
+ public function __toString()
279
+ {
280
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
281
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
282
+ }
283
+
284
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
285
+ }
286
+ }
287
+
288
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ChannelCancellationLineResponse.php ADDED
@@ -0,0 +1,267 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ChannelCancellationLineResponse
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * ChannelCancellationLineResponse Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ChannelCancellationLineResponse implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'ChannelCancellationLineResponse';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'channelProductNo' => 'string',
58
+ 'quantity' => 'int'
59
+ ];
60
+
61
+ public static function swaggerTypes()
62
+ {
63
+ return self::$swaggerTypes;
64
+ }
65
+
66
+ /**
67
+ * Array of attributes where the key is the local name, and the value is the original name
68
+ * @var string[]
69
+ */
70
+ protected static $attributeMap = [
71
+ 'channelProductNo' => 'ChannelProductNo',
72
+ 'quantity' => 'Quantity'
73
+ ];
74
+
75
+
76
+ /**
77
+ * Array of attributes to setter functions (for deserialization of responses)
78
+ * @var string[]
79
+ */
80
+ protected static $setters = [
81
+ 'channelProductNo' => 'setChannelProductNo',
82
+ 'quantity' => 'setQuantity'
83
+ ];
84
+
85
+
86
+ /**
87
+ * Array of attributes to getter functions (for serialization of requests)
88
+ * @var string[]
89
+ */
90
+ protected static $getters = [
91
+ 'channelProductNo' => 'getChannelProductNo',
92
+ 'quantity' => 'getQuantity'
93
+ ];
94
+
95
+ public static function attributeMap()
96
+ {
97
+ return self::$attributeMap;
98
+ }
99
+
100
+ public static function setters()
101
+ {
102
+ return self::$setters;
103
+ }
104
+
105
+ public static function getters()
106
+ {
107
+ return self::$getters;
108
+ }
109
+
110
+
111
+
112
+
113
+
114
+ /**
115
+ * Associative array for storing property values
116
+ * @var mixed[]
117
+ */
118
+ protected $container = [];
119
+
120
+ /**
121
+ * Constructor
122
+ * @param mixed[] $data Associated array of property values initializing the model
123
+ */
124
+ public function __construct(array $data = null)
125
+ {
126
+ $this->container['channelProductNo'] = isset($data['channelProductNo']) ? $data['channelProductNo'] : null;
127
+ $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null;
128
+ }
129
+
130
+ /**
131
+ * show all the invalid properties with reasons.
132
+ *
133
+ * @return array invalid properties with reasons
134
+ */
135
+ public function listInvalidProperties()
136
+ {
137
+ $invalid_properties = [];
138
+
139
+ if ($this->container['channelProductNo'] === null) {
140
+ $invalid_properties[] = "'channelProductNo' can't be null";
141
+ }
142
+ if ($this->container['quantity'] === null) {
143
+ $invalid_properties[] = "'quantity' can't be null";
144
+ }
145
+ return $invalid_properties;
146
+ }
147
+
148
+ /**
149
+ * validate all the properties in the model
150
+ * return true if all passed
151
+ *
152
+ * @return bool True if all properties are valid
153
+ */
154
+ public function valid()
155
+ {
156
+
157
+ if ($this->container['channelProductNo'] === null) {
158
+ return false;
159
+ }
160
+ if ($this->container['quantity'] === null) {
161
+ return false;
162
+ }
163
+ return true;
164
+ }
165
+
166
+
167
+ /**
168
+ * Gets channelProductNo
169
+ * @return string
170
+ */
171
+ public function getChannelProductNo()
172
+ {
173
+ return $this->container['channelProductNo'];
174
+ }
175
+
176
+ /**
177
+ * Sets channelProductNo
178
+ * @param string $channelProductNo
179
+ * @return $this
180
+ */
181
+ public function setChannelProductNo($channelProductNo)
182
+ {
183
+ $this->container['channelProductNo'] = $channelProductNo;
184
+
185
+ return $this;
186
+ }
187
+
188
+ /**
189
+ * Gets quantity
190
+ * @return int
191
+ */
192
+ public function getQuantity()
193
+ {
194
+ return $this->container['quantity'];
195
+ }
196
+
197
+ /**
198
+ * Sets quantity
199
+ * @param int $quantity
200
+ * @return $this
201
+ */
202
+ public function setQuantity($quantity)
203
+ {
204
+ $this->container['quantity'] = $quantity;
205
+
206
+ return $this;
207
+ }
208
+ /**
209
+ * Returns true if offset exists. False otherwise.
210
+ * @param integer $offset Offset
211
+ * @return boolean
212
+ */
213
+ public function offsetExists($offset)
214
+ {
215
+ return isset($this->container[$offset]);
216
+ }
217
+
218
+ /**
219
+ * Gets offset.
220
+ * @param integer $offset Offset
221
+ * @return mixed
222
+ */
223
+ public function offsetGet($offset)
224
+ {
225
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
226
+ }
227
+
228
+ /**
229
+ * Sets value based on offset.
230
+ * @param integer $offset Offset
231
+ * @param mixed $value Value to be set
232
+ * @return void
233
+ */
234
+ public function offsetSet($offset, $value)
235
+ {
236
+ if (is_null($offset)) {
237
+ $this->container[] = $value;
238
+ } else {
239
+ $this->container[$offset] = $value;
240
+ }
241
+ }
242
+
243
+ /**
244
+ * Unsets offset.
245
+ * @param integer $offset Offset
246
+ * @return void
247
+ */
248
+ public function offsetUnset($offset)
249
+ {
250
+ unset($this->container[$offset]);
251
+ }
252
+
253
+ /**
254
+ * Gets the string presentation of the object
255
+ * @return string
256
+ */
257
+ public function __toString()
258
+ {
259
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
260
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
261
+ }
262
+
263
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
264
+ }
265
+ }
266
+
267
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ChannelCancellationResponse.php ADDED
@@ -0,0 +1,293 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ChannelCancellationResponse
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * ChannelCancellationResponse Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ChannelCancellationResponse implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'ChannelCancellationResponse';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'channelOrderNo' => 'string',
58
+ 'lines' => '\ChannelEngine\ApiClient\Model\ChannelCancellationLineResponse[]',
59
+ 'reason' => 'string'
60
+ ];
61
+
62
+ public static function swaggerTypes()
63
+ {
64
+ return self::$swaggerTypes;
65
+ }
66
+
67
+ /**
68
+ * Array of attributes where the key is the local name, and the value is the original name
69
+ * @var string[]
70
+ */
71
+ protected static $attributeMap = [
72
+ 'channelOrderNo' => 'ChannelOrderNo',
73
+ 'lines' => 'Lines',
74
+ 'reason' => 'Reason'
75
+ ];
76
+
77
+
78
+ /**
79
+ * Array of attributes to setter functions (for deserialization of responses)
80
+ * @var string[]
81
+ */
82
+ protected static $setters = [
83
+ 'channelOrderNo' => 'setChannelOrderNo',
84
+ 'lines' => 'setLines',
85
+ 'reason' => 'setReason'
86
+ ];
87
+
88
+
89
+ /**
90
+ * Array of attributes to getter functions (for serialization of requests)
91
+ * @var string[]
92
+ */
93
+ protected static $getters = [
94
+ 'channelOrderNo' => 'getChannelOrderNo',
95
+ 'lines' => 'getLines',
96
+ 'reason' => 'getReason'
97
+ ];
98
+
99
+ public static function attributeMap()
100
+ {
101
+ return self::$attributeMap;
102
+ }
103
+
104
+ public static function setters()
105
+ {
106
+ return self::$setters;
107
+ }
108
+
109
+ public static function getters()
110
+ {
111
+ return self::$getters;
112
+ }
113
+
114
+
115
+
116
+
117
+
118
+ /**
119
+ * Associative array for storing property values
120
+ * @var mixed[]
121
+ */
122
+ protected $container = [];
123
+
124
+ /**
125
+ * Constructor
126
+ * @param mixed[] $data Associated array of property values initializing the model
127
+ */
128
+ public function __construct(array $data = null)
129
+ {
130
+ $this->container['channelOrderNo'] = isset($data['channelOrderNo']) ? $data['channelOrderNo'] : null;
131
+ $this->container['lines'] = isset($data['lines']) ? $data['lines'] : null;
132
+ $this->container['reason'] = isset($data['reason']) ? $data['reason'] : null;
133
+ }
134
+
135
+ /**
136
+ * show all the invalid properties with reasons.
137
+ *
138
+ * @return array invalid properties with reasons
139
+ */
140
+ public function listInvalidProperties()
141
+ {
142
+ $invalid_properties = [];
143
+
144
+ if ($this->container['channelOrderNo'] === null) {
145
+ $invalid_properties[] = "'channelOrderNo' can't be null";
146
+ }
147
+ if ($this->container['lines'] === null) {
148
+ $invalid_properties[] = "'lines' can't be null";
149
+ }
150
+ return $invalid_properties;
151
+ }
152
+
153
+ /**
154
+ * validate all the properties in the model
155
+ * return true if all passed
156
+ *
157
+ * @return bool True if all properties are valid
158
+ */
159
+ public function valid()
160
+ {
161
+
162
+ if ($this->container['channelOrderNo'] === null) {
163
+ return false;
164
+ }
165
+ if ($this->container['lines'] === null) {
166
+ return false;
167
+ }
168
+ return true;
169
+ }
170
+
171
+
172
+ /**
173
+ * Gets channelOrderNo
174
+ * @return string
175
+ */
176
+ public function getChannelOrderNo()
177
+ {
178
+ return $this->container['channelOrderNo'];
179
+ }
180
+
181
+ /**
182
+ * Sets channelOrderNo
183
+ * @param string $channelOrderNo
184
+ * @return $this
185
+ */
186
+ public function setChannelOrderNo($channelOrderNo)
187
+ {
188
+ $this->container['channelOrderNo'] = $channelOrderNo;
189
+
190
+ return $this;
191
+ }
192
+
193
+ /**
194
+ * Gets lines
195
+ * @return \ChannelEngine\ApiClient\Model\ChannelCancellationLineResponse[]
196
+ */
197
+ public function getLines()
198
+ {
199
+ return $this->container['lines'];
200
+ }
201
+
202
+ /**
203
+ * Sets lines
204
+ * @param \ChannelEngine\ApiClient\Model\ChannelCancellationLineResponse[] $lines
205
+ * @return $this
206
+ */
207
+ public function setLines($lines)
208
+ {
209
+ $this->container['lines'] = $lines;
210
+
211
+ return $this;
212
+ }
213
+
214
+ /**
215
+ * Gets reason
216
+ * @return string
217
+ */
218
+ public function getReason()
219
+ {
220
+ return $this->container['reason'];
221
+ }
222
+
223
+ /**
224
+ * Sets reason
225
+ * @param string $reason
226
+ * @return $this
227
+ */
228
+ public function setReason($reason)
229
+ {
230
+ $this->container['reason'] = $reason;
231
+
232
+ return $this;
233
+ }
234
+ /**
235
+ * Returns true if offset exists. False otherwise.
236
+ * @param integer $offset Offset
237
+ * @return boolean
238
+ */
239
+ public function offsetExists($offset)
240
+ {
241
+ return isset($this->container[$offset]);
242
+ }
243
+
244
+ /**
245
+ * Gets offset.
246
+ * @param integer $offset Offset
247
+ * @return mixed
248
+ */
249
+ public function offsetGet($offset)
250
+ {
251
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
252
+ }
253
+
254
+ /**
255
+ * Sets value based on offset.
256
+ * @param integer $offset Offset
257
+ * @param mixed $value Value to be set
258
+ * @return void
259
+ */
260
+ public function offsetSet($offset, $value)
261
+ {
262
+ if (is_null($offset)) {
263
+ $this->container[] = $value;
264
+ } else {
265
+ $this->container[$offset] = $value;
266
+ }
267
+ }
268
+
269
+ /**
270
+ * Unsets offset.
271
+ * @param integer $offset Offset
272
+ * @return void
273
+ */
274
+ public function offsetUnset($offset)
275
+ {
276
+ unset($this->container[$offset]);
277
+ }
278
+
279
+ /**
280
+ * Gets the string presentation of the object
281
+ * @return string
282
+ */
283
+ public function __toString()
284
+ {
285
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
286
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
287
+ }
288
+
289
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
290
+ }
291
+ }
292
+
293
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ChannelOfferResponse.php ADDED
@@ -0,0 +1,281 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ChannelOfferResponse
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * ChannelOfferResponse Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ChannelOfferResponse implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'ChannelOfferResponse';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'channelProductNo' => 'string',
58
+ 'price' => 'double',
59
+ 'stock' => 'int'
60
+ ];
61
+
62
+ public static function swaggerTypes()
63
+ {
64
+ return self::$swaggerTypes;
65
+ }
66
+
67
+ /**
68
+ * Array of attributes where the key is the local name, and the value is the original name
69
+ * @var string[]
70
+ */
71
+ protected static $attributeMap = [
72
+ 'channelProductNo' => 'ChannelProductNo',
73
+ 'price' => 'Price',
74
+ 'stock' => 'Stock'
75
+ ];
76
+
77
+
78
+ /**
79
+ * Array of attributes to setter functions (for deserialization of responses)
80
+ * @var string[]
81
+ */
82
+ protected static $setters = [
83
+ 'channelProductNo' => 'setChannelProductNo',
84
+ 'price' => 'setPrice',
85
+ 'stock' => 'setStock'
86
+ ];
87
+
88
+
89
+ /**
90
+ * Array of attributes to getter functions (for serialization of requests)
91
+ * @var string[]
92
+ */
93
+ protected static $getters = [
94
+ 'channelProductNo' => 'getChannelProductNo',
95
+ 'price' => 'getPrice',
96
+ 'stock' => 'getStock'
97
+ ];
98
+
99
+ public static function attributeMap()
100
+ {
101
+ return self::$attributeMap;
102
+ }
103
+
104
+ public static function setters()
105
+ {
106
+ return self::$setters;
107
+ }
108
+
109
+ public static function getters()
110
+ {
111
+ return self::$getters;
112
+ }
113
+
114
+
115
+
116
+
117
+
118
+ /**
119
+ * Associative array for storing property values
120
+ * @var mixed[]
121
+ */
122
+ protected $container = [];
123
+
124
+ /**
125
+ * Constructor
126
+ * @param mixed[] $data Associated array of property values initializing the model
127
+ */
128
+ public function __construct(array $data = null)
129
+ {
130
+ $this->container['channelProductNo'] = isset($data['channelProductNo']) ? $data['channelProductNo'] : null;
131
+ $this->container['price'] = isset($data['price']) ? $data['price'] : null;
132
+ $this->container['stock'] = isset($data['stock']) ? $data['stock'] : null;
133
+ }
134
+
135
+ /**
136
+ * show all the invalid properties with reasons.
137
+ *
138
+ * @return array invalid properties with reasons
139
+ */
140
+ public function listInvalidProperties()
141
+ {
142
+ $invalid_properties = [];
143
+
144
+ return $invalid_properties;
145
+ }
146
+
147
+ /**
148
+ * validate all the properties in the model
149
+ * return true if all passed
150
+ *
151
+ * @return bool True if all properties are valid
152
+ */
153
+ public function valid()
154
+ {
155
+
156
+ return true;
157
+ }
158
+
159
+
160
+ /**
161
+ * Gets channelProductNo
162
+ * @return string
163
+ */
164
+ public function getChannelProductNo()
165
+ {
166
+ return $this->container['channelProductNo'];
167
+ }
168
+
169
+ /**
170
+ * Sets channelProductNo
171
+ * @param string $channelProductNo
172
+ * @return $this
173
+ */
174
+ public function setChannelProductNo($channelProductNo)
175
+ {
176
+ $this->container['channelProductNo'] = $channelProductNo;
177
+
178
+ return $this;
179
+ }
180
+
181
+ /**
182
+ * Gets price
183
+ * @return double
184
+ */
185
+ public function getPrice()
186
+ {
187
+ return $this->container['price'];
188
+ }
189
+
190
+ /**
191
+ * Sets price
192
+ * @param double $price
193
+ * @return $this
194
+ */
195
+ public function setPrice($price)
196
+ {
197
+ $this->container['price'] = $price;
198
+
199
+ return $this;
200
+ }
201
+
202
+ /**
203
+ * Gets stock
204
+ * @return int
205
+ */
206
+ public function getStock()
207
+ {
208
+ return $this->container['stock'];
209
+ }
210
+
211
+ /**
212
+ * Sets stock
213
+ * @param int $stock
214
+ * @return $this
215
+ */
216
+ public function setStock($stock)
217
+ {
218
+ $this->container['stock'] = $stock;
219
+
220
+ return $this;
221
+ }
222
+ /**
223
+ * Returns true if offset exists. False otherwise.
224
+ * @param integer $offset Offset
225
+ * @return boolean
226
+ */
227
+ public function offsetExists($offset)
228
+ {
229
+ return isset($this->container[$offset]);
230
+ }
231
+
232
+ /**
233
+ * Gets offset.
234
+ * @param integer $offset Offset
235
+ * @return mixed
236
+ */
237
+ public function offsetGet($offset)
238
+ {
239
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
240
+ }
241
+
242
+ /**
243
+ * Sets value based on offset.
244
+ * @param integer $offset Offset
245
+ * @param mixed $value Value to be set
246
+ * @return void
247
+ */
248
+ public function offsetSet($offset, $value)
249
+ {
250
+ if (is_null($offset)) {
251
+ $this->container[] = $value;
252
+ } else {
253
+ $this->container[$offset] = $value;
254
+ }
255
+ }
256
+
257
+ /**
258
+ * Unsets offset.
259
+ * @param integer $offset Offset
260
+ * @return void
261
+ */
262
+ public function offsetUnset($offset)
263
+ {
264
+ unset($this->container[$offset]);
265
+ }
266
+
267
+ /**
268
+ * Gets the string presentation of the object
269
+ * @return string
270
+ */
271
+ public function __toString()
272
+ {
273
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
274
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
275
+ }
276
+
277
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
278
+ }
279
+ }
280
+
281
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ChannelOrderLineRequest.php ADDED
@@ -0,0 +1,435 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ChannelOrderLineRequest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * ChannelOrderLineRequest Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ChannelOrderLineRequest implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'ChannelOrderLineRequest';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'channelProductNo' => 'string',
58
+ 'quantity' => 'int',
59
+ 'unitPriceInclVat' => 'double',
60
+ 'feeFixed' => 'double',
61
+ 'feeRate' => 'double',
62
+ 'condition' => 'string'
63
+ ];
64
+
65
+ public static function swaggerTypes()
66
+ {
67
+ return self::$swaggerTypes;
68
+ }
69
+
70
+ /**
71
+ * Array of attributes where the key is the local name, and the value is the original name
72
+ * @var string[]
73
+ */
74
+ protected static $attributeMap = [
75
+ 'channelProductNo' => 'ChannelProductNo',
76
+ 'quantity' => 'Quantity',
77
+ 'unitPriceInclVat' => 'UnitPriceInclVat',
78
+ 'feeFixed' => 'FeeFixed',
79
+ 'feeRate' => 'FeeRate',
80
+ 'condition' => 'Condition'
81
+ ];
82
+
83
+
84
+ /**
85
+ * Array of attributes to setter functions (for deserialization of responses)
86
+ * @var string[]
87
+ */
88
+ protected static $setters = [
89
+ 'channelProductNo' => 'setChannelProductNo',
90
+ 'quantity' => 'setQuantity',
91
+ 'unitPriceInclVat' => 'setUnitPriceInclVat',
92
+ 'feeFixed' => 'setFeeFixed',
93
+ 'feeRate' => 'setFeeRate',
94
+ 'condition' => 'setCondition'
95
+ ];
96
+
97
+
98
+ /**
99
+ * Array of attributes to getter functions (for serialization of requests)
100
+ * @var string[]
101
+ */
102
+ protected static $getters = [
103
+ 'channelProductNo' => 'getChannelProductNo',
104
+ 'quantity' => 'getQuantity',
105
+ 'unitPriceInclVat' => 'getUnitPriceInclVat',
106
+ 'feeFixed' => 'getFeeFixed',
107
+ 'feeRate' => 'getFeeRate',
108
+ 'condition' => 'getCondition'
109
+ ];
110
+
111
+ public static function attributeMap()
112
+ {
113
+ return self::$attributeMap;
114
+ }
115
+
116
+ public static function setters()
117
+ {
118
+ return self::$setters;
119
+ }
120
+
121
+ public static function getters()
122
+ {
123
+ return self::$getters;
124
+ }
125
+
126
+ const CONDITION_NEW = 'NEW';
127
+ const CONDITION_NEW_REFURBISHED = 'NEW_REFURBISHED';
128
+ const CONDITION_USED_AS_NEW = 'USED_AS_NEW';
129
+ const CONDITION_USED_GOOD = 'USED_GOOD';
130
+ const CONDITION_USED_REASONABLE = 'USED_REASONABLE';
131
+ const CONDITION_USED_MEDIOCRE = 'USED_MEDIOCRE';
132
+ const CONDITION_UNKNOWN = 'UNKNOWN';
133
+
134
+
135
+
136
+ /**
137
+ * Gets allowable values of the enum
138
+ * @return string[]
139
+ */
140
+ public function getConditionAllowableValues()
141
+ {
142
+ return [
143
+ self::CONDITION_NEW,
144
+ self::CONDITION_NEW_REFURBISHED,
145
+ self::CONDITION_USED_AS_NEW,
146
+ self::CONDITION_USED_GOOD,
147
+ self::CONDITION_USED_REASONABLE,
148
+ self::CONDITION_USED_MEDIOCRE,
149
+ self::CONDITION_UNKNOWN,
150
+ ];
151
+ }
152
+
153
+
154
+ /**
155
+ * Associative array for storing property values
156
+ * @var mixed[]
157
+ */
158
+ protected $container = [];
159
+
160
+ /**
161
+ * Constructor
162
+ * @param mixed[] $data Associated array of property values initializing the model
163
+ */
164
+ public function __construct(array $data = null)
165
+ {
166
+ $this->container['channelProductNo'] = isset($data['channelProductNo']) ? $data['channelProductNo'] : null;
167
+ $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null;
168
+ $this->container['unitPriceInclVat'] = isset($data['unitPriceInclVat']) ? $data['unitPriceInclVat'] : null;
169
+ $this->container['feeFixed'] = isset($data['feeFixed']) ? $data['feeFixed'] : null;
170
+ $this->container['feeRate'] = isset($data['feeRate']) ? $data['feeRate'] : null;
171
+ $this->container['condition'] = isset($data['condition']) ? $data['condition'] : null;
172
+ }
173
+
174
+ /**
175
+ * show all the invalid properties with reasons.
176
+ *
177
+ * @return array invalid properties with reasons
178
+ */
179
+ public function listInvalidProperties()
180
+ {
181
+ $invalid_properties = [];
182
+
183
+ if ($this->container['channelProductNo'] === null) {
184
+ $invalid_properties[] = "'channelProductNo' can't be null";
185
+ }
186
+ if ((strlen($this->container['channelProductNo']) > 50)) {
187
+ $invalid_properties[] = "invalid value for 'channelProductNo', the character length must be smaller than or equal to 50.";
188
+ }
189
+
190
+ if ((strlen($this->container['channelProductNo']) < 0)) {
191
+ $invalid_properties[] = "invalid value for 'channelProductNo', the character length must be bigger than or equal to 0.";
192
+ }
193
+
194
+ if ($this->container['quantity'] === null) {
195
+ $invalid_properties[] = "'quantity' can't be null";
196
+ }
197
+ if ($this->container['unitPriceInclVat'] === null) {
198
+ $invalid_properties[] = "'unitPriceInclVat' can't be null";
199
+ }
200
+ $allowed_values = ["NEW", "NEW_REFURBISHED", "USED_AS_NEW", "USED_GOOD", "USED_REASONABLE", "USED_MEDIOCRE", "UNKNOWN"];
201
+ if (!in_array($this->container['condition'], $allowed_values)) {
202
+ $invalid_properties[] = "invalid value for 'condition', must be one of 'NEW', 'NEW_REFURBISHED', 'USED_AS_NEW', 'USED_GOOD', 'USED_REASONABLE', 'USED_MEDIOCRE', 'UNKNOWN'.";
203
+ }
204
+
205
+ return $invalid_properties;
206
+ }
207
+
208
+ /**
209
+ * validate all the properties in the model
210
+ * return true if all passed
211
+ *
212
+ * @return bool True if all properties are valid
213
+ */
214
+ public function valid()
215
+ {
216
+
217
+ if ($this->container['channelProductNo'] === null) {
218
+ return false;
219
+ }
220
+ if (strlen($this->container['channelProductNo']) > 50) {
221
+ return false;
222
+ }
223
+ if (strlen($this->container['channelProductNo']) < 0) {
224
+ return false;
225
+ }
226
+ if ($this->container['quantity'] === null) {
227
+ return false;
228
+ }
229
+ if ($this->container['unitPriceInclVat'] === null) {
230
+ return false;
231
+ }
232
+ $allowed_values = ["NEW", "NEW_REFURBISHED", "USED_AS_NEW", "USED_GOOD", "USED_REASONABLE", "USED_MEDIOCRE", "UNKNOWN"];
233
+ if (!in_array($this->container['condition'], $allowed_values)) {
234
+ return false;
235
+ }
236
+ return true;
237
+ }
238
+
239
+
240
+ /**
241
+ * Gets channelProductNo
242
+ * @return string
243
+ */
244
+ public function getChannelProductNo()
245
+ {
246
+ return $this->container['channelProductNo'];
247
+ }
248
+
249
+ /**
250
+ * Sets channelProductNo
251
+ * @param string $channelProductNo
252
+ * @return $this
253
+ */
254
+ public function setChannelProductNo($channelProductNo)
255
+ {
256
+ if ((strlen($channelProductNo) > 50)) {
257
+ throw new \InvalidArgumentException('invalid length for $channelProductNo when calling ChannelOrderLineRequest., must be smaller than or equal to 50.');
258
+ }
259
+ if ((strlen($channelProductNo) < 0)) {
260
+ throw new \InvalidArgumentException('invalid length for $channelProductNo when calling ChannelOrderLineRequest., must be bigger than or equal to 0.');
261
+ }
262
+
263
+ $this->container['channelProductNo'] = $channelProductNo;
264
+
265
+ return $this;
266
+ }
267
+
268
+ /**
269
+ * Gets quantity
270
+ * @return int
271
+ */
272
+ public function getQuantity()
273
+ {
274
+ return $this->container['quantity'];
275
+ }
276
+
277
+ /**
278
+ * Sets quantity
279
+ * @param int $quantity
280
+ * @return $this
281
+ */
282
+ public function setQuantity($quantity)
283
+ {
284
+ $this->container['quantity'] = $quantity;
285
+
286
+ return $this;
287
+ }
288
+
289
+ /**
290
+ * Gets unitPriceInclVat
291
+ * @return double
292
+ */
293
+ public function getUnitPriceInclVat()
294
+ {
295
+ return $this->container['unitPriceInclVat'];
296
+ }
297
+
298
+ /**
299
+ * Sets unitPriceInclVat
300
+ * @param double $unitPriceInclVat The value of a single unit of the ordered product including VAT (in the tenant's base currency calculated using the exchange rate at the time of ordering).
301
+ * @return $this
302
+ */
303
+ public function setUnitPriceInclVat($unitPriceInclVat)
304
+ {
305
+ $this->container['unitPriceInclVat'] = $unitPriceInclVat;
306
+
307
+ return $this;
308
+ }
309
+
310
+ /**
311
+ * Gets feeFixed
312
+ * @return double
313
+ */
314
+ public function getFeeFixed()
315
+ {
316
+ return $this->container['feeFixed'];
317
+ }
318
+
319
+ /**
320
+ * Sets feeFixed
321
+ * @param double $feeFixed A fixed fee that is charged by the Channel for this orderline. This field is optional, send 0 if not applicable.
322
+ * @return $this
323
+ */
324
+ public function setFeeFixed($feeFixed)
325
+ {
326
+ $this->container['feeFixed'] = $feeFixed;
327
+
328
+ return $this;
329
+ }
330
+
331
+ /**
332
+ * Gets feeRate
333
+ * @return double
334
+ */
335
+ public function getFeeRate()
336
+ {
337
+ return $this->container['feeRate'];
338
+ }
339
+
340
+ /**
341
+ * Sets feeRate
342
+ * @param double $feeRate A percentage fee that is charged by the Channel for this orderline. This field is optional, send 0 if not applicable.
343
+ * @return $this
344
+ */
345
+ public function setFeeRate($feeRate)
346
+ {
347
+ $this->container['feeRate'] = $feeRate;
348
+
349
+ return $this;
350
+ }
351
+
352
+ /**
353
+ * Gets condition
354
+ * @return string
355
+ */
356
+ public function getCondition()
357
+ {
358
+ return $this->container['condition'];
359
+ }
360
+
361
+ /**
362
+ * Sets condition
363
+ * @param string $condition The condition of the product, this can be used to indicate that a product is a second-hand product
364
+ * @return $this
365
+ */
366
+ public function setCondition($condition)
367
+ {
368
+ $allowed_values = array('NEW', 'NEW_REFURBISHED', 'USED_AS_NEW', 'USED_GOOD', 'USED_REASONABLE', 'USED_MEDIOCRE', 'UNKNOWN');
369
+ if (!is_null($condition) && (!in_array($condition, $allowed_values))) {
370
+ throw new \InvalidArgumentException("Invalid value for 'condition', must be one of 'NEW', 'NEW_REFURBISHED', 'USED_AS_NEW', 'USED_GOOD', 'USED_REASONABLE', 'USED_MEDIOCRE', 'UNKNOWN'");
371
+ }
372
+ $this->container['condition'] = $condition;
373
+
374
+ return $this;
375
+ }
376
+ /**
377
+ * Returns true if offset exists. False otherwise.
378
+ * @param integer $offset Offset
379
+ * @return boolean
380
+ */
381
+ public function offsetExists($offset)
382
+ {
383
+ return isset($this->container[$offset]);
384
+ }
385
+
386
+ /**
387
+ * Gets offset.
388
+ * @param integer $offset Offset
389
+ * @return mixed
390
+ */
391
+ public function offsetGet($offset)
392
+ {
393
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
394
+ }
395
+
396
+ /**
397
+ * Sets value based on offset.
398
+ * @param integer $offset Offset
399
+ * @param mixed $value Value to be set
400
+ * @return void
401
+ */
402
+ public function offsetSet($offset, $value)
403
+ {
404
+ if (is_null($offset)) {
405
+ $this->container[] = $value;
406
+ } else {
407
+ $this->container[$offset] = $value;
408
+ }
409
+ }
410
+
411
+ /**
412
+ * Unsets offset.
413
+ * @param integer $offset Offset
414
+ * @return void
415
+ */
416
+ public function offsetUnset($offset)
417
+ {
418
+ unset($this->container[$offset]);
419
+ }
420
+
421
+ /**
422
+ * Gets the string presentation of the object
423
+ * @return string
424
+ */
425
+ public function __toString()
426
+ {
427
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
428
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
429
+ }
430
+
431
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
432
+ }
433
+ }
434
+
435
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ChannelOrderRequest.php ADDED
@@ -0,0 +1,768 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ChannelOrderRequest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * ChannelOrderRequest Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ChannelOrderRequest implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'ChannelOrderRequest';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'channelOrderNo' => 'string',
58
+ 'lines' => '\ChannelEngine\ApiClient\Model\ChannelOrderLineRequest[]',
59
+ 'phone' => 'string',
60
+ 'email' => 'string',
61
+ 'companyRegistrationNo' => 'string',
62
+ 'vatNo' => 'string',
63
+ 'paymentMethod' => 'string',
64
+ 'shippingCostsInclVat' => 'double',
65
+ 'currencyCode' => 'string',
66
+ 'orderDate' => '\DateTime',
67
+ 'channelCustomerNo' => 'string',
68
+ 'billingAddress' => '\ChannelEngine\ApiClient\Model\EntitiesAddressModels',
69
+ 'shippingAddress' => '\ChannelEngine\ApiClient\Model\EntitiesAddressModels',
70
+ 'extraData' => 'map[string,string]'
71
+ ];
72
+
73
+ public static function swaggerTypes()
74
+ {
75
+ return self::$swaggerTypes;
76
+ }
77
+
78
+ /**
79
+ * Array of attributes where the key is the local name, and the value is the original name
80
+ * @var string[]
81
+ */
82
+ protected static $attributeMap = [
83
+ 'channelOrderNo' => 'ChannelOrderNo',
84
+ 'lines' => 'Lines',
85
+ 'phone' => 'Phone',
86
+ 'email' => 'Email',
87
+ 'companyRegistrationNo' => 'CompanyRegistrationNo',
88
+ 'vatNo' => 'VatNo',
89
+ 'paymentMethod' => 'PaymentMethod',
90
+ 'shippingCostsInclVat' => 'ShippingCostsInclVat',
91
+ 'currencyCode' => 'CurrencyCode',
92
+ 'orderDate' => 'OrderDate',
93
+ 'channelCustomerNo' => 'ChannelCustomerNo',
94
+ 'billingAddress' => 'BillingAddress',
95
+ 'shippingAddress' => 'ShippingAddress',
96
+ 'extraData' => 'ExtraData'
97
+ ];
98
+
99
+
100
+ /**
101
+ * Array of attributes to setter functions (for deserialization of responses)
102
+ * @var string[]
103
+ */
104
+ protected static $setters = [
105
+ 'channelOrderNo' => 'setChannelOrderNo',
106
+ 'lines' => 'setLines',
107
+ 'phone' => 'setPhone',
108
+ 'email' => 'setEmail',
109
+ 'companyRegistrationNo' => 'setCompanyRegistrationNo',
110
+ 'vatNo' => 'setVatNo',
111
+ 'paymentMethod' => 'setPaymentMethod',
112
+ 'shippingCostsInclVat' => 'setShippingCostsInclVat',
113
+ 'currencyCode' => 'setCurrencyCode',
114
+ 'orderDate' => 'setOrderDate',
115
+ 'channelCustomerNo' => 'setChannelCustomerNo',
116
+ 'billingAddress' => 'setBillingAddress',
117
+ 'shippingAddress' => 'setShippingAddress',
118
+ 'extraData' => 'setExtraData'
119
+ ];
120
+
121
+
122
+ /**
123
+ * Array of attributes to getter functions (for serialization of requests)
124
+ * @var string[]
125
+ */
126
+ protected static $getters = [
127
+ 'channelOrderNo' => 'getChannelOrderNo',
128
+ 'lines' => 'getLines',
129
+ 'phone' => 'getPhone',
130
+ 'email' => 'getEmail',
131
+ 'companyRegistrationNo' => 'getCompanyRegistrationNo',
132
+ 'vatNo' => 'getVatNo',
133
+ 'paymentMethod' => 'getPaymentMethod',
134
+ 'shippingCostsInclVat' => 'getShippingCostsInclVat',
135
+ 'currencyCode' => 'getCurrencyCode',
136
+ 'orderDate' => 'getOrderDate',
137
+ 'channelCustomerNo' => 'getChannelCustomerNo',
138
+ 'billingAddress' => 'getBillingAddress',
139
+ 'shippingAddress' => 'getShippingAddress',
140
+ 'extraData' => 'getExtraData'
141
+ ];
142
+
143
+ public static function attributeMap()
144
+ {
145
+ return self::$attributeMap;
146
+ }
147
+
148
+ public static function setters()
149
+ {
150
+ return self::$setters;
151
+ }
152
+
153
+ public static function getters()
154
+ {
155
+ return self::$getters;
156
+ }
157
+
158
+
159
+
160
+
161
+
162
+ /**
163
+ * Associative array for storing property values
164
+ * @var mixed[]
165
+ */
166
+ protected $container = [];
167
+
168
+ /**
169
+ * Constructor
170
+ * @param mixed[] $data Associated array of property values initializing the model
171
+ */
172
+ public function __construct(array $data = null)
173
+ {
174
+ $this->container['channelOrderNo'] = isset($data['channelOrderNo']) ? $data['channelOrderNo'] : null;
175
+ $this->container['lines'] = isset($data['lines']) ? $data['lines'] : null;
176
+ $this->container['phone'] = isset($data['phone']) ? $data['phone'] : null;
177
+ $this->container['email'] = isset($data['email']) ? $data['email'] : null;
178
+ $this->container['companyRegistrationNo'] = isset($data['companyRegistrationNo']) ? $data['companyRegistrationNo'] : null;
179
+ $this->container['vatNo'] = isset($data['vatNo']) ? $data['vatNo'] : null;
180
+ $this->container['paymentMethod'] = isset($data['paymentMethod']) ? $data['paymentMethod'] : null;
181
+ $this->container['shippingCostsInclVat'] = isset($data['shippingCostsInclVat']) ? $data['shippingCostsInclVat'] : null;
182
+ $this->container['currencyCode'] = isset($data['currencyCode']) ? $data['currencyCode'] : null;
183
+ $this->container['orderDate'] = isset($data['orderDate']) ? $data['orderDate'] : null;
184
+ $this->container['channelCustomerNo'] = isset($data['channelCustomerNo']) ? $data['channelCustomerNo'] : null;
185
+ $this->container['billingAddress'] = isset($data['billingAddress']) ? $data['billingAddress'] : null;
186
+ $this->container['shippingAddress'] = isset($data['shippingAddress']) ? $data['shippingAddress'] : null;
187
+ $this->container['extraData'] = isset($data['extraData']) ? $data['extraData'] : null;
188
+ }
189
+
190
+ /**
191
+ * show all the invalid properties with reasons.
192
+ *
193
+ * @return array invalid properties with reasons
194
+ */
195
+ public function listInvalidProperties()
196
+ {
197
+ $invalid_properties = [];
198
+
199
+ if ($this->container['channelOrderNo'] === null) {
200
+ $invalid_properties[] = "'channelOrderNo' can't be null";
201
+ }
202
+ if ((strlen($this->container['channelOrderNo']) > 50)) {
203
+ $invalid_properties[] = "invalid value for 'channelOrderNo', the character length must be smaller than or equal to 50.";
204
+ }
205
+
206
+ if ((strlen($this->container['channelOrderNo']) < 0)) {
207
+ $invalid_properties[] = "invalid value for 'channelOrderNo', the character length must be bigger than or equal to 0.";
208
+ }
209
+
210
+ if ($this->container['lines'] === null) {
211
+ $invalid_properties[] = "'lines' can't be null";
212
+ }
213
+ if (!is_null($this->container['phone']) && (strlen($this->container['phone']) > 20)) {
214
+ $invalid_properties[] = "invalid value for 'phone', the character length must be smaller than or equal to 20.";
215
+ }
216
+
217
+ if (!is_null($this->container['phone']) && (strlen($this->container['phone']) < 0)) {
218
+ $invalid_properties[] = "invalid value for 'phone', the character length must be bigger than or equal to 0.";
219
+ }
220
+
221
+ if ($this->container['email'] === null) {
222
+ $invalid_properties[] = "'email' can't be null";
223
+ }
224
+ if ((strlen($this->container['email']) > 250)) {
225
+ $invalid_properties[] = "invalid value for 'email', the character length must be smaller than or equal to 250.";
226
+ }
227
+
228
+ if ((strlen($this->container['email']) < 0)) {
229
+ $invalid_properties[] = "invalid value for 'email', the character length must be bigger than or equal to 0.";
230
+ }
231
+
232
+ if (!is_null($this->container['companyRegistrationNo']) && (strlen($this->container['companyRegistrationNo']) > 50)) {
233
+ $invalid_properties[] = "invalid value for 'companyRegistrationNo', the character length must be smaller than or equal to 50.";
234
+ }
235
+
236
+ if (!is_null($this->container['companyRegistrationNo']) && (strlen($this->container['companyRegistrationNo']) < 0)) {
237
+ $invalid_properties[] = "invalid value for 'companyRegistrationNo', the character length must be bigger than or equal to 0.";
238
+ }
239
+
240
+ if (!is_null($this->container['vatNo']) && (strlen($this->container['vatNo']) > 50)) {
241
+ $invalid_properties[] = "invalid value for 'vatNo', the character length must be smaller than or equal to 50.";
242
+ }
243
+
244
+ if (!is_null($this->container['vatNo']) && (strlen($this->container['vatNo']) < 0)) {
245
+ $invalid_properties[] = "invalid value for 'vatNo', the character length must be bigger than or equal to 0.";
246
+ }
247
+
248
+ if ($this->container['paymentMethod'] === null) {
249
+ $invalid_properties[] = "'paymentMethod' can't be null";
250
+ }
251
+ if ((strlen($this->container['paymentMethod']) > 50)) {
252
+ $invalid_properties[] = "invalid value for 'paymentMethod', the character length must be smaller than or equal to 50.";
253
+ }
254
+
255
+ if ((strlen($this->container['paymentMethod']) < 0)) {
256
+ $invalid_properties[] = "invalid value for 'paymentMethod', the character length must be bigger than or equal to 0.";
257
+ }
258
+
259
+ if ($this->container['shippingCostsInclVat'] === null) {
260
+ $invalid_properties[] = "'shippingCostsInclVat' can't be null";
261
+ }
262
+ if ($this->container['currencyCode'] === null) {
263
+ $invalid_properties[] = "'currencyCode' can't be null";
264
+ }
265
+ if ($this->container['orderDate'] === null) {
266
+ $invalid_properties[] = "'orderDate' can't be null";
267
+ }
268
+ if (!is_null($this->container['channelCustomerNo']) && (strlen($this->container['channelCustomerNo']) > 50)) {
269
+ $invalid_properties[] = "invalid value for 'channelCustomerNo', the character length must be smaller than or equal to 50.";
270
+ }
271
+
272
+ if (!is_null($this->container['channelCustomerNo']) && (strlen($this->container['channelCustomerNo']) < 0)) {
273
+ $invalid_properties[] = "invalid value for 'channelCustomerNo', the character length must be bigger than or equal to 0.";
274
+ }
275
+
276
+ if ($this->container['billingAddress'] === null) {
277
+ $invalid_properties[] = "'billingAddress' can't be null";
278
+ }
279
+ if ($this->container['shippingAddress'] === null) {
280
+ $invalid_properties[] = "'shippingAddress' can't be null";
281
+ }
282
+ return $invalid_properties;
283
+ }
284
+
285
+ /**
286
+ * validate all the properties in the model
287
+ * return true if all passed
288
+ *
289
+ * @return bool True if all properties are valid
290
+ */
291
+ public function valid()
292
+ {
293
+
294
+ if ($this->container['channelOrderNo'] === null) {
295
+ return false;
296
+ }
297
+ if (strlen($this->container['channelOrderNo']) > 50) {
298
+ return false;
299
+ }
300
+ if (strlen($this->container['channelOrderNo']) < 0) {
301
+ return false;
302
+ }
303
+ if ($this->container['lines'] === null) {
304
+ return false;
305
+ }
306
+ if (strlen($this->container['phone']) > 20) {
307
+ return false;
308
+ }
309
+ if (strlen($this->container['phone']) < 0) {
310
+ return false;
311
+ }
312
+ if ($this->container['email'] === null) {
313
+ return false;
314
+ }
315
+ if (strlen($this->container['email']) > 250) {
316
+ return false;
317
+ }
318
+ if (strlen($this->container['email']) < 0) {
319
+ return false;
320
+ }
321
+ if (strlen($this->container['companyRegistrationNo']) > 50) {
322
+ return false;
323
+ }
324
+ if (strlen($this->container['companyRegistrationNo']) < 0) {
325
+ return false;
326
+ }
327
+ if (strlen($this->container['vatNo']) > 50) {
328
+ return false;
329
+ }
330
+ if (strlen($this->container['vatNo']) < 0) {
331
+ return false;
332
+ }
333
+ if ($this->container['paymentMethod'] === null) {
334
+ return false;
335
+ }
336
+ if (strlen($this->container['paymentMethod']) > 50) {
337
+ return false;
338
+ }
339
+ if (strlen($this->container['paymentMethod']) < 0) {
340
+ return false;
341
+ }
342
+ if ($this->container['shippingCostsInclVat'] === null) {
343
+ return false;
344
+ }
345
+ if ($this->container['currencyCode'] === null) {
346
+ return false;
347
+ }
348
+ if ($this->container['orderDate'] === null) {
349
+ return false;
350
+ }
351
+ if (strlen($this->container['channelCustomerNo']) > 50) {
352
+ return false;
353
+ }
354
+ if (strlen($this->container['channelCustomerNo']) < 0) {
355
+ return false;
356
+ }
357
+ if ($this->container['billingAddress'] === null) {
358
+ return false;
359
+ }
360
+ if ($this->container['shippingAddress'] === null) {
361
+ return false;
362
+ }
363
+ return true;
364
+ }
365
+
366
+
367
+ /**
368
+ * Gets channelOrderNo
369
+ * @return string
370
+ */
371
+ public function getChannelOrderNo()
372
+ {
373
+ return $this->container['channelOrderNo'];
374
+ }
375
+
376
+ /**
377
+ * Sets channelOrderNo
378
+ * @param string $channelOrderNo The unique order reference used by the Channel
379
+ * @return $this
380
+ */
381
+ public function setChannelOrderNo($channelOrderNo)
382
+ {
383
+ if ((strlen($channelOrderNo) > 50)) {
384
+ throw new \InvalidArgumentException('invalid length for $channelOrderNo when calling ChannelOrderRequest., must be smaller than or equal to 50.');
385
+ }
386
+ if ((strlen($channelOrderNo) < 0)) {
387
+ throw new \InvalidArgumentException('invalid length for $channelOrderNo when calling ChannelOrderRequest., must be bigger than or equal to 0.');
388
+ }
389
+
390
+ $this->container['channelOrderNo'] = $channelOrderNo;
391
+
392
+ return $this;
393
+ }
394
+
395
+ /**
396
+ * Gets lines
397
+ * @return \ChannelEngine\ApiClient\Model\ChannelOrderLineRequest[]
398
+ */
399
+ public function getLines()
400
+ {
401
+ return $this->container['lines'];
402
+ }
403
+
404
+ /**
405
+ * Sets lines
406
+ * @param \ChannelEngine\ApiClient\Model\ChannelOrderLineRequest[] $lines The order lines
407
+ * @return $this
408
+ */
409
+ public function setLines($lines)
410
+ {
411
+ $this->container['lines'] = $lines;
412
+
413
+ return $this;
414
+ }
415
+
416
+ /**
417
+ * Gets phone
418
+ * @return string
419
+ */
420
+ public function getPhone()
421
+ {
422
+ return $this->container['phone'];
423
+ }
424
+
425
+ /**
426
+ * Sets phone
427
+ * @param string $phone
428
+ * @return $this
429
+ */
430
+ public function setPhone($phone)
431
+ {
432
+ if (!is_null($phone) && (strlen($phone) > 20)) {
433
+ throw new \InvalidArgumentException('invalid length for $phone when calling ChannelOrderRequest., must be smaller than or equal to 20.');
434
+ }
435
+ if (!is_null($phone) && (strlen($phone) < 0)) {
436
+ throw new \InvalidArgumentException('invalid length for $phone when calling ChannelOrderRequest., must be bigger than or equal to 0.');
437
+ }
438
+
439
+ $this->container['phone'] = $phone;
440
+
441
+ return $this;
442
+ }
443
+
444
+ /**
445
+ * Gets email
446
+ * @return string
447
+ */
448
+ public function getEmail()
449
+ {
450
+ return $this->container['email'];
451
+ }
452
+
453
+ /**
454
+ * Sets email
455
+ * @param string $email
456
+ * @return $this
457
+ */
458
+ public function setEmail($email)
459
+ {
460
+ if ((strlen($email) > 250)) {
461
+ throw new \InvalidArgumentException('invalid length for $email when calling ChannelOrderRequest., must be smaller than or equal to 250.');
462
+ }
463
+ if ((strlen($email) < 0)) {
464
+ throw new \InvalidArgumentException('invalid length for $email when calling ChannelOrderRequest., must be bigger than or equal to 0.');
465
+ }
466
+
467
+ $this->container['email'] = $email;
468
+
469
+ return $this;
470
+ }
471
+
472
+ /**
473
+ * Gets companyRegistrationNo
474
+ * @return string
475
+ */
476
+ public function getCompanyRegistrationNo()
477
+ {
478
+ return $this->container['companyRegistrationNo'];
479
+ }
480
+
481
+ /**
482
+ * Sets companyRegistrationNo
483
+ * @param string $companyRegistrationNo
484
+ * @return $this
485
+ */
486
+ public function setCompanyRegistrationNo($companyRegistrationNo)
487
+ {
488
+ if (!is_null($companyRegistrationNo) && (strlen($companyRegistrationNo) > 50)) {
489
+ throw new \InvalidArgumentException('invalid length for $companyRegistrationNo when calling ChannelOrderRequest., must be smaller than or equal to 50.');
490
+ }
491
+ if (!is_null($companyRegistrationNo) && (strlen($companyRegistrationNo) < 0)) {
492
+ throw new \InvalidArgumentException('invalid length for $companyRegistrationNo when calling ChannelOrderRequest., must be bigger than or equal to 0.');
493
+ }
494
+
495
+ $this->container['companyRegistrationNo'] = $companyRegistrationNo;
496
+
497
+ return $this;
498
+ }
499
+
500
+ /**
501
+ * Gets vatNo
502
+ * @return string
503
+ */
504
+ public function getVatNo()
505
+ {
506
+ return $this->container['vatNo'];
507
+ }
508
+
509
+ /**
510
+ * Sets vatNo
511
+ * @param string $vatNo
512
+ * @return $this
513
+ */
514
+ public function setVatNo($vatNo)
515
+ {
516
+ if (!is_null($vatNo) && (strlen($vatNo) > 50)) {
517
+ throw new \InvalidArgumentException('invalid length for $vatNo when calling ChannelOrderRequest., must be smaller than or equal to 50.');
518
+ }
519
+ if (!is_null($vatNo) && (strlen($vatNo) < 0)) {
520
+ throw new \InvalidArgumentException('invalid length for $vatNo when calling ChannelOrderRequest., must be bigger than or equal to 0.');
521
+ }
522
+
523
+ $this->container['vatNo'] = $vatNo;
524
+
525
+ return $this;
526
+ }
527
+
528
+ /**
529
+ * Gets paymentMethod
530
+ * @return string
531
+ */
532
+ public function getPaymentMethod()
533
+ {
534
+ return $this->container['paymentMethod'];
535
+ }
536
+
537
+ /**
538
+ * Sets paymentMethod
539
+ * @param string $paymentMethod
540
+ * @return $this
541
+ */
542
+ public function setPaymentMethod($paymentMethod)
543
+ {
544
+ if ((strlen($paymentMethod) > 50)) {
545
+ throw new \InvalidArgumentException('invalid length for $paymentMethod when calling ChannelOrderRequest., must be smaller than or equal to 50.');
546
+ }
547
+ if ((strlen($paymentMethod) < 0)) {
548
+ throw new \InvalidArgumentException('invalid length for $paymentMethod when calling ChannelOrderRequest., must be bigger than or equal to 0.');
549
+ }
550
+
551
+ $this->container['paymentMethod'] = $paymentMethod;
552
+
553
+ return $this;
554
+ }
555
+
556
+ /**
557
+ * Gets shippingCostsInclVat
558
+ * @return double
559
+ */
560
+ public function getShippingCostsInclVat()
561
+ {
562
+ return $this->container['shippingCostsInclVat'];
563
+ }
564
+
565
+ /**
566
+ * Sets shippingCostsInclVat
567
+ * @param double $shippingCostsInclVat The shipping fee including VAT (in the tenant's base currency calculated using the exchange rate at the time of ordering).
568
+ * @return $this
569
+ */
570
+ public function setShippingCostsInclVat($shippingCostsInclVat)
571
+ {
572
+ $this->container['shippingCostsInclVat'] = $shippingCostsInclVat;
573
+
574
+ return $this;
575
+ }
576
+
577
+ /**
578
+ * Gets currencyCode
579
+ * @return string
580
+ */
581
+ public function getCurrencyCode()
582
+ {
583
+ return $this->container['currencyCode'];
584
+ }
585
+
586
+ /**
587
+ * Sets currencyCode
588
+ * @param string $currencyCode
589
+ * @return $this
590
+ */
591
+ public function setCurrencyCode($currencyCode)
592
+ {
593
+ $this->container['currencyCode'] = $currencyCode;
594
+
595
+ return $this;
596
+ }
597
+
598
+ /**
599
+ * Gets orderDate
600
+ * @return \DateTime
601
+ */
602
+ public function getOrderDate()
603
+ {
604
+ return $this->container['orderDate'];
605
+ }
606
+
607
+ /**
608
+ * Sets orderDate
609
+ * @param \DateTime $orderDate
610
+ * @return $this
611
+ */
612
+ public function setOrderDate($orderDate)
613
+ {
614
+ $this->container['orderDate'] = $orderDate;
615
+
616
+ return $this;
617
+ }
618
+
619
+ /**
620
+ * Gets channelCustomerNo
621
+ * @return string
622
+ */
623
+ public function getChannelCustomerNo()
624
+ {
625
+ return $this->container['channelCustomerNo'];
626
+ }
627
+
628
+ /**
629
+ * Sets channelCustomerNo
630
+ * @param string $channelCustomerNo
631
+ * @return $this
632
+ */
633
+ public function setChannelCustomerNo($channelCustomerNo)
634
+ {
635
+ if (!is_null($channelCustomerNo) && (strlen($channelCustomerNo) > 50)) {
636
+ throw new \InvalidArgumentException('invalid length for $channelCustomerNo when calling ChannelOrderRequest., must be smaller than or equal to 50.');
637
+ }
638
+ if (!is_null($channelCustomerNo) && (strlen($channelCustomerNo) < 0)) {
639
+ throw new \InvalidArgumentException('invalid length for $channelCustomerNo when calling ChannelOrderRequest., must be bigger than or equal to 0.');
640
+ }
641
+
642
+ $this->container['channelCustomerNo'] = $channelCustomerNo;
643
+
644
+ return $this;
645
+ }
646
+
647
+ /**
648
+ * Gets billingAddress
649
+ * @return \ChannelEngine\ApiClient\Model\EntitiesAddressModels
650
+ */
651
+ public function getBillingAddress()
652
+ {
653
+ return $this->container['billingAddress'];
654
+ }
655
+
656
+ /**
657
+ * Sets billingAddress
658
+ * @param \ChannelEngine\ApiClient\Model\EntitiesAddressModels $billingAddress
659
+ * @return $this
660
+ */
661
+ public function setBillingAddress($billingAddress)
662
+ {
663
+ $this->container['billingAddress'] = $billingAddress;
664
+
665
+ return $this;
666
+ }
667
+
668
+ /**
669
+ * Gets shippingAddress
670
+ * @return \ChannelEngine\ApiClient\Model\EntitiesAddressModels
671
+ */
672
+ public function getShippingAddress()
673
+ {
674
+ return $this->container['shippingAddress'];
675
+ }
676
+
677
+ /**
678
+ * Sets shippingAddress
679
+ * @param \ChannelEngine\ApiClient\Model\EntitiesAddressModels $shippingAddress
680
+ * @return $this
681
+ */
682
+ public function setShippingAddress($shippingAddress)
683
+ {
684
+ $this->container['shippingAddress'] = $shippingAddress;
685
+
686
+ return $this;
687
+ }
688
+
689
+ /**
690
+ * Gets extraData
691
+ * @return map[string,string]
692
+ */
693
+ public function getExtraData()
694
+ {
695
+ return $this->container['extraData'];
696
+ }
697
+
698
+ /**
699
+ * Sets extraData
700
+ * @param map[string,string] $extraData
701
+ * @return $this
702
+ */
703
+ public function setExtraData($extraData)
704
+ {
705
+ $this->container['extraData'] = $extraData;
706
+
707
+ return $this;
708
+ }
709
+ /**
710
+ * Returns true if offset exists. False otherwise.
711
+ * @param integer $offset Offset
712
+ * @return boolean
713
+ */
714
+ public function offsetExists($offset)
715
+ {
716
+ return isset($this->container[$offset]);
717
+ }
718
+
719
+ /**
720
+ * Gets offset.
721
+ * @param integer $offset Offset
722
+ * @return mixed
723
+ */
724
+ public function offsetGet($offset)
725
+ {
726
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
727
+ }
728
+
729
+ /**
730
+ * Sets value based on offset.
731
+ * @param integer $offset Offset
732
+ * @param mixed $value Value to be set
733
+ * @return void
734
+ */
735
+ public function offsetSet($offset, $value)
736
+ {
737
+ if (is_null($offset)) {
738
+ $this->container[] = $value;
739
+ } else {
740
+ $this->container[$offset] = $value;
741
+ }
742
+ }
743
+
744
+ /**
745
+ * Unsets offset.
746
+ * @param integer $offset Offset
747
+ * @return void
748
+ */
749
+ public function offsetUnset($offset)
750
+ {
751
+ unset($this->container[$offset]);
752
+ }
753
+
754
+ /**
755
+ * Gets the string presentation of the object
756
+ * @return string
757
+ */
758
+ public function __toString()
759
+ {
760
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
761
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
762
+ }
763
+
764
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
765
+ }
766
+ }
767
+
768
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ChannelProcessedChangesRequest.php ADDED
@@ -0,0 +1,281 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ChannelProcessedChangesRequest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * ChannelProcessedChangesRequest Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ChannelProcessedChangesRequest implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'ChannelProcessedChangesRequest';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'created' => '\ChannelEngine\ApiClient\Model\ChannelReferencesRequest[]',
58
+ 'updated' => 'string[]',
59
+ 'removed' => 'string[]'
60
+ ];
61
+
62
+ public static function swaggerTypes()
63
+ {
64
+ return self::$swaggerTypes;
65
+ }
66
+
67
+ /**
68
+ * Array of attributes where the key is the local name, and the value is the original name
69
+ * @var string[]
70
+ */
71
+ protected static $attributeMap = [
72
+ 'created' => 'Created',
73
+ 'updated' => 'Updated',
74
+ 'removed' => 'Removed'
75
+ ];
76
+
77
+
78
+ /**
79
+ * Array of attributes to setter functions (for deserialization of responses)
80
+ * @var string[]
81
+ */
82
+ protected static $setters = [
83
+ 'created' => 'setCreated',
84
+ 'updated' => 'setUpdated',
85
+ 'removed' => 'setRemoved'
86
+ ];
87
+
88
+
89
+ /**
90
+ * Array of attributes to getter functions (for serialization of requests)
91
+ * @var string[]
92
+ */
93
+ protected static $getters = [
94
+ 'created' => 'getCreated',
95
+ 'updated' => 'getUpdated',
96
+ 'removed' => 'getRemoved'
97
+ ];
98
+
99
+ public static function attributeMap()
100
+ {
101
+ return self::$attributeMap;
102
+ }
103
+
104
+ public static function setters()
105
+ {
106
+ return self::$setters;
107
+ }
108
+
109
+ public static function getters()
110
+ {
111
+ return self::$getters;
112
+ }
113
+
114
+
115
+
116
+
117
+
118
+ /**
119
+ * Associative array for storing property values
120
+ * @var mixed[]
121
+ */
122
+ protected $container = [];
123
+
124
+ /**
125
+ * Constructor
126
+ * @param mixed[] $data Associated array of property values initializing the model
127
+ */
128
+ public function __construct(array $data = null)
129
+ {
130
+ $this->container['created'] = isset($data['created']) ? $data['created'] : null;
131
+ $this->container['updated'] = isset($data['updated']) ? $data['updated'] : null;
132
+ $this->container['removed'] = isset($data['removed']) ? $data['removed'] : null;
133
+ }
134
+
135
+ /**
136
+ * show all the invalid properties with reasons.
137
+ *
138
+ * @return array invalid properties with reasons
139
+ */
140
+ public function listInvalidProperties()
141
+ {
142
+ $invalid_properties = [];
143
+
144
+ return $invalid_properties;
145
+ }
146
+
147
+ /**
148
+ * validate all the properties in the model
149
+ * return true if all passed
150
+ *
151
+ * @return bool True if all properties are valid
152
+ */
153
+ public function valid()
154
+ {
155
+
156
+ return true;
157
+ }
158
+
159
+
160
+ /**
161
+ * Gets created
162
+ * @return \ChannelEngine\ApiClient\Model\ChannelReferencesRequest[]
163
+ */
164
+ public function getCreated()
165
+ {
166
+ return $this->container['created'];
167
+ }
168
+
169
+ /**
170
+ * Sets created
171
+ * @param \ChannelEngine\ApiClient\Model\ChannelReferencesRequest[] $created A collection of pairs of merchant and channel references of the products which are successfully created. The channel references are saved such that in subsequent calls these can be used instead of the merchant references.
172
+ * @return $this
173
+ */
174
+ public function setCreated($created)
175
+ {
176
+ $this->container['created'] = $created;
177
+
178
+ return $this;
179
+ }
180
+
181
+ /**
182
+ * Gets updated
183
+ * @return string[]
184
+ */
185
+ public function getUpdated()
186
+ {
187
+ return $this->container['updated'];
188
+ }
189
+
190
+ /**
191
+ * Sets updated
192
+ * @param string[] $updated The channel references of the products which are successfully updated.
193
+ * @return $this
194
+ */
195
+ public function setUpdated($updated)
196
+ {
197
+ $this->container['updated'] = $updated;
198
+
199
+ return $this;
200
+ }
201
+
202
+ /**
203
+ * Gets removed
204
+ * @return string[]
205
+ */
206
+ public function getRemoved()
207
+ {
208
+ return $this->container['removed'];
209
+ }
210
+
211
+ /**
212
+ * Sets removed
213
+ * @param string[] $removed The channel references of the products which are successfully removed.
214
+ * @return $this
215
+ */
216
+ public function setRemoved($removed)
217
+ {
218
+ $this->container['removed'] = $removed;
219
+
220
+ return $this;
221
+ }
222
+ /**
223
+ * Returns true if offset exists. False otherwise.
224
+ * @param integer $offset Offset
225
+ * @return boolean
226
+ */
227
+ public function offsetExists($offset)
228
+ {
229
+ return isset($this->container[$offset]);
230
+ }
231
+
232
+ /**
233
+ * Gets offset.
234
+ * @param integer $offset Offset
235
+ * @return mixed
236
+ */
237
+ public function offsetGet($offset)
238
+ {
239
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
240
+ }
241
+
242
+ /**
243
+ * Sets value based on offset.
244
+ * @param integer $offset Offset
245
+ * @param mixed $value Value to be set
246
+ * @return void
247
+ */
248
+ public function offsetSet($offset, $value)
249
+ {
250
+ if (is_null($offset)) {
251
+ $this->container[] = $value;
252
+ } else {
253
+ $this->container[$offset] = $value;
254
+ }
255
+ }
256
+
257
+ /**
258
+ * Unsets offset.
259
+ * @param integer $offset Offset
260
+ * @return void
261
+ */
262
+ public function offsetUnset($offset)
263
+ {
264
+ unset($this->container[$offset]);
265
+ }
266
+
267
+ /**
268
+ * Gets the string presentation of the object
269
+ * @return string
270
+ */
271
+ public function __toString()
272
+ {
273
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
274
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
275
+ }
276
+
277
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
278
+ }
279
+ }
280
+
281
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ChannelProductChangesResponse.php ADDED
@@ -0,0 +1,281 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ChannelProductChangesResponse
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * ChannelProductChangesResponse Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ChannelProductChangesResponse implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'ChannelProductChangesResponse';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'toBeCreated' => '\ChannelEngine\ApiClient\Model\ChannelProductResponse[]',
58
+ 'toBeUpdated' => '\ChannelEngine\ApiClient\Model\ChannelProductResponse[]',
59
+ 'toBeRemoved' => 'string[]'
60
+ ];
61
+
62
+ public static function swaggerTypes()
63
+ {
64
+ return self::$swaggerTypes;
65
+ }
66
+
67
+ /**
68
+ * Array of attributes where the key is the local name, and the value is the original name
69
+ * @var string[]
70
+ */
71
+ protected static $attributeMap = [
72
+ 'toBeCreated' => 'ToBeCreated',
73
+ 'toBeUpdated' => 'ToBeUpdated',
74
+ 'toBeRemoved' => 'ToBeRemoved'
75
+ ];
76
+
77
+
78
+ /**
79
+ * Array of attributes to setter functions (for deserialization of responses)
80
+ * @var string[]
81
+ */
82
+ protected static $setters = [
83
+ 'toBeCreated' => 'setToBeCreated',
84
+ 'toBeUpdated' => 'setToBeUpdated',
85
+ 'toBeRemoved' => 'setToBeRemoved'
86
+ ];
87
+
88
+
89
+ /**
90
+ * Array of attributes to getter functions (for serialization of requests)
91
+ * @var string[]
92
+ */
93
+ protected static $getters = [
94
+ 'toBeCreated' => 'getToBeCreated',
95
+ 'toBeUpdated' => 'getToBeUpdated',
96
+ 'toBeRemoved' => 'getToBeRemoved'
97
+ ];
98
+
99
+ public static function attributeMap()
100
+ {
101
+ return self::$attributeMap;
102
+ }
103
+
104
+ public static function setters()
105
+ {
106
+ return self::$setters;
107
+ }
108
+
109
+ public static function getters()
110
+ {
111
+ return self::$getters;
112
+ }
113
+
114
+
115
+
116
+
117
+
118
+ /**
119
+ * Associative array for storing property values
120
+ * @var mixed[]
121
+ */
122
+ protected $container = [];
123
+
124
+ /**
125
+ * Constructor
126
+ * @param mixed[] $data Associated array of property values initializing the model
127
+ */
128
+ public function __construct(array $data = null)
129
+ {
130
+ $this->container['toBeCreated'] = isset($data['toBeCreated']) ? $data['toBeCreated'] : null;
131
+ $this->container['toBeUpdated'] = isset($data['toBeUpdated']) ? $data['toBeUpdated'] : null;
132
+ $this->container['toBeRemoved'] = isset($data['toBeRemoved']) ? $data['toBeRemoved'] : null;
133
+ }
134
+
135
+ /**
136
+ * show all the invalid properties with reasons.
137
+ *
138
+ * @return array invalid properties with reasons
139
+ */
140
+ public function listInvalidProperties()
141
+ {
142
+ $invalid_properties = [];
143
+
144
+ return $invalid_properties;
145
+ }
146
+
147
+ /**
148
+ * validate all the properties in the model
149
+ * return true if all passed
150
+ *
151
+ * @return bool True if all properties are valid
152
+ */
153
+ public function valid()
154
+ {
155
+
156
+ return true;
157
+ }
158
+
159
+
160
+ /**
161
+ * Gets toBeCreated
162
+ * @return \ChannelEngine\ApiClient\Model\ChannelProductResponse[]
163
+ */
164
+ public function getToBeCreated()
165
+ {
166
+ return $this->container['toBeCreated'];
167
+ }
168
+
169
+ /**
170
+ * Sets toBeCreated
171
+ * @param \ChannelEngine\ApiClient\Model\ChannelProductResponse[] $toBeCreated
172
+ * @return $this
173
+ */
174
+ public function setToBeCreated($toBeCreated)
175
+ {
176
+ $this->container['toBeCreated'] = $toBeCreated;
177
+
178
+ return $this;
179
+ }
180
+
181
+ /**
182
+ * Gets toBeUpdated
183
+ * @return \ChannelEngine\ApiClient\Model\ChannelProductResponse[]
184
+ */
185
+ public function getToBeUpdated()
186
+ {
187
+ return $this->container['toBeUpdated'];
188
+ }
189
+
190
+ /**
191
+ * Sets toBeUpdated
192
+ * @param \ChannelEngine\ApiClient\Model\ChannelProductResponse[] $toBeUpdated
193
+ * @return $this
194
+ */
195
+ public function setToBeUpdated($toBeUpdated)
196
+ {
197
+ $this->container['toBeUpdated'] = $toBeUpdated;
198
+
199
+ return $this;
200
+ }
201
+
202
+ /**
203
+ * Gets toBeRemoved
204
+ * @return string[]
205
+ */
206
+ public function getToBeRemoved()
207
+ {
208
+ return $this->container['toBeRemoved'];
209
+ }
210
+
211
+ /**
212
+ * Sets toBeRemoved
213
+ * @param string[] $toBeRemoved
214
+ * @return $this
215
+ */
216
+ public function setToBeRemoved($toBeRemoved)
217
+ {
218
+ $this->container['toBeRemoved'] = $toBeRemoved;
219
+
220
+ return $this;
221
+ }
222
+ /**
223
+ * Returns true if offset exists. False otherwise.
224
+ * @param integer $offset Offset
225
+ * @return boolean
226
+ */
227
+ public function offsetExists($offset)
228
+ {
229
+ return isset($this->container[$offset]);
230
+ }
231
+
232
+ /**
233
+ * Gets offset.
234
+ * @param integer $offset Offset
235
+ * @return mixed
236
+ */
237
+ public function offsetGet($offset)
238
+ {
239
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
240
+ }
241
+
242
+ /**
243
+ * Sets value based on offset.
244
+ * @param integer $offset Offset
245
+ * @param mixed $value Value to be set
246
+ * @return void
247
+ */
248
+ public function offsetSet($offset, $value)
249
+ {
250
+ if (is_null($offset)) {
251
+ $this->container[] = $value;
252
+ } else {
253
+ $this->container[$offset] = $value;
254
+ }
255
+ }
256
+
257
+ /**
258
+ * Unsets offset.
259
+ * @param integer $offset Offset
260
+ * @return void
261
+ */
262
+ public function offsetUnset($offset)
263
+ {
264
+ unset($this->container[$offset]);
265
+ }
266
+
267
+ /**
268
+ * Gets the string presentation of the object
269
+ * @return string
270
+ */
271
+ public function __toString()
272
+ {
273
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
274
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
275
+ }
276
+
277
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
278
+ }
279
+ }
280
+
281
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ChannelProductResponse.php ADDED
@@ -0,0 +1,778 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ChannelProductResponse
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * ChannelProductResponse Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ChannelProductResponse implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'ChannelProductResponse';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'id' => 'int',
58
+ 'parentChannelProductNo' => 'string',
59
+ 'mappedFields' => 'map[string,string]',
60
+ 'name' => 'string',
61
+ 'description' => 'string',
62
+ 'brand' => 'string',
63
+ 'size' => 'string',
64
+ 'color' => 'string',
65
+ 'ean' => 'string',
66
+ 'manufacturerProductNumber' => 'string',
67
+ 'stock' => 'int',
68
+ 'price' => 'double',
69
+ 'mSRP' => 'double',
70
+ 'purchasePrice' => 'double',
71
+ 'vatRateType' => 'string',
72
+ 'shippingCost' => 'double',
73
+ 'shippingTime' => 'string',
74
+ 'url' => 'string',
75
+ 'imageUrl' => 'string',
76
+ 'categoryTrail' => 'string',
77
+ 'extraData' => '\ChannelEngine\ApiClient\Model\ExtraDataItem[]'
78
+ ];
79
+
80
+ public static function swaggerTypes()
81
+ {
82
+ return self::$swaggerTypes;
83
+ }
84
+
85
+ /**
86
+ * Array of attributes where the key is the local name, and the value is the original name
87
+ * @var string[]
88
+ */
89
+ protected static $attributeMap = [
90
+ 'id' => 'Id',
91
+ 'parentChannelProductNo' => 'ParentChannelProductNo',
92
+ 'mappedFields' => 'MappedFields',
93
+ 'name' => 'Name',
94
+ 'description' => 'Description',
95
+ 'brand' => 'Brand',
96
+ 'size' => 'Size',
97
+ 'color' => 'Color',
98
+ 'ean' => 'Ean',
99
+ 'manufacturerProductNumber' => 'ManufacturerProductNumber',
100
+ 'stock' => 'Stock',
101
+ 'price' => 'Price',
102
+ 'mSRP' => 'MSRP',
103
+ 'purchasePrice' => 'PurchasePrice',
104
+ 'vatRateType' => 'VatRateType',
105
+ 'shippingCost' => 'ShippingCost',
106
+ 'shippingTime' => 'ShippingTime',
107
+ 'url' => 'Url',
108
+ 'imageUrl' => 'ImageUrl',
109
+ 'categoryTrail' => 'CategoryTrail',
110
+ 'extraData' => 'ExtraData'
111
+ ];
112
+
113
+
114
+ /**
115
+ * Array of attributes to setter functions (for deserialization of responses)
116
+ * @var string[]
117
+ */
118
+ protected static $setters = [
119
+ 'id' => 'setId',
120
+ 'parentChannelProductNo' => 'setParentChannelProductNo',
121
+ 'mappedFields' => 'setMappedFields',
122
+ 'name' => 'setName',
123
+ 'description' => 'setDescription',
124
+ 'brand' => 'setBrand',
125
+ 'size' => 'setSize',
126
+ 'color' => 'setColor',
127
+ 'ean' => 'setEan',
128
+ 'manufacturerProductNumber' => 'setManufacturerProductNumber',
129
+ 'stock' => 'setStock',
130
+ 'price' => 'setPrice',
131
+ 'mSRP' => 'setMSRP',
132
+ 'purchasePrice' => 'setPurchasePrice',
133
+ 'vatRateType' => 'setVatRateType',
134
+ 'shippingCost' => 'setShippingCost',
135
+ 'shippingTime' => 'setShippingTime',
136
+ 'url' => 'setUrl',
137
+ 'imageUrl' => 'setImageUrl',
138
+ 'categoryTrail' => 'setCategoryTrail',
139
+ 'extraData' => 'setExtraData'
140
+ ];
141
+
142
+
143
+ /**
144
+ * Array of attributes to getter functions (for serialization of requests)
145
+ * @var string[]
146
+ */
147
+ protected static $getters = [
148
+ 'id' => 'getId',
149
+ 'parentChannelProductNo' => 'getParentChannelProductNo',
150
+ 'mappedFields' => 'getMappedFields',
151
+ 'name' => 'getName',
152
+ 'description' => 'getDescription',
153
+ 'brand' => 'getBrand',
154
+ 'size' => 'getSize',
155
+ 'color' => 'getColor',
156
+ 'ean' => 'getEan',
157
+ 'manufacturerProductNumber' => 'getManufacturerProductNumber',
158
+ 'stock' => 'getStock',
159
+ 'price' => 'getPrice',
160
+ 'mSRP' => 'getMSRP',
161
+ 'purchasePrice' => 'getPurchasePrice',
162
+ 'vatRateType' => 'getVatRateType',
163
+ 'shippingCost' => 'getShippingCost',
164
+ 'shippingTime' => 'getShippingTime',
165
+ 'url' => 'getUrl',
166
+ 'imageUrl' => 'getImageUrl',
167
+ 'categoryTrail' => 'getCategoryTrail',
168
+ 'extraData' => 'getExtraData'
169
+ ];
170
+
171
+ public static function attributeMap()
172
+ {
173
+ return self::$attributeMap;
174
+ }
175
+
176
+ public static function setters()
177
+ {
178
+ return self::$setters;
179
+ }
180
+
181
+ public static function getters()
182
+ {
183
+ return self::$getters;
184
+ }
185
+
186
+ const VAT_RATE_TYPE_STANDARD = 'STANDARD';
187
+ const VAT_RATE_TYPE_REDUCED = 'REDUCED';
188
+ const VAT_RATE_TYPE_SUPER_REDUCED = 'SUPER_REDUCED';
189
+
190
+
191
+
192
+ /**
193
+ * Gets allowable values of the enum
194
+ * @return string[]
195
+ */
196
+ public function getVatRateTypeAllowableValues()
197
+ {
198
+ return [
199
+ self::VAT_RATE_TYPE_STANDARD,
200
+ self::VAT_RATE_TYPE_REDUCED,
201
+ self::VAT_RATE_TYPE_SUPER_REDUCED,
202
+ ];
203
+ }
204
+
205
+
206
+ /**
207
+ * Associative array for storing property values
208
+ * @var mixed[]
209
+ */
210
+ protected $container = [];
211
+
212
+ /**
213
+ * Constructor
214
+ * @param mixed[] $data Associated array of property values initializing the model
215
+ */
216
+ public function __construct(array $data = null)
217
+ {
218
+ $this->container['id'] = isset($data['id']) ? $data['id'] : null;
219
+ $this->container['parentChannelProductNo'] = isset($data['parentChannelProductNo']) ? $data['parentChannelProductNo'] : null;
220
+ $this->container['mappedFields'] = isset($data['mappedFields']) ? $data['mappedFields'] : null;
221
+ $this->container['name'] = isset($data['name']) ? $data['name'] : null;
222
+ $this->container['description'] = isset($data['description']) ? $data['description'] : null;
223
+ $this->container['brand'] = isset($data['brand']) ? $data['brand'] : null;
224
+ $this->container['size'] = isset($data['size']) ? $data['size'] : null;
225
+ $this->container['color'] = isset($data['color']) ? $data['color'] : null;
226
+ $this->container['ean'] = isset($data['ean']) ? $data['ean'] : null;
227
+ $this->container['manufacturerProductNumber'] = isset($data['manufacturerProductNumber']) ? $data['manufacturerProductNumber'] : null;
228
+ $this->container['stock'] = isset($data['stock']) ? $data['stock'] : null;
229
+ $this->container['price'] = isset($data['price']) ? $data['price'] : null;
230
+ $this->container['mSRP'] = isset($data['mSRP']) ? $data['mSRP'] : null;
231
+ $this->container['purchasePrice'] = isset($data['purchasePrice']) ? $data['purchasePrice'] : null;
232
+ $this->container['vatRateType'] = isset($data['vatRateType']) ? $data['vatRateType'] : null;
233
+ $this->container['shippingCost'] = isset($data['shippingCost']) ? $data['shippingCost'] : null;
234
+ $this->container['shippingTime'] = isset($data['shippingTime']) ? $data['shippingTime'] : null;
235
+ $this->container['url'] = isset($data['url']) ? $data['url'] : null;
236
+ $this->container['imageUrl'] = isset($data['imageUrl']) ? $data['imageUrl'] : null;
237
+ $this->container['categoryTrail'] = isset($data['categoryTrail']) ? $data['categoryTrail'] : null;
238
+ $this->container['extraData'] = isset($data['extraData']) ? $data['extraData'] : null;
239
+ }
240
+
241
+ /**
242
+ * show all the invalid properties with reasons.
243
+ *
244
+ * @return array invalid properties with reasons
245
+ */
246
+ public function listInvalidProperties()
247
+ {
248
+ $invalid_properties = [];
249
+
250
+ $allowed_values = ["STANDARD", "REDUCED", "SUPER_REDUCED"];
251
+ if (!in_array($this->container['vatRateType'], $allowed_values)) {
252
+ $invalid_properties[] = "invalid value for 'vatRateType', must be one of 'STANDARD', 'REDUCED', 'SUPER_REDUCED'.";
253
+ }
254
+
255
+ return $invalid_properties;
256
+ }
257
+
258
+ /**
259
+ * validate all the properties in the model
260
+ * return true if all passed
261
+ *
262
+ * @return bool True if all properties are valid
263
+ */
264
+ public function valid()
265
+ {
266
+
267
+ $allowed_values = ["STANDARD", "REDUCED", "SUPER_REDUCED"];
268
+ if (!in_array($this->container['vatRateType'], $allowed_values)) {
269
+ return false;
270
+ }
271
+ return true;
272
+ }
273
+
274
+
275
+ /**
276
+ * Gets id
277
+ * @return int
278
+ */
279
+ public function getId()
280
+ {
281
+ return $this->container['id'];
282
+ }
283
+
284
+ /**
285
+ * Sets id
286
+ * @param int $id An unique identifier which ChannelEngine uses to identify the product. Needed in the call 'POST /v2/products/data'
287
+ * @return $this
288
+ */
289
+ public function setId($id)
290
+ {
291
+ $this->container['id'] = $id;
292
+
293
+ return $this;
294
+ }
295
+
296
+ /**
297
+ * Gets parentChannelProductNo
298
+ * @return string
299
+ */
300
+ public function getParentChannelProductNo()
301
+ {
302
+ return $this->container['parentChannelProductNo'];
303
+ }
304
+
305
+ /**
306
+ * Sets parentChannelProductNo
307
+ * @param string $parentChannelProductNo
308
+ * @return $this
309
+ */
310
+ public function setParentChannelProductNo($parentChannelProductNo)
311
+ {
312
+ $this->container['parentChannelProductNo'] = $parentChannelProductNo;
313
+
314
+ return $this;
315
+ }
316
+
317
+ /**
318
+ * Gets mappedFields
319
+ * @return map[string,string]
320
+ */
321
+ public function getMappedFields()
322
+ {
323
+ return $this->container['mappedFields'];
324
+ }
325
+
326
+ /**
327
+ * Sets mappedFields
328
+ * @param map[string,string] $mappedFields A channel can require certain fields to be available. The channel can provide ChannelEngine with this fields after which the merchants will be able to fill in this field using custom conditions in ChannelEngine.
329
+ * @return $this
330
+ */
331
+ public function setMappedFields($mappedFields)
332
+ {
333
+ $this->container['mappedFields'] = $mappedFields;
334
+
335
+ return $this;
336
+ }
337
+
338
+ /**
339
+ * Gets name
340
+ * @return string
341
+ */
342
+ public function getName()
343
+ {
344
+ return $this->container['name'];
345
+ }
346
+
347
+ /**
348
+ * Sets name
349
+ * @param string $name
350
+ * @return $this
351
+ */
352
+ public function setName($name)
353
+ {
354
+ $this->container['name'] = $name;
355
+
356
+ return $this;
357
+ }
358
+
359
+ /**
360
+ * Gets description
361
+ * @return string
362
+ */
363
+ public function getDescription()
364
+ {
365
+ return $this->container['description'];
366
+ }
367
+
368
+ /**
369
+ * Sets description
370
+ * @param string $description
371
+ * @return $this
372
+ */
373
+ public function setDescription($description)
374
+ {
375
+ $this->container['description'] = $description;
376
+
377
+ return $this;
378
+ }
379
+
380
+ /**
381
+ * Gets brand
382
+ * @return string
383
+ */
384
+ public function getBrand()
385
+ {
386
+ return $this->container['brand'];
387
+ }
388
+
389
+ /**
390
+ * Sets brand
391
+ * @param string $brand
392
+ * @return $this
393
+ */
394
+ public function setBrand($brand)
395
+ {
396
+ $this->container['brand'] = $brand;
397
+
398
+ return $this;
399
+ }
400
+
401
+ /**
402
+ * Gets size
403
+ * @return string
404
+ */
405
+ public function getSize()
406
+ {
407
+ return $this->container['size'];
408
+ }
409
+
410
+ /**
411
+ * Sets size
412
+ * @param string $size
413
+ * @return $this
414
+ */
415
+ public function setSize($size)
416
+ {
417
+ $this->container['size'] = $size;
418
+
419
+ return $this;
420
+ }
421
+
422
+ /**
423
+ * Gets color
424
+ * @return string
425
+ */
426
+ public function getColor()
427
+ {
428
+ return $this->container['color'];
429
+ }
430
+
431
+ /**
432
+ * Sets color
433
+ * @param string $color
434
+ * @return $this
435
+ */
436
+ public function setColor($color)
437
+ {
438
+ $this->container['color'] = $color;
439
+
440
+ return $this;
441
+ }
442
+
443
+ /**
444
+ * Gets ean
445
+ * @return string
446
+ */
447
+ public function getEan()
448
+ {
449
+ return $this->container['ean'];
450
+ }
451
+
452
+ /**
453
+ * Sets ean
454
+ * @param string $ean
455
+ * @return $this
456
+ */
457
+ public function setEan($ean)
458
+ {
459
+ $this->container['ean'] = $ean;
460
+
461
+ return $this;
462
+ }
463
+
464
+ /**
465
+ * Gets manufacturerProductNumber
466
+ * @return string
467
+ */
468
+ public function getManufacturerProductNumber()
469
+ {
470
+ return $this->container['manufacturerProductNumber'];
471
+ }
472
+
473
+ /**
474
+ * Sets manufacturerProductNumber
475
+ * @param string $manufacturerProductNumber
476
+ * @return $this
477
+ */
478
+ public function setManufacturerProductNumber($manufacturerProductNumber)
479
+ {
480
+ $this->container['manufacturerProductNumber'] = $manufacturerProductNumber;
481
+
482
+ return $this;
483
+ }
484
+
485
+ /**
486
+ * Gets stock
487
+ * @return int
488
+ */
489
+ public function getStock()
490
+ {
491
+ return $this->container['stock'];
492
+ }
493
+
494
+ /**
495
+ * Sets stock
496
+ * @param int $stock
497
+ * @return $this
498
+ */
499
+ public function setStock($stock)
500
+ {
501
+ $this->container['stock'] = $stock;
502
+
503
+ return $this;
504
+ }
505
+
506
+ /**
507
+ * Gets price
508
+ * @return double
509
+ */
510
+ public function getPrice()
511
+ {
512
+ return $this->container['price'];
513
+ }
514
+
515
+ /**
516
+ * Sets price
517
+ * @param double $price Price, including VAT.
518
+ * @return $this
519
+ */
520
+ public function setPrice($price)
521
+ {
522
+ $this->container['price'] = $price;
523
+
524
+ return $this;
525
+ }
526
+
527
+ /**
528
+ * Gets mSRP
529
+ * @return double
530
+ */
531
+ public function getMSRP()
532
+ {
533
+ return $this->container['mSRP'];
534
+ }
535
+
536
+ /**
537
+ * Sets mSRP
538
+ * @param double $mSRP Manufacturer's suggested retail price
539
+ * @return $this
540
+ */
541
+ public function setMSRP($mSRP)
542
+ {
543
+ $this->container['mSRP'] = $mSRP;
544
+
545
+ return $this;
546
+ }
547
+
548
+ /**
549
+ * Gets purchasePrice
550
+ * @return double
551
+ */
552
+ public function getPurchasePrice()
553
+ {
554
+ return $this->container['purchasePrice'];
555
+ }
556
+
557
+ /**
558
+ * Sets purchasePrice
559
+ * @param double $purchasePrice
560
+ * @return $this
561
+ */
562
+ public function setPurchasePrice($purchasePrice)
563
+ {
564
+ $this->container['purchasePrice'] = $purchasePrice;
565
+
566
+ return $this;
567
+ }
568
+
569
+ /**
570
+ * Gets vatRateType
571
+ * @return string
572
+ */
573
+ public function getVatRateType()
574
+ {
575
+ return $this->container['vatRateType'];
576
+ }
577
+
578
+ /**
579
+ * Sets vatRateType
580
+ * @param string $vatRateType The type of VAT which applies to this product. See: http://ec.europa.eu/taxation_customs/taxation/vat/topics/rates_en.htm
581
+ * @return $this
582
+ */
583
+ public function setVatRateType($vatRateType)
584
+ {
585
+ $allowed_values = array('STANDARD', 'REDUCED', 'SUPER_REDUCED');
586
+ if (!is_null($vatRateType) && (!in_array($vatRateType, $allowed_values))) {
587
+ throw new \InvalidArgumentException("Invalid value for 'vatRateType', must be one of 'STANDARD', 'REDUCED', 'SUPER_REDUCED'");
588
+ }
589
+ $this->container['vatRateType'] = $vatRateType;
590
+
591
+ return $this;
592
+ }
593
+
594
+ /**
595
+ * Gets shippingCost
596
+ * @return double
597
+ */
598
+ public function getShippingCost()
599
+ {
600
+ return $this->container['shippingCost'];
601
+ }
602
+
603
+ /**
604
+ * Sets shippingCost
605
+ * @param double $shippingCost
606
+ * @return $this
607
+ */
608
+ public function setShippingCost($shippingCost)
609
+ {
610
+ $this->container['shippingCost'] = $shippingCost;
611
+
612
+ return $this;
613
+ }
614
+
615
+ /**
616
+ * Gets shippingTime
617
+ * @return string
618
+ */
619
+ public function getShippingTime()
620
+ {
621
+ return $this->container['shippingTime'];
622
+ }
623
+
624
+ /**
625
+ * Sets shippingTime
626
+ * @param string $shippingTime A textual representation of the shippingtime. For example, in Dutch: 'Op werkdagen voor 22:00 uur besteld, morgen in huis'
627
+ * @return $this
628
+ */
629
+ public function setShippingTime($shippingTime)
630
+ {
631
+ $this->container['shippingTime'] = $shippingTime;
632
+
633
+ return $this;
634
+ }
635
+
636
+ /**
637
+ * Gets url
638
+ * @return string
639
+ */
640
+ public function getUrl()
641
+ {
642
+ return $this->container['url'];
643
+ }
644
+
645
+ /**
646
+ * Sets url
647
+ * @param string $url A URL pointing to the merchant's webpage which displays this product.
648
+ * @return $this
649
+ */
650
+ public function setUrl($url)
651
+ {
652
+ $this->container['url'] = $url;
653
+
654
+ return $this;
655
+ }
656
+
657
+ /**
658
+ * Gets imageUrl
659
+ * @return string
660
+ */
661
+ public function getImageUrl()
662
+ {
663
+ return $this->container['imageUrl'];
664
+ }
665
+
666
+ /**
667
+ * Sets imageUrl
668
+ * @param string $imageUrl A URL at which an image of this product can be found.
669
+ * @return $this
670
+ */
671
+ public function setImageUrl($imageUrl)
672
+ {
673
+ $this->container['imageUrl'] = $imageUrl;
674
+
675
+ return $this;
676
+ }
677
+
678
+ /**
679
+ * Gets categoryTrail
680
+ * @return string
681
+ */
682
+ public function getCategoryTrail()
683
+ {
684
+ return $this->container['categoryTrail'];
685
+ }
686
+
687
+ /**
688
+ * Sets categoryTrail
689
+ * @param string $categoryTrail The category to which this product belongs. Please supply this field in the following format: 'maincategory &gt; category &gt; subcategory' For example: 'vehicles &gt; bikes &gt; mountainbike'
690
+ * @return $this
691
+ */
692
+ public function setCategoryTrail($categoryTrail)
693
+ {
694
+ $this->container['categoryTrail'] = $categoryTrail;
695
+
696
+ return $this;
697
+ }
698
+
699
+ /**
700
+ * Gets extraData
701
+ * @return \ChannelEngine\ApiClient\Model\ExtraDataItem[]
702
+ */
703
+ public function getExtraData()
704
+ {
705
+ return $this->container['extraData'];
706
+ }
707
+
708
+ /**
709
+ * Sets extraData
710
+ * @param \ChannelEngine\ApiClient\Model\ExtraDataItem[] $extraData An optional list of key-value pairs containing extra data about this product. This data can be sent to channels or used for filtering products.
711
+ * @return $this
712
+ */
713
+ public function setExtraData($extraData)
714
+ {
715
+ $this->container['extraData'] = $extraData;
716
+
717
+ return $this;
718
+ }
719
+ /**
720
+ * Returns true if offset exists. False otherwise.
721
+ * @param integer $offset Offset
722
+ * @return boolean
723
+ */
724
+ public function offsetExists($offset)
725
+ {
726
+ return isset($this->container[$offset]);
727
+ }
728
+
729
+ /**
730
+ * Gets offset.
731
+ * @param integer $offset Offset
732
+ * @return mixed
733
+ */
734
+ public function offsetGet($offset)
735
+ {
736
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
737
+ }
738
+
739
+ /**
740
+ * Sets value based on offset.
741
+ * @param integer $offset Offset
742
+ * @param mixed $value Value to be set
743
+ * @return void
744
+ */
745
+ public function offsetSet($offset, $value)
746
+ {
747
+ if (is_null($offset)) {
748
+ $this->container[] = $value;
749
+ } else {
750
+ $this->container[$offset] = $value;
751
+ }
752
+ }
753
+
754
+ /**
755
+ * Unsets offset.
756
+ * @param integer $offset Offset
757
+ * @return void
758
+ */
759
+ public function offsetUnset($offset)
760
+ {
761
+ unset($this->container[$offset]);
762
+ }
763
+
764
+ /**
765
+ * Gets the string presentation of the object
766
+ * @return string
767
+ */
768
+ public function __toString()
769
+ {
770
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
771
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
772
+ }
773
+
774
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
775
+ }
776
+ }
777
+
778
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ChannelReferencesRequest.php ADDED
@@ -0,0 +1,255 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ChannelReferencesRequest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * ChannelReferencesRequest Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ChannelReferencesRequest implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'ChannelReferencesRequest';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'id' => 'int',
58
+ 'channelProductNo' => 'string'
59
+ ];
60
+
61
+ public static function swaggerTypes()
62
+ {
63
+ return self::$swaggerTypes;
64
+ }
65
+
66
+ /**
67
+ * Array of attributes where the key is the local name, and the value is the original name
68
+ * @var string[]
69
+ */
70
+ protected static $attributeMap = [
71
+ 'id' => 'Id',
72
+ 'channelProductNo' => 'ChannelProductNo'
73
+ ];
74
+
75
+
76
+ /**
77
+ * Array of attributes to setter functions (for deserialization of responses)
78
+ * @var string[]
79
+ */
80
+ protected static $setters = [
81
+ 'id' => 'setId',
82
+ 'channelProductNo' => 'setChannelProductNo'
83
+ ];
84
+
85
+
86
+ /**
87
+ * Array of attributes to getter functions (for serialization of requests)
88
+ * @var string[]
89
+ */
90
+ protected static $getters = [
91
+ 'id' => 'getId',
92
+ 'channelProductNo' => 'getChannelProductNo'
93
+ ];
94
+
95
+ public static function attributeMap()
96
+ {
97
+ return self::$attributeMap;
98
+ }
99
+
100
+ public static function setters()
101
+ {
102
+ return self::$setters;
103
+ }
104
+
105
+ public static function getters()
106
+ {
107
+ return self::$getters;
108
+ }
109
+
110
+
111
+
112
+
113
+
114
+ /**
115
+ * Associative array for storing property values
116
+ * @var mixed[]
117
+ */
118
+ protected $container = [];
119
+
120
+ /**
121
+ * Constructor
122
+ * @param mixed[] $data Associated array of property values initializing the model
123
+ */
124
+ public function __construct(array $data = null)
125
+ {
126
+ $this->container['id'] = isset($data['id']) ? $data['id'] : null;
127
+ $this->container['channelProductNo'] = isset($data['channelProductNo']) ? $data['channelProductNo'] : null;
128
+ }
129
+
130
+ /**
131
+ * show all the invalid properties with reasons.
132
+ *
133
+ * @return array invalid properties with reasons
134
+ */
135
+ public function listInvalidProperties()
136
+ {
137
+ $invalid_properties = [];
138
+
139
+ return $invalid_properties;
140
+ }
141
+
142
+ /**
143
+ * validate all the properties in the model
144
+ * return true if all passed
145
+ *
146
+ * @return bool True if all properties are valid
147
+ */
148
+ public function valid()
149
+ {
150
+
151
+ return true;
152
+ }
153
+
154
+
155
+ /**
156
+ * Gets id
157
+ * @return int
158
+ */
159
+ public function getId()
160
+ {
161
+ return $this->container['id'];
162
+ }
163
+
164
+ /**
165
+ * Sets id
166
+ * @param int $id
167
+ * @return $this
168
+ */
169
+ public function setId($id)
170
+ {
171
+ $this->container['id'] = $id;
172
+
173
+ return $this;
174
+ }
175
+
176
+ /**
177
+ * Gets channelProductNo
178
+ * @return string
179
+ */
180
+ public function getChannelProductNo()
181
+ {
182
+ return $this->container['channelProductNo'];
183
+ }
184
+
185
+ /**
186
+ * Sets channelProductNo
187
+ * @param string $channelProductNo
188
+ * @return $this
189
+ */
190
+ public function setChannelProductNo($channelProductNo)
191
+ {
192
+ $this->container['channelProductNo'] = $channelProductNo;
193
+
194
+ return $this;
195
+ }
196
+ /**
197
+ * Returns true if offset exists. False otherwise.
198
+ * @param integer $offset Offset
199
+ * @return boolean
200
+ */
201
+ public function offsetExists($offset)
202
+ {
203
+ return isset($this->container[$offset]);
204
+ }
205
+
206
+ /**
207
+ * Gets offset.
208
+ * @param integer $offset Offset
209
+ * @return mixed
210
+ */
211
+ public function offsetGet($offset)
212
+ {
213
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
214
+ }
215
+
216
+ /**
217
+ * Sets value based on offset.
218
+ * @param integer $offset Offset
219
+ * @param mixed $value Value to be set
220
+ * @return void
221
+ */
222
+ public function offsetSet($offset, $value)
223
+ {
224
+ if (is_null($offset)) {
225
+ $this->container[] = $value;
226
+ } else {
227
+ $this->container[$offset] = $value;
228
+ }
229
+ }
230
+
231
+ /**
232
+ * Unsets offset.
233
+ * @param integer $offset Offset
234
+ * @return void
235
+ */
236
+ public function offsetUnset($offset)
237
+ {
238
+ unset($this->container[$offset]);
239
+ }
240
+
241
+ /**
242
+ * Gets the string presentation of the object
243
+ * @return string
244
+ */
245
+ public function __toString()
246
+ {
247
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
248
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
249
+ }
250
+
251
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
252
+ }
253
+ }
254
+
255
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ChannelReturnLineRequest.php ADDED
@@ -0,0 +1,267 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ChannelReturnLineRequest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * ChannelReturnLineRequest Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ChannelReturnLineRequest implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'ChannelReturnLineRequest';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'channelProductNo' => 'string',
58
+ 'quantity' => 'int'
59
+ ];
60
+
61
+ public static function swaggerTypes()
62
+ {
63
+ return self::$swaggerTypes;
64
+ }
65
+
66
+ /**
67
+ * Array of attributes where the key is the local name, and the value is the original name
68
+ * @var string[]
69
+ */
70
+ protected static $attributeMap = [
71
+ 'channelProductNo' => 'ChannelProductNo',
72
+ 'quantity' => 'Quantity'
73
+ ];
74
+
75
+
76
+ /**
77
+ * Array of attributes to setter functions (for deserialization of responses)
78
+ * @var string[]
79
+ */
80
+ protected static $setters = [
81
+ 'channelProductNo' => 'setChannelProductNo',
82
+ 'quantity' => 'setQuantity'
83
+ ];
84
+
85
+
86
+ /**
87
+ * Array of attributes to getter functions (for serialization of requests)
88
+ * @var string[]
89
+ */
90
+ protected static $getters = [
91
+ 'channelProductNo' => 'getChannelProductNo',
92
+ 'quantity' => 'getQuantity'
93
+ ];
94
+
95
+ public static function attributeMap()
96
+ {
97
+ return self::$attributeMap;
98
+ }
99
+
100
+ public static function setters()
101
+ {
102
+ return self::$setters;
103
+ }
104
+
105
+ public static function getters()
106
+ {
107
+ return self::$getters;
108
+ }
109
+
110
+
111
+
112
+
113
+
114
+ /**
115
+ * Associative array for storing property values
116
+ * @var mixed[]
117
+ */
118
+ protected $container = [];
119
+
120
+ /**
121
+ * Constructor
122
+ * @param mixed[] $data Associated array of property values initializing the model
123
+ */
124
+ public function __construct(array $data = null)
125
+ {
126
+ $this->container['channelProductNo'] = isset($data['channelProductNo']) ? $data['channelProductNo'] : null;
127
+ $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null;
128
+ }
129
+
130
+ /**
131
+ * show all the invalid properties with reasons.
132
+ *
133
+ * @return array invalid properties with reasons
134
+ */
135
+ public function listInvalidProperties()
136
+ {
137
+ $invalid_properties = [];
138
+
139
+ if ($this->container['channelProductNo'] === null) {
140
+ $invalid_properties[] = "'channelProductNo' can't be null";
141
+ }
142
+ if ($this->container['quantity'] === null) {
143
+ $invalid_properties[] = "'quantity' can't be null";
144
+ }
145
+ return $invalid_properties;
146
+ }
147
+
148
+ /**
149
+ * validate all the properties in the model
150
+ * return true if all passed
151
+ *
152
+ * @return bool True if all properties are valid
153
+ */
154
+ public function valid()
155
+ {
156
+
157
+ if ($this->container['channelProductNo'] === null) {
158
+ return false;
159
+ }
160
+ if ($this->container['quantity'] === null) {
161
+ return false;
162
+ }
163
+ return true;
164
+ }
165
+
166
+
167
+ /**
168
+ * Gets channelProductNo
169
+ * @return string
170
+ */
171
+ public function getChannelProductNo()
172
+ {
173
+ return $this->container['channelProductNo'];
174
+ }
175
+
176
+ /**
177
+ * Sets channelProductNo
178
+ * @param string $channelProductNo
179
+ * @return $this
180
+ */
181
+ public function setChannelProductNo($channelProductNo)
182
+ {
183
+ $this->container['channelProductNo'] = $channelProductNo;
184
+
185
+ return $this;
186
+ }
187
+
188
+ /**
189
+ * Gets quantity
190
+ * @return int
191
+ */
192
+ public function getQuantity()
193
+ {
194
+ return $this->container['quantity'];
195
+ }
196
+
197
+ /**
198
+ * Sets quantity
199
+ * @param int $quantity
200
+ * @return $this
201
+ */
202
+ public function setQuantity($quantity)
203
+ {
204
+ $this->container['quantity'] = $quantity;
205
+
206
+ return $this;
207
+ }
208
+ /**
209
+ * Returns true if offset exists. False otherwise.
210
+ * @param integer $offset Offset
211
+ * @return boolean
212
+ */
213
+ public function offsetExists($offset)
214
+ {
215
+ return isset($this->container[$offset]);
216
+ }
217
+
218
+ /**
219
+ * Gets offset.
220
+ * @param integer $offset Offset
221
+ * @return mixed
222
+ */
223
+ public function offsetGet($offset)
224
+ {
225
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
226
+ }
227
+
228
+ /**
229
+ * Sets value based on offset.
230
+ * @param integer $offset Offset
231
+ * @param mixed $value Value to be set
232
+ * @return void
233
+ */
234
+ public function offsetSet($offset, $value)
235
+ {
236
+ if (is_null($offset)) {
237
+ $this->container[] = $value;
238
+ } else {
239
+ $this->container[$offset] = $value;
240
+ }
241
+ }
242
+
243
+ /**
244
+ * Unsets offset.
245
+ * @param integer $offset Offset
246
+ * @return void
247
+ */
248
+ public function offsetUnset($offset)
249
+ {
250
+ unset($this->container[$offset]);
251
+ }
252
+
253
+ /**
254
+ * Gets the string presentation of the object
255
+ * @return string
256
+ */
257
+ public function __toString()
258
+ {
259
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
260
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
261
+ }
262
+
263
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
264
+ }
265
+ }
266
+
267
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ChannelReturnLineResponse.php ADDED
@@ -0,0 +1,267 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ChannelReturnLineResponse
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * ChannelReturnLineResponse Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ChannelReturnLineResponse implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'ChannelReturnLineResponse';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'channelProductNo' => 'string',
58
+ 'quantity' => 'int'
59
+ ];
60
+
61
+ public static function swaggerTypes()
62
+ {
63
+ return self::$swaggerTypes;
64
+ }
65
+
66
+ /**
67
+ * Array of attributes where the key is the local name, and the value is the original name
68
+ * @var string[]
69
+ */
70
+ protected static $attributeMap = [
71
+ 'channelProductNo' => 'ChannelProductNo',
72
+ 'quantity' => 'Quantity'
73
+ ];
74
+
75
+
76
+ /**
77
+ * Array of attributes to setter functions (for deserialization of responses)
78
+ * @var string[]
79
+ */
80
+ protected static $setters = [
81
+ 'channelProductNo' => 'setChannelProductNo',
82
+ 'quantity' => 'setQuantity'
83
+ ];
84
+
85
+
86
+ /**
87
+ * Array of attributes to getter functions (for serialization of requests)
88
+ * @var string[]
89
+ */
90
+ protected static $getters = [
91
+ 'channelProductNo' => 'getChannelProductNo',
92
+ 'quantity' => 'getQuantity'
93
+ ];
94
+
95
+ public static function attributeMap()
96
+ {
97
+ return self::$attributeMap;
98
+ }
99
+
100
+ public static function setters()
101
+ {
102
+ return self::$setters;
103
+ }
104
+
105
+ public static function getters()
106
+ {
107
+ return self::$getters;
108
+ }
109
+
110
+
111
+
112
+
113
+
114
+ /**
115
+ * Associative array for storing property values
116
+ * @var mixed[]
117
+ */
118
+ protected $container = [];
119
+
120
+ /**
121
+ * Constructor
122
+ * @param mixed[] $data Associated array of property values initializing the model
123
+ */
124
+ public function __construct(array $data = null)
125
+ {
126
+ $this->container['channelProductNo'] = isset($data['channelProductNo']) ? $data['channelProductNo'] : null;
127
+ $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null;
128
+ }
129
+
130
+ /**
131
+ * show all the invalid properties with reasons.
132
+ *
133
+ * @return array invalid properties with reasons
134
+ */
135
+ public function listInvalidProperties()
136
+ {
137
+ $invalid_properties = [];
138
+
139
+ if ($this->container['channelProductNo'] === null) {
140
+ $invalid_properties[] = "'channelProductNo' can't be null";
141
+ }
142
+ if ($this->container['quantity'] === null) {
143
+ $invalid_properties[] = "'quantity' can't be null";
144
+ }
145
+ return $invalid_properties;
146
+ }
147
+
148
+ /**
149
+ * validate all the properties in the model
150
+ * return true if all passed
151
+ *
152
+ * @return bool True if all properties are valid
153
+ */
154
+ public function valid()
155
+ {
156
+
157
+ if ($this->container['channelProductNo'] === null) {
158
+ return false;
159
+ }
160
+ if ($this->container['quantity'] === null) {
161
+ return false;
162
+ }
163
+ return true;
164
+ }
165
+
166
+
167
+ /**
168
+ * Gets channelProductNo
169
+ * @return string
170
+ */
171
+ public function getChannelProductNo()
172
+ {
173
+ return $this->container['channelProductNo'];
174
+ }
175
+
176
+ /**
177
+ * Sets channelProductNo
178
+ * @param string $channelProductNo
179
+ * @return $this
180
+ */
181
+ public function setChannelProductNo($channelProductNo)
182
+ {
183
+ $this->container['channelProductNo'] = $channelProductNo;
184
+
185
+ return $this;
186
+ }
187
+
188
+ /**
189
+ * Gets quantity
190
+ * @return int
191
+ */
192
+ public function getQuantity()
193
+ {
194
+ return $this->container['quantity'];
195
+ }
196
+
197
+ /**
198
+ * Sets quantity
199
+ * @param int $quantity
200
+ * @return $this
201
+ */
202
+ public function setQuantity($quantity)
203
+ {
204
+ $this->container['quantity'] = $quantity;
205
+
206
+ return $this;
207
+ }
208
+ /**
209
+ * Returns true if offset exists. False otherwise.
210
+ * @param integer $offset Offset
211
+ * @return boolean
212
+ */
213
+ public function offsetExists($offset)
214
+ {
215
+ return isset($this->container[$offset]);
216
+ }
217
+
218
+ /**
219
+ * Gets offset.
220
+ * @param integer $offset Offset
221
+ * @return mixed
222
+ */
223
+ public function offsetGet($offset)
224
+ {
225
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
226
+ }
227
+
228
+ /**
229
+ * Sets value based on offset.
230
+ * @param integer $offset Offset
231
+ * @param mixed $value Value to be set
232
+ * @return void
233
+ */
234
+ public function offsetSet($offset, $value)
235
+ {
236
+ if (is_null($offset)) {
237
+ $this->container[] = $value;
238
+ } else {
239
+ $this->container[$offset] = $value;
240
+ }
241
+ }
242
+
243
+ /**
244
+ * Unsets offset.
245
+ * @param integer $offset Offset
246
+ * @return void
247
+ */
248
+ public function offsetUnset($offset)
249
+ {
250
+ unset($this->container[$offset]);
251
+ }
252
+
253
+ /**
254
+ * Gets the string presentation of the object
255
+ * @return string
256
+ */
257
+ public function __toString()
258
+ {
259
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
260
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
261
+ }
262
+
263
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
264
+ }
265
+ }
266
+
267
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ChannelReturnRequest.php ADDED
@@ -0,0 +1,508 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ChannelReturnRequest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * ChannelReturnRequest Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ChannelReturnRequest implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'ChannelReturnRequest';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'channelOrderNo' => 'string',
58
+ 'channelReference' => 'string',
59
+ 'lines' => '\ChannelEngine\ApiClient\Model\ChannelReturnLineRequest[]',
60
+ 'reason' => 'string',
61
+ 'customerComment' => 'string',
62
+ 'merchantComment' => 'string',
63
+ 'refundInclVat' => 'double',
64
+ 'refundExclVat' => 'double'
65
+ ];
66
+
67
+ public static function swaggerTypes()
68
+ {
69
+ return self::$swaggerTypes;
70
+ }
71
+
72
+ /**
73
+ * Array of attributes where the key is the local name, and the value is the original name
74
+ * @var string[]
75
+ */
76
+ protected static $attributeMap = [
77
+ 'channelOrderNo' => 'ChannelOrderNo',
78
+ 'channelReference' => 'ChannelReference',
79
+ 'lines' => 'Lines',
80
+ 'reason' => 'Reason',
81
+ 'customerComment' => 'CustomerComment',
82
+ 'merchantComment' => 'MerchantComment',
83
+ 'refundInclVat' => 'RefundInclVat',
84
+ 'refundExclVat' => 'RefundExclVat'
85
+ ];
86
+
87
+
88
+ /**
89
+ * Array of attributes to setter functions (for deserialization of responses)
90
+ * @var string[]
91
+ */
92
+ protected static $setters = [
93
+ 'channelOrderNo' => 'setChannelOrderNo',
94
+ 'channelReference' => 'setChannelReference',
95
+ 'lines' => 'setLines',
96
+ 'reason' => 'setReason',
97
+ 'customerComment' => 'setCustomerComment',
98
+ 'merchantComment' => 'setMerchantComment',
99
+ 'refundInclVat' => 'setRefundInclVat',
100
+ 'refundExclVat' => 'setRefundExclVat'
101
+ ];
102
+
103
+
104
+ /**
105
+ * Array of attributes to getter functions (for serialization of requests)
106
+ * @var string[]
107
+ */
108
+ protected static $getters = [
109
+ 'channelOrderNo' => 'getChannelOrderNo',
110
+ 'channelReference' => 'getChannelReference',
111
+ 'lines' => 'getLines',
112
+ 'reason' => 'getReason',
113
+ 'customerComment' => 'getCustomerComment',
114
+ 'merchantComment' => 'getMerchantComment',
115
+ 'refundInclVat' => 'getRefundInclVat',
116
+ 'refundExclVat' => 'getRefundExclVat'
117
+ ];
118
+
119
+ public static function attributeMap()
120
+ {
121
+ return self::$attributeMap;
122
+ }
123
+
124
+ public static function setters()
125
+ {
126
+ return self::$setters;
127
+ }
128
+
129
+ public static function getters()
130
+ {
131
+ return self::$getters;
132
+ }
133
+
134
+ const REASON_PRODUCT_DEFECT = 'PRODUCT_DEFECT';
135
+ const REASON_PRODUCT_UNSATISFACTORY = 'PRODUCT_UNSATISFACTORY';
136
+ const REASON_REFUSED = 'REFUSED';
137
+ const REASON_REFUSED_DAMAGED = 'REFUSED_DAMAGED';
138
+ const REASON_WRONG_ADDRESS = 'WRONG_ADDRESS';
139
+ const REASON_NOT_COLLECTED = 'NOT_COLLECTED';
140
+ const REASON_OTHER = 'OTHER';
141
+
142
+
143
+
144
+ /**
145
+ * Gets allowable values of the enum
146
+ * @return string[]
147
+ */
148
+ public function getReasonAllowableValues()
149
+ {
150
+ return [
151
+ self::REASON_PRODUCT_DEFECT,
152
+ self::REASON_PRODUCT_UNSATISFACTORY,
153
+ self::REASON_REFUSED,
154
+ self::REASON_REFUSED_DAMAGED,
155
+ self::REASON_WRONG_ADDRESS,
156
+ self::REASON_NOT_COLLECTED,
157
+ self::REASON_OTHER,
158
+ ];
159
+ }
160
+
161
+
162
+ /**
163
+ * Associative array for storing property values
164
+ * @var mixed[]
165
+ */
166
+ protected $container = [];
167
+
168
+ /**
169
+ * Constructor
170
+ * @param mixed[] $data Associated array of property values initializing the model
171
+ */
172
+ public function __construct(array $data = null)
173
+ {
174
+ $this->container['channelOrderNo'] = isset($data['channelOrderNo']) ? $data['channelOrderNo'] : null;
175
+ $this->container['channelReference'] = isset($data['channelReference']) ? $data['channelReference'] : null;
176
+ $this->container['lines'] = isset($data['lines']) ? $data['lines'] : null;
177
+ $this->container['reason'] = isset($data['reason']) ? $data['reason'] : null;
178
+ $this->container['customerComment'] = isset($data['customerComment']) ? $data['customerComment'] : null;
179
+ $this->container['merchantComment'] = isset($data['merchantComment']) ? $data['merchantComment'] : null;
180
+ $this->container['refundInclVat'] = isset($data['refundInclVat']) ? $data['refundInclVat'] : null;
181
+ $this->container['refundExclVat'] = isset($data['refundExclVat']) ? $data['refundExclVat'] : null;
182
+ }
183
+
184
+ /**
185
+ * show all the invalid properties with reasons.
186
+ *
187
+ * @return array invalid properties with reasons
188
+ */
189
+ public function listInvalidProperties()
190
+ {
191
+ $invalid_properties = [];
192
+
193
+ if ($this->container['channelOrderNo'] === null) {
194
+ $invalid_properties[] = "'channelOrderNo' can't be null";
195
+ }
196
+ if ($this->container['channelReference'] === null) {
197
+ $invalid_properties[] = "'channelReference' can't be null";
198
+ }
199
+ if ($this->container['lines'] === null) {
200
+ $invalid_properties[] = "'lines' can't be null";
201
+ }
202
+ $allowed_values = ["PRODUCT_DEFECT", "PRODUCT_UNSATISFACTORY", "REFUSED", "REFUSED_DAMAGED", "WRONG_ADDRESS", "NOT_COLLECTED", "OTHER"];
203
+ if (!in_array($this->container['reason'], $allowed_values)) {
204
+ $invalid_properties[] = "invalid value for 'reason', must be one of 'PRODUCT_DEFECT', 'PRODUCT_UNSATISFACTORY', 'REFUSED', 'REFUSED_DAMAGED', 'WRONG_ADDRESS', 'NOT_COLLECTED', 'OTHER'.";
205
+ }
206
+
207
+ if (!is_null($this->container['customerComment']) && (strlen($this->container['customerComment']) > 4001)) {
208
+ $invalid_properties[] = "invalid value for 'customerComment', the character length must be smaller than or equal to 4001.";
209
+ }
210
+
211
+ if (!is_null($this->container['customerComment']) && (strlen($this->container['customerComment']) < 0)) {
212
+ $invalid_properties[] = "invalid value for 'customerComment', the character length must be bigger than or equal to 0.";
213
+ }
214
+
215
+ if (!is_null($this->container['merchantComment']) && (strlen($this->container['merchantComment']) > 4001)) {
216
+ $invalid_properties[] = "invalid value for 'merchantComment', the character length must be smaller than or equal to 4001.";
217
+ }
218
+
219
+ if (!is_null($this->container['merchantComment']) && (strlen($this->container['merchantComment']) < 0)) {
220
+ $invalid_properties[] = "invalid value for 'merchantComment', the character length must be bigger than or equal to 0.";
221
+ }
222
+
223
+ return $invalid_properties;
224
+ }
225
+
226
+ /**
227
+ * validate all the properties in the model
228
+ * return true if all passed
229
+ *
230
+ * @return bool True if all properties are valid
231
+ */
232
+ public function valid()
233
+ {
234
+
235
+ if ($this->container['channelOrderNo'] === null) {
236
+ return false;
237
+ }
238
+ if ($this->container['channelReference'] === null) {
239
+ return false;
240
+ }
241
+ if ($this->container['lines'] === null) {
242
+ return false;
243
+ }
244
+ $allowed_values = ["PRODUCT_DEFECT", "PRODUCT_UNSATISFACTORY", "REFUSED", "REFUSED_DAMAGED", "WRONG_ADDRESS", "NOT_COLLECTED", "OTHER"];
245
+ if (!in_array($this->container['reason'], $allowed_values)) {
246
+ return false;
247
+ }
248
+ if (strlen($this->container['customerComment']) > 4001) {
249
+ return false;
250
+ }
251
+ if (strlen($this->container['customerComment']) < 0) {
252
+ return false;
253
+ }
254
+ if (strlen($this->container['merchantComment']) > 4001) {
255
+ return false;
256
+ }
257
+ if (strlen($this->container['merchantComment']) < 0) {
258
+ return false;
259
+ }
260
+ return true;
261
+ }
262
+
263
+
264
+ /**
265
+ * Gets channelOrderNo
266
+ * @return string
267
+ */
268
+ public function getChannelOrderNo()
269
+ {
270
+ return $this->container['channelOrderNo'];
271
+ }
272
+
273
+ /**
274
+ * Sets channelOrderNo
275
+ * @param string $channelOrderNo
276
+ * @return $this
277
+ */
278
+ public function setChannelOrderNo($channelOrderNo)
279
+ {
280
+ $this->container['channelOrderNo'] = $channelOrderNo;
281
+
282
+ return $this;
283
+ }
284
+
285
+ /**
286
+ * Gets channelReference
287
+ * @return string
288
+ */
289
+ public function getChannelReference()
290
+ {
291
+ return $this->container['channelReference'];
292
+ }
293
+
294
+ /**
295
+ * Sets channelReference
296
+ * @param string $channelReference
297
+ * @return $this
298
+ */
299
+ public function setChannelReference($channelReference)
300
+ {
301
+ $this->container['channelReference'] = $channelReference;
302
+
303
+ return $this;
304
+ }
305
+
306
+ /**
307
+ * Gets lines
308
+ * @return \ChannelEngine\ApiClient\Model\ChannelReturnLineRequest[]
309
+ */
310
+ public function getLines()
311
+ {
312
+ return $this->container['lines'];
313
+ }
314
+
315
+ /**
316
+ * Sets lines
317
+ * @param \ChannelEngine\ApiClient\Model\ChannelReturnLineRequest[] $lines
318
+ * @return $this
319
+ */
320
+ public function setLines($lines)
321
+ {
322
+ $this->container['lines'] = $lines;
323
+
324
+ return $this;
325
+ }
326
+
327
+ /**
328
+ * Gets reason
329
+ * @return string
330
+ */
331
+ public function getReason()
332
+ {
333
+ return $this->container['reason'];
334
+ }
335
+
336
+ /**
337
+ * Sets reason
338
+ * @param string $reason
339
+ * @return $this
340
+ */
341
+ public function setReason($reason)
342
+ {
343
+ $allowed_values = array('PRODUCT_DEFECT', 'PRODUCT_UNSATISFACTORY', 'REFUSED', 'REFUSED_DAMAGED', 'WRONG_ADDRESS', 'NOT_COLLECTED', 'OTHER');
344
+ if (!is_null($reason) && (!in_array($reason, $allowed_values))) {
345
+ throw new \InvalidArgumentException("Invalid value for 'reason', must be one of 'PRODUCT_DEFECT', 'PRODUCT_UNSATISFACTORY', 'REFUSED', 'REFUSED_DAMAGED', 'WRONG_ADDRESS', 'NOT_COLLECTED', 'OTHER'");
346
+ }
347
+ $this->container['reason'] = $reason;
348
+
349
+ return $this;
350
+ }
351
+
352
+ /**
353
+ * Gets customerComment
354
+ * @return string
355
+ */
356
+ public function getCustomerComment()
357
+ {
358
+ return $this->container['customerComment'];
359
+ }
360
+
361
+ /**
362
+ * Sets customerComment
363
+ * @param string $customerComment
364
+ * @return $this
365
+ */
366
+ public function setCustomerComment($customerComment)
367
+ {
368
+ if (!is_null($customerComment) && (strlen($customerComment) > 4001)) {
369
+ throw new \InvalidArgumentException('invalid length for $customerComment when calling ChannelReturnRequest., must be smaller than or equal to 4001.');
370
+ }
371
+ if (!is_null($customerComment) && (strlen($customerComment) < 0)) {
372
+ throw new \InvalidArgumentException('invalid length for $customerComment when calling ChannelReturnRequest., must be bigger than or equal to 0.');
373
+ }
374
+
375
+ $this->container['customerComment'] = $customerComment;
376
+
377
+ return $this;
378
+ }
379
+
380
+ /**
381
+ * Gets merchantComment
382
+ * @return string
383
+ */
384
+ public function getMerchantComment()
385
+ {
386
+ return $this->container['merchantComment'];
387
+ }
388
+
389
+ /**
390
+ * Sets merchantComment
391
+ * @param string $merchantComment
392
+ * @return $this
393
+ */
394
+ public function setMerchantComment($merchantComment)
395
+ {
396
+ if (!is_null($merchantComment) && (strlen($merchantComment) > 4001)) {
397
+ throw new \InvalidArgumentException('invalid length for $merchantComment when calling ChannelReturnRequest., must be smaller than or equal to 4001.');
398
+ }
399
+ if (!is_null($merchantComment) && (strlen($merchantComment) < 0)) {
400
+ throw new \InvalidArgumentException('invalid length for $merchantComment when calling ChannelReturnRequest., must be bigger than or equal to 0.');
401
+ }
402
+
403
+ $this->container['merchantComment'] = $merchantComment;
404
+
405
+ return $this;
406
+ }
407
+
408
+ /**
409
+ * Gets refundInclVat
410
+ * @return double
411
+ */
412
+ public function getRefundInclVat()
413
+ {
414
+ return $this->container['refundInclVat'];
415
+ }
416
+
417
+ /**
418
+ * Sets refundInclVat
419
+ * @param double $refundInclVat
420
+ * @return $this
421
+ */
422
+ public function setRefundInclVat($refundInclVat)
423
+ {
424
+ $this->container['refundInclVat'] = $refundInclVat;
425
+
426
+ return $this;
427
+ }
428
+
429
+ /**
430
+ * Gets refundExclVat
431
+ * @return double
432
+ */
433
+ public function getRefundExclVat()
434
+ {
435
+ return $this->container['refundExclVat'];
436
+ }
437
+
438
+ /**
439
+ * Sets refundExclVat
440
+ * @param double $refundExclVat
441
+ * @return $this
442
+ */
443
+ public function setRefundExclVat($refundExclVat)
444
+ {
445
+ $this->container['refundExclVat'] = $refundExclVat;
446
+
447
+ return $this;
448
+ }
449
+ /**
450
+ * Returns true if offset exists. False otherwise.
451
+ * @param integer $offset Offset
452
+ * @return boolean
453
+ */
454
+ public function offsetExists($offset)
455
+ {
456
+ return isset($this->container[$offset]);
457
+ }
458
+
459
+ /**
460
+ * Gets offset.
461
+ * @param integer $offset Offset
462
+ * @return mixed
463
+ */
464
+ public function offsetGet($offset)
465
+ {
466
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
467
+ }
468
+
469
+ /**
470
+ * Sets value based on offset.
471
+ * @param integer $offset Offset
472
+ * @param mixed $value Value to be set
473
+ * @return void
474
+ */
475
+ public function offsetSet($offset, $value)
476
+ {
477
+ if (is_null($offset)) {
478
+ $this->container[] = $value;
479
+ } else {
480
+ $this->container[$offset] = $value;
481
+ }
482
+ }
483
+
484
+ /**
485
+ * Unsets offset.
486
+ * @param integer $offset Offset
487
+ * @return void
488
+ */
489
+ public function offsetUnset($offset)
490
+ {
491
+ unset($this->container[$offset]);
492
+ }
493
+
494
+ /**
495
+ * Gets the string presentation of the object
496
+ * @return string
497
+ */
498
+ public function __toString()
499
+ {
500
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
501
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
502
+ }
503
+
504
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
505
+ }
506
+ }
507
+
508
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ChannelReturnResponse.php ADDED
@@ -0,0 +1,508 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ChannelReturnResponse
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * ChannelReturnResponse Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ChannelReturnResponse implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'ChannelReturnResponse';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'channelReturnNo' => 'string',
58
+ 'channelOrderNo' => 'string',
59
+ 'lines' => '\ChannelEngine\ApiClient\Model\ChannelReturnLineResponse[]',
60
+ 'reason' => 'string',
61
+ 'customerComment' => 'string',
62
+ 'merchantComment' => 'string',
63
+ 'refundInclVat' => 'double',
64
+ 'refundExclVat' => 'double'
65
+ ];
66
+
67
+ public static function swaggerTypes()
68
+ {
69
+ return self::$swaggerTypes;
70
+ }
71
+
72
+ /**
73
+ * Array of attributes where the key is the local name, and the value is the original name
74
+ * @var string[]
75
+ */
76
+ protected static $attributeMap = [
77
+ 'channelReturnNo' => 'ChannelReturnNo',
78
+ 'channelOrderNo' => 'ChannelOrderNo',
79
+ 'lines' => 'Lines',
80
+ 'reason' => 'Reason',
81
+ 'customerComment' => 'CustomerComment',
82
+ 'merchantComment' => 'MerchantComment',
83
+ 'refundInclVat' => 'RefundInclVat',
84
+ 'refundExclVat' => 'RefundExclVat'
85
+ ];
86
+
87
+
88
+ /**
89
+ * Array of attributes to setter functions (for deserialization of responses)
90
+ * @var string[]
91
+ */
92
+ protected static $setters = [
93
+ 'channelReturnNo' => 'setChannelReturnNo',
94
+ 'channelOrderNo' => 'setChannelOrderNo',
95
+ 'lines' => 'setLines',
96
+ 'reason' => 'setReason',
97
+ 'customerComment' => 'setCustomerComment',
98
+ 'merchantComment' => 'setMerchantComment',
99
+ 'refundInclVat' => 'setRefundInclVat',
100
+ 'refundExclVat' => 'setRefundExclVat'
101
+ ];
102
+
103
+
104
+ /**
105
+ * Array of attributes to getter functions (for serialization of requests)
106
+ * @var string[]
107
+ */
108
+ protected static $getters = [
109
+ 'channelReturnNo' => 'getChannelReturnNo',
110
+ 'channelOrderNo' => 'getChannelOrderNo',
111
+ 'lines' => 'getLines',
112
+ 'reason' => 'getReason',
113
+ 'customerComment' => 'getCustomerComment',
114
+ 'merchantComment' => 'getMerchantComment',
115
+ 'refundInclVat' => 'getRefundInclVat',
116
+ 'refundExclVat' => 'getRefundExclVat'
117
+ ];
118
+
119
+ public static function attributeMap()
120
+ {
121
+ return self::$attributeMap;
122
+ }
123
+
124
+ public static function setters()
125
+ {
126
+ return self::$setters;
127
+ }
128
+
129
+ public static function getters()
130
+ {
131
+ return self::$getters;
132
+ }
133
+
134
+ const REASON_PRODUCT_DEFECT = 'PRODUCT_DEFECT';
135
+ const REASON_PRODUCT_UNSATISFACTORY = 'PRODUCT_UNSATISFACTORY';
136
+ const REASON_REFUSED = 'REFUSED';
137
+ const REASON_REFUSED_DAMAGED = 'REFUSED_DAMAGED';
138
+ const REASON_WRONG_ADDRESS = 'WRONG_ADDRESS';
139
+ const REASON_NOT_COLLECTED = 'NOT_COLLECTED';
140
+ const REASON_OTHER = 'OTHER';
141
+
142
+
143
+
144
+ /**
145
+ * Gets allowable values of the enum
146
+ * @return string[]
147
+ */
148
+ public function getReasonAllowableValues()
149
+ {
150
+ return [
151
+ self::REASON_PRODUCT_DEFECT,
152
+ self::REASON_PRODUCT_UNSATISFACTORY,
153
+ self::REASON_REFUSED,
154
+ self::REASON_REFUSED_DAMAGED,
155
+ self::REASON_WRONG_ADDRESS,
156
+ self::REASON_NOT_COLLECTED,
157
+ self::REASON_OTHER,
158
+ ];
159
+ }
160
+
161
+
162
+ /**
163
+ * Associative array for storing property values
164
+ * @var mixed[]
165
+ */
166
+ protected $container = [];
167
+
168
+ /**
169
+ * Constructor
170
+ * @param mixed[] $data Associated array of property values initializing the model
171
+ */
172
+ public function __construct(array $data = null)
173
+ {
174
+ $this->container['channelReturnNo'] = isset($data['channelReturnNo']) ? $data['channelReturnNo'] : null;
175
+ $this->container['channelOrderNo'] = isset($data['channelOrderNo']) ? $data['channelOrderNo'] : null;
176
+ $this->container['lines'] = isset($data['lines']) ? $data['lines'] : null;
177
+ $this->container['reason'] = isset($data['reason']) ? $data['reason'] : null;
178
+ $this->container['customerComment'] = isset($data['customerComment']) ? $data['customerComment'] : null;
179
+ $this->container['merchantComment'] = isset($data['merchantComment']) ? $data['merchantComment'] : null;
180
+ $this->container['refundInclVat'] = isset($data['refundInclVat']) ? $data['refundInclVat'] : null;
181
+ $this->container['refundExclVat'] = isset($data['refundExclVat']) ? $data['refundExclVat'] : null;
182
+ }
183
+
184
+ /**
185
+ * show all the invalid properties with reasons.
186
+ *
187
+ * @return array invalid properties with reasons
188
+ */
189
+ public function listInvalidProperties()
190
+ {
191
+ $invalid_properties = [];
192
+
193
+ if ($this->container['channelReturnNo'] === null) {
194
+ $invalid_properties[] = "'channelReturnNo' can't be null";
195
+ }
196
+ if ($this->container['channelOrderNo'] === null) {
197
+ $invalid_properties[] = "'channelOrderNo' can't be null";
198
+ }
199
+ if ($this->container['lines'] === null) {
200
+ $invalid_properties[] = "'lines' can't be null";
201
+ }
202
+ $allowed_values = ["PRODUCT_DEFECT", "PRODUCT_UNSATISFACTORY", "REFUSED", "REFUSED_DAMAGED", "WRONG_ADDRESS", "NOT_COLLECTED", "OTHER"];
203
+ if (!in_array($this->container['reason'], $allowed_values)) {
204
+ $invalid_properties[] = "invalid value for 'reason', must be one of 'PRODUCT_DEFECT', 'PRODUCT_UNSATISFACTORY', 'REFUSED', 'REFUSED_DAMAGED', 'WRONG_ADDRESS', 'NOT_COLLECTED', 'OTHER'.";
205
+ }
206
+
207
+ if (!is_null($this->container['customerComment']) && (strlen($this->container['customerComment']) > 4001)) {
208
+ $invalid_properties[] = "invalid value for 'customerComment', the character length must be smaller than or equal to 4001.";
209
+ }
210
+
211
+ if (!is_null($this->container['customerComment']) && (strlen($this->container['customerComment']) < 0)) {
212
+ $invalid_properties[] = "invalid value for 'customerComment', the character length must be bigger than or equal to 0.";
213
+ }
214
+
215
+ if (!is_null($this->container['merchantComment']) && (strlen($this->container['merchantComment']) > 4001)) {
216
+ $invalid_properties[] = "invalid value for 'merchantComment', the character length must be smaller than or equal to 4001.";
217
+ }
218
+
219
+ if (!is_null($this->container['merchantComment']) && (strlen($this->container['merchantComment']) < 0)) {
220
+ $invalid_properties[] = "invalid value for 'merchantComment', the character length must be bigger than or equal to 0.";
221
+ }
222
+
223
+ return $invalid_properties;
224
+ }
225
+
226
+ /**
227
+ * validate all the properties in the model
228
+ * return true if all passed
229
+ *
230
+ * @return bool True if all properties are valid
231
+ */
232
+ public function valid()
233
+ {
234
+
235
+ if ($this->container['channelReturnNo'] === null) {
236
+ return false;
237
+ }
238
+ if ($this->container['channelOrderNo'] === null) {
239
+ return false;
240
+ }
241
+ if ($this->container['lines'] === null) {
242
+ return false;
243
+ }
244
+ $allowed_values = ["PRODUCT_DEFECT", "PRODUCT_UNSATISFACTORY", "REFUSED", "REFUSED_DAMAGED", "WRONG_ADDRESS", "NOT_COLLECTED", "OTHER"];
245
+ if (!in_array($this->container['reason'], $allowed_values)) {
246
+ return false;
247
+ }
248
+ if (strlen($this->container['customerComment']) > 4001) {
249
+ return false;
250
+ }
251
+ if (strlen($this->container['customerComment']) < 0) {
252
+ return false;
253
+ }
254
+ if (strlen($this->container['merchantComment']) > 4001) {
255
+ return false;
256
+ }
257
+ if (strlen($this->container['merchantComment']) < 0) {
258
+ return false;
259
+ }
260
+ return true;
261
+ }
262
+
263
+
264
+ /**
265
+ * Gets channelReturnNo
266
+ * @return string
267
+ */
268
+ public function getChannelReturnNo()
269
+ {
270
+ return $this->container['channelReturnNo'];
271
+ }
272
+
273
+ /**
274
+ * Sets channelReturnNo
275
+ * @param string $channelReturnNo
276
+ * @return $this
277
+ */
278
+ public function setChannelReturnNo($channelReturnNo)
279
+ {
280
+ $this->container['channelReturnNo'] = $channelReturnNo;
281
+
282
+ return $this;
283
+ }
284
+
285
+ /**
286
+ * Gets channelOrderNo
287
+ * @return string
288
+ */
289
+ public function getChannelOrderNo()
290
+ {
291
+ return $this->container['channelOrderNo'];
292
+ }
293
+
294
+ /**
295
+ * Sets channelOrderNo
296
+ * @param string $channelOrderNo
297
+ * @return $this
298
+ */
299
+ public function setChannelOrderNo($channelOrderNo)
300
+ {
301
+ $this->container['channelOrderNo'] = $channelOrderNo;
302
+
303
+ return $this;
304
+ }
305
+
306
+ /**
307
+ * Gets lines
308
+ * @return \ChannelEngine\ApiClient\Model\ChannelReturnLineResponse[]
309
+ */
310
+ public function getLines()
311
+ {
312
+ return $this->container['lines'];
313
+ }
314
+
315
+ /**
316
+ * Sets lines
317
+ * @param \ChannelEngine\ApiClient\Model\ChannelReturnLineResponse[] $lines
318
+ * @return $this
319
+ */
320
+ public function setLines($lines)
321
+ {
322
+ $this->container['lines'] = $lines;
323
+
324
+ return $this;
325
+ }
326
+
327
+ /**
328
+ * Gets reason
329
+ * @return string
330
+ */
331
+ public function getReason()
332
+ {
333
+ return $this->container['reason'];
334
+ }
335
+
336
+ /**
337
+ * Sets reason
338
+ * @param string $reason
339
+ * @return $this
340
+ */
341
+ public function setReason($reason)
342
+ {
343
+ $allowed_values = array('PRODUCT_DEFECT', 'PRODUCT_UNSATISFACTORY', 'REFUSED', 'REFUSED_DAMAGED', 'WRONG_ADDRESS', 'NOT_COLLECTED', 'OTHER');
344
+ if (!is_null($reason) && (!in_array($reason, $allowed_values))) {
345
+ throw new \InvalidArgumentException("Invalid value for 'reason', must be one of 'PRODUCT_DEFECT', 'PRODUCT_UNSATISFACTORY', 'REFUSED', 'REFUSED_DAMAGED', 'WRONG_ADDRESS', 'NOT_COLLECTED', 'OTHER'");
346
+ }
347
+ $this->container['reason'] = $reason;
348
+
349
+ return $this;
350
+ }
351
+
352
+ /**
353
+ * Gets customerComment
354
+ * @return string
355
+ */
356
+ public function getCustomerComment()
357
+ {
358
+ return $this->container['customerComment'];
359
+ }
360
+
361
+ /**
362
+ * Sets customerComment
363
+ * @param string $customerComment
364
+ * @return $this
365
+ */
366
+ public function setCustomerComment($customerComment)
367
+ {
368
+ if (!is_null($customerComment) && (strlen($customerComment) > 4001)) {
369
+ throw new \InvalidArgumentException('invalid length for $customerComment when calling ChannelReturnResponse., must be smaller than or equal to 4001.');
370
+ }
371
+ if (!is_null($customerComment) && (strlen($customerComment) < 0)) {
372
+ throw new \InvalidArgumentException('invalid length for $customerComment when calling ChannelReturnResponse., must be bigger than or equal to 0.');
373
+ }
374
+
375
+ $this->container['customerComment'] = $customerComment;
376
+
377
+ return $this;
378
+ }
379
+
380
+ /**
381
+ * Gets merchantComment
382
+ * @return string
383
+ */
384
+ public function getMerchantComment()
385
+ {
386
+ return $this->container['merchantComment'];
387
+ }
388
+
389
+ /**
390
+ * Sets merchantComment
391
+ * @param string $merchantComment
392
+ * @return $this
393
+ */
394
+ public function setMerchantComment($merchantComment)
395
+ {
396
+ if (!is_null($merchantComment) && (strlen($merchantComment) > 4001)) {
397
+ throw new \InvalidArgumentException('invalid length for $merchantComment when calling ChannelReturnResponse., must be smaller than or equal to 4001.');
398
+ }
399
+ if (!is_null($merchantComment) && (strlen($merchantComment) < 0)) {
400
+ throw new \InvalidArgumentException('invalid length for $merchantComment when calling ChannelReturnResponse., must be bigger than or equal to 0.');
401
+ }
402
+
403
+ $this->container['merchantComment'] = $merchantComment;
404
+
405
+ return $this;
406
+ }
407
+
408
+ /**
409
+ * Gets refundInclVat
410
+ * @return double
411
+ */
412
+ public function getRefundInclVat()
413
+ {
414
+ return $this->container['refundInclVat'];
415
+ }
416
+
417
+ /**
418
+ * Sets refundInclVat
419
+ * @param double $refundInclVat
420
+ * @return $this
421
+ */
422
+ public function setRefundInclVat($refundInclVat)
423
+ {
424
+ $this->container['refundInclVat'] = $refundInclVat;
425
+
426
+ return $this;
427
+ }
428
+
429
+ /**
430
+ * Gets refundExclVat
431
+ * @return double
432
+ */
433
+ public function getRefundExclVat()
434
+ {
435
+ return $this->container['refundExclVat'];
436
+ }
437
+
438
+ /**
439
+ * Sets refundExclVat
440
+ * @param double $refundExclVat
441
+ * @return $this
442
+ */
443
+ public function setRefundExclVat($refundExclVat)
444
+ {
445
+ $this->container['refundExclVat'] = $refundExclVat;
446
+
447
+ return $this;
448
+ }
449
+ /**
450
+ * Returns true if offset exists. False otherwise.
451
+ * @param integer $offset Offset
452
+ * @return boolean
453
+ */
454
+ public function offsetExists($offset)
455
+ {
456
+ return isset($this->container[$offset]);
457
+ }
458
+
459
+ /**
460
+ * Gets offset.
461
+ * @param integer $offset Offset
462
+ * @return mixed
463
+ */
464
+ public function offsetGet($offset)
465
+ {
466
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
467
+ }
468
+
469
+ /**
470
+ * Sets value based on offset.
471
+ * @param integer $offset Offset
472
+ * @param mixed $value Value to be set
473
+ * @return void
474
+ */
475
+ public function offsetSet($offset, $value)
476
+ {
477
+ if (is_null($offset)) {
478
+ $this->container[] = $value;
479
+ } else {
480
+ $this->container[$offset] = $value;
481
+ }
482
+ }
483
+
484
+ /**
485
+ * Unsets offset.
486
+ * @param integer $offset Offset
487
+ * @return void
488
+ */
489
+ public function offsetUnset($offset)
490
+ {
491
+ unset($this->container[$offset]);
492
+ }
493
+
494
+ /**
495
+ * Gets the string presentation of the object
496
+ * @return string
497
+ */
498
+ public function __toString()
499
+ {
500
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
501
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
502
+ }
503
+
504
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
505
+ }
506
+ }
507
+
508
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ChannelShipmentLineResponse.php ADDED
@@ -0,0 +1,267 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ChannelShipmentLineResponse
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * ChannelShipmentLineResponse Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ChannelShipmentLineResponse implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'ChannelShipmentLineResponse';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'channelProductNo' => 'string',
58
+ 'quantity' => 'int'
59
+ ];
60
+
61
+ public static function swaggerTypes()
62
+ {
63
+ return self::$swaggerTypes;
64
+ }
65
+
66
+ /**
67
+ * Array of attributes where the key is the local name, and the value is the original name
68
+ * @var string[]
69
+ */
70
+ protected static $attributeMap = [
71
+ 'channelProductNo' => 'ChannelProductNo',
72
+ 'quantity' => 'Quantity'
73
+ ];
74
+
75
+
76
+ /**
77
+ * Array of attributes to setter functions (for deserialization of responses)
78
+ * @var string[]
79
+ */
80
+ protected static $setters = [
81
+ 'channelProductNo' => 'setChannelProductNo',
82
+ 'quantity' => 'setQuantity'
83
+ ];
84
+
85
+
86
+ /**
87
+ * Array of attributes to getter functions (for serialization of requests)
88
+ * @var string[]
89
+ */
90
+ protected static $getters = [
91
+ 'channelProductNo' => 'getChannelProductNo',
92
+ 'quantity' => 'getQuantity'
93
+ ];
94
+
95
+ public static function attributeMap()
96
+ {
97
+ return self::$attributeMap;
98
+ }
99
+
100
+ public static function setters()
101
+ {
102
+ return self::$setters;
103
+ }
104
+
105
+ public static function getters()
106
+ {
107
+ return self::$getters;
108
+ }
109
+
110
+
111
+
112
+
113
+
114
+ /**
115
+ * Associative array for storing property values
116
+ * @var mixed[]
117
+ */
118
+ protected $container = [];
119
+
120
+ /**
121
+ * Constructor
122
+ * @param mixed[] $data Associated array of property values initializing the model
123
+ */
124
+ public function __construct(array $data = null)
125
+ {
126
+ $this->container['channelProductNo'] = isset($data['channelProductNo']) ? $data['channelProductNo'] : null;
127
+ $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null;
128
+ }
129
+
130
+ /**
131
+ * show all the invalid properties with reasons.
132
+ *
133
+ * @return array invalid properties with reasons
134
+ */
135
+ public function listInvalidProperties()
136
+ {
137
+ $invalid_properties = [];
138
+
139
+ if ($this->container['channelProductNo'] === null) {
140
+ $invalid_properties[] = "'channelProductNo' can't be null";
141
+ }
142
+ if ($this->container['quantity'] === null) {
143
+ $invalid_properties[] = "'quantity' can't be null";
144
+ }
145
+ return $invalid_properties;
146
+ }
147
+
148
+ /**
149
+ * validate all the properties in the model
150
+ * return true if all passed
151
+ *
152
+ * @return bool True if all properties are valid
153
+ */
154
+ public function valid()
155
+ {
156
+
157
+ if ($this->container['channelProductNo'] === null) {
158
+ return false;
159
+ }
160
+ if ($this->container['quantity'] === null) {
161
+ return false;
162
+ }
163
+ return true;
164
+ }
165
+
166
+
167
+ /**
168
+ * Gets channelProductNo
169
+ * @return string
170
+ */
171
+ public function getChannelProductNo()
172
+ {
173
+ return $this->container['channelProductNo'];
174
+ }
175
+
176
+ /**
177
+ * Sets channelProductNo
178
+ * @param string $channelProductNo
179
+ * @return $this
180
+ */
181
+ public function setChannelProductNo($channelProductNo)
182
+ {
183
+ $this->container['channelProductNo'] = $channelProductNo;
184
+
185
+ return $this;
186
+ }
187
+
188
+ /**
189
+ * Gets quantity
190
+ * @return int
191
+ */
192
+ public function getQuantity()
193
+ {
194
+ return $this->container['quantity'];
195
+ }
196
+
197
+ /**
198
+ * Sets quantity
199
+ * @param int $quantity
200
+ * @return $this
201
+ */
202
+ public function setQuantity($quantity)
203
+ {
204
+ $this->container['quantity'] = $quantity;
205
+
206
+ return $this;
207
+ }
208
+ /**
209
+ * Returns true if offset exists. False otherwise.
210
+ * @param integer $offset Offset
211
+ * @return boolean
212
+ */
213
+ public function offsetExists($offset)
214
+ {
215
+ return isset($this->container[$offset]);
216
+ }
217
+
218
+ /**
219
+ * Gets offset.
220
+ * @param integer $offset Offset
221
+ * @return mixed
222
+ */
223
+ public function offsetGet($offset)
224
+ {
225
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
226
+ }
227
+
228
+ /**
229
+ * Sets value based on offset.
230
+ * @param integer $offset Offset
231
+ * @param mixed $value Value to be set
232
+ * @return void
233
+ */
234
+ public function offsetSet($offset, $value)
235
+ {
236
+ if (is_null($offset)) {
237
+ $this->container[] = $value;
238
+ } else {
239
+ $this->container[$offset] = $value;
240
+ }
241
+ }
242
+
243
+ /**
244
+ * Unsets offset.
245
+ * @param integer $offset Offset
246
+ * @return void
247
+ */
248
+ public function offsetUnset($offset)
249
+ {
250
+ unset($this->container[$offset]);
251
+ }
252
+
253
+ /**
254
+ * Gets the string presentation of the object
255
+ * @return string
256
+ */
257
+ public function __toString()
258
+ {
259
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
260
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
261
+ }
262
+
263
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
264
+ }
265
+ }
266
+
267
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ChannelShipmentResponse.php ADDED
@@ -0,0 +1,408 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ChannelShipmentResponse
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * ChannelShipmentResponse Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ChannelShipmentResponse implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'ChannelShipmentResponse';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'channelOrderNo' => 'string',
58
+ 'lines' => '\ChannelEngine\ApiClient\Model\ChannelShipmentLineResponse[]',
59
+ 'trackTraceNo' => 'string',
60
+ 'trackTraceUrl' => 'string',
61
+ 'method' => 'string'
62
+ ];
63
+
64
+ public static function swaggerTypes()
65
+ {
66
+ return self::$swaggerTypes;
67
+ }
68
+
69
+ /**
70
+ * Array of attributes where the key is the local name, and the value is the original name
71
+ * @var string[]
72
+ */
73
+ protected static $attributeMap = [
74
+ 'channelOrderNo' => 'ChannelOrderNo',
75
+ 'lines' => 'Lines',
76
+ 'trackTraceNo' => 'TrackTraceNo',
77
+ 'trackTraceUrl' => 'TrackTraceUrl',
78
+ 'method' => 'Method'
79
+ ];
80
+
81
+
82
+ /**
83
+ * Array of attributes to setter functions (for deserialization of responses)
84
+ * @var string[]
85
+ */
86
+ protected static $setters = [
87
+ 'channelOrderNo' => 'setChannelOrderNo',
88
+ 'lines' => 'setLines',
89
+ 'trackTraceNo' => 'setTrackTraceNo',
90
+ 'trackTraceUrl' => 'setTrackTraceUrl',
91
+ 'method' => 'setMethod'
92
+ ];
93
+
94
+
95
+ /**
96
+ * Array of attributes to getter functions (for serialization of requests)
97
+ * @var string[]
98
+ */
99
+ protected static $getters = [
100
+ 'channelOrderNo' => 'getChannelOrderNo',
101
+ 'lines' => 'getLines',
102
+ 'trackTraceNo' => 'getTrackTraceNo',
103
+ 'trackTraceUrl' => 'getTrackTraceUrl',
104
+ 'method' => 'getMethod'
105
+ ];
106
+
107
+ public static function attributeMap()
108
+ {
109
+ return self::$attributeMap;
110
+ }
111
+
112
+ public static function setters()
113
+ {
114
+ return self::$setters;
115
+ }
116
+
117
+ public static function getters()
118
+ {
119
+ return self::$getters;
120
+ }
121
+
122
+
123
+
124
+
125
+
126
+ /**
127
+ * Associative array for storing property values
128
+ * @var mixed[]
129
+ */
130
+ protected $container = [];
131
+
132
+ /**
133
+ * Constructor
134
+ * @param mixed[] $data Associated array of property values initializing the model
135
+ */
136
+ public function __construct(array $data = null)
137
+ {
138
+ $this->container['channelOrderNo'] = isset($data['channelOrderNo']) ? $data['channelOrderNo'] : null;
139
+ $this->container['lines'] = isset($data['lines']) ? $data['lines'] : null;
140
+ $this->container['trackTraceNo'] = isset($data['trackTraceNo']) ? $data['trackTraceNo'] : null;
141
+ $this->container['trackTraceUrl'] = isset($data['trackTraceUrl']) ? $data['trackTraceUrl'] : null;
142
+ $this->container['method'] = isset($data['method']) ? $data['method'] : null;
143
+ }
144
+
145
+ /**
146
+ * show all the invalid properties with reasons.
147
+ *
148
+ * @return array invalid properties with reasons
149
+ */
150
+ public function listInvalidProperties()
151
+ {
152
+ $invalid_properties = [];
153
+
154
+ if ($this->container['channelOrderNo'] === null) {
155
+ $invalid_properties[] = "'channelOrderNo' can't be null";
156
+ }
157
+ if ($this->container['lines'] === null) {
158
+ $invalid_properties[] = "'lines' can't be null";
159
+ }
160
+ if (!is_null($this->container['trackTraceNo']) && (strlen($this->container['trackTraceNo']) > 50)) {
161
+ $invalid_properties[] = "invalid value for 'trackTraceNo', the character length must be smaller than or equal to 50.";
162
+ }
163
+
164
+ if (!is_null($this->container['trackTraceNo']) && (strlen($this->container['trackTraceNo']) < 0)) {
165
+ $invalid_properties[] = "invalid value for 'trackTraceNo', the character length must be bigger than or equal to 0.";
166
+ }
167
+
168
+ if (!is_null($this->container['trackTraceUrl']) && (strlen($this->container['trackTraceUrl']) > 250)) {
169
+ $invalid_properties[] = "invalid value for 'trackTraceUrl', the character length must be smaller than or equal to 250.";
170
+ }
171
+
172
+ if (!is_null($this->container['trackTraceUrl']) && (strlen($this->container['trackTraceUrl']) < 0)) {
173
+ $invalid_properties[] = "invalid value for 'trackTraceUrl', the character length must be bigger than or equal to 0.";
174
+ }
175
+
176
+ if (!is_null($this->container['method']) && (strlen($this->container['method']) > 50)) {
177
+ $invalid_properties[] = "invalid value for 'method', the character length must be smaller than or equal to 50.";
178
+ }
179
+
180
+ if (!is_null($this->container['method']) && (strlen($this->container['method']) < 0)) {
181
+ $invalid_properties[] = "invalid value for 'method', the character length must be bigger than or equal to 0.";
182
+ }
183
+
184
+ return $invalid_properties;
185
+ }
186
+
187
+ /**
188
+ * validate all the properties in the model
189
+ * return true if all passed
190
+ *
191
+ * @return bool True if all properties are valid
192
+ */
193
+ public function valid()
194
+ {
195
+
196
+ if ($this->container['channelOrderNo'] === null) {
197
+ return false;
198
+ }
199
+ if ($this->container['lines'] === null) {
200
+ return false;
201
+ }
202
+ if (strlen($this->container['trackTraceNo']) > 50) {
203
+ return false;
204
+ }
205
+ if (strlen($this->container['trackTraceNo']) < 0) {
206
+ return false;
207
+ }
208
+ if (strlen($this->container['trackTraceUrl']) > 250) {
209
+ return false;
210
+ }
211
+ if (strlen($this->container['trackTraceUrl']) < 0) {
212
+ return false;
213
+ }
214
+ if (strlen($this->container['method']) > 50) {
215
+ return false;
216
+ }
217
+ if (strlen($this->container['method']) < 0) {
218
+ return false;
219
+ }
220
+ return true;
221
+ }
222
+
223
+
224
+ /**
225
+ * Gets channelOrderNo
226
+ * @return string
227
+ */
228
+ public function getChannelOrderNo()
229
+ {
230
+ return $this->container['channelOrderNo'];
231
+ }
232
+
233
+ /**
234
+ * Sets channelOrderNo
235
+ * @param string $channelOrderNo
236
+ * @return $this
237
+ */
238
+ public function setChannelOrderNo($channelOrderNo)
239
+ {
240
+ $this->container['channelOrderNo'] = $channelOrderNo;
241
+
242
+ return $this;
243
+ }
244
+
245
+ /**
246
+ * Gets lines
247
+ * @return \ChannelEngine\ApiClient\Model\ChannelShipmentLineResponse[]
248
+ */
249
+ public function getLines()
250
+ {
251
+ return $this->container['lines'];
252
+ }
253
+
254
+ /**
255
+ * Sets lines
256
+ * @param \ChannelEngine\ApiClient\Model\ChannelShipmentLineResponse[] $lines
257
+ * @return $this
258
+ */
259
+ public function setLines($lines)
260
+ {
261
+ $this->container['lines'] = $lines;
262
+
263
+ return $this;
264
+ }
265
+
266
+ /**
267
+ * Gets trackTraceNo
268
+ * @return string
269
+ */
270
+ public function getTrackTraceNo()
271
+ {
272
+ return $this->container['trackTraceNo'];
273
+ }
274
+
275
+ /**
276
+ * Sets trackTraceNo
277
+ * @param string $trackTraceNo
278
+ * @return $this
279
+ */
280
+ public function setTrackTraceNo($trackTraceNo)
281
+ {
282
+ if (!is_null($trackTraceNo) && (strlen($trackTraceNo) > 50)) {
283
+ throw new \InvalidArgumentException('invalid length for $trackTraceNo when calling ChannelShipmentResponse., must be smaller than or equal to 50.');
284
+ }
285
+ if (!is_null($trackTraceNo) && (strlen($trackTraceNo) < 0)) {
286
+ throw new \InvalidArgumentException('invalid length for $trackTraceNo when calling ChannelShipmentResponse., must be bigger than or equal to 0.');
287
+ }
288
+
289
+ $this->container['trackTraceNo'] = $trackTraceNo;
290
+
291
+ return $this;
292
+ }
293
+
294
+ /**
295
+ * Gets trackTraceUrl
296
+ * @return string
297
+ */
298
+ public function getTrackTraceUrl()
299
+ {
300
+ return $this->container['trackTraceUrl'];
301
+ }
302
+
303
+ /**
304
+ * Sets trackTraceUrl
305
+ * @param string $trackTraceUrl
306
+ * @return $this
307
+ */
308
+ public function setTrackTraceUrl($trackTraceUrl)
309
+ {
310
+ if (!is_null($trackTraceUrl) && (strlen($trackTraceUrl) > 250)) {
311
+ throw new \InvalidArgumentException('invalid length for $trackTraceUrl when calling ChannelShipmentResponse., must be smaller than or equal to 250.');
312
+ }
313
+ if (!is_null($trackTraceUrl) && (strlen($trackTraceUrl) < 0)) {
314
+ throw new \InvalidArgumentException('invalid length for $trackTraceUrl when calling ChannelShipmentResponse., must be bigger than or equal to 0.');
315
+ }
316
+
317
+ $this->container['trackTraceUrl'] = $trackTraceUrl;
318
+
319
+ return $this;
320
+ }
321
+
322
+ /**
323
+ * Gets method
324
+ * @return string
325
+ */
326
+ public function getMethod()
327
+ {
328
+ return $this->container['method'];
329
+ }
330
+
331
+ /**
332
+ * Sets method
333
+ * @param string $method
334
+ * @return $this
335
+ */
336
+ public function setMethod($method)
337
+ {
338
+ if (!is_null($method) && (strlen($method) > 50)) {
339
+ throw new \InvalidArgumentException('invalid length for $method when calling ChannelShipmentResponse., must be smaller than or equal to 50.');
340
+ }
341
+ if (!is_null($method) && (strlen($method) < 0)) {
342
+ throw new \InvalidArgumentException('invalid length for $method when calling ChannelShipmentResponse., must be bigger than or equal to 0.');
343
+ }
344
+
345
+ $this->container['method'] = $method;
346
+
347
+ return $this;
348
+ }
349
+ /**
350
+ * Returns true if offset exists. False otherwise.
351
+ * @param integer $offset Offset
352
+ * @return boolean
353
+ */
354
+ public function offsetExists($offset)
355
+ {
356
+ return isset($this->container[$offset]);
357
+ }
358
+
359
+ /**
360
+ * Gets offset.
361
+ * @param integer $offset Offset
362
+ * @return mixed
363
+ */
364
+ public function offsetGet($offset)
365
+ {
366
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
367
+ }
368
+
369
+ /**
370
+ * Sets value based on offset.
371
+ * @param integer $offset Offset
372
+ * @param mixed $value Value to be set
373
+ * @return void
374
+ */
375
+ public function offsetSet($offset, $value)
376
+ {
377
+ if (is_null($offset)) {
378
+ $this->container[] = $value;
379
+ } else {
380
+ $this->container[$offset] = $value;
381
+ }
382
+ }
383
+
384
+ /**
385
+ * Unsets offset.
386
+ * @param integer $offset Offset
387
+ * @return void
388
+ */
389
+ public function offsetUnset($offset)
390
+ {
391
+ unset($this->container[$offset]);
392
+ }
393
+
394
+ /**
395
+ * Gets the string presentation of the object
396
+ * @return string
397
+ */
398
+ public function __toString()
399
+ {
400
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
401
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
402
+ }
403
+
404
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
405
+ }
406
+ }
407
+
408
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/CollectionOfBackOrder.php ADDED
@@ -0,0 +1,359 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * CollectionOfBackOrder
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * CollectionOfBackOrder Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class CollectionOfBackOrder implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'CollectionOfBackOrder';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'content' => '\ChannelEngine\ApiClient\Model\BackOrder[]',
58
+ 'count' => 'int',
59
+ 'statusCode' => 'int',
60
+ 'success' => 'bool',
61
+ 'message' => 'string',
62
+ 'validationErrors' => 'map[string,string[]]'
63
+ ];
64
+
65
+ public static function swaggerTypes()
66
+ {
67
+ return self::$swaggerTypes;
68
+ }
69
+
70
+ /**
71
+ * Array of attributes where the key is the local name, and the value is the original name
72
+ * @var string[]
73
+ */
74
+ protected static $attributeMap = [
75
+ 'content' => 'Content',
76
+ 'count' => 'Count',
77
+ 'statusCode' => 'StatusCode',
78
+ 'success' => 'Success',
79
+ 'message' => 'Message',
80
+ 'validationErrors' => 'ValidationErrors'
81
+ ];
82
+
83
+
84
+ /**
85
+ * Array of attributes to setter functions (for deserialization of responses)
86
+ * @var string[]
87
+ */
88
+ protected static $setters = [
89
+ 'content' => 'setContent',
90
+ 'count' => 'setCount',
91
+ 'statusCode' => 'setStatusCode',
92
+ 'success' => 'setSuccess',
93
+ 'message' => 'setMessage',
94
+ 'validationErrors' => 'setValidationErrors'
95
+ ];
96
+
97
+
98
+ /**
99
+ * Array of attributes to getter functions (for serialization of requests)
100
+ * @var string[]
101
+ */
102
+ protected static $getters = [
103
+ 'content' => 'getContent',
104
+ 'count' => 'getCount',
105
+ 'statusCode' => 'getStatusCode',
106
+ 'success' => 'getSuccess',
107
+ 'message' => 'getMessage',
108
+ 'validationErrors' => 'getValidationErrors'
109
+ ];
110
+
111
+ public static function attributeMap()
112
+ {
113
+ return self::$attributeMap;
114
+ }
115
+
116
+ public static function setters()
117
+ {
118
+ return self::$setters;
119
+ }
120
+
121
+ public static function getters()
122
+ {
123
+ return self::$getters;
124
+ }
125
+
126
+
127
+
128
+
129
+
130
+ /**
131
+ * Associative array for storing property values
132
+ * @var mixed[]
133
+ */
134
+ protected $container = [];
135
+
136
+ /**
137
+ * Constructor
138
+ * @param mixed[] $data Associated array of property values initializing the model
139
+ */
140
+ public function __construct(array $data = null)
141
+ {
142
+ $this->container['content'] = isset($data['content']) ? $data['content'] : null;
143
+ $this->container['count'] = isset($data['count']) ? $data['count'] : null;
144
+ $this->container['statusCode'] = isset($data['statusCode']) ? $data['statusCode'] : null;
145
+ $this->container['success'] = isset($data['success']) ? $data['success'] : null;
146
+ $this->container['message'] = isset($data['message']) ? $data['message'] : null;
147
+ $this->container['validationErrors'] = isset($data['validationErrors']) ? $data['validationErrors'] : null;
148
+ }
149
+
150
+ /**
151
+ * show all the invalid properties with reasons.
152
+ *
153
+ * @return array invalid properties with reasons
154
+ */
155
+ public function listInvalidProperties()
156
+ {
157
+ $invalid_properties = [];
158
+
159
+ return $invalid_properties;
160
+ }
161
+
162
+ /**
163
+ * validate all the properties in the model
164
+ * return true if all passed
165
+ *
166
+ * @return bool True if all properties are valid
167
+ */
168
+ public function valid()
169
+ {
170
+
171
+ return true;
172
+ }
173
+
174
+
175
+ /**
176
+ * Gets content
177
+ * @return \ChannelEngine\ApiClient\Model\BackOrder[]
178
+ */
179
+ public function getContent()
180
+ {
181
+ return $this->container['content'];
182
+ }
183
+
184
+ /**
185
+ * Sets content
186
+ * @param \ChannelEngine\ApiClient\Model\BackOrder[] $content
187
+ * @return $this
188
+ */
189
+ public function setContent($content)
190
+ {
191
+ $this->container['content'] = $content;
192
+
193
+ return $this;
194
+ }
195
+
196
+ /**
197
+ * Gets count
198
+ * @return int
199
+ */
200
+ public function getCount()
201
+ {
202
+ return $this->container['count'];
203
+ }
204
+
205
+ /**
206
+ * Sets count
207
+ * @param int $count
208
+ * @return $this
209
+ */
210
+ public function setCount($count)
211
+ {
212
+ $this->container['count'] = $count;
213
+
214
+ return $this;
215
+ }
216
+
217
+ /**
218
+ * Gets statusCode
219
+ * @return int
220
+ */
221
+ public function getStatusCode()
222
+ {
223
+ return $this->container['statusCode'];
224
+ }
225
+
226
+ /**
227
+ * Sets statusCode
228
+ * @param int $statusCode
229
+ * @return $this
230
+ */
231
+ public function setStatusCode($statusCode)
232
+ {
233
+ $this->container['statusCode'] = $statusCode;
234
+
235
+ return $this;
236
+ }
237
+
238
+ /**
239
+ * Gets success
240
+ * @return bool
241
+ */
242
+ public function getSuccess()
243
+ {
244
+ return $this->container['success'];
245
+ }
246
+
247
+ /**
248
+ * Sets success
249
+ * @param bool $success
250
+ * @return $this
251
+ */
252
+ public function setSuccess($success)
253
+ {
254
+ $this->container['success'] = $success;
255
+
256
+ return $this;
257
+ }
258
+
259
+ /**
260
+ * Gets message
261
+ * @return string
262
+ */
263
+ public function getMessage()
264
+ {
265
+ return $this->container['message'];
266
+ }
267
+
268
+ /**
269
+ * Sets message
270
+ * @param string $message
271
+ * @return $this
272
+ */
273
+ public function setMessage($message)
274
+ {
275
+ $this->container['message'] = $message;
276
+
277
+ return $this;
278
+ }
279
+
280
+ /**
281
+ * Gets validationErrors
282
+ * @return map[string,string[]]
283
+ */
284
+ public function getValidationErrors()
285
+ {
286
+ return $this->container['validationErrors'];
287
+ }
288
+
289
+ /**
290
+ * Sets validationErrors
291
+ * @param map[string,string[]] $validationErrors
292
+ * @return $this
293
+ */
294
+ public function setValidationErrors($validationErrors)
295
+ {
296
+ $this->container['validationErrors'] = $validationErrors;
297
+
298
+ return $this;
299
+ }
300
+ /**
301
+ * Returns true if offset exists. False otherwise.
302
+ * @param integer $offset Offset
303
+ * @return boolean
304
+ */
305
+ public function offsetExists($offset)
306
+ {
307
+ return isset($this->container[$offset]);
308
+ }
309
+
310
+ /**
311
+ * Gets offset.
312
+ * @param integer $offset Offset
313
+ * @return mixed
314
+ */
315
+ public function offsetGet($offset)
316
+ {
317
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
318
+ }
319
+
320
+ /**
321
+ * Sets value based on offset.
322
+ * @param integer $offset Offset
323
+ * @param mixed $value Value to be set
324
+ * @return void
325
+ */
326
+ public function offsetSet($offset, $value)
327
+ {
328
+ if (is_null($offset)) {
329
+ $this->container[] = $value;
330
+ } else {
331
+ $this->container[$offset] = $value;
332
+ }
333
+ }
334
+
335
+ /**
336
+ * Unsets offset.
337
+ * @param integer $offset Offset
338
+ * @return void
339
+ */
340
+ public function offsetUnset($offset)
341
+ {
342
+ unset($this->container[$offset]);
343
+ }
344
+
345
+ /**
346
+ * Gets the string presentation of the object
347
+ * @return string
348
+ */
349
+ public function __toString()
350
+ {
351
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
352
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
353
+ }
354
+
355
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
356
+ }
357
+ }
358
+
359
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/CollectionOfChannelCancellationResponse.php ADDED
@@ -0,0 +1,359 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * CollectionOfChannelCancellationResponse
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * CollectionOfChannelCancellationResponse Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class CollectionOfChannelCancellationResponse implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'CollectionOfChannelCancellationResponse';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'content' => '\ChannelEngine\ApiClient\Model\ChannelCancellationResponse[]',
58
+ 'count' => 'int',
59
+ 'statusCode' => 'int',
60
+ 'success' => 'bool',
61
+ 'message' => 'string',
62
+ 'validationErrors' => 'map[string,string[]]'
63
+ ];
64
+
65
+ public static function swaggerTypes()
66
+ {
67
+ return self::$swaggerTypes;
68
+ }
69
+
70
+ /**
71
+ * Array of attributes where the key is the local name, and the value is the original name
72
+ * @var string[]
73
+ */
74
+ protected static $attributeMap = [
75
+ 'content' => 'Content',
76
+ 'count' => 'Count',
77
+ 'statusCode' => 'StatusCode',
78
+ 'success' => 'Success',
79
+ 'message' => 'Message',
80
+ 'validationErrors' => 'ValidationErrors'
81
+ ];
82
+
83
+
84
+ /**
85
+ * Array of attributes to setter functions (for deserialization of responses)
86
+ * @var string[]
87
+ */
88
+ protected static $setters = [
89
+ 'content' => 'setContent',
90
+ 'count' => 'setCount',
91
+ 'statusCode' => 'setStatusCode',
92
+ 'success' => 'setSuccess',
93
+ 'message' => 'setMessage',
94
+ 'validationErrors' => 'setValidationErrors'
95
+ ];
96
+
97
+
98
+ /**
99
+ * Array of attributes to getter functions (for serialization of requests)
100
+ * @var string[]
101
+ */
102
+ protected static $getters = [
103
+ 'content' => 'getContent',
104
+ 'count' => 'getCount',
105
+ 'statusCode' => 'getStatusCode',
106
+ 'success' => 'getSuccess',
107
+ 'message' => 'getMessage',
108
+ 'validationErrors' => 'getValidationErrors'
109
+ ];
110
+
111
+ public static function attributeMap()
112
+ {
113
+ return self::$attributeMap;
114
+ }
115
+
116
+ public static function setters()
117
+ {
118
+ return self::$setters;
119
+ }
120
+
121
+ public static function getters()
122
+ {
123
+ return self::$getters;
124
+ }
125
+
126
+
127
+
128
+
129
+
130
+ /**
131
+ * Associative array for storing property values
132
+ * @var mixed[]
133
+ */
134
+ protected $container = [];
135
+
136
+ /**
137
+ * Constructor
138
+ * @param mixed[] $data Associated array of property values initializing the model
139
+ */
140
+ public function __construct(array $data = null)
141
+ {
142
+ $this->container['content'] = isset($data['content']) ? $data['content'] : null;
143
+ $this->container['count'] = isset($data['count']) ? $data['count'] : null;
144
+ $this->container['statusCode'] = isset($data['statusCode']) ? $data['statusCode'] : null;
145
+ $this->container['success'] = isset($data['success']) ? $data['success'] : null;
146
+ $this->container['message'] = isset($data['message']) ? $data['message'] : null;
147
+ $this->container['validationErrors'] = isset($data['validationErrors']) ? $data['validationErrors'] : null;
148
+ }
149
+
150
+ /**
151
+ * show all the invalid properties with reasons.
152
+ *
153
+ * @return array invalid properties with reasons
154
+ */
155
+ public function listInvalidProperties()
156
+ {
157
+ $invalid_properties = [];
158
+
159
+ return $invalid_properties;
160
+ }
161
+
162
+ /**
163
+ * validate all the properties in the model
164
+ * return true if all passed
165
+ *
166
+ * @return bool True if all properties are valid
167
+ */
168
+ public function valid()
169
+ {
170
+
171
+ return true;
172
+ }
173
+
174
+
175
+ /**
176
+ * Gets content
177
+ * @return \ChannelEngine\ApiClient\Model\ChannelCancellationResponse[]
178
+ */
179
+ public function getContent()
180
+ {
181
+ return $this->container['content'];
182
+ }
183
+
184
+ /**
185
+ * Sets content
186
+ * @param \ChannelEngine\ApiClient\Model\ChannelCancellationResponse[] $content
187
+ * @return $this
188
+ */
189
+ public function setContent($content)
190
+ {
191
+ $this->container['content'] = $content;
192
+
193
+ return $this;
194
+ }
195
+
196
+ /**
197
+ * Gets count
198
+ * @return int
199
+ */
200
+ public function getCount()
201
+ {
202
+ return $this->container['count'];
203
+ }
204
+
205
+ /**
206
+ * Sets count
207
+ * @param int $count
208
+ * @return $this
209
+ */
210
+ public function setCount($count)
211
+ {
212
+ $this->container['count'] = $count;
213
+
214
+ return $this;
215
+ }
216
+
217
+ /**
218
+ * Gets statusCode
219
+ * @return int
220
+ */
221
+ public function getStatusCode()
222
+ {
223
+ return $this->container['statusCode'];
224
+ }
225
+
226
+ /**
227
+ * Sets statusCode
228
+ * @param int $statusCode
229
+ * @return $this
230
+ */
231
+ public function setStatusCode($statusCode)
232
+ {
233
+ $this->container['statusCode'] = $statusCode;
234
+
235
+ return $this;
236
+ }
237
+
238
+ /**
239
+ * Gets success
240
+ * @return bool
241
+ */
242
+ public function getSuccess()
243
+ {
244
+ return $this->container['success'];
245
+ }
246
+
247
+ /**
248
+ * Sets success
249
+ * @param bool $success
250
+ * @return $this
251
+ */
252
+ public function setSuccess($success)
253
+ {
254
+ $this->container['success'] = $success;
255
+
256
+ return $this;
257
+ }
258
+
259
+ /**
260
+ * Gets message
261
+ * @return string
262
+ */
263
+ public function getMessage()
264
+ {
265
+ return $this->container['message'];
266
+ }
267
+
268
+ /**
269
+ * Sets message
270
+ * @param string $message
271
+ * @return $this
272
+ */
273
+ public function setMessage($message)
274
+ {
275
+ $this->container['message'] = $message;
276
+
277
+ return $this;
278
+ }
279
+
280
+ /**
281
+ * Gets validationErrors
282
+ * @return map[string,string[]]
283
+ */
284
+ public function getValidationErrors()
285
+ {
286
+ return $this->container['validationErrors'];
287
+ }
288
+
289
+ /**
290
+ * Sets validationErrors
291
+ * @param map[string,string[]] $validationErrors
292
+ * @return $this
293
+ */
294
+ public function setValidationErrors($validationErrors)
295
+ {
296
+ $this->container['validationErrors'] = $validationErrors;
297
+
298
+ return $this;
299
+ }
300
+ /**
301
+ * Returns true if offset exists. False otherwise.
302
+ * @param integer $offset Offset
303
+ * @return boolean
304
+ */
305
+ public function offsetExists($offset)
306
+ {
307
+ return isset($this->container[$offset]);
308
+ }
309
+
310
+ /**
311
+ * Gets offset.
312
+ * @param integer $offset Offset
313
+ * @return mixed
314
+ */
315
+ public function offsetGet($offset)
316
+ {
317
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
318
+ }
319
+
320
+ /**
321
+ * Sets value based on offset.
322
+ * @param integer $offset Offset
323
+ * @param mixed $value Value to be set
324
+ * @return void
325
+ */
326
+ public function offsetSet($offset, $value)
327
+ {
328
+ if (is_null($offset)) {
329
+ $this->container[] = $value;
330
+ } else {
331
+ $this->container[$offset] = $value;
332
+ }
333
+ }
334
+
335
+ /**
336
+ * Unsets offset.
337
+ * @param integer $offset Offset
338
+ * @return void
339
+ */
340
+ public function offsetUnset($offset)
341
+ {
342
+ unset($this->container[$offset]);
343
+ }
344
+
345
+ /**
346
+ * Gets the string presentation of the object
347
+ * @return string
348
+ */
349
+ public function __toString()
350
+ {
351
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
352
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
353
+ }
354
+
355
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
356
+ }
357
+ }
358
+
359
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/CollectionOfChannelOfferResponse.php ADDED
@@ -0,0 +1,359 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * CollectionOfChannelOfferResponse
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * CollectionOfChannelOfferResponse Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class CollectionOfChannelOfferResponse implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'CollectionOfChannelOfferResponse';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'content' => '\ChannelEngine\ApiClient\Model\ChannelOfferResponse[]',
58
+ 'count' => 'int',
59
+ 'statusCode' => 'int',
60
+ 'success' => 'bool',
61
+ 'message' => 'string',
62
+ 'validationErrors' => 'map[string,string[]]'
63
+ ];
64
+
65
+ public static function swaggerTypes()
66
+ {
67
+ return self::$swaggerTypes;
68
+ }
69
+
70
+ /**
71
+ * Array of attributes where the key is the local name, and the value is the original name
72
+ * @var string[]
73
+ */
74
+ protected static $attributeMap = [
75
+ 'content' => 'Content',
76
+ 'count' => 'Count',
77
+ 'statusCode' => 'StatusCode',
78
+ 'success' => 'Success',
79
+ 'message' => 'Message',
80
+ 'validationErrors' => 'ValidationErrors'
81
+ ];
82
+
83
+
84
+ /**
85
+ * Array of attributes to setter functions (for deserialization of responses)
86
+ * @var string[]
87
+ */
88
+ protected static $setters = [
89
+ 'content' => 'setContent',
90
+ 'count' => 'setCount',
91
+ 'statusCode' => 'setStatusCode',
92
+ 'success' => 'setSuccess',
93
+ 'message' => 'setMessage',
94
+ 'validationErrors' => 'setValidationErrors'
95
+ ];
96
+
97
+
98
+ /**
99
+ * Array of attributes to getter functions (for serialization of requests)
100
+ * @var string[]
101
+ */
102
+ protected static $getters = [
103
+ 'content' => 'getContent',
104
+ 'count' => 'getCount',
105
+ 'statusCode' => 'getStatusCode',
106
+ 'success' => 'getSuccess',
107
+ 'message' => 'getMessage',
108
+ 'validationErrors' => 'getValidationErrors'
109
+ ];
110
+
111
+ public static function attributeMap()
112
+ {
113
+ return self::$attributeMap;
114
+ }
115
+
116
+ public static function setters()
117
+ {
118
+ return self::$setters;
119
+ }
120
+
121
+ public static function getters()
122
+ {
123
+ return self::$getters;
124
+ }
125
+
126
+
127
+
128
+
129
+
130
+ /**
131
+ * Associative array for storing property values
132
+ * @var mixed[]
133
+ */
134
+ protected $container = [];
135
+
136
+ /**
137
+ * Constructor
138
+ * @param mixed[] $data Associated array of property values initializing the model
139
+ */
140
+ public function __construct(array $data = null)
141
+ {
142
+ $this->container['content'] = isset($data['content']) ? $data['content'] : null;
143
+ $this->container['count'] = isset($data['count']) ? $data['count'] : null;
144
+ $this->container['statusCode'] = isset($data['statusCode']) ? $data['statusCode'] : null;
145
+ $this->container['success'] = isset($data['success']) ? $data['success'] : null;
146
+ $this->container['message'] = isset($data['message']) ? $data['message'] : null;
147
+ $this->container['validationErrors'] = isset($data['validationErrors']) ? $data['validationErrors'] : null;
148
+ }
149
+
150
+ /**
151
+ * show all the invalid properties with reasons.
152
+ *
153
+ * @return array invalid properties with reasons
154
+ */
155
+ public function listInvalidProperties()
156
+ {
157
+ $invalid_properties = [];
158
+
159
+ return $invalid_properties;
160
+ }
161
+
162
+ /**
163
+ * validate all the properties in the model
164
+ * return true if all passed
165
+ *
166
+ * @return bool True if all properties are valid
167
+ */
168
+ public function valid()
169
+ {
170
+
171
+ return true;
172
+ }
173
+
174
+
175
+ /**
176
+ * Gets content
177
+ * @return \ChannelEngine\ApiClient\Model\ChannelOfferResponse[]
178
+ */
179
+ public function getContent()
180
+ {
181
+ return $this->container['content'];
182
+ }
183
+
184
+ /**
185
+ * Sets content
186
+ * @param \ChannelEngine\ApiClient\Model\ChannelOfferResponse[] $content
187
+ * @return $this
188
+ */
189
+ public function setContent($content)
190
+ {
191
+ $this->container['content'] = $content;
192
+
193
+ return $this;
194
+ }
195
+
196
+ /**
197
+ * Gets count
198
+ * @return int
199
+ */
200
+ public function getCount()
201
+ {
202
+ return $this->container['count'];
203
+ }
204
+
205
+ /**
206
+ * Sets count
207
+ * @param int $count
208
+ * @return $this
209
+ */
210
+ public function setCount($count)
211
+ {
212
+ $this->container['count'] = $count;
213
+
214
+ return $this;
215
+ }
216
+
217
+ /**
218
+ * Gets statusCode
219
+ * @return int
220
+ */
221
+ public function getStatusCode()
222
+ {
223
+ return $this->container['statusCode'];
224
+ }
225
+
226
+ /**
227
+ * Sets statusCode
228
+ * @param int $statusCode
229
+ * @return $this
230
+ */
231
+ public function setStatusCode($statusCode)
232
+ {
233
+ $this->container['statusCode'] = $statusCode;
234
+
235
+ return $this;
236
+ }
237
+
238
+ /**
239
+ * Gets success
240
+ * @return bool
241
+ */
242
+ public function getSuccess()
243
+ {
244
+ return $this->container['success'];
245
+ }
246
+
247
+ /**
248
+ * Sets success
249
+ * @param bool $success
250
+ * @return $this
251
+ */
252
+ public function setSuccess($success)
253
+ {
254
+ $this->container['success'] = $success;
255
+
256
+ return $this;
257
+ }
258
+
259
+ /**
260
+ * Gets message
261
+ * @return string
262
+ */
263
+ public function getMessage()
264
+ {
265
+ return $this->container['message'];
266
+ }
267
+
268
+ /**
269
+ * Sets message
270
+ * @param string $message
271
+ * @return $this
272
+ */
273
+ public function setMessage($message)
274
+ {
275
+ $this->container['message'] = $message;
276
+
277
+ return $this;
278
+ }
279
+
280
+ /**
281
+ * Gets validationErrors
282
+ * @return map[string,string[]]
283
+ */
284
+ public function getValidationErrors()
285
+ {
286
+ return $this->container['validationErrors'];
287
+ }
288
+
289
+ /**
290
+ * Sets validationErrors
291
+ * @param map[string,string[]] $validationErrors
292
+ * @return $this
293
+ */
294
+ public function setValidationErrors($validationErrors)
295
+ {
296
+ $this->container['validationErrors'] = $validationErrors;
297
+
298
+ return $this;
299
+ }
300
+ /**
301
+ * Returns true if offset exists. False otherwise.
302
+ * @param integer $offset Offset
303
+ * @return boolean
304
+ */
305
+ public function offsetExists($offset)
306
+ {
307
+ return isset($this->container[$offset]);
308
+ }
309
+
310
+ /**
311
+ * Gets offset.
312
+ * @param integer $offset Offset
313
+ * @return mixed
314
+ */
315
+ public function offsetGet($offset)
316
+ {
317
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
318
+ }
319
+
320
+ /**
321
+ * Sets value based on offset.
322
+ * @param integer $offset Offset
323
+ * @param mixed $value Value to be set
324
+ * @return void
325
+ */
326
+ public function offsetSet($offset, $value)
327
+ {
328
+ if (is_null($offset)) {
329
+ $this->container[] = $value;
330
+ } else {
331
+ $this->container[$offset] = $value;
332
+ }
333
+ }
334
+
335
+ /**
336
+ * Unsets offset.
337
+ * @param integer $offset Offset
338
+ * @return void
339
+ */
340
+ public function offsetUnset($offset)
341
+ {
342
+ unset($this->container[$offset]);
343
+ }
344
+
345
+ /**
346
+ * Gets the string presentation of the object
347
+ * @return string
348
+ */
349
+ public function __toString()
350
+ {
351
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
352
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
353
+ }
354
+
355
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
356
+ }
357
+ }
358
+
359
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/CollectionOfChannelReturnResponse.php ADDED
@@ -0,0 +1,359 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * CollectionOfChannelReturnResponse
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * CollectionOfChannelReturnResponse Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class CollectionOfChannelReturnResponse implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'CollectionOfChannelReturnResponse';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'content' => '\ChannelEngine\ApiClient\Model\ChannelReturnResponse[]',
58
+ 'count' => 'int',
59
+ 'statusCode' => 'int',
60
+ 'success' => 'bool',
61
+ 'message' => 'string',
62
+ 'validationErrors' => 'map[string,string[]]'
63
+ ];
64
+
65
+ public static function swaggerTypes()
66
+ {
67
+ return self::$swaggerTypes;
68
+ }
69
+
70
+ /**
71
+ * Array of attributes where the key is the local name, and the value is the original name
72
+ * @var string[]
73
+ */
74
+ protected static $attributeMap = [
75
+ 'content' => 'Content',
76
+ 'count' => 'Count',
77
+ 'statusCode' => 'StatusCode',
78
+ 'success' => 'Success',
79
+ 'message' => 'Message',
80
+ 'validationErrors' => 'ValidationErrors'
81
+ ];
82
+
83
+
84
+ /**
85
+ * Array of attributes to setter functions (for deserialization of responses)
86
+ * @var string[]
87
+ */
88
+ protected static $setters = [
89
+ 'content' => 'setContent',
90
+ 'count' => 'setCount',
91
+ 'statusCode' => 'setStatusCode',
92
+ 'success' => 'setSuccess',
93
+ 'message' => 'setMessage',
94
+ 'validationErrors' => 'setValidationErrors'
95
+ ];
96
+
97
+
98
+ /**
99
+ * Array of attributes to getter functions (for serialization of requests)
100
+ * @var string[]
101
+ */
102
+ protected static $getters = [
103
+ 'content' => 'getContent',
104
+ 'count' => 'getCount',
105
+ 'statusCode' => 'getStatusCode',
106
+ 'success' => 'getSuccess',
107
+ 'message' => 'getMessage',
108
+ 'validationErrors' => 'getValidationErrors'
109
+ ];
110
+
111
+ public static function attributeMap()
112
+ {
113
+ return self::$attributeMap;
114
+ }
115
+
116
+ public static function setters()
117
+ {
118
+ return self::$setters;
119
+ }
120
+
121
+ public static function getters()
122
+ {
123
+ return self::$getters;
124
+ }
125
+
126
+
127
+
128
+
129
+
130
+ /**
131
+ * Associative array for storing property values
132
+ * @var mixed[]
133
+ */
134
+ protected $container = [];
135
+
136
+ /**
137
+ * Constructor
138
+ * @param mixed[] $data Associated array of property values initializing the model
139
+ */
140
+ public function __construct(array $data = null)
141
+ {
142
+ $this->container['content'] = isset($data['content']) ? $data['content'] : null;
143
+ $this->container['count'] = isset($data['count']) ? $data['count'] : null;
144
+ $this->container['statusCode'] = isset($data['statusCode']) ? $data['statusCode'] : null;
145
+ $this->container['success'] = isset($data['success']) ? $data['success'] : null;
146
+ $this->container['message'] = isset($data['message']) ? $data['message'] : null;
147
+ $this->container['validationErrors'] = isset($data['validationErrors']) ? $data['validationErrors'] : null;
148
+ }
149
+
150
+ /**
151
+ * show all the invalid properties with reasons.
152
+ *
153
+ * @return array invalid properties with reasons
154
+ */
155
+ public function listInvalidProperties()
156
+ {
157
+ $invalid_properties = [];
158
+
159
+ return $invalid_properties;
160
+ }
161
+
162
+ /**
163
+ * validate all the properties in the model
164
+ * return true if all passed
165
+ *
166
+ * @return bool True if all properties are valid
167
+ */
168
+ public function valid()
169
+ {
170
+
171
+ return true;
172
+ }
173
+
174
+
175
+ /**
176
+ * Gets content
177
+ * @return \ChannelEngine\ApiClient\Model\ChannelReturnResponse[]
178
+ */
179
+ public function getContent()
180
+ {
181
+ return $this->container['content'];
182
+ }
183
+
184
+ /**
185
+ * Sets content
186
+ * @param \ChannelEngine\ApiClient\Model\ChannelReturnResponse[] $content
187
+ * @return $this
188
+ */
189
+ public function setContent($content)
190
+ {
191
+ $this->container['content'] = $content;
192
+
193
+ return $this;
194
+ }
195
+
196
+ /**
197
+ * Gets count
198
+ * @return int
199
+ */
200
+ public function getCount()
201
+ {
202
+ return $this->container['count'];
203
+ }
204
+
205
+ /**
206
+ * Sets count
207
+ * @param int $count
208
+ * @return $this
209
+ */
210
+ public function setCount($count)
211
+ {
212
+ $this->container['count'] = $count;
213
+
214
+ return $this;
215
+ }
216
+
217
+ /**
218
+ * Gets statusCode
219
+ * @return int
220
+ */
221
+ public function getStatusCode()
222
+ {
223
+ return $this->container['statusCode'];
224
+ }
225
+
226
+ /**
227
+ * Sets statusCode
228
+ * @param int $statusCode
229
+ * @return $this
230
+ */
231
+ public function setStatusCode($statusCode)
232
+ {
233
+ $this->container['statusCode'] = $statusCode;
234
+
235
+ return $this;
236
+ }
237
+
238
+ /**
239
+ * Gets success
240
+ * @return bool
241
+ */
242
+ public function getSuccess()
243
+ {
244
+ return $this->container['success'];
245
+ }
246
+
247
+ /**
248
+ * Sets success
249
+ * @param bool $success
250
+ * @return $this
251
+ */
252
+ public function setSuccess($success)
253
+ {
254
+ $this->container['success'] = $success;
255
+
256
+ return $this;
257
+ }
258
+
259
+ /**
260
+ * Gets message
261
+ * @return string
262
+ */
263
+ public function getMessage()
264
+ {
265
+ return $this->container['message'];
266
+ }
267
+
268
+ /**
269
+ * Sets message
270
+ * @param string $message
271
+ * @return $this
272
+ */
273
+ public function setMessage($message)
274
+ {
275
+ $this->container['message'] = $message;
276
+
277
+ return $this;
278
+ }
279
+
280
+ /**
281
+ * Gets validationErrors
282
+ * @return map[string,string[]]
283
+ */
284
+ public function getValidationErrors()
285
+ {
286
+ return $this->container['validationErrors'];
287
+ }
288
+
289
+ /**
290
+ * Sets validationErrors
291
+ * @param map[string,string[]] $validationErrors
292
+ * @return $this
293
+ */
294
+ public function setValidationErrors($validationErrors)
295
+ {
296
+ $this->container['validationErrors'] = $validationErrors;
297
+
298
+ return $this;
299
+ }
300
+ /**
301
+ * Returns true if offset exists. False otherwise.
302
+ * @param integer $offset Offset
303
+ * @return boolean
304
+ */
305
+ public function offsetExists($offset)
306
+ {
307
+ return isset($this->container[$offset]);
308
+ }
309
+
310
+ /**
311
+ * Gets offset.
312
+ * @param integer $offset Offset
313
+ * @return mixed
314
+ */
315
+ public function offsetGet($offset)
316
+ {
317
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
318
+ }
319
+
320
+ /**
321
+ * Sets value based on offset.
322
+ * @param integer $offset Offset
323
+ * @param mixed $value Value to be set
324
+ * @return void
325
+ */
326
+ public function offsetSet($offset, $value)
327
+ {
328
+ if (is_null($offset)) {
329
+ $this->container[] = $value;
330
+ } else {
331
+ $this->container[$offset] = $value;
332
+ }
333
+ }
334
+
335
+ /**
336
+ * Unsets offset.
337
+ * @param integer $offset Offset
338
+ * @return void
339
+ */
340
+ public function offsetUnset($offset)
341
+ {
342
+ unset($this->container[$offset]);
343
+ }
344
+
345
+ /**
346
+ * Gets the string presentation of the object
347
+ * @return string
348
+ */
349
+ public function __toString()
350
+ {
351
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
352
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
353
+ }
354
+
355
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
356
+ }
357
+ }
358
+
359
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/CollectionOfChannelShipmentResponse.php ADDED
@@ -0,0 +1,359 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * CollectionOfChannelShipmentResponse
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * CollectionOfChannelShipmentResponse Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class CollectionOfChannelShipmentResponse implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'CollectionOfChannelShipmentResponse';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'content' => '\ChannelEngine\ApiClient\Model\ChannelShipmentResponse[]',
58
+ 'count' => 'int',
59
+ 'statusCode' => 'int',
60
+ 'success' => 'bool',
61
+ 'message' => 'string',
62
+ 'validationErrors' => 'map[string,string[]]'
63
+ ];
64
+
65
+ public static function swaggerTypes()
66
+ {
67
+ return self::$swaggerTypes;
68
+ }
69
+
70
+ /**
71
+ * Array of attributes where the key is the local name, and the value is the original name
72
+ * @var string[]
73
+ */
74
+ protected static $attributeMap = [
75
+ 'content' => 'Content',
76
+ 'count' => 'Count',
77
+ 'statusCode' => 'StatusCode',
78
+ 'success' => 'Success',
79
+ 'message' => 'Message',
80
+ 'validationErrors' => 'ValidationErrors'
81
+ ];
82
+
83
+
84
+ /**
85
+ * Array of attributes to setter functions (for deserialization of responses)
86
+ * @var string[]
87
+ */
88
+ protected static $setters = [
89
+ 'content' => 'setContent',
90
+ 'count' => 'setCount',
91
+ 'statusCode' => 'setStatusCode',
92
+ 'success' => 'setSuccess',
93
+ 'message' => 'setMessage',
94
+ 'validationErrors' => 'setValidationErrors'
95
+ ];
96
+
97
+
98
+ /**
99
+ * Array of attributes to getter functions (for serialization of requests)
100
+ * @var string[]
101
+ */
102
+ protected static $getters = [
103
+ 'content' => 'getContent',
104
+ 'count' => 'getCount',
105
+ 'statusCode' => 'getStatusCode',
106
+ 'success' => 'getSuccess',
107
+ 'message' => 'getMessage',
108
+ 'validationErrors' => 'getValidationErrors'
109
+ ];
110
+
111
+ public static function attributeMap()
112
+ {
113
+ return self::$attributeMap;
114
+ }
115
+
116
+ public static function setters()
117
+ {
118
+ return self::$setters;
119
+ }
120
+
121
+ public static function getters()
122
+ {
123
+ return self::$getters;
124
+ }
125
+
126
+
127
+
128
+
129
+
130
+ /**
131
+ * Associative array for storing property values
132
+ * @var mixed[]
133
+ */
134
+ protected $container = [];
135
+
136
+ /**
137
+ * Constructor
138
+ * @param mixed[] $data Associated array of property values initializing the model
139
+ */
140
+ public function __construct(array $data = null)
141
+ {
142
+ $this->container['content'] = isset($data['content']) ? $data['content'] : null;
143
+ $this->container['count'] = isset($data['count']) ? $data['count'] : null;
144
+ $this->container['statusCode'] = isset($data['statusCode']) ? $data['statusCode'] : null;
145
+ $this->container['success'] = isset($data['success']) ? $data['success'] : null;
146
+ $this->container['message'] = isset($data['message']) ? $data['message'] : null;
147
+ $this->container['validationErrors'] = isset($data['validationErrors']) ? $data['validationErrors'] : null;
148
+ }
149
+
150
+ /**
151
+ * show all the invalid properties with reasons.
152
+ *
153
+ * @return array invalid properties with reasons
154
+ */
155
+ public function listInvalidProperties()
156
+ {
157
+ $invalid_properties = [];
158
+
159
+ return $invalid_properties;
160
+ }
161
+
162
+ /**
163
+ * validate all the properties in the model
164
+ * return true if all passed
165
+ *
166
+ * @return bool True if all properties are valid
167
+ */
168
+ public function valid()
169
+ {
170
+
171
+ return true;
172
+ }
173
+
174
+
175
+ /**
176
+ * Gets content
177
+ * @return \ChannelEngine\ApiClient\Model\ChannelShipmentResponse[]
178
+ */
179
+ public function getContent()
180
+ {
181
+ return $this->container['content'];
182
+ }
183
+
184
+ /**
185
+ * Sets content
186
+ * @param \ChannelEngine\ApiClient\Model\ChannelShipmentResponse[] $content
187
+ * @return $this
188
+ */
189
+ public function setContent($content)
190
+ {
191
+ $this->container['content'] = $content;
192
+
193
+ return $this;
194
+ }
195
+
196
+ /**
197
+ * Gets count
198
+ * @return int
199
+ */
200
+ public function getCount()
201
+ {
202
+ return $this->container['count'];
203
+ }
204
+
205
+ /**
206
+ * Sets count
207
+ * @param int $count
208
+ * @return $this
209
+ */
210
+ public function setCount($count)
211
+ {
212
+ $this->container['count'] = $count;
213
+
214
+ return $this;
215
+ }
216
+
217
+ /**
218
+ * Gets statusCode
219
+ * @return int
220
+ */
221
+ public function getStatusCode()
222
+ {
223
+ return $this->container['statusCode'];
224
+ }
225
+
226
+ /**
227
+ * Sets statusCode
228
+ * @param int $statusCode
229
+ * @return $this
230
+ */
231
+ public function setStatusCode($statusCode)
232
+ {
233
+ $this->container['statusCode'] = $statusCode;
234
+
235
+ return $this;
236
+ }
237
+
238
+ /**
239
+ * Gets success
240
+ * @return bool
241
+ */
242
+ public function getSuccess()
243
+ {
244
+ return $this->container['success'];
245
+ }
246
+
247
+ /**
248
+ * Sets success
249
+ * @param bool $success
250
+ * @return $this
251
+ */
252
+ public function setSuccess($success)
253
+ {
254
+ $this->container['success'] = $success;
255
+
256
+ return $this;
257
+ }
258
+
259
+ /**
260
+ * Gets message
261
+ * @return string
262
+ */
263
+ public function getMessage()
264
+ {
265
+ return $this->container['message'];
266
+ }
267
+
268
+ /**
269
+ * Sets message
270
+ * @param string $message
271
+ * @return $this
272
+ */
273
+ public function setMessage($message)
274
+ {
275
+ $this->container['message'] = $message;
276
+
277
+ return $this;
278
+ }
279
+
280
+ /**
281
+ * Gets validationErrors
282
+ * @return map[string,string[]]
283
+ */
284
+ public function getValidationErrors()
285
+ {
286
+ return $this->container['validationErrors'];
287
+ }
288
+
289
+ /**
290
+ * Sets validationErrors
291
+ * @param map[string,string[]] $validationErrors
292
+ * @return $this
293
+ */
294
+ public function setValidationErrors($validationErrors)
295
+ {
296
+ $this->container['validationErrors'] = $validationErrors;
297
+
298
+ return $this;
299
+ }
300
+ /**
301
+ * Returns true if offset exists. False otherwise.
302
+ * @param integer $offset Offset
303
+ * @return boolean
304
+ */
305
+ public function offsetExists($offset)
306
+ {
307
+ return isset($this->container[$offset]);
308
+ }
309
+
310
+ /**
311
+ * Gets offset.
312
+ * @param integer $offset Offset
313
+ * @return mixed
314
+ */
315
+ public function offsetGet($offset)
316
+ {
317
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
318
+ }
319
+
320
+ /**
321
+ * Sets value based on offset.
322
+ * @param integer $offset Offset
323
+ * @param mixed $value Value to be set
324
+ * @return void
325
+ */
326
+ public function offsetSet($offset, $value)
327
+ {
328
+ if (is_null($offset)) {
329
+ $this->container[] = $value;
330
+ } else {
331
+ $this->container[$offset] = $value;
332
+ }
333
+ }
334
+
335
+ /**
336
+ * Unsets offset.
337
+ * @param integer $offset Offset
338
+ * @return void
339
+ */
340
+ public function offsetUnset($offset)
341
+ {
342
+ unset($this->container[$offset]);
343
+ }
344
+
345
+ /**
346
+ * Gets the string presentation of the object
347
+ * @return string
348
+ */
349
+ public function __toString()
350
+ {
351
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
352
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
353
+ }
354
+
355
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
356
+ }
357
+ }
358
+
359
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/CollectionOfMerchantOrderResponse.php ADDED
@@ -0,0 +1,359 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * CollectionOfMerchantOrderResponse
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * CollectionOfMerchantOrderResponse Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class CollectionOfMerchantOrderResponse implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'CollectionOfMerchantOrderResponse';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'content' => '\ChannelEngine\ApiClient\Model\MerchantOrderResponse[]',
58
+ 'count' => 'int',
59
+ 'statusCode' => 'int',
60
+ 'success' => 'bool',
61
+ 'message' => 'string',
62
+ 'validationErrors' => 'map[string,string[]]'
63
+ ];
64
+
65
+ public static function swaggerTypes()
66
+ {
67
+ return self::$swaggerTypes;
68
+ }
69
+
70
+ /**
71
+ * Array of attributes where the key is the local name, and the value is the original name
72
+ * @var string[]
73
+ */
74
+ protected static $attributeMap = [
75
+ 'content' => 'Content',
76
+ 'count' => 'Count',
77
+ 'statusCode' => 'StatusCode',
78
+ 'success' => 'Success',
79
+ 'message' => 'Message',
80
+ 'validationErrors' => 'ValidationErrors'
81
+ ];
82
+
83
+
84
+ /**
85
+ * Array of attributes to setter functions (for deserialization of responses)
86
+ * @var string[]
87
+ */
88
+ protected static $setters = [
89
+ 'content' => 'setContent',
90
+ 'count' => 'setCount',
91
+ 'statusCode' => 'setStatusCode',
92
+ 'success' => 'setSuccess',
93
+ 'message' => 'setMessage',
94
+ 'validationErrors' => 'setValidationErrors'
95
+ ];
96
+
97
+
98
+ /**
99
+ * Array of attributes to getter functions (for serialization of requests)
100
+ * @var string[]
101
+ */
102
+ protected static $getters = [
103
+ 'content' => 'getContent',
104
+ 'count' => 'getCount',
105
+ 'statusCode' => 'getStatusCode',
106
+ 'success' => 'getSuccess',
107
+ 'message' => 'getMessage',
108
+ 'validationErrors' => 'getValidationErrors'
109
+ ];
110
+
111
+ public static function attributeMap()
112
+ {
113
+ return self::$attributeMap;
114
+ }
115
+
116
+ public static function setters()
117
+ {
118
+ return self::$setters;
119
+ }
120
+
121
+ public static function getters()
122
+ {
123
+ return self::$getters;
124
+ }
125
+
126
+
127
+
128
+
129
+
130
+ /**
131
+ * Associative array for storing property values
132
+ * @var mixed[]
133
+ */
134
+ protected $container = [];
135
+
136
+ /**
137
+ * Constructor
138
+ * @param mixed[] $data Associated array of property values initializing the model
139
+ */
140
+ public function __construct(array $data = null)
141
+ {
142
+ $this->container['content'] = isset($data['content']) ? $data['content'] : null;
143
+ $this->container['count'] = isset($data['count']) ? $data['count'] : null;
144
+ $this->container['statusCode'] = isset($data['statusCode']) ? $data['statusCode'] : null;
145
+ $this->container['success'] = isset($data['success']) ? $data['success'] : null;
146
+ $this->container['message'] = isset($data['message']) ? $data['message'] : null;
147
+ $this->container['validationErrors'] = isset($data['validationErrors']) ? $data['validationErrors'] : null;
148
+ }
149
+
150
+ /**
151
+ * show all the invalid properties with reasons.
152
+ *
153
+ * @return array invalid properties with reasons
154
+ */
155
+ public function listInvalidProperties()
156
+ {
157
+ $invalid_properties = [];
158
+
159
+ return $invalid_properties;
160
+ }
161
+
162
+ /**
163
+ * validate all the properties in the model
164
+ * return true if all passed
165
+ *
166
+ * @return bool True if all properties are valid
167
+ */
168
+ public function valid()
169
+ {
170
+
171
+ return true;
172
+ }
173
+
174
+
175
+ /**
176
+ * Gets content
177
+ * @return \ChannelEngine\ApiClient\Model\MerchantOrderResponse[]
178
+ */
179
+ public function getContent()
180
+ {
181
+ return $this->container['content'];
182
+ }
183
+
184
+ /**
185
+ * Sets content
186
+ * @param \ChannelEngine\ApiClient\Model\MerchantOrderResponse[] $content
187
+ * @return $this
188
+ */
189
+ public function setContent($content)
190
+ {
191
+ $this->container['content'] = $content;
192
+
193
+ return $this;
194
+ }
195
+
196
+ /**
197
+ * Gets count
198
+ * @return int
199
+ */
200
+ public function getCount()
201
+ {
202
+ return $this->container['count'];
203
+ }
204
+
205
+ /**
206
+ * Sets count
207
+ * @param int $count
208
+ * @return $this
209
+ */
210
+ public function setCount($count)
211
+ {
212
+ $this->container['count'] = $count;
213
+
214
+ return $this;
215
+ }
216
+
217
+ /**
218
+ * Gets statusCode
219
+ * @return int
220
+ */
221
+ public function getStatusCode()
222
+ {
223
+ return $this->container['statusCode'];
224
+ }
225
+
226
+ /**
227
+ * Sets statusCode
228
+ * @param int $statusCode
229
+ * @return $this
230
+ */
231
+ public function setStatusCode($statusCode)
232
+ {
233
+ $this->container['statusCode'] = $statusCode;
234
+
235
+ return $this;
236
+ }
237
+
238
+ /**
239
+ * Gets success
240
+ * @return bool
241
+ */
242
+ public function getSuccess()
243
+ {
244
+ return $this->container['success'];
245
+ }
246
+
247
+ /**
248
+ * Sets success
249
+ * @param bool $success
250
+ * @return $this
251
+ */
252
+ public function setSuccess($success)
253
+ {
254
+ $this->container['success'] = $success;
255
+
256
+ return $this;
257
+ }
258
+
259
+ /**
260
+ * Gets message
261
+ * @return string
262
+ */
263
+ public function getMessage()
264
+ {
265
+ return $this->container['message'];
266
+ }
267
+
268
+ /**
269
+ * Sets message
270
+ * @param string $message
271
+ * @return $this
272
+ */
273
+ public function setMessage($message)
274
+ {
275
+ $this->container['message'] = $message;
276
+
277
+ return $this;
278
+ }
279
+
280
+ /**
281
+ * Gets validationErrors
282
+ * @return map[string,string[]]
283
+ */
284
+ public function getValidationErrors()
285
+ {
286
+ return $this->container['validationErrors'];
287
+ }
288
+
289
+ /**
290
+ * Sets validationErrors
291
+ * @param map[string,string[]] $validationErrors
292
+ * @return $this
293
+ */
294
+ public function setValidationErrors($validationErrors)
295
+ {
296
+ $this->container['validationErrors'] = $validationErrors;
297
+
298
+ return $this;
299
+ }
300
+ /**
301
+ * Returns true if offset exists. False otherwise.
302
+ * @param integer $offset Offset
303
+ * @return boolean
304
+ */
305
+ public function offsetExists($offset)
306
+ {
307
+ return isset($this->container[$offset]);
308
+ }
309
+
310
+ /**
311
+ * Gets offset.
312
+ * @param integer $offset Offset
313
+ * @return mixed
314
+ */
315
+ public function offsetGet($offset)
316
+ {
317
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
318
+ }
319
+
320
+ /**
321
+ * Sets value based on offset.
322
+ * @param integer $offset Offset
323
+ * @param mixed $value Value to be set
324
+ * @return void
325
+ */
326
+ public function offsetSet($offset, $value)
327
+ {
328
+ if (is_null($offset)) {
329
+ $this->container[] = $value;
330
+ } else {
331
+ $this->container[$offset] = $value;
332
+ }
333
+ }
334
+
335
+ /**
336
+ * Unsets offset.
337
+ * @param integer $offset Offset
338
+ * @return void
339
+ */
340
+ public function offsetUnset($offset)
341
+ {
342
+ unset($this->container[$offset]);
343
+ }
344
+
345
+ /**
346
+ * Gets the string presentation of the object
347
+ * @return string
348
+ */
349
+ public function __toString()
350
+ {
351
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
352
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
353
+ }
354
+
355
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
356
+ }
357
+ }
358
+
359
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/CollectionOfMerchantReturnResponse.php ADDED
@@ -0,0 +1,359 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * CollectionOfMerchantReturnResponse
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * CollectionOfMerchantReturnResponse Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class CollectionOfMerchantReturnResponse implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'CollectionOfMerchantReturnResponse';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'content' => '\ChannelEngine\ApiClient\Model\MerchantReturnResponse[]',
58
+ 'count' => 'int',
59
+ 'statusCode' => 'int',
60
+ 'success' => 'bool',
61
+ 'message' => 'string',
62
+ 'validationErrors' => 'map[string,string[]]'
63
+ ];
64
+
65
+ public static function swaggerTypes()
66
+ {
67
+ return self::$swaggerTypes;
68
+ }
69
+
70
+ /**
71
+ * Array of attributes where the key is the local name, and the value is the original name
72
+ * @var string[]
73
+ */
74
+ protected static $attributeMap = [
75
+ 'content' => 'Content',
76
+ 'count' => 'Count',
77
+ 'statusCode' => 'StatusCode',
78
+ 'success' => 'Success',
79
+ 'message' => 'Message',
80
+ 'validationErrors' => 'ValidationErrors'
81
+ ];
82
+
83
+
84
+ /**
85
+ * Array of attributes to setter functions (for deserialization of responses)
86
+ * @var string[]
87
+ */
88
+ protected static $setters = [
89
+ 'content' => 'setContent',
90
+ 'count' => 'setCount',
91
+ 'statusCode' => 'setStatusCode',
92
+ 'success' => 'setSuccess',
93
+ 'message' => 'setMessage',
94
+ 'validationErrors' => 'setValidationErrors'
95
+ ];
96
+
97
+
98
+ /**
99
+ * Array of attributes to getter functions (for serialization of requests)
100
+ * @var string[]
101
+ */
102
+ protected static $getters = [
103
+ 'content' => 'getContent',
104
+ 'count' => 'getCount',
105
+ 'statusCode' => 'getStatusCode',
106
+ 'success' => 'getSuccess',
107
+ 'message' => 'getMessage',
108
+ 'validationErrors' => 'getValidationErrors'
109
+ ];
110
+
111
+ public static function attributeMap()
112
+ {
113
+ return self::$attributeMap;
114
+ }
115
+
116
+ public static function setters()
117
+ {
118
+ return self::$setters;
119
+ }
120
+
121
+ public static function getters()
122
+ {
123
+ return self::$getters;
124
+ }
125
+
126
+
127
+
128
+
129
+
130
+ /**
131
+ * Associative array for storing property values
132
+ * @var mixed[]
133
+ */
134
+ protected $container = [];
135
+
136
+ /**
137
+ * Constructor
138
+ * @param mixed[] $data Associated array of property values initializing the model
139
+ */
140
+ public function __construct(array $data = null)
141
+ {
142
+ $this->container['content'] = isset($data['content']) ? $data['content'] : null;
143
+ $this->container['count'] = isset($data['count']) ? $data['count'] : null;
144
+ $this->container['statusCode'] = isset($data['statusCode']) ? $data['statusCode'] : null;
145
+ $this->container['success'] = isset($data['success']) ? $data['success'] : null;
146
+ $this->container['message'] = isset($data['message']) ? $data['message'] : null;
147
+ $this->container['validationErrors'] = isset($data['validationErrors']) ? $data['validationErrors'] : null;
148
+ }
149
+
150
+ /**
151
+ * show all the invalid properties with reasons.
152
+ *
153
+ * @return array invalid properties with reasons
154
+ */
155
+ public function listInvalidProperties()
156
+ {
157
+ $invalid_properties = [];
158
+
159
+ return $invalid_properties;
160
+ }
161
+
162
+ /**
163
+ * validate all the properties in the model
164
+ * return true if all passed
165
+ *
166
+ * @return bool True if all properties are valid
167
+ */
168
+ public function valid()
169
+ {
170
+
171
+ return true;
172
+ }
173
+
174
+
175
+ /**
176
+ * Gets content
177
+ * @return \ChannelEngine\ApiClient\Model\MerchantReturnResponse[]
178
+ */
179
+ public function getContent()
180
+ {
181
+ return $this->container['content'];
182
+ }
183
+
184
+ /**
185
+ * Sets content
186
+ * @param \ChannelEngine\ApiClient\Model\MerchantReturnResponse[] $content
187
+ * @return $this
188
+ */
189
+ public function setContent($content)
190
+ {
191
+ $this->container['content'] = $content;
192
+
193
+ return $this;
194
+ }
195
+
196
+ /**
197
+ * Gets count
198
+ * @return int
199
+ */
200
+ public function getCount()
201
+ {
202
+ return $this->container['count'];
203
+ }
204
+
205
+ /**
206
+ * Sets count
207
+ * @param int $count
208
+ * @return $this
209
+ */
210
+ public function setCount($count)
211
+ {
212
+ $this->container['count'] = $count;
213
+
214
+ return $this;
215
+ }
216
+
217
+ /**
218
+ * Gets statusCode
219
+ * @return int
220
+ */
221
+ public function getStatusCode()
222
+ {
223
+ return $this->container['statusCode'];
224
+ }
225
+
226
+ /**
227
+ * Sets statusCode
228
+ * @param int $statusCode
229
+ * @return $this
230
+ */
231
+ public function setStatusCode($statusCode)
232
+ {
233
+ $this->container['statusCode'] = $statusCode;
234
+
235
+ return $this;
236
+ }
237
+
238
+ /**
239
+ * Gets success
240
+ * @return bool
241
+ */
242
+ public function getSuccess()
243
+ {
244
+ return $this->container['success'];
245
+ }
246
+
247
+ /**
248
+ * Sets success
249
+ * @param bool $success
250
+ * @return $this
251
+ */
252
+ public function setSuccess($success)
253
+ {
254
+ $this->container['success'] = $success;
255
+
256
+ return $this;
257
+ }
258
+
259
+ /**
260
+ * Gets message
261
+ * @return string
262
+ */
263
+ public function getMessage()
264
+ {
265
+ return $this->container['message'];
266
+ }
267
+
268
+ /**
269
+ * Sets message
270
+ * @param string $message
271
+ * @return $this
272
+ */
273
+ public function setMessage($message)
274
+ {
275
+ $this->container['message'] = $message;
276
+
277
+ return $this;
278
+ }
279
+
280
+ /**
281
+ * Gets validationErrors
282
+ * @return map[string,string[]]
283
+ */
284
+ public function getValidationErrors()
285
+ {
286
+ return $this->container['validationErrors'];
287
+ }
288
+
289
+ /**
290
+ * Sets validationErrors
291
+ * @param map[string,string[]] $validationErrors
292
+ * @return $this
293
+ */
294
+ public function setValidationErrors($validationErrors)
295
+ {
296
+ $this->container['validationErrors'] = $validationErrors;
297
+
298
+ return $this;
299
+ }
300
+ /**
301
+ * Returns true if offset exists. False otherwise.
302
+ * @param integer $offset Offset
303
+ * @return boolean
304
+ */
305
+ public function offsetExists($offset)
306
+ {
307
+ return isset($this->container[$offset]);
308
+ }
309
+
310
+ /**
311
+ * Gets offset.
312
+ * @param integer $offset Offset
313
+ * @return mixed
314
+ */
315
+ public function offsetGet($offset)
316
+ {
317
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
318
+ }
319
+
320
+ /**
321
+ * Sets value based on offset.
322
+ * @param integer $offset Offset
323
+ * @param mixed $value Value to be set
324
+ * @return void
325
+ */
326
+ public function offsetSet($offset, $value)
327
+ {
328
+ if (is_null($offset)) {
329
+ $this->container[] = $value;
330
+ } else {
331
+ $this->container[$offset] = $value;
332
+ }
333
+ }
334
+
335
+ /**
336
+ * Unsets offset.
337
+ * @param integer $offset Offset
338
+ * @return void
339
+ */
340
+ public function offsetUnset($offset)
341
+ {
342
+ unset($this->container[$offset]);
343
+ }
344
+
345
+ /**
346
+ * Gets the string presentation of the object
347
+ * @return string
348
+ */
349
+ public function __toString()
350
+ {
351
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
352
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
353
+ }
354
+
355
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
356
+ }
357
+ }
358
+
359
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/EntitiesAddressModels.php ADDED
@@ -0,0 +1,649 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * EntitiesAddressModels
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * EntitiesAddressModels Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class EntitiesAddressModels implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'EntitiesAddressModels';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'gender' => 'string',
58
+ 'companyName' => 'string',
59
+ 'firstName' => 'string',
60
+ 'lastName' => 'string',
61
+ 'streetName' => 'string',
62
+ 'houseNr' => 'string',
63
+ 'houseNrAddition' => 'string',
64
+ 'zipCode' => 'string',
65
+ 'city' => 'string',
66
+ 'region' => 'string',
67
+ 'countryIso' => 'string',
68
+ 'original' => 'string'
69
+ ];
70
+
71
+ public static function swaggerTypes()
72
+ {
73
+ return self::$swaggerTypes;
74
+ }
75
+
76
+ /**
77
+ * Array of attributes where the key is the local name, and the value is the original name
78
+ * @var string[]
79
+ */
80
+ protected static $attributeMap = [
81
+ 'gender' => 'Gender',
82
+ 'companyName' => 'CompanyName',
83
+ 'firstName' => 'FirstName',
84
+ 'lastName' => 'LastName',
85
+ 'streetName' => 'StreetName',
86
+ 'houseNr' => 'HouseNr',
87
+ 'houseNrAddition' => 'HouseNrAddition',
88
+ 'zipCode' => 'ZipCode',
89
+ 'city' => 'City',
90
+ 'region' => 'Region',
91
+ 'countryIso' => 'CountryIso',
92
+ 'original' => 'Original'
93
+ ];
94
+
95
+
96
+ /**
97
+ * Array of attributes to setter functions (for deserialization of responses)
98
+ * @var string[]
99
+ */
100
+ protected static $setters = [
101
+ 'gender' => 'setGender',
102
+ 'companyName' => 'setCompanyName',
103
+ 'firstName' => 'setFirstName',
104
+ 'lastName' => 'setLastName',
105
+ 'streetName' => 'setStreetName',
106
+ 'houseNr' => 'setHouseNr',
107
+ 'houseNrAddition' => 'setHouseNrAddition',
108
+ 'zipCode' => 'setZipCode',
109
+ 'city' => 'setCity',
110
+ 'region' => 'setRegion',
111
+ 'countryIso' => 'setCountryIso',
112
+ 'original' => 'setOriginal'
113
+ ];
114
+
115
+
116
+ /**
117
+ * Array of attributes to getter functions (for serialization of requests)
118
+ * @var string[]
119
+ */
120
+ protected static $getters = [
121
+ 'gender' => 'getGender',
122
+ 'companyName' => 'getCompanyName',
123
+ 'firstName' => 'getFirstName',
124
+ 'lastName' => 'getLastName',
125
+ 'streetName' => 'getStreetName',
126
+ 'houseNr' => 'getHouseNr',
127
+ 'houseNrAddition' => 'getHouseNrAddition',
128
+ 'zipCode' => 'getZipCode',
129
+ 'city' => 'getCity',
130
+ 'region' => 'getRegion',
131
+ 'countryIso' => 'getCountryIso',
132
+ 'original' => 'getOriginal'
133
+ ];
134
+
135
+ public static function attributeMap()
136
+ {
137
+ return self::$attributeMap;
138
+ }
139
+
140
+ public static function setters()
141
+ {
142
+ return self::$setters;
143
+ }
144
+
145
+ public static function getters()
146
+ {
147
+ return self::$getters;
148
+ }
149
+
150
+ const GENDER_MALE = 'MALE';
151
+ const GENDER_FEMALE = 'FEMALE';
152
+ const GENDER_NOT_APPLICABLE = 'NOT_APPLICABLE';
153
+
154
+
155
+
156
+ /**
157
+ * Gets allowable values of the enum
158
+ * @return string[]
159
+ */
160
+ public function getGenderAllowableValues()
161
+ {
162
+ return [
163
+ self::GENDER_MALE,
164
+ self::GENDER_FEMALE,
165
+ self::GENDER_NOT_APPLICABLE,
166
+ ];
167
+ }
168
+
169
+
170
+ /**
171
+ * Associative array for storing property values
172
+ * @var mixed[]
173
+ */
174
+ protected $container = [];
175
+
176
+ /**
177
+ * Constructor
178
+ * @param mixed[] $data Associated array of property values initializing the model
179
+ */
180
+ public function __construct(array $data = null)
181
+ {
182
+ $this->container['gender'] = isset($data['gender']) ? $data['gender'] : null;
183
+ $this->container['companyName'] = isset($data['companyName']) ? $data['companyName'] : null;
184
+ $this->container['firstName'] = isset($data['firstName']) ? $data['firstName'] : null;
185
+ $this->container['lastName'] = isset($data['lastName']) ? $data['lastName'] : null;
186
+ $this->container['streetName'] = isset($data['streetName']) ? $data['streetName'] : null;
187
+ $this->container['houseNr'] = isset($data['houseNr']) ? $data['houseNr'] : null;
188
+ $this->container['houseNrAddition'] = isset($data['houseNrAddition']) ? $data['houseNrAddition'] : null;
189
+ $this->container['zipCode'] = isset($data['zipCode']) ? $data['zipCode'] : null;
190
+ $this->container['city'] = isset($data['city']) ? $data['city'] : null;
191
+ $this->container['region'] = isset($data['region']) ? $data['region'] : null;
192
+ $this->container['countryIso'] = isset($data['countryIso']) ? $data['countryIso'] : null;
193
+ $this->container['original'] = isset($data['original']) ? $data['original'] : null;
194
+ }
195
+
196
+ /**
197
+ * show all the invalid properties with reasons.
198
+ *
199
+ * @return array invalid properties with reasons
200
+ */
201
+ public function listInvalidProperties()
202
+ {
203
+ $invalid_properties = [];
204
+
205
+ $allowed_values = ["MALE", "FEMALE", "NOT_APPLICABLE"];
206
+ if (!in_array($this->container['gender'], $allowed_values)) {
207
+ $invalid_properties[] = "invalid value for 'gender', must be one of 'MALE', 'FEMALE', 'NOT_APPLICABLE'.";
208
+ }
209
+
210
+ if (!is_null($this->container['houseNr']) && (strlen($this->container['houseNr']) > 50)) {
211
+ $invalid_properties[] = "invalid value for 'houseNr', the character length must be smaller than or equal to 50.";
212
+ }
213
+
214
+ if (!is_null($this->container['houseNr']) && (strlen($this->container['houseNr']) < 0)) {
215
+ $invalid_properties[] = "invalid value for 'houseNr', the character length must be bigger than or equal to 0.";
216
+ }
217
+
218
+ if (!is_null($this->container['houseNrAddition']) && (strlen($this->container['houseNrAddition']) > 50)) {
219
+ $invalid_properties[] = "invalid value for 'houseNrAddition', the character length must be smaller than or equal to 50.";
220
+ }
221
+
222
+ if (!is_null($this->container['houseNrAddition']) && (strlen($this->container['houseNrAddition']) < 0)) {
223
+ $invalid_properties[] = "invalid value for 'houseNrAddition', the character length must be bigger than or equal to 0.";
224
+ }
225
+
226
+ if (!is_null($this->container['region']) && (strlen($this->container['region']) > 50)) {
227
+ $invalid_properties[] = "invalid value for 'region', the character length must be smaller than or equal to 50.";
228
+ }
229
+
230
+ if (!is_null($this->container['region']) && (strlen($this->container['region']) < 0)) {
231
+ $invalid_properties[] = "invalid value for 'region', the character length must be bigger than or equal to 0.";
232
+ }
233
+
234
+ if (!is_null($this->container['countryIso']) && (strlen($this->container['countryIso']) > 2)) {
235
+ $invalid_properties[] = "invalid value for 'countryIso', the character length must be smaller than or equal to 2.";
236
+ }
237
+
238
+ if (!is_null($this->container['countryIso']) && (strlen($this->container['countryIso']) < 0)) {
239
+ $invalid_properties[] = "invalid value for 'countryIso', the character length must be bigger than or equal to 0.";
240
+ }
241
+
242
+ if (!is_null($this->container['original']) && (strlen($this->container['original']) > 256)) {
243
+ $invalid_properties[] = "invalid value for 'original', the character length must be smaller than or equal to 256.";
244
+ }
245
+
246
+ if (!is_null($this->container['original']) && (strlen($this->container['original']) < 0)) {
247
+ $invalid_properties[] = "invalid value for 'original', the character length must be bigger than or equal to 0.";
248
+ }
249
+
250
+ return $invalid_properties;
251
+ }
252
+
253
+ /**
254
+ * validate all the properties in the model
255
+ * return true if all passed
256
+ *
257
+ * @return bool True if all properties are valid
258
+ */
259
+ public function valid()
260
+ {
261
+
262
+ $allowed_values = ["MALE", "FEMALE", "NOT_APPLICABLE"];
263
+ if (!in_array($this->container['gender'], $allowed_values)) {
264
+ return false;
265
+ }
266
+ if (strlen($this->container['houseNr']) > 50) {
267
+ return false;
268
+ }
269
+ if (strlen($this->container['houseNr']) < 0) {
270
+ return false;
271
+ }
272
+ if (strlen($this->container['houseNrAddition']) > 50) {
273
+ return false;
274
+ }
275
+ if (strlen($this->container['houseNrAddition']) < 0) {
276
+ return false;
277
+ }
278
+ if (strlen($this->container['region']) > 50) {
279
+ return false;
280
+ }
281
+ if (strlen($this->container['region']) < 0) {
282
+ return false;
283
+ }
284
+ if (strlen($this->container['countryIso']) > 2) {
285
+ return false;
286
+ }
287
+ if (strlen($this->container['countryIso']) < 0) {
288
+ return false;
289
+ }
290
+ if (strlen($this->container['original']) > 256) {
291
+ return false;
292
+ }
293
+ if (strlen($this->container['original']) < 0) {
294
+ return false;
295
+ }
296
+ return true;
297
+ }
298
+
299
+
300
+ /**
301
+ * Gets gender
302
+ * @return string
303
+ */
304
+ public function getGender()
305
+ {
306
+ return $this->container['gender'];
307
+ }
308
+
309
+ /**
310
+ * Sets gender
311
+ * @param string $gender
312
+ * @return $this
313
+ */
314
+ public function setGender($gender)
315
+ {
316
+ $allowed_values = array('MALE', 'FEMALE', 'NOT_APPLICABLE');
317
+ if (!is_null($gender) && (!in_array($gender, $allowed_values))) {
318
+ throw new \InvalidArgumentException("Invalid value for 'gender', must be one of 'MALE', 'FEMALE', 'NOT_APPLICABLE'");
319
+ }
320
+ $this->container['gender'] = $gender;
321
+
322
+ return $this;
323
+ }
324
+
325
+ /**
326
+ * Gets companyName
327
+ * @return string
328
+ */
329
+ public function getCompanyName()
330
+ {
331
+ return $this->container['companyName'];
332
+ }
333
+
334
+ /**
335
+ * Sets companyName
336
+ * @param string $companyName
337
+ * @return $this
338
+ */
339
+ public function setCompanyName($companyName)
340
+ {
341
+ $this->container['companyName'] = $companyName;
342
+
343
+ return $this;
344
+ }
345
+
346
+ /**
347
+ * Gets firstName
348
+ * @return string
349
+ */
350
+ public function getFirstName()
351
+ {
352
+ return $this->container['firstName'];
353
+ }
354
+
355
+ /**
356
+ * Sets firstName
357
+ * @param string $firstName
358
+ * @return $this
359
+ */
360
+ public function setFirstName($firstName)
361
+ {
362
+ $this->container['firstName'] = $firstName;
363
+
364
+ return $this;
365
+ }
366
+
367
+ /**
368
+ * Gets lastName
369
+ * @return string
370
+ */
371
+ public function getLastName()
372
+ {
373
+ return $this->container['lastName'];
374
+ }
375
+
376
+ /**
377
+ * Sets lastName
378
+ * @param string $lastName
379
+ * @return $this
380
+ */
381
+ public function setLastName($lastName)
382
+ {
383
+ $this->container['lastName'] = $lastName;
384
+
385
+ return $this;
386
+ }
387
+
388
+ /**
389
+ * Gets streetName
390
+ * @return string
391
+ */
392
+ public function getStreetName()
393
+ {
394
+ return $this->container['streetName'];
395
+ }
396
+
397
+ /**
398
+ * Sets streetName
399
+ * @param string $streetName
400
+ * @return $this
401
+ */
402
+ public function setStreetName($streetName)
403
+ {
404
+ $this->container['streetName'] = $streetName;
405
+
406
+ return $this;
407
+ }
408
+
409
+ /**
410
+ * Gets houseNr
411
+ * @return string
412
+ */
413
+ public function getHouseNr()
414
+ {
415
+ return $this->container['houseNr'];
416
+ }
417
+
418
+ /**
419
+ * Sets houseNr
420
+ * @param string $houseNr
421
+ * @return $this
422
+ */
423
+ public function setHouseNr($houseNr)
424
+ {
425
+ if (!is_null($houseNr) && (strlen($houseNr) > 50)) {
426
+ throw new \InvalidArgumentException('invalid length for $houseNr when calling EntitiesAddressModels., must be smaller than or equal to 50.');
427
+ }
428
+ if (!is_null($houseNr) && (strlen($houseNr) < 0)) {
429
+ throw new \InvalidArgumentException('invalid length for $houseNr when calling EntitiesAddressModels., must be bigger than or equal to 0.');
430
+ }
431
+
432
+ $this->container['houseNr'] = $houseNr;
433
+
434
+ return $this;
435
+ }
436
+
437
+ /**
438
+ * Gets houseNrAddition
439
+ * @return string
440
+ */
441
+ public function getHouseNrAddition()
442
+ {
443
+ return $this->container['houseNrAddition'];
444
+ }
445
+
446
+ /**
447
+ * Sets houseNrAddition
448
+ * @param string $houseNrAddition
449
+ * @return $this
450
+ */
451
+ public function setHouseNrAddition($houseNrAddition)
452
+ {
453
+ if (!is_null($houseNrAddition) && (strlen($houseNrAddition) > 50)) {
454
+ throw new \InvalidArgumentException('invalid length for $houseNrAddition when calling EntitiesAddressModels., must be smaller than or equal to 50.');
455
+ }
456
+ if (!is_null($houseNrAddition) && (strlen($houseNrAddition) < 0)) {
457
+ throw new \InvalidArgumentException('invalid length for $houseNrAddition when calling EntitiesAddressModels., must be bigger than or equal to 0.');
458
+ }
459
+
460
+ $this->container['houseNrAddition'] = $houseNrAddition;
461
+
462
+ return $this;
463
+ }
464
+
465
+ /**
466
+ * Gets zipCode
467
+ * @return string
468
+ */
469
+ public function getZipCode()
470
+ {
471
+ return $this->container['zipCode'];
472
+ }
473
+
474
+ /**
475
+ * Sets zipCode
476
+ * @param string $zipCode
477
+ * @return $this
478
+ */
479
+ public function setZipCode($zipCode)
480
+ {
481
+ $this->container['zipCode'] = $zipCode;
482
+
483
+ return $this;
484
+ }
485
+
486
+ /**
487
+ * Gets city
488
+ * @return string
489
+ */
490
+ public function getCity()
491
+ {
492
+ return $this->container['city'];
493
+ }
494
+
495
+ /**
496
+ * Sets city
497
+ * @param string $city
498
+ * @return $this
499
+ */
500
+ public function setCity($city)
501
+ {
502
+ $this->container['city'] = $city;
503
+
504
+ return $this;
505
+ }
506
+
507
+ /**
508
+ * Gets region
509
+ * @return string
510
+ */
511
+ public function getRegion()
512
+ {
513
+ return $this->container['region'];
514
+ }
515
+
516
+ /**
517
+ * Sets region
518
+ * @param string $region
519
+ * @return $this
520
+ */
521
+ public function setRegion($region)
522
+ {
523
+ if (!is_null($region) && (strlen($region) > 50)) {
524
+ throw new \InvalidArgumentException('invalid length for $region when calling EntitiesAddressModels., must be smaller than or equal to 50.');
525
+ }
526
+ if (!is_null($region) && (strlen($region) < 0)) {
527
+ throw new \InvalidArgumentException('invalid length for $region when calling EntitiesAddressModels., must be bigger than or equal to 0.');
528
+ }
529
+
530
+ $this->container['region'] = $region;
531
+
532
+ return $this;
533
+ }
534
+
535
+ /**
536
+ * Gets countryIso
537
+ * @return string
538
+ */
539
+ public function getCountryIso()
540
+ {
541
+ return $this->container['countryIso'];
542
+ }
543
+
544
+ /**
545
+ * Sets countryIso
546
+ * @param string $countryIso
547
+ * @return $this
548
+ */
549
+ public function setCountryIso($countryIso)
550
+ {
551
+ if (!is_null($countryIso) && (strlen($countryIso) > 2)) {
552
+ throw new \InvalidArgumentException('invalid length for $countryIso when calling EntitiesAddressModels., must be smaller than or equal to 2.');
553
+ }
554
+ if (!is_null($countryIso) && (strlen($countryIso) < 0)) {
555
+ throw new \InvalidArgumentException('invalid length for $countryIso when calling EntitiesAddressModels., must be bigger than or equal to 0.');
556
+ }
557
+
558
+ $this->container['countryIso'] = $countryIso;
559
+
560
+ return $this;
561
+ }
562
+
563
+ /**
564
+ * Gets original
565
+ * @return string
566
+ */
567
+ public function getOriginal()
568
+ {
569
+ return $this->container['original'];
570
+ }
571
+
572
+ /**
573
+ * Sets original
574
+ * @param string $original
575
+ * @return $this
576
+ */
577
+ public function setOriginal($original)
578
+ {
579
+ if (!is_null($original) && (strlen($original) > 256)) {
580
+ throw new \InvalidArgumentException('invalid length for $original when calling EntitiesAddressModels., must be smaller than or equal to 256.');
581
+ }
582
+ if (!is_null($original) && (strlen($original) < 0)) {
583
+ throw new \InvalidArgumentException('invalid length for $original when calling EntitiesAddressModels., must be bigger than or equal to 0.');
584
+ }
585
+
586
+ $this->container['original'] = $original;
587
+
588
+ return $this;
589
+ }
590
+ /**
591
+ * Returns true if offset exists. False otherwise.
592
+ * @param integer $offset Offset
593
+ * @return boolean
594
+ */
595
+ public function offsetExists($offset)
596
+ {
597
+ return isset($this->container[$offset]);
598
+ }
599
+
600
+ /**
601
+ * Gets offset.
602
+ * @param integer $offset Offset
603
+ * @return mixed
604
+ */
605
+ public function offsetGet($offset)
606
+ {
607
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
608
+ }
609
+
610
+ /**
611
+ * Sets value based on offset.
612
+ * @param integer $offset Offset
613
+ * @param mixed $value Value to be set
614
+ * @return void
615
+ */
616
+ public function offsetSet($offset, $value)
617
+ {
618
+ if (is_null($offset)) {
619
+ $this->container[] = $value;
620
+ } else {
621
+ $this->container[$offset] = $value;
622
+ }
623
+ }
624
+
625
+ /**
626
+ * Unsets offset.
627
+ * @param integer $offset Offset
628
+ * @return void
629
+ */
630
+ public function offsetUnset($offset)
631
+ {
632
+ unset($this->container[$offset]);
633
+ }
634
+
635
+ /**
636
+ * Gets the string presentation of the object
637
+ * @return string
638
+ */
639
+ public function __toString()
640
+ {
641
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
642
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
643
+ }
644
+
645
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
646
+ }
647
+ }
648
+
649
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ExtraDataItem.php ADDED
@@ -0,0 +1,338 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ExtraDataItem
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * ExtraDataItem Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ExtraDataItem implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'ExtraDataItem';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'key' => 'string',
58
+ 'value' => 'string',
59
+ 'type' => 'string',
60
+ 'isPublic' => 'bool'
61
+ ];
62
+
63
+ public static function swaggerTypes()
64
+ {
65
+ return self::$swaggerTypes;
66
+ }
67
+
68
+ /**
69
+ * Array of attributes where the key is the local name, and the value is the original name
70
+ * @var string[]
71
+ */
72
+ protected static $attributeMap = [
73
+ 'key' => 'Key',
74
+ 'value' => 'Value',
75
+ 'type' => 'Type',
76
+ 'isPublic' => 'IsPublic'
77
+ ];
78
+
79
+
80
+ /**
81
+ * Array of attributes to setter functions (for deserialization of responses)
82
+ * @var string[]
83
+ */
84
+ protected static $setters = [
85
+ 'key' => 'setKey',
86
+ 'value' => 'setValue',
87
+ 'type' => 'setType',
88
+ 'isPublic' => 'setIsPublic'
89
+ ];
90
+
91
+
92
+ /**
93
+ * Array of attributes to getter functions (for serialization of requests)
94
+ * @var string[]
95
+ */
96
+ protected static $getters = [
97
+ 'key' => 'getKey',
98
+ 'value' => 'getValue',
99
+ 'type' => 'getType',
100
+ 'isPublic' => 'getIsPublic'
101
+ ];
102
+
103
+ public static function attributeMap()
104
+ {
105
+ return self::$attributeMap;
106
+ }
107
+
108
+ public static function setters()
109
+ {
110
+ return self::$setters;
111
+ }
112
+
113
+ public static function getters()
114
+ {
115
+ return self::$getters;
116
+ }
117
+
118
+ const TYPE_TEXT = 'TEXT';
119
+ const TYPE_NUMBER = 'NUMBER';
120
+ const TYPE_URL = 'URL';
121
+ const TYPE_IMAGEURL = 'IMAGEURL';
122
+
123
+
124
+
125
+ /**
126
+ * Gets allowable values of the enum
127
+ * @return string[]
128
+ */
129
+ public function getTypeAllowableValues()
130
+ {
131
+ return [
132
+ self::TYPE_TEXT,
133
+ self::TYPE_NUMBER,
134
+ self::TYPE_URL,
135
+ self::TYPE_IMAGEURL,
136
+ ];
137
+ }
138
+
139
+
140
+ /**
141
+ * Associative array for storing property values
142
+ * @var mixed[]
143
+ */
144
+ protected $container = [];
145
+
146
+ /**
147
+ * Constructor
148
+ * @param mixed[] $data Associated array of property values initializing the model
149
+ */
150
+ public function __construct(array $data = null)
151
+ {
152
+ $this->container['key'] = isset($data['key']) ? $data['key'] : null;
153
+ $this->container['value'] = isset($data['value']) ? $data['value'] : null;
154
+ $this->container['type'] = isset($data['type']) ? $data['type'] : null;
155
+ $this->container['isPublic'] = isset($data['isPublic']) ? $data['isPublic'] : null;
156
+ }
157
+
158
+ /**
159
+ * show all the invalid properties with reasons.
160
+ *
161
+ * @return array invalid properties with reasons
162
+ */
163
+ public function listInvalidProperties()
164
+ {
165
+ $invalid_properties = [];
166
+
167
+ $allowed_values = ["TEXT", "NUMBER", "URL", "IMAGEURL"];
168
+ if (!in_array($this->container['type'], $allowed_values)) {
169
+ $invalid_properties[] = "invalid value for 'type', must be one of 'TEXT', 'NUMBER', 'URL', 'IMAGEURL'.";
170
+ }
171
+
172
+ return $invalid_properties;
173
+ }
174
+
175
+ /**
176
+ * validate all the properties in the model
177
+ * return true if all passed
178
+ *
179
+ * @return bool True if all properties are valid
180
+ */
181
+ public function valid()
182
+ {
183
+
184
+ $allowed_values = ["TEXT", "NUMBER", "URL", "IMAGEURL"];
185
+ if (!in_array($this->container['type'], $allowed_values)) {
186
+ return false;
187
+ }
188
+ return true;
189
+ }
190
+
191
+
192
+ /**
193
+ * Gets key
194
+ * @return string
195
+ */
196
+ public function getKey()
197
+ {
198
+ return $this->container['key'];
199
+ }
200
+
201
+ /**
202
+ * Sets key
203
+ * @param string $key
204
+ * @return $this
205
+ */
206
+ public function setKey($key)
207
+ {
208
+ $this->container['key'] = $key;
209
+
210
+ return $this;
211
+ }
212
+
213
+ /**
214
+ * Gets value
215
+ * @return string
216
+ */
217
+ public function getValue()
218
+ {
219
+ return $this->container['value'];
220
+ }
221
+
222
+ /**
223
+ * Sets value
224
+ * @param string $value
225
+ * @return $this
226
+ */
227
+ public function setValue($value)
228
+ {
229
+ $this->container['value'] = $value;
230
+
231
+ return $this;
232
+ }
233
+
234
+ /**
235
+ * Gets type
236
+ * @return string
237
+ */
238
+ public function getType()
239
+ {
240
+ return $this->container['type'];
241
+ }
242
+
243
+ /**
244
+ * Sets type
245
+ * @param string $type
246
+ * @return $this
247
+ */
248
+ public function setType($type)
249
+ {
250
+ $allowed_values = array('TEXT', 'NUMBER', 'URL', 'IMAGEURL');
251
+ if (!is_null($type) && (!in_array($type, $allowed_values))) {
252
+ throw new \InvalidArgumentException("Invalid value for 'type', must be one of 'TEXT', 'NUMBER', 'URL', 'IMAGEURL'");
253
+ }
254
+ $this->container['type'] = $type;
255
+
256
+ return $this;
257
+ }
258
+
259
+ /**
260
+ * Gets isPublic
261
+ * @return bool
262
+ */
263
+ public function getIsPublic()
264
+ {
265
+ return $this->container['isPublic'];
266
+ }
267
+
268
+ /**
269
+ * Sets isPublic
270
+ * @param bool $isPublic
271
+ * @return $this
272
+ */
273
+ public function setIsPublic($isPublic)
274
+ {
275
+ $this->container['isPublic'] = $isPublic;
276
+
277
+ return $this;
278
+ }
279
+ /**
280
+ * Returns true if offset exists. False otherwise.
281
+ * @param integer $offset Offset
282
+ * @return boolean
283
+ */
284
+ public function offsetExists($offset)
285
+ {
286
+ return isset($this->container[$offset]);
287
+ }
288
+
289
+ /**
290
+ * Gets offset.
291
+ * @param integer $offset Offset
292
+ * @return mixed
293
+ */
294
+ public function offsetGet($offset)
295
+ {
296
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
297
+ }
298
+
299
+ /**
300
+ * Sets value based on offset.
301
+ * @param integer $offset Offset
302
+ * @param mixed $value Value to be set
303
+ * @return void
304
+ */
305
+ public function offsetSet($offset, $value)
306
+ {
307
+ if (is_null($offset)) {
308
+ $this->container[] = $value;
309
+ } else {
310
+ $this->container[$offset] = $value;
311
+ }
312
+ }
313
+
314
+ /**
315
+ * Unsets offset.
316
+ * @param integer $offset Offset
317
+ * @return void
318
+ */
319
+ public function offsetUnset($offset)
320
+ {
321
+ unset($this->container[$offset]);
322
+ }
323
+
324
+ /**
325
+ * Gets the string presentation of the object
326
+ * @return string
327
+ */
328
+ public function __toString()
329
+ {
330
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
331
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
332
+ }
333
+
334
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
335
+ }
336
+ }
337
+
338
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/MerchantCancellationLineRequest.php ADDED
@@ -0,0 +1,267 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MerchantCancellationLineRequest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * MerchantCancellationLineRequest Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class MerchantCancellationLineRequest implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'MerchantCancellationLineRequest';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'merchantProductNo' => 'string',
58
+ 'quantity' => 'int'
59
+ ];
60
+
61
+ public static function swaggerTypes()
62
+ {
63
+ return self::$swaggerTypes;
64
+ }
65
+
66
+ /**
67
+ * Array of attributes where the key is the local name, and the value is the original name
68
+ * @var string[]
69
+ */
70
+ protected static $attributeMap = [
71
+ 'merchantProductNo' => 'MerchantProductNo',
72
+ 'quantity' => 'Quantity'
73
+ ];
74
+
75
+
76
+ /**
77
+ * Array of attributes to setter functions (for deserialization of responses)
78
+ * @var string[]
79
+ */
80
+ protected static $setters = [
81
+ 'merchantProductNo' => 'setMerchantProductNo',
82
+ 'quantity' => 'setQuantity'
83
+ ];
84
+
85
+
86
+ /**
87
+ * Array of attributes to getter functions (for serialization of requests)
88
+ * @var string[]
89
+ */
90
+ protected static $getters = [
91
+ 'merchantProductNo' => 'getMerchantProductNo',
92
+ 'quantity' => 'getQuantity'
93
+ ];
94
+
95
+ public static function attributeMap()
96
+ {
97
+ return self::$attributeMap;
98
+ }
99
+
100
+ public static function setters()
101
+ {
102
+ return self::$setters;
103
+ }
104
+
105
+ public static function getters()
106
+ {
107
+ return self::$getters;
108
+ }
109
+
110
+
111
+
112
+
113
+
114
+ /**
115
+ * Associative array for storing property values
116
+ * @var mixed[]
117
+ */
118
+ protected $container = [];
119
+
120
+ /**
121
+ * Constructor
122
+ * @param mixed[] $data Associated array of property values initializing the model
123
+ */
124
+ public function __construct(array $data = null)
125
+ {
126
+ $this->container['merchantProductNo'] = isset($data['merchantProductNo']) ? $data['merchantProductNo'] : null;
127
+ $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null;
128
+ }
129
+
130
+ /**
131
+ * show all the invalid properties with reasons.
132
+ *
133
+ * @return array invalid properties with reasons
134
+ */
135
+ public function listInvalidProperties()
136
+ {
137
+ $invalid_properties = [];
138
+
139
+ if ($this->container['merchantProductNo'] === null) {
140
+ $invalid_properties[] = "'merchantProductNo' can't be null";
141
+ }
142
+ if ($this->container['quantity'] === null) {
143
+ $invalid_properties[] = "'quantity' can't be null";
144
+ }
145
+ return $invalid_properties;
146
+ }
147
+
148
+ /**
149
+ * validate all the properties in the model
150
+ * return true if all passed
151
+ *
152
+ * @return bool True if all properties are valid
153
+ */
154
+ public function valid()
155
+ {
156
+
157
+ if ($this->container['merchantProductNo'] === null) {
158
+ return false;
159
+ }
160
+ if ($this->container['quantity'] === null) {
161
+ return false;
162
+ }
163
+ return true;
164
+ }
165
+
166
+
167
+ /**
168
+ * Gets merchantProductNo
169
+ * @return string
170
+ */
171
+ public function getMerchantProductNo()
172
+ {
173
+ return $this->container['merchantProductNo'];
174
+ }
175
+
176
+ /**
177
+ * Sets merchantProductNo
178
+ * @param string $merchantProductNo
179
+ * @return $this
180
+ */
181
+ public function setMerchantProductNo($merchantProductNo)
182
+ {
183
+ $this->container['merchantProductNo'] = $merchantProductNo;
184
+
185
+ return $this;
186
+ }
187
+
188
+ /**
189
+ * Gets quantity
190
+ * @return int
191
+ */
192
+ public function getQuantity()
193
+ {
194
+ return $this->container['quantity'];
195
+ }
196
+
197
+ /**
198
+ * Sets quantity
199
+ * @param int $quantity
200
+ * @return $this
201
+ */
202
+ public function setQuantity($quantity)
203
+ {
204
+ $this->container['quantity'] = $quantity;
205
+
206
+ return $this;
207
+ }
208
+ /**
209
+ * Returns true if offset exists. False otherwise.
210
+ * @param integer $offset Offset
211
+ * @return boolean
212
+ */
213
+ public function offsetExists($offset)
214
+ {
215
+ return isset($this->container[$offset]);
216
+ }
217
+
218
+ /**
219
+ * Gets offset.
220
+ * @param integer $offset Offset
221
+ * @return mixed
222
+ */
223
+ public function offsetGet($offset)
224
+ {
225
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
226
+ }
227
+
228
+ /**
229
+ * Sets value based on offset.
230
+ * @param integer $offset Offset
231
+ * @param mixed $value Value to be set
232
+ * @return void
233
+ */
234
+ public function offsetSet($offset, $value)
235
+ {
236
+ if (is_null($offset)) {
237
+ $this->container[] = $value;
238
+ } else {
239
+ $this->container[$offset] = $value;
240
+ }
241
+ }
242
+
243
+ /**
244
+ * Unsets offset.
245
+ * @param integer $offset Offset
246
+ * @return void
247
+ */
248
+ public function offsetUnset($offset)
249
+ {
250
+ unset($this->container[$offset]);
251
+ }
252
+
253
+ /**
254
+ * Gets the string presentation of the object
255
+ * @return string
256
+ */
257
+ public function __toString()
258
+ {
259
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
260
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
261
+ }
262
+
263
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
264
+ }
265
+ }
266
+
267
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/MerchantCancellationRequest.php ADDED
@@ -0,0 +1,325 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MerchantCancellationRequest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * MerchantCancellationRequest Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class MerchantCancellationRequest implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'MerchantCancellationRequest';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'merchantCancellationNo' => 'string',
58
+ 'merchantOrderNo' => 'string',
59
+ 'lines' => '\ChannelEngine\ApiClient\Model\MerchantCancellationLineRequest[]',
60
+ 'reason' => 'string'
61
+ ];
62
+
63
+ public static function swaggerTypes()
64
+ {
65
+ return self::$swaggerTypes;
66
+ }
67
+
68
+ /**
69
+ * Array of attributes where the key is the local name, and the value is the original name
70
+ * @var string[]
71
+ */
72
+ protected static $attributeMap = [
73
+ 'merchantCancellationNo' => 'MerchantCancellationNo',
74
+ 'merchantOrderNo' => 'MerchantOrderNo',
75
+ 'lines' => 'Lines',
76
+ 'reason' => 'Reason'
77
+ ];
78
+
79
+
80
+ /**
81
+ * Array of attributes to setter functions (for deserialization of responses)
82
+ * @var string[]
83
+ */
84
+ protected static $setters = [
85
+ 'merchantCancellationNo' => 'setMerchantCancellationNo',
86
+ 'merchantOrderNo' => 'setMerchantOrderNo',
87
+ 'lines' => 'setLines',
88
+ 'reason' => 'setReason'
89
+ ];
90
+
91
+
92
+ /**
93
+ * Array of attributes to getter functions (for serialization of requests)
94
+ * @var string[]
95
+ */
96
+ protected static $getters = [
97
+ 'merchantCancellationNo' => 'getMerchantCancellationNo',
98
+ 'merchantOrderNo' => 'getMerchantOrderNo',
99
+ 'lines' => 'getLines',
100
+ 'reason' => 'getReason'
101
+ ];
102
+
103
+ public static function attributeMap()
104
+ {
105
+ return self::$attributeMap;
106
+ }
107
+
108
+ public static function setters()
109
+ {
110
+ return self::$setters;
111
+ }
112
+
113
+ public static function getters()
114
+ {
115
+ return self::$getters;
116
+ }
117
+
118
+
119
+
120
+
121
+
122
+ /**
123
+ * Associative array for storing property values
124
+ * @var mixed[]
125
+ */
126
+ protected $container = [];
127
+
128
+ /**
129
+ * Constructor
130
+ * @param mixed[] $data Associated array of property values initializing the model
131
+ */
132
+ public function __construct(array $data = null)
133
+ {
134
+ $this->container['merchantCancellationNo'] = isset($data['merchantCancellationNo']) ? $data['merchantCancellationNo'] : null;
135
+ $this->container['merchantOrderNo'] = isset($data['merchantOrderNo']) ? $data['merchantOrderNo'] : null;
136
+ $this->container['lines'] = isset($data['lines']) ? $data['lines'] : null;
137
+ $this->container['reason'] = isset($data['reason']) ? $data['reason'] : null;
138
+ }
139
+
140
+ /**
141
+ * show all the invalid properties with reasons.
142
+ *
143
+ * @return array invalid properties with reasons
144
+ */
145
+ public function listInvalidProperties()
146
+ {
147
+ $invalid_properties = [];
148
+
149
+ if ($this->container['merchantCancellationNo'] === null) {
150
+ $invalid_properties[] = "'merchantCancellationNo' can't be null";
151
+ }
152
+ if ($this->container['merchantOrderNo'] === null) {
153
+ $invalid_properties[] = "'merchantOrderNo' can't be null";
154
+ }
155
+ if ($this->container['lines'] === null) {
156
+ $invalid_properties[] = "'lines' can't be null";
157
+ }
158
+ return $invalid_properties;
159
+ }
160
+
161
+ /**
162
+ * validate all the properties in the model
163
+ * return true if all passed
164
+ *
165
+ * @return bool True if all properties are valid
166
+ */
167
+ public function valid()
168
+ {
169
+
170
+ if ($this->container['merchantCancellationNo'] === null) {
171
+ return false;
172
+ }
173
+ if ($this->container['merchantOrderNo'] === null) {
174
+ return false;
175
+ }
176
+ if ($this->container['lines'] === null) {
177
+ return false;
178
+ }
179
+ return true;
180
+ }
181
+
182
+
183
+ /**
184
+ * Gets merchantCancellationNo
185
+ * @return string
186
+ */
187
+ public function getMerchantCancellationNo()
188
+ {
189
+ return $this->container['merchantCancellationNo'];
190
+ }
191
+
192
+ /**
193
+ * Sets merchantCancellationNo
194
+ * @param string $merchantCancellationNo
195
+ * @return $this
196
+ */
197
+ public function setMerchantCancellationNo($merchantCancellationNo)
198
+ {
199
+ $this->container['merchantCancellationNo'] = $merchantCancellationNo;
200
+
201
+ return $this;
202
+ }
203
+
204
+ /**
205
+ * Gets merchantOrderNo
206
+ * @return string
207
+ */
208
+ public function getMerchantOrderNo()
209
+ {
210
+ return $this->container['merchantOrderNo'];
211
+ }
212
+
213
+ /**
214
+ * Sets merchantOrderNo
215
+ * @param string $merchantOrderNo
216
+ * @return $this
217
+ */
218
+ public function setMerchantOrderNo($merchantOrderNo)
219
+ {
220
+ $this->container['merchantOrderNo'] = $merchantOrderNo;
221
+
222
+ return $this;
223
+ }
224
+
225
+ /**
226
+ * Gets lines
227
+ * @return \ChannelEngine\ApiClient\Model\MerchantCancellationLineRequest[]
228
+ */
229
+ public function getLines()
230
+ {
231
+ return $this->container['lines'];
232
+ }
233
+
234
+ /**
235
+ * Sets lines
236
+ * @param \ChannelEngine\ApiClient\Model\MerchantCancellationLineRequest[] $lines
237
+ * @return $this
238
+ */
239
+ public function setLines($lines)
240
+ {
241
+ $this->container['lines'] = $lines;
242
+
243
+ return $this;
244
+ }
245
+
246
+ /**
247
+ * Gets reason
248
+ * @return string
249
+ */
250
+ public function getReason()
251
+ {
252
+ return $this->container['reason'];
253
+ }
254
+
255
+ /**
256
+ * Sets reason
257
+ * @param string $reason
258
+ * @return $this
259
+ */
260
+ public function setReason($reason)
261
+ {
262
+ $this->container['reason'] = $reason;
263
+
264
+ return $this;
265
+ }
266
+ /**
267
+ * Returns true if offset exists. False otherwise.
268
+ * @param integer $offset Offset
269
+ * @return boolean
270
+ */
271
+ public function offsetExists($offset)
272
+ {
273
+ return isset($this->container[$offset]);
274
+ }
275
+
276
+ /**
277
+ * Gets offset.
278
+ * @param integer $offset Offset
279
+ * @return mixed
280
+ */
281
+ public function offsetGet($offset)
282
+ {
283
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
284
+ }
285
+
286
+ /**
287
+ * Sets value based on offset.
288
+ * @param integer $offset Offset
289
+ * @param mixed $value Value to be set
290
+ * @return void
291
+ */
292
+ public function offsetSet($offset, $value)
293
+ {
294
+ if (is_null($offset)) {
295
+ $this->container[] = $value;
296
+ } else {
297
+ $this->container[$offset] = $value;
298
+ }
299
+ }
300
+
301
+ /**
302
+ * Unsets offset.
303
+ * @param integer $offset Offset
304
+ * @return void
305
+ */
306
+ public function offsetUnset($offset)
307
+ {
308
+ unset($this->container[$offset]);
309
+ }
310
+
311
+ /**
312
+ * Gets the string presentation of the object
313
+ * @return string
314
+ */
315
+ public function __toString()
316
+ {
317
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
318
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
319
+ }
320
+
321
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
322
+ }
323
+ }
324
+
325
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/MerchantOrderLineResponse.php ADDED
@@ -0,0 +1,461 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MerchantOrderLineResponse
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * MerchantOrderLineResponse Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class MerchantOrderLineResponse implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'MerchantOrderLineResponse';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'merchantProductNo' => 'string',
58
+ 'channelProductNo' => 'string',
59
+ 'quantity' => 'int',
60
+ 'unitPriceInclVat' => 'double',
61
+ 'feeFixed' => 'double',
62
+ 'feeRate' => 'double',
63
+ 'condition' => 'string'
64
+ ];
65
+
66
+ public static function swaggerTypes()
67
+ {
68
+ return self::$swaggerTypes;
69
+ }
70
+
71
+ /**
72
+ * Array of attributes where the key is the local name, and the value is the original name
73
+ * @var string[]
74
+ */
75
+ protected static $attributeMap = [
76
+ 'merchantProductNo' => 'MerchantProductNo',
77
+ 'channelProductNo' => 'ChannelProductNo',
78
+ 'quantity' => 'Quantity',
79
+ 'unitPriceInclVat' => 'UnitPriceInclVat',
80
+ 'feeFixed' => 'FeeFixed',
81
+ 'feeRate' => 'FeeRate',
82
+ 'condition' => 'Condition'
83
+ ];
84
+
85
+
86
+ /**
87
+ * Array of attributes to setter functions (for deserialization of responses)
88
+ * @var string[]
89
+ */
90
+ protected static $setters = [
91
+ 'merchantProductNo' => 'setMerchantProductNo',
92
+ 'channelProductNo' => 'setChannelProductNo',
93
+ 'quantity' => 'setQuantity',
94
+ 'unitPriceInclVat' => 'setUnitPriceInclVat',
95
+ 'feeFixed' => 'setFeeFixed',
96
+ 'feeRate' => 'setFeeRate',
97
+ 'condition' => 'setCondition'
98
+ ];
99
+
100
+
101
+ /**
102
+ * Array of attributes to getter functions (for serialization of requests)
103
+ * @var string[]
104
+ */
105
+ protected static $getters = [
106
+ 'merchantProductNo' => 'getMerchantProductNo',
107
+ 'channelProductNo' => 'getChannelProductNo',
108
+ 'quantity' => 'getQuantity',
109
+ 'unitPriceInclVat' => 'getUnitPriceInclVat',
110
+ 'feeFixed' => 'getFeeFixed',
111
+ 'feeRate' => 'getFeeRate',
112
+ 'condition' => 'getCondition'
113
+ ];
114
+
115
+ public static function attributeMap()
116
+ {
117
+ return self::$attributeMap;
118
+ }
119
+
120
+ public static function setters()
121
+ {
122
+ return self::$setters;
123
+ }
124
+
125
+ public static function getters()
126
+ {
127
+ return self::$getters;
128
+ }
129
+
130
+ const CONDITION_NEW = 'NEW';
131
+ const CONDITION_NEW_REFURBISHED = 'NEW_REFURBISHED';
132
+ const CONDITION_USED_AS_NEW = 'USED_AS_NEW';
133
+ const CONDITION_USED_GOOD = 'USED_GOOD';
134
+ const CONDITION_USED_REASONABLE = 'USED_REASONABLE';
135
+ const CONDITION_USED_MEDIOCRE = 'USED_MEDIOCRE';
136
+ const CONDITION_UNKNOWN = 'UNKNOWN';
137
+
138
+
139
+
140
+ /**
141
+ * Gets allowable values of the enum
142
+ * @return string[]
143
+ */
144
+ public function getConditionAllowableValues()
145
+ {
146
+ return [
147
+ self::CONDITION_NEW,
148
+ self::CONDITION_NEW_REFURBISHED,
149
+ self::CONDITION_USED_AS_NEW,
150
+ self::CONDITION_USED_GOOD,
151
+ self::CONDITION_USED_REASONABLE,
152
+ self::CONDITION_USED_MEDIOCRE,
153
+ self::CONDITION_UNKNOWN,
154
+ ];
155
+ }
156
+
157
+
158
+ /**
159
+ * Associative array for storing property values
160
+ * @var mixed[]
161
+ */
162
+ protected $container = [];
163
+
164
+ /**
165
+ * Constructor
166
+ * @param mixed[] $data Associated array of property values initializing the model
167
+ */
168
+ public function __construct(array $data = null)
169
+ {
170
+ $this->container['merchantProductNo'] = isset($data['merchantProductNo']) ? $data['merchantProductNo'] : null;
171
+ $this->container['channelProductNo'] = isset($data['channelProductNo']) ? $data['channelProductNo'] : null;
172
+ $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null;
173
+ $this->container['unitPriceInclVat'] = isset($data['unitPriceInclVat']) ? $data['unitPriceInclVat'] : null;
174
+ $this->container['feeFixed'] = isset($data['feeFixed']) ? $data['feeFixed'] : null;
175
+ $this->container['feeRate'] = isset($data['feeRate']) ? $data['feeRate'] : null;
176
+ $this->container['condition'] = isset($data['condition']) ? $data['condition'] : null;
177
+ }
178
+
179
+ /**
180
+ * show all the invalid properties with reasons.
181
+ *
182
+ * @return array invalid properties with reasons
183
+ */
184
+ public function listInvalidProperties()
185
+ {
186
+ $invalid_properties = [];
187
+
188
+ if ($this->container['channelProductNo'] === null) {
189
+ $invalid_properties[] = "'channelProductNo' can't be null";
190
+ }
191
+ if ((strlen($this->container['channelProductNo']) > 50)) {
192
+ $invalid_properties[] = "invalid value for 'channelProductNo', the character length must be smaller than or equal to 50.";
193
+ }
194
+
195
+ if ((strlen($this->container['channelProductNo']) < 0)) {
196
+ $invalid_properties[] = "invalid value for 'channelProductNo', the character length must be bigger than or equal to 0.";
197
+ }
198
+
199
+ if ($this->container['quantity'] === null) {
200
+ $invalid_properties[] = "'quantity' can't be null";
201
+ }
202
+ if ($this->container['unitPriceInclVat'] === null) {
203
+ $invalid_properties[] = "'unitPriceInclVat' can't be null";
204
+ }
205
+ $allowed_values = ["NEW", "NEW_REFURBISHED", "USED_AS_NEW", "USED_GOOD", "USED_REASONABLE", "USED_MEDIOCRE", "UNKNOWN"];
206
+ if (!in_array($this->container['condition'], $allowed_values)) {
207
+ $invalid_properties[] = "invalid value for 'condition', must be one of 'NEW', 'NEW_REFURBISHED', 'USED_AS_NEW', 'USED_GOOD', 'USED_REASONABLE', 'USED_MEDIOCRE', 'UNKNOWN'.";
208
+ }
209
+
210
+ return $invalid_properties;
211
+ }
212
+
213
+ /**
214
+ * validate all the properties in the model
215
+ * return true if all passed
216
+ *
217
+ * @return bool True if all properties are valid
218
+ */
219
+ public function valid()
220
+ {
221
+
222
+ if ($this->container['channelProductNo'] === null) {
223
+ return false;
224
+ }
225
+ if (strlen($this->container['channelProductNo']) > 50) {
226
+ return false;
227
+ }
228
+ if (strlen($this->container['channelProductNo']) < 0) {
229
+ return false;
230
+ }
231
+ if ($this->container['quantity'] === null) {
232
+ return false;
233
+ }
234
+ if ($this->container['unitPriceInclVat'] === null) {
235
+ return false;
236
+ }
237
+ $allowed_values = ["NEW", "NEW_REFURBISHED", "USED_AS_NEW", "USED_GOOD", "USED_REASONABLE", "USED_MEDIOCRE", "UNKNOWN"];
238
+ if (!in_array($this->container['condition'], $allowed_values)) {
239
+ return false;
240
+ }
241
+ return true;
242
+ }
243
+
244
+
245
+ /**
246
+ * Gets merchantProductNo
247
+ * @return string
248
+ */
249
+ public function getMerchantProductNo()
250
+ {
251
+ return $this->container['merchantProductNo'];
252
+ }
253
+
254
+ /**
255
+ * Sets merchantProductNo
256
+ * @param string $merchantProductNo
257
+ * @return $this
258
+ */
259
+ public function setMerchantProductNo($merchantProductNo)
260
+ {
261
+ $this->container['merchantProductNo'] = $merchantProductNo;
262
+
263
+ return $this;
264
+ }
265
+
266
+ /**
267
+ * Gets channelProductNo
268
+ * @return string
269
+ */
270
+ public function getChannelProductNo()
271
+ {
272
+ return $this->container['channelProductNo'];
273
+ }
274
+
275
+ /**
276
+ * Sets channelProductNo
277
+ * @param string $channelProductNo
278
+ * @return $this
279
+ */
280
+ public function setChannelProductNo($channelProductNo)
281
+ {
282
+ if ((strlen($channelProductNo) > 50)) {
283
+ throw new \InvalidArgumentException('invalid length for $channelProductNo when calling MerchantOrderLineResponse., must be smaller than or equal to 50.');
284
+ }
285
+ if ((strlen($channelProductNo) < 0)) {
286
+ throw new \InvalidArgumentException('invalid length for $channelProductNo when calling MerchantOrderLineResponse., must be bigger than or equal to 0.');
287
+ }
288
+
289
+ $this->container['channelProductNo'] = $channelProductNo;
290
+
291
+ return $this;
292
+ }
293
+
294
+ /**
295
+ * Gets quantity
296
+ * @return int
297
+ */
298
+ public function getQuantity()
299
+ {
300
+ return $this->container['quantity'];
301
+ }
302
+
303
+ /**
304
+ * Sets quantity
305
+ * @param int $quantity
306
+ * @return $this
307
+ */
308
+ public function setQuantity($quantity)
309
+ {
310
+ $this->container['quantity'] = $quantity;
311
+
312
+ return $this;
313
+ }
314
+
315
+ /**
316
+ * Gets unitPriceInclVat
317
+ * @return double
318
+ */
319
+ public function getUnitPriceInclVat()
320
+ {
321
+ return $this->container['unitPriceInclVat'];
322
+ }
323
+
324
+ /**
325
+ * Sets unitPriceInclVat
326
+ * @param double $unitPriceInclVat The value of a single unit of the ordered product including VAT (in the tenant's base currency calculated using the exchange rate at the time of ordering).
327
+ * @return $this
328
+ */
329
+ public function setUnitPriceInclVat($unitPriceInclVat)
330
+ {
331
+ $this->container['unitPriceInclVat'] = $unitPriceInclVat;
332
+
333
+ return $this;
334
+ }
335
+
336
+ /**
337
+ * Gets feeFixed
338
+ * @return double
339
+ */
340
+ public function getFeeFixed()
341
+ {
342
+ return $this->container['feeFixed'];
343
+ }
344
+
345
+ /**
346
+ * Sets feeFixed
347
+ * @param double $feeFixed A fixed fee that is charged by the Channel for this orderline. This field is optional, send 0 if not applicable.
348
+ * @return $this
349
+ */
350
+ public function setFeeFixed($feeFixed)
351
+ {
352
+ $this->container['feeFixed'] = $feeFixed;
353
+
354
+ return $this;
355
+ }
356
+
357
+ /**
358
+ * Gets feeRate
359
+ * @return double
360
+ */
361
+ public function getFeeRate()
362
+ {
363
+ return $this->container['feeRate'];
364
+ }
365
+
366
+ /**
367
+ * Sets feeRate
368
+ * @param double $feeRate A percentage fee that is charged by the Channel for this orderline. This field is optional, send 0 if not applicable.
369
+ * @return $this
370
+ */
371
+ public function setFeeRate($feeRate)
372
+ {
373
+ $this->container['feeRate'] = $feeRate;
374
+
375
+ return $this;
376
+ }
377
+
378
+ /**
379
+ * Gets condition
380
+ * @return string
381
+ */
382
+ public function getCondition()
383
+ {
384
+ return $this->container['condition'];
385
+ }
386
+
387
+ /**
388
+ * Sets condition
389
+ * @param string $condition The condition of the product, this can be used to indicate that a product is a second-hand product
390
+ * @return $this
391
+ */
392
+ public function setCondition($condition)
393
+ {
394
+ $allowed_values = array('NEW', 'NEW_REFURBISHED', 'USED_AS_NEW', 'USED_GOOD', 'USED_REASONABLE', 'USED_MEDIOCRE', 'UNKNOWN');
395
+ if (!is_null($condition) && (!in_array($condition, $allowed_values))) {
396
+ throw new \InvalidArgumentException("Invalid value for 'condition', must be one of 'NEW', 'NEW_REFURBISHED', 'USED_AS_NEW', 'USED_GOOD', 'USED_REASONABLE', 'USED_MEDIOCRE', 'UNKNOWN'");
397
+ }
398
+ $this->container['condition'] = $condition;
399
+
400
+ return $this;
401
+ }
402
+ /**
403
+ * Returns true if offset exists. False otherwise.
404
+ * @param integer $offset Offset
405
+ * @return boolean
406
+ */
407
+ public function offsetExists($offset)
408
+ {
409
+ return isset($this->container[$offset]);
410
+ }
411
+
412
+ /**
413
+ * Gets offset.
414
+ * @param integer $offset Offset
415
+ * @return mixed
416
+ */
417
+ public function offsetGet($offset)
418
+ {
419
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
420
+ }
421
+
422
+ /**
423
+ * Sets value based on offset.
424
+ * @param integer $offset Offset
425
+ * @param mixed $value Value to be set
426
+ * @return void
427
+ */
428
+ public function offsetSet($offset, $value)
429
+ {
430
+ if (is_null($offset)) {
431
+ $this->container[] = $value;
432
+ } else {
433
+ $this->container[$offset] = $value;
434
+ }
435
+ }
436
+
437
+ /**
438
+ * Unsets offset.
439
+ * @param integer $offset Offset
440
+ * @return void
441
+ */
442
+ public function offsetUnset($offset)
443
+ {
444
+ unset($this->container[$offset]);
445
+ }
446
+
447
+ /**
448
+ * Gets the string presentation of the object
449
+ * @return string
450
+ */
451
+ public function __toString()
452
+ {
453
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
454
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
455
+ }
456
+
457
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
458
+ }
459
+ }
460
+
461
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/MerchantOrderResponse.php ADDED
@@ -0,0 +1,844 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MerchantOrderResponse
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * MerchantOrderResponse Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class MerchantOrderResponse implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'MerchantOrderResponse';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'id' => 'int',
58
+ 'channelName' => 'string',
59
+ 'channelOrderSupport' => 'string',
60
+ 'channelOrderNo' => 'string',
61
+ 'lines' => '\ChannelEngine\ApiClient\Model\MerchantOrderLineResponse[]',
62
+ 'phone' => 'string',
63
+ 'email' => 'string',
64
+ 'companyRegistrationNo' => 'string',
65
+ 'vatNo' => 'string',
66
+ 'paymentMethod' => 'string',
67
+ 'shippingCostsInclVat' => 'double',
68
+ 'currencyCode' => 'string',
69
+ 'orderDate' => '\DateTime',
70
+ 'channelCustomerNo' => 'string',
71
+ 'billingAddress' => '\ChannelEngine\ApiClient\Model\EntitiesAddressModels',
72
+ 'shippingAddress' => '\ChannelEngine\ApiClient\Model\EntitiesAddressModels',
73
+ 'extraData' => 'map[string,string]'
74
+ ];
75
+
76
+ public static function swaggerTypes()
77
+ {
78
+ return self::$swaggerTypes;
79
+ }
80
+
81
+ /**
82
+ * Array of attributes where the key is the local name, and the value is the original name
83
+ * @var string[]
84
+ */
85
+ protected static $attributeMap = [
86
+ 'id' => 'Id',
87
+ 'channelName' => 'ChannelName',
88
+ 'channelOrderSupport' => 'ChannelOrderSupport',
89
+ 'channelOrderNo' => 'ChannelOrderNo',
90
+ 'lines' => 'Lines',
91
+ 'phone' => 'Phone',
92
+ 'email' => 'Email',
93
+ 'companyRegistrationNo' => 'CompanyRegistrationNo',
94
+ 'vatNo' => 'VatNo',
95
+ 'paymentMethod' => 'PaymentMethod',
96
+ 'shippingCostsInclVat' => 'ShippingCostsInclVat',
97
+ 'currencyCode' => 'CurrencyCode',
98
+ 'orderDate' => 'OrderDate',
99
+ 'channelCustomerNo' => 'ChannelCustomerNo',
100
+ 'billingAddress' => 'BillingAddress',
101
+ 'shippingAddress' => 'ShippingAddress',
102
+ 'extraData' => 'ExtraData'
103
+ ];
104
+
105
+
106
+ /**
107
+ * Array of attributes to setter functions (for deserialization of responses)
108
+ * @var string[]
109
+ */
110
+ protected static $setters = [
111
+ 'id' => 'setId',
112
+ 'channelName' => 'setChannelName',
113
+ 'channelOrderSupport' => 'setChannelOrderSupport',
114
+ 'channelOrderNo' => 'setChannelOrderNo',
115
+ 'lines' => 'setLines',
116
+ 'phone' => 'setPhone',
117
+ 'email' => 'setEmail',
118
+ 'companyRegistrationNo' => 'setCompanyRegistrationNo',
119
+ 'vatNo' => 'setVatNo',
120
+ 'paymentMethod' => 'setPaymentMethod',
121
+ 'shippingCostsInclVat' => 'setShippingCostsInclVat',
122
+ 'currencyCode' => 'setCurrencyCode',
123
+ 'orderDate' => 'setOrderDate',
124
+ 'channelCustomerNo' => 'setChannelCustomerNo',
125
+ 'billingAddress' => 'setBillingAddress',
126
+ 'shippingAddress' => 'setShippingAddress',
127
+ 'extraData' => 'setExtraData'
128
+ ];
129
+
130
+
131
+ /**
132
+ * Array of attributes to getter functions (for serialization of requests)
133
+ * @var string[]
134
+ */
135
+ protected static $getters = [
136
+ 'id' => 'getId',
137
+ 'channelName' => 'getChannelName',
138
+ 'channelOrderSupport' => 'getChannelOrderSupport',
139
+ 'channelOrderNo' => 'getChannelOrderNo',
140
+ 'lines' => 'getLines',
141
+ 'phone' => 'getPhone',
142
+ 'email' => 'getEmail',
143
+ 'companyRegistrationNo' => 'getCompanyRegistrationNo',
144
+ 'vatNo' => 'getVatNo',
145
+ 'paymentMethod' => 'getPaymentMethod',
146
+ 'shippingCostsInclVat' => 'getShippingCostsInclVat',
147
+ 'currencyCode' => 'getCurrencyCode',
148
+ 'orderDate' => 'getOrderDate',
149
+ 'channelCustomerNo' => 'getChannelCustomerNo',
150
+ 'billingAddress' => 'getBillingAddress',
151
+ 'shippingAddress' => 'getShippingAddress',
152
+ 'extraData' => 'getExtraData'
153
+ ];
154
+
155
+ public static function attributeMap()
156
+ {
157
+ return self::$attributeMap;
158
+ }
159
+
160
+ public static function setters()
161
+ {
162
+ return self::$setters;
163
+ }
164
+
165
+ public static function getters()
166
+ {
167
+ return self::$getters;
168
+ }
169
+
170
+ const CHANNEL_ORDER_SUPPORT_NONE = 'NONE';
171
+ const CHANNEL_ORDER_SUPPORT_ORDERS = 'ORDERS';
172
+ const CHANNEL_ORDER_SUPPORT_SPLIT_ORDERS = 'SPLIT_ORDERS';
173
+ const CHANNEL_ORDER_SUPPORT_SPLIT_ORDER_LINES = 'SPLIT_ORDER_LINES';
174
+
175
+
176
+
177
+ /**
178
+ * Gets allowable values of the enum
179
+ * @return string[]
180
+ */
181
+ public function getChannelOrderSupportAllowableValues()
182
+ {
183
+ return [
184
+ self::CHANNEL_ORDER_SUPPORT_NONE,
185
+ self::CHANNEL_ORDER_SUPPORT_ORDERS,
186
+ self::CHANNEL_ORDER_SUPPORT_SPLIT_ORDERS,
187
+ self::CHANNEL_ORDER_SUPPORT_SPLIT_ORDER_LINES,
188
+ ];
189
+ }
190
+
191
+
192
+ /**
193
+ * Associative array for storing property values
194
+ * @var mixed[]
195
+ */
196
+ protected $container = [];
197
+
198
+ /**
199
+ * Constructor
200
+ * @param mixed[] $data Associated array of property values initializing the model
201
+ */
202
+ public function __construct(array $data = null)
203
+ {
204
+ $this->container['id'] = isset($data['id']) ? $data['id'] : null;
205
+ $this->container['channelName'] = isset($data['channelName']) ? $data['channelName'] : null;
206
+ $this->container['channelOrderSupport'] = isset($data['channelOrderSupport']) ? $data['channelOrderSupport'] : null;
207
+ $this->container['channelOrderNo'] = isset($data['channelOrderNo']) ? $data['channelOrderNo'] : null;
208
+ $this->container['lines'] = isset($data['lines']) ? $data['lines'] : null;
209
+ $this->container['phone'] = isset($data['phone']) ? $data['phone'] : null;
210
+ $this->container['email'] = isset($data['email']) ? $data['email'] : null;
211
+ $this->container['companyRegistrationNo'] = isset($data['companyRegistrationNo']) ? $data['companyRegistrationNo'] : null;
212
+ $this->container['vatNo'] = isset($data['vatNo']) ? $data['vatNo'] : null;
213
+ $this->container['paymentMethod'] = isset($data['paymentMethod']) ? $data['paymentMethod'] : null;
214
+ $this->container['shippingCostsInclVat'] = isset($data['shippingCostsInclVat']) ? $data['shippingCostsInclVat'] : null;
215
+ $this->container['currencyCode'] = isset($data['currencyCode']) ? $data['currencyCode'] : null;
216
+ $this->container['orderDate'] = isset($data['orderDate']) ? $data['orderDate'] : null;
217
+ $this->container['channelCustomerNo'] = isset($data['channelCustomerNo']) ? $data['channelCustomerNo'] : null;
218
+ $this->container['billingAddress'] = isset($data['billingAddress']) ? $data['billingAddress'] : null;
219
+ $this->container['shippingAddress'] = isset($data['shippingAddress']) ? $data['shippingAddress'] : null;
220
+ $this->container['extraData'] = isset($data['extraData']) ? $data['extraData'] : null;
221
+ }
222
+
223
+ /**
224
+ * show all the invalid properties with reasons.
225
+ *
226
+ * @return array invalid properties with reasons
227
+ */
228
+ public function listInvalidProperties()
229
+ {
230
+ $invalid_properties = [];
231
+
232
+ $allowed_values = ["NONE", "ORDERS", "SPLIT_ORDERS", "SPLIT_ORDER_LINES"];
233
+ if (!in_array($this->container['channelOrderSupport'], $allowed_values)) {
234
+ $invalid_properties[] = "invalid value for 'channelOrderSupport', must be one of 'NONE', 'ORDERS', 'SPLIT_ORDERS', 'SPLIT_ORDER_LINES'.";
235
+ }
236
+
237
+ if (!is_null($this->container['phone']) && (strlen($this->container['phone']) > 20)) {
238
+ $invalid_properties[] = "invalid value for 'phone', the character length must be smaller than or equal to 20.";
239
+ }
240
+
241
+ if (!is_null($this->container['phone']) && (strlen($this->container['phone']) < 0)) {
242
+ $invalid_properties[] = "invalid value for 'phone', the character length must be bigger than or equal to 0.";
243
+ }
244
+
245
+ if ($this->container['email'] === null) {
246
+ $invalid_properties[] = "'email' can't be null";
247
+ }
248
+ if ((strlen($this->container['email']) > 250)) {
249
+ $invalid_properties[] = "invalid value for 'email', the character length must be smaller than or equal to 250.";
250
+ }
251
+
252
+ if ((strlen($this->container['email']) < 0)) {
253
+ $invalid_properties[] = "invalid value for 'email', the character length must be bigger than or equal to 0.";
254
+ }
255
+
256
+ if (!is_null($this->container['companyRegistrationNo']) && (strlen($this->container['companyRegistrationNo']) > 50)) {
257
+ $invalid_properties[] = "invalid value for 'companyRegistrationNo', the character length must be smaller than or equal to 50.";
258
+ }
259
+
260
+ if (!is_null($this->container['companyRegistrationNo']) && (strlen($this->container['companyRegistrationNo']) < 0)) {
261
+ $invalid_properties[] = "invalid value for 'companyRegistrationNo', the character length must be bigger than or equal to 0.";
262
+ }
263
+
264
+ if (!is_null($this->container['vatNo']) && (strlen($this->container['vatNo']) > 50)) {
265
+ $invalid_properties[] = "invalid value for 'vatNo', the character length must be smaller than or equal to 50.";
266
+ }
267
+
268
+ if (!is_null($this->container['vatNo']) && (strlen($this->container['vatNo']) < 0)) {
269
+ $invalid_properties[] = "invalid value for 'vatNo', the character length must be bigger than or equal to 0.";
270
+ }
271
+
272
+ if ($this->container['paymentMethod'] === null) {
273
+ $invalid_properties[] = "'paymentMethod' can't be null";
274
+ }
275
+ if ((strlen($this->container['paymentMethod']) > 50)) {
276
+ $invalid_properties[] = "invalid value for 'paymentMethod', the character length must be smaller than or equal to 50.";
277
+ }
278
+
279
+ if ((strlen($this->container['paymentMethod']) < 0)) {
280
+ $invalid_properties[] = "invalid value for 'paymentMethod', the character length must be bigger than or equal to 0.";
281
+ }
282
+
283
+ if ($this->container['shippingCostsInclVat'] === null) {
284
+ $invalid_properties[] = "'shippingCostsInclVat' can't be null";
285
+ }
286
+ if ($this->container['currencyCode'] === null) {
287
+ $invalid_properties[] = "'currencyCode' can't be null";
288
+ }
289
+ if ($this->container['orderDate'] === null) {
290
+ $invalid_properties[] = "'orderDate' can't be null";
291
+ }
292
+ if (!is_null($this->container['channelCustomerNo']) && (strlen($this->container['channelCustomerNo']) > 50)) {
293
+ $invalid_properties[] = "invalid value for 'channelCustomerNo', the character length must be smaller than or equal to 50.";
294
+ }
295
+
296
+ if (!is_null($this->container['channelCustomerNo']) && (strlen($this->container['channelCustomerNo']) < 0)) {
297
+ $invalid_properties[] = "invalid value for 'channelCustomerNo', the character length must be bigger than or equal to 0.";
298
+ }
299
+
300
+ if ($this->container['billingAddress'] === null) {
301
+ $invalid_properties[] = "'billingAddress' can't be null";
302
+ }
303
+ if ($this->container['shippingAddress'] === null) {
304
+ $invalid_properties[] = "'shippingAddress' can't be null";
305
+ }
306
+ return $invalid_properties;
307
+ }
308
+
309
+ /**
310
+ * validate all the properties in the model
311
+ * return true if all passed
312
+ *
313
+ * @return bool True if all properties are valid
314
+ */
315
+ public function valid()
316
+ {
317
+
318
+ $allowed_values = ["NONE", "ORDERS", "SPLIT_ORDERS", "SPLIT_ORDER_LINES"];
319
+ if (!in_array($this->container['channelOrderSupport'], $allowed_values)) {
320
+ return false;
321
+ }
322
+ if (strlen($this->container['phone']) > 20) {
323
+ return false;
324
+ }
325
+ if (strlen($this->container['phone']) < 0) {
326
+ return false;
327
+ }
328
+ if ($this->container['email'] === null) {
329
+ return false;
330
+ }
331
+ if (strlen($this->container['email']) > 250) {
332
+ return false;
333
+ }
334
+ if (strlen($this->container['email']) < 0) {
335
+ return false;
336
+ }
337
+ if (strlen($this->container['companyRegistrationNo']) > 50) {
338
+ return false;
339
+ }
340
+ if (strlen($this->container['companyRegistrationNo']) < 0) {
341
+ return false;
342
+ }
343
+ if (strlen($this->container['vatNo']) > 50) {
344
+ return false;
345
+ }
346
+ if (strlen($this->container['vatNo']) < 0) {
347
+ return false;
348
+ }
349
+ if ($this->container['paymentMethod'] === null) {
350
+ return false;
351
+ }
352
+ if (strlen($this->container['paymentMethod']) > 50) {
353
+ return false;
354
+ }
355
+ if (strlen($this->container['paymentMethod']) < 0) {
356
+ return false;
357
+ }
358
+ if ($this->container['shippingCostsInclVat'] === null) {
359
+ return false;
360
+ }
361
+ if ($this->container['currencyCode'] === null) {
362
+ return false;
363
+ }
364
+ if ($this->container['orderDate'] === null) {
365
+ return false;
366
+ }
367
+ if (strlen($this->container['channelCustomerNo']) > 50) {
368
+ return false;
369
+ }
370
+ if (strlen($this->container['channelCustomerNo']) < 0) {
371
+ return false;
372
+ }
373
+ if ($this->container['billingAddress'] === null) {
374
+ return false;
375
+ }
376
+ if ($this->container['shippingAddress'] === null) {
377
+ return false;
378
+ }
379
+ return true;
380
+ }
381
+
382
+
383
+ /**
384
+ * Gets id
385
+ * @return int
386
+ */
387
+ public function getId()
388
+ {
389
+ return $this->container['id'];
390
+ }
391
+
392
+ /**
393
+ * Sets id
394
+ * @param int $id The unique identifier used by ChannelEngine. This identifier does not have to be saved. It should only be used in a call to acknowledge the order.
395
+ * @return $this
396
+ */
397
+ public function setId($id)
398
+ {
399
+ $this->container['id'] = $id;
400
+
401
+ return $this;
402
+ }
403
+
404
+ /**
405
+ * Gets channelName
406
+ * @return string
407
+ */
408
+ public function getChannelName()
409
+ {
410
+ return $this->container['channelName'];
411
+ }
412
+
413
+ /**
414
+ * Sets channelName
415
+ * @param string $channelName
416
+ * @return $this
417
+ */
418
+ public function setChannelName($channelName)
419
+ {
420
+ $this->container['channelName'] = $channelName;
421
+
422
+ return $this;
423
+ }
424
+
425
+ /**
426
+ * Gets channelOrderSupport
427
+ * @return string
428
+ */
429
+ public function getChannelOrderSupport()
430
+ {
431
+ return $this->container['channelOrderSupport'];
432
+ }
433
+
434
+ /**
435
+ * Sets channelOrderSupport
436
+ * @param string $channelOrderSupport
437
+ * @return $this
438
+ */
439
+ public function setChannelOrderSupport($channelOrderSupport)
440
+ {
441
+ $allowed_values = array('NONE', 'ORDERS', 'SPLIT_ORDERS', 'SPLIT_ORDER_LINES');
442
+ if (!is_null($channelOrderSupport) && (!in_array($channelOrderSupport, $allowed_values))) {
443
+ throw new \InvalidArgumentException("Invalid value for 'channelOrderSupport', must be one of 'NONE', 'ORDERS', 'SPLIT_ORDERS', 'SPLIT_ORDER_LINES'");
444
+ }
445
+ $this->container['channelOrderSupport'] = $channelOrderSupport;
446
+
447
+ return $this;
448
+ }
449
+
450
+ /**
451
+ * Gets channelOrderNo
452
+ * @return string
453
+ */
454
+ public function getChannelOrderNo()
455
+ {
456
+ return $this->container['channelOrderNo'];
457
+ }
458
+
459
+ /**
460
+ * Sets channelOrderNo
461
+ * @param string $channelOrderNo
462
+ * @return $this
463
+ */
464
+ public function setChannelOrderNo($channelOrderNo)
465
+ {
466
+ $this->container['channelOrderNo'] = $channelOrderNo;
467
+
468
+ return $this;
469
+ }
470
+
471
+ /**
472
+ * Gets lines
473
+ * @return \ChannelEngine\ApiClient\Model\MerchantOrderLineResponse[]
474
+ */
475
+ public function getLines()
476
+ {
477
+ return $this->container['lines'];
478
+ }
479
+
480
+ /**
481
+ * Sets lines
482
+ * @param \ChannelEngine\ApiClient\Model\MerchantOrderLineResponse[] $lines
483
+ * @return $this
484
+ */
485
+ public function setLines($lines)
486
+ {
487
+ $this->container['lines'] = $lines;
488
+
489
+ return $this;
490
+ }
491
+
492
+ /**
493
+ * Gets phone
494
+ * @return string
495
+ */
496
+ public function getPhone()
497
+ {
498
+ return $this->container['phone'];
499
+ }
500
+
501
+ /**
502
+ * Sets phone
503
+ * @param string $phone
504
+ * @return $this
505
+ */
506
+ public function setPhone($phone)
507
+ {
508
+ if (!is_null($phone) && (strlen($phone) > 20)) {
509
+ throw new \InvalidArgumentException('invalid length for $phone when calling MerchantOrderResponse., must be smaller than or equal to 20.');
510
+ }
511
+ if (!is_null($phone) && (strlen($phone) < 0)) {
512
+ throw new \InvalidArgumentException('invalid length for $phone when calling MerchantOrderResponse., must be bigger than or equal to 0.');
513
+ }
514
+
515
+ $this->container['phone'] = $phone;
516
+
517
+ return $this;
518
+ }
519
+
520
+ /**
521
+ * Gets email
522
+ * @return string
523
+ */
524
+ public function getEmail()
525
+ {
526
+ return $this->container['email'];
527
+ }
528
+
529
+ /**
530
+ * Sets email
531
+ * @param string $email
532
+ * @return $this
533
+ */
534
+ public function setEmail($email)
535
+ {
536
+ if ((strlen($email) > 250)) {
537
+ throw new \InvalidArgumentException('invalid length for $email when calling MerchantOrderResponse., must be smaller than or equal to 250.');
538
+ }
539
+ if ((strlen($email) < 0)) {
540
+ throw new \InvalidArgumentException('invalid length for $email when calling MerchantOrderResponse., must be bigger than or equal to 0.');
541
+ }
542
+
543
+ $this->container['email'] = $email;
544
+
545
+ return $this;
546
+ }
547
+
548
+ /**
549
+ * Gets companyRegistrationNo
550
+ * @return string
551
+ */
552
+ public function getCompanyRegistrationNo()
553
+ {
554
+ return $this->container['companyRegistrationNo'];
555
+ }
556
+
557
+ /**
558
+ * Sets companyRegistrationNo
559
+ * @param string $companyRegistrationNo
560
+ * @return $this
561
+ */
562
+ public function setCompanyRegistrationNo($companyRegistrationNo)
563
+ {
564
+ if (!is_null($companyRegistrationNo) && (strlen($companyRegistrationNo) > 50)) {
565
+ throw new \InvalidArgumentException('invalid length for $companyRegistrationNo when calling MerchantOrderResponse., must be smaller than or equal to 50.');
566
+ }
567
+ if (!is_null($companyRegistrationNo) && (strlen($companyRegistrationNo) < 0)) {
568
+ throw new \InvalidArgumentException('invalid length for $companyRegistrationNo when calling MerchantOrderResponse., must be bigger than or equal to 0.');
569
+ }
570
+
571
+ $this->container['companyRegistrationNo'] = $companyRegistrationNo;
572
+
573
+ return $this;
574
+ }
575
+
576
+ /**
577
+ * Gets vatNo
578
+ * @return string
579
+ */
580
+ public function getVatNo()
581
+ {
582
+ return $this->container['vatNo'];
583
+ }
584
+
585
+ /**
586
+ * Sets vatNo
587
+ * @param string $vatNo
588
+ * @return $this
589
+ */
590
+ public function setVatNo($vatNo)
591
+ {
592
+ if (!is_null($vatNo) && (strlen($vatNo) > 50)) {
593
+ throw new \InvalidArgumentException('invalid length for $vatNo when calling MerchantOrderResponse., must be smaller than or equal to 50.');
594
+ }
595
+ if (!is_null($vatNo) && (strlen($vatNo) < 0)) {
596
+ throw new \InvalidArgumentException('invalid length for $vatNo when calling MerchantOrderResponse., must be bigger than or equal to 0.');
597
+ }
598
+
599
+ $this->container['vatNo'] = $vatNo;
600
+
601
+ return $this;
602
+ }
603
+
604
+ /**
605
+ * Gets paymentMethod
606
+ * @return string
607
+ */
608
+ public function getPaymentMethod()
609
+ {
610
+ return $this->container['paymentMethod'];
611
+ }
612
+
613
+ /**
614
+ * Sets paymentMethod
615
+ * @param string $paymentMethod
616
+ * @return $this
617
+ */
618
+ public function setPaymentMethod($paymentMethod)
619
+ {
620
+ if ((strlen($paymentMethod) > 50)) {
621
+ throw new \InvalidArgumentException('invalid length for $paymentMethod when calling MerchantOrderResponse., must be smaller than or equal to 50.');
622
+ }
623
+ if ((strlen($paymentMethod) < 0)) {
624
+ throw new \InvalidArgumentException('invalid length for $paymentMethod when calling MerchantOrderResponse., must be bigger than or equal to 0.');
625
+ }
626
+
627
+ $this->container['paymentMethod'] = $paymentMethod;
628
+
629
+ return $this;
630
+ }
631
+
632
+ /**
633
+ * Gets shippingCostsInclVat
634
+ * @return double
635
+ */
636
+ public function getShippingCostsInclVat()
637
+ {
638
+ return $this->container['shippingCostsInclVat'];
639
+ }
640
+
641
+ /**
642
+ * Sets shippingCostsInclVat
643
+ * @param double $shippingCostsInclVat The shipping fee including VAT (in the tenant's base currency calculated using the exchange rate at the time of ordering).
644
+ * @return $this
645
+ */
646
+ public function setShippingCostsInclVat($shippingCostsInclVat)
647
+ {
648
+ $this->container['shippingCostsInclVat'] = $shippingCostsInclVat;
649
+
650
+ return $this;
651
+ }
652
+
653
+ /**
654
+ * Gets currencyCode
655
+ * @return string
656
+ */
657
+ public function getCurrencyCode()
658
+ {
659
+ return $this->container['currencyCode'];
660
+ }
661
+
662
+ /**
663
+ * Sets currencyCode
664
+ * @param string $currencyCode
665
+ * @return $this
666
+ */
667
+ public function setCurrencyCode($currencyCode)
668
+ {
669
+ $this->container['currencyCode'] = $currencyCode;
670
+
671
+ return $this;
672
+ }
673
+
674
+ /**
675
+ * Gets orderDate
676
+ * @return \DateTime
677
+ */
678
+ public function getOrderDate()
679
+ {
680
+ return $this->container['orderDate'];
681
+ }
682
+
683
+ /**
684
+ * Sets orderDate
685
+ * @param \DateTime $orderDate
686
+ * @return $this
687
+ */
688
+ public function setOrderDate($orderDate)
689
+ {
690
+ $this->container['orderDate'] = $orderDate;
691
+
692
+ return $this;
693
+ }
694
+
695
+ /**
696
+ * Gets channelCustomerNo
697
+ * @return string
698
+ */
699
+ public function getChannelCustomerNo()
700
+ {
701
+ return $this->container['channelCustomerNo'];
702
+ }
703
+
704
+ /**
705
+ * Sets channelCustomerNo
706
+ * @param string $channelCustomerNo
707
+ * @return $this
708
+ */
709
+ public function setChannelCustomerNo($channelCustomerNo)
710
+ {
711
+ if (!is_null($channelCustomerNo) && (strlen($channelCustomerNo) > 50)) {
712
+ throw new \InvalidArgumentException('invalid length for $channelCustomerNo when calling MerchantOrderResponse., must be smaller than or equal to 50.');
713
+ }
714
+ if (!is_null($channelCustomerNo) && (strlen($channelCustomerNo) < 0)) {
715
+ throw new \InvalidArgumentException('invalid length for $channelCustomerNo when calling MerchantOrderResponse., must be bigger than or equal to 0.');
716
+ }
717
+
718
+ $this->container['channelCustomerNo'] = $channelCustomerNo;
719
+
720
+ return $this;
721
+ }
722
+
723
+ /**
724
+ * Gets billingAddress
725
+ * @return \ChannelEngine\ApiClient\Model\EntitiesAddressModels
726
+ */
727
+ public function getBillingAddress()
728
+ {
729
+ return $this->container['billingAddress'];
730
+ }
731
+
732
+ /**
733
+ * Sets billingAddress
734
+ * @param \ChannelEngine\ApiClient\Model\EntitiesAddressModels $billingAddress
735
+ * @return $this
736
+ */
737
+ public function setBillingAddress($billingAddress)
738
+ {
739
+ $this->container['billingAddress'] = $billingAddress;
740
+
741
+ return $this;
742
+ }
743
+
744
+ /**
745
+ * Gets shippingAddress
746
+ * @return \ChannelEngine\ApiClient\Model\EntitiesAddressModels
747
+ */
748
+ public function getShippingAddress()
749
+ {
750
+ return $this->container['shippingAddress'];
751
+ }
752
+
753
+ /**
754
+ * Sets shippingAddress
755
+ * @param \ChannelEngine\ApiClient\Model\EntitiesAddressModels $shippingAddress
756
+ * @return $this
757
+ */
758
+ public function setShippingAddress($shippingAddress)
759
+ {
760
+ $this->container['shippingAddress'] = $shippingAddress;
761
+
762
+ return $this;
763
+ }
764
+
765
+ /**
766
+ * Gets extraData
767
+ * @return map[string,string]
768
+ */
769
+ public function getExtraData()
770
+ {
771
+ return $this->container['extraData'];
772
+ }
773
+
774
+ /**
775
+ * Sets extraData
776
+ * @param map[string,string] $extraData
777
+ * @return $this
778
+ */
779
+ public function setExtraData($extraData)
780
+ {
781
+ $this->container['extraData'] = $extraData;
782
+
783
+ return $this;
784
+ }
785
+ /**
786
+ * Returns true if offset exists. False otherwise.
787
+ * @param integer $offset Offset
788
+ * @return boolean
789
+ */
790
+ public function offsetExists($offset)
791
+ {
792
+ return isset($this->container[$offset]);
793
+ }
794
+
795
+ /**
796
+ * Gets offset.
797
+ * @param integer $offset Offset
798
+ * @return mixed
799
+ */
800
+ public function offsetGet($offset)
801
+ {
802
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
803
+ }
804
+
805
+ /**
806
+ * Sets value based on offset.
807
+ * @param integer $offset Offset
808
+ * @param mixed $value Value to be set
809
+ * @return void
810
+ */
811
+ public function offsetSet($offset, $value)
812
+ {
813
+ if (is_null($offset)) {
814
+ $this->container[] = $value;
815
+ } else {
816
+ $this->container[$offset] = $value;
817
+ }
818
+ }
819
+
820
+ /**
821
+ * Unsets offset.
822
+ * @param integer $offset Offset
823
+ * @return void
824
+ */
825
+ public function offsetUnset($offset)
826
+ {
827
+ unset($this->container[$offset]);
828
+ }
829
+
830
+ /**
831
+ * Gets the string presentation of the object
832
+ * @return string
833
+ */
834
+ public function __toString()
835
+ {
836
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
837
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
838
+ }
839
+
840
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
841
+ }
842
+ }
843
+
844
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/MerchantProductRequest.php ADDED
@@ -0,0 +1,752 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MerchantProductRequest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * MerchantProductRequest Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class MerchantProductRequest implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'MerchantProductRequest';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'merchantProductNo' => 'string',
58
+ 'parentMerchantProductNo' => 'string',
59
+ 'name' => 'string',
60
+ 'description' => 'string',
61
+ 'brand' => 'string',
62
+ 'size' => 'string',
63
+ 'color' => 'string',
64
+ 'ean' => 'string',
65
+ 'manufacturerProductNumber' => 'string',
66
+ 'stock' => 'int',
67
+ 'price' => 'double',
68
+ 'mSRP' => 'double',
69
+ 'purchasePrice' => 'double',
70
+ 'vatRateType' => 'string',
71
+ 'shippingCost' => 'double',
72
+ 'shippingTime' => 'string',
73
+ 'url' => 'string',
74
+ 'imageUrl' => 'string',
75
+ 'categoryTrail' => 'string',
76
+ 'extraData' => '\ChannelEngine\ApiClient\Model\ExtraDataItem[]'
77
+ ];
78
+
79
+ public static function swaggerTypes()
80
+ {
81
+ return self::$swaggerTypes;
82
+ }
83
+
84
+ /**
85
+ * Array of attributes where the key is the local name, and the value is the original name
86
+ * @var string[]
87
+ */
88
+ protected static $attributeMap = [
89
+ 'merchantProductNo' => 'MerchantProductNo',
90
+ 'parentMerchantProductNo' => 'ParentMerchantProductNo',
91
+ 'name' => 'Name',
92
+ 'description' => 'Description',
93
+ 'brand' => 'Brand',
94
+ 'size' => 'Size',
95
+ 'color' => 'Color',
96
+ 'ean' => 'Ean',
97
+ 'manufacturerProductNumber' => 'ManufacturerProductNumber',
98
+ 'stock' => 'Stock',
99
+ 'price' => 'Price',
100
+ 'mSRP' => 'MSRP',
101
+ 'purchasePrice' => 'PurchasePrice',
102
+ 'vatRateType' => 'VatRateType',
103
+ 'shippingCost' => 'ShippingCost',
104
+ 'shippingTime' => 'ShippingTime',
105
+ 'url' => 'Url',
106
+ 'imageUrl' => 'ImageUrl',
107
+ 'categoryTrail' => 'CategoryTrail',
108
+ 'extraData' => 'ExtraData'
109
+ ];
110
+
111
+
112
+ /**
113
+ * Array of attributes to setter functions (for deserialization of responses)
114
+ * @var string[]
115
+ */
116
+ protected static $setters = [
117
+ 'merchantProductNo' => 'setMerchantProductNo',
118
+ 'parentMerchantProductNo' => 'setParentMerchantProductNo',
119
+ 'name' => 'setName',
120
+ 'description' => 'setDescription',
121
+ 'brand' => 'setBrand',
122
+ 'size' => 'setSize',
123
+ 'color' => 'setColor',
124
+ 'ean' => 'setEan',
125
+ 'manufacturerProductNumber' => 'setManufacturerProductNumber',
126
+ 'stock' => 'setStock',
127
+ 'price' => 'setPrice',
128
+ 'mSRP' => 'setMSRP',
129
+ 'purchasePrice' => 'setPurchasePrice',
130
+ 'vatRateType' => 'setVatRateType',
131
+ 'shippingCost' => 'setShippingCost',
132
+ 'shippingTime' => 'setShippingTime',
133
+ 'url' => 'setUrl',
134
+ 'imageUrl' => 'setImageUrl',
135
+ 'categoryTrail' => 'setCategoryTrail',
136
+ 'extraData' => 'setExtraData'
137
+ ];
138
+
139
+
140
+ /**
141
+ * Array of attributes to getter functions (for serialization of requests)
142
+ * @var string[]
143
+ */
144
+ protected static $getters = [
145
+ 'merchantProductNo' => 'getMerchantProductNo',
146
+ 'parentMerchantProductNo' => 'getParentMerchantProductNo',
147
+ 'name' => 'getName',
148
+ 'description' => 'getDescription',
149
+ 'brand' => 'getBrand',
150
+ 'size' => 'getSize',
151
+ 'color' => 'getColor',
152
+ 'ean' => 'getEan',
153
+ 'manufacturerProductNumber' => 'getManufacturerProductNumber',
154
+ 'stock' => 'getStock',
155
+ 'price' => 'getPrice',
156
+ 'mSRP' => 'getMSRP',
157
+ 'purchasePrice' => 'getPurchasePrice',
158
+ 'vatRateType' => 'getVatRateType',
159
+ 'shippingCost' => 'getShippingCost',
160
+ 'shippingTime' => 'getShippingTime',
161
+ 'url' => 'getUrl',
162
+ 'imageUrl' => 'getImageUrl',
163
+ 'categoryTrail' => 'getCategoryTrail',
164
+ 'extraData' => 'getExtraData'
165
+ ];
166
+
167
+ public static function attributeMap()
168
+ {
169
+ return self::$attributeMap;
170
+ }
171
+
172
+ public static function setters()
173
+ {
174
+ return self::$setters;
175
+ }
176
+
177
+ public static function getters()
178
+ {
179
+ return self::$getters;
180
+ }
181
+
182
+ const VAT_RATE_TYPE_STANDARD = 'STANDARD';
183
+ const VAT_RATE_TYPE_REDUCED = 'REDUCED';
184
+ const VAT_RATE_TYPE_SUPER_REDUCED = 'SUPER_REDUCED';
185
+
186
+
187
+
188
+ /**
189
+ * Gets allowable values of the enum
190
+ * @return string[]
191
+ */
192
+ public function getVatRateTypeAllowableValues()
193
+ {
194
+ return [
195
+ self::VAT_RATE_TYPE_STANDARD,
196
+ self::VAT_RATE_TYPE_REDUCED,
197
+ self::VAT_RATE_TYPE_SUPER_REDUCED,
198
+ ];
199
+ }
200
+
201
+
202
+ /**
203
+ * Associative array for storing property values
204
+ * @var mixed[]
205
+ */
206
+ protected $container = [];
207
+
208
+ /**
209
+ * Constructor
210
+ * @param mixed[] $data Associated array of property values initializing the model
211
+ */
212
+ public function __construct(array $data = null)
213
+ {
214
+ $this->container['merchantProductNo'] = isset($data['merchantProductNo']) ? $data['merchantProductNo'] : null;
215
+ $this->container['parentMerchantProductNo'] = isset($data['parentMerchantProductNo']) ? $data['parentMerchantProductNo'] : null;
216
+ $this->container['name'] = isset($data['name']) ? $data['name'] : null;
217
+ $this->container['description'] = isset($data['description']) ? $data['description'] : null;
218
+ $this->container['brand'] = isset($data['brand']) ? $data['brand'] : null;
219
+ $this->container['size'] = isset($data['size']) ? $data['size'] : null;
220
+ $this->container['color'] = isset($data['color']) ? $data['color'] : null;
221
+ $this->container['ean'] = isset($data['ean']) ? $data['ean'] : null;
222
+ $this->container['manufacturerProductNumber'] = isset($data['manufacturerProductNumber']) ? $data['manufacturerProductNumber'] : null;
223
+ $this->container['stock'] = isset($data['stock']) ? $data['stock'] : null;
224
+ $this->container['price'] = isset($data['price']) ? $data['price'] : null;
225
+ $this->container['mSRP'] = isset($data['mSRP']) ? $data['mSRP'] : null;
226
+ $this->container['purchasePrice'] = isset($data['purchasePrice']) ? $data['purchasePrice'] : null;
227
+ $this->container['vatRateType'] = isset($data['vatRateType']) ? $data['vatRateType'] : null;
228
+ $this->container['shippingCost'] = isset($data['shippingCost']) ? $data['shippingCost'] : null;
229
+ $this->container['shippingTime'] = isset($data['shippingTime']) ? $data['shippingTime'] : null;
230
+ $this->container['url'] = isset($data['url']) ? $data['url'] : null;
231
+ $this->container['imageUrl'] = isset($data['imageUrl']) ? $data['imageUrl'] : null;
232
+ $this->container['categoryTrail'] = isset($data['categoryTrail']) ? $data['categoryTrail'] : null;
233
+ $this->container['extraData'] = isset($data['extraData']) ? $data['extraData'] : null;
234
+ }
235
+
236
+ /**
237
+ * show all the invalid properties with reasons.
238
+ *
239
+ * @return array invalid properties with reasons
240
+ */
241
+ public function listInvalidProperties()
242
+ {
243
+ $invalid_properties = [];
244
+
245
+ $allowed_values = ["STANDARD", "REDUCED", "SUPER_REDUCED"];
246
+ if (!in_array($this->container['vatRateType'], $allowed_values)) {
247
+ $invalid_properties[] = "invalid value for 'vatRateType', must be one of 'STANDARD', 'REDUCED', 'SUPER_REDUCED'.";
248
+ }
249
+
250
+ return $invalid_properties;
251
+ }
252
+
253
+ /**
254
+ * validate all the properties in the model
255
+ * return true if all passed
256
+ *
257
+ * @return bool True if all properties are valid
258
+ */
259
+ public function valid()
260
+ {
261
+
262
+ $allowed_values = ["STANDARD", "REDUCED", "SUPER_REDUCED"];
263
+ if (!in_array($this->container['vatRateType'], $allowed_values)) {
264
+ return false;
265
+ }
266
+ return true;
267
+ }
268
+
269
+
270
+ /**
271
+ * Gets merchantProductNo
272
+ * @return string
273
+ */
274
+ public function getMerchantProductNo()
275
+ {
276
+ return $this->container['merchantProductNo'];
277
+ }
278
+
279
+ /**
280
+ * Sets merchantProductNo
281
+ * @param string $merchantProductNo A unique identifier of the product.
282
+ * @return $this
283
+ */
284
+ public function setMerchantProductNo($merchantProductNo)
285
+ {
286
+ $this->container['merchantProductNo'] = $merchantProductNo;
287
+
288
+ return $this;
289
+ }
290
+
291
+ /**
292
+ * Gets parentMerchantProductNo
293
+ * @return string
294
+ */
295
+ public function getParentMerchantProductNo()
296
+ {
297
+ return $this->container['parentMerchantProductNo'];
298
+ }
299
+
300
+ /**
301
+ * Sets parentMerchantProductNo
302
+ * @param string $parentMerchantProductNo If this product is a different version of another product (for example, all fields are the same except size and/or color), then this field should contain the 'MerchantProductNo' of the parent. The parent should already exist (or be present between the products in the content of the API call, it does not matter whether the parent is behind the child in the list).
303
+ * @return $this
304
+ */
305
+ public function setParentMerchantProductNo($parentMerchantProductNo)
306
+ {
307
+ $this->container['parentMerchantProductNo'] = $parentMerchantProductNo;
308
+
309
+ return $this;
310
+ }
311
+
312
+ /**
313
+ * Gets name
314
+ * @return string
315
+ */
316
+ public function getName()
317
+ {
318
+ return $this->container['name'];
319
+ }
320
+
321
+ /**
322
+ * Sets name
323
+ * @param string $name
324
+ * @return $this
325
+ */
326
+ public function setName($name)
327
+ {
328
+ $this->container['name'] = $name;
329
+
330
+ return $this;
331
+ }
332
+
333
+ /**
334
+ * Gets description
335
+ * @return string
336
+ */
337
+ public function getDescription()
338
+ {
339
+ return $this->container['description'];
340
+ }
341
+
342
+ /**
343
+ * Sets description
344
+ * @param string $description
345
+ * @return $this
346
+ */
347
+ public function setDescription($description)
348
+ {
349
+ $this->container['description'] = $description;
350
+
351
+ return $this;
352
+ }
353
+
354
+ /**
355
+ * Gets brand
356
+ * @return string
357
+ */
358
+ public function getBrand()
359
+ {
360
+ return $this->container['brand'];
361
+ }
362
+
363
+ /**
364
+ * Sets brand
365
+ * @param string $brand
366
+ * @return $this
367
+ */
368
+ public function setBrand($brand)
369
+ {
370
+ $this->container['brand'] = $brand;
371
+
372
+ return $this;
373
+ }
374
+
375
+ /**
376
+ * Gets size
377
+ * @return string
378
+ */
379
+ public function getSize()
380
+ {
381
+ return $this->container['size'];
382
+ }
383
+
384
+ /**
385
+ * Sets size
386
+ * @param string $size
387
+ * @return $this
388
+ */
389
+ public function setSize($size)
390
+ {
391
+ $this->container['size'] = $size;
392
+
393
+ return $this;
394
+ }
395
+
396
+ /**
397
+ * Gets color
398
+ * @return string
399
+ */
400
+ public function getColor()
401
+ {
402
+ return $this->container['color'];
403
+ }
404
+
405
+ /**
406
+ * Sets color
407
+ * @param string $color
408
+ * @return $this
409
+ */
410
+ public function setColor($color)
411
+ {
412
+ $this->container['color'] = $color;
413
+
414
+ return $this;
415
+ }
416
+
417
+ /**
418
+ * Gets ean
419
+ * @return string
420
+ */
421
+ public function getEan()
422
+ {
423
+ return $this->container['ean'];
424
+ }
425
+
426
+ /**
427
+ * Sets ean
428
+ * @param string $ean
429
+ * @return $this
430
+ */
431
+ public function setEan($ean)
432
+ {
433
+ $this->container['ean'] = $ean;
434
+
435
+ return $this;
436
+ }
437
+
438
+ /**
439
+ * Gets manufacturerProductNumber
440
+ * @return string
441
+ */
442
+ public function getManufacturerProductNumber()
443
+ {
444
+ return $this->container['manufacturerProductNumber'];
445
+ }
446
+
447
+ /**
448
+ * Sets manufacturerProductNumber
449
+ * @param string $manufacturerProductNumber
450
+ * @return $this
451
+ */
452
+ public function setManufacturerProductNumber($manufacturerProductNumber)
453
+ {
454
+ $this->container['manufacturerProductNumber'] = $manufacturerProductNumber;
455
+
456
+ return $this;
457
+ }
458
+
459
+ /**
460
+ * Gets stock
461
+ * @return int
462
+ */
463
+ public function getStock()
464
+ {
465
+ return $this->container['stock'];
466
+ }
467
+
468
+ /**
469
+ * Sets stock
470
+ * @param int $stock
471
+ * @return $this
472
+ */
473
+ public function setStock($stock)
474
+ {
475
+ $this->container['stock'] = $stock;
476
+
477
+ return $this;
478
+ }
479
+
480
+ /**
481
+ * Gets price
482
+ * @return double
483
+ */
484
+ public function getPrice()
485
+ {
486
+ return $this->container['price'];
487
+ }
488
+
489
+ /**
490
+ * Sets price
491
+ * @param double $price Price, including VAT.
492
+ * @return $this
493
+ */
494
+ public function setPrice($price)
495
+ {
496
+ $this->container['price'] = $price;
497
+
498
+ return $this;
499
+ }
500
+
501
+ /**
502
+ * Gets mSRP
503
+ * @return double
504
+ */
505
+ public function getMSRP()
506
+ {
507
+ return $this->container['mSRP'];
508
+ }
509
+
510
+ /**
511
+ * Sets mSRP
512
+ * @param double $mSRP Manufacturer's suggested retail price
513
+ * @return $this
514
+ */
515
+ public function setMSRP($mSRP)
516
+ {
517
+ $this->container['mSRP'] = $mSRP;
518
+
519
+ return $this;
520
+ }
521
+
522
+ /**
523
+ * Gets purchasePrice
524
+ * @return double
525
+ */
526
+ public function getPurchasePrice()
527
+ {
528
+ return $this->container['purchasePrice'];
529
+ }
530
+
531
+ /**
532
+ * Sets purchasePrice
533
+ * @param double $purchasePrice
534
+ * @return $this
535
+ */
536
+ public function setPurchasePrice($purchasePrice)
537
+ {
538
+ $this->container['purchasePrice'] = $purchasePrice;
539
+
540
+ return $this;
541
+ }
542
+
543
+ /**
544
+ * Gets vatRateType
545
+ * @return string
546
+ */
547
+ public function getVatRateType()
548
+ {
549
+ return $this->container['vatRateType'];
550
+ }
551
+
552
+ /**
553
+ * Sets vatRateType
554
+ * @param string $vatRateType The type of VAT which applies to this product. See: http://ec.europa.eu/taxation_customs/taxation/vat/topics/rates_en.htm
555
+ * @return $this
556
+ */
557
+ public function setVatRateType($vatRateType)
558
+ {
559
+ $allowed_values = array('STANDARD', 'REDUCED', 'SUPER_REDUCED');
560
+ if (!is_null($vatRateType) && (!in_array($vatRateType, $allowed_values))) {
561
+ throw new \InvalidArgumentException("Invalid value for 'vatRateType', must be one of 'STANDARD', 'REDUCED', 'SUPER_REDUCED'");
562
+ }
563
+ $this->container['vatRateType'] = $vatRateType;
564
+
565
+ return $this;
566
+ }
567
+
568
+ /**
569
+ * Gets shippingCost
570
+ * @return double
571
+ */
572
+ public function getShippingCost()
573
+ {
574
+ return $this->container['shippingCost'];
575
+ }
576
+
577
+ /**
578
+ * Sets shippingCost
579
+ * @param double $shippingCost
580
+ * @return $this
581
+ */
582
+ public function setShippingCost($shippingCost)
583
+ {
584
+ $this->container['shippingCost'] = $shippingCost;
585
+
586
+ return $this;
587
+ }
588
+
589
+ /**
590
+ * Gets shippingTime
591
+ * @return string
592
+ */
593
+ public function getShippingTime()
594
+ {
595
+ return $this->container['shippingTime'];
596
+ }
597
+
598
+ /**
599
+ * Sets shippingTime
600
+ * @param string $shippingTime A textual representation of the shippingtime. For example, in Dutch: 'Op werkdagen voor 22:00 uur besteld, morgen in huis'
601
+ * @return $this
602
+ */
603
+ public function setShippingTime($shippingTime)
604
+ {
605
+ $this->container['shippingTime'] = $shippingTime;
606
+
607
+ return $this;
608
+ }
609
+
610
+ /**
611
+ * Gets url
612
+ * @return string
613
+ */
614
+ public function getUrl()
615
+ {
616
+ return $this->container['url'];
617
+ }
618
+
619
+ /**
620
+ * Sets url
621
+ * @param string $url A URL pointing to the merchant's webpage which displays this product.
622
+ * @return $this
623
+ */
624
+ public function setUrl($url)
625
+ {
626
+ $this->container['url'] = $url;
627
+
628
+ return $this;
629
+ }
630
+
631
+ /**
632
+ * Gets imageUrl
633
+ * @return string
634
+ */
635
+ public function getImageUrl()
636
+ {
637
+ return $this->container['imageUrl'];
638
+ }
639
+
640
+ /**
641
+ * Sets imageUrl
642
+ * @param string $imageUrl A URL at which an image of this product can be found.
643
+ * @return $this
644
+ */
645
+ public function setImageUrl($imageUrl)
646
+ {
647
+ $this->container['imageUrl'] = $imageUrl;
648
+
649
+ return $this;
650
+ }
651
+
652
+ /**
653
+ * Gets categoryTrail
654
+ * @return string
655
+ */
656
+ public function getCategoryTrail()
657
+ {
658
+ return $this->container['categoryTrail'];
659
+ }
660
+
661
+ /**
662
+ * Sets categoryTrail
663
+ * @param string $categoryTrail The category to which this product belongs. Please supply this field in the following format: 'maincategory &gt; category &gt; subcategory' For example: 'vehicles &gt; bikes &gt; mountainbike'
664
+ * @return $this
665
+ */
666
+ public function setCategoryTrail($categoryTrail)
667
+ {
668
+ $this->container['categoryTrail'] = $categoryTrail;
669
+
670
+ return $this;
671
+ }
672
+
673
+ /**
674
+ * Gets extraData
675
+ * @return \ChannelEngine\ApiClient\Model\ExtraDataItem[]
676
+ */
677
+ public function getExtraData()
678
+ {
679
+ return $this->container['extraData'];
680
+ }
681
+
682
+ /**
683
+ * Sets extraData
684
+ * @param \ChannelEngine\ApiClient\Model\ExtraDataItem[] $extraData An optional list of key-value pairs containing extra data about this product. This data can be sent to channels or used for filtering products.
685
+ * @return $this
686
+ */
687
+ public function setExtraData($extraData)
688
+ {
689
+ $this->container['extraData'] = $extraData;
690
+
691
+ return $this;
692
+ }
693
+ /**
694
+ * Returns true if offset exists. False otherwise.
695
+ * @param integer $offset Offset
696
+ * @return boolean
697
+ */
698
+ public function offsetExists($offset)
699
+ {
700
+ return isset($this->container[$offset]);
701
+ }
702
+
703
+ /**
704
+ * Gets offset.
705
+ * @param integer $offset Offset
706
+ * @return mixed
707
+ */
708
+ public function offsetGet($offset)
709
+ {
710
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
711
+ }
712
+
713
+ /**
714
+ * Sets value based on offset.
715
+ * @param integer $offset Offset
716
+ * @param mixed $value Value to be set
717
+ * @return void
718
+ */
719
+ public function offsetSet($offset, $value)
720
+ {
721
+ if (is_null($offset)) {
722
+ $this->container[] = $value;
723
+ } else {
724
+ $this->container[$offset] = $value;
725
+ }
726
+ }
727
+
728
+ /**
729
+ * Unsets offset.
730
+ * @param integer $offset Offset
731
+ * @return void
732
+ */
733
+ public function offsetUnset($offset)
734
+ {
735
+ unset($this->container[$offset]);
736
+ }
737
+
738
+ /**
739
+ * Gets the string presentation of the object
740
+ * @return string
741
+ */
742
+ public function __toString()
743
+ {
744
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
745
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
746
+ }
747
+
748
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
749
+ }
750
+ }
751
+
752
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/MerchantProductResponse.php ADDED
@@ -0,0 +1,752 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MerchantProductResponse
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * MerchantProductResponse Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class MerchantProductResponse implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'MerchantProductResponse';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'isActive' => 'bool',
58
+ 'mappedFields' => 'map[string,string]',
59
+ 'name' => 'string',
60
+ 'description' => 'string',
61
+ 'brand' => 'string',
62
+ 'size' => 'string',
63
+ 'color' => 'string',
64
+ 'ean' => 'string',
65
+ 'manufacturerProductNumber' => 'string',
66
+ 'stock' => 'int',
67
+ 'price' => 'double',
68
+ 'mSRP' => 'double',
69
+ 'purchasePrice' => 'double',
70
+ 'vatRateType' => 'string',
71
+ 'shippingCost' => 'double',
72
+ 'shippingTime' => 'string',
73
+ 'url' => 'string',
74
+ 'imageUrl' => 'string',
75
+ 'categoryTrail' => 'string',
76
+ 'extraData' => '\ChannelEngine\ApiClient\Model\ExtraDataItem[]'
77
+ ];
78
+
79
+ public static function swaggerTypes()
80
+ {
81
+ return self::$swaggerTypes;
82
+ }
83
+
84
+ /**
85
+ * Array of attributes where the key is the local name, and the value is the original name
86
+ * @var string[]
87
+ */
88
+ protected static $attributeMap = [
89
+ 'isActive' => 'IsActive',
90
+ 'mappedFields' => 'MappedFields',
91
+ 'name' => 'Name',
92
+ 'description' => 'Description',
93
+ 'brand' => 'Brand',
94
+ 'size' => 'Size',
95
+ 'color' => 'Color',
96
+ 'ean' => 'Ean',
97
+ 'manufacturerProductNumber' => 'ManufacturerProductNumber',
98
+ 'stock' => 'Stock',
99
+ 'price' => 'Price',
100
+ 'mSRP' => 'MSRP',
101
+ 'purchasePrice' => 'PurchasePrice',
102
+ 'vatRateType' => 'VatRateType',
103
+ 'shippingCost' => 'ShippingCost',
104
+ 'shippingTime' => 'ShippingTime',
105
+ 'url' => 'Url',
106
+ 'imageUrl' => 'ImageUrl',
107
+ 'categoryTrail' => 'CategoryTrail',
108
+ 'extraData' => 'ExtraData'
109
+ ];
110
+
111
+
112
+ /**
113
+ * Array of attributes to setter functions (for deserialization of responses)
114
+ * @var string[]
115
+ */
116
+ protected static $setters = [
117
+ 'isActive' => 'setIsActive',
118
+ 'mappedFields' => 'setMappedFields',
119
+ 'name' => 'setName',
120
+ 'description' => 'setDescription',
121
+ 'brand' => 'setBrand',
122
+ 'size' => 'setSize',
123
+ 'color' => 'setColor',
124
+ 'ean' => 'setEan',
125
+ 'manufacturerProductNumber' => 'setManufacturerProductNumber',
126
+ 'stock' => 'setStock',
127
+ 'price' => 'setPrice',
128
+ 'mSRP' => 'setMSRP',
129
+ 'purchasePrice' => 'setPurchasePrice',
130
+ 'vatRateType' => 'setVatRateType',
131
+ 'shippingCost' => 'setShippingCost',
132
+ 'shippingTime' => 'setShippingTime',
133
+ 'url' => 'setUrl',
134
+ 'imageUrl' => 'setImageUrl',
135
+ 'categoryTrail' => 'setCategoryTrail',
136
+ 'extraData' => 'setExtraData'
137
+ ];
138
+
139
+
140
+ /**
141
+ * Array of attributes to getter functions (for serialization of requests)
142
+ * @var string[]
143
+ */
144
+ protected static $getters = [
145
+ 'isActive' => 'getIsActive',
146
+ 'mappedFields' => 'getMappedFields',
147
+ 'name' => 'getName',
148
+ 'description' => 'getDescription',
149
+ 'brand' => 'getBrand',
150
+ 'size' => 'getSize',
151
+ 'color' => 'getColor',
152
+ 'ean' => 'getEan',
153
+ 'manufacturerProductNumber' => 'getManufacturerProductNumber',
154
+ 'stock' => 'getStock',
155
+ 'price' => 'getPrice',
156
+ 'mSRP' => 'getMSRP',
157
+ 'purchasePrice' => 'getPurchasePrice',
158
+ 'vatRateType' => 'getVatRateType',
159
+ 'shippingCost' => 'getShippingCost',
160
+ 'shippingTime' => 'getShippingTime',
161
+ 'url' => 'getUrl',
162
+ 'imageUrl' => 'getImageUrl',
163
+ 'categoryTrail' => 'getCategoryTrail',
164
+ 'extraData' => 'getExtraData'
165
+ ];
166
+
167
+ public static function attributeMap()
168
+ {
169
+ return self::$attributeMap;
170
+ }
171
+
172
+ public static function setters()
173
+ {
174
+ return self::$setters;
175
+ }
176
+
177
+ public static function getters()
178
+ {
179
+ return self::$getters;
180
+ }
181
+
182
+ const VAT_RATE_TYPE_STANDARD = 'STANDARD';
183
+ const VAT_RATE_TYPE_REDUCED = 'REDUCED';
184
+ const VAT_RATE_TYPE_SUPER_REDUCED = 'SUPER_REDUCED';
185
+
186
+
187
+
188
+ /**
189
+ * Gets allowable values of the enum
190
+ * @return string[]
191
+ */
192
+ public function getVatRateTypeAllowableValues()
193
+ {
194
+ return [
195
+ self::VAT_RATE_TYPE_STANDARD,
196
+ self::VAT_RATE_TYPE_REDUCED,
197
+ self::VAT_RATE_TYPE_SUPER_REDUCED,
198
+ ];
199
+ }
200
+
201
+
202
+ /**
203
+ * Associative array for storing property values
204
+ * @var mixed[]
205
+ */
206
+ protected $container = [];
207
+
208
+ /**
209
+ * Constructor
210
+ * @param mixed[] $data Associated array of property values initializing the model
211
+ */
212
+ public function __construct(array $data = null)
213
+ {
214
+ $this->container['isActive'] = isset($data['isActive']) ? $data['isActive'] : null;
215
+ $this->container['mappedFields'] = isset($data['mappedFields']) ? $data['mappedFields'] : null;
216
+ $this->container['name'] = isset($data['name']) ? $data['name'] : null;
217
+ $this->container['description'] = isset($data['description']) ? $data['description'] : null;
218
+ $this->container['brand'] = isset($data['brand']) ? $data['brand'] : null;
219
+ $this->container['size'] = isset($data['size']) ? $data['size'] : null;
220
+ $this->container['color'] = isset($data['color']) ? $data['color'] : null;
221
+ $this->container['ean'] = isset($data['ean']) ? $data['ean'] : null;
222
+ $this->container['manufacturerProductNumber'] = isset($data['manufacturerProductNumber']) ? $data['manufacturerProductNumber'] : null;
223
+ $this->container['stock'] = isset($data['stock']) ? $data['stock'] : null;
224
+ $this->container['price'] = isset($data['price']) ? $data['price'] : null;
225
+ $this->container['mSRP'] = isset($data['mSRP']) ? $data['mSRP'] : null;
226
+ $this->container['purchasePrice'] = isset($data['purchasePrice']) ? $data['purchasePrice'] : null;
227
+ $this->container['vatRateType'] = isset($data['vatRateType']) ? $data['vatRateType'] : null;
228
+ $this->container['shippingCost'] = isset($data['shippingCost']) ? $data['shippingCost'] : null;
229
+ $this->container['shippingTime'] = isset($data['shippingTime']) ? $data['shippingTime'] : null;
230
+ $this->container['url'] = isset($data['url']) ? $data['url'] : null;
231
+ $this->container['imageUrl'] = isset($data['imageUrl']) ? $data['imageUrl'] : null;
232
+ $this->container['categoryTrail'] = isset($data['categoryTrail']) ? $data['categoryTrail'] : null;
233
+ $this->container['extraData'] = isset($data['extraData']) ? $data['extraData'] : null;
234
+ }
235
+
236
+ /**
237
+ * show all the invalid properties with reasons.
238
+ *
239
+ * @return array invalid properties with reasons
240
+ */
241
+ public function listInvalidProperties()
242
+ {
243
+ $invalid_properties = [];
244
+
245
+ $allowed_values = ["STANDARD", "REDUCED", "SUPER_REDUCED"];
246
+ if (!in_array($this->container['vatRateType'], $allowed_values)) {
247
+ $invalid_properties[] = "invalid value for 'vatRateType', must be one of 'STANDARD', 'REDUCED', 'SUPER_REDUCED'.";
248
+ }
249
+
250
+ return $invalid_properties;
251
+ }
252
+
253
+ /**
254
+ * validate all the properties in the model
255
+ * return true if all passed
256
+ *
257
+ * @return bool True if all properties are valid
258
+ */
259
+ public function valid()
260
+ {
261
+
262
+ $allowed_values = ["STANDARD", "REDUCED", "SUPER_REDUCED"];
263
+ if (!in_array($this->container['vatRateType'], $allowed_values)) {
264
+ return false;
265
+ }
266
+ return true;
267
+ }
268
+
269
+
270
+ /**
271
+ * Gets isActive
272
+ * @return bool
273
+ */
274
+ public function getIsActive()
275
+ {
276
+ return $this->container['isActive'];
277
+ }
278
+
279
+ /**
280
+ * Sets isActive
281
+ * @param bool $isActive
282
+ * @return $this
283
+ */
284
+ public function setIsActive($isActive)
285
+ {
286
+ $this->container['isActive'] = $isActive;
287
+
288
+ return $this;
289
+ }
290
+
291
+ /**
292
+ * Gets mappedFields
293
+ * @return map[string,string]
294
+ */
295
+ public function getMappedFields()
296
+ {
297
+ return $this->container['mappedFields'];
298
+ }
299
+
300
+ /**
301
+ * Sets mappedFields
302
+ * @param map[string,string] $mappedFields A channel can require certain fields to be available. The channel can provide ChannelEngine with this fields after which the merchants will be able to fill in this field using custom conditions in ChannelEngine. There are five different
303
+ * @return $this
304
+ */
305
+ public function setMappedFields($mappedFields)
306
+ {
307
+ $this->container['mappedFields'] = $mappedFields;
308
+
309
+ return $this;
310
+ }
311
+
312
+ /**
313
+ * Gets name
314
+ * @return string
315
+ */
316
+ public function getName()
317
+ {
318
+ return $this->container['name'];
319
+ }
320
+
321
+ /**
322
+ * Sets name
323
+ * @param string $name
324
+ * @return $this
325
+ */
326
+ public function setName($name)
327
+ {
328
+ $this->container['name'] = $name;
329
+
330
+ return $this;
331
+ }
332
+
333
+ /**
334
+ * Gets description
335
+ * @return string
336
+ */
337
+ public function getDescription()
338
+ {
339
+ return $this->container['description'];
340
+ }
341
+
342
+ /**
343
+ * Sets description
344
+ * @param string $description
345
+ * @return $this
346
+ */
347
+ public function setDescription($description)
348
+ {
349
+ $this->container['description'] = $description;
350
+
351
+ return $this;
352
+ }
353
+
354
+ /**
355
+ * Gets brand
356
+ * @return string
357
+ */
358
+ public function getBrand()
359
+ {
360
+ return $this->container['brand'];
361
+ }
362
+
363
+ /**
364
+ * Sets brand
365
+ * @param string $brand
366
+ * @return $this
367
+ */
368
+ public function setBrand($brand)
369
+ {
370
+ $this->container['brand'] = $brand;
371
+
372
+ return $this;
373
+ }
374
+
375
+ /**
376
+ * Gets size
377
+ * @return string
378
+ */
379
+ public function getSize()
380
+ {
381
+ return $this->container['size'];
382
+ }
383
+
384
+ /**
385
+ * Sets size
386
+ * @param string $size
387
+ * @return $this
388
+ */
389
+ public function setSize($size)
390
+ {
391
+ $this->container['size'] = $size;
392
+
393
+ return $this;
394
+ }
395
+
396
+ /**
397
+ * Gets color
398
+ * @return string
399
+ */
400
+ public function getColor()
401
+ {
402
+ return $this->container['color'];
403
+ }
404
+
405
+ /**
406
+ * Sets color
407
+ * @param string $color
408
+ * @return $this
409
+ */
410
+ public function setColor($color)
411
+ {
412
+ $this->container['color'] = $color;
413
+
414
+ return $this;
415
+ }
416
+
417
+ /**
418
+ * Gets ean
419
+ * @return string
420
+ */
421
+ public function getEan()
422
+ {
423
+ return $this->container['ean'];
424
+ }
425
+
426
+ /**
427
+ * Sets ean
428
+ * @param string $ean
429
+ * @return $this
430
+ */
431
+ public function setEan($ean)
432
+ {
433
+ $this->container['ean'] = $ean;
434
+
435
+ return $this;
436
+ }
437
+
438
+ /**
439
+ * Gets manufacturerProductNumber
440
+ * @return string
441
+ */
442
+ public function getManufacturerProductNumber()
443
+ {
444
+ return $this->container['manufacturerProductNumber'];
445
+ }
446
+
447
+ /**
448
+ * Sets manufacturerProductNumber
449
+ * @param string $manufacturerProductNumber
450
+ * @return $this
451
+ */
452
+ public function setManufacturerProductNumber($manufacturerProductNumber)
453
+ {
454
+ $this->container['manufacturerProductNumber'] = $manufacturerProductNumber;
455
+
456
+ return $this;
457
+ }
458
+
459
+ /**
460
+ * Gets stock
461
+ * @return int
462
+ */
463
+ public function getStock()
464
+ {
465
+ return $this->container['stock'];
466
+ }
467
+
468
+ /**
469
+ * Sets stock
470
+ * @param int $stock
471
+ * @return $this
472
+ */
473
+ public function setStock($stock)
474
+ {
475
+ $this->container['stock'] = $stock;
476
+
477
+ return $this;
478
+ }
479
+
480
+ /**
481
+ * Gets price
482
+ * @return double
483
+ */
484
+ public function getPrice()
485
+ {
486
+ return $this->container['price'];
487
+ }
488
+
489
+ /**
490
+ * Sets price
491
+ * @param double $price Price, including VAT.
492
+ * @return $this
493
+ */
494
+ public function setPrice($price)
495
+ {
496
+ $this->container['price'] = $price;
497
+
498
+ return $this;
499
+ }
500
+
501
+ /**
502
+ * Gets mSRP
503
+ * @return double
504
+ */
505
+ public function getMSRP()
506
+ {
507
+ return $this->container['mSRP'];
508
+ }
509
+
510
+ /**
511
+ * Sets mSRP
512
+ * @param double $mSRP Manufacturer's suggested retail price
513
+ * @return $this
514
+ */
515
+ public function setMSRP($mSRP)
516
+ {
517
+ $this->container['mSRP'] = $mSRP;
518
+
519
+ return $this;
520
+ }
521
+
522
+ /**
523
+ * Gets purchasePrice
524
+ * @return double
525
+ */
526
+ public function getPurchasePrice()
527
+ {
528
+ return $this->container['purchasePrice'];
529
+ }
530
+
531
+ /**
532
+ * Sets purchasePrice
533
+ * @param double $purchasePrice
534
+ * @return $this
535
+ */
536
+ public function setPurchasePrice($purchasePrice)
537
+ {
538
+ $this->container['purchasePrice'] = $purchasePrice;
539
+
540
+ return $this;
541
+ }
542
+
543
+ /**
544
+ * Gets vatRateType
545
+ * @return string
546
+ */
547
+ public function getVatRateType()
548
+ {
549
+ return $this->container['vatRateType'];
550
+ }
551
+
552
+ /**
553
+ * Sets vatRateType
554
+ * @param string $vatRateType The type of VAT which applies to this product. See: http://ec.europa.eu/taxation_customs/taxation/vat/topics/rates_en.htm
555
+ * @return $this
556
+ */
557
+ public function setVatRateType($vatRateType)
558
+ {
559
+ $allowed_values = array('STANDARD', 'REDUCED', 'SUPER_REDUCED');
560
+ if (!is_null($vatRateType) && (!in_array($vatRateType, $allowed_values))) {
561
+ throw new \InvalidArgumentException("Invalid value for 'vatRateType', must be one of 'STANDARD', 'REDUCED', 'SUPER_REDUCED'");
562
+ }
563
+ $this->container['vatRateType'] = $vatRateType;
564
+
565
+ return $this;
566
+ }
567
+
568
+ /**
569
+ * Gets shippingCost
570
+ * @return double
571
+ */
572
+ public function getShippingCost()
573
+ {
574
+ return $this->container['shippingCost'];
575
+ }
576
+
577
+ /**
578
+ * Sets shippingCost
579
+ * @param double $shippingCost
580
+ * @return $this
581
+ */
582
+ public function setShippingCost($shippingCost)
583
+ {
584
+ $this->container['shippingCost'] = $shippingCost;
585
+
586
+ return $this;
587
+ }
588
+
589
+ /**
590
+ * Gets shippingTime
591
+ * @return string
592
+ */
593
+ public function getShippingTime()
594
+ {
595
+ return $this->container['shippingTime'];
596
+ }
597
+
598
+ /**
599
+ * Sets shippingTime
600
+ * @param string $shippingTime A textual representation of the shippingtime. For example, in Dutch: 'Op werkdagen voor 22:00 uur besteld, morgen in huis'
601
+ * @return $this
602
+ */
603
+ public function setShippingTime($shippingTime)
604
+ {
605
+ $this->container['shippingTime'] = $shippingTime;
606
+
607
+ return $this;
608
+ }
609
+
610
+ /**
611
+ * Gets url
612
+ * @return string
613
+ */
614
+ public function getUrl()
615
+ {
616
+ return $this->container['url'];
617
+ }
618
+
619
+ /**
620
+ * Sets url
621
+ * @param string $url A URL pointing to the merchant's webpage which displays this product.
622
+ * @return $this
623
+ */
624
+ public function setUrl($url)
625
+ {
626
+ $this->container['url'] = $url;
627
+
628
+ return $this;
629
+ }
630
+
631
+ /**
632
+ * Gets imageUrl
633
+ * @return string
634
+ */
635
+ public function getImageUrl()
636
+ {
637
+ return $this->container['imageUrl'];
638
+ }
639
+
640
+ /**
641
+ * Sets imageUrl
642
+ * @param string $imageUrl A URL at which an image of this product can be found.
643
+ * @return $this
644
+ */
645
+ public function setImageUrl($imageUrl)
646
+ {
647
+ $this->container['imageUrl'] = $imageUrl;
648
+
649
+ return $this;
650
+ }
651
+
652
+ /**
653
+ * Gets categoryTrail
654
+ * @return string
655
+ */
656
+ public function getCategoryTrail()
657
+ {
658
+ return $this->container['categoryTrail'];
659
+ }
660
+
661
+ /**
662
+ * Sets categoryTrail
663
+ * @param string $categoryTrail The category to which this product belongs. Please supply this field in the following format: 'maincategory &gt; category &gt; subcategory' For example: 'vehicles &gt; bikes &gt; mountainbike'
664
+ * @return $this
665
+ */
666
+ public function setCategoryTrail($categoryTrail)
667
+ {
668
+ $this->container['categoryTrail'] = $categoryTrail;
669
+
670
+ return $this;
671
+ }
672
+
673
+ /**
674
+ * Gets extraData
675
+ * @return \ChannelEngine\ApiClient\Model\ExtraDataItem[]
676
+ */
677
+ public function getExtraData()
678
+ {
679
+ return $this->container['extraData'];
680
+ }
681
+
682
+ /**
683
+ * Sets extraData
684
+ * @param \ChannelEngine\ApiClient\Model\ExtraDataItem[] $extraData An optional list of key-value pairs containing extra data about this product. This data can be sent to channels or used for filtering products.
685
+ * @return $this
686
+ */
687
+ public function setExtraData($extraData)
688
+ {
689
+ $this->container['extraData'] = $extraData;
690
+
691
+ return $this;
692
+ }
693
+ /**
694
+ * Returns true if offset exists. False otherwise.
695
+ * @param integer $offset Offset
696
+ * @return boolean
697
+ */
698
+ public function offsetExists($offset)
699
+ {
700
+ return isset($this->container[$offset]);
701
+ }
702
+
703
+ /**
704
+ * Gets offset.
705
+ * @param integer $offset Offset
706
+ * @return mixed
707
+ */
708
+ public function offsetGet($offset)
709
+ {
710
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
711
+ }
712
+
713
+ /**
714
+ * Sets value based on offset.
715
+ * @param integer $offset Offset
716
+ * @param mixed $value Value to be set
717
+ * @return void
718
+ */
719
+ public function offsetSet($offset, $value)
720
+ {
721
+ if (is_null($offset)) {
722
+ $this->container[] = $value;
723
+ } else {
724
+ $this->container[$offset] = $value;
725
+ }
726
+ }
727
+
728
+ /**
729
+ * Unsets offset.
730
+ * @param integer $offset Offset
731
+ * @return void
732
+ */
733
+ public function offsetUnset($offset)
734
+ {
735
+ unset($this->container[$offset]);
736
+ }
737
+
738
+ /**
739
+ * Gets the string presentation of the object
740
+ * @return string
741
+ */
742
+ public function __toString()
743
+ {
744
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
745
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
746
+ }
747
+
748
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
749
+ }
750
+ }
751
+
752
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/MerchantReturnLineRequest.php ADDED
@@ -0,0 +1,267 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MerchantReturnLineRequest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * MerchantReturnLineRequest Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class MerchantReturnLineRequest implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'MerchantReturnLineRequest';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'merchantProductNo' => 'string',
58
+ 'quantity' => 'int'
59
+ ];
60
+
61
+ public static function swaggerTypes()
62
+ {
63
+ return self::$swaggerTypes;
64
+ }
65
+
66
+ /**
67
+ * Array of attributes where the key is the local name, and the value is the original name
68
+ * @var string[]
69
+ */
70
+ protected static $attributeMap = [
71
+ 'merchantProductNo' => 'MerchantProductNo',
72
+ 'quantity' => 'Quantity'
73
+ ];
74
+
75
+
76
+ /**
77
+ * Array of attributes to setter functions (for deserialization of responses)
78
+ * @var string[]
79
+ */
80
+ protected static $setters = [
81
+ 'merchantProductNo' => 'setMerchantProductNo',
82
+ 'quantity' => 'setQuantity'
83
+ ];
84
+
85
+
86
+ /**
87
+ * Array of attributes to getter functions (for serialization of requests)
88
+ * @var string[]
89
+ */
90
+ protected static $getters = [
91
+ 'merchantProductNo' => 'getMerchantProductNo',
92
+ 'quantity' => 'getQuantity'
93
+ ];
94
+
95
+ public static function attributeMap()
96
+ {
97
+ return self::$attributeMap;
98
+ }
99
+
100
+ public static function setters()
101
+ {
102
+ return self::$setters;
103
+ }
104
+
105
+ public static function getters()
106
+ {
107
+ return self::$getters;
108
+ }
109
+
110
+
111
+
112
+
113
+
114
+ /**
115
+ * Associative array for storing property values
116
+ * @var mixed[]
117
+ */
118
+ protected $container = [];
119
+
120
+ /**
121
+ * Constructor
122
+ * @param mixed[] $data Associated array of property values initializing the model
123
+ */
124
+ public function __construct(array $data = null)
125
+ {
126
+ $this->container['merchantProductNo'] = isset($data['merchantProductNo']) ? $data['merchantProductNo'] : null;
127
+ $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null;
128
+ }
129
+
130
+ /**
131
+ * show all the invalid properties with reasons.
132
+ *
133
+ * @return array invalid properties with reasons
134
+ */
135
+ public function listInvalidProperties()
136
+ {
137
+ $invalid_properties = [];
138
+
139
+ if ($this->container['merchantProductNo'] === null) {
140
+ $invalid_properties[] = "'merchantProductNo' can't be null";
141
+ }
142
+ if ($this->container['quantity'] === null) {
143
+ $invalid_properties[] = "'quantity' can't be null";
144
+ }
145
+ return $invalid_properties;
146
+ }
147
+
148
+ /**
149
+ * validate all the properties in the model
150
+ * return true if all passed
151
+ *
152
+ * @return bool True if all properties are valid
153
+ */
154
+ public function valid()
155
+ {
156
+
157
+ if ($this->container['merchantProductNo'] === null) {
158
+ return false;
159
+ }
160
+ if ($this->container['quantity'] === null) {
161
+ return false;
162
+ }
163
+ return true;
164
+ }
165
+
166
+
167
+ /**
168
+ * Gets merchantProductNo
169
+ * @return string
170
+ */
171
+ public function getMerchantProductNo()
172
+ {
173
+ return $this->container['merchantProductNo'];
174
+ }
175
+
176
+ /**
177
+ * Sets merchantProductNo
178
+ * @param string $merchantProductNo
179
+ * @return $this
180
+ */
181
+ public function setMerchantProductNo($merchantProductNo)
182
+ {
183
+ $this->container['merchantProductNo'] = $merchantProductNo;
184
+
185
+ return $this;
186
+ }
187
+
188
+ /**
189
+ * Gets quantity
190
+ * @return int
191
+ */
192
+ public function getQuantity()
193
+ {
194
+ return $this->container['quantity'];
195
+ }
196
+
197
+ /**
198
+ * Sets quantity
199
+ * @param int $quantity
200
+ * @return $this
201
+ */
202
+ public function setQuantity($quantity)
203
+ {
204
+ $this->container['quantity'] = $quantity;
205
+
206
+ return $this;
207
+ }
208
+ /**
209
+ * Returns true if offset exists. False otherwise.
210
+ * @param integer $offset Offset
211
+ * @return boolean
212
+ */
213
+ public function offsetExists($offset)
214
+ {
215
+ return isset($this->container[$offset]);
216
+ }
217
+
218
+ /**
219
+ * Gets offset.
220
+ * @param integer $offset Offset
221
+ * @return mixed
222
+ */
223
+ public function offsetGet($offset)
224
+ {
225
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
226
+ }
227
+
228
+ /**
229
+ * Sets value based on offset.
230
+ * @param integer $offset Offset
231
+ * @param mixed $value Value to be set
232
+ * @return void
233
+ */
234
+ public function offsetSet($offset, $value)
235
+ {
236
+ if (is_null($offset)) {
237
+ $this->container[] = $value;
238
+ } else {
239
+ $this->container[$offset] = $value;
240
+ }
241
+ }
242
+
243
+ /**
244
+ * Unsets offset.
245
+ * @param integer $offset Offset
246
+ * @return void
247
+ */
248
+ public function offsetUnset($offset)
249
+ {
250
+ unset($this->container[$offset]);
251
+ }
252
+
253
+ /**
254
+ * Gets the string presentation of the object
255
+ * @return string
256
+ */
257
+ public function __toString()
258
+ {
259
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
260
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
261
+ }
262
+
263
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
264
+ }
265
+ }
266
+
267
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/MerchantReturnLineResponse.php ADDED
@@ -0,0 +1,261 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MerchantReturnLineResponse
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * MerchantReturnLineResponse Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class MerchantReturnLineResponse implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'MerchantReturnLineResponse';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'merchantProductNo' => 'string',
58
+ 'quantity' => 'int'
59
+ ];
60
+
61
+ public static function swaggerTypes()
62
+ {
63
+ return self::$swaggerTypes;
64
+ }
65
+
66
+ /**
67
+ * Array of attributes where the key is the local name, and the value is the original name
68
+ * @var string[]
69
+ */
70
+ protected static $attributeMap = [
71
+ 'merchantProductNo' => 'MerchantProductNo',
72
+ 'quantity' => 'Quantity'
73
+ ];
74
+
75
+
76
+ /**
77
+ * Array of attributes to setter functions (for deserialization of responses)
78
+ * @var string[]
79
+ */
80
+ protected static $setters = [
81
+ 'merchantProductNo' => 'setMerchantProductNo',
82
+ 'quantity' => 'setQuantity'
83
+ ];
84
+
85
+
86
+ /**
87
+ * Array of attributes to getter functions (for serialization of requests)
88
+ * @var string[]
89
+ */
90
+ protected static $getters = [
91
+ 'merchantProductNo' => 'getMerchantProductNo',
92
+ 'quantity' => 'getQuantity'
93
+ ];
94
+
95
+ public static function attributeMap()
96
+ {
97
+ return self::$attributeMap;
98
+ }
99
+
100
+ public static function setters()
101
+ {
102
+ return self::$setters;
103
+ }
104
+
105
+ public static function getters()
106
+ {
107
+ return self::$getters;
108
+ }
109
+
110
+
111
+
112
+
113
+
114
+ /**
115
+ * Associative array for storing property values
116
+ * @var mixed[]
117
+ */
118
+ protected $container = [];
119
+
120
+ /**
121
+ * Constructor
122
+ * @param mixed[] $data Associated array of property values initializing the model
123
+ */
124
+ public function __construct(array $data = null)
125
+ {
126
+ $this->container['merchantProductNo'] = isset($data['merchantProductNo']) ? $data['merchantProductNo'] : null;
127
+ $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null;
128
+ }
129
+
130
+ /**
131
+ * show all the invalid properties with reasons.
132
+ *
133
+ * @return array invalid properties with reasons
134
+ */
135
+ public function listInvalidProperties()
136
+ {
137
+ $invalid_properties = [];
138
+
139
+ if ($this->container['quantity'] === null) {
140
+ $invalid_properties[] = "'quantity' can't be null";
141
+ }
142
+ return $invalid_properties;
143
+ }
144
+
145
+ /**
146
+ * validate all the properties in the model
147
+ * return true if all passed
148
+ *
149
+ * @return bool True if all properties are valid
150
+ */
151
+ public function valid()
152
+ {
153
+
154
+ if ($this->container['quantity'] === null) {
155
+ return false;
156
+ }
157
+ return true;
158
+ }
159
+
160
+
161
+ /**
162
+ * Gets merchantProductNo
163
+ * @return string
164
+ */
165
+ public function getMerchantProductNo()
166
+ {
167
+ return $this->container['merchantProductNo'];
168
+ }
169
+
170
+ /**
171
+ * Sets merchantProductNo
172
+ * @param string $merchantProductNo
173
+ * @return $this
174
+ */
175
+ public function setMerchantProductNo($merchantProductNo)
176
+ {
177
+ $this->container['merchantProductNo'] = $merchantProductNo;
178
+
179
+ return $this;
180
+ }
181
+
182
+ /**
183
+ * Gets quantity
184
+ * @return int
185
+ */
186
+ public function getQuantity()
187
+ {
188
+ return $this->container['quantity'];
189
+ }
190
+
191
+ /**
192
+ * Sets quantity
193
+ * @param int $quantity
194
+ * @return $this
195
+ */
196
+ public function setQuantity($quantity)
197
+ {
198
+ $this->container['quantity'] = $quantity;
199
+
200
+ return $this;
201
+ }
202
+ /**
203
+ * Returns true if offset exists. False otherwise.
204
+ * @param integer $offset Offset
205
+ * @return boolean
206
+ */
207
+ public function offsetExists($offset)
208
+ {
209
+ return isset($this->container[$offset]);
210
+ }
211
+
212
+ /**
213
+ * Gets offset.
214
+ * @param integer $offset Offset
215
+ * @return mixed
216
+ */
217
+ public function offsetGet($offset)
218
+ {
219
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
220
+ }
221
+
222
+ /**
223
+ * Sets value based on offset.
224
+ * @param integer $offset Offset
225
+ * @param mixed $value Value to be set
226
+ * @return void
227
+ */
228
+ public function offsetSet($offset, $value)
229
+ {
230
+ if (is_null($offset)) {
231
+ $this->container[] = $value;
232
+ } else {
233
+ $this->container[$offset] = $value;
234
+ }
235
+ }
236
+
237
+ /**
238
+ * Unsets offset.
239
+ * @param integer $offset Offset
240
+ * @return void
241
+ */
242
+ public function offsetUnset($offset)
243
+ {
244
+ unset($this->container[$offset]);
245
+ }
246
+
247
+ /**
248
+ * Gets the string presentation of the object
249
+ * @return string
250
+ */
251
+ public function __toString()
252
+ {
253
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
254
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
255
+ }
256
+
257
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
258
+ }
259
+ }
260
+
261
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/MerchantReturnRequest.php ADDED
@@ -0,0 +1,508 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MerchantReturnRequest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * MerchantReturnRequest Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class MerchantReturnRequest implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'MerchantReturnRequest';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'merchantOrderNo' => 'string',
58
+ 'merchantReturnNo' => 'string',
59
+ 'lines' => '\ChannelEngine\ApiClient\Model\MerchantReturnLineRequest[]',
60
+ 'reason' => 'string',
61
+ 'customerComment' => 'string',
62
+ 'merchantComment' => 'string',
63
+ 'refundInclVat' => 'double',
64
+ 'refundExclVat' => 'double'
65
+ ];
66
+
67
+ public static function swaggerTypes()
68
+ {
69
+ return self::$swaggerTypes;
70
+ }
71
+
72
+ /**
73
+ * Array of attributes where the key is the local name, and the value is the original name
74
+ * @var string[]
75
+ */
76
+ protected static $attributeMap = [
77
+ 'merchantOrderNo' => 'MerchantOrderNo',
78
+ 'merchantReturnNo' => 'MerchantReturnNo',
79
+ 'lines' => 'Lines',
80
+ 'reason' => 'Reason',
81
+ 'customerComment' => 'CustomerComment',
82
+ 'merchantComment' => 'MerchantComment',
83
+ 'refundInclVat' => 'RefundInclVat',
84
+ 'refundExclVat' => 'RefundExclVat'
85
+ ];
86
+
87
+
88
+ /**
89
+ * Array of attributes to setter functions (for deserialization of responses)
90
+ * @var string[]
91
+ */
92
+ protected static $setters = [
93
+ 'merchantOrderNo' => 'setMerchantOrderNo',
94
+ 'merchantReturnNo' => 'setMerchantReturnNo',
95
+ 'lines' => 'setLines',
96
+ 'reason' => 'setReason',
97
+ 'customerComment' => 'setCustomerComment',
98
+ 'merchantComment' => 'setMerchantComment',
99
+ 'refundInclVat' => 'setRefundInclVat',
100
+ 'refundExclVat' => 'setRefundExclVat'
101
+ ];
102
+
103
+
104
+ /**
105
+ * Array of attributes to getter functions (for serialization of requests)
106
+ * @var string[]
107
+ */
108
+ protected static $getters = [
109
+ 'merchantOrderNo' => 'getMerchantOrderNo',
110
+ 'merchantReturnNo' => 'getMerchantReturnNo',
111
+ 'lines' => 'getLines',
112
+ 'reason' => 'getReason',
113
+ 'customerComment' => 'getCustomerComment',
114
+ 'merchantComment' => 'getMerchantComment',
115
+ 'refundInclVat' => 'getRefundInclVat',
116
+ 'refundExclVat' => 'getRefundExclVat'
117
+ ];
118
+
119
+ public static function attributeMap()
120
+ {
121
+ return self::$attributeMap;
122
+ }
123
+
124
+ public static function setters()
125
+ {
126
+ return self::$setters;
127
+ }
128
+
129
+ public static function getters()
130
+ {
131
+ return self::$getters;
132
+ }
133
+
134
+ const REASON_PRODUCT_DEFECT = 'PRODUCT_DEFECT';
135
+ const REASON_PRODUCT_UNSATISFACTORY = 'PRODUCT_UNSATISFACTORY';
136
+ const REASON_REFUSED = 'REFUSED';
137
+ const REASON_REFUSED_DAMAGED = 'REFUSED_DAMAGED';
138
+ const REASON_WRONG_ADDRESS = 'WRONG_ADDRESS';
139
+ const REASON_NOT_COLLECTED = 'NOT_COLLECTED';
140
+ const REASON_OTHER = 'OTHER';
141
+
142
+
143
+
144
+ /**
145
+ * Gets allowable values of the enum
146
+ * @return string[]
147
+ */
148
+ public function getReasonAllowableValues()
149
+ {
150
+ return [
151
+ self::REASON_PRODUCT_DEFECT,
152
+ self::REASON_PRODUCT_UNSATISFACTORY,
153
+ self::REASON_REFUSED,
154
+ self::REASON_REFUSED_DAMAGED,
155
+ self::REASON_WRONG_ADDRESS,
156
+ self::REASON_NOT_COLLECTED,
157
+ self::REASON_OTHER,
158
+ ];
159
+ }
160
+
161
+
162
+ /**
163
+ * Associative array for storing property values
164
+ * @var mixed[]
165
+ */
166
+ protected $container = [];
167
+
168
+ /**
169
+ * Constructor
170
+ * @param mixed[] $data Associated array of property values initializing the model
171
+ */
172
+ public function __construct(array $data = null)
173
+ {
174
+ $this->container['merchantOrderNo'] = isset($data['merchantOrderNo']) ? $data['merchantOrderNo'] : null;
175
+ $this->container['merchantReturnNo'] = isset($data['merchantReturnNo']) ? $data['merchantReturnNo'] : null;
176
+ $this->container['lines'] = isset($data['lines']) ? $data['lines'] : null;
177
+ $this->container['reason'] = isset($data['reason']) ? $data['reason'] : null;
178
+ $this->container['customerComment'] = isset($data['customerComment']) ? $data['customerComment'] : null;
179
+ $this->container['merchantComment'] = isset($data['merchantComment']) ? $data['merchantComment'] : null;
180
+ $this->container['refundInclVat'] = isset($data['refundInclVat']) ? $data['refundInclVat'] : null;
181
+ $this->container['refundExclVat'] = isset($data['refundExclVat']) ? $data['refundExclVat'] : null;
182
+ }
183
+
184
+ /**
185
+ * show all the invalid properties with reasons.
186
+ *
187
+ * @return array invalid properties with reasons
188
+ */
189
+ public function listInvalidProperties()
190
+ {
191
+ $invalid_properties = [];
192
+
193
+ if ($this->container['merchantOrderNo'] === null) {
194
+ $invalid_properties[] = "'merchantOrderNo' can't be null";
195
+ }
196
+ if ($this->container['merchantReturnNo'] === null) {
197
+ $invalid_properties[] = "'merchantReturnNo' can't be null";
198
+ }
199
+ if ($this->container['lines'] === null) {
200
+ $invalid_properties[] = "'lines' can't be null";
201
+ }
202
+ $allowed_values = ["PRODUCT_DEFECT", "PRODUCT_UNSATISFACTORY", "REFUSED", "REFUSED_DAMAGED", "WRONG_ADDRESS", "NOT_COLLECTED", "OTHER"];
203
+ if (!in_array($this->container['reason'], $allowed_values)) {
204
+ $invalid_properties[] = "invalid value for 'reason', must be one of 'PRODUCT_DEFECT', 'PRODUCT_UNSATISFACTORY', 'REFUSED', 'REFUSED_DAMAGED', 'WRONG_ADDRESS', 'NOT_COLLECTED', 'OTHER'.";
205
+ }
206
+
207
+ if (!is_null($this->container['customerComment']) && (strlen($this->container['customerComment']) > 4001)) {
208
+ $invalid_properties[] = "invalid value for 'customerComment', the character length must be smaller than or equal to 4001.";
209
+ }
210
+
211
+ if (!is_null($this->container['customerComment']) && (strlen($this->container['customerComment']) < 0)) {
212
+ $invalid_properties[] = "invalid value for 'customerComment', the character length must be bigger than or equal to 0.";
213
+ }
214
+
215
+ if (!is_null($this->container['merchantComment']) && (strlen($this->container['merchantComment']) > 4001)) {
216
+ $invalid_properties[] = "invalid value for 'merchantComment', the character length must be smaller than or equal to 4001.";
217
+ }
218
+
219
+ if (!is_null($this->container['merchantComment']) && (strlen($this->container['merchantComment']) < 0)) {
220
+ $invalid_properties[] = "invalid value for 'merchantComment', the character length must be bigger than or equal to 0.";
221
+ }
222
+
223
+ return $invalid_properties;
224
+ }
225
+
226
+ /**
227
+ * validate all the properties in the model
228
+ * return true if all passed
229
+ *
230
+ * @return bool True if all properties are valid
231
+ */
232
+ public function valid()
233
+ {
234
+
235
+ if ($this->container['merchantOrderNo'] === null) {
236
+ return false;
237
+ }
238
+ if ($this->container['merchantReturnNo'] === null) {
239
+ return false;
240
+ }
241
+ if ($this->container['lines'] === null) {
242
+ return false;
243
+ }
244
+ $allowed_values = ["PRODUCT_DEFECT", "PRODUCT_UNSATISFACTORY", "REFUSED", "REFUSED_DAMAGED", "WRONG_ADDRESS", "NOT_COLLECTED", "OTHER"];
245
+ if (!in_array($this->container['reason'], $allowed_values)) {
246
+ return false;
247
+ }
248
+ if (strlen($this->container['customerComment']) > 4001) {
249
+ return false;
250
+ }
251
+ if (strlen($this->container['customerComment']) < 0) {
252
+ return false;
253
+ }
254
+ if (strlen($this->container['merchantComment']) > 4001) {
255
+ return false;
256
+ }
257
+ if (strlen($this->container['merchantComment']) < 0) {
258
+ return false;
259
+ }
260
+ return true;
261
+ }
262
+
263
+
264
+ /**
265
+ * Gets merchantOrderNo
266
+ * @return string
267
+ */
268
+ public function getMerchantOrderNo()
269
+ {
270
+ return $this->container['merchantOrderNo'];
271
+ }
272
+
273
+ /**
274
+ * Sets merchantOrderNo
275
+ * @param string $merchantOrderNo
276
+ * @return $this
277
+ */
278
+ public function setMerchantOrderNo($merchantOrderNo)
279
+ {
280
+ $this->container['merchantOrderNo'] = $merchantOrderNo;
281
+
282
+ return $this;
283
+ }
284
+
285
+ /**
286
+ * Gets merchantReturnNo
287
+ * @return string
288
+ */
289
+ public function getMerchantReturnNo()
290
+ {
291
+ return $this->container['merchantReturnNo'];
292
+ }
293
+
294
+ /**
295
+ * Sets merchantReturnNo
296
+ * @param string $merchantReturnNo
297
+ * @return $this
298
+ */
299
+ public function setMerchantReturnNo($merchantReturnNo)
300
+ {
301
+ $this->container['merchantReturnNo'] = $merchantReturnNo;
302
+
303
+ return $this;
304
+ }
305
+
306
+ /**
307
+ * Gets lines
308
+ * @return \ChannelEngine\ApiClient\Model\MerchantReturnLineRequest[]
309
+ */
310
+ public function getLines()
311
+ {
312
+ return $this->container['lines'];
313
+ }
314
+
315
+ /**
316
+ * Sets lines
317
+ * @param \ChannelEngine\ApiClient\Model\MerchantReturnLineRequest[] $lines
318
+ * @return $this
319
+ */
320
+ public function setLines($lines)
321
+ {
322
+ $this->container['lines'] = $lines;
323
+
324
+ return $this;
325
+ }
326
+
327
+ /**
328
+ * Gets reason
329
+ * @return string
330
+ */
331
+ public function getReason()
332
+ {
333
+ return $this->container['reason'];
334
+ }
335
+
336
+ /**
337
+ * Sets reason
338
+ * @param string $reason
339
+ * @return $this
340
+ */
341
+ public function setReason($reason)
342
+ {
343
+ $allowed_values = array('PRODUCT_DEFECT', 'PRODUCT_UNSATISFACTORY', 'REFUSED', 'REFUSED_DAMAGED', 'WRONG_ADDRESS', 'NOT_COLLECTED', 'OTHER');
344
+ if (!is_null($reason) && (!in_array($reason, $allowed_values))) {
345
+ throw new \InvalidArgumentException("Invalid value for 'reason', must be one of 'PRODUCT_DEFECT', 'PRODUCT_UNSATISFACTORY', 'REFUSED', 'REFUSED_DAMAGED', 'WRONG_ADDRESS', 'NOT_COLLECTED', 'OTHER'");
346
+ }
347
+ $this->container['reason'] = $reason;
348
+
349
+ return $this;
350
+ }
351
+
352
+ /**
353
+ * Gets customerComment
354
+ * @return string
355
+ */
356
+ public function getCustomerComment()
357
+ {
358
+ return $this->container['customerComment'];
359
+ }
360
+
361
+ /**
362
+ * Sets customerComment
363
+ * @param string $customerComment
364
+ * @return $this
365
+ */
366
+ public function setCustomerComment($customerComment)
367
+ {
368
+ if (!is_null($customerComment) && (strlen($customerComment) > 4001)) {
369
+ throw new \InvalidArgumentException('invalid length for $customerComment when calling MerchantReturnRequest., must be smaller than or equal to 4001.');
370
+ }
371
+ if (!is_null($customerComment) && (strlen($customerComment) < 0)) {
372
+ throw new \InvalidArgumentException('invalid length for $customerComment when calling MerchantReturnRequest., must be bigger than or equal to 0.');
373
+ }
374
+
375
+ $this->container['customerComment'] = $customerComment;
376
+
377
+ return $this;
378
+ }
379
+
380
+ /**
381
+ * Gets merchantComment
382
+ * @return string
383
+ */
384
+ public function getMerchantComment()
385
+ {
386
+ return $this->container['merchantComment'];
387
+ }
388
+
389
+ /**
390
+ * Sets merchantComment
391
+ * @param string $merchantComment
392
+ * @return $this
393
+ */
394
+ public function setMerchantComment($merchantComment)
395
+ {
396
+ if (!is_null($merchantComment) && (strlen($merchantComment) > 4001)) {
397
+ throw new \InvalidArgumentException('invalid length for $merchantComment when calling MerchantReturnRequest., must be smaller than or equal to 4001.');
398
+ }
399
+ if (!is_null($merchantComment) && (strlen($merchantComment) < 0)) {
400
+ throw new \InvalidArgumentException('invalid length for $merchantComment when calling MerchantReturnRequest., must be bigger than or equal to 0.');
401
+ }
402
+
403
+ $this->container['merchantComment'] = $merchantComment;
404
+
405
+ return $this;
406
+ }
407
+
408
+ /**
409
+ * Gets refundInclVat
410
+ * @return double
411
+ */
412
+ public function getRefundInclVat()
413
+ {
414
+ return $this->container['refundInclVat'];
415
+ }
416
+
417
+ /**
418
+ * Sets refundInclVat
419
+ * @param double $refundInclVat
420
+ * @return $this
421
+ */
422
+ public function setRefundInclVat($refundInclVat)
423
+ {
424
+ $this->container['refundInclVat'] = $refundInclVat;
425
+
426
+ return $this;
427
+ }
428
+
429
+ /**
430
+ * Gets refundExclVat
431
+ * @return double
432
+ */
433
+ public function getRefundExclVat()
434
+ {
435
+ return $this->container['refundExclVat'];
436
+ }
437
+
438
+ /**
439
+ * Sets refundExclVat
440
+ * @param double $refundExclVat
441
+ * @return $this
442
+ */
443
+ public function setRefundExclVat($refundExclVat)
444
+ {
445
+ $this->container['refundExclVat'] = $refundExclVat;
446
+
447
+ return $this;
448
+ }
449
+ /**
450
+ * Returns true if offset exists. False otherwise.
451
+ * @param integer $offset Offset
452
+ * @return boolean
453
+ */
454
+ public function offsetExists($offset)
455
+ {
456
+ return isset($this->container[$offset]);
457
+ }
458
+
459
+ /**
460
+ * Gets offset.
461
+ * @param integer $offset Offset
462
+ * @return mixed
463
+ */
464
+ public function offsetGet($offset)
465
+ {
466
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
467
+ }
468
+
469
+ /**
470
+ * Sets value based on offset.
471
+ * @param integer $offset Offset
472
+ * @param mixed $value Value to be set
473
+ * @return void
474
+ */
475
+ public function offsetSet($offset, $value)
476
+ {
477
+ if (is_null($offset)) {
478
+ $this->container[] = $value;
479
+ } else {
480
+ $this->container[$offset] = $value;
481
+ }
482
+ }
483
+
484
+ /**
485
+ * Unsets offset.
486
+ * @param integer $offset Offset
487
+ * @return void
488
+ */
489
+ public function offsetUnset($offset)
490
+ {
491
+ unset($this->container[$offset]);
492
+ }
493
+
494
+ /**
495
+ * Gets the string presentation of the object
496
+ * @return string
497
+ */
498
+ public function __toString()
499
+ {
500
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
501
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
502
+ }
503
+
504
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
505
+ }
506
+ }
507
+
508
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/MerchantReturnResponse.php ADDED
@@ -0,0 +1,464 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MerchantReturnResponse
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * MerchantReturnResponse Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class MerchantReturnResponse implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'MerchantReturnResponse';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'merchantOrderNo' => 'string',
58
+ 'lines' => '\ChannelEngine\ApiClient\Model\MerchantReturnLineResponse[]',
59
+ 'reason' => 'string',
60
+ 'customerComment' => 'string',
61
+ 'merchantComment' => 'string',
62
+ 'refundInclVat' => 'double',
63
+ 'refundExclVat' => 'double'
64
+ ];
65
+
66
+ public static function swaggerTypes()
67
+ {
68
+ return self::$swaggerTypes;
69
+ }
70
+
71
+ /**
72
+ * Array of attributes where the key is the local name, and the value is the original name
73
+ * @var string[]
74
+ */
75
+ protected static $attributeMap = [
76
+ 'merchantOrderNo' => 'MerchantOrderNo',
77
+ 'lines' => 'Lines',
78
+ 'reason' => 'Reason',
79
+ 'customerComment' => 'CustomerComment',
80
+ 'merchantComment' => 'MerchantComment',
81
+ 'refundInclVat' => 'RefundInclVat',
82
+ 'refundExclVat' => 'RefundExclVat'
83
+ ];
84
+
85
+
86
+ /**
87
+ * Array of attributes to setter functions (for deserialization of responses)
88
+ * @var string[]
89
+ */
90
+ protected static $setters = [
91
+ 'merchantOrderNo' => 'setMerchantOrderNo',
92
+ 'lines' => 'setLines',
93
+ 'reason' => 'setReason',
94
+ 'customerComment' => 'setCustomerComment',
95
+ 'merchantComment' => 'setMerchantComment',
96
+ 'refundInclVat' => 'setRefundInclVat',
97
+ 'refundExclVat' => 'setRefundExclVat'
98
+ ];
99
+
100
+
101
+ /**
102
+ * Array of attributes to getter functions (for serialization of requests)
103
+ * @var string[]
104
+ */
105
+ protected static $getters = [
106
+ 'merchantOrderNo' => 'getMerchantOrderNo',
107
+ 'lines' => 'getLines',
108
+ 'reason' => 'getReason',
109
+ 'customerComment' => 'getCustomerComment',
110
+ 'merchantComment' => 'getMerchantComment',
111
+ 'refundInclVat' => 'getRefundInclVat',
112
+ 'refundExclVat' => 'getRefundExclVat'
113
+ ];
114
+
115
+ public static function attributeMap()
116
+ {
117
+ return self::$attributeMap;
118
+ }
119
+
120
+ public static function setters()
121
+ {
122
+ return self::$setters;
123
+ }
124
+
125
+ public static function getters()
126
+ {
127
+ return self::$getters;
128
+ }
129
+
130
+ const REASON_PRODUCT_DEFECT = 'PRODUCT_DEFECT';
131
+ const REASON_PRODUCT_UNSATISFACTORY = 'PRODUCT_UNSATISFACTORY';
132
+ const REASON_REFUSED = 'REFUSED';
133
+ const REASON_REFUSED_DAMAGED = 'REFUSED_DAMAGED';
134
+ const REASON_WRONG_ADDRESS = 'WRONG_ADDRESS';
135
+ const REASON_NOT_COLLECTED = 'NOT_COLLECTED';
136
+ const REASON_OTHER = 'OTHER';
137
+
138
+
139
+
140
+ /**
141
+ * Gets allowable values of the enum
142
+ * @return string[]
143
+ */
144
+ public function getReasonAllowableValues()
145
+ {
146
+ return [
147
+ self::REASON_PRODUCT_DEFECT,
148
+ self::REASON_PRODUCT_UNSATISFACTORY,
149
+ self::REASON_REFUSED,
150
+ self::REASON_REFUSED_DAMAGED,
151
+ self::REASON_WRONG_ADDRESS,
152
+ self::REASON_NOT_COLLECTED,
153
+ self::REASON_OTHER,
154
+ ];
155
+ }
156
+
157
+
158
+ /**
159
+ * Associative array for storing property values
160
+ * @var mixed[]
161
+ */
162
+ protected $container = [];
163
+
164
+ /**
165
+ * Constructor
166
+ * @param mixed[] $data Associated array of property values initializing the model
167
+ */
168
+ public function __construct(array $data = null)
169
+ {
170
+ $this->container['merchantOrderNo'] = isset($data['merchantOrderNo']) ? $data['merchantOrderNo'] : null;
171
+ $this->container['lines'] = isset($data['lines']) ? $data['lines'] : null;
172
+ $this->container['reason'] = isset($data['reason']) ? $data['reason'] : null;
173
+ $this->container['customerComment'] = isset($data['customerComment']) ? $data['customerComment'] : null;
174
+ $this->container['merchantComment'] = isset($data['merchantComment']) ? $data['merchantComment'] : null;
175
+ $this->container['refundInclVat'] = isset($data['refundInclVat']) ? $data['refundInclVat'] : null;
176
+ $this->container['refundExclVat'] = isset($data['refundExclVat']) ? $data['refundExclVat'] : null;
177
+ }
178
+
179
+ /**
180
+ * show all the invalid properties with reasons.
181
+ *
182
+ * @return array invalid properties with reasons
183
+ */
184
+ public function listInvalidProperties()
185
+ {
186
+ $invalid_properties = [];
187
+
188
+ $allowed_values = ["PRODUCT_DEFECT", "PRODUCT_UNSATISFACTORY", "REFUSED", "REFUSED_DAMAGED", "WRONG_ADDRESS", "NOT_COLLECTED", "OTHER"];
189
+ if (!in_array($this->container['reason'], $allowed_values)) {
190
+ $invalid_properties[] = "invalid value for 'reason', must be one of 'PRODUCT_DEFECT', 'PRODUCT_UNSATISFACTORY', 'REFUSED', 'REFUSED_DAMAGED', 'WRONG_ADDRESS', 'NOT_COLLECTED', 'OTHER'.";
191
+ }
192
+
193
+ if (!is_null($this->container['customerComment']) && (strlen($this->container['customerComment']) > 4001)) {
194
+ $invalid_properties[] = "invalid value for 'customerComment', the character length must be smaller than or equal to 4001.";
195
+ }
196
+
197
+ if (!is_null($this->container['customerComment']) && (strlen($this->container['customerComment']) < 0)) {
198
+ $invalid_properties[] = "invalid value for 'customerComment', the character length must be bigger than or equal to 0.";
199
+ }
200
+
201
+ if (!is_null($this->container['merchantComment']) && (strlen($this->container['merchantComment']) > 4001)) {
202
+ $invalid_properties[] = "invalid value for 'merchantComment', the character length must be smaller than or equal to 4001.";
203
+ }
204
+
205
+ if (!is_null($this->container['merchantComment']) && (strlen($this->container['merchantComment']) < 0)) {
206
+ $invalid_properties[] = "invalid value for 'merchantComment', the character length must be bigger than or equal to 0.";
207
+ }
208
+
209
+ return $invalid_properties;
210
+ }
211
+
212
+ /**
213
+ * validate all the properties in the model
214
+ * return true if all passed
215
+ *
216
+ * @return bool True if all properties are valid
217
+ */
218
+ public function valid()
219
+ {
220
+
221
+ $allowed_values = ["PRODUCT_DEFECT", "PRODUCT_UNSATISFACTORY", "REFUSED", "REFUSED_DAMAGED", "WRONG_ADDRESS", "NOT_COLLECTED", "OTHER"];
222
+ if (!in_array($this->container['reason'], $allowed_values)) {
223
+ return false;
224
+ }
225
+ if (strlen($this->container['customerComment']) > 4001) {
226
+ return false;
227
+ }
228
+ if (strlen($this->container['customerComment']) < 0) {
229
+ return false;
230
+ }
231
+ if (strlen($this->container['merchantComment']) > 4001) {
232
+ return false;
233
+ }
234
+ if (strlen($this->container['merchantComment']) < 0) {
235
+ return false;
236
+ }
237
+ return true;
238
+ }
239
+
240
+
241
+ /**
242
+ * Gets merchantOrderNo
243
+ * @return string
244
+ */
245
+ public function getMerchantOrderNo()
246
+ {
247
+ return $this->container['merchantOrderNo'];
248
+ }
249
+
250
+ /**
251
+ * Sets merchantOrderNo
252
+ * @param string $merchantOrderNo
253
+ * @return $this
254
+ */
255
+ public function setMerchantOrderNo($merchantOrderNo)
256
+ {
257
+ $this->container['merchantOrderNo'] = $merchantOrderNo;
258
+
259
+ return $this;
260
+ }
261
+
262
+ /**
263
+ * Gets lines
264
+ * @return \ChannelEngine\ApiClient\Model\MerchantReturnLineResponse[]
265
+ */
266
+ public function getLines()
267
+ {
268
+ return $this->container['lines'];
269
+ }
270
+
271
+ /**
272
+ * Sets lines
273
+ * @param \ChannelEngine\ApiClient\Model\MerchantReturnLineResponse[] $lines
274
+ * @return $this
275
+ */
276
+ public function setLines($lines)
277
+ {
278
+ $this->container['lines'] = $lines;
279
+
280
+ return $this;
281
+ }
282
+
283
+ /**
284
+ * Gets reason
285
+ * @return string
286
+ */
287
+ public function getReason()
288
+ {
289
+ return $this->container['reason'];
290
+ }
291
+
292
+ /**
293
+ * Sets reason
294
+ * @param string $reason
295
+ * @return $this
296
+ */
297
+ public function setReason($reason)
298
+ {
299
+ $allowed_values = array('PRODUCT_DEFECT', 'PRODUCT_UNSATISFACTORY', 'REFUSED', 'REFUSED_DAMAGED', 'WRONG_ADDRESS', 'NOT_COLLECTED', 'OTHER');
300
+ if (!is_null($reason) && (!in_array($reason, $allowed_values))) {
301
+ throw new \InvalidArgumentException("Invalid value for 'reason', must be one of 'PRODUCT_DEFECT', 'PRODUCT_UNSATISFACTORY', 'REFUSED', 'REFUSED_DAMAGED', 'WRONG_ADDRESS', 'NOT_COLLECTED', 'OTHER'");
302
+ }
303
+ $this->container['reason'] = $reason;
304
+
305
+ return $this;
306
+ }
307
+
308
+ /**
309
+ * Gets customerComment
310
+ * @return string
311
+ */
312
+ public function getCustomerComment()
313
+ {
314
+ return $this->container['customerComment'];
315
+ }
316
+
317
+ /**
318
+ * Sets customerComment
319
+ * @param string $customerComment
320
+ * @return $this
321
+ */
322
+ public function setCustomerComment($customerComment)
323
+ {
324
+ if (!is_null($customerComment) && (strlen($customerComment) > 4001)) {
325
+ throw new \InvalidArgumentException('invalid length for $customerComment when calling MerchantReturnResponse., must be smaller than or equal to 4001.');
326
+ }
327
+ if (!is_null($customerComment) && (strlen($customerComment) < 0)) {
328
+ throw new \InvalidArgumentException('invalid length for $customerComment when calling MerchantReturnResponse., must be bigger than or equal to 0.');
329
+ }
330
+
331
+ $this->container['customerComment'] = $customerComment;
332
+
333
+ return $this;
334
+ }
335
+
336
+ /**
337
+ * Gets merchantComment
338
+ * @return string
339
+ */
340
+ public function getMerchantComment()
341
+ {
342
+ return $this->container['merchantComment'];
343
+ }
344
+
345
+ /**
346
+ * Sets merchantComment
347
+ * @param string $merchantComment
348
+ * @return $this
349
+ */
350
+ public function setMerchantComment($merchantComment)
351
+ {
352
+ if (!is_null($merchantComment) && (strlen($merchantComment) > 4001)) {
353
+ throw new \InvalidArgumentException('invalid length for $merchantComment when calling MerchantReturnResponse., must be smaller than or equal to 4001.');
354
+ }
355
+ if (!is_null($merchantComment) && (strlen($merchantComment) < 0)) {
356
+ throw new \InvalidArgumentException('invalid length for $merchantComment when calling MerchantReturnResponse., must be bigger than or equal to 0.');
357
+ }
358
+
359
+ $this->container['merchantComment'] = $merchantComment;
360
+
361
+ return $this;
362
+ }
363
+
364
+ /**
365
+ * Gets refundInclVat
366
+ * @return double
367
+ */
368
+ public function getRefundInclVat()
369
+ {
370
+ return $this->container['refundInclVat'];
371
+ }
372
+
373
+ /**
374
+ * Sets refundInclVat
375
+ * @param double $refundInclVat
376
+ * @return $this
377
+ */
378
+ public function setRefundInclVat($refundInclVat)
379
+ {
380
+ $this->container['refundInclVat'] = $refundInclVat;
381
+
382
+ return $this;
383
+ }
384
+
385
+ /**
386
+ * Gets refundExclVat
387
+ * @return double
388
+ */
389
+ public function getRefundExclVat()
390
+ {
391
+ return $this->container['refundExclVat'];
392
+ }
393
+
394
+ /**
395
+ * Sets refundExclVat
396
+ * @param double $refundExclVat
397
+ * @return $this
398
+ */
399
+ public function setRefundExclVat($refundExclVat)
400
+ {
401
+ $this->container['refundExclVat'] = $refundExclVat;
402
+
403
+ return $this;
404
+ }
405
+ /**
406
+ * Returns true if offset exists. False otherwise.
407
+ * @param integer $offset Offset
408
+ * @return boolean
409
+ */
410
+ public function offsetExists($offset)
411
+ {
412
+ return isset($this->container[$offset]);
413
+ }
414
+
415
+ /**
416
+ * Gets offset.
417
+ * @param integer $offset Offset
418
+ * @return mixed
419
+ */
420
+ public function offsetGet($offset)
421
+ {
422
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
423
+ }
424
+
425
+ /**
426
+ * Sets value based on offset.
427
+ * @param integer $offset Offset
428
+ * @param mixed $value Value to be set
429
+ * @return void
430
+ */
431
+ public function offsetSet($offset, $value)
432
+ {
433
+ if (is_null($offset)) {
434
+ $this->container[] = $value;
435
+ } else {
436
+ $this->container[$offset] = $value;
437
+ }
438
+ }
439
+
440
+ /**
441
+ * Unsets offset.
442
+ * @param integer $offset Offset
443
+ * @return void
444
+ */
445
+ public function offsetUnset($offset)
446
+ {
447
+ unset($this->container[$offset]);
448
+ }
449
+
450
+ /**
451
+ * Gets the string presentation of the object
452
+ * @return string
453
+ */
454
+ public function __toString()
455
+ {
456
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
457
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
458
+ }
459
+
460
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
461
+ }
462
+ }
463
+
464
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/MerchantShipmentLineRequest.php ADDED
@@ -0,0 +1,267 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MerchantShipmentLineRequest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * MerchantShipmentLineRequest Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class MerchantShipmentLineRequest implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'MerchantShipmentLineRequest';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'merchantProductNo' => 'string',
58
+ 'quantity' => 'int'
59
+ ];
60
+
61
+ public static function swaggerTypes()
62
+ {
63
+ return self::$swaggerTypes;
64
+ }
65
+
66
+ /**
67
+ * Array of attributes where the key is the local name, and the value is the original name
68
+ * @var string[]
69
+ */
70
+ protected static $attributeMap = [
71
+ 'merchantProductNo' => 'MerchantProductNo',
72
+ 'quantity' => 'Quantity'
73
+ ];
74
+
75
+
76
+ /**
77
+ * Array of attributes to setter functions (for deserialization of responses)
78
+ * @var string[]
79
+ */
80
+ protected static $setters = [
81
+ 'merchantProductNo' => 'setMerchantProductNo',
82
+ 'quantity' => 'setQuantity'
83
+ ];
84
+
85
+
86
+ /**
87
+ * Array of attributes to getter functions (for serialization of requests)
88
+ * @var string[]
89
+ */
90
+ protected static $getters = [
91
+ 'merchantProductNo' => 'getMerchantProductNo',
92
+ 'quantity' => 'getQuantity'
93
+ ];
94
+
95
+ public static function attributeMap()
96
+ {
97
+ return self::$attributeMap;
98
+ }
99
+
100
+ public static function setters()
101
+ {
102
+ return self::$setters;
103
+ }
104
+
105
+ public static function getters()
106
+ {
107
+ return self::$getters;
108
+ }
109
+
110
+
111
+
112
+
113
+
114
+ /**
115
+ * Associative array for storing property values
116
+ * @var mixed[]
117
+ */
118
+ protected $container = [];
119
+
120
+ /**
121
+ * Constructor
122
+ * @param mixed[] $data Associated array of property values initializing the model
123
+ */
124
+ public function __construct(array $data = null)
125
+ {
126
+ $this->container['merchantProductNo'] = isset($data['merchantProductNo']) ? $data['merchantProductNo'] : null;
127
+ $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null;
128
+ }
129
+
130
+ /**
131
+ * show all the invalid properties with reasons.
132
+ *
133
+ * @return array invalid properties with reasons
134
+ */
135
+ public function listInvalidProperties()
136
+ {
137
+ $invalid_properties = [];
138
+
139
+ if ($this->container['merchantProductNo'] === null) {
140
+ $invalid_properties[] = "'merchantProductNo' can't be null";
141
+ }
142
+ if ($this->container['quantity'] === null) {
143
+ $invalid_properties[] = "'quantity' can't be null";
144
+ }
145
+ return $invalid_properties;
146
+ }
147
+
148
+ /**
149
+ * validate all the properties in the model
150
+ * return true if all passed
151
+ *
152
+ * @return bool True if all properties are valid
153
+ */
154
+ public function valid()
155
+ {
156
+
157
+ if ($this->container['merchantProductNo'] === null) {
158
+ return false;
159
+ }
160
+ if ($this->container['quantity'] === null) {
161
+ return false;
162
+ }
163
+ return true;
164
+ }
165
+
166
+
167
+ /**
168
+ * Gets merchantProductNo
169
+ * @return string
170
+ */
171
+ public function getMerchantProductNo()
172
+ {
173
+ return $this->container['merchantProductNo'];
174
+ }
175
+
176
+ /**
177
+ * Sets merchantProductNo
178
+ * @param string $merchantProductNo
179
+ * @return $this
180
+ */
181
+ public function setMerchantProductNo($merchantProductNo)
182
+ {
183
+ $this->container['merchantProductNo'] = $merchantProductNo;
184
+
185
+ return $this;
186
+ }
187
+
188
+ /**
189
+ * Gets quantity
190
+ * @return int
191
+ */
192
+ public function getQuantity()
193
+ {
194
+ return $this->container['quantity'];
195
+ }
196
+
197
+ /**
198
+ * Sets quantity
199
+ * @param int $quantity
200
+ * @return $this
201
+ */
202
+ public function setQuantity($quantity)
203
+ {
204
+ $this->container['quantity'] = $quantity;
205
+
206
+ return $this;
207
+ }
208
+ /**
209
+ * Returns true if offset exists. False otherwise.
210
+ * @param integer $offset Offset
211
+ * @return boolean
212
+ */
213
+ public function offsetExists($offset)
214
+ {
215
+ return isset($this->container[$offset]);
216
+ }
217
+
218
+ /**
219
+ * Gets offset.
220
+ * @param integer $offset Offset
221
+ * @return mixed
222
+ */
223
+ public function offsetGet($offset)
224
+ {
225
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
226
+ }
227
+
228
+ /**
229
+ * Sets value based on offset.
230
+ * @param integer $offset Offset
231
+ * @param mixed $value Value to be set
232
+ * @return void
233
+ */
234
+ public function offsetSet($offset, $value)
235
+ {
236
+ if (is_null($offset)) {
237
+ $this->container[] = $value;
238
+ } else {
239
+ $this->container[$offset] = $value;
240
+ }
241
+ }
242
+
243
+ /**
244
+ * Unsets offset.
245
+ * @param integer $offset Offset
246
+ * @return void
247
+ */
248
+ public function offsetUnset($offset)
249
+ {
250
+ unset($this->container[$offset]);
251
+ }
252
+
253
+ /**
254
+ * Gets the string presentation of the object
255
+ * @return string
256
+ */
257
+ public function __toString()
258
+ {
259
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
260
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
261
+ }
262
+
263
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
264
+ }
265
+ }
266
+
267
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/MerchantShipmentRequest.php ADDED
@@ -0,0 +1,440 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MerchantShipmentRequest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * MerchantShipmentRequest Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class MerchantShipmentRequest implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'MerchantShipmentRequest';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'merchantShipmentNo' => 'string',
58
+ 'merchantOrderNo' => 'string',
59
+ 'lines' => '\ChannelEngine\ApiClient\Model\MerchantShipmentLineRequest[]',
60
+ 'trackTraceNo' => 'string',
61
+ 'trackTraceUrl' => 'string',
62
+ 'method' => 'string'
63
+ ];
64
+
65
+ public static function swaggerTypes()
66
+ {
67
+ return self::$swaggerTypes;
68
+ }
69
+
70
+ /**
71
+ * Array of attributes where the key is the local name, and the value is the original name
72
+ * @var string[]
73
+ */
74
+ protected static $attributeMap = [
75
+ 'merchantShipmentNo' => 'MerchantShipmentNo',
76
+ 'merchantOrderNo' => 'MerchantOrderNo',
77
+ 'lines' => 'Lines',
78
+ 'trackTraceNo' => 'TrackTraceNo',
79
+ 'trackTraceUrl' => 'TrackTraceUrl',
80
+ 'method' => 'Method'
81
+ ];
82
+
83
+
84
+ /**
85
+ * Array of attributes to setter functions (for deserialization of responses)
86
+ * @var string[]
87
+ */
88
+ protected static $setters = [
89
+ 'merchantShipmentNo' => 'setMerchantShipmentNo',
90
+ 'merchantOrderNo' => 'setMerchantOrderNo',
91
+ 'lines' => 'setLines',
92
+ 'trackTraceNo' => 'setTrackTraceNo',
93
+ 'trackTraceUrl' => 'setTrackTraceUrl',
94
+ 'method' => 'setMethod'
95
+ ];
96
+
97
+
98
+ /**
99
+ * Array of attributes to getter functions (for serialization of requests)
100
+ * @var string[]
101
+ */
102
+ protected static $getters = [
103
+ 'merchantShipmentNo' => 'getMerchantShipmentNo',
104
+ 'merchantOrderNo' => 'getMerchantOrderNo',
105
+ 'lines' => 'getLines',
106
+ 'trackTraceNo' => 'getTrackTraceNo',
107
+ 'trackTraceUrl' => 'getTrackTraceUrl',
108
+ 'method' => 'getMethod'
109
+ ];
110
+
111
+ public static function attributeMap()
112
+ {
113
+ return self::$attributeMap;
114
+ }
115
+
116
+ public static function setters()
117
+ {
118
+ return self::$setters;
119
+ }
120
+
121
+ public static function getters()
122
+ {
123
+ return self::$getters;
124
+ }
125
+
126
+
127
+
128
+
129
+
130
+ /**
131
+ * Associative array for storing property values
132
+ * @var mixed[]
133
+ */
134
+ protected $container = [];
135
+
136
+ /**
137
+ * Constructor
138
+ * @param mixed[] $data Associated array of property values initializing the model
139
+ */
140
+ public function __construct(array $data = null)
141
+ {
142
+ $this->container['merchantShipmentNo'] = isset($data['merchantShipmentNo']) ? $data['merchantShipmentNo'] : null;
143
+ $this->container['merchantOrderNo'] = isset($data['merchantOrderNo']) ? $data['merchantOrderNo'] : null;
144
+ $this->container['lines'] = isset($data['lines']) ? $data['lines'] : null;
145
+ $this->container['trackTraceNo'] = isset($data['trackTraceNo']) ? $data['trackTraceNo'] : null;
146
+ $this->container['trackTraceUrl'] = isset($data['trackTraceUrl']) ? $data['trackTraceUrl'] : null;
147
+ $this->container['method'] = isset($data['method']) ? $data['method'] : null;
148
+ }
149
+
150
+ /**
151
+ * show all the invalid properties with reasons.
152
+ *
153
+ * @return array invalid properties with reasons
154
+ */
155
+ public function listInvalidProperties()
156
+ {
157
+ $invalid_properties = [];
158
+
159
+ if ($this->container['merchantShipmentNo'] === null) {
160
+ $invalid_properties[] = "'merchantShipmentNo' can't be null";
161
+ }
162
+ if ($this->container['merchantOrderNo'] === null) {
163
+ $invalid_properties[] = "'merchantOrderNo' can't be null";
164
+ }
165
+ if ($this->container['lines'] === null) {
166
+ $invalid_properties[] = "'lines' can't be null";
167
+ }
168
+ if (!is_null($this->container['trackTraceNo']) && (strlen($this->container['trackTraceNo']) > 50)) {
169
+ $invalid_properties[] = "invalid value for 'trackTraceNo', the character length must be smaller than or equal to 50.";
170
+ }
171
+
172
+ if (!is_null($this->container['trackTraceNo']) && (strlen($this->container['trackTraceNo']) < 0)) {
173
+ $invalid_properties[] = "invalid value for 'trackTraceNo', the character length must be bigger than or equal to 0.";
174
+ }
175
+
176
+ if (!is_null($this->container['trackTraceUrl']) && (strlen($this->container['trackTraceUrl']) > 250)) {
177
+ $invalid_properties[] = "invalid value for 'trackTraceUrl', the character length must be smaller than or equal to 250.";
178
+ }
179
+
180
+ if (!is_null($this->container['trackTraceUrl']) && (strlen($this->container['trackTraceUrl']) < 0)) {
181
+ $invalid_properties[] = "invalid value for 'trackTraceUrl', the character length must be bigger than or equal to 0.";
182
+ }
183
+
184
+ if (!is_null($this->container['method']) && (strlen($this->container['method']) > 50)) {
185
+ $invalid_properties[] = "invalid value for 'method', the character length must be smaller than or equal to 50.";
186
+ }
187
+
188
+ if (!is_null($this->container['method']) && (strlen($this->container['method']) < 0)) {
189
+ $invalid_properties[] = "invalid value for 'method', the character length must be bigger than or equal to 0.";
190
+ }
191
+
192
+ return $invalid_properties;
193
+ }
194
+
195
+ /**
196
+ * validate all the properties in the model
197
+ * return true if all passed
198
+ *
199
+ * @return bool True if all properties are valid
200
+ */
201
+ public function valid()
202
+ {
203
+
204
+ if ($this->container['merchantShipmentNo'] === null) {
205
+ return false;
206
+ }
207
+ if ($this->container['merchantOrderNo'] === null) {
208
+ return false;
209
+ }
210
+ if ($this->container['lines'] === null) {
211
+ return false;
212
+ }
213
+ if (strlen($this->container['trackTraceNo']) > 50) {
214
+ return false;
215
+ }
216
+ if (strlen($this->container['trackTraceNo']) < 0) {
217
+ return false;
218
+ }
219
+ if (strlen($this->container['trackTraceUrl']) > 250) {
220
+ return false;
221
+ }
222
+ if (strlen($this->container['trackTraceUrl']) < 0) {
223
+ return false;
224
+ }
225
+ if (strlen($this->container['method']) > 50) {
226
+ return false;
227
+ }
228
+ if (strlen($this->container['method']) < 0) {
229
+ return false;
230
+ }
231
+ return true;
232
+ }
233
+
234
+
235
+ /**
236
+ * Gets merchantShipmentNo
237
+ * @return string
238
+ */
239
+ public function getMerchantShipmentNo()
240
+ {
241
+ return $this->container['merchantShipmentNo'];
242
+ }
243
+
244
+ /**
245
+ * Sets merchantShipmentNo
246
+ * @param string $merchantShipmentNo
247
+ * @return $this
248
+ */
249
+ public function setMerchantShipmentNo($merchantShipmentNo)
250
+ {
251
+ $this->container['merchantShipmentNo'] = $merchantShipmentNo;
252
+
253
+ return $this;
254
+ }
255
+
256
+ /**
257
+ * Gets merchantOrderNo
258
+ * @return string
259
+ */
260
+ public function getMerchantOrderNo()
261
+ {
262
+ return $this->container['merchantOrderNo'];
263
+ }
264
+
265
+ /**
266
+ * Sets merchantOrderNo
267
+ * @param string $merchantOrderNo
268
+ * @return $this
269
+ */
270
+ public function setMerchantOrderNo($merchantOrderNo)
271
+ {
272
+ $this->container['merchantOrderNo'] = $merchantOrderNo;
273
+
274
+ return $this;
275
+ }
276
+
277
+ /**
278
+ * Gets lines
279
+ * @return \ChannelEngine\ApiClient\Model\MerchantShipmentLineRequest[]
280
+ */
281
+ public function getLines()
282
+ {
283
+ return $this->container['lines'];
284
+ }
285
+
286
+ /**
287
+ * Sets lines
288
+ * @param \ChannelEngine\ApiClient\Model\MerchantShipmentLineRequest[] $lines
289
+ * @return $this
290
+ */
291
+ public function setLines($lines)
292
+ {
293
+ $this->container['lines'] = $lines;
294
+
295
+ return $this;
296
+ }
297
+
298
+ /**
299
+ * Gets trackTraceNo
300
+ * @return string
301
+ */
302
+ public function getTrackTraceNo()
303
+ {
304
+ return $this->container['trackTraceNo'];
305
+ }
306
+
307
+ /**
308
+ * Sets trackTraceNo
309
+ * @param string $trackTraceNo
310
+ * @return $this
311
+ */
312
+ public function setTrackTraceNo($trackTraceNo)
313
+ {
314
+ if (!is_null($trackTraceNo) && (strlen($trackTraceNo) > 50)) {
315
+ throw new \InvalidArgumentException('invalid length for $trackTraceNo when calling MerchantShipmentRequest., must be smaller than or equal to 50.');
316
+ }
317
+ if (!is_null($trackTraceNo) && (strlen($trackTraceNo) < 0)) {
318
+ throw new \InvalidArgumentException('invalid length for $trackTraceNo when calling MerchantShipmentRequest., must be bigger than or equal to 0.');
319
+ }
320
+
321
+ $this->container['trackTraceNo'] = $trackTraceNo;
322
+
323
+ return $this;
324
+ }
325
+
326
+ /**
327
+ * Gets trackTraceUrl
328
+ * @return string
329
+ */
330
+ public function getTrackTraceUrl()
331
+ {
332
+ return $this->container['trackTraceUrl'];
333
+ }
334
+
335
+ /**
336
+ * Sets trackTraceUrl
337
+ * @param string $trackTraceUrl
338
+ * @return $this
339
+ */
340
+ public function setTrackTraceUrl($trackTraceUrl)
341
+ {
342
+ if (!is_null($trackTraceUrl) && (strlen($trackTraceUrl) > 250)) {
343
+ throw new \InvalidArgumentException('invalid length for $trackTraceUrl when calling MerchantShipmentRequest., must be smaller than or equal to 250.');
344
+ }
345
+ if (!is_null($trackTraceUrl) && (strlen($trackTraceUrl) < 0)) {
346
+ throw new \InvalidArgumentException('invalid length for $trackTraceUrl when calling MerchantShipmentRequest., must be bigger than or equal to 0.');
347
+ }
348
+
349
+ $this->container['trackTraceUrl'] = $trackTraceUrl;
350
+
351
+ return $this;
352
+ }
353
+
354
+ /**
355
+ * Gets method
356
+ * @return string
357
+ */
358
+ public function getMethod()
359
+ {
360
+ return $this->container['method'];
361
+ }
362
+
363
+ /**
364
+ * Sets method
365
+ * @param string $method
366
+ * @return $this
367
+ */
368
+ public function setMethod($method)
369
+ {
370
+ if (!is_null($method) && (strlen($method) > 50)) {
371
+ throw new \InvalidArgumentException('invalid length for $method when calling MerchantShipmentRequest., must be smaller than or equal to 50.');
372
+ }
373
+ if (!is_null($method) && (strlen($method) < 0)) {
374
+ throw new \InvalidArgumentException('invalid length for $method when calling MerchantShipmentRequest., must be bigger than or equal to 0.');
375
+ }
376
+
377
+ $this->container['method'] = $method;
378
+
379
+ return $this;
380
+ }
381
+ /**
382
+ * Returns true if offset exists. False otherwise.
383
+ * @param integer $offset Offset
384
+ * @return boolean
385
+ */
386
+ public function offsetExists($offset)
387
+ {
388
+ return isset($this->container[$offset]);
389
+ }
390
+
391
+ /**
392
+ * Gets offset.
393
+ * @param integer $offset Offset
394
+ * @return mixed
395
+ */
396
+ public function offsetGet($offset)
397
+ {
398
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
399
+ }
400
+
401
+ /**
402
+ * Sets value based on offset.
403
+ * @param integer $offset Offset
404
+ * @param mixed $value Value to be set
405
+ * @return void
406
+ */
407
+ public function offsetSet($offset, $value)
408
+ {
409
+ if (is_null($offset)) {
410
+ $this->container[] = $value;
411
+ } else {
412
+ $this->container[$offset] = $value;
413
+ }
414
+ }
415
+
416
+ /**
417
+ * Unsets offset.
418
+ * @param integer $offset Offset
419
+ * @return void
420
+ */
421
+ public function offsetUnset($offset)
422
+ {
423
+ unset($this->container[$offset]);
424
+ }
425
+
426
+ /**
427
+ * Gets the string presentation of the object
428
+ * @return string
429
+ */
430
+ public function __toString()
431
+ {
432
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
433
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
434
+ }
435
+
436
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
437
+ }
438
+ }
439
+
440
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/MerchantShipmentTrackingRequest.php ADDED
@@ -0,0 +1,356 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MerchantShipmentTrackingRequest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * MerchantShipmentTrackingRequest Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class MerchantShipmentTrackingRequest implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'MerchantShipmentTrackingRequest';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'method' => 'string',
58
+ 'trackTraceNo' => 'string',
59
+ 'trackTraceUrl' => 'string'
60
+ ];
61
+
62
+ public static function swaggerTypes()
63
+ {
64
+ return self::$swaggerTypes;
65
+ }
66
+
67
+ /**
68
+ * Array of attributes where the key is the local name, and the value is the original name
69
+ * @var string[]
70
+ */
71
+ protected static $attributeMap = [
72
+ 'method' => 'Method',
73
+ 'trackTraceNo' => 'TrackTraceNo',
74
+ 'trackTraceUrl' => 'TrackTraceUrl'
75
+ ];
76
+
77
+
78
+ /**
79
+ * Array of attributes to setter functions (for deserialization of responses)
80
+ * @var string[]
81
+ */
82
+ protected static $setters = [
83
+ 'method' => 'setMethod',
84
+ 'trackTraceNo' => 'setTrackTraceNo',
85
+ 'trackTraceUrl' => 'setTrackTraceUrl'
86
+ ];
87
+
88
+
89
+ /**
90
+ * Array of attributes to getter functions (for serialization of requests)
91
+ * @var string[]
92
+ */
93
+ protected static $getters = [
94
+ 'method' => 'getMethod',
95
+ 'trackTraceNo' => 'getTrackTraceNo',
96
+ 'trackTraceUrl' => 'getTrackTraceUrl'
97
+ ];
98
+
99
+ public static function attributeMap()
100
+ {
101
+ return self::$attributeMap;
102
+ }
103
+
104
+ public static function setters()
105
+ {
106
+ return self::$setters;
107
+ }
108
+
109
+ public static function getters()
110
+ {
111
+ return self::$getters;
112
+ }
113
+
114
+
115
+
116
+
117
+
118
+ /**
119
+ * Associative array for storing property values
120
+ * @var mixed[]
121
+ */
122
+ protected $container = [];
123
+
124
+ /**
125
+ * Constructor
126
+ * @param mixed[] $data Associated array of property values initializing the model
127
+ */
128
+ public function __construct(array $data = null)
129
+ {
130
+ $this->container['method'] = isset($data['method']) ? $data['method'] : null;
131
+ $this->container['trackTraceNo'] = isset($data['trackTraceNo']) ? $data['trackTraceNo'] : null;
132
+ $this->container['trackTraceUrl'] = isset($data['trackTraceUrl']) ? $data['trackTraceUrl'] : null;
133
+ }
134
+
135
+ /**
136
+ * show all the invalid properties with reasons.
137
+ *
138
+ * @return array invalid properties with reasons
139
+ */
140
+ public function listInvalidProperties()
141
+ {
142
+ $invalid_properties = [];
143
+
144
+ if ($this->container['method'] === null) {
145
+ $invalid_properties[] = "'method' can't be null";
146
+ }
147
+ if ((strlen($this->container['method']) > 50)) {
148
+ $invalid_properties[] = "invalid value for 'method', the character length must be smaller than or equal to 50.";
149
+ }
150
+
151
+ if ((strlen($this->container['method']) < 0)) {
152
+ $invalid_properties[] = "invalid value for 'method', the character length must be bigger than or equal to 0.";
153
+ }
154
+
155
+ if ($this->container['trackTraceNo'] === null) {
156
+ $invalid_properties[] = "'trackTraceNo' can't be null";
157
+ }
158
+ if ((strlen($this->container['trackTraceNo']) > 50)) {
159
+ $invalid_properties[] = "invalid value for 'trackTraceNo', the character length must be smaller than or equal to 50.";
160
+ }
161
+
162
+ if ((strlen($this->container['trackTraceNo']) < 0)) {
163
+ $invalid_properties[] = "invalid value for 'trackTraceNo', the character length must be bigger than or equal to 0.";
164
+ }
165
+
166
+ if (!is_null($this->container['trackTraceUrl']) && (strlen($this->container['trackTraceUrl']) > 250)) {
167
+ $invalid_properties[] = "invalid value for 'trackTraceUrl', the character length must be smaller than or equal to 250.";
168
+ }
169
+
170
+ if (!is_null($this->container['trackTraceUrl']) && (strlen($this->container['trackTraceUrl']) < 0)) {
171
+ $invalid_properties[] = "invalid value for 'trackTraceUrl', the character length must be bigger than or equal to 0.";
172
+ }
173
+
174
+ return $invalid_properties;
175
+ }
176
+
177
+ /**
178
+ * validate all the properties in the model
179
+ * return true if all passed
180
+ *
181
+ * @return bool True if all properties are valid
182
+ */
183
+ public function valid()
184
+ {
185
+
186
+ if ($this->container['method'] === null) {
187
+ return false;
188
+ }
189
+ if (strlen($this->container['method']) > 50) {
190
+ return false;
191
+ }
192
+ if (strlen($this->container['method']) < 0) {
193
+ return false;
194
+ }
195
+ if ($this->container['trackTraceNo'] === null) {
196
+ return false;
197
+ }
198
+ if (strlen($this->container['trackTraceNo']) > 50) {
199
+ return false;
200
+ }
201
+ if (strlen($this->container['trackTraceNo']) < 0) {
202
+ return false;
203
+ }
204
+ if (strlen($this->container['trackTraceUrl']) > 250) {
205
+ return false;
206
+ }
207
+ if (strlen($this->container['trackTraceUrl']) < 0) {
208
+ return false;
209
+ }
210
+ return true;
211
+ }
212
+
213
+
214
+ /**
215
+ * Gets method
216
+ * @return string
217
+ */
218
+ public function getMethod()
219
+ {
220
+ return $this->container['method'];
221
+ }
222
+
223
+ /**
224
+ * Sets method
225
+ * @param string $method
226
+ * @return $this
227
+ */
228
+ public function setMethod($method)
229
+ {
230
+ if ((strlen($method) > 50)) {
231
+ throw new \InvalidArgumentException('invalid length for $method when calling MerchantShipmentTrackingRequest., must be smaller than or equal to 50.');
232
+ }
233
+ if ((strlen($method) < 0)) {
234
+ throw new \InvalidArgumentException('invalid length for $method when calling MerchantShipmentTrackingRequest., must be bigger than or equal to 0.');
235
+ }
236
+
237
+ $this->container['method'] = $method;
238
+
239
+ return $this;
240
+ }
241
+
242
+ /**
243
+ * Gets trackTraceNo
244
+ * @return string
245
+ */
246
+ public function getTrackTraceNo()
247
+ {
248
+ return $this->container['trackTraceNo'];
249
+ }
250
+
251
+ /**
252
+ * Sets trackTraceNo
253
+ * @param string $trackTraceNo
254
+ * @return $this
255
+ */
256
+ public function setTrackTraceNo($trackTraceNo)
257
+ {
258
+ if ((strlen($trackTraceNo) > 50)) {
259
+ throw new \InvalidArgumentException('invalid length for $trackTraceNo when calling MerchantShipmentTrackingRequest., must be smaller than or equal to 50.');
260
+ }
261
+ if ((strlen($trackTraceNo) < 0)) {
262
+ throw new \InvalidArgumentException('invalid length for $trackTraceNo when calling MerchantShipmentTrackingRequest., must be bigger than or equal to 0.');
263
+ }
264
+
265
+ $this->container['trackTraceNo'] = $trackTraceNo;
266
+
267
+ return $this;
268
+ }
269
+
270
+ /**
271
+ * Gets trackTraceUrl
272
+ * @return string
273
+ */
274
+ public function getTrackTraceUrl()
275
+ {
276
+ return $this->container['trackTraceUrl'];
277
+ }
278
+
279
+ /**
280
+ * Sets trackTraceUrl
281
+ * @param string $trackTraceUrl
282
+ * @return $this
283
+ */
284
+ public function setTrackTraceUrl($trackTraceUrl)
285
+ {
286
+ if (!is_null($trackTraceUrl) && (strlen($trackTraceUrl) > 250)) {
287
+ throw new \InvalidArgumentException('invalid length for $trackTraceUrl when calling MerchantShipmentTrackingRequest., must be smaller than or equal to 250.');
288
+ }
289
+ if (!is_null($trackTraceUrl) && (strlen($trackTraceUrl) < 0)) {
290
+ throw new \InvalidArgumentException('invalid length for $trackTraceUrl when calling MerchantShipmentTrackingRequest., must be bigger than or equal to 0.');
291
+ }
292
+
293
+ $this->container['trackTraceUrl'] = $trackTraceUrl;
294
+
295
+ return $this;
296
+ }
297
+ /**
298
+ * Returns true if offset exists. False otherwise.
299
+ * @param integer $offset Offset
300
+ * @return boolean
301
+ */
302
+ public function offsetExists($offset)
303
+ {
304
+ return isset($this->container[$offset]);
305
+ }
306
+
307
+ /**
308
+ * Gets offset.
309
+ * @param integer $offset Offset
310
+ * @return mixed
311
+ */
312
+ public function offsetGet($offset)
313
+ {
314
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
315
+ }
316
+
317
+ /**
318
+ * Sets value based on offset.
319
+ * @param integer $offset Offset
320
+ * @param mixed $value Value to be set
321
+ * @return void
322
+ */
323
+ public function offsetSet($offset, $value)
324
+ {
325
+ if (is_null($offset)) {
326
+ $this->container[] = $value;
327
+ } else {
328
+ $this->container[$offset] = $value;
329
+ }
330
+ }
331
+
332
+ /**
333
+ * Unsets offset.
334
+ * @param integer $offset Offset
335
+ * @return void
336
+ */
337
+ public function offsetUnset($offset)
338
+ {
339
+ unset($this->container[$offset]);
340
+ }
341
+
342
+ /**
343
+ * Gets the string presentation of the object
344
+ * @return string
345
+ */
346
+ public function __toString()
347
+ {
348
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
349
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
350
+ }
351
+
352
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
353
+ }
354
+ }
355
+
356
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/OrderAcknowledgement.php ADDED
@@ -0,0 +1,288 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * OrderAcknowledgement
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * OrderAcknowledgement Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class OrderAcknowledgement implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'OrderAcknowledgement';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'merchantOrderNo' => 'string',
58
+ 'orderId' => 'int'
59
+ ];
60
+
61
+ public static function swaggerTypes()
62
+ {
63
+ return self::$swaggerTypes;
64
+ }
65
+
66
+ /**
67
+ * Array of attributes where the key is the local name, and the value is the original name
68
+ * @var string[]
69
+ */
70
+ protected static $attributeMap = [
71
+ 'merchantOrderNo' => 'MerchantOrderNo',
72
+ 'orderId' => 'OrderId'
73
+ ];
74
+
75
+
76
+ /**
77
+ * Array of attributes to setter functions (for deserialization of responses)
78
+ * @var string[]
79
+ */
80
+ protected static $setters = [
81
+ 'merchantOrderNo' => 'setMerchantOrderNo',
82
+ 'orderId' => 'setOrderId'
83
+ ];
84
+
85
+
86
+ /**
87
+ * Array of attributes to getter functions (for serialization of requests)
88
+ * @var string[]
89
+ */
90
+ protected static $getters = [
91
+ 'merchantOrderNo' => 'getMerchantOrderNo',
92
+ 'orderId' => 'getOrderId'
93
+ ];
94
+
95
+ public static function attributeMap()
96
+ {
97
+ return self::$attributeMap;
98
+ }
99
+
100
+ public static function setters()
101
+ {
102
+ return self::$setters;
103
+ }
104
+
105
+ public static function getters()
106
+ {
107
+ return self::$getters;
108
+ }
109
+
110
+
111
+
112
+
113
+
114
+ /**
115
+ * Associative array for storing property values
116
+ * @var mixed[]
117
+ */
118
+ protected $container = [];
119
+
120
+ /**
121
+ * Constructor
122
+ * @param mixed[] $data Associated array of property values initializing the model
123
+ */
124
+ public function __construct(array $data = null)
125
+ {
126
+ $this->container['merchantOrderNo'] = isset($data['merchantOrderNo']) ? $data['merchantOrderNo'] : null;
127
+ $this->container['orderId'] = isset($data['orderId']) ? $data['orderId'] : null;
128
+ }
129
+
130
+ /**
131
+ * show all the invalid properties with reasons.
132
+ *
133
+ * @return array invalid properties with reasons
134
+ */
135
+ public function listInvalidProperties()
136
+ {
137
+ $invalid_properties = [];
138
+
139
+ if ($this->container['merchantOrderNo'] === null) {
140
+ $invalid_properties[] = "'merchantOrderNo' can't be null";
141
+ }
142
+ if ((strlen($this->container['merchantOrderNo']) > 50)) {
143
+ $invalid_properties[] = "invalid value for 'merchantOrderNo', the character length must be smaller than or equal to 50.";
144
+ }
145
+
146
+ if ((strlen($this->container['merchantOrderNo']) < 0)) {
147
+ $invalid_properties[] = "invalid value for 'merchantOrderNo', the character length must be bigger than or equal to 0.";
148
+ }
149
+
150
+ if ($this->container['orderId'] === null) {
151
+ $invalid_properties[] = "'orderId' can't be null";
152
+ }
153
+ return $invalid_properties;
154
+ }
155
+
156
+ /**
157
+ * validate all the properties in the model
158
+ * return true if all passed
159
+ *
160
+ * @return bool True if all properties are valid
161
+ */
162
+ public function valid()
163
+ {
164
+
165
+ if ($this->container['merchantOrderNo'] === null) {
166
+ return false;
167
+ }
168
+ if (strlen($this->container['merchantOrderNo']) > 50) {
169
+ return false;
170
+ }
171
+ if (strlen($this->container['merchantOrderNo']) < 0) {
172
+ return false;
173
+ }
174
+ if ($this->container['orderId'] === null) {
175
+ return false;
176
+ }
177
+ return true;
178
+ }
179
+
180
+
181
+ /**
182
+ * Gets merchantOrderNo
183
+ * @return string
184
+ */
185
+ public function getMerchantOrderNo()
186
+ {
187
+ return $this->container['merchantOrderNo'];
188
+ }
189
+
190
+ /**
191
+ * Sets merchantOrderNo
192
+ * @param string $merchantOrderNo
193
+ * @return $this
194
+ */
195
+ public function setMerchantOrderNo($merchantOrderNo)
196
+ {
197
+ if ((strlen($merchantOrderNo) > 50)) {
198
+ throw new \InvalidArgumentException('invalid length for $merchantOrderNo when calling OrderAcknowledgement., must be smaller than or equal to 50.');
199
+ }
200
+ if ((strlen($merchantOrderNo) < 0)) {
201
+ throw new \InvalidArgumentException('invalid length for $merchantOrderNo when calling OrderAcknowledgement., must be bigger than or equal to 0.');
202
+ }
203
+
204
+ $this->container['merchantOrderNo'] = $merchantOrderNo;
205
+
206
+ return $this;
207
+ }
208
+
209
+ /**
210
+ * Gets orderId
211
+ * @return int
212
+ */
213
+ public function getOrderId()
214
+ {
215
+ return $this->container['orderId'];
216
+ }
217
+
218
+ /**
219
+ * Sets orderId
220
+ * @param int $orderId
221
+ * @return $this
222
+ */
223
+ public function setOrderId($orderId)
224
+ {
225
+ $this->container['orderId'] = $orderId;
226
+
227
+ return $this;
228
+ }
229
+ /**
230
+ * Returns true if offset exists. False otherwise.
231
+ * @param integer $offset Offset
232
+ * @return boolean
233
+ */
234
+ public function offsetExists($offset)
235
+ {
236
+ return isset($this->container[$offset]);
237
+ }
238
+
239
+ /**
240
+ * Gets offset.
241
+ * @param integer $offset Offset
242
+ * @return mixed
243
+ */
244
+ public function offsetGet($offset)
245
+ {
246
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
247
+ }
248
+
249
+ /**
250
+ * Sets value based on offset.
251
+ * @param integer $offset Offset
252
+ * @param mixed $value Value to be set
253
+ * @return void
254
+ */
255
+ public function offsetSet($offset, $value)
256
+ {
257
+ if (is_null($offset)) {
258
+ $this->container[] = $value;
259
+ } else {
260
+ $this->container[$offset] = $value;
261
+ }
262
+ }
263
+
264
+ /**
265
+ * Unsets offset.
266
+ * @param integer $offset Offset
267
+ * @return void
268
+ */
269
+ public function offsetUnset($offset)
270
+ {
271
+ unset($this->container[$offset]);
272
+ }
273
+
274
+ /**
275
+ * Gets the string presentation of the object
276
+ * @return string
277
+ */
278
+ public function __toString()
279
+ {
280
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
281
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
282
+ }
283
+
284
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
285
+ }
286
+ }
287
+
288
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ProductCreationResult.php ADDED
@@ -0,0 +1,281 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ProductCreationResult
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * ProductCreationResult Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ProductCreationResult implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'ProductCreationResult';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'rejectedCount' => 'int',
58
+ 'acceptedCount' => 'int',
59
+ 'productMessages' => '\ChannelEngine\ApiClient\Model\ProductMessage[]'
60
+ ];
61
+
62
+ public static function swaggerTypes()
63
+ {
64
+ return self::$swaggerTypes;
65
+ }
66
+
67
+ /**
68
+ * Array of attributes where the key is the local name, and the value is the original name
69
+ * @var string[]
70
+ */
71
+ protected static $attributeMap = [
72
+ 'rejectedCount' => 'RejectedCount',
73
+ 'acceptedCount' => 'AcceptedCount',
74
+ 'productMessages' => 'ProductMessages'
75
+ ];
76
+
77
+
78
+ /**
79
+ * Array of attributes to setter functions (for deserialization of responses)
80
+ * @var string[]
81
+ */
82
+ protected static $setters = [
83
+ 'rejectedCount' => 'setRejectedCount',
84
+ 'acceptedCount' => 'setAcceptedCount',
85
+ 'productMessages' => 'setProductMessages'
86
+ ];
87
+
88
+
89
+ /**
90
+ * Array of attributes to getter functions (for serialization of requests)
91
+ * @var string[]
92
+ */
93
+ protected static $getters = [
94
+ 'rejectedCount' => 'getRejectedCount',
95
+ 'acceptedCount' => 'getAcceptedCount',
96
+ 'productMessages' => 'getProductMessages'
97
+ ];
98
+
99
+ public static function attributeMap()
100
+ {
101
+ return self::$attributeMap;
102
+ }
103
+
104
+ public static function setters()
105
+ {
106
+ return self::$setters;
107
+ }
108
+
109
+ public static function getters()
110
+ {
111
+ return self::$getters;
112
+ }
113
+
114
+
115
+
116
+
117
+
118
+ /**
119
+ * Associative array for storing property values
120
+ * @var mixed[]
121
+ */
122
+ protected $container = [];
123
+
124
+ /**
125
+ * Constructor
126
+ * @param mixed[] $data Associated array of property values initializing the model
127
+ */
128
+ public function __construct(array $data = null)
129
+ {
130
+ $this->container['rejectedCount'] = isset($data['rejectedCount']) ? $data['rejectedCount'] : null;
131
+ $this->container['acceptedCount'] = isset($data['acceptedCount']) ? $data['acceptedCount'] : null;
132
+ $this->container['productMessages'] = isset($data['productMessages']) ? $data['productMessages'] : null;
133
+ }
134
+
135
+ /**
136
+ * show all the invalid properties with reasons.
137
+ *
138
+ * @return array invalid properties with reasons
139
+ */
140
+ public function listInvalidProperties()
141
+ {
142
+ $invalid_properties = [];
143
+
144
+ return $invalid_properties;
145
+ }
146
+
147
+ /**
148
+ * validate all the properties in the model
149
+ * return true if all passed
150
+ *
151
+ * @return bool True if all properties are valid
152
+ */
153
+ public function valid()
154
+ {
155
+
156
+ return true;
157
+ }
158
+
159
+
160
+ /**
161
+ * Gets rejectedCount
162
+ * @return int
163
+ */
164
+ public function getRejectedCount()
165
+ {
166
+ return $this->container['rejectedCount'];
167
+ }
168
+
169
+ /**
170
+ * Sets rejectedCount
171
+ * @param int $rejectedCount
172
+ * @return $this
173
+ */
174
+ public function setRejectedCount($rejectedCount)
175
+ {
176
+ $this->container['rejectedCount'] = $rejectedCount;
177
+
178
+ return $this;
179
+ }
180
+
181
+ /**
182
+ * Gets acceptedCount
183
+ * @return int
184
+ */
185
+ public function getAcceptedCount()
186
+ {
187
+ return $this->container['acceptedCount'];
188
+ }
189
+
190
+ /**
191
+ * Sets acceptedCount
192
+ * @param int $acceptedCount
193
+ * @return $this
194
+ */
195
+ public function setAcceptedCount($acceptedCount)
196
+ {
197
+ $this->container['acceptedCount'] = $acceptedCount;
198
+
199
+ return $this;
200
+ }
201
+
202
+ /**
203
+ * Gets productMessages
204
+ * @return \ChannelEngine\ApiClient\Model\ProductMessage[]
205
+ */
206
+ public function getProductMessages()
207
+ {
208
+ return $this->container['productMessages'];
209
+ }
210
+
211
+ /**
212
+ * Sets productMessages
213
+ * @param \ChannelEngine\ApiClient\Model\ProductMessage[] $productMessages Messages about the rejected products.
214
+ * @return $this
215
+ */
216
+ public function setProductMessages($productMessages)
217
+ {
218
+ $this->container['productMessages'] = $productMessages;
219
+
220
+ return $this;
221
+ }
222
+ /**
223
+ * Returns true if offset exists. False otherwise.
224
+ * @param integer $offset Offset
225
+ * @return boolean
226
+ */
227
+ public function offsetExists($offset)
228
+ {
229
+ return isset($this->container[$offset]);
230
+ }
231
+
232
+ /**
233
+ * Gets offset.
234
+ * @param integer $offset Offset
235
+ * @return mixed
236
+ */
237
+ public function offsetGet($offset)
238
+ {
239
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
240
+ }
241
+
242
+ /**
243
+ * Sets value based on offset.
244
+ * @param integer $offset Offset
245
+ * @param mixed $value Value to be set
246
+ * @return void
247
+ */
248
+ public function offsetSet($offset, $value)
249
+ {
250
+ if (is_null($offset)) {
251
+ $this->container[] = $value;
252
+ } else {
253
+ $this->container[$offset] = $value;
254
+ }
255
+ }
256
+
257
+ /**
258
+ * Unsets offset.
259
+ * @param integer $offset Offset
260
+ * @return void
261
+ */
262
+ public function offsetUnset($offset)
263
+ {
264
+ unset($this->container[$offset]);
265
+ }
266
+
267
+ /**
268
+ * Gets the string presentation of the object
269
+ * @return string
270
+ */
271
+ public function __toString()
272
+ {
273
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
274
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
275
+ }
276
+
277
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
278
+ }
279
+ }
280
+
281
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/ProductMessage.php ADDED
@@ -0,0 +1,307 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ProductMessage
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * ProductMessage Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ProductMessage implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'ProductMessage';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'name' => 'string',
58
+ 'reference' => 'string',
59
+ 'warnings' => 'string[]',
60
+ 'errors' => 'string[]'
61
+ ];
62
+
63
+ public static function swaggerTypes()
64
+ {
65
+ return self::$swaggerTypes;
66
+ }
67
+
68
+ /**
69
+ * Array of attributes where the key is the local name, and the value is the original name
70
+ * @var string[]
71
+ */
72
+ protected static $attributeMap = [
73
+ 'name' => 'Name',
74
+ 'reference' => 'Reference',
75
+ 'warnings' => 'Warnings',
76
+ 'errors' => 'Errors'
77
+ ];
78
+
79
+
80
+ /**
81
+ * Array of attributes to setter functions (for deserialization of responses)
82
+ * @var string[]
83
+ */
84
+ protected static $setters = [
85
+ 'name' => 'setName',
86
+ 'reference' => 'setReference',
87
+ 'warnings' => 'setWarnings',
88
+ 'errors' => 'setErrors'
89
+ ];
90
+
91
+
92
+ /**
93
+ * Array of attributes to getter functions (for serialization of requests)
94
+ * @var string[]
95
+ */
96
+ protected static $getters = [
97
+ 'name' => 'getName',
98
+ 'reference' => 'getReference',
99
+ 'warnings' => 'getWarnings',
100
+ 'errors' => 'getErrors'
101
+ ];
102
+
103
+ public static function attributeMap()
104
+ {
105
+ return self::$attributeMap;
106
+ }
107
+
108
+ public static function setters()
109
+ {
110
+ return self::$setters;
111
+ }
112
+
113
+ public static function getters()
114
+ {
115
+ return self::$getters;
116
+ }
117
+
118
+
119
+
120
+
121
+
122
+ /**
123
+ * Associative array for storing property values
124
+ * @var mixed[]
125
+ */
126
+ protected $container = [];
127
+
128
+ /**
129
+ * Constructor
130
+ * @param mixed[] $data Associated array of property values initializing the model
131
+ */
132
+ public function __construct(array $data = null)
133
+ {
134
+ $this->container['name'] = isset($data['name']) ? $data['name'] : null;
135
+ $this->container['reference'] = isset($data['reference']) ? $data['reference'] : null;
136
+ $this->container['warnings'] = isset($data['warnings']) ? $data['warnings'] : null;
137
+ $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null;
138
+ }
139
+
140
+ /**
141
+ * show all the invalid properties with reasons.
142
+ *
143
+ * @return array invalid properties with reasons
144
+ */
145
+ public function listInvalidProperties()
146
+ {
147
+ $invalid_properties = [];
148
+
149
+ return $invalid_properties;
150
+ }
151
+
152
+ /**
153
+ * validate all the properties in the model
154
+ * return true if all passed
155
+ *
156
+ * @return bool True if all properties are valid
157
+ */
158
+ public function valid()
159
+ {
160
+
161
+ return true;
162
+ }
163
+
164
+
165
+ /**
166
+ * Gets name
167
+ * @return string
168
+ */
169
+ public function getName()
170
+ {
171
+ return $this->container['name'];
172
+ }
173
+
174
+ /**
175
+ * Sets name
176
+ * @param string $name
177
+ * @return $this
178
+ */
179
+ public function setName($name)
180
+ {
181
+ $this->container['name'] = $name;
182
+
183
+ return $this;
184
+ }
185
+
186
+ /**
187
+ * Gets reference
188
+ * @return string
189
+ */
190
+ public function getReference()
191
+ {
192
+ return $this->container['reference'];
193
+ }
194
+
195
+ /**
196
+ * Sets reference
197
+ * @param string $reference
198
+ * @return $this
199
+ */
200
+ public function setReference($reference)
201
+ {
202
+ $this->container['reference'] = $reference;
203
+
204
+ return $this;
205
+ }
206
+
207
+ /**
208
+ * Gets warnings
209
+ * @return string[]
210
+ */
211
+ public function getWarnings()
212
+ {
213
+ return $this->container['warnings'];
214
+ }
215
+
216
+ /**
217
+ * Sets warnings
218
+ * @param string[] $warnings
219
+ * @return $this
220
+ */
221
+ public function setWarnings($warnings)
222
+ {
223
+ $this->container['warnings'] = $warnings;
224
+
225
+ return $this;
226
+ }
227
+
228
+ /**
229
+ * Gets errors
230
+ * @return string[]
231
+ */
232
+ public function getErrors()
233
+ {
234
+ return $this->container['errors'];
235
+ }
236
+
237
+ /**
238
+ * Sets errors
239
+ * @param string[] $errors
240
+ * @return $this
241
+ */
242
+ public function setErrors($errors)
243
+ {
244
+ $this->container['errors'] = $errors;
245
+
246
+ return $this;
247
+ }
248
+ /**
249
+ * Returns true if offset exists. False otherwise.
250
+ * @param integer $offset Offset
251
+ * @return boolean
252
+ */
253
+ public function offsetExists($offset)
254
+ {
255
+ return isset($this->container[$offset]);
256
+ }
257
+
258
+ /**
259
+ * Gets offset.
260
+ * @param integer $offset Offset
261
+ * @return mixed
262
+ */
263
+ public function offsetGet($offset)
264
+ {
265
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
266
+ }
267
+
268
+ /**
269
+ * Sets value based on offset.
270
+ * @param integer $offset Offset
271
+ * @param mixed $value Value to be set
272
+ * @return void
273
+ */
274
+ public function offsetSet($offset, $value)
275
+ {
276
+ if (is_null($offset)) {
277
+ $this->container[] = $value;
278
+ } else {
279
+ $this->container[$offset] = $value;
280
+ }
281
+ }
282
+
283
+ /**
284
+ * Unsets offset.
285
+ * @param integer $offset Offset
286
+ * @return void
287
+ */
288
+ public function offsetUnset($offset)
289
+ {
290
+ unset($this->container[$offset]);
291
+ }
292
+
293
+ /**
294
+ * Gets the string presentation of the object
295
+ * @return string
296
+ */
297
+ public function __toString()
298
+ {
299
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
300
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
301
+ }
302
+
303
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
304
+ }
305
+ }
306
+
307
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/SingleOfBackOrder.php ADDED
@@ -0,0 +1,333 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * SingleOfBackOrder
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * SingleOfBackOrder Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class SingleOfBackOrder implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'SingleOfBackOrder';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'content' => '\ChannelEngine\ApiClient\Model\BackOrder',
58
+ 'statusCode' => 'int',
59
+ 'success' => 'bool',
60
+ 'message' => 'string',
61
+ 'validationErrors' => 'map[string,string[]]'
62
+ ];
63
+
64
+ public static function swaggerTypes()
65
+ {
66
+ return self::$swaggerTypes;
67
+ }
68
+
69
+ /**
70
+ * Array of attributes where the key is the local name, and the value is the original name
71
+ * @var string[]
72
+ */
73
+ protected static $attributeMap = [
74
+ 'content' => 'Content',
75
+ 'statusCode' => 'StatusCode',
76
+ 'success' => 'Success',
77
+ 'message' => 'Message',
78
+ 'validationErrors' => 'ValidationErrors'
79
+ ];
80
+
81
+
82
+ /**
83
+ * Array of attributes to setter functions (for deserialization of responses)
84
+ * @var string[]
85
+ */
86
+ protected static $setters = [
87
+ 'content' => 'setContent',
88
+ 'statusCode' => 'setStatusCode',
89
+ 'success' => 'setSuccess',
90
+ 'message' => 'setMessage',
91
+ 'validationErrors' => 'setValidationErrors'
92
+ ];
93
+
94
+
95
+ /**
96
+ * Array of attributes to getter functions (for serialization of requests)
97
+ * @var string[]
98
+ */
99
+ protected static $getters = [
100
+ 'content' => 'getContent',
101
+ 'statusCode' => 'getStatusCode',
102
+ 'success' => 'getSuccess',
103
+ 'message' => 'getMessage',
104
+ 'validationErrors' => 'getValidationErrors'
105
+ ];
106
+
107
+ public static function attributeMap()
108
+ {
109
+ return self::$attributeMap;
110
+ }
111
+
112
+ public static function setters()
113
+ {
114
+ return self::$setters;
115
+ }
116
+
117
+ public static function getters()
118
+ {
119
+ return self::$getters;
120
+ }
121
+
122
+
123
+
124
+
125
+
126
+ /**
127
+ * Associative array for storing property values
128
+ * @var mixed[]
129
+ */
130
+ protected $container = [];
131
+
132
+ /**
133
+ * Constructor
134
+ * @param mixed[] $data Associated array of property values initializing the model
135
+ */
136
+ public function __construct(array $data = null)
137
+ {
138
+ $this->container['content'] = isset($data['content']) ? $data['content'] : null;
139
+ $this->container['statusCode'] = isset($data['statusCode']) ? $data['statusCode'] : null;
140
+ $this->container['success'] = isset($data['success']) ? $data['success'] : null;
141
+ $this->container['message'] = isset($data['message']) ? $data['message'] : null;
142
+ $this->container['validationErrors'] = isset($data['validationErrors']) ? $data['validationErrors'] : null;
143
+ }
144
+
145
+ /**
146
+ * show all the invalid properties with reasons.
147
+ *
148
+ * @return array invalid properties with reasons
149
+ */
150
+ public function listInvalidProperties()
151
+ {
152
+ $invalid_properties = [];
153
+
154
+ return $invalid_properties;
155
+ }
156
+
157
+ /**
158
+ * validate all the properties in the model
159
+ * return true if all passed
160
+ *
161
+ * @return bool True if all properties are valid
162
+ */
163
+ public function valid()
164
+ {
165
+
166
+ return true;
167
+ }
168
+
169
+
170
+ /**
171
+ * Gets content
172
+ * @return \ChannelEngine\ApiClient\Model\BackOrder
173
+ */
174
+ public function getContent()
175
+ {
176
+ return $this->container['content'];
177
+ }
178
+
179
+ /**
180
+ * Sets content
181
+ * @param \ChannelEngine\ApiClient\Model\BackOrder $content
182
+ * @return $this
183
+ */
184
+ public function setContent($content)
185
+ {
186
+ $this->container['content'] = $content;
187
+
188
+ return $this;
189
+ }
190
+
191
+ /**
192
+ * Gets statusCode
193
+ * @return int
194
+ */
195
+ public function getStatusCode()
196
+ {
197
+ return $this->container['statusCode'];
198
+ }
199
+
200
+ /**
201
+ * Sets statusCode
202
+ * @param int $statusCode
203
+ * @return $this
204
+ */
205
+ public function setStatusCode($statusCode)
206
+ {
207
+ $this->container['statusCode'] = $statusCode;
208
+
209
+ return $this;
210
+ }
211
+
212
+ /**
213
+ * Gets success
214
+ * @return bool
215
+ */
216
+ public function getSuccess()
217
+ {
218
+ return $this->container['success'];
219
+ }
220
+
221
+ /**
222
+ * Sets success
223
+ * @param bool $success
224
+ * @return $this
225
+ */
226
+ public function setSuccess($success)
227
+ {
228
+ $this->container['success'] = $success;
229
+
230
+ return $this;
231
+ }
232
+
233
+ /**
234
+ * Gets message
235
+ * @return string
236
+ */
237
+ public function getMessage()
238
+ {
239
+ return $this->container['message'];
240
+ }
241
+
242
+ /**
243
+ * Sets message
244
+ * @param string $message
245
+ * @return $this
246
+ */
247
+ public function setMessage($message)
248
+ {
249
+ $this->container['message'] = $message;
250
+
251
+ return $this;
252
+ }
253
+
254
+ /**
255
+ * Gets validationErrors
256
+ * @return map[string,string[]]
257
+ */
258
+ public function getValidationErrors()
259
+ {
260
+ return $this->container['validationErrors'];
261
+ }
262
+
263
+ /**
264
+ * Sets validationErrors
265
+ * @param map[string,string[]] $validationErrors
266
+ * @return $this
267
+ */
268
+ public function setValidationErrors($validationErrors)
269
+ {
270
+ $this->container['validationErrors'] = $validationErrors;
271
+
272
+ return $this;
273
+ }
274
+ /**
275
+ * Returns true if offset exists. False otherwise.
276
+ * @param integer $offset Offset
277
+ * @return boolean
278
+ */
279
+ public function offsetExists($offset)
280
+ {
281
+ return isset($this->container[$offset]);
282
+ }
283
+
284
+ /**
285
+ * Gets offset.
286
+ * @param integer $offset Offset
287
+ * @return mixed
288
+ */
289
+ public function offsetGet($offset)
290
+ {
291
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
292
+ }
293
+
294
+ /**
295
+ * Sets value based on offset.
296
+ * @param integer $offset Offset
297
+ * @param mixed $value Value to be set
298
+ * @return void
299
+ */
300
+ public function offsetSet($offset, $value)
301
+ {
302
+ if (is_null($offset)) {
303
+ $this->container[] = $value;
304
+ } else {
305
+ $this->container[$offset] = $value;
306
+ }
307
+ }
308
+
309
+ /**
310
+ * Unsets offset.
311
+ * @param integer $offset Offset
312
+ * @return void
313
+ */
314
+ public function offsetUnset($offset)
315
+ {
316
+ unset($this->container[$offset]);
317
+ }
318
+
319
+ /**
320
+ * Gets the string presentation of the object
321
+ * @return string
322
+ */
323
+ public function __toString()
324
+ {
325
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
326
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
327
+ }
328
+
329
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
330
+ }
331
+ }
332
+
333
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/SingleOfChannelProductChangesResponse.php ADDED
@@ -0,0 +1,333 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * SingleOfChannelProductChangesResponse
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * SingleOfChannelProductChangesResponse Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class SingleOfChannelProductChangesResponse implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'SingleOfChannelProductChangesResponse';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'content' => '\ChannelEngine\ApiClient\Model\ChannelProductChangesResponse',
58
+ 'statusCode' => 'int',
59
+ 'success' => 'bool',
60
+ 'message' => 'string',
61
+ 'validationErrors' => 'map[string,string[]]'
62
+ ];
63
+
64
+ public static function swaggerTypes()
65
+ {
66
+ return self::$swaggerTypes;
67
+ }
68
+
69
+ /**
70
+ * Array of attributes where the key is the local name, and the value is the original name
71
+ * @var string[]
72
+ */
73
+ protected static $attributeMap = [
74
+ 'content' => 'Content',
75
+ 'statusCode' => 'StatusCode',
76
+ 'success' => 'Success',
77
+ 'message' => 'Message',
78
+ 'validationErrors' => 'ValidationErrors'
79
+ ];
80
+
81
+
82
+ /**
83
+ * Array of attributes to setter functions (for deserialization of responses)
84
+ * @var string[]
85
+ */
86
+ protected static $setters = [
87
+ 'content' => 'setContent',
88
+ 'statusCode' => 'setStatusCode',
89
+ 'success' => 'setSuccess',
90
+ 'message' => 'setMessage',
91
+ 'validationErrors' => 'setValidationErrors'
92
+ ];
93
+
94
+
95
+ /**
96
+ * Array of attributes to getter functions (for serialization of requests)
97
+ * @var string[]
98
+ */
99
+ protected static $getters = [
100
+ 'content' => 'getContent',
101
+ 'statusCode' => 'getStatusCode',
102
+ 'success' => 'getSuccess',
103
+ 'message' => 'getMessage',
104
+ 'validationErrors' => 'getValidationErrors'
105
+ ];
106
+
107
+ public static function attributeMap()
108
+ {
109
+ return self::$attributeMap;
110
+ }
111
+
112
+ public static function setters()
113
+ {
114
+ return self::$setters;
115
+ }
116
+
117
+ public static function getters()
118
+ {
119
+ return self::$getters;
120
+ }
121
+
122
+
123
+
124
+
125
+
126
+ /**
127
+ * Associative array for storing property values
128
+ * @var mixed[]
129
+ */
130
+ protected $container = [];
131
+
132
+ /**
133
+ * Constructor
134
+ * @param mixed[] $data Associated array of property values initializing the model
135
+ */
136
+ public function __construct(array $data = null)
137
+ {
138
+ $this->container['content'] = isset($data['content']) ? $data['content'] : null;
139
+ $this->container['statusCode'] = isset($data['statusCode']) ? $data['statusCode'] : null;
140
+ $this->container['success'] = isset($data['success']) ? $data['success'] : null;
141
+ $this->container['message'] = isset($data['message']) ? $data['message'] : null;
142
+ $this->container['validationErrors'] = isset($data['validationErrors']) ? $data['validationErrors'] : null;
143
+ }
144
+
145
+ /**
146
+ * show all the invalid properties with reasons.
147
+ *
148
+ * @return array invalid properties with reasons
149
+ */
150
+ public function listInvalidProperties()
151
+ {
152
+ $invalid_properties = [];
153
+
154
+ return $invalid_properties;
155
+ }
156
+
157
+ /**
158
+ * validate all the properties in the model
159
+ * return true if all passed
160
+ *
161
+ * @return bool True if all properties are valid
162
+ */
163
+ public function valid()
164
+ {
165
+
166
+ return true;
167
+ }
168
+
169
+
170
+ /**
171
+ * Gets content
172
+ * @return \ChannelEngine\ApiClient\Model\ChannelProductChangesResponse
173
+ */
174
+ public function getContent()
175
+ {
176
+ return $this->container['content'];
177
+ }
178
+
179
+ /**
180
+ * Sets content
181
+ * @param \ChannelEngine\ApiClient\Model\ChannelProductChangesResponse $content
182
+ * @return $this
183
+ */
184
+ public function setContent($content)
185
+ {
186
+ $this->container['content'] = $content;
187
+
188
+ return $this;
189
+ }
190
+
191
+ /**
192
+ * Gets statusCode
193
+ * @return int
194
+ */
195
+ public function getStatusCode()
196
+ {
197
+ return $this->container['statusCode'];
198
+ }
199
+
200
+ /**
201
+ * Sets statusCode
202
+ * @param int $statusCode
203
+ * @return $this
204
+ */
205
+ public function setStatusCode($statusCode)
206
+ {
207
+ $this->container['statusCode'] = $statusCode;
208
+
209
+ return $this;
210
+ }
211
+
212
+ /**
213
+ * Gets success
214
+ * @return bool
215
+ */
216
+ public function getSuccess()
217
+ {
218
+ return $this->container['success'];
219
+ }
220
+
221
+ /**
222
+ * Sets success
223
+ * @param bool $success
224
+ * @return $this
225
+ */
226
+ public function setSuccess($success)
227
+ {
228
+ $this->container['success'] = $success;
229
+
230
+ return $this;
231
+ }
232
+
233
+ /**
234
+ * Gets message
235
+ * @return string
236
+ */
237
+ public function getMessage()
238
+ {
239
+ return $this->container['message'];
240
+ }
241
+
242
+ /**
243
+ * Sets message
244
+ * @param string $message
245
+ * @return $this
246
+ */
247
+ public function setMessage($message)
248
+ {
249
+ $this->container['message'] = $message;
250
+
251
+ return $this;
252
+ }
253
+
254
+ /**
255
+ * Gets validationErrors
256
+ * @return map[string,string[]]
257
+ */
258
+ public function getValidationErrors()
259
+ {
260
+ return $this->container['validationErrors'];
261
+ }
262
+
263
+ /**
264
+ * Sets validationErrors
265
+ * @param map[string,string[]] $validationErrors
266
+ * @return $this
267
+ */
268
+ public function setValidationErrors($validationErrors)
269
+ {
270
+ $this->container['validationErrors'] = $validationErrors;
271
+
272
+ return $this;
273
+ }
274
+ /**
275
+ * Returns true if offset exists. False otherwise.
276
+ * @param integer $offset Offset
277
+ * @return boolean
278
+ */
279
+ public function offsetExists($offset)
280
+ {
281
+ return isset($this->container[$offset]);
282
+ }
283
+
284
+ /**
285
+ * Gets offset.
286
+ * @param integer $offset Offset
287
+ * @return mixed
288
+ */
289
+ public function offsetGet($offset)
290
+ {
291
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
292
+ }
293
+
294
+ /**
295
+ * Sets value based on offset.
296
+ * @param integer $offset Offset
297
+ * @param mixed $value Value to be set
298
+ * @return void
299
+ */
300
+ public function offsetSet($offset, $value)
301
+ {
302
+ if (is_null($offset)) {
303
+ $this->container[] = $value;
304
+ } else {
305
+ $this->container[$offset] = $value;
306
+ }
307
+ }
308
+
309
+ /**
310
+ * Unsets offset.
311
+ * @param integer $offset Offset
312
+ * @return void
313
+ */
314
+ public function offsetUnset($offset)
315
+ {
316
+ unset($this->container[$offset]);
317
+ }
318
+
319
+ /**
320
+ * Gets the string presentation of the object
321
+ * @return string
322
+ */
323
+ public function __toString()
324
+ {
325
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
326
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
327
+ }
328
+
329
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
330
+ }
331
+ }
332
+
333
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/SingleOfMerchantProductResponse.php ADDED
@@ -0,0 +1,333 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * SingleOfMerchantProductResponse
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * SingleOfMerchantProductResponse Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class SingleOfMerchantProductResponse implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'SingleOfMerchantProductResponse';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'content' => '\ChannelEngine\ApiClient\Model\MerchantProductResponse',
58
+ 'statusCode' => 'int',
59
+ 'success' => 'bool',
60
+ 'message' => 'string',
61
+ 'validationErrors' => 'map[string,string[]]'
62
+ ];
63
+
64
+ public static function swaggerTypes()
65
+ {
66
+ return self::$swaggerTypes;
67
+ }
68
+
69
+ /**
70
+ * Array of attributes where the key is the local name, and the value is the original name
71
+ * @var string[]
72
+ */
73
+ protected static $attributeMap = [
74
+ 'content' => 'Content',
75
+ 'statusCode' => 'StatusCode',
76
+ 'success' => 'Success',
77
+ 'message' => 'Message',
78
+ 'validationErrors' => 'ValidationErrors'
79
+ ];
80
+
81
+
82
+ /**
83
+ * Array of attributes to setter functions (for deserialization of responses)
84
+ * @var string[]
85
+ */
86
+ protected static $setters = [
87
+ 'content' => 'setContent',
88
+ 'statusCode' => 'setStatusCode',
89
+ 'success' => 'setSuccess',
90
+ 'message' => 'setMessage',
91
+ 'validationErrors' => 'setValidationErrors'
92
+ ];
93
+
94
+
95
+ /**
96
+ * Array of attributes to getter functions (for serialization of requests)
97
+ * @var string[]
98
+ */
99
+ protected static $getters = [
100
+ 'content' => 'getContent',
101
+ 'statusCode' => 'getStatusCode',
102
+ 'success' => 'getSuccess',
103
+ 'message' => 'getMessage',
104
+ 'validationErrors' => 'getValidationErrors'
105
+ ];
106
+
107
+ public static function attributeMap()
108
+ {
109
+ return self::$attributeMap;
110
+ }
111
+
112
+ public static function setters()
113
+ {
114
+ return self::$setters;
115
+ }
116
+
117
+ public static function getters()
118
+ {
119
+ return self::$getters;
120
+ }
121
+
122
+
123
+
124
+
125
+
126
+ /**
127
+ * Associative array for storing property values
128
+ * @var mixed[]
129
+ */
130
+ protected $container = [];
131
+
132
+ /**
133
+ * Constructor
134
+ * @param mixed[] $data Associated array of property values initializing the model
135
+ */
136
+ public function __construct(array $data = null)
137
+ {
138
+ $this->container['content'] = isset($data['content']) ? $data['content'] : null;
139
+ $this->container['statusCode'] = isset($data['statusCode']) ? $data['statusCode'] : null;
140
+ $this->container['success'] = isset($data['success']) ? $data['success'] : null;
141
+ $this->container['message'] = isset($data['message']) ? $data['message'] : null;
142
+ $this->container['validationErrors'] = isset($data['validationErrors']) ? $data['validationErrors'] : null;
143
+ }
144
+
145
+ /**
146
+ * show all the invalid properties with reasons.
147
+ *
148
+ * @return array invalid properties with reasons
149
+ */
150
+ public function listInvalidProperties()
151
+ {
152
+ $invalid_properties = [];
153
+
154
+ return $invalid_properties;
155
+ }
156
+
157
+ /**
158
+ * validate all the properties in the model
159
+ * return true if all passed
160
+ *
161
+ * @return bool True if all properties are valid
162
+ */
163
+ public function valid()
164
+ {
165
+
166
+ return true;
167
+ }
168
+
169
+
170
+ /**
171
+ * Gets content
172
+ * @return \ChannelEngine\ApiClient\Model\MerchantProductResponse
173
+ */
174
+ public function getContent()
175
+ {
176
+ return $this->container['content'];
177
+ }
178
+
179
+ /**
180
+ * Sets content
181
+ * @param \ChannelEngine\ApiClient\Model\MerchantProductResponse $content
182
+ * @return $this
183
+ */
184
+ public function setContent($content)
185
+ {
186
+ $this->container['content'] = $content;
187
+
188
+ return $this;
189
+ }
190
+
191
+ /**
192
+ * Gets statusCode
193
+ * @return int
194
+ */
195
+ public function getStatusCode()
196
+ {
197
+ return $this->container['statusCode'];
198
+ }
199
+
200
+ /**
201
+ * Sets statusCode
202
+ * @param int $statusCode
203
+ * @return $this
204
+ */
205
+ public function setStatusCode($statusCode)
206
+ {
207
+ $this->container['statusCode'] = $statusCode;
208
+
209
+ return $this;
210
+ }
211
+
212
+ /**
213
+ * Gets success
214
+ * @return bool
215
+ */
216
+ public function getSuccess()
217
+ {
218
+ return $this->container['success'];
219
+ }
220
+
221
+ /**
222
+ * Sets success
223
+ * @param bool $success
224
+ * @return $this
225
+ */
226
+ public function setSuccess($success)
227
+ {
228
+ $this->container['success'] = $success;
229
+
230
+ return $this;
231
+ }
232
+
233
+ /**
234
+ * Gets message
235
+ * @return string
236
+ */
237
+ public function getMessage()
238
+ {
239
+ return $this->container['message'];
240
+ }
241
+
242
+ /**
243
+ * Sets message
244
+ * @param string $message
245
+ * @return $this
246
+ */
247
+ public function setMessage($message)
248
+ {
249
+ $this->container['message'] = $message;
250
+
251
+ return $this;
252
+ }
253
+
254
+ /**
255
+ * Gets validationErrors
256
+ * @return map[string,string[]]
257
+ */
258
+ public function getValidationErrors()
259
+ {
260
+ return $this->container['validationErrors'];
261
+ }
262
+
263
+ /**
264
+ * Sets validationErrors
265
+ * @param map[string,string[]] $validationErrors
266
+ * @return $this
267
+ */
268
+ public function setValidationErrors($validationErrors)
269
+ {
270
+ $this->container['validationErrors'] = $validationErrors;
271
+
272
+ return $this;
273
+ }
274
+ /**
275
+ * Returns true if offset exists. False otherwise.
276
+ * @param integer $offset Offset
277
+ * @return boolean
278
+ */
279
+ public function offsetExists($offset)
280
+ {
281
+ return isset($this->container[$offset]);
282
+ }
283
+
284
+ /**
285
+ * Gets offset.
286
+ * @param integer $offset Offset
287
+ * @return mixed
288
+ */
289
+ public function offsetGet($offset)
290
+ {
291
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
292
+ }
293
+
294
+ /**
295
+ * Sets value based on offset.
296
+ * @param integer $offset Offset
297
+ * @param mixed $value Value to be set
298
+ * @return void
299
+ */
300
+ public function offsetSet($offset, $value)
301
+ {
302
+ if (is_null($offset)) {
303
+ $this->container[] = $value;
304
+ } else {
305
+ $this->container[$offset] = $value;
306
+ }
307
+ }
308
+
309
+ /**
310
+ * Unsets offset.
311
+ * @param integer $offset Offset
312
+ * @return void
313
+ */
314
+ public function offsetUnset($offset)
315
+ {
316
+ unset($this->container[$offset]);
317
+ }
318
+
319
+ /**
320
+ * Gets the string presentation of the object
321
+ * @return string
322
+ */
323
+ public function __toString()
324
+ {
325
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
326
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
327
+ }
328
+
329
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
330
+ }
331
+ }
332
+
333
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/Model/SingleOfProductCreationResult.php ADDED
@@ -0,0 +1,333 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * SingleOfProductCreationResult
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swaagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient\Model;
31
+
32
+ use \ArrayAccess;
33
+
34
+ /**
35
+ * SingleOfProductCreationResult Class Doc Comment
36
+ *
37
+ * @category Class
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class SingleOfProductCreationResult implements ArrayAccess
43
+ {
44
+ const DISCRIMINATOR = null;
45
+
46
+ /**
47
+ * The original name of the model.
48
+ * @var string
49
+ */
50
+ protected static $swaggerModelName = 'SingleOfProductCreationResult';
51
+
52
+ /**
53
+ * Array of property to type mappings. Used for (de)serialization
54
+ * @var string[]
55
+ */
56
+ protected static $swaggerTypes = [
57
+ 'content' => '\ChannelEngine\ApiClient\Model\ProductCreationResult',
58
+ 'statusCode' => 'int',
59
+ 'success' => 'bool',
60
+ 'message' => 'string',
61
+ 'validationErrors' => 'map[string,string[]]'
62
+ ];
63
+
64
+ public static function swaggerTypes()
65
+ {
66
+ return self::$swaggerTypes;
67
+ }
68
+
69
+ /**
70
+ * Array of attributes where the key is the local name, and the value is the original name
71
+ * @var string[]
72
+ */
73
+ protected static $attributeMap = [
74
+ 'content' => 'Content',
75
+ 'statusCode' => 'StatusCode',
76
+ 'success' => 'Success',
77
+ 'message' => 'Message',
78
+ 'validationErrors' => 'ValidationErrors'
79
+ ];
80
+
81
+
82
+ /**
83
+ * Array of attributes to setter functions (for deserialization of responses)
84
+ * @var string[]
85
+ */
86
+ protected static $setters = [
87
+ 'content' => 'setContent',
88
+ 'statusCode' => 'setStatusCode',
89
+ 'success' => 'setSuccess',
90
+ 'message' => 'setMessage',
91
+ 'validationErrors' => 'setValidationErrors'
92
+ ];
93
+
94
+
95
+ /**
96
+ * Array of attributes to getter functions (for serialization of requests)
97
+ * @var string[]
98
+ */
99
+ protected static $getters = [
100
+ 'content' => 'getContent',
101
+ 'statusCode' => 'getStatusCode',
102
+ 'success' => 'getSuccess',
103
+ 'message' => 'getMessage',
104
+ 'validationErrors' => 'getValidationErrors'
105
+ ];
106
+
107
+ public static function attributeMap()
108
+ {
109
+ return self::$attributeMap;
110
+ }
111
+
112
+ public static function setters()
113
+ {
114
+ return self::$setters;
115
+ }
116
+
117
+ public static function getters()
118
+ {
119
+ return self::$getters;
120
+ }
121
+
122
+
123
+
124
+
125
+
126
+ /**
127
+ * Associative array for storing property values
128
+ * @var mixed[]
129
+ */
130
+ protected $container = [];
131
+
132
+ /**
133
+ * Constructor
134
+ * @param mixed[] $data Associated array of property values initializing the model
135
+ */
136
+ public function __construct(array $data = null)
137
+ {
138
+ $this->container['content'] = isset($data['content']) ? $data['content'] : null;
139
+ $this->container['statusCode'] = isset($data['statusCode']) ? $data['statusCode'] : null;
140
+ $this->container['success'] = isset($data['success']) ? $data['success'] : null;
141
+ $this->container['message'] = isset($data['message']) ? $data['message'] : null;
142
+ $this->container['validationErrors'] = isset($data['validationErrors']) ? $data['validationErrors'] : null;
143
+ }
144
+
145
+ /**
146
+ * show all the invalid properties with reasons.
147
+ *
148
+ * @return array invalid properties with reasons
149
+ */
150
+ public function listInvalidProperties()
151
+ {
152
+ $invalid_properties = [];
153
+
154
+ return $invalid_properties;
155
+ }
156
+
157
+ /**
158
+ * validate all the properties in the model
159
+ * return true if all passed
160
+ *
161
+ * @return bool True if all properties are valid
162
+ */
163
+ public function valid()
164
+ {
165
+
166
+ return true;
167
+ }
168
+
169
+
170
+ /**
171
+ * Gets content
172
+ * @return \ChannelEngine\ApiClient\Model\ProductCreationResult
173
+ */
174
+ public function getContent()
175
+ {
176
+ return $this->container['content'];
177
+ }
178
+
179
+ /**
180
+ * Sets content
181
+ * @param \ChannelEngine\ApiClient\Model\ProductCreationResult $content
182
+ * @return $this
183
+ */
184
+ public function setContent($content)
185
+ {
186
+ $this->container['content'] = $content;
187
+
188
+ return $this;
189
+ }
190
+
191
+ /**
192
+ * Gets statusCode
193
+ * @return int
194
+ */
195
+ public function getStatusCode()
196
+ {
197
+ return $this->container['statusCode'];
198
+ }
199
+
200
+ /**
201
+ * Sets statusCode
202
+ * @param int $statusCode
203
+ * @return $this
204
+ */
205
+ public function setStatusCode($statusCode)
206
+ {
207
+ $this->container['statusCode'] = $statusCode;
208
+
209
+ return $this;
210
+ }
211
+
212
+ /**
213
+ * Gets success
214
+ * @return bool
215
+ */
216
+ public function getSuccess()
217
+ {
218
+ return $this->container['success'];
219
+ }
220
+
221
+ /**
222
+ * Sets success
223
+ * @param bool $success
224
+ * @return $this
225
+ */
226
+ public function setSuccess($success)
227
+ {
228
+ $this->container['success'] = $success;
229
+
230
+ return $this;
231
+ }
232
+
233
+ /**
234
+ * Gets message
235
+ * @return string
236
+ */
237
+ public function getMessage()
238
+ {
239
+ return $this->container['message'];
240
+ }
241
+
242
+ /**
243
+ * Sets message
244
+ * @param string $message
245
+ * @return $this
246
+ */
247
+ public function setMessage($message)
248
+ {
249
+ $this->container['message'] = $message;
250
+
251
+ return $this;
252
+ }
253
+
254
+ /**
255
+ * Gets validationErrors
256
+ * @return map[string,string[]]
257
+ */
258
+ public function getValidationErrors()
259
+ {
260
+ return $this->container['validationErrors'];
261
+ }
262
+
263
+ /**
264
+ * Sets validationErrors
265
+ * @param map[string,string[]] $validationErrors
266
+ * @return $this
267
+ */
268
+ public function setValidationErrors($validationErrors)
269
+ {
270
+ $this->container['validationErrors'] = $validationErrors;
271
+
272
+ return $this;
273
+ }
274
+ /**
275
+ * Returns true if offset exists. False otherwise.
276
+ * @param integer $offset Offset
277
+ * @return boolean
278
+ */
279
+ public function offsetExists($offset)
280
+ {
281
+ return isset($this->container[$offset]);
282
+ }
283
+
284
+ /**
285
+ * Gets offset.
286
+ * @param integer $offset Offset
287
+ * @return mixed
288
+ */
289
+ public function offsetGet($offset)
290
+ {
291
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
292
+ }
293
+
294
+ /**
295
+ * Sets value based on offset.
296
+ * @param integer $offset Offset
297
+ * @param mixed $value Value to be set
298
+ * @return void
299
+ */
300
+ public function offsetSet($offset, $value)
301
+ {
302
+ if (is_null($offset)) {
303
+ $this->container[] = $value;
304
+ } else {
305
+ $this->container[$offset] = $value;
306
+ }
307
+ }
308
+
309
+ /**
310
+ * Unsets offset.
311
+ * @param integer $offset Offset
312
+ * @return void
313
+ */
314
+ public function offsetUnset($offset)
315
+ {
316
+ unset($this->container[$offset]);
317
+ }
318
+
319
+ /**
320
+ * Gets the string presentation of the object
321
+ * @return string
322
+ */
323
+ public function __toString()
324
+ {
325
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
326
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
327
+ }
328
+
329
+ return json_encode(\ChannelEngine\ApiClient\ObjectSerializer::sanitizeForSerialization($this));
330
+ }
331
+ }
332
+
333
+
lib/ChannelEngine/vendor/channelengine/api-client/lib/ObjectSerializer.php ADDED
@@ -0,0 +1,297 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ObjectSerializer
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Do not edit the class manually.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * ObjectSerializer Class Doc Comment
34
+ *
35
+ * @category Class
36
+ * @package ChannelEngine\ApiClient
37
+ * @author Swagger Codegen team
38
+ * @link https://github.com/swagger-api/swagger-codegen
39
+ */
40
+ class ObjectSerializer
41
+ {
42
+ /**
43
+ * Serialize data
44
+ *
45
+ * @param mixed $data the data to serialize
46
+ *
47
+ * @return string|object serialized form of $data
48
+ */
49
+ public static function sanitizeForSerialization($data)
50
+ {
51
+ if (is_scalar($data) || null === $data) {
52
+ return $data;
53
+ } elseif ($data instanceof \DateTime) {
54
+ return $data->format(\DateTime::ATOM);
55
+ } elseif (is_array($data)) {
56
+ foreach ($data as $property => $value) {
57
+ $data[$property] = self::sanitizeForSerialization($value);
58
+ }
59
+ return $data;
60
+ } elseif (is_object($data)) {
61
+ $values = [];
62
+ foreach (array_keys($data::swaggerTypes()) as $property) {
63
+ $getter = $data::getters()[$property];
64
+ if ($data->$getter() !== null) {
65
+ $values[$data::attributeMap()[$property]] = self::sanitizeForSerialization($data->$getter());
66
+ }
67
+ }
68
+ return (object)$values;
69
+ } else {
70
+ return (string)$data;
71
+ }
72
+ }
73
+
74
+ /**
75
+ * Sanitize filename by removing path.
76
+ * e.g. ../../sun.gif becomes sun.gif
77
+ *
78
+ * @param string $filename filename to be sanitized
79
+ *
80
+ * @return string the sanitized filename
81
+ */
82
+ public function sanitizeFilename($filename)
83
+ {
84
+ if (preg_match("/.*[\/\\\\](.*)$/", $filename, $match)) {
85
+ return $match[1];
86
+ } else {
87
+ return $filename;
88
+ }
89
+ }
90
+
91
+ /**
92
+ * Take value and turn it into a string suitable for inclusion in
93
+ * the path, by url-encoding.
94
+ *
95
+ * @param string $value a string which will be part of the path
96
+ *
97
+ * @return string the serialized object
98
+ */
99
+ public function toPathValue($value)
100
+ {
101
+ return rawurlencode($this->toString($value));
102
+ }
103
+
104
+ /**
105
+ * Take value and turn it into a string suitable for inclusion in
106
+ * the query, by imploding comma-separated if it's an object.
107
+ * If it's a string, pass through unchanged. It will be url-encoded
108
+ * later.
109
+ *
110
+ * @param string[]|string|\DateTime $object an object to be serialized to a string
111
+ *
112
+ * @return string the serialized object
113
+ */
114
+ public function toQueryValue($object)
115
+ {
116
+ if (is_array($object)) {
117
+ return implode(',', $object);
118
+ } else {
119
+ return $this->toString($object);
120
+ }
121
+ }
122
+
123
+ /**
124
+ * Take value and turn it into a string suitable for inclusion in
125
+ * the header. If it's a string, pass through unchanged
126
+ * If it's a datetime object, format it in ISO8601
127
+ *
128
+ * @param string $value a string which will be part of the header
129
+ *
130
+ * @return string the header string
131
+ */
132
+ public function toHeaderValue($value)
133
+ {
134
+ return $this->toString($value);
135
+ }
136
+
137
+ /**
138
+ * Take value and turn it into a string suitable for inclusion in
139
+ * the http body (form parameter). If it's a string, pass through unchanged
140
+ * If it's a datetime object, format it in ISO8601
141
+ *
142
+ * @param string|\SplFileObject $value the value of the form parameter
143
+ *
144
+ * @return string the form string
145
+ */
146
+ public function toFormValue($value)
147
+ {
148
+ if ($value instanceof \SplFileObject) {
149
+ return $value->getRealPath();
150
+ } else {
151
+ return $this->toString($value);
152
+ }
153
+ }
154
+
155
+ /**
156
+ * Take value and turn it into a string suitable for inclusion in
157
+ * the parameter. If it's a string, pass through unchanged
158
+ * If it's a datetime object, format it in ISO8601
159
+ *
160
+ * @param string|\DateTime $value the value of the parameter
161
+ *
162
+ * @return string the header string
163
+ */
164
+ public function toString($value)
165
+ {
166
+ if ($value instanceof \DateTime) { // datetime in ISO8601 format
167
+ return $value->format(\DateTime::ATOM);
168
+ } else {
169
+ return $value;
170
+ }
171
+ }
172
+
173
+ /**
174
+ * Serialize an array to a string.
175
+ *
176
+ * @param array $collection collection to serialize to a string
177
+ * @param string $collectionFormat the format use for serialization (csv,
178
+ * ssv, tsv, pipes, multi)
179
+ * @param bool $allowCollectionFormatMulti allow collection format to be a multidimensional array
180
+ *
181
+ * @return string
182
+ */
183
+ public function serializeCollection(array $collection, $collectionFormat, $allowCollectionFormatMulti = false)
184
+ {
185
+ if ($allowCollectionFormatMulti && ('multi' === $collectionFormat)) {
186
+ // http_build_query() almost does the job for us. We just
187
+ // need to fix the result of multidimensional arrays.
188
+ return preg_replace('/%5B[0-9]+%5D=/', '=', http_build_query($collection, '', '&'));
189
+ }
190
+ switch ($collectionFormat) {
191
+ case 'pipes':
192
+ return implode('|', $collection);
193
+
194
+ case 'tsv':
195
+ return implode("\t", $collection);
196
+
197
+ case 'ssv':
198
+ return implode(' ', $collection);
199
+
200
+ case 'csv':
201
+ // Deliberate fall through. CSV is default format.
202
+ default:
203
+ return implode(',', $collection);
204
+ }
205
+ }
206
+
207
+ /**
208
+ * Deserialize a JSON string into an object
209
+ *
210
+ * @param mixed $data object or primitive to be deserialized
211
+ * @param string $class class name is passed as a string
212
+ * @param string[] $httpHeaders HTTP headers
213
+ * @param string $discriminator discriminator if polymorphism is used
214
+ *
215
+ * @return object|array|null an single or an array of $class instances
216
+ */
217
+ public static function deserialize($data, $class, $httpHeaders = null)
218
+ {
219
+ if (null === $data) {
220
+ return null;
221
+ } elseif (substr($class, 0, 4) === 'map[') { // for associative array e.g. map[string,int]
222
+ $inner = substr($class, 4, -1);
223
+ $deserialized = [];
224
+ if (strrpos($inner, ",") !== false) {
225
+ $subClass_array = explode(',', $inner, 2);
226
+ $subClass = $subClass_array[1];
227
+ foreach ($data as $key => $value) {
228
+ $deserialized[$key] = self::deserialize($value, $subClass, null);
229
+ }
230
+ }
231
+ return $deserialized;
232
+ } elseif (strcasecmp(substr($class, -2), '[]') === 0) {
233
+ $subClass = substr($class, 0, -2);
234
+ $values = [];
235
+ foreach ($data as $key => $value) {
236
+ $values[] = self::deserialize($value, $subClass, null);
237
+ }
238
+ return $values;
239
+ } elseif ($class === 'object') {
240
+ settype($data, 'array');
241
+ return $data;
242
+ } elseif ($class === '\DateTime') {
243
+ // Some API's return an invalid, empty string as a
244
+ // date-time property. DateTime::__construct() will return
245
+ // the current time for empty input which is probably not
246
+ // what is meant. The invalid empty string is probably to
247
+ // be interpreted as a missing field/value. Let's handle
248
+ // this graceful.
249
+ if (!empty($data)) {
250
+ return new \DateTime($data);
251
+ } else {
252
+ return null;
253
+ }
254
+ } elseif (in_array($class, ['DateTime', 'bool', 'boolean', 'byte', 'double', 'float', 'int', 'integer', 'mixed', 'number', 'object', 'string', 'void'], true)) {
255
+ settype($data, $class);
256
+ return $data;
257
+ } elseif ($class === '\SplFileObject') {
258
+ // determine file name
259
+ if (array_key_exists('Content-Disposition', $httpHeaders) &&
260
+ preg_match('/inline; filename=[\'"]?([^\'"\s]+)[\'"]?$/i', $httpHeaders['Content-Disposition'], $match)) {
261
+ $filename = Configuration::getDefaultConfiguration()->getTempFolderPath() . sanitizeFilename($match[1]);
262
+ } else {
263
+ $filename = tempnam(Configuration::getDefaultConfiguration()->getTempFolderPath(), '');
264
+ }
265
+ $deserialized = new \SplFileObject($filename, "w");
266
+ $byte_written = $deserialized->fwrite($data);
267
+ if (Configuration::getDefaultConfiguration()->getDebug()) {
268
+ error_log("[DEBUG] Written $byte_written byte to $filename. Please move the file to a proper folder or delete the temp file after processing.".PHP_EOL, 3, Configuration::getDefaultConfiguration()->getDebugFile());
269
+ }
270
+
271
+ return $deserialized;
272
+ } else {
273
+ // If a discriminator is defined and points to a valid subclass, use it.
274
+ $discriminator = $class::DISCRIMINATOR;
275
+ if (!empty($discriminator) && isset($data->{$discriminator}) && is_string($data->{$discriminator})) {
276
+ $subclass = '\ChannelEngine\ApiClient\Model\\' . $data->{$discriminator};
277
+ if (is_subclass_of($subclass, $class)) {
278
+ $class = $subclass;
279
+ }
280
+ }
281
+ $instance = new $class();
282
+ foreach ($instance::swaggerTypes() as $property => $type) {
283
+ $propertySetter = $instance::setters()[$property];
284
+
285
+ if (!isset($propertySetter) || !isset($data->{$instance::attributeMap()[$property]})) {
286
+ continue;
287
+ }
288
+
289
+ $propertyValue = $data->{$instance::attributeMap()[$property]};
290
+ if (isset($propertyValue)) {
291
+ $instance->$propertySetter(self::deserialize($propertyValue, $type, null));
292
+ }
293
+ }
294
+ return $instance;
295
+ }
296
+ }
297
+ }
lib/ChannelEngine/vendor/channelengine/api-client/phpunit.xml.dist ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <phpunit bootstrap="./vendor/autoload.php"
3
+ colors="true"
4
+ convertErrorsToExceptions="true"
5
+ convertNoticesToExceptions="true"
6
+ convertWarningsToExceptions="true"
7
+ stopOnFailure="false">
8
+ <testsuites>
9
+ <testsuite>
10
+ <directory>./test/Api</directory>
11
+ <directory>./test/Model</directory>
12
+ </testsuite>
13
+ </testsuites>
14
+
15
+ <filter>
16
+ <whitelist processUncoveredFilesFromWhitelist="true">
17
+ <directory suffix=".php">./lib\Api</directory>
18
+ <directory suffix=".php">./lib\Model</directory>
19
+ </whitelist>
20
+ </filter>
21
+ </phpunit>
lib/ChannelEngine/vendor/channelengine/api-client/test/Api/BackOrderApiTest.php ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * BackOrderApiTest
4
+ * PHP version 5
5
+ *
6
+ * @category Class
7
+ * @package ChannelEngine\ApiClient
8
+ * @author Swagger Codegen team
9
+ * @link https://github.com/swagger-api/swagger-codegen
10
+ */
11
+
12
+ /**
13
+ * ChannelEngine API V2
14
+ *
15
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
16
+ *
17
+ * OpenAPI spec version: v2
18
+ *
19
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
20
+ *
21
+ */
22
+
23
+ /**
24
+ * NOTE: This class is auto generated by the swagger code generator program.
25
+ * https://github.com/swagger-api/swagger-codegen
26
+ * Please update the test case below to test the endpoint.
27
+ */
28
+
29
+ namespace ChannelEngine\ApiClient;
30
+
31
+ use \ChannelEngine\ApiClient\Configuration;
32
+ use \ChannelEngine\ApiClient\ApiClient;
33
+ use \ChannelEngine\ApiClient\ApiException;
34
+ use \ChannelEngine\ApiClient\ObjectSerializer;
35
+
36
+ /**
37
+ * BackOrderApiTest Class Doc Comment
38
+ *
39
+ * @category Class
40
+ * @package ChannelEngine\ApiClient
41
+ * @author Swagger Codegen team
42
+ * @link https://github.com/swagger-api/swagger-codegen
43
+ */
44
+ class BackOrderApiTest extends \PHPUnit_Framework_TestCase
45
+ {
46
+
47
+ /**
48
+ * Setup before running any test cases
49
+ */
50
+ public static function setUpBeforeClass()
51
+ {
52
+
53
+ }
54
+
55
+ /**
56
+ * Setup before running each test case
57
+ */
58
+ public function setUp()
59
+ {
60
+
61
+ }
62
+
63
+ /**
64
+ * Clean up after running each test case
65
+ */
66
+ public function tearDown()
67
+ {
68
+
69
+ }
70
+
71
+ /**
72
+ * Clean up after running all test cases
73
+ */
74
+ public static function tearDownAfterClass()
75
+ {
76
+
77
+ }
78
+
79
+ /**
80
+ * Test case for backOrderCreate
81
+ *
82
+ * Merchant: Create Backorder.
83
+ *
84
+ */
85
+ public function testBackOrderCreate()
86
+ {
87
+
88
+ }
89
+
90
+ /**
91
+ * Test case for backOrderGet
92
+ *
93
+ * Merchant: Get Backorder.
94
+ *
95
+ */
96
+ public function testBackOrderGet()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test case for backOrderIndex
103
+ *
104
+ * Get Backorders.
105
+ *
106
+ */
107
+ public function testBackOrderIndex()
108
+ {
109
+
110
+ }
111
+
112
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Api/CancellationApiTest.php ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * CancellationApiTest
4
+ * PHP version 5
5
+ *
6
+ * @category Class
7
+ * @package ChannelEngine\ApiClient
8
+ * @author Swagger Codegen team
9
+ * @link https://github.com/swagger-api/swagger-codegen
10
+ */
11
+
12
+ /**
13
+ * ChannelEngine API V2
14
+ *
15
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
16
+ *
17
+ * OpenAPI spec version: v2
18
+ *
19
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
20
+ *
21
+ */
22
+
23
+ /**
24
+ * NOTE: This class is auto generated by the swagger code generator program.
25
+ * https://github.com/swagger-api/swagger-codegen
26
+ * Please update the test case below to test the endpoint.
27
+ */
28
+
29
+ namespace ChannelEngine\ApiClient;
30
+
31
+ use \ChannelEngine\ApiClient\Configuration;
32
+ use \ChannelEngine\ApiClient\ApiClient;
33
+ use \ChannelEngine\ApiClient\ApiException;
34
+ use \ChannelEngine\ApiClient\ObjectSerializer;
35
+
36
+ /**
37
+ * CancellationApiTest Class Doc Comment
38
+ *
39
+ * @category Class
40
+ * @package ChannelEngine\ApiClient
41
+ * @author Swagger Codegen team
42
+ * @link https://github.com/swagger-api/swagger-codegen
43
+ */
44
+ class CancellationApiTest extends \PHPUnit_Framework_TestCase
45
+ {
46
+
47
+ /**
48
+ * Setup before running any test cases
49
+ */
50
+ public static function setUpBeforeClass()
51
+ {
52
+
53
+ }
54
+
55
+ /**
56
+ * Setup before running each test case
57
+ */
58
+ public function setUp()
59
+ {
60
+
61
+ }
62
+
63
+ /**
64
+ * Clean up after running each test case
65
+ */
66
+ public function tearDown()
67
+ {
68
+
69
+ }
70
+
71
+ /**
72
+ * Clean up after running all test cases
73
+ */
74
+ public static function tearDownAfterClass()
75
+ {
76
+
77
+ }
78
+
79
+ /**
80
+ * Test case for cancellationCreate
81
+ *
82
+ * Merchant: Create Cancellation.
83
+ *
84
+ */
85
+ public function testCancellationCreate()
86
+ {
87
+
88
+ }
89
+
90
+ /**
91
+ * Test case for cancellationIndex
92
+ *
93
+ * Channel: Get Cancellations.
94
+ *
95
+ */
96
+ public function testCancellationIndex()
97
+ {
98
+
99
+ }
100
+
101
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Api/ClientApiTest.php ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ClientApiTest
4
+ * PHP version 5
5
+ *
6
+ * @category Class
7
+ * @package ChannelEngine\ApiClient
8
+ * @author Swagger Codegen team
9
+ * @link https://github.com/swagger-api/swagger-codegen
10
+ */
11
+
12
+ /**
13
+ * ChannelEngine API V2
14
+ *
15
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
16
+ *
17
+ * OpenAPI spec version: v2
18
+ *
19
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
20
+ *
21
+ */
22
+
23
+ /**
24
+ * NOTE: This class is auto generated by the swagger code generator program.
25
+ * https://github.com/swagger-api/swagger-codegen
26
+ * Please update the test case below to test the endpoint.
27
+ */
28
+
29
+ namespace ChannelEngine\ApiClient;
30
+
31
+ use \ChannelEngine\ApiClient\Configuration;
32
+ use \ChannelEngine\ApiClient\ApiClient;
33
+ use \ChannelEngine\ApiClient\ApiException;
34
+ use \ChannelEngine\ApiClient\ObjectSerializer;
35
+
36
+ /**
37
+ * ClientApiTest Class Doc Comment
38
+ *
39
+ * @category Class
40
+ * @package ChannelEngine\ApiClient
41
+ * @author Swagger Codegen team
42
+ * @link https://github.com/swagger-api/swagger-codegen
43
+ */
44
+ class ClientApiTest extends \PHPUnit_Framework_TestCase
45
+ {
46
+
47
+ /**
48
+ * Setup before running any test cases
49
+ */
50
+ public static function setUpBeforeClass()
51
+ {
52
+
53
+ }
54
+
55
+ /**
56
+ * Setup before running each test case
57
+ */
58
+ public function setUp()
59
+ {
60
+
61
+ }
62
+
63
+ /**
64
+ * Clean up after running each test case
65
+ */
66
+ public function tearDown()
67
+ {
68
+
69
+ }
70
+
71
+ /**
72
+ * Clean up after running all test cases
73
+ */
74
+ public static function tearDownAfterClass()
75
+ {
76
+
77
+ }
78
+
79
+ /**
80
+ * Test case for clientGet
81
+ *
82
+ * Get API Client.
83
+ *
84
+ */
85
+ public function testClientGet()
86
+ {
87
+
88
+ }
89
+
90
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Api/OrderApiTest.php ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * OrderApiTest
4
+ * PHP version 5
5
+ *
6
+ * @category Class
7
+ * @package ChannelEngine\ApiClient
8
+ * @author Swagger Codegen team
9
+ * @link https://github.com/swagger-api/swagger-codegen
10
+ */
11
+
12
+ /**
13
+ * ChannelEngine API V2
14
+ *
15
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
16
+ *
17
+ * OpenAPI spec version: v2
18
+ *
19
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
20
+ *
21
+ */
22
+
23
+ /**
24
+ * NOTE: This class is auto generated by the swagger code generator program.
25
+ * https://github.com/swagger-api/swagger-codegen
26
+ * Please update the test case below to test the endpoint.
27
+ */
28
+
29
+ namespace ChannelEngine\ApiClient;
30
+
31
+ use \ChannelEngine\ApiClient\Configuration;
32
+ use \ChannelEngine\ApiClient\ApiClient;
33
+ use \ChannelEngine\ApiClient\ApiException;
34
+ use \ChannelEngine\ApiClient\ObjectSerializer;
35
+
36
+ /**
37
+ * OrderApiTest Class Doc Comment
38
+ *
39
+ * @category Class
40
+ * @package ChannelEngine\ApiClient
41
+ * @author Swagger Codegen team
42
+ * @link https://github.com/swagger-api/swagger-codegen
43
+ */
44
+ class OrderApiTest extends \PHPUnit_Framework_TestCase
45
+ {
46
+
47
+ /**
48
+ * Setup before running any test cases
49
+ */
50
+ public static function setUpBeforeClass()
51
+ {
52
+
53
+ }
54
+
55
+ /**
56
+ * Setup before running each test case
57
+ */
58
+ public function setUp()
59
+ {
60
+
61
+ }
62
+
63
+ /**
64
+ * Clean up after running each test case
65
+ */
66
+ public function tearDown()
67
+ {
68
+
69
+ }
70
+
71
+ /**
72
+ * Clean up after running all test cases
73
+ */
74
+ public static function tearDownAfterClass()
75
+ {
76
+
77
+ }
78
+
79
+ /**
80
+ * Test case for orderAcknowledge
81
+ *
82
+ * Merchant: Acknowledge Order.
83
+ *
84
+ */
85
+ public function testOrderAcknowledge()
86
+ {
87
+
88
+ }
89
+
90
+ /**
91
+ * Test case for orderCreate
92
+ *
93
+ * Channel: Create Order.
94
+ *
95
+ */
96
+ public function testOrderCreate()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test case for orderGetNew
103
+ *
104
+ * Merchant: Get New Orders.
105
+ *
106
+ */
107
+ public function testOrderGetNew()
108
+ {
109
+
110
+ }
111
+
112
+ /**
113
+ * Test case for orderInvoice
114
+ *
115
+ * Merchant: Download Invoice.
116
+ *
117
+ */
118
+ public function testOrderInvoice()
119
+ {
120
+
121
+ }
122
+
123
+ /**
124
+ * Test case for orderPackingSlip
125
+ *
126
+ * Merchant: Download Packing Slip.
127
+ *
128
+ */
129
+ public function testOrderPackingSlip()
130
+ {
131
+
132
+ }
133
+
134
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Api/ProductApiTest.php ADDED
@@ -0,0 +1,156 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ProductApiTest
4
+ * PHP version 5
5
+ *
6
+ * @category Class
7
+ * @package ChannelEngine\ApiClient
8
+ * @author Swagger Codegen team
9
+ * @link https://github.com/swagger-api/swagger-codegen
10
+ */
11
+
12
+ /**
13
+ * ChannelEngine API V2
14
+ *
15
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
16
+ *
17
+ * OpenAPI spec version: v2
18
+ *
19
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
20
+ *
21
+ */
22
+
23
+ /**
24
+ * NOTE: This class is auto generated by the swagger code generator program.
25
+ * https://github.com/swagger-api/swagger-codegen
26
+ * Please update the test case below to test the endpoint.
27
+ */
28
+
29
+ namespace ChannelEngine\ApiClient;
30
+
31
+ use \ChannelEngine\ApiClient\Configuration;
32
+ use \ChannelEngine\ApiClient\ApiClient;
33
+ use \ChannelEngine\ApiClient\ApiException;
34
+ use \ChannelEngine\ApiClient\ObjectSerializer;
35
+
36
+ /**
37
+ * ProductApiTest Class Doc Comment
38
+ *
39
+ * @category Class
40
+ * @package ChannelEngine\ApiClient
41
+ * @author Swagger Codegen team
42
+ * @link https://github.com/swagger-api/swagger-codegen
43
+ */
44
+ class ProductApiTest extends \PHPUnit_Framework_TestCase
45
+ {
46
+
47
+ /**
48
+ * Setup before running any test cases
49
+ */
50
+ public static function setUpBeforeClass()
51
+ {
52
+
53
+ }
54
+
55
+ /**
56
+ * Setup before running each test case
57
+ */
58
+ public function setUp()
59
+ {
60
+
61
+ }
62
+
63
+ /**
64
+ * Clean up after running each test case
65
+ */
66
+ public function tearDown()
67
+ {
68
+
69
+ }
70
+
71
+ /**
72
+ * Clean up after running all test cases
73
+ */
74
+ public static function tearDownAfterClass()
75
+ {
76
+
77
+ }
78
+
79
+ /**
80
+ * Test case for productAcknowledgeDataChanges
81
+ *
82
+ * Channel: Acknowledge Product Data Changes.
83
+ *
84
+ */
85
+ public function testProductAcknowledgeDataChanges()
86
+ {
87
+
88
+ }
89
+
90
+ /**
91
+ * Test case for productAcknowledgeOfferChanges
92
+ *
93
+ * Channel: Acknowledge Product Offer Changes.
94
+ *
95
+ */
96
+ public function testProductAcknowledgeOfferChanges()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test case for productCreate
103
+ *
104
+ * Merchant: Create Product.
105
+ *
106
+ */
107
+ public function testProductCreate()
108
+ {
109
+
110
+ }
111
+
112
+ /**
113
+ * Test case for productDelete
114
+ *
115
+ * Merchant: Delete Product.
116
+ *
117
+ */
118
+ public function testProductDelete()
119
+ {
120
+
121
+ }
122
+
123
+ /**
124
+ * Test case for productGetByMerchantProductNo
125
+ *
126
+ * Merchant: Get Product.
127
+ *
128
+ */
129
+ public function testProductGetByMerchantProductNo()
130
+ {
131
+
132
+ }
133
+
134
+ /**
135
+ * Test case for productGetDataChanges
136
+ *
137
+ * Channel: Get Product Data Changes.
138
+ *
139
+ */
140
+ public function testProductGetDataChanges()
141
+ {
142
+
143
+ }
144
+
145
+ /**
146
+ * Test case for productGetOfferChanges
147
+ *
148
+ * Channel: Get Product Offer Changes.
149
+ *
150
+ */
151
+ public function testProductGetOfferChanges()
152
+ {
153
+
154
+ }
155
+
156
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Api/ReturnApiTest.php ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ReturnApiTest
4
+ * PHP version 5
5
+ *
6
+ * @category Class
7
+ * @package ChannelEngine\ApiClient
8
+ * @author Swagger Codegen team
9
+ * @link https://github.com/swagger-api/swagger-codegen
10
+ */
11
+
12
+ /**
13
+ * ChannelEngine API V2
14
+ *
15
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
16
+ *
17
+ * OpenAPI spec version: v2
18
+ *
19
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
20
+ *
21
+ */
22
+
23
+ /**
24
+ * NOTE: This class is auto generated by the swagger code generator program.
25
+ * https://github.com/swagger-api/swagger-codegen
26
+ * Please update the test case below to test the endpoint.
27
+ */
28
+
29
+ namespace ChannelEngine\ApiClient;
30
+
31
+ use \ChannelEngine\ApiClient\Configuration;
32
+ use \ChannelEngine\ApiClient\ApiClient;
33
+ use \ChannelEngine\ApiClient\ApiException;
34
+ use \ChannelEngine\ApiClient\ObjectSerializer;
35
+
36
+ /**
37
+ * ReturnApiTest Class Doc Comment
38
+ *
39
+ * @category Class
40
+ * @package ChannelEngine\ApiClient
41
+ * @author Swagger Codegen team
42
+ * @link https://github.com/swagger-api/swagger-codegen
43
+ */
44
+ class ReturnApiTest extends \PHPUnit_Framework_TestCase
45
+ {
46
+
47
+ /**
48
+ * Setup before running any test cases
49
+ */
50
+ public static function setUpBeforeClass()
51
+ {
52
+
53
+ }
54
+
55
+ /**
56
+ * Setup before running each test case
57
+ */
58
+ public function setUp()
59
+ {
60
+
61
+ }
62
+
63
+ /**
64
+ * Clean up after running each test case
65
+ */
66
+ public function tearDown()
67
+ {
68
+
69
+ }
70
+
71
+ /**
72
+ * Clean up after running all test cases
73
+ */
74
+ public static function tearDownAfterClass()
75
+ {
76
+
77
+ }
78
+
79
+ /**
80
+ * Test case for returnDeclareForChannel
81
+ *
82
+ * Channel: Create Return.
83
+ *
84
+ */
85
+ public function testReturnDeclareForChannel()
86
+ {
87
+
88
+ }
89
+
90
+ /**
91
+ * Test case for returnDeclareForMerchant
92
+ *
93
+ * Merchant: Create Return.
94
+ *
95
+ */
96
+ public function testReturnDeclareForMerchant()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test case for returnGetDeclaredByChannel
103
+ *
104
+ * Merchant: Get Returns.
105
+ *
106
+ */
107
+ public function testReturnGetDeclaredByChannel()
108
+ {
109
+
110
+ }
111
+
112
+ /**
113
+ * Test case for returnGetDeclaredByMerchant
114
+ *
115
+ * Channel: Get Returns.
116
+ *
117
+ */
118
+ public function testReturnGetDeclaredByMerchant()
119
+ {
120
+
121
+ }
122
+
123
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Api/ShipmentApiTest.php ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ShipmentApiTest
4
+ * PHP version 5
5
+ *
6
+ * @category Class
7
+ * @package ChannelEngine\ApiClient
8
+ * @author Swagger Codegen team
9
+ * @link https://github.com/swagger-api/swagger-codegen
10
+ */
11
+
12
+ /**
13
+ * ChannelEngine API V2
14
+ *
15
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
16
+ *
17
+ * OpenAPI spec version: v2
18
+ *
19
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
20
+ *
21
+ */
22
+
23
+ /**
24
+ * NOTE: This class is auto generated by the swagger code generator program.
25
+ * https://github.com/swagger-api/swagger-codegen
26
+ * Please update the test case below to test the endpoint.
27
+ */
28
+
29
+ namespace ChannelEngine\ApiClient;
30
+
31
+ use \ChannelEngine\ApiClient\Configuration;
32
+ use \ChannelEngine\ApiClient\ApiClient;
33
+ use \ChannelEngine\ApiClient\ApiException;
34
+ use \ChannelEngine\ApiClient\ObjectSerializer;
35
+
36
+ /**
37
+ * ShipmentApiTest Class Doc Comment
38
+ *
39
+ * @category Class
40
+ * @package ChannelEngine\ApiClient
41
+ * @author Swagger Codegen team
42
+ * @link https://github.com/swagger-api/swagger-codegen
43
+ */
44
+ class ShipmentApiTest extends \PHPUnit_Framework_TestCase
45
+ {
46
+
47
+ /**
48
+ * Setup before running any test cases
49
+ */
50
+ public static function setUpBeforeClass()
51
+ {
52
+
53
+ }
54
+
55
+ /**
56
+ * Setup before running each test case
57
+ */
58
+ public function setUp()
59
+ {
60
+
61
+ }
62
+
63
+ /**
64
+ * Clean up after running each test case
65
+ */
66
+ public function tearDown()
67
+ {
68
+
69
+ }
70
+
71
+ /**
72
+ * Clean up after running all test cases
73
+ */
74
+ public static function tearDownAfterClass()
75
+ {
76
+
77
+ }
78
+
79
+ /**
80
+ * Test case for shipmentCreate
81
+ *
82
+ * Merchant: Create Shipment.
83
+ *
84
+ */
85
+ public function testShipmentCreate()
86
+ {
87
+
88
+ }
89
+
90
+ /**
91
+ * Test case for shipmentIndex
92
+ *
93
+ * Channel: Get Shipments.
94
+ *
95
+ */
96
+ public function testShipmentIndex()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test case for shipmentUpdate
103
+ *
104
+ * Merchant: Update Shipment.
105
+ *
106
+ */
107
+ public function testShipmentUpdate()
108
+ {
109
+
110
+ }
111
+
112
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ApiResponseTest.php ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ApiResponseTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * ApiResponseTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description ApiResponse
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ApiResponseTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "ApiResponse"
79
+ */
80
+ public function testApiResponse()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "statusCode"
87
+ */
88
+ public function testPropertyStatusCode()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "success"
95
+ */
96
+ public function testPropertySuccess()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "message"
103
+ */
104
+ public function testPropertyMessage()
105
+ {
106
+
107
+ }
108
+
109
+ /**
110
+ * Test attribute "validationErrors"
111
+ */
112
+ public function testPropertyValidationErrors()
113
+ {
114
+
115
+ }
116
+
117
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/BackOrderLineTest.php ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * BackOrderLineTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * BackOrderLineTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description BackOrderLine
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class BackOrderLineTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "BackOrderLine"
79
+ */
80
+ public function testBackOrderLine()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "merchantOrderLineNo"
87
+ */
88
+ public function testPropertyMerchantOrderLineNo()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "quantity"
95
+ */
96
+ public function testPropertyQuantity()
97
+ {
98
+
99
+ }
100
+
101
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/BackOrderTest.php ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * BackOrderTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * BackOrderTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description BackOrder
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class BackOrderTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "BackOrder"
79
+ */
80
+ public function testBackOrder()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "merchantBackorderNo"
87
+ */
88
+ public function testPropertyMerchantBackorderNo()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "merchantOrderNo"
95
+ */
96
+ public function testPropertyMerchantOrderNo()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "channelOrderNo"
103
+ */
104
+ public function testPropertyChannelOrderNo()
105
+ {
106
+
107
+ }
108
+
109
+ /**
110
+ * Test attribute "lines"
111
+ */
112
+ public function testPropertyLines()
113
+ {
114
+
115
+ }
116
+
117
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ChannelCancellationLineResponseTest.php ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ChannelCancellationLineResponseTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * ChannelCancellationLineResponseTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description ChannelCancellationLineResponse
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ChannelCancellationLineResponseTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "ChannelCancellationLineResponse"
79
+ */
80
+ public function testChannelCancellationLineResponse()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "channelProductNo"
87
+ */
88
+ public function testPropertyChannelProductNo()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "quantity"
95
+ */
96
+ public function testPropertyQuantity()
97
+ {
98
+
99
+ }
100
+
101
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ChannelCancellationResponseTest.php ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ChannelCancellationResponseTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * ChannelCancellationResponseTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description ChannelCancellationResponse
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ChannelCancellationResponseTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "ChannelCancellationResponse"
79
+ */
80
+ public function testChannelCancellationResponse()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "channelOrderNo"
87
+ */
88
+ public function testPropertyChannelOrderNo()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "lines"
95
+ */
96
+ public function testPropertyLines()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "reason"
103
+ */
104
+ public function testPropertyReason()
105
+ {
106
+
107
+ }
108
+
109
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ChannelOfferResponseTest.php ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ChannelOfferResponseTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * ChannelOfferResponseTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description ChannelOfferResponse
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ChannelOfferResponseTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "ChannelOfferResponse"
79
+ */
80
+ public function testChannelOfferResponse()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "channelProductNo"
87
+ */
88
+ public function testPropertyChannelProductNo()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "price"
95
+ */
96
+ public function testPropertyPrice()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "stock"
103
+ */
104
+ public function testPropertyStock()
105
+ {
106
+
107
+ }
108
+
109
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ChannelOrderLineRequestTest.php ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ChannelOrderLineRequestTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * ChannelOrderLineRequestTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description ChannelOrderLineRequest
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ChannelOrderLineRequestTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "ChannelOrderLineRequest"
79
+ */
80
+ public function testChannelOrderLineRequest()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "channelProductNo"
87
+ */
88
+ public function testPropertyChannelProductNo()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "quantity"
95
+ */
96
+ public function testPropertyQuantity()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "unitPriceInclVat"
103
+ */
104
+ public function testPropertyUnitPriceInclVat()
105
+ {
106
+
107
+ }
108
+
109
+ /**
110
+ * Test attribute "feeFixed"
111
+ */
112
+ public function testPropertyFeeFixed()
113
+ {
114
+
115
+ }
116
+
117
+ /**
118
+ * Test attribute "feeRate"
119
+ */
120
+ public function testPropertyFeeRate()
121
+ {
122
+
123
+ }
124
+
125
+ /**
126
+ * Test attribute "condition"
127
+ */
128
+ public function testPropertyCondition()
129
+ {
130
+
131
+ }
132
+
133
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ChannelOrderRequestTest.php ADDED
@@ -0,0 +1,197 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ChannelOrderRequestTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * ChannelOrderRequestTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description ChannelOrderRequest
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ChannelOrderRequestTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "ChannelOrderRequest"
79
+ */
80
+ public function testChannelOrderRequest()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "channelOrderNo"
87
+ */
88
+ public function testPropertyChannelOrderNo()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "lines"
95
+ */
96
+ public function testPropertyLines()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "phone"
103
+ */
104
+ public function testPropertyPhone()
105
+ {
106
+
107
+ }
108
+
109
+ /**
110
+ * Test attribute "email"
111
+ */
112
+ public function testPropertyEmail()
113
+ {
114
+
115
+ }
116
+
117
+ /**
118
+ * Test attribute "companyRegistrationNo"
119
+ */
120
+ public function testPropertyCompanyRegistrationNo()
121
+ {
122
+
123
+ }
124
+
125
+ /**
126
+ * Test attribute "vatNo"
127
+ */
128
+ public function testPropertyVatNo()
129
+ {
130
+
131
+ }
132
+
133
+ /**
134
+ * Test attribute "paymentMethod"
135
+ */
136
+ public function testPropertyPaymentMethod()
137
+ {
138
+
139
+ }
140
+
141
+ /**
142
+ * Test attribute "shippingCostsInclVat"
143
+ */
144
+ public function testPropertyShippingCostsInclVat()
145
+ {
146
+
147
+ }
148
+
149
+ /**
150
+ * Test attribute "currencyCode"
151
+ */
152
+ public function testPropertyCurrencyCode()
153
+ {
154
+
155
+ }
156
+
157
+ /**
158
+ * Test attribute "orderDate"
159
+ */
160
+ public function testPropertyOrderDate()
161
+ {
162
+
163
+ }
164
+
165
+ /**
166
+ * Test attribute "channelCustomerNo"
167
+ */
168
+ public function testPropertyChannelCustomerNo()
169
+ {
170
+
171
+ }
172
+
173
+ /**
174
+ * Test attribute "billingAddress"
175
+ */
176
+ public function testPropertyBillingAddress()
177
+ {
178
+
179
+ }
180
+
181
+ /**
182
+ * Test attribute "shippingAddress"
183
+ */
184
+ public function testPropertyShippingAddress()
185
+ {
186
+
187
+ }
188
+
189
+ /**
190
+ * Test attribute "extraData"
191
+ */
192
+ public function testPropertyExtraData()
193
+ {
194
+
195
+ }
196
+
197
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ChannelProcessedChangesRequestTest.php ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ChannelProcessedChangesRequestTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * ChannelProcessedChangesRequestTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description ChannelProcessedChangesRequest
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ChannelProcessedChangesRequestTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "ChannelProcessedChangesRequest"
79
+ */
80
+ public function testChannelProcessedChangesRequest()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "created"
87
+ */
88
+ public function testPropertyCreated()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "updated"
95
+ */
96
+ public function testPropertyUpdated()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "removed"
103
+ */
104
+ public function testPropertyRemoved()
105
+ {
106
+
107
+ }
108
+
109
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ChannelProductChangesResponseTest.php ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ChannelProductChangesResponseTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * ChannelProductChangesResponseTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description ChannelProductChangesResponse
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ChannelProductChangesResponseTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "ChannelProductChangesResponse"
79
+ */
80
+ public function testChannelProductChangesResponse()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "toBeCreated"
87
+ */
88
+ public function testPropertyToBeCreated()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "toBeUpdated"
95
+ */
96
+ public function testPropertyToBeUpdated()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "toBeRemoved"
103
+ */
104
+ public function testPropertyToBeRemoved()
105
+ {
106
+
107
+ }
108
+
109
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ChannelProductResponseTest.php ADDED
@@ -0,0 +1,253 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ChannelProductResponseTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * ChannelProductResponseTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description ChannelProductResponse
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ChannelProductResponseTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "ChannelProductResponse"
79
+ */
80
+ public function testChannelProductResponse()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "id"
87
+ */
88
+ public function testPropertyId()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "parentChannelProductNo"
95
+ */
96
+ public function testPropertyParentChannelProductNo()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "mappedFields"
103
+ */
104
+ public function testPropertyMappedFields()
105
+ {
106
+
107
+ }
108
+
109
+ /**
110
+ * Test attribute "name"
111
+ */
112
+ public function testPropertyName()
113
+ {
114
+
115
+ }
116
+
117
+ /**
118
+ * Test attribute "description"
119
+ */
120
+ public function testPropertyDescription()
121
+ {
122
+
123
+ }
124
+
125
+ /**
126
+ * Test attribute "brand"
127
+ */
128
+ public function testPropertyBrand()
129
+ {
130
+
131
+ }
132
+
133
+ /**
134
+ * Test attribute "size"
135
+ */
136
+ public function testPropertySize()
137
+ {
138
+
139
+ }
140
+
141
+ /**
142
+ * Test attribute "color"
143
+ */
144
+ public function testPropertyColor()
145
+ {
146
+
147
+ }
148
+
149
+ /**
150
+ * Test attribute "ean"
151
+ */
152
+ public function testPropertyEan()
153
+ {
154
+
155
+ }
156
+
157
+ /**
158
+ * Test attribute "manufacturerProductNumber"
159
+ */
160
+ public function testPropertyManufacturerProductNumber()
161
+ {
162
+
163
+ }
164
+
165
+ /**
166
+ * Test attribute "stock"
167
+ */
168
+ public function testPropertyStock()
169
+ {
170
+
171
+ }
172
+
173
+ /**
174
+ * Test attribute "price"
175
+ */
176
+ public function testPropertyPrice()
177
+ {
178
+
179
+ }
180
+
181
+ /**
182
+ * Test attribute "mSRP"
183
+ */
184
+ public function testPropertyMSRP()
185
+ {
186
+
187
+ }
188
+
189
+ /**
190
+ * Test attribute "purchasePrice"
191
+ */
192
+ public function testPropertyPurchasePrice()
193
+ {
194
+
195
+ }
196
+
197
+ /**
198
+ * Test attribute "vatRateType"
199
+ */
200
+ public function testPropertyVatRateType()
201
+ {
202
+
203
+ }
204
+
205
+ /**
206
+ * Test attribute "shippingCost"
207
+ */
208
+ public function testPropertyShippingCost()
209
+ {
210
+
211
+ }
212
+
213
+ /**
214
+ * Test attribute "shippingTime"
215
+ */
216
+ public function testPropertyShippingTime()
217
+ {
218
+
219
+ }
220
+
221
+ /**
222
+ * Test attribute "url"
223
+ */
224
+ public function testPropertyUrl()
225
+ {
226
+
227
+ }
228
+
229
+ /**
230
+ * Test attribute "imageUrl"
231
+ */
232
+ public function testPropertyImageUrl()
233
+ {
234
+
235
+ }
236
+
237
+ /**
238
+ * Test attribute "categoryTrail"
239
+ */
240
+ public function testPropertyCategoryTrail()
241
+ {
242
+
243
+ }
244
+
245
+ /**
246
+ * Test attribute "extraData"
247
+ */
248
+ public function testPropertyExtraData()
249
+ {
250
+
251
+ }
252
+
253
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ChannelReferencesRequestTest.php ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ChannelReferencesRequestTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * ChannelReferencesRequestTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description ChannelReferencesRequest
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ChannelReferencesRequestTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "ChannelReferencesRequest"
79
+ */
80
+ public function testChannelReferencesRequest()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "id"
87
+ */
88
+ public function testPropertyId()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "channelProductNo"
95
+ */
96
+ public function testPropertyChannelProductNo()
97
+ {
98
+
99
+ }
100
+
101
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ChannelReturnLineRequestTest.php ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ChannelReturnLineRequestTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * ChannelReturnLineRequestTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description ChannelReturnLineRequest
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ChannelReturnLineRequestTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "ChannelReturnLineRequest"
79
+ */
80
+ public function testChannelReturnLineRequest()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "channelProductNo"
87
+ */
88
+ public function testPropertyChannelProductNo()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "quantity"
95
+ */
96
+ public function testPropertyQuantity()
97
+ {
98
+
99
+ }
100
+
101
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ChannelReturnLineResponseTest.php ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ChannelReturnLineResponseTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * ChannelReturnLineResponseTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description ChannelReturnLineResponse
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ChannelReturnLineResponseTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "ChannelReturnLineResponse"
79
+ */
80
+ public function testChannelReturnLineResponse()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "channelProductNo"
87
+ */
88
+ public function testPropertyChannelProductNo()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "quantity"
95
+ */
96
+ public function testPropertyQuantity()
97
+ {
98
+
99
+ }
100
+
101
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ChannelReturnRequestTest.php ADDED
@@ -0,0 +1,149 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ChannelReturnRequestTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * ChannelReturnRequestTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description ChannelReturnRequest
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ChannelReturnRequestTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "ChannelReturnRequest"
79
+ */
80
+ public function testChannelReturnRequest()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "channelOrderNo"
87
+ */
88
+ public function testPropertyChannelOrderNo()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "channelReference"
95
+ */
96
+ public function testPropertyChannelReference()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "lines"
103
+ */
104
+ public function testPropertyLines()
105
+ {
106
+
107
+ }
108
+
109
+ /**
110
+ * Test attribute "reason"
111
+ */
112
+ public function testPropertyReason()
113
+ {
114
+
115
+ }
116
+
117
+ /**
118
+ * Test attribute "customerComment"
119
+ */
120
+ public function testPropertyCustomerComment()
121
+ {
122
+
123
+ }
124
+
125
+ /**
126
+ * Test attribute "merchantComment"
127
+ */
128
+ public function testPropertyMerchantComment()
129
+ {
130
+
131
+ }
132
+
133
+ /**
134
+ * Test attribute "refundInclVat"
135
+ */
136
+ public function testPropertyRefundInclVat()
137
+ {
138
+
139
+ }
140
+
141
+ /**
142
+ * Test attribute "refundExclVat"
143
+ */
144
+ public function testPropertyRefundExclVat()
145
+ {
146
+
147
+ }
148
+
149
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ChannelReturnResponseTest.php ADDED
@@ -0,0 +1,149 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ChannelReturnResponseTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * ChannelReturnResponseTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description ChannelReturnResponse
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ChannelReturnResponseTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "ChannelReturnResponse"
79
+ */
80
+ public function testChannelReturnResponse()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "channelReturnNo"
87
+ */
88
+ public function testPropertyChannelReturnNo()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "channelOrderNo"
95
+ */
96
+ public function testPropertyChannelOrderNo()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "lines"
103
+ */
104
+ public function testPropertyLines()
105
+ {
106
+
107
+ }
108
+
109
+ /**
110
+ * Test attribute "reason"
111
+ */
112
+ public function testPropertyReason()
113
+ {
114
+
115
+ }
116
+
117
+ /**
118
+ * Test attribute "customerComment"
119
+ */
120
+ public function testPropertyCustomerComment()
121
+ {
122
+
123
+ }
124
+
125
+ /**
126
+ * Test attribute "merchantComment"
127
+ */
128
+ public function testPropertyMerchantComment()
129
+ {
130
+
131
+ }
132
+
133
+ /**
134
+ * Test attribute "refundInclVat"
135
+ */
136
+ public function testPropertyRefundInclVat()
137
+ {
138
+
139
+ }
140
+
141
+ /**
142
+ * Test attribute "refundExclVat"
143
+ */
144
+ public function testPropertyRefundExclVat()
145
+ {
146
+
147
+ }
148
+
149
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ChannelShipmentLineResponseTest.php ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ChannelShipmentLineResponseTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * ChannelShipmentLineResponseTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description ChannelShipmentLineResponse
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ChannelShipmentLineResponseTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "ChannelShipmentLineResponse"
79
+ */
80
+ public function testChannelShipmentLineResponse()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "channelProductNo"
87
+ */
88
+ public function testPropertyChannelProductNo()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "quantity"
95
+ */
96
+ public function testPropertyQuantity()
97
+ {
98
+
99
+ }
100
+
101
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ChannelShipmentResponseTest.php ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ChannelShipmentResponseTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * ChannelShipmentResponseTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description ChannelShipmentResponse
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ChannelShipmentResponseTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "ChannelShipmentResponse"
79
+ */
80
+ public function testChannelShipmentResponse()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "channelOrderNo"
87
+ */
88
+ public function testPropertyChannelOrderNo()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "lines"
95
+ */
96
+ public function testPropertyLines()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "trackTraceNo"
103
+ */
104
+ public function testPropertyTrackTraceNo()
105
+ {
106
+
107
+ }
108
+
109
+ /**
110
+ * Test attribute "trackTraceUrl"
111
+ */
112
+ public function testPropertyTrackTraceUrl()
113
+ {
114
+
115
+ }
116
+
117
+ /**
118
+ * Test attribute "method"
119
+ */
120
+ public function testPropertyMethod()
121
+ {
122
+
123
+ }
124
+
125
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/CollectionOfBackOrderTest.php ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * CollectionOfBackOrderTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * CollectionOfBackOrderTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description CollectionOfBackOrder
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class CollectionOfBackOrderTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "CollectionOfBackOrder"
79
+ */
80
+ public function testCollectionOfBackOrder()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "content"
87
+ */
88
+ public function testPropertyContent()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "count"
95
+ */
96
+ public function testPropertyCount()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "statusCode"
103
+ */
104
+ public function testPropertyStatusCode()
105
+ {
106
+
107
+ }
108
+
109
+ /**
110
+ * Test attribute "success"
111
+ */
112
+ public function testPropertySuccess()
113
+ {
114
+
115
+ }
116
+
117
+ /**
118
+ * Test attribute "message"
119
+ */
120
+ public function testPropertyMessage()
121
+ {
122
+
123
+ }
124
+
125
+ /**
126
+ * Test attribute "validationErrors"
127
+ */
128
+ public function testPropertyValidationErrors()
129
+ {
130
+
131
+ }
132
+
133
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/CollectionOfChannelCancellationResponseTest.php ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * CollectionOfChannelCancellationResponseTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * CollectionOfChannelCancellationResponseTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description CollectionOfChannelCancellationResponse
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class CollectionOfChannelCancellationResponseTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "CollectionOfChannelCancellationResponse"
79
+ */
80
+ public function testCollectionOfChannelCancellationResponse()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "content"
87
+ */
88
+ public function testPropertyContent()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "count"
95
+ */
96
+ public function testPropertyCount()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "statusCode"
103
+ */
104
+ public function testPropertyStatusCode()
105
+ {
106
+
107
+ }
108
+
109
+ /**
110
+ * Test attribute "success"
111
+ */
112
+ public function testPropertySuccess()
113
+ {
114
+
115
+ }
116
+
117
+ /**
118
+ * Test attribute "message"
119
+ */
120
+ public function testPropertyMessage()
121
+ {
122
+
123
+ }
124
+
125
+ /**
126
+ * Test attribute "validationErrors"
127
+ */
128
+ public function testPropertyValidationErrors()
129
+ {
130
+
131
+ }
132
+
133
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/CollectionOfChannelOfferResponseTest.php ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * CollectionOfChannelOfferResponseTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * CollectionOfChannelOfferResponseTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description CollectionOfChannelOfferResponse
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class CollectionOfChannelOfferResponseTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "CollectionOfChannelOfferResponse"
79
+ */
80
+ public function testCollectionOfChannelOfferResponse()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "content"
87
+ */
88
+ public function testPropertyContent()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "count"
95
+ */
96
+ public function testPropertyCount()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "statusCode"
103
+ */
104
+ public function testPropertyStatusCode()
105
+ {
106
+
107
+ }
108
+
109
+ /**
110
+ * Test attribute "success"
111
+ */
112
+ public function testPropertySuccess()
113
+ {
114
+
115
+ }
116
+
117
+ /**
118
+ * Test attribute "message"
119
+ */
120
+ public function testPropertyMessage()
121
+ {
122
+
123
+ }
124
+
125
+ /**
126
+ * Test attribute "validationErrors"
127
+ */
128
+ public function testPropertyValidationErrors()
129
+ {
130
+
131
+ }
132
+
133
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/CollectionOfChannelReturnResponseTest.php ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * CollectionOfChannelReturnResponseTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * CollectionOfChannelReturnResponseTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description CollectionOfChannelReturnResponse
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class CollectionOfChannelReturnResponseTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "CollectionOfChannelReturnResponse"
79
+ */
80
+ public function testCollectionOfChannelReturnResponse()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "content"
87
+ */
88
+ public function testPropertyContent()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "count"
95
+ */
96
+ public function testPropertyCount()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "statusCode"
103
+ */
104
+ public function testPropertyStatusCode()
105
+ {
106
+
107
+ }
108
+
109
+ /**
110
+ * Test attribute "success"
111
+ */
112
+ public function testPropertySuccess()
113
+ {
114
+
115
+ }
116
+
117
+ /**
118
+ * Test attribute "message"
119
+ */
120
+ public function testPropertyMessage()
121
+ {
122
+
123
+ }
124
+
125
+ /**
126
+ * Test attribute "validationErrors"
127
+ */
128
+ public function testPropertyValidationErrors()
129
+ {
130
+
131
+ }
132
+
133
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/CollectionOfChannelShipmentResponseTest.php ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * CollectionOfChannelShipmentResponseTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * CollectionOfChannelShipmentResponseTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description CollectionOfChannelShipmentResponse
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class CollectionOfChannelShipmentResponseTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "CollectionOfChannelShipmentResponse"
79
+ */
80
+ public function testCollectionOfChannelShipmentResponse()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "content"
87
+ */
88
+ public function testPropertyContent()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "count"
95
+ */
96
+ public function testPropertyCount()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "statusCode"
103
+ */
104
+ public function testPropertyStatusCode()
105
+ {
106
+
107
+ }
108
+
109
+ /**
110
+ * Test attribute "success"
111
+ */
112
+ public function testPropertySuccess()
113
+ {
114
+
115
+ }
116
+
117
+ /**
118
+ * Test attribute "message"
119
+ */
120
+ public function testPropertyMessage()
121
+ {
122
+
123
+ }
124
+
125
+ /**
126
+ * Test attribute "validationErrors"
127
+ */
128
+ public function testPropertyValidationErrors()
129
+ {
130
+
131
+ }
132
+
133
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/CollectionOfMerchantOrderResponseTest.php ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * CollectionOfMerchantOrderResponseTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * CollectionOfMerchantOrderResponseTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description CollectionOfMerchantOrderResponse
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class CollectionOfMerchantOrderResponseTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "CollectionOfMerchantOrderResponse"
79
+ */
80
+ public function testCollectionOfMerchantOrderResponse()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "content"
87
+ */
88
+ public function testPropertyContent()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "count"
95
+ */
96
+ public function testPropertyCount()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "statusCode"
103
+ */
104
+ public function testPropertyStatusCode()
105
+ {
106
+
107
+ }
108
+
109
+ /**
110
+ * Test attribute "success"
111
+ */
112
+ public function testPropertySuccess()
113
+ {
114
+
115
+ }
116
+
117
+ /**
118
+ * Test attribute "message"
119
+ */
120
+ public function testPropertyMessage()
121
+ {
122
+
123
+ }
124
+
125
+ /**
126
+ * Test attribute "validationErrors"
127
+ */
128
+ public function testPropertyValidationErrors()
129
+ {
130
+
131
+ }
132
+
133
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/CollectionOfMerchantReturnResponseTest.php ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * CollectionOfMerchantReturnResponseTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * CollectionOfMerchantReturnResponseTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description CollectionOfMerchantReturnResponse
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class CollectionOfMerchantReturnResponseTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "CollectionOfMerchantReturnResponse"
79
+ */
80
+ public function testCollectionOfMerchantReturnResponse()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "content"
87
+ */
88
+ public function testPropertyContent()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "count"
95
+ */
96
+ public function testPropertyCount()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "statusCode"
103
+ */
104
+ public function testPropertyStatusCode()
105
+ {
106
+
107
+ }
108
+
109
+ /**
110
+ * Test attribute "success"
111
+ */
112
+ public function testPropertySuccess()
113
+ {
114
+
115
+ }
116
+
117
+ /**
118
+ * Test attribute "message"
119
+ */
120
+ public function testPropertyMessage()
121
+ {
122
+
123
+ }
124
+
125
+ /**
126
+ * Test attribute "validationErrors"
127
+ */
128
+ public function testPropertyValidationErrors()
129
+ {
130
+
131
+ }
132
+
133
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/EntitiesAddressModelsTest.php ADDED
@@ -0,0 +1,181 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * EntitiesAddressModelsTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * EntitiesAddressModelsTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description EntitiesAddressModels
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class EntitiesAddressModelsTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "EntitiesAddressModels"
79
+ */
80
+ public function testEntitiesAddressModels()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "gender"
87
+ */
88
+ public function testPropertyGender()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "companyName"
95
+ */
96
+ public function testPropertyCompanyName()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "firstName"
103
+ */
104
+ public function testPropertyFirstName()
105
+ {
106
+
107
+ }
108
+
109
+ /**
110
+ * Test attribute "lastName"
111
+ */
112
+ public function testPropertyLastName()
113
+ {
114
+
115
+ }
116
+
117
+ /**
118
+ * Test attribute "streetName"
119
+ */
120
+ public function testPropertyStreetName()
121
+ {
122
+
123
+ }
124
+
125
+ /**
126
+ * Test attribute "houseNr"
127
+ */
128
+ public function testPropertyHouseNr()
129
+ {
130
+
131
+ }
132
+
133
+ /**
134
+ * Test attribute "houseNrAddition"
135
+ */
136
+ public function testPropertyHouseNrAddition()
137
+ {
138
+
139
+ }
140
+
141
+ /**
142
+ * Test attribute "zipCode"
143
+ */
144
+ public function testPropertyZipCode()
145
+ {
146
+
147
+ }
148
+
149
+ /**
150
+ * Test attribute "city"
151
+ */
152
+ public function testPropertyCity()
153
+ {
154
+
155
+ }
156
+
157
+ /**
158
+ * Test attribute "region"
159
+ */
160
+ public function testPropertyRegion()
161
+ {
162
+
163
+ }
164
+
165
+ /**
166
+ * Test attribute "countryIso"
167
+ */
168
+ public function testPropertyCountryIso()
169
+ {
170
+
171
+ }
172
+
173
+ /**
174
+ * Test attribute "original"
175
+ */
176
+ public function testPropertyOriginal()
177
+ {
178
+
179
+ }
180
+
181
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ExtraDataItemTest.php ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ExtraDataItemTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * ExtraDataItemTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description ExtraDataItem
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ExtraDataItemTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "ExtraDataItem"
79
+ */
80
+ public function testExtraDataItem()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "key"
87
+ */
88
+ public function testPropertyKey()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "value"
95
+ */
96
+ public function testPropertyValue()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "type"
103
+ */
104
+ public function testPropertyType()
105
+ {
106
+
107
+ }
108
+
109
+ /**
110
+ * Test attribute "isPublic"
111
+ */
112
+ public function testPropertyIsPublic()
113
+ {
114
+
115
+ }
116
+
117
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/MerchantCancellationLineRequestTest.php ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MerchantCancellationLineRequestTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * MerchantCancellationLineRequestTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description MerchantCancellationLineRequest
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class MerchantCancellationLineRequestTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "MerchantCancellationLineRequest"
79
+ */
80
+ public function testMerchantCancellationLineRequest()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "merchantProductNo"
87
+ */
88
+ public function testPropertyMerchantProductNo()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "quantity"
95
+ */
96
+ public function testPropertyQuantity()
97
+ {
98
+
99
+ }
100
+
101
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/MerchantCancellationRequestTest.php ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MerchantCancellationRequestTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * MerchantCancellationRequestTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description MerchantCancellationRequest
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class MerchantCancellationRequestTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "MerchantCancellationRequest"
79
+ */
80
+ public function testMerchantCancellationRequest()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "merchantCancellationNo"
87
+ */
88
+ public function testPropertyMerchantCancellationNo()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "merchantOrderNo"
95
+ */
96
+ public function testPropertyMerchantOrderNo()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "lines"
103
+ */
104
+ public function testPropertyLines()
105
+ {
106
+
107
+ }
108
+
109
+ /**
110
+ * Test attribute "reason"
111
+ */
112
+ public function testPropertyReason()
113
+ {
114
+
115
+ }
116
+
117
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/MerchantOrderLineResponseTest.php ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MerchantOrderLineResponseTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * MerchantOrderLineResponseTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description MerchantOrderLineResponse
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class MerchantOrderLineResponseTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "MerchantOrderLineResponse"
79
+ */
80
+ public function testMerchantOrderLineResponse()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "merchantProductNo"
87
+ */
88
+ public function testPropertyMerchantProductNo()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "channelProductNo"
95
+ */
96
+ public function testPropertyChannelProductNo()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "quantity"
103
+ */
104
+ public function testPropertyQuantity()
105
+ {
106
+
107
+ }
108
+
109
+ /**
110
+ * Test attribute "unitPriceInclVat"
111
+ */
112
+ public function testPropertyUnitPriceInclVat()
113
+ {
114
+
115
+ }
116
+
117
+ /**
118
+ * Test attribute "feeFixed"
119
+ */
120
+ public function testPropertyFeeFixed()
121
+ {
122
+
123
+ }
124
+
125
+ /**
126
+ * Test attribute "feeRate"
127
+ */
128
+ public function testPropertyFeeRate()
129
+ {
130
+
131
+ }
132
+
133
+ /**
134
+ * Test attribute "condition"
135
+ */
136
+ public function testPropertyCondition()
137
+ {
138
+
139
+ }
140
+
141
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/MerchantOrderResponseTest.php ADDED
@@ -0,0 +1,221 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MerchantOrderResponseTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * MerchantOrderResponseTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description MerchantOrderResponse
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class MerchantOrderResponseTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "MerchantOrderResponse"
79
+ */
80
+ public function testMerchantOrderResponse()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "id"
87
+ */
88
+ public function testPropertyId()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "channelName"
95
+ */
96
+ public function testPropertyChannelName()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "channelOrderSupport"
103
+ */
104
+ public function testPropertyChannelOrderSupport()
105
+ {
106
+
107
+ }
108
+
109
+ /**
110
+ * Test attribute "channelOrderNo"
111
+ */
112
+ public function testPropertyChannelOrderNo()
113
+ {
114
+
115
+ }
116
+
117
+ /**
118
+ * Test attribute "lines"
119
+ */
120
+ public function testPropertyLines()
121
+ {
122
+
123
+ }
124
+
125
+ /**
126
+ * Test attribute "phone"
127
+ */
128
+ public function testPropertyPhone()
129
+ {
130
+
131
+ }
132
+
133
+ /**
134
+ * Test attribute "email"
135
+ */
136
+ public function testPropertyEmail()
137
+ {
138
+
139
+ }
140
+
141
+ /**
142
+ * Test attribute "companyRegistrationNo"
143
+ */
144
+ public function testPropertyCompanyRegistrationNo()
145
+ {
146
+
147
+ }
148
+
149
+ /**
150
+ * Test attribute "vatNo"
151
+ */
152
+ public function testPropertyVatNo()
153
+ {
154
+
155
+ }
156
+
157
+ /**
158
+ * Test attribute "paymentMethod"
159
+ */
160
+ public function testPropertyPaymentMethod()
161
+ {
162
+
163
+ }
164
+
165
+ /**
166
+ * Test attribute "shippingCostsInclVat"
167
+ */
168
+ public function testPropertyShippingCostsInclVat()
169
+ {
170
+
171
+ }
172
+
173
+ /**
174
+ * Test attribute "currencyCode"
175
+ */
176
+ public function testPropertyCurrencyCode()
177
+ {
178
+
179
+ }
180
+
181
+ /**
182
+ * Test attribute "orderDate"
183
+ */
184
+ public function testPropertyOrderDate()
185
+ {
186
+
187
+ }
188
+
189
+ /**
190
+ * Test attribute "channelCustomerNo"
191
+ */
192
+ public function testPropertyChannelCustomerNo()
193
+ {
194
+
195
+ }
196
+
197
+ /**
198
+ * Test attribute "billingAddress"
199
+ */
200
+ public function testPropertyBillingAddress()
201
+ {
202
+
203
+ }
204
+
205
+ /**
206
+ * Test attribute "shippingAddress"
207
+ */
208
+ public function testPropertyShippingAddress()
209
+ {
210
+
211
+ }
212
+
213
+ /**
214
+ * Test attribute "extraData"
215
+ */
216
+ public function testPropertyExtraData()
217
+ {
218
+
219
+ }
220
+
221
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/MerchantProductRequestTest.php ADDED
@@ -0,0 +1,245 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MerchantProductRequestTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * MerchantProductRequestTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description MerchantProductRequest
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class MerchantProductRequestTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "MerchantProductRequest"
79
+ */
80
+ public function testMerchantProductRequest()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "merchantProductNo"
87
+ */
88
+ public function testPropertyMerchantProductNo()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "parentMerchantProductNo"
95
+ */
96
+ public function testPropertyParentMerchantProductNo()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "name"
103
+ */
104
+ public function testPropertyName()
105
+ {
106
+
107
+ }
108
+
109
+ /**
110
+ * Test attribute "description"
111
+ */
112
+ public function testPropertyDescription()
113
+ {
114
+
115
+ }
116
+
117
+ /**
118
+ * Test attribute "brand"
119
+ */
120
+ public function testPropertyBrand()
121
+ {
122
+
123
+ }
124
+
125
+ /**
126
+ * Test attribute "size"
127
+ */
128
+ public function testPropertySize()
129
+ {
130
+
131
+ }
132
+
133
+ /**
134
+ * Test attribute "color"
135
+ */
136
+ public function testPropertyColor()
137
+ {
138
+
139
+ }
140
+
141
+ /**
142
+ * Test attribute "ean"
143
+ */
144
+ public function testPropertyEan()
145
+ {
146
+
147
+ }
148
+
149
+ /**
150
+ * Test attribute "manufacturerProductNumber"
151
+ */
152
+ public function testPropertyManufacturerProductNumber()
153
+ {
154
+
155
+ }
156
+
157
+ /**
158
+ * Test attribute "stock"
159
+ */
160
+ public function testPropertyStock()
161
+ {
162
+
163
+ }
164
+
165
+ /**
166
+ * Test attribute "price"
167
+ */
168
+ public function testPropertyPrice()
169
+ {
170
+
171
+ }
172
+
173
+ /**
174
+ * Test attribute "mSRP"
175
+ */
176
+ public function testPropertyMSRP()
177
+ {
178
+
179
+ }
180
+
181
+ /**
182
+ * Test attribute "purchasePrice"
183
+ */
184
+ public function testPropertyPurchasePrice()
185
+ {
186
+
187
+ }
188
+
189
+ /**
190
+ * Test attribute "vatRateType"
191
+ */
192
+ public function testPropertyVatRateType()
193
+ {
194
+
195
+ }
196
+
197
+ /**
198
+ * Test attribute "shippingCost"
199
+ */
200
+ public function testPropertyShippingCost()
201
+ {
202
+
203
+ }
204
+
205
+ /**
206
+ * Test attribute "shippingTime"
207
+ */
208
+ public function testPropertyShippingTime()
209
+ {
210
+
211
+ }
212
+
213
+ /**
214
+ * Test attribute "url"
215
+ */
216
+ public function testPropertyUrl()
217
+ {
218
+
219
+ }
220
+
221
+ /**
222
+ * Test attribute "imageUrl"
223
+ */
224
+ public function testPropertyImageUrl()
225
+ {
226
+
227
+ }
228
+
229
+ /**
230
+ * Test attribute "categoryTrail"
231
+ */
232
+ public function testPropertyCategoryTrail()
233
+ {
234
+
235
+ }
236
+
237
+ /**
238
+ * Test attribute "extraData"
239
+ */
240
+ public function testPropertyExtraData()
241
+ {
242
+
243
+ }
244
+
245
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/MerchantProductResponseTest.php ADDED
@@ -0,0 +1,245 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MerchantProductResponseTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * MerchantProductResponseTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description MerchantProductResponse
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class MerchantProductResponseTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "MerchantProductResponse"
79
+ */
80
+ public function testMerchantProductResponse()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "isActive"
87
+ */
88
+ public function testPropertyIsActive()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "mappedFields"
95
+ */
96
+ public function testPropertyMappedFields()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "name"
103
+ */
104
+ public function testPropertyName()
105
+ {
106
+
107
+ }
108
+
109
+ /**
110
+ * Test attribute "description"
111
+ */
112
+ public function testPropertyDescription()
113
+ {
114
+
115
+ }
116
+
117
+ /**
118
+ * Test attribute "brand"
119
+ */
120
+ public function testPropertyBrand()
121
+ {
122
+
123
+ }
124
+
125
+ /**
126
+ * Test attribute "size"
127
+ */
128
+ public function testPropertySize()
129
+ {
130
+
131
+ }
132
+
133
+ /**
134
+ * Test attribute "color"
135
+ */
136
+ public function testPropertyColor()
137
+ {
138
+
139
+ }
140
+
141
+ /**
142
+ * Test attribute "ean"
143
+ */
144
+ public function testPropertyEan()
145
+ {
146
+
147
+ }
148
+
149
+ /**
150
+ * Test attribute "manufacturerProductNumber"
151
+ */
152
+ public function testPropertyManufacturerProductNumber()
153
+ {
154
+
155
+ }
156
+
157
+ /**
158
+ * Test attribute "stock"
159
+ */
160
+ public function testPropertyStock()
161
+ {
162
+
163
+ }
164
+
165
+ /**
166
+ * Test attribute "price"
167
+ */
168
+ public function testPropertyPrice()
169
+ {
170
+
171
+ }
172
+
173
+ /**
174
+ * Test attribute "mSRP"
175
+ */
176
+ public function testPropertyMSRP()
177
+ {
178
+
179
+ }
180
+
181
+ /**
182
+ * Test attribute "purchasePrice"
183
+ */
184
+ public function testPropertyPurchasePrice()
185
+ {
186
+
187
+ }
188
+
189
+ /**
190
+ * Test attribute "vatRateType"
191
+ */
192
+ public function testPropertyVatRateType()
193
+ {
194
+
195
+ }
196
+
197
+ /**
198
+ * Test attribute "shippingCost"
199
+ */
200
+ public function testPropertyShippingCost()
201
+ {
202
+
203
+ }
204
+
205
+ /**
206
+ * Test attribute "shippingTime"
207
+ */
208
+ public function testPropertyShippingTime()
209
+ {
210
+
211
+ }
212
+
213
+ /**
214
+ * Test attribute "url"
215
+ */
216
+ public function testPropertyUrl()
217
+ {
218
+
219
+ }
220
+
221
+ /**
222
+ * Test attribute "imageUrl"
223
+ */
224
+ public function testPropertyImageUrl()
225
+ {
226
+
227
+ }
228
+
229
+ /**
230
+ * Test attribute "categoryTrail"
231
+ */
232
+ public function testPropertyCategoryTrail()
233
+ {
234
+
235
+ }
236
+
237
+ /**
238
+ * Test attribute "extraData"
239
+ */
240
+ public function testPropertyExtraData()
241
+ {
242
+
243
+ }
244
+
245
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/MerchantReturnLineRequestTest.php ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MerchantReturnLineRequestTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * MerchantReturnLineRequestTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description MerchantReturnLineRequest
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class MerchantReturnLineRequestTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "MerchantReturnLineRequest"
79
+ */
80
+ public function testMerchantReturnLineRequest()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "merchantProductNo"
87
+ */
88
+ public function testPropertyMerchantProductNo()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "quantity"
95
+ */
96
+ public function testPropertyQuantity()
97
+ {
98
+
99
+ }
100
+
101
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/MerchantReturnLineResponseTest.php ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MerchantReturnLineResponseTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * MerchantReturnLineResponseTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description MerchantReturnLineResponse
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class MerchantReturnLineResponseTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "MerchantReturnLineResponse"
79
+ */
80
+ public function testMerchantReturnLineResponse()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "merchantProductNo"
87
+ */
88
+ public function testPropertyMerchantProductNo()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "quantity"
95
+ */
96
+ public function testPropertyQuantity()
97
+ {
98
+
99
+ }
100
+
101
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/MerchantReturnRequestTest.php ADDED
@@ -0,0 +1,149 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MerchantReturnRequestTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * MerchantReturnRequestTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description MerchantReturnRequest
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class MerchantReturnRequestTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "MerchantReturnRequest"
79
+ */
80
+ public function testMerchantReturnRequest()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "merchantOrderNo"
87
+ */
88
+ public function testPropertyMerchantOrderNo()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "merchantReturnNo"
95
+ */
96
+ public function testPropertyMerchantReturnNo()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "lines"
103
+ */
104
+ public function testPropertyLines()
105
+ {
106
+
107
+ }
108
+
109
+ /**
110
+ * Test attribute "reason"
111
+ */
112
+ public function testPropertyReason()
113
+ {
114
+
115
+ }
116
+
117
+ /**
118
+ * Test attribute "customerComment"
119
+ */
120
+ public function testPropertyCustomerComment()
121
+ {
122
+
123
+ }
124
+
125
+ /**
126
+ * Test attribute "merchantComment"
127
+ */
128
+ public function testPropertyMerchantComment()
129
+ {
130
+
131
+ }
132
+
133
+ /**
134
+ * Test attribute "refundInclVat"
135
+ */
136
+ public function testPropertyRefundInclVat()
137
+ {
138
+
139
+ }
140
+
141
+ /**
142
+ * Test attribute "refundExclVat"
143
+ */
144
+ public function testPropertyRefundExclVat()
145
+ {
146
+
147
+ }
148
+
149
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/MerchantReturnResponseTest.php ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MerchantReturnResponseTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * MerchantReturnResponseTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description MerchantReturnResponse
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class MerchantReturnResponseTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "MerchantReturnResponse"
79
+ */
80
+ public function testMerchantReturnResponse()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "merchantOrderNo"
87
+ */
88
+ public function testPropertyMerchantOrderNo()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "lines"
95
+ */
96
+ public function testPropertyLines()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "reason"
103
+ */
104
+ public function testPropertyReason()
105
+ {
106
+
107
+ }
108
+
109
+ /**
110
+ * Test attribute "customerComment"
111
+ */
112
+ public function testPropertyCustomerComment()
113
+ {
114
+
115
+ }
116
+
117
+ /**
118
+ * Test attribute "merchantComment"
119
+ */
120
+ public function testPropertyMerchantComment()
121
+ {
122
+
123
+ }
124
+
125
+ /**
126
+ * Test attribute "refundInclVat"
127
+ */
128
+ public function testPropertyRefundInclVat()
129
+ {
130
+
131
+ }
132
+
133
+ /**
134
+ * Test attribute "refundExclVat"
135
+ */
136
+ public function testPropertyRefundExclVat()
137
+ {
138
+
139
+ }
140
+
141
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/MerchantShipmentLineRequestTest.php ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MerchantShipmentLineRequestTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * MerchantShipmentLineRequestTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description MerchantShipmentLineRequest
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class MerchantShipmentLineRequestTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "MerchantShipmentLineRequest"
79
+ */
80
+ public function testMerchantShipmentLineRequest()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "merchantProductNo"
87
+ */
88
+ public function testPropertyMerchantProductNo()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "quantity"
95
+ */
96
+ public function testPropertyQuantity()
97
+ {
98
+
99
+ }
100
+
101
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/MerchantShipmentRequestTest.php ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MerchantShipmentRequestTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * MerchantShipmentRequestTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description MerchantShipmentRequest
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class MerchantShipmentRequestTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "MerchantShipmentRequest"
79
+ */
80
+ public function testMerchantShipmentRequest()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "merchantShipmentNo"
87
+ */
88
+ public function testPropertyMerchantShipmentNo()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "merchantOrderNo"
95
+ */
96
+ public function testPropertyMerchantOrderNo()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "lines"
103
+ */
104
+ public function testPropertyLines()
105
+ {
106
+
107
+ }
108
+
109
+ /**
110
+ * Test attribute "trackTraceNo"
111
+ */
112
+ public function testPropertyTrackTraceNo()
113
+ {
114
+
115
+ }
116
+
117
+ /**
118
+ * Test attribute "trackTraceUrl"
119
+ */
120
+ public function testPropertyTrackTraceUrl()
121
+ {
122
+
123
+ }
124
+
125
+ /**
126
+ * Test attribute "method"
127
+ */
128
+ public function testPropertyMethod()
129
+ {
130
+
131
+ }
132
+
133
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/MerchantShipmentTrackingRequestTest.php ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MerchantShipmentTrackingRequestTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * MerchantShipmentTrackingRequestTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description MerchantShipmentTrackingRequest
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class MerchantShipmentTrackingRequestTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "MerchantShipmentTrackingRequest"
79
+ */
80
+ public function testMerchantShipmentTrackingRequest()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "method"
87
+ */
88
+ public function testPropertyMethod()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "trackTraceNo"
95
+ */
96
+ public function testPropertyTrackTraceNo()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "trackTraceUrl"
103
+ */
104
+ public function testPropertyTrackTraceUrl()
105
+ {
106
+
107
+ }
108
+
109
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/OrderAcknowledgementTest.php ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * OrderAcknowledgementTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * OrderAcknowledgementTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description OrderAcknowledgement
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class OrderAcknowledgementTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "OrderAcknowledgement"
79
+ */
80
+ public function testOrderAcknowledgement()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "merchantOrderNo"
87
+ */
88
+ public function testPropertyMerchantOrderNo()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "orderId"
95
+ */
96
+ public function testPropertyOrderId()
97
+ {
98
+
99
+ }
100
+
101
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ProductCreationResultTest.php ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ProductCreationResultTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * ProductCreationResultTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description ProductCreationResult
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ProductCreationResultTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "ProductCreationResult"
79
+ */
80
+ public function testProductCreationResult()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "rejectedCount"
87
+ */
88
+ public function testPropertyRejectedCount()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "acceptedCount"
95
+ */
96
+ public function testPropertyAcceptedCount()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "productMessages"
103
+ */
104
+ public function testPropertyProductMessages()
105
+ {
106
+
107
+ }
108
+
109
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/ProductMessageTest.php ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * ProductMessageTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * ProductMessageTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description ProductMessage
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class ProductMessageTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "ProductMessage"
79
+ */
80
+ public function testProductMessage()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "name"
87
+ */
88
+ public function testPropertyName()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "reference"
95
+ */
96
+ public function testPropertyReference()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "warnings"
103
+ */
104
+ public function testPropertyWarnings()
105
+ {
106
+
107
+ }
108
+
109
+ /**
110
+ * Test attribute "errors"
111
+ */
112
+ public function testPropertyErrors()
113
+ {
114
+
115
+ }
116
+
117
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/SingleOfBackOrderTest.php ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * SingleOfBackOrderTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * SingleOfBackOrderTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description SingleOfBackOrder
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class SingleOfBackOrderTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "SingleOfBackOrder"
79
+ */
80
+ public function testSingleOfBackOrder()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "content"
87
+ */
88
+ public function testPropertyContent()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "statusCode"
95
+ */
96
+ public function testPropertyStatusCode()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "success"
103
+ */
104
+ public function testPropertySuccess()
105
+ {
106
+
107
+ }
108
+
109
+ /**
110
+ * Test attribute "message"
111
+ */
112
+ public function testPropertyMessage()
113
+ {
114
+
115
+ }
116
+
117
+ /**
118
+ * Test attribute "validationErrors"
119
+ */
120
+ public function testPropertyValidationErrors()
121
+ {
122
+
123
+ }
124
+
125
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/SingleOfChannelProductChangesResponseTest.php ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * SingleOfChannelProductChangesResponseTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * SingleOfChannelProductChangesResponseTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description SingleOfChannelProductChangesResponse
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class SingleOfChannelProductChangesResponseTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "SingleOfChannelProductChangesResponse"
79
+ */
80
+ public function testSingleOfChannelProductChangesResponse()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "content"
87
+ */
88
+ public function testPropertyContent()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "statusCode"
95
+ */
96
+ public function testPropertyStatusCode()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "success"
103
+ */
104
+ public function testPropertySuccess()
105
+ {
106
+
107
+ }
108
+
109
+ /**
110
+ * Test attribute "message"
111
+ */
112
+ public function testPropertyMessage()
113
+ {
114
+
115
+ }
116
+
117
+ /**
118
+ * Test attribute "validationErrors"
119
+ */
120
+ public function testPropertyValidationErrors()
121
+ {
122
+
123
+ }
124
+
125
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/SingleOfMerchantProductResponseTest.php ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * SingleOfMerchantProductResponseTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * SingleOfMerchantProductResponseTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description SingleOfMerchantProductResponse
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class SingleOfMerchantProductResponseTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "SingleOfMerchantProductResponse"
79
+ */
80
+ public function testSingleOfMerchantProductResponse()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "content"
87
+ */
88
+ public function testPropertyContent()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "statusCode"
95
+ */
96
+ public function testPropertyStatusCode()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "success"
103
+ */
104
+ public function testPropertySuccess()
105
+ {
106
+
107
+ }
108
+
109
+ /**
110
+ * Test attribute "message"
111
+ */
112
+ public function testPropertyMessage()
113
+ {
114
+
115
+ }
116
+
117
+ /**
118
+ * Test attribute "validationErrors"
119
+ */
120
+ public function testPropertyValidationErrors()
121
+ {
122
+
123
+ }
124
+
125
+ }
lib/ChannelEngine/vendor/channelengine/api-client/test/Model/SingleOfProductCreationResultTest.php ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * SingleOfProductCreationResultTest
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Class
8
+ * @package ChannelEngine\ApiClient
9
+ * @author Swagger Codegen team
10
+ * @link https://github.com/swagger-api/swagger-codegen
11
+ */
12
+
13
+ /**
14
+ * ChannelEngine API V2
15
+ *
16
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
17
+ *
18
+ * OpenAPI spec version: v2
19
+ *
20
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ */
23
+
24
+ /**
25
+ * NOTE: This class is auto generated by the swagger code generator program.
26
+ * https://github.com/swagger-api/swagger-codegen
27
+ * Please update the test case below to test the model.
28
+ */
29
+
30
+ namespace ChannelEngine\ApiClient;
31
+
32
+ /**
33
+ * SingleOfProductCreationResultTest Class Doc Comment
34
+ *
35
+ * @category Class */
36
+ // * @description SingleOfProductCreationResult
37
+ /**
38
+ * @package ChannelEngine\ApiClient
39
+ * @author Swagger Codegen team
40
+ * @link https://github.com/swagger-api/swagger-codegen
41
+ */
42
+ class SingleOfProductCreationResultTest extends \PHPUnit_Framework_TestCase
43
+ {
44
+
45
+ /**
46
+ * Setup before running any test case
47
+ */
48
+ public static function setUpBeforeClass()
49
+ {
50
+
51
+ }
52
+
53
+ /**
54
+ * Setup before running each test case
55
+ */
56
+ public function setUp()
57
+ {
58
+
59
+ }
60
+
61
+ /**
62
+ * Clean up after running each test case
63
+ */
64
+ public function tearDown()
65
+ {
66
+
67
+ }
68
+
69
+ /**
70
+ * Clean up after running all test cases
71
+ */
72
+ public static function tearDownAfterClass()
73
+ {
74
+
75
+ }
76
+
77
+ /**
78
+ * Test "SingleOfProductCreationResult"
79
+ */
80
+ public function testSingleOfProductCreationResult()
81
+ {
82
+
83
+ }
84
+
85
+ /**
86
+ * Test attribute "content"
87
+ */
88
+ public function testPropertyContent()
89
+ {
90
+
91
+ }
92
+
93
+ /**
94
+ * Test attribute "statusCode"
95
+ */
96
+ public function testPropertyStatusCode()
97
+ {
98
+
99
+ }
100
+
101
+ /**
102
+ * Test attribute "success"
103
+ */
104
+ public function testPropertySuccess()
105
+ {
106
+
107
+ }
108
+
109
+ /**
110
+ * Test attribute "message"
111
+ */
112
+ public function testPropertyMessage()
113
+ {
114
+
115
+ }
116
+
117
+ /**
118
+ * Test attribute "validationErrors"
119
+ */
120
+ public function testPropertyValidationErrors()
121
+ {
122
+
123
+ }
124
+
125
+ }
lib/ChannelEngine/vendor/composer/ClassLoader.php ADDED
@@ -0,0 +1,445 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /*
4
+ * This file is part of Composer.
5
+ *
6
+ * (c) Nils Adermann <naderman@naderman.de>
7
+ * Jordi Boggiano <j.boggiano@seld.be>
8
+ *
9
+ * For the full copyright and license information, please view the LICENSE
10
+ * file that was distributed with this source code.
11
+ */
12
+
13
+ namespace Composer\Autoload;
14
+
15
+ /**
16
+ * ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
17
+ *
18
+ * $loader = new \Composer\Autoload\ClassLoader();
19
+ *
20
+ * // register classes with namespaces
21
+ * $loader->add('Symfony\Component', __DIR__.'/component');
22
+ * $loader->add('Symfony', __DIR__.'/framework');
23
+ *
24
+ * // activate the autoloader
25
+ * $loader->register();
26
+ *
27
+ * // to enable searching the include path (eg. for PEAR packages)
28
+ * $loader->setUseIncludePath(true);
29
+ *
30
+ * In this example, if you try to use a class in the Symfony\Component
31
+ * namespace or one of its children (Symfony\Component\Console for instance),
32
+ * the autoloader will first look for the class under the component/
33
+ * directory, and it will then fallback to the framework/ directory if not
34
+ * found before giving up.
35
+ *
36
+ * This class is loosely based on the Symfony UniversalClassLoader.
37
+ *
38
+ * @author Fabien Potencier <fabien@symfony.com>
39
+ * @author Jordi Boggiano <j.boggiano@seld.be>
40
+ * @see http://www.php-fig.org/psr/psr-0/
41
+ * @see http://www.php-fig.org/psr/psr-4/
42
+ */
43
+ class ClassLoader
44
+ {
45
+ // PSR-4
46
+ private $prefixLengthsPsr4 = array();
47
+ private $prefixDirsPsr4 = array();
48
+ private $fallbackDirsPsr4 = array();
49
+
50
+ // PSR-0
51
+ private $prefixesPsr0 = array();
52
+ private $fallbackDirsPsr0 = array();
53
+
54
+ private $useIncludePath = false;
55
+ private $classMap = array();
56
+ private $classMapAuthoritative = false;
57
+ private $missingClasses = array();
58
+ private $apcuPrefix;
59
+
60
+ public function getPrefixes()
61
+ {
62
+ if (!empty($this->prefixesPsr0)) {
63
+ return call_user_func_array('array_merge', $this->prefixesPsr0);
64
+ }
65
+
66
+ return array();
67
+ }
68
+
69
+ public function getPrefixesPsr4()
70
+ {
71
+ return $this->prefixDirsPsr4;
72
+ }
73
+
74
+ public function getFallbackDirs()
75
+ {
76
+ return $this->fallbackDirsPsr0;
77
+ }
78
+
79
+ public function getFallbackDirsPsr4()
80
+ {
81
+ return $this->fallbackDirsPsr4;
82
+ }
83
+
84
+ public function getClassMap()
85
+ {
86
+ return $this->classMap;
87
+ }
88
+
89
+ /**
90
+ * @param array $classMap Class to filename map
91
+ */
92
+ public function addClassMap(array $classMap)
93
+ {
94
+ if ($this->classMap) {
95
+ $this->classMap = array_merge($this->classMap, $classMap);
96
+ } else {
97
+ $this->classMap = $classMap;
98
+ }
99
+ }
100
+
101
+ /**
102
+ * Registers a set of PSR-0 directories for a given prefix, either
103
+ * appending or prepending to the ones previously set for this prefix.
104
+ *
105
+ * @param string $prefix The prefix
106
+ * @param array|string $paths The PSR-0 root directories
107
+ * @param bool $prepend Whether to prepend the directories
108
+ */
109
+ public function add($prefix, $paths, $prepend = false)
110
+ {
111
+ if (!$prefix) {
112
+ if ($prepend) {
113
+ $this->fallbackDirsPsr0 = array_merge(
114
+ (array) $paths,
115
+ $this->fallbackDirsPsr0
116
+ );
117
+ } else {
118
+ $this->fallbackDirsPsr0 = array_merge(
119
+ $this->fallbackDirsPsr0,
120
+ (array) $paths
121
+ );
122
+ }
123
+
124
+ return;
125
+ }
126
+
127
+ $first = $prefix[0];
128
+ if (!isset($this->prefixesPsr0[$first][$prefix])) {
129
+ $this->prefixesPsr0[$first][$prefix] = (array) $paths;
130
+
131
+ return;
132
+ }
133
+ if ($prepend) {
134
+ $this->prefixesPsr0[$first][$prefix] = array_merge(
135
+ (array) $paths,
136
+ $this->prefixesPsr0[$first][$prefix]
137
+ );
138
+ } else {
139
+ $this->prefixesPsr0[$first][$prefix] = array_merge(
140
+ $this->prefixesPsr0[$first][$prefix],
141
+ (array) $paths
142
+ );
143
+ }
144
+ }
145
+
146
+ /**
147
+ * Registers a set of PSR-4 directories for a given namespace, either
148
+ * appending or prepending to the ones previously set for this namespace.
149
+ *
150
+ * @param string $prefix The prefix/namespace, with trailing '\\'
151
+ * @param array|string $paths The PSR-4 base directories
152
+ * @param bool $prepend Whether to prepend the directories
153
+ *
154
+ * @throws \InvalidArgumentException
155
+ */
156
+ public function addPsr4($prefix, $paths, $prepend = false)
157
+ {
158
+ if (!$prefix) {
159
+ // Register directories for the root namespace.
160
+ if ($prepend) {
161
+ $this->fallbackDirsPsr4 = array_merge(
162
+ (array) $paths,
163
+ $this->fallbackDirsPsr4
164
+ );
165
+ } else {
166
+ $this->fallbackDirsPsr4 = array_merge(
167
+ $this->fallbackDirsPsr4,
168
+ (array) $paths
169
+ );
170
+ }
171
+ } elseif (!isset($this->prefixDirsPsr4[$prefix])) {
172
+ // Register directories for a new namespace.
173
+ $length = strlen($prefix);
174
+ if ('\\' !== $prefix[$length - 1]) {
175
+ throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
176
+ }
177
+ $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
178
+ $this->prefixDirsPsr4[$prefix] = (array) $paths;
179
+ } elseif ($prepend) {
180
+ // Prepend directories for an already registered namespace.
181
+ $this->prefixDirsPsr4[$prefix] = array_merge(
182
+ (array) $paths,
183
+ $this->prefixDirsPsr4[$prefix]
184
+ );
185
+ } else {
186
+ // Append directories for an already registered namespace.
187
+ $this->prefixDirsPsr4[$prefix] = array_merge(
188
+ $this->prefixDirsPsr4[$prefix],
189
+ (array) $paths
190
+ );
191
+ }
192
+ }
193
+
194
+ /**
195
+ * Registers a set of PSR-0 directories for a given prefix,
196
+ * replacing any others previously set for this prefix.
197
+ *
198
+ * @param string $prefix The prefix
199
+ * @param array|string $paths The PSR-0 base directories
200
+ */
201
+ public function set($prefix, $paths)
202
+ {
203
+ if (!$prefix) {
204
+ $this->fallbackDirsPsr0 = (array) $paths;
205
+ } else {
206
+ $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
207
+ }
208
+ }
209
+
210
+ /**
211
+ * Registers a set of PSR-4 directories for a given namespace,
212
+ * replacing any others previously set for this namespace.
213
+ *
214
+ * @param string $prefix The prefix/namespace, with trailing '\\'
215
+ * @param array|string $paths The PSR-4 base directories
216
+ *
217
+ * @throws \InvalidArgumentException
218
+ */
219
+ public function setPsr4($prefix, $paths)
220
+ {
221
+ if (!$prefix) {
222
+ $this->fallbackDirsPsr4 = (array) $paths;
223
+ } else {
224
+ $length = strlen($prefix);
225
+ if ('\\' !== $prefix[$length - 1]) {
226
+ throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
227
+ }
228
+ $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
229
+ $this->prefixDirsPsr4[$prefix] = (array) $paths;
230
+ }
231
+ }
232
+
233
+ /**
234
+ * Turns on searching the include path for class files.
235
+ *
236
+ * @param bool $useIncludePath
237
+ */
238
+ public function setUseIncludePath($useIncludePath)
239
+ {
240
+ $this->useIncludePath = $useIncludePath;
241
+ }
242
+
243
+ /**
244
+ * Can be used to check if the autoloader uses the include path to check
245
+ * for classes.
246
+ *
247
+ * @return bool
248
+ */
249
+ public function getUseIncludePath()
250
+ {
251
+ return $this->useIncludePath;
252
+ }
253
+
254
+ /**
255
+ * Turns off searching the prefix and fallback directories for classes
256
+ * that have not been registered with the class map.
257
+ *
258
+ * @param bool $classMapAuthoritative
259
+ */
260
+ public function setClassMapAuthoritative($classMapAuthoritative)
261
+ {
262
+ $this->classMapAuthoritative = $classMapAuthoritative;
263
+ }
264
+
265
+ /**
266
+ * Should class lookup fail if not found in the current class map?
267
+ *
268
+ * @return bool
269
+ */
270
+ public function isClassMapAuthoritative()
271
+ {
272
+ return $this->classMapAuthoritative;
273
+ }
274
+
275
+ /**
276
+ * APCu prefix to use to cache found/not-found classes, if the extension is enabled.
277
+ *
278
+ * @param string|null $apcuPrefix
279
+ */
280
+ public function setApcuPrefix($apcuPrefix)
281
+ {
282
+ $this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null;
283
+ }
284
+
285
+ /**
286
+ * The APCu prefix in use, or null if APCu caching is not enabled.
287
+ *
288
+ * @return string|null
289
+ */
290
+ public function getApcuPrefix()
291
+ {
292
+ return $this->apcuPrefix;
293
+ }
294
+
295
+ /**
296
+ * Registers this instance as an autoloader.
297
+ *
298
+ * @param bool $prepend Whether to prepend the autoloader or not
299
+ */
300
+ public function register($prepend = false)
301
+ {
302
+ spl_autoload_register(array($this, 'loadClass'), true, $prepend);
303
+ }
304
+
305
+ /**
306
+ * Unregisters this instance as an autoloader.
307
+ */
308
+ public function unregister()
309
+ {
310
+ spl_autoload_unregister(array($this, 'loadClass'));
311
+ }
312
+
313
+ /**
314
+ * Loads the given class or interface.
315
+ *
316
+ * @param string $class The name of the class
317
+ * @return bool|null True if loaded, null otherwise
318
+ */
319
+ public function loadClass($class)
320
+ {
321
+ if ($file = $this->findFile($class)) {
322
+ includeFile($file);
323
+
324
+ return true;
325
+ }
326
+ }
327
+
328
+ /**
329
+ * Finds the path to the file where the class is defined.
330
+ *
331
+ * @param string $class The name of the class
332
+ *
333
+ * @return string|false The path if found, false otherwise
334
+ */
335
+ public function findFile($class)
336
+ {
337
+ // class map lookup
338
+ if (isset($this->classMap[$class])) {
339
+ return $this->classMap[$class];
340
+ }
341
+ if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
342
+ return false;
343
+ }
344
+ if (null !== $this->apcuPrefix) {
345
+ $file = apcu_fetch($this->apcuPrefix.$class, $hit);
346
+ if ($hit) {
347
+ return $file;
348
+ }
349
+ }
350
+
351
+ $file = $this->findFileWithExtension($class, '.php');
352
+
353
+ // Search for Hack files if we are running on HHVM
354
+ if (false === $file && defined('HHVM_VERSION')) {
355
+ $file = $this->findFileWithExtension($class, '.hh');
356
+ }
357
+
358
+ if (null !== $this->apcuPrefix) {
359
+ apcu_add($this->apcuPrefix.$class, $file);
360
+ }
361
+
362
+ if (false === $file) {
363
+ // Remember that this class does not exist.
364
+ $this->missingClasses[$class] = true;
365
+ }
366
+
367
+ return $file;
368
+ }
369
+
370
+ private function findFileWithExtension($class, $ext)
371
+ {
372
+ // PSR-4 lookup
373
+ $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
374
+
375
+ $first = $class[0];
376
+ if (isset($this->prefixLengthsPsr4[$first])) {
377
+ $subPath = $class;
378
+ while (false !== $lastPos = strrpos($subPath, '\\')) {
379
+ $subPath = substr($subPath, 0, $lastPos);
380
+ $search = $subPath.'\\';
381
+ if (isset($this->prefixDirsPsr4[$search])) {
382
+ foreach ($this->prefixDirsPsr4[$search] as $dir) {
383
+ $length = $this->prefixLengthsPsr4[$first][$search];
384
+ if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) {
385
+ return $file;
386
+ }
387
+ }
388
+ }
389
+ }
390
+ }
391
+
392
+ // PSR-4 fallback dirs
393
+ foreach ($this->fallbackDirsPsr4 as $dir) {
394
+ if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
395
+ return $file;
396
+ }
397
+ }
398
+
399
+ // PSR-0 lookup
400
+ if (false !== $pos = strrpos($class, '\\')) {
401
+ // namespaced class name
402
+ $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1)
403
+ . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
404
+ } else {
405
+ // PEAR-like class name
406
+ $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
407
+ }
408
+
409
+ if (isset($this->prefixesPsr0[$first])) {
410
+ foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
411
+ if (0 === strpos($class, $prefix)) {
412
+ foreach ($dirs as $dir) {
413
+ if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
414
+ return $file;
415
+ }
416
+ }
417
+ }
418
+ }
419
+ }
420
+
421
+ // PSR-0 fallback dirs
422
+ foreach ($this->fallbackDirsPsr0 as $dir) {
423
+ if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
424
+ return $file;
425
+ }
426
+ }
427
+
428
+ // PSR-0 include paths.
429
+ if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
430
+ return $file;
431
+ }
432
+
433
+ return false;
434
+ }
435
+ }
436
+
437
+ /**
438
+ * Scope isolated include.
439
+ *
440
+ * Prevents access to $this/self from included files.
441
+ */
442
+ function includeFile($file)
443
+ {
444
+ include $file;
445
+ }
lib/ChannelEngine/vendor/composer/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Copyright (c) Nils Adermann, Jordi Boggiano
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is furnished
9
+ to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
+ THE SOFTWARE.
21
+
lib/ChannelEngine/vendor/composer/autoload_classmap.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // autoload_classmap.php @generated by Composer
4
+
5
+ $vendorDir = dirname(dirname(__FILE__));
6
+ $baseDir = dirname($vendorDir);
7
+
8
+ return array(
9
+ );
lib/ChannelEngine/vendor/composer/autoload_namespaces.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // autoload_namespaces.php @generated by Composer
4
+
5
+ $vendorDir = dirname(dirname(__FILE__));
6
+ $baseDir = dirname($vendorDir);
7
+
8
+ return array(
9
+ );
lib/ChannelEngine/vendor/composer/autoload_psr4.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // autoload_psr4.php @generated by Composer
4
+
5
+ $vendorDir = dirname(dirname(__FILE__));
6
+ $baseDir = dirname($vendorDir);
7
+
8
+ return array(
9
+ 'ChannelEngine\\ApiClient\\' => array($vendorDir . '/channelengine/api-client/lib'),
10
+ );
lib/ChannelEngine/vendor/composer/autoload_real.php ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // autoload_real.php @generated by Composer
4
+
5
+ class ComposerAutoloaderInit117267288e7b25b85c8b9c4bc7264ba6
6
+ {
7
+ private static $loader;
8
+
9
+ public static function loadClassLoader($class)
10
+ {
11
+ if ('Composer\Autoload\ClassLoader' === $class) {
12
+ require __DIR__ . '/ClassLoader.php';
13
+ }
14
+ }
15
+
16
+ public static function getLoader()
17
+ {
18
+ if (null !== self::$loader) {
19
+ return self::$loader;
20
+ }
21
+
22
+ spl_autoload_register(array('ComposerAutoloaderInit117267288e7b25b85c8b9c4bc7264ba6', 'loadClassLoader'), true, true);
23
+ self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit117267288e7b25b85c8b9c4bc7264ba6', 'loadClassLoader'));
25
+
26
+ $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
+ if ($useStaticLoader) {
28
+ require_once __DIR__ . '/autoload_static.php';
29
+
30
+ call_user_func(\Composer\Autoload\ComposerStaticInit117267288e7b25b85c8b9c4bc7264ba6::getInitializer($loader));
31
+ } else {
32
+ $map = require __DIR__ . '/autoload_namespaces.php';
33
+ foreach ($map as $namespace => $path) {
34
+ $loader->set($namespace, $path);
35
+ }
36
+
37
+ $map = require __DIR__ . '/autoload_psr4.php';
38
+ foreach ($map as $namespace => $path) {
39
+ $loader->setPsr4($namespace, $path);
40
+ }
41
+
42
+ $classMap = require __DIR__ . '/autoload_classmap.php';
43
+ if ($classMap) {
44
+ $loader->addClassMap($classMap);
45
+ }
46
+ }
47
+
48
+ $loader->register(true);
49
+
50
+ return $loader;
51
+ }
52
+ }
lib/ChannelEngine/vendor/composer/autoload_static.php ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // autoload_static.php @generated by Composer
4
+
5
+ namespace Composer\Autoload;
6
+
7
+ class ComposerStaticInit117267288e7b25b85c8b9c4bc7264ba6
8
+ {
9
+ public static $prefixLengthsPsr4 = array (
10
+ 'C' =>
11
+ array (
12
+ 'ChannelEngine\\ApiClient\\' => 24,
13
+ ),
14
+ );
15
+
16
+ public static $prefixDirsPsr4 = array (
17
+ 'ChannelEngine\\ApiClient\\' =>
18
+ array (
19
+ 0 => __DIR__ . '/..' . '/channelengine/api-client/lib',
20
+ ),
21
+ );
22
+
23
+ public static function getInitializer(ClassLoader $loader)
24
+ {
25
+ return \Closure::bind(function () use ($loader) {
26
+ $loader->prefixLengthsPsr4 = ComposerStaticInit117267288e7b25b85c8b9c4bc7264ba6::$prefixLengthsPsr4;
27
+ $loader->prefixDirsPsr4 = ComposerStaticInit117267288e7b25b85c8b9c4bc7264ba6::$prefixDirsPsr4;
28
+
29
+ }, null, ClassLoader::class);
30
+ }
31
+ }
lib/ChannelEngine/vendor/composer/installed.json ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "name": "channelengine/api-client",
4
+ "version": "dev-master",
5
+ "version_normalized": "9999999-dev",
6
+ "source": {
7
+ "type": "git",
8
+ "url": "https://github.com/channelengine/api-client-php.git",
9
+ "reference": "063843e3c7576a507f7de661bb105ac2a9e57767"
10
+ },
11
+ "dist": {
12
+ "type": "zip",
13
+ "url": "https://api.github.com/repos/channelengine/api-client-php/zipball/063843e3c7576a507f7de661bb105ac2a9e57767",
14
+ "reference": "063843e3c7576a507f7de661bb105ac2a9e57767",
15
+ "shasum": ""
16
+ },
17
+ "require": {
18
+ "ext-curl": "*",
19
+ "ext-json": "*",
20
+ "ext-mbstring": "*",
21
+ "php": ">=5.4"
22
+ },
23
+ "require-dev": {
24
+ "friendsofphp/php-cs-fixer": "~1.12",
25
+ "phpunit/phpunit": "~4.8",
26
+ "satooshi/php-coveralls": "~1.0",
27
+ "squizlabs/php_codesniffer": "~2.6"
28
+ },
29
+ "time": "2017-04-12T09:44:32+00:00",
30
+ "type": "library",
31
+ "installation-source": "source",
32
+ "autoload": {
33
+ "psr-4": {
34
+ "ChannelEngine\\ApiClient\\": "lib/"
35
+ }
36
+ },
37
+ "notification-url": "https://packagist.org/downloads/",
38
+ "license": [
39
+ "proprietary"
40
+ ],
41
+ "authors": [
42
+ {
43
+ "name": "Swagger and contributors",
44
+ "homepage": "https://github.com/swagger-api/swagger-codegen"
45
+ }
46
+ ],
47
+ "homepage": "http://swagger.io",
48
+ "keywords": [
49
+ "api",
50
+ "php",
51
+ "sdk",
52
+ "swagger"
53
+ ]
54
+ }
55
+ ]
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Tritac_ChannelEngine</name>
4
- <version>4.4.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
@@ -20,11 +20,11 @@ Features of ChannelEngine:&#xD;
20
  * Receive orders from marketplaces using one single connection.&#xD;
21
  * Using this magento extension you can connect to ChannelEngine instantly without any further configuration.&#xD;
22
  * For more information, visit: ChannelEngine.com</description>
23
- <notes>* Minor bugfixes</notes>
24
  <authors><author><name>Christiaan de Ridder</name><user>christiaander</user><email>support@channelengine.com</email></author></authors>
25
- <date>2017-05-16</date>
26
- <time>12:57:58</time>
27
- <contents><target name="mageetc"><dir name="modules"><file name="Tritac_ChannelEngine.xml" hash="f6b4a6d9af9aa3bcd3019fd566d6a67c"/></dir></target><target name="magecommunity"><dir name="Tritac"><dir name="ChannelEngine"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Feed.php" hash="004083344207a444e00ebaf4a86835b9"/></dir></dir></dir><file name="Head.php" hash="74004d8749f6267c4ce024b47970af23"/></dir><dir name="Helper"><file name="Data.php" hash="e0a229a19d3ce89a12b0ac1e62480df7"/></dir><dir name="Model"><dir name="Carrier"><file name="Channelengine.php" hash="b6e04e43096e934d57e8e8745dd67c75"/></dir><file name="Loader.php" hash="b8207f87e0e26c0b62b433ad44e85c58"/><file name="Observer.php" hash="f9a40c7bc4f81ae920de64ea34cc7938"/><file name="Order.php" hash="7b5d59152a0341cf5bff5b7adf6c76b7"/><dir name="Payment"><dir name="Method"><file name="Channelengine.php" hash="b938300284d504de42dd04777c45c75b"/></dir></dir><dir name="Resource"><dir name="Order"><file name="Collection.php" hash="fedd812bdf0090a36ce7bdd23e7876f5"/></dir><file name="Order.php" hash="cab73cceec877cda4daadc5c66f356fe"/><file name="Setup.php" hash="ed5ca35f61e6158a8b617630ae84c5b8"/><dir name="Shipment"><file name="Collection.php" hash="56e7c3bee221edefdcb587801bd36cc2"/></dir><file name="Shipment.php" hash="e09302f0ff110b94fc34031ee9255caa"/></dir><file name="Shipment.php" hash="5aa413e4e1ca441456d0d28ed541d2fc"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Gtin.php" hash="d2c18169dfaf87a01d9d7357329f1c78"/><file name="Shipping.php" hash="00d71eaebba3014fe9d17ee75f7cf0a9"/></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="GenerateController.php" hash="dcbe89c407a00b53f4ea95691090ba23"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="2a9dc6ac1738bebb470c1aa699478467"/><file name="config.xml" hash="92deca0bc9e84f735433bacd6fc91757"/><file name="system.xml" hash="24023c392556155e77b6ab1cf02e84a6"/></dir><dir name="sql"><dir name="channelengine_setup"><file name="mysql4-install-1.0.0.php" hash="6d04678d7750ff3de5a9eb697c13d52f"/><file name="mysql4-upgrade-2.6.0-2.7.0.php" hash="1f8c2f9d0239c9fbf31d3bfdd1c6cc46"/></dir></dir></dir></dir></target><target name="magelib"><dir name="ChannelEngine"><file name="composer.json" hash="0409500a61e93de939a4dbe6a287db9b"/><file name="composer.lock" hash="6564646e142a50bab18a5d2c0ec6438a"/><dir name="vendor"><file name="autoload.php" hash="a318487cebe1e11bb07ff9ca3859f466"/><dir name="channelengine"><dir name="api-client"><file name="README.md" hash="bd216e504ca4e5db1e0b44031b52d279"/><file name="api-client.sublime-project" hash="3b415c0c18b0c5aba978e919389acb31"/><file name="autoload.php" hash="705933da41eaf10d3874a1843118558c"/><file name="composer.json" hash="22f8d07476d06c404c059ff9da66f31f"/><dir name="docs"><dir name="Api"><file name="BackOrderApi.md" hash="502a8dd3880ae59abd08d1d0e5a1abeb"/><file name="CancellationApi.md" hash="603fc4f25887e55a97f2aec34109d8a3"/><file name="ClientApi.md" hash="1569a1fd53bde30b8b04bebec5c12756"/><file name="OrderApi.md" hash="2d5adef1989c78c406bd97d5ffec3744"/><file name="ProductApi.md" hash="dee883c5ab049bab98c25b26ad615e88"/><file name="ReturnApi.md" hash="4994513857e57786beb793523769a225"/><file name="ShipmentApi.md" hash="c8cb49e2b8bbc728106acc6f3b00c591"/></dir><dir name="Model"><file name="ApiResponse.md" hash="c2c27b0cde81c5b1fe3e7eb16fc0f491"/><file name="BackOrder.md" hash="84a6006f4447ec2f3bc38e1f4f6aa032"/><file name="BackOrderLine.md" hash="95579a0724930de6e28616a0ef24fb44"/><file name="ChannelCancellationLineResponse.md" hash="60cd567274761c97d498b96a419b3d90"/><file name="ChannelCancellationResponse.md" hash="d26af09dc0e5896af8255e6fa46f6398"/><file name="ChannelOfferResponse.md" hash="665ca9f581db6f876240e3afca489b43"/><file name="ChannelOrderLineRequest.md" hash="63e6f8749551c7e6e35654b7d757d32f"/><file name="ChannelOrderRequest.md" hash="d153101ffafe1f007aaa5ae1bb2b6ef8"/><file name="ChannelProcessedChangesRequest.md" hash="4a340f2bf061c99c2f0dc9ff08cf7eff"/><file name="ChannelProductChangesResponse.md" hash="1d60c94776a102ce70adfe423053662c"/><file name="ChannelProductResponse.md" hash="ab03738a7d36ca757d4d760f494f34eb"/><file name="ChannelReferencesRequest.md" hash="0093f0fb9f984d1b5487a21e7f228881"/><file name="ChannelReturnLineRequest.md" hash="8772b0e3d83aa4d9b9a5096d4e7d3a71"/><file name="ChannelReturnLineResponse.md" hash="3776c0d0d4c55b771f56cf7d54dfcbd6"/><file name="ChannelReturnRequest.md" hash="e3f7f0bac18928f306c7a6250a33559c"/><file name="ChannelReturnResponse.md" hash="fce03223b6d72522aaebbc571710c184"/><file name="ChannelShipmentLineResponse.md" hash="7af4b4969f67785856935ea2157ef777"/><file name="ChannelShipmentResponse.md" hash="d08e3ffaa74bb3cfacc302ab4ecc6647"/><file name="CollectionOfBackOrder.md" hash="a598d6feabc24120bb32d27039257815"/><file name="CollectionOfChannelCancellationResponse.md" hash="17d808e9a597a7b577f06dda3826b209"/><file name="CollectionOfChannelOfferResponse.md" hash="960220f338c97e7f7f8d22d6a1dda078"/><file name="CollectionOfChannelReturnResponse.md" hash="5aa569265ef1bffe72598717b54eb744"/><file name="CollectionOfChannelShipmentResponse.md" hash="921c98e16402963a54914a49b2ae4315"/><file name="CollectionOfMerchantOrderResponse.md" hash="2b485b16c88d9b572a920832cee2d640"/><file name="CollectionOfMerchantReturnResponse.md" hash="28e166e6c4334999d01e72ed45b9f1cd"/><file name="EntitiesAddressModels.md" hash="a39c3572451706980ef8ca89150839d1"/><file name="ExtraDataItem.md" hash="0de36fae230fc29f94271b1d4cfda0be"/><file name="MerchantCancellationLineRequest.md" hash="7d34f8383485ab49aeefda8bfb7a5549"/><file name="MerchantCancellationRequest.md" hash="18b66e8fb6bac478187c47f9d1b9f33a"/><file name="MerchantOrderLineResponse.md" hash="2c9798e602c11355d27673d6dd5c595f"/><file name="MerchantOrderResponse.md" hash="aa294617b05c2ff8e1b8827e12dfbe58"/><file name="MerchantProductRequest.md" hash="b716f6455a82ac7edd34a805944e45be"/><file name="MerchantProductResponse.md" hash="1feac7443fa488fcf3049dd9fae9f9f3"/><file name="MerchantReturnLineRequest.md" hash="00ffe9d7430d1f8906664335f31dab47"/><file name="MerchantReturnLineResponse.md" hash="9d93c86dfc723c70013b38194821a4c0"/><file name="MerchantReturnRequest.md" hash="c6f8feb89091a6934edda9afc303055d"/><file name="MerchantReturnResponse.md" hash="68556dd65cf825c8bbfc9c4258732890"/><file name="MerchantShipmentLineRequest.md" hash="c64bb2841e6220eebec76af08f6521b4"/><file name="MerchantShipmentRequest.md" hash="a6375c9cd3353a9e1f58ecd13bc9db46"/><file name="MerchantShipmentTrackingRequest.md" hash="31de02f6fc295de48495954e0661cedf"/><file name="OrderAcknowledgement.md" hash="4efbc52fac5d1096411b71dbf9eadfc8"/><file name="ProductCreationResult.md" hash="f7405b1242dac1e7691fea916126a762"/><file name="ProductMessage.md" hash="f0183ec14571d04083c97184fd0d0cb0"/><file name="SingleOfBackOrder.md" hash="40d153f95799d834702713f67f51f2dd"/><file name="SingleOfChannelProductChangesResponse.md" hash="66b59de7b2664656f0dbe41aaf236bc2"/><file name="SingleOfMerchantProductResponse.md" hash="0bb93f7335afe61d1f3085147eb2c62f"/><file name="SingleOfProductCreationResult.md" hash="b716e0f72131560a100ea752486b6fb0"/></dir></dir><file name="git_push.sh" hash="cb43424bd3b91aad6248982e6d022abf"/><dir name="lib"><dir name="Api"><file name="BackOrderApi.php" hash="5e81ec4edf4158643bec19b4bc1626f2"/><file name="CancellationApi.php" hash="d8dd5fc664e97e48a2b4d8675398075f"/><file name="ClientApi.php" hash="27b7e36e2e2a58a48e23b9b3d60718a0"/><file name="OrderApi.php" hash="878b6aef80ca14ae6e78e22e3e23d272"/><file name="ProductApi.php" hash="e2fda0f0bd93d83a8fd3341248951370"/><file name="ReturnApi.php" hash="bab74b31173552b26ddded0ab634f791"/><file name="ShipmentApi.php" hash="c959703b9f4b0625857909305f2bce9c"/></dir><file name="ApiClient.php" hash="842d8cc43ed577f9c6309325274cae8b"/><file name="ApiException.php" hash="35e42f31a447db6fa7829f3921bb71f3"/><file name="Configuration.php" hash="31b0a02797b7a7be75aee5882e4a71a4"/><dir name="Model"><file name="ApiResponse.php" hash="0a3b05df633ae7f3ab07a11a125fca9c"/><file name="BackOrder.php" hash="8381e382e6cb0003122fe0cf6724ffc6"/><file name="BackOrderLine.php" hash="d7bce03323b7fc81a247e9d2d1013a3b"/><file name="ChannelCancellationLineResponse.php" hash="bca9fdefe0c204ee9ef232f963b3de47"/><file name="ChannelCancellationResponse.php" hash="e67a3c71c1f2b233cc76d6a105cb3e3e"/><file name="ChannelOfferResponse.php" hash="c0dcfdd5e2176537cf8c65786806ab78"/><file name="ChannelOrderLineRequest.php" hash="e1731a835a52ce636c78782d87dc8ff6"/><file name="ChannelOrderRequest.php" hash="f76b555f79c9ef7bc891fb1e8c272702"/><file name="ChannelProcessedChangesRequest.php" hash="811154776d351b4a4b4cfdd8e52dabea"/><file name="ChannelProductChangesResponse.php" hash="4005bddd62fb2f3fa8c5cbd18915c769"/><file name="ChannelProductResponse.php" hash="5c56cb7c3e7b066a416e492cea0ae5a3"/><file name="ChannelReferencesRequest.php" hash="8475df642ea577070897525ec531df5a"/><file name="ChannelReturnLineRequest.php" hash="efb6cafb95306f9a1daa174cdced04da"/><file name="ChannelReturnLineResponse.php" hash="cb278e5cb10e4f8e96319fdfdcd011e5"/><file name="ChannelReturnRequest.php" hash="ec2e7c79e2f64c88ed3022d5b777132a"/><file name="ChannelReturnResponse.php" hash="d4476c0c9c9254a7e61efaf733a99633"/><file name="ChannelShipmentLineResponse.php" hash="05c3bf0d034f2ec710d5c31d787995ae"/><file name="ChannelShipmentResponse.php" hash="018ba0efa56760cc898db241c4fb1960"/><file name="CollectionOfBackOrder.php" hash="ceb2f8cce017d574f95c31fd710925db"/><file name="CollectionOfChannelCancellationResponse.php" hash="d16d711ec15156e378ef1d47cb7c2035"/><file name="CollectionOfChannelOfferResponse.php" hash="e2aa6951e00d415a0e1d01fb5039c571"/><file name="CollectionOfChannelReturnResponse.php" hash="82fbfd1ab05901cd5f9ed0378315ff21"/><file name="CollectionOfChannelShipmentResponse.php" hash="6887ab42ff36160caeea7fe3e7a81a3f"/><file name="CollectionOfMerchantOrderResponse.php" hash="25c69cc1c18d5d378a66b4b6510c90ad"/><file name="CollectionOfMerchantReturnResponse.php" hash="3cb0aae8dc98658933abe39596112238"/><file name="EntitiesAddressModels.php" hash="0e77da388045bcd741491f0e808c5590"/><file name="ExtraDataItem.php" hash="fd4591749f2db73f7419fa60eb61ece1"/><file name="MerchantCancellationLineRequest.php" hash="fc592a1326f5d757518f136868e79abe"/><file name="MerchantCancellationRequest.php" hash="aa91c8397263205bd2ea352487a4789b"/><file name="MerchantOrderLineResponse.php" hash="3a03961b88af656a8d445fd6ad362c61"/><file name="MerchantOrderResponse.php" hash="204e6f13d44bc7c39359db3dfbc259e8"/><file name="MerchantProductRequest.php" hash="d30cac5bde0749267b31122027b5faf3"/><file name="MerchantProductResponse.php" hash="59637638ced5d01950f74e129f17118f"/><file name="MerchantReturnLineRequest.php" hash="febc3d102920720bab159b3cc7b096f1"/><file name="MerchantReturnLineResponse.php" hash="1c684535ba88a7667920b3d7e75e3864"/><file name="MerchantReturnRequest.php" hash="50ee599cf61519fed768072a87c4dd8c"/><file name="MerchantReturnResponse.php" hash="01b709acf280d9c068e6d201e09a5222"/><file name="MerchantShipmentLineRequest.php" hash="5304190e3a68136f3c0aec3de99e2424"/><file name="MerchantShipmentRequest.php" hash="541886892421fb9b2d358578779ca849"/><file name="MerchantShipmentTrackingRequest.php" hash="037a86688447c3fb348221e2ce587265"/><file name="OrderAcknowledgement.php" hash="dda1ada83257f1ee8aecae11c0fa3e32"/><file name="ProductCreationResult.php" hash="889dc202026af5080801077a48361c64"/><file name="ProductMessage.php" hash="673e069e1fc5e6ad9f05825f57922d25"/><file name="SingleOfBackOrder.php" hash="f2c5ea0cb45bba633e37b3f7fdd6b5ca"/><file name="SingleOfChannelProductChangesResponse.php" hash="9bd19387159ffbc97e846c37f2414f43"/><file name="SingleOfMerchantProductResponse.php" hash="d729298d1ebc24064de1e157db0e5357"/><file name="SingleOfProductCreationResult.php" hash="dbd32037409ae8a9a6bc70e8bb394ef9"/></dir><file name="ObjectSerializer.php" hash="e6842da289d7dfa60c4ad2cd427f0ac5"/></dir><file name="phpunit.xml.dist" hash="82cdb47416d5294f68042ad4ef3bbdfb"/><dir name="test"><dir name="Api"><file name="BackOrderApiTest.php" hash="38eadf8e5bd8d5b64e751cd995a5d14c"/><file name="CancellationApiTest.php" hash="2e708e7da73249459a5f2135bf7a6493"/><file name="ClientApiTest.php" hash="9977a02ce29e75244a6cc0f77d7b2f2f"/><file name="OrderApiTest.php" hash="a5171f8ba78f55d71b500f0dd3ffd339"/><file name="ProductApiTest.php" hash="8e2c07929122cae5f2bca51e9b3f7a53"/><file name="ReturnApiTest.php" hash="6f41f9c096a319c8ffdd1512ea6eeeb3"/><file name="ShipmentApiTest.php" hash="69ce282bb21987efcaf9ef58a4e3c929"/></dir><dir name="Model"><file name="ApiResponseTest.php" hash="47ad10b81c24c046d26a721593743549"/><file name="BackOrderLineTest.php" hash="386d64b5b048dba890fdf527a9384bdc"/><file name="BackOrderTest.php" hash="20db2c9fc8bc7b2ee95b23217ec90324"/><file name="ChannelCancellationLineResponseTest.php" hash="c3911b9a14fa6e6e224e1fef0d14ebe3"/><file name="ChannelCancellationResponseTest.php" hash="5ac4db00dec924f7991e30f7cd851a85"/><file name="ChannelOfferResponseTest.php" hash="864f75a5ec3d1164a494fa7611a99d74"/><file name="ChannelOrderLineRequestTest.php" hash="1bc6bdc75b0ca3f7fc81600b00adce9e"/><file name="ChannelOrderRequestTest.php" hash="28e9fcf7f92df24cd4eade51e924c418"/><file name="ChannelProcessedChangesRequestTest.php" hash="2e31c7235b56f4c78ca961692740b2a4"/><file name="ChannelProductChangesResponseTest.php" hash="23f00d9199f2cc208efc55ecdf9365c6"/><file name="ChannelProductResponseTest.php" hash="a28341ed1fef5facb5ff2f2c30a1fe6f"/><file name="ChannelReferencesRequestTest.php" hash="cde66fa66d8ba5d6d2d9179e37e6d9f2"/><file name="ChannelReturnLineRequestTest.php" hash="ed6494db84eedab689da22870e0ad909"/><file name="ChannelReturnLineResponseTest.php" hash="e914765391866a51659fd4022381f760"/><file name="ChannelReturnRequestTest.php" hash="96080f38514039e9f5bd97c49575bd8c"/><file name="ChannelReturnResponseTest.php" hash="02fbc0c9be981e10fa825d40ce77b1cd"/><file name="ChannelShipmentLineResponseTest.php" hash="4b2876b2f6cc0466a1575348a04aeab6"/><file name="ChannelShipmentResponseTest.php" hash="d8fb3ed6643a2da9139873b9f40e1ded"/><file name="CollectionOfBackOrderTest.php" hash="5b213ba119b95cc1b1cd47f38c7ae4ae"/><file name="CollectionOfChannelCancellationResponseTest.php" hash="d1aafe9dfddb92125a7613194ba04d1d"/><file name="CollectionOfChannelOfferResponseTest.php" hash="178d3c84aacd4f3ad3edc84a17bdbf02"/><file name="CollectionOfChannelReturnResponseTest.php" hash="6d53549630c3337a31bb1ecb87e61555"/><file name="CollectionOfChannelShipmentResponseTest.php" hash="a934c9bf97695687f3a2d5116fedae58"/><file name="CollectionOfMerchantOrderResponseTest.php" hash="7428c9b0708ca263a036ff90a9278e08"/><file name="CollectionOfMerchantReturnResponseTest.php" hash="9215b1ef54894b1d18c74b165521962d"/><file name="EntitiesAddressModelsTest.php" hash="7ce550b6e3c4eba3a17e8a1c026ecb72"/><file name="ExtraDataItemTest.php" hash="caa7c4e33ad26050ede14df690d94ce2"/><file name="MerchantCancellationLineRequestTest.php" hash="f06c4131e5472a835c82c0f46d035c6d"/><file name="MerchantCancellationRequestTest.php" hash="f8d8cc7821aa1ecf842935656019a914"/><file name="MerchantOrderLineResponseTest.php" hash="b22d878593d9286a96733cf7d19a19c5"/><file name="MerchantOrderResponseTest.php" hash="0aab3e4a85d092aa9dd5ae353a61c027"/><file name="MerchantProductRequestTest.php" hash="e9f310562cca319e8e25220dcda2fd5c"/><file name="MerchantProductResponseTest.php" hash="5ca76d16364c27f5a5dd7f0ee41ac9b4"/><file name="MerchantReturnLineRequestTest.php" hash="a5c136a8524288aca4ac9cb356dcdc2a"/><file name="MerchantReturnLineResponseTest.php" hash="3d5dbd7817316a7d05c0472d7abf5017"/><file name="MerchantReturnRequestTest.php" hash="aab02e41fa8a30c80323758cf823e70e"/><file name="MerchantReturnResponseTest.php" hash="216d32bab151c70cc757dd3604548980"/><file name="MerchantShipmentLineRequestTest.php" hash="fb14a111aa135c9c2fbf8426fe4ec209"/><file name="MerchantShipmentRequestTest.php" hash="9b654c3525eb68df96dd267fc90575f2"/><file name="MerchantShipmentTrackingRequestTest.php" hash="a2e71dd4870faba873059a1f00ef6a3a"/><file name="OrderAcknowledgementTest.php" hash="ec258b97dcdea4cf0f32abbe4dca3846"/><file name="ProductCreationResultTest.php" hash="925f49219cb866042d0f5fa3b3bbceb2"/><file name="ProductMessageTest.php" hash="70c0ef075db83195b5767fd21cb0e1a9"/><file name="SingleOfBackOrderTest.php" hash="56ec1bd486a42d7bee62d5aac02dccd2"/><file name="SingleOfChannelProductChangesResponseTest.php" hash="6687c279b79298dc67490387637d19fb"/><file name="SingleOfMerchantProductResponseTest.php" hash="856d0ed5e85f30d263dc3f4b5a59e58a"/><file name="SingleOfProductCreationResultTest.php" hash="02720936c9cd7429c65ae0ebe6a57ecd"/></dir></dir><dir name=".git"><file name="FETCH_HEAD" hash="50aedfd6cdb44301be798508ac5acef2"/><file name="HEAD" hash="4cf2d64e44205fe628ddd534e1151b58"/><file name="ORIG_HEAD" hash="06a9e2afbf9b997b720e67b1a94c4f11"/><file name="config" hash="5bccd44cac74d41f008aae4b2c1165ac"/><file name="description" hash="a0a7c3fff21f2aea3cfa1d0316dd816c"/><dir name="hooks"><file name="applypatch-msg.sample" hash="ce562e08d8098926a3862fc6e7905199"/><file name="commit-msg.sample" hash="579a3c1e12a1e74a98169175fb913012"/><file name="post-update.sample" hash="2b7ea5cee3c49ff53d41e00785eb974c"/><file name="pre-applypatch.sample" hash="054f9ffb8bfe04a599751cc757226dda"/><file name="pre-commit.sample" hash="01b1688f97f94776baae85d77b06048b"/><file name="pre-push.sample" hash="3c5989301dd4b949dfa1f43738a22819"/><file name="pre-rebase.sample" hash="81005745454846bb79cc3c7c0c57658d"/><file name="prepare-commit-msg.sample" hash="7dfe15854212a30f346da5255c1d794b"/><file name="update.sample" hash="517f14b9239689dff8bda3022ebd9004"/></dir><file name="index" hash="3c7c7cf0ed3af3811696234c1e73cea2"/><dir name="info"><file name="exclude" hash="036208b4a1ab4a235d75c181e685e5a3"/><file name="refs" hash="08b5e1faac123d197d9c12a48005fd90"/></dir><dir name="logs"><file name="HEAD" hash="8c545eccfdc179b4384ba6676e4c62a3"/><dir name="refs"><dir name="heads"><file name="master" hash="71bb8c4bd4476f08ad74e986ea956a96"/></dir><dir name="remotes"><dir name="composer"><file name="api-v1" hash="bee5d577b35a6735030e7a1b5b4f1d8e"/><file name="api-v2" hash="f8d9397b6cbadde9173c1395951f6f6d"/><file name="master" hash="f5a13f8ffb1879af9b0f976df6514769"/></dir><dir name="origin"><file name="HEAD" hash="71bb8c4bd4476f08ad74e986ea956a96"/></dir></dir></dir></dir><dir name="objects"><dir name="info"><file name="packs" hash="752af241acaffff3a9471b72351cedd3"/></dir><dir name="pack"><file name="pack-e47c47649f897a00201c5eef09d8762776889f22.idx" hash="f5de3502fe2a901601f1ceb67f836e41"/><file name="pack-e47c47649f897a00201c5eef09d8762776889f22.pack" hash="ae0f7a609579239e92567c0574aa8026"/></dir></dir><file name="packed-refs" hash="7b18f74236c4f08e819dcdbf4b4f7723"/><dir name="refs"><dir name="heads"><file name="master" hash="06a9e2afbf9b997b720e67b1a94c4f11"/></dir><dir name="remotes"><dir name="composer"><file name="api-v1" hash="b754879e8b12404e41d9e4f0b41a2929"/><file name="api-v2" hash="a7071c5c96db32edc80867805c2304ae"/><file name="master" hash="06a9e2afbf9b997b720e67b1a94c4f11"/></dir><dir name="origin"><file name="HEAD" hash="73a00957034783b7b5c8294c54cd3e12"/></dir></dir></dir></dir><file name=".gitignore" hash="a72c432223a956b74e9bd5ea5dd8b8c3"/><file name=".php_cs" hash="a921a6cf564b1304d4ff8721ab46d435"/><file name=".travis.yml" hash="8c1fae058e6e8d1f0d2fd39dc488a850"/></dir></dir><dir name="composer"><file name="ClassLoader.php" hash="292c079dbe63ba06bfbf37fd99fe4bf9"/><file name="LICENSE" hash="955d5fe58c231244f6b49000f383b5e2"/><file name="autoload_classmap.php" hash="8645d3a4e3ad87e7cf4d88a46717aab4"/><file name="autoload_namespaces.php" hash="35e12c7d76c4a81633bcf547c0e229a9"/><file name="autoload_psr4.php" hash="34e17c04104094e954858e2e564ff4b0"/><file name="autoload_real.php" hash="692ff591b75b6853c6661061389055a9"/><file name="autoload_static.php" hash="e4628c11a0745f787a3e9de5a5de4ad7"/><file name="installed.json" hash="cd50a8b83c078b04628a5aa85e5551b5"/></dir></dir><file name=".gitignore" hash="ff52e986b98e9119818fbe49c33b967f"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="channelengine.xml" hash="ae6a00b46a84a610964743034eb72081"/></dir><dir name="template"><dir name="channelengine"><dir name="checkout"><file name="success.phtml" hash="dbcb8298cd52a3c44560ae911349a3c7"/></dir><file name="head.phtml" hash="a7a7ab566adc1dc7d2645bf1cdfac0d4"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="channelengine"><dir name="system"><dir name="config"><dir name="feed"><file name="generate_button.phtml" hash="ed8c5f4a81f19c7ceaacd1b1c004772e"/></dir></dir></dir></dir></dir></dir></dir></dir></target></contents>
28
  <compatible/>
29
  <dependencies><required><php><min>5.4.0</min><max>7.1.3</max></php><extension><name>curl</name><min/><max/></extension><extension><name>mbstring</name><min/><max/></extension><extension><name>json</name><min/><max/></extension></required></dependencies>
30
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Tritac_ChannelEngine</name>
4
+ <version>4.6.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
20
  * Receive orders from marketplaces using one single connection.&#xD;
21
  * Using this magento extension you can connect to ChannelEngine instantly without any further configuration.&#xD;
22
  * For more information, visit: ChannelEngine.com</description>
23
+ <notes>* Add diagnostic information</notes>
24
  <authors><author><name>Christiaan de Ridder</name><user>christiaander</user><email>support@channelengine.com</email></author></authors>
25
+ <date>2017-06-22</date>
26
+ <time>11:04:56</time>
27
+ <contents><target name="mageetc"><dir name="modules"><file name="Tritac_ChannelEngine.xml" hash="f6b4a6d9af9aa3bcd3019fd566d6a67c"/></dir></target><target name="magecommunity"><dir name="Tritac"><dir name="ChannelEngine"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><file name="Button.php" hash="1a665843a90bca8058a5aa55105f6caa"/><file name="Feed.php" hash="621f24ef43bc16c33f2c590fc6c3aca6"/><file name="Link.php" hash="f25fef9d460c12ef5e5f580516fcedb1"/><file name="Version.php" hash="d68dce8484984be51fac14e7f8a4d9cb"/></dir></dir></dir></dir><file name="Head.php" hash="98f6d4e3caf6f2d6b2ad001fe274cee7"/></dir><dir name="Helper"><file name="Data.php" hash="7053bcccd8e419e5bf736b061515259c"/></dir><dir name="Model"><dir name="Carrier"><file name="Channelengine.php" hash="b6e04e43096e934d57e8e8745dd67c75"/></dir><file name="Loader.php" hash="b8207f87e0e26c0b62b433ad44e85c58"/><file name="Observer.php" hash="34e27a045d7b9c4f3a4e03e37c15b92c"/><file name="Order.php" hash="7b5d59152a0341cf5bff5b7adf6c76b7"/><dir name="Payment"><dir name="Method"><file name="Channelengine.php" hash="b938300284d504de42dd04777c45c75b"/></dir></dir><dir name="Resource"><dir name="Order"><file name="Collection.php" hash="fedd812bdf0090a36ce7bdd23e7876f5"/></dir><file name="Order.php" hash="cab73cceec877cda4daadc5c66f356fe"/><file name="Setup.php" hash="ed5ca35f61e6158a8b617630ae84c5b8"/><dir name="Shipment"><file name="Collection.php" hash="56e7c3bee221edefdcb587801bd36cc2"/></dir><file name="Shipment.php" hash="e09302f0ff110b94fc34031ee9255caa"/></dir><file name="Shipment.php" hash="5aa413e4e1ca441456d0d28ed541d2fc"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Gtin.php" hash="d2c18169dfaf87a01d9d7357329f1c78"/><file name="Shipping.php" hash="00d71eaebba3014fe9d17ee75f7cf0a9"/></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="GenerateController.php" hash="546bf4a6eac28e2c23838dbb4a2791cb"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="2a9dc6ac1738bebb470c1aa699478467"/><file name="config.xml" hash="e8d1bc06fe36a0f7fe62e7995d9cbaee"/><file name="system.xml" hash="bc0210d6c9531e933995d0b09c01bd0f"/></dir><dir name="sql"><dir name="channelengine_setup"><file name="mysql4-install-1.0.0.php" hash="6d04678d7750ff3de5a9eb697c13d52f"/><file name="mysql4-upgrade-2.6.0-2.7.0.php" hash="1f8c2f9d0239c9fbf31d3bfdd1c6cc46"/></dir></dir></dir></dir></target><target name="magelib"><dir name="ChannelEngine"><file name="composer.json" hash="0409500a61e93de939a4dbe6a287db9b"/><file name="composer.lock" hash="6564646e142a50bab18a5d2c0ec6438a"/><dir name="vendor"><file name="autoload.php" hash="a318487cebe1e11bb07ff9ca3859f466"/><dir name="channelengine"><dir name="api-client"><file name="README.md" hash="bd216e504ca4e5db1e0b44031b52d279"/><file name="api-client.sublime-project" hash="3b415c0c18b0c5aba978e919389acb31"/><file name="autoload.php" hash="705933da41eaf10d3874a1843118558c"/><file name="composer.json" hash="22f8d07476d06c404c059ff9da66f31f"/><dir name="docs"><dir name="Api"><file name="BackOrderApi.md" hash="502a8dd3880ae59abd08d1d0e5a1abeb"/><file name="CancellationApi.md" hash="603fc4f25887e55a97f2aec34109d8a3"/><file name="ClientApi.md" hash="1569a1fd53bde30b8b04bebec5c12756"/><file name="OrderApi.md" hash="2d5adef1989c78c406bd97d5ffec3744"/><file name="ProductApi.md" hash="dee883c5ab049bab98c25b26ad615e88"/><file name="ReturnApi.md" hash="4994513857e57786beb793523769a225"/><file name="ShipmentApi.md" hash="c8cb49e2b8bbc728106acc6f3b00c591"/></dir><dir name="Model"><file name="ApiResponse.md" hash="c2c27b0cde81c5b1fe3e7eb16fc0f491"/><file name="BackOrder.md" hash="84a6006f4447ec2f3bc38e1f4f6aa032"/><file name="BackOrderLine.md" hash="95579a0724930de6e28616a0ef24fb44"/><file name="ChannelCancellationLineResponse.md" hash="60cd567274761c97d498b96a419b3d90"/><file name="ChannelCancellationResponse.md" hash="d26af09dc0e5896af8255e6fa46f6398"/><file name="ChannelOfferResponse.md" hash="665ca9f581db6f876240e3afca489b43"/><file name="ChannelOrderLineRequest.md" hash="63e6f8749551c7e6e35654b7d757d32f"/><file name="ChannelOrderRequest.md" hash="d153101ffafe1f007aaa5ae1bb2b6ef8"/><file name="ChannelProcessedChangesRequest.md" hash="4a340f2bf061c99c2f0dc9ff08cf7eff"/><file name="ChannelProductChangesResponse.md" hash="1d60c94776a102ce70adfe423053662c"/><file name="ChannelProductResponse.md" hash="ab03738a7d36ca757d4d760f494f34eb"/><file name="ChannelReferencesRequest.md" hash="0093f0fb9f984d1b5487a21e7f228881"/><file name="ChannelReturnLineRequest.md" hash="8772b0e3d83aa4d9b9a5096d4e7d3a71"/><file name="ChannelReturnLineResponse.md" hash="3776c0d0d4c55b771f56cf7d54dfcbd6"/><file name="ChannelReturnRequest.md" hash="e3f7f0bac18928f306c7a6250a33559c"/><file name="ChannelReturnResponse.md" hash="fce03223b6d72522aaebbc571710c184"/><file name="ChannelShipmentLineResponse.md" hash="7af4b4969f67785856935ea2157ef777"/><file name="ChannelShipmentResponse.md" hash="d08e3ffaa74bb3cfacc302ab4ecc6647"/><file name="CollectionOfBackOrder.md" hash="a598d6feabc24120bb32d27039257815"/><file name="CollectionOfChannelCancellationResponse.md" hash="17d808e9a597a7b577f06dda3826b209"/><file name="CollectionOfChannelOfferResponse.md" hash="960220f338c97e7f7f8d22d6a1dda078"/><file name="CollectionOfChannelReturnResponse.md" hash="5aa569265ef1bffe72598717b54eb744"/><file name="CollectionOfChannelShipmentResponse.md" hash="921c98e16402963a54914a49b2ae4315"/><file name="CollectionOfMerchantOrderResponse.md" hash="2b485b16c88d9b572a920832cee2d640"/><file name="CollectionOfMerchantReturnResponse.md" hash="28e166e6c4334999d01e72ed45b9f1cd"/><file name="EntitiesAddressModels.md" hash="a39c3572451706980ef8ca89150839d1"/><file name="ExtraDataItem.md" hash="0de36fae230fc29f94271b1d4cfda0be"/><file name="MerchantCancellationLineRequest.md" hash="7d34f8383485ab49aeefda8bfb7a5549"/><file name="MerchantCancellationRequest.md" hash="18b66e8fb6bac478187c47f9d1b9f33a"/><file name="MerchantOrderLineResponse.md" hash="2c9798e602c11355d27673d6dd5c595f"/><file name="MerchantOrderResponse.md" hash="aa294617b05c2ff8e1b8827e12dfbe58"/><file name="MerchantProductRequest.md" hash="b716f6455a82ac7edd34a805944e45be"/><file name="MerchantProductResponse.md" hash="1feac7443fa488fcf3049dd9fae9f9f3"/><file name="MerchantReturnLineRequest.md" hash="00ffe9d7430d1f8906664335f31dab47"/><file name="MerchantReturnLineResponse.md" hash="9d93c86dfc723c70013b38194821a4c0"/><file name="MerchantReturnRequest.md" hash="c6f8feb89091a6934edda9afc303055d"/><file name="MerchantReturnResponse.md" hash="68556dd65cf825c8bbfc9c4258732890"/><file name="MerchantShipmentLineRequest.md" hash="c64bb2841e6220eebec76af08f6521b4"/><file name="MerchantShipmentRequest.md" hash="a6375c9cd3353a9e1f58ecd13bc9db46"/><file name="MerchantShipmentTrackingRequest.md" hash="31de02f6fc295de48495954e0661cedf"/><file name="OrderAcknowledgement.md" hash="4efbc52fac5d1096411b71dbf9eadfc8"/><file name="ProductCreationResult.md" hash="f7405b1242dac1e7691fea916126a762"/><file name="ProductMessage.md" hash="f0183ec14571d04083c97184fd0d0cb0"/><file name="SingleOfBackOrder.md" hash="40d153f95799d834702713f67f51f2dd"/><file name="SingleOfChannelProductChangesResponse.md" hash="66b59de7b2664656f0dbe41aaf236bc2"/><file name="SingleOfMerchantProductResponse.md" hash="0bb93f7335afe61d1f3085147eb2c62f"/><file name="SingleOfProductCreationResult.md" hash="b716e0f72131560a100ea752486b6fb0"/></dir></dir><file name="git_push.sh" hash="cb43424bd3b91aad6248982e6d022abf"/><dir name="lib"><dir name="Api"><file name="BackOrderApi.php" hash="5e81ec4edf4158643bec19b4bc1626f2"/><file name="CancellationApi.php" hash="d8dd5fc664e97e48a2b4d8675398075f"/><file name="ClientApi.php" hash="27b7e36e2e2a58a48e23b9b3d60718a0"/><file name="OrderApi.php" hash="878b6aef80ca14ae6e78e22e3e23d272"/><file name="ProductApi.php" hash="e2fda0f0bd93d83a8fd3341248951370"/><file name="ReturnApi.php" hash="bab74b31173552b26ddded0ab634f791"/><file name="ShipmentApi.php" hash="c959703b9f4b0625857909305f2bce9c"/></dir><file name="ApiClient.php" hash="842d8cc43ed577f9c6309325274cae8b"/><file name="ApiException.php" hash="35e42f31a447db6fa7829f3921bb71f3"/><file name="Configuration.php" hash="31b0a02797b7a7be75aee5882e4a71a4"/><dir name="Model"><file name="ApiResponse.php" hash="0a3b05df633ae7f3ab07a11a125fca9c"/><file name="BackOrder.php" hash="8381e382e6cb0003122fe0cf6724ffc6"/><file name="BackOrderLine.php" hash="d7bce03323b7fc81a247e9d2d1013a3b"/><file name="ChannelCancellationLineResponse.php" hash="bca9fdefe0c204ee9ef232f963b3de47"/><file name="ChannelCancellationResponse.php" hash="e67a3c71c1f2b233cc76d6a105cb3e3e"/><file name="ChannelOfferResponse.php" hash="c0dcfdd5e2176537cf8c65786806ab78"/><file name="ChannelOrderLineRequest.php" hash="e1731a835a52ce636c78782d87dc8ff6"/><file name="ChannelOrderRequest.php" hash="f76b555f79c9ef7bc891fb1e8c272702"/><file name="ChannelProcessedChangesRequest.php" hash="811154776d351b4a4b4cfdd8e52dabea"/><file name="ChannelProductChangesResponse.php" hash="4005bddd62fb2f3fa8c5cbd18915c769"/><file name="ChannelProductResponse.php" hash="5c56cb7c3e7b066a416e492cea0ae5a3"/><file name="ChannelReferencesRequest.php" hash="8475df642ea577070897525ec531df5a"/><file name="ChannelReturnLineRequest.php" hash="efb6cafb95306f9a1daa174cdced04da"/><file name="ChannelReturnLineResponse.php" hash="cb278e5cb10e4f8e96319fdfdcd011e5"/><file name="ChannelReturnRequest.php" hash="ec2e7c79e2f64c88ed3022d5b777132a"/><file name="ChannelReturnResponse.php" hash="d4476c0c9c9254a7e61efaf733a99633"/><file name="ChannelShipmentLineResponse.php" hash="05c3bf0d034f2ec710d5c31d787995ae"/><file name="ChannelShipmentResponse.php" hash="018ba0efa56760cc898db241c4fb1960"/><file name="CollectionOfBackOrder.php" hash="ceb2f8cce017d574f95c31fd710925db"/><file name="CollectionOfChannelCancellationResponse.php" hash="d16d711ec15156e378ef1d47cb7c2035"/><file name="CollectionOfChannelOfferResponse.php" hash="e2aa6951e00d415a0e1d01fb5039c571"/><file name="CollectionOfChannelReturnResponse.php" hash="82fbfd1ab05901cd5f9ed0378315ff21"/><file name="CollectionOfChannelShipmentResponse.php" hash="6887ab42ff36160caeea7fe3e7a81a3f"/><file name="CollectionOfMerchantOrderResponse.php" hash="25c69cc1c18d5d378a66b4b6510c90ad"/><file name="CollectionOfMerchantReturnResponse.php" hash="3cb0aae8dc98658933abe39596112238"/><file name="EntitiesAddressModels.php" hash="0e77da388045bcd741491f0e808c5590"/><file name="ExtraDataItem.php" hash="fd4591749f2db73f7419fa60eb61ece1"/><file name="MerchantCancellationLineRequest.php" hash="fc592a1326f5d757518f136868e79abe"/><file name="MerchantCancellationRequest.php" hash="aa91c8397263205bd2ea352487a4789b"/><file name="MerchantOrderLineResponse.php" hash="3a03961b88af656a8d445fd6ad362c61"/><file name="MerchantOrderResponse.php" hash="204e6f13d44bc7c39359db3dfbc259e8"/><file name="MerchantProductRequest.php" hash="d30cac5bde0749267b31122027b5faf3"/><file name="MerchantProductResponse.php" hash="59637638ced5d01950f74e129f17118f"/><file name="MerchantReturnLineRequest.php" hash="febc3d102920720bab159b3cc7b096f1"/><file name="MerchantReturnLineResponse.php" hash="1c684535ba88a7667920b3d7e75e3864"/><file name="MerchantReturnRequest.php" hash="50ee599cf61519fed768072a87c4dd8c"/><file name="MerchantReturnResponse.php" hash="01b709acf280d9c068e6d201e09a5222"/><file name="MerchantShipmentLineRequest.php" hash="5304190e3a68136f3c0aec3de99e2424"/><file name="MerchantShipmentRequest.php" hash="541886892421fb9b2d358578779ca849"/><file name="MerchantShipmentTrackingRequest.php" hash="037a86688447c3fb348221e2ce587265"/><file name="OrderAcknowledgement.php" hash="dda1ada83257f1ee8aecae11c0fa3e32"/><file name="ProductCreationResult.php" hash="889dc202026af5080801077a48361c64"/><file name="ProductMessage.php" hash="673e069e1fc5e6ad9f05825f57922d25"/><file name="SingleOfBackOrder.php" hash="f2c5ea0cb45bba633e37b3f7fdd6b5ca"/><file name="SingleOfChannelProductChangesResponse.php" hash="9bd19387159ffbc97e846c37f2414f43"/><file name="SingleOfMerchantProductResponse.php" hash="d729298d1ebc24064de1e157db0e5357"/><file name="SingleOfProductCreationResult.php" hash="dbd32037409ae8a9a6bc70e8bb394ef9"/></dir><file name="ObjectSerializer.php" hash="e6842da289d7dfa60c4ad2cd427f0ac5"/></dir><file name="phpunit.xml.dist" hash="82cdb47416d5294f68042ad4ef3bbdfb"/><dir name="test"><dir name="Api"><file name="BackOrderApiTest.php" hash="38eadf8e5bd8d5b64e751cd995a5d14c"/><file name="CancellationApiTest.php" hash="2e708e7da73249459a5f2135bf7a6493"/><file name="ClientApiTest.php" hash="9977a02ce29e75244a6cc0f77d7b2f2f"/><file name="OrderApiTest.php" hash="a5171f8ba78f55d71b500f0dd3ffd339"/><file name="ProductApiTest.php" hash="8e2c07929122cae5f2bca51e9b3f7a53"/><file name="ReturnApiTest.php" hash="6f41f9c096a319c8ffdd1512ea6eeeb3"/><file name="ShipmentApiTest.php" hash="69ce282bb21987efcaf9ef58a4e3c929"/></dir><dir name="Model"><file name="ApiResponseTest.php" hash="47ad10b81c24c046d26a721593743549"/><file name="BackOrderLineTest.php" hash="386d64b5b048dba890fdf527a9384bdc"/><file name="BackOrderTest.php" hash="20db2c9fc8bc7b2ee95b23217ec90324"/><file name="ChannelCancellationLineResponseTest.php" hash="c3911b9a14fa6e6e224e1fef0d14ebe3"/><file name="ChannelCancellationResponseTest.php" hash="5ac4db00dec924f7991e30f7cd851a85"/><file name="ChannelOfferResponseTest.php" hash="864f75a5ec3d1164a494fa7611a99d74"/><file name="ChannelOrderLineRequestTest.php" hash="1bc6bdc75b0ca3f7fc81600b00adce9e"/><file name="ChannelOrderRequestTest.php" hash="28e9fcf7f92df24cd4eade51e924c418"/><file name="ChannelProcessedChangesRequestTest.php" hash="2e31c7235b56f4c78ca961692740b2a4"/><file name="ChannelProductChangesResponseTest.php" hash="23f00d9199f2cc208efc55ecdf9365c6"/><file name="ChannelProductResponseTest.php" hash="a28341ed1fef5facb5ff2f2c30a1fe6f"/><file name="ChannelReferencesRequestTest.php" hash="cde66fa66d8ba5d6d2d9179e37e6d9f2"/><file name="ChannelReturnLineRequestTest.php" hash="ed6494db84eedab689da22870e0ad909"/><file name="ChannelReturnLineResponseTest.php" hash="e914765391866a51659fd4022381f760"/><file name="ChannelReturnRequestTest.php" hash="96080f38514039e9f5bd97c49575bd8c"/><file name="ChannelReturnResponseTest.php" hash="02fbc0c9be981e10fa825d40ce77b1cd"/><file name="ChannelShipmentLineResponseTest.php" hash="4b2876b2f6cc0466a1575348a04aeab6"/><file name="ChannelShipmentResponseTest.php" hash="d8fb3ed6643a2da9139873b9f40e1ded"/><file name="CollectionOfBackOrderTest.php" hash="5b213ba119b95cc1b1cd47f38c7ae4ae"/><file name="CollectionOfChannelCancellationResponseTest.php" hash="d1aafe9dfddb92125a7613194ba04d1d"/><file name="CollectionOfChannelOfferResponseTest.php" hash="178d3c84aacd4f3ad3edc84a17bdbf02"/><file name="CollectionOfChannelReturnResponseTest.php" hash="6d53549630c3337a31bb1ecb87e61555"/><file name="CollectionOfChannelShipmentResponseTest.php" hash="a934c9bf97695687f3a2d5116fedae58"/><file name="CollectionOfMerchantOrderResponseTest.php" hash="7428c9b0708ca263a036ff90a9278e08"/><file name="CollectionOfMerchantReturnResponseTest.php" hash="9215b1ef54894b1d18c74b165521962d"/><file name="EntitiesAddressModelsTest.php" hash="7ce550b6e3c4eba3a17e8a1c026ecb72"/><file name="ExtraDataItemTest.php" hash="caa7c4e33ad26050ede14df690d94ce2"/><file name="MerchantCancellationLineRequestTest.php" hash="f06c4131e5472a835c82c0f46d035c6d"/><file name="MerchantCancellationRequestTest.php" hash="f8d8cc7821aa1ecf842935656019a914"/><file name="MerchantOrderLineResponseTest.php" hash="b22d878593d9286a96733cf7d19a19c5"/><file name="MerchantOrderResponseTest.php" hash="0aab3e4a85d092aa9dd5ae353a61c027"/><file name="MerchantProductRequestTest.php" hash="e9f310562cca319e8e25220dcda2fd5c"/><file name="MerchantProductResponseTest.php" hash="5ca76d16364c27f5a5dd7f0ee41ac9b4"/><file name="MerchantReturnLineRequestTest.php" hash="a5c136a8524288aca4ac9cb356dcdc2a"/><file name="MerchantReturnLineResponseTest.php" hash="3d5dbd7817316a7d05c0472d7abf5017"/><file name="MerchantReturnRequestTest.php" hash="aab02e41fa8a30c80323758cf823e70e"/><file name="MerchantReturnResponseTest.php" hash="216d32bab151c70cc757dd3604548980"/><file name="MerchantShipmentLineRequestTest.php" hash="fb14a111aa135c9c2fbf8426fe4ec209"/><file name="MerchantShipmentRequestTest.php" hash="9b654c3525eb68df96dd267fc90575f2"/><file name="MerchantShipmentTrackingRequestTest.php" hash="a2e71dd4870faba873059a1f00ef6a3a"/><file name="OrderAcknowledgementTest.php" hash="ec258b97dcdea4cf0f32abbe4dca3846"/><file name="ProductCreationResultTest.php" hash="925f49219cb866042d0f5fa3b3bbceb2"/><file name="ProductMessageTest.php" hash="70c0ef075db83195b5767fd21cb0e1a9"/><file name="SingleOfBackOrderTest.php" hash="56ec1bd486a42d7bee62d5aac02dccd2"/><file name="SingleOfChannelProductChangesResponseTest.php" hash="6687c279b79298dc67490387637d19fb"/><file name="SingleOfMerchantProductResponseTest.php" hash="856d0ed5e85f30d263dc3f4b5a59e58a"/><file name="SingleOfProductCreationResultTest.php" hash="02720936c9cd7429c65ae0ebe6a57ecd"/></dir></dir><file name=".gitignore" hash="a72c432223a956b74e9bd5ea5dd8b8c3"/><file name=".php_cs" hash="a921a6cf564b1304d4ff8721ab46d435"/><file name=".travis.yml" hash="8c1fae058e6e8d1f0d2fd39dc488a850"/></dir></dir><dir name="composer"><file name="ClassLoader.php" hash="292c079dbe63ba06bfbf37fd99fe4bf9"/><file name="LICENSE" hash="955d5fe58c231244f6b49000f383b5e2"/><file name="autoload_classmap.php" hash="8645d3a4e3ad87e7cf4d88a46717aab4"/><file name="autoload_namespaces.php" hash="35e12c7d76c4a81633bcf547c0e229a9"/><file name="autoload_psr4.php" hash="34e17c04104094e954858e2e564ff4b0"/><file name="autoload_real.php" hash="692ff591b75b6853c6661061389055a9"/><file name="autoload_static.php" hash="e4628c11a0745f787a3e9de5a5de4ad7"/><file name="installed.json" hash="cd50a8b83c078b04628a5aa85e5551b5"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="channelengine.xml" hash="ae6a00b46a84a610964743034eb72081"/></dir><dir name="template"><dir name="channelengine"><dir name="checkout"><file name="success.phtml" hash="dbcb8298cd52a3c44560ae911349a3c7"/></dir><file name="head.phtml" hash="a7a7ab566adc1dc7d2645bf1cdfac0d4"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="channelengine"><dir name="system"><dir name="config"><dir name="form"><file name="ajax_button.phtml" hash="882106ebb297393737bdf97d2ddc8e41"/></dir></dir></dir></dir></dir></dir></dir></dir></target></contents>
28
  <compatible/>
29
  <dependencies><required><php><min>5.4.0</min><max>7.1.3</max></php><extension><name>curl</name><min/><max/></extension><extension><name>mbstring</name><min/><max/></extension><extension><name>json</name><min/><max/></extension></required></dependencies>
30
  </package>