idosell 0.3.7 → 0.3.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (361) hide show
  1. package/changelog.md +22 -0
  2. package/dist/app.d.ts +2 -2
  3. package/dist/enums.d.ts +227 -11
  4. package/dist/enums.js +228 -10
  5. package/dist/gateways.d.ts +56 -10
  6. package/dist/helpers.js +55 -11
  7. package/dist/methods/getClientsDeliveryAddress.js +1 -0
  8. package/dist/methods/getClientsPayerAddress.js +1 -0
  9. package/dist/methods/getClientsPricelistsClients.js +1 -0
  10. package/dist/methods/getClientsPricelistsProducts.js +1 -0
  11. package/dist/methods/getClientsTags.js +1 -0
  12. package/dist/methods/getConfigVariables.js +1 -0
  13. package/dist/methods/getCouriers.js +1 -0
  14. package/dist/methods/getCouriersPickupPoints.js +1 -0
  15. package/dist/methods/getDeliveriesRegions.js +1 -0
  16. package/dist/methods/getDiscountsGroupsClients.js +1 -0
  17. package/dist/methods/getMenu.js +1 -0
  18. package/dist/methods/getMenuFilter.js +1 -0
  19. package/dist/methods/getOrders.js +1 -0
  20. package/dist/methods/getOrdersAnalytics.js +1 -0
  21. package/dist/methods/getOrdersDocuments.js +1 -0
  22. package/dist/methods/getOrdersExportdocumentsEPP.js +1 -0
  23. package/dist/methods/getOrdersExportdocumentsJPK.js +1 -0
  24. package/dist/methods/getOrdersHandler.js +1 -0
  25. package/dist/methods/getOrdersHistory.js +1 -0
  26. package/dist/methods/getOrdersImages.js +1 -0
  27. package/dist/methods/getOrdersLabels.js +1 -0
  28. package/dist/methods/getOrdersOpinionsRate.js +1 -0
  29. package/dist/methods/getOrdersPackages.js +1 -0
  30. package/dist/methods/getOrdersProfitability.js +1 -0
  31. package/dist/methods/getOrdersWarehouse.js +1 -0
  32. package/dist/methods/getPackagesLabels.js +1 -0
  33. package/dist/methods/getPayments.js +1 -0
  34. package/dist/methods/getProductsBrandsFilter.js +1 -0
  35. package/dist/methods/getProductsCodeExistence.js +1 -0
  36. package/dist/methods/getProductsDescriptions.js +4 -0
  37. package/dist/methods/getProductsIdBySizecode.js +1 -0
  38. package/dist/methods/getProductsMarketingAllFacebookCatalogIds.js +1 -0
  39. package/dist/methods/getProductsMarketingZones.js +1 -0
  40. package/dist/methods/getProductsOmnibusPrices.js +1 -0
  41. package/dist/methods/getProductsOpinionsRate.js +1 -0
  42. package/dist/methods/getProductsProductsToFacebookCatalog.js +1 -0
  43. package/dist/methods/getProductsQuestions.js +1 -0
  44. package/dist/methods/getProductsReservations.js +1 -0
  45. package/dist/methods/getProductsSKUbyBarcode.js +1 -0
  46. package/dist/methods/getProductsSeriesFilter.js +1 -0
  47. package/dist/methods/getProductsStocks.js +1 -0
  48. package/dist/methods/getProductsStrikethroughPrices.js +1 -0
  49. package/dist/methods/getRefundsGetPossibleAutoRefunds.js +1 -0
  50. package/dist/methods/getRefundsGetRefundStatus.js +1 -0
  51. package/dist/methods/getRefundsRetrieveRefundsList.js +1 -0
  52. package/dist/methods/getResponsibilityEntities.js +1 -0
  53. package/dist/methods/getReturns.js +1 -0
  54. package/dist/methods/getVouchers.js +1 -0
  55. package/dist/methods/getWmsLocations.js +1 -0
  56. package/dist/methods/getWmsStocksdocumentsDocuments.js +1 -0
  57. package/dist/methods/getWmsStocksdocumentsProducts.js +1 -0
  58. package/dist/methods/postOrders.js +1 -1
  59. package/dist/methods/postOrdersDocuments.js +1 -1
  60. package/dist/methods/postOrdersImages.js +1 -1
  61. package/dist/methods/postProducts.js +0 -1
  62. package/dist/methods/putProductsAttachments.js +4 -0
  63. package/dist/methods/putProductsDescriptions.js +3 -2
  64. package/dist/methods/putProductsGroupsMainProduct.js +4 -0
  65. package/dist/methods/putProductsGroupsSettings.js +4 -0
  66. package/dist/methods/putProductsQuestions.js +4 -0
  67. package/dist/methods/searchClientsGiftcards.js +1 -0
  68. package/dist/methods/searchPackages.js +1 -0
  69. package/dist/methods/searchProductsDeliveryTime.js +1 -0
  70. package/dist/params.js +11 -3
  71. package/dist/request.js +23 -0
  72. package/dist/responses.d.ts +192 -10
  73. package/package.json +1 -1
  74. package/tests/deleteClients.test.js +1 -1
  75. package/tests/deleteClientsDeliveryAddress.test.js +1 -1
  76. package/tests/deleteClientsGiftcards.test.js +1 -1
  77. package/tests/deleteClientsPayerAddress.test.js +1 -1
  78. package/tests/deleteClientsPricelists.test.js +1 -1
  79. package/tests/deleteClientsTags.test.js +1 -1
  80. package/tests/deleteClientsTagsClear.test.js +1 -1
  81. package/tests/deleteConfigVariables.test.js +1 -1
  82. package/tests/deleteCouriersPickupPoints.test.js +1 -1
  83. package/tests/deleteCpa.test.js +1 -1
  84. package/tests/deleteCpaCampaign.test.js +1 -1
  85. package/tests/deleteDiscountsGroups.test.js +1 -1
  86. package/tests/deleteDiscountsGroupsProducts.test.js +1 -1
  87. package/tests/deleteDiscountsRebatesCard.test.js +1 -1
  88. package/tests/deleteDiscountsRebatesCode.test.js +1 -1
  89. package/tests/deleteEntries.test.js +1 -1
  90. package/tests/deleteMenu.test.js +1 -1
  91. package/tests/deleteOrdersDocuments.test.js +1 -1
  92. package/tests/deleteOrdersImages.test.js +1 -1
  93. package/tests/deleteProducts.test.js +1 -1
  94. package/tests/deleteProductsBrands.test.js +1 -1
  95. package/tests/deleteProductsCollectionsProducts.test.js +1 -1
  96. package/tests/deleteProductsImages.test.js +1 -1
  97. package/tests/deleteProductsOpinions.test.js +1 -1
  98. package/tests/deleteProductsParameters.test.js +1 -1
  99. package/tests/deleteProductsProductsToFacebookCatalog.test.js +1 -1
  100. package/tests/deleteProductsProductsToPromotion.test.js +1 -1
  101. package/tests/deleteProductsSeries.test.js +1 -1
  102. package/tests/deleteProductsSizes.test.js +1 -1
  103. package/tests/deleteResponsibilityEntities.test.js +1 -1
  104. package/tests/deleteSizecharts.test.js +1 -1
  105. package/tests/deleteSnippets.test.js +1 -1
  106. package/tests/deleteSnippetsCampaign.test.js +1 -1
  107. package/tests/deleteSnippetsCookies.test.js +1 -1
  108. package/tests/deleteVouchers.test.js +1 -1
  109. package/tests/deleteWarranties.test.js +1 -1
  110. package/tests/deleteWmsStocksdocumentsDocuments.test.js +1 -1
  111. package/tests/deleteWmsStocksdocumentsProducts.test.js +2 -2
  112. package/tests/deleteWmsSuppliers.test.js +1 -1
  113. package/tests/getClients.test.js +4 -4
  114. package/tests/getClientsBalance.test.js +4 -4
  115. package/tests/getClientsDeliveryAddress.test.js +1 -1
  116. package/tests/getClientsGiftcardsTypes.test.js +1 -1
  117. package/tests/getClientsMembershipCards.test.js +1 -1
  118. package/tests/getClientsPayerAddress.test.js +2 -2
  119. package/tests/getClientsPricelists.test.js +2 -2
  120. package/tests/getClientsPricelistsClients.test.js +1 -1
  121. package/tests/getClientsPricelistsProducts.test.js +2 -2
  122. package/tests/getClientsPricesDiscountGroups.test.js +2 -2
  123. package/tests/getClientsPricesDiscounts.test.js +5 -5
  124. package/tests/getClientsProfitPoints.test.js +3 -3
  125. package/tests/getClientsProvinceList.test.js +1 -1
  126. package/tests/getClientsTags.test.js +1 -1
  127. package/tests/getConfigVariables.test.js +1 -1
  128. package/tests/getCouriers.test.js +2 -2
  129. package/tests/getCouriersPickupPoints.test.js +3 -3
  130. package/tests/getCpa.test.js +2 -2
  131. package/tests/getCpaCampaign.test.js +2 -2
  132. package/tests/getDeliveriesProfiles.test.js +1 -1
  133. package/tests/getDeliveriesRegions.test.js +1 -1
  134. package/tests/getDiscountsGroups.test.js +2 -2
  135. package/tests/getDiscountsGroupsClients.test.js +1 -1
  136. package/tests/getEntries.test.js +2 -2
  137. package/tests/getEntriesPagesToDisplay.test.js +1 -1
  138. package/tests/getEntriesSources.test.js +1 -1
  139. package/tests/getMenu.test.js +1 -1
  140. package/tests/getMenuFilter.test.js +1 -1
  141. package/tests/getOrders.test.js +1 -1
  142. package/tests/getOrdersAnalytics.test.js +1 -1
  143. package/tests/getOrdersAuctionDetails.test.js +1 -1
  144. package/tests/getOrdersDocuments.test.js +1 -1
  145. package/tests/getOrdersExportdocumentsEPP.test.js +4 -4
  146. package/tests/getOrdersExportdocumentsJPK.test.js +3 -3
  147. package/tests/getOrdersHandler.test.js +1 -1
  148. package/tests/getOrdersHistory.test.js +1 -1
  149. package/tests/getOrdersImages.test.js +1 -1
  150. package/tests/getOrdersLabels.test.js +1 -1
  151. package/tests/getOrdersOpinionsRate.test.js +1 -1
  152. package/tests/getOrdersPackages.test.js +3 -3
  153. package/tests/getOrdersProfitability.test.js +1 -1
  154. package/tests/getOrdersWarehouse.test.js +1 -1
  155. package/tests/getPackagesLabels.test.js +1 -1
  156. package/tests/getPayments.test.js +2 -2
  157. package/tests/getPaymentsForms.test.js +1 -1
  158. package/tests/getPaymentsProfiles.test.js +1 -1
  159. package/tests/getProducts.test.js +1 -1
  160. package/tests/getProductsAuctions.test.js +2 -2
  161. package/tests/getProductsBrands.test.js +1 -1
  162. package/tests/getProductsBrandsFilter.test.js +1 -1
  163. package/tests/getProductsCategories.test.js +3 -3
  164. package/tests/getProductsCodeExistence.test.js +2 -2
  165. package/tests/getProductsDescriptions.test.js +6 -1
  166. package/tests/getProductsIdBySizecode.test.js +1 -1
  167. package/tests/getProductsMarketingAllFacebookCatalogIds.test.js +1 -1
  168. package/tests/getProductsMarketingPromotion.test.js +2 -2
  169. package/tests/getProductsMarketingZones.test.js +2 -2
  170. package/tests/getProductsOmnibusPrices.test.js +2 -2
  171. package/tests/getProductsOpinions.test.js +3 -3
  172. package/tests/getProductsOpinionsRate.test.js +1 -1
  173. package/tests/getProductsProductsToFacebookCatalog.test.js +1 -1
  174. package/tests/getProductsQuestions.test.js +2 -2
  175. package/tests/getProductsReservations.test.js +2 -2
  176. package/tests/getProductsSKUbyBarcode.test.js +1 -1
  177. package/tests/getProductsSeries.test.js +4 -4
  178. package/tests/getProductsSeriesFilter.test.js +1 -1
  179. package/tests/getProductsSizes.test.js +2 -2
  180. package/tests/getProductsStocks.test.js +2 -2
  181. package/tests/getProductsStrikethroughPrices.test.js +2 -2
  182. package/tests/getRefundsGetPossibleAutoRefunds.test.js +1 -1
  183. package/tests/getRefundsGetRefundStatus.test.js +1 -1
  184. package/tests/getRefundsRetrieveRefundsList.test.js +1 -1
  185. package/tests/getResponsibilityEntities.test.js +1 -1
  186. package/tests/getReturns.test.js +5 -5
  187. package/tests/getRma.test.js +3 -3
  188. package/tests/getSizecharts.test.js +3 -3
  189. package/tests/getSizes.test.js +1 -1
  190. package/tests/getSnippets.test.js +1 -1
  191. package/tests/getSnippetsCampaign.test.js +1 -1
  192. package/tests/getSnippetsCookies.test.js +1 -1
  193. package/tests/getSystemCurrencies.test.js +2 -2
  194. package/tests/getSystemProcessesAutomation.test.js +1 -1
  195. package/tests/getSystemUnits.test.js +1 -1
  196. package/tests/getSystemUsers.test.js +1 -1
  197. package/tests/getVouchers.test.js +5 -5
  198. package/tests/getVouchersTypes.test.js +1 -1
  199. package/tests/getWarranties.test.js +2 -2
  200. package/tests/getWarrantiesCountTotal.test.js +1 -1
  201. package/tests/getWmsLocations.test.js +2 -2
  202. package/tests/getWmsStocksdocumentsDocuments.test.js +4 -4
  203. package/tests/getWmsStocksdocumentsOpenedDocuments.test.js +4 -4
  204. package/tests/getWmsStocksdocumentsProducts.test.js +2 -2
  205. package/tests/getWmsSuppliers.test.js +3 -3
  206. package/tests/postClients.test.js +1 -1
  207. package/tests/postClientsBalance.test.js +3 -3
  208. package/tests/postClientsDeliveryAddress.test.js +1 -1
  209. package/tests/postClientsGiftcards.test.js +1 -1
  210. package/tests/postClientsPayerAddress.test.js +1 -1
  211. package/tests/postClientsPricelists.test.js +2 -2
  212. package/tests/postClientsProfitPoints.test.js +1 -1
  213. package/tests/postClientsTags.test.js +1 -1
  214. package/tests/postCouriersPickupPoints.test.js +1 -1
  215. package/tests/postCpa.test.js +1 -1
  216. package/tests/postCpaCampaign.test.js +1 -1
  217. package/tests/postDeliveriesRegions.test.js +1 -1
  218. package/tests/postDiscountsGroups.test.js +1 -1
  219. package/tests/postDiscountsRebatesCard.test.js +1 -1
  220. package/tests/postDiscountsRebatesCode.test.js +1 -1
  221. package/tests/postEntries.test.js +2 -2
  222. package/tests/postMenu.test.js +1 -1
  223. package/tests/postOrders.test.js +2 -2
  224. package/tests/postOrdersDocuments.test.js +1 -1
  225. package/tests/postOrdersDocumentsCreate.test.js +1 -1
  226. package/tests/postOrdersImages.test.js +2 -2
  227. package/tests/postOrdersPackages.test.js +1 -1
  228. package/tests/postPackages.test.js +1 -1
  229. package/tests/postPackagesLabels.test.js +1 -1
  230. package/tests/postPayments.test.js +1 -1
  231. package/tests/postPaymentsCancel.test.js +1 -1
  232. package/tests/postPaymentsCashback.test.js +1 -1
  233. package/tests/postPaymentsRepayment.test.js +1 -1
  234. package/tests/postProducts.test.js +4 -4
  235. package/tests/postProductsBrands.test.js +1 -1
  236. package/tests/postProductsCollections.test.js +1 -1
  237. package/tests/postProductsCollectionsProducts.test.js +1 -1
  238. package/tests/postProductsMarketingPromotion.test.js +1 -1
  239. package/tests/postProductsOpinions.test.js +1 -1
  240. package/tests/postProductsProductsToFacebookCatalog.test.js +1 -1
  241. package/tests/postProductsProductsToPromotion.test.js +1 -1
  242. package/tests/postProductsRestore.test.js +1 -1
  243. package/tests/postRefundsAddAutomaticRefund.test.js +1 -1
  244. package/tests/postRefundsAddAutomaticRefundForOrder.test.js +1 -1
  245. package/tests/postRefundsAddManualRefund.test.js +1 -1
  246. package/tests/postResponsibilityEntities.test.js +1 -1
  247. package/tests/postReturns.test.js +2 -2
  248. package/tests/postSnippets.test.js +1 -1
  249. package/tests/postSnippetsCampaign.test.js +1 -1
  250. package/tests/postSnippetsCookies.test.js +1 -1
  251. package/tests/postVouchers.test.js +1 -1
  252. package/tests/postWarranties.test.js +1 -1
  253. package/tests/postWmsStocksdocumentsDocuments.test.js +1 -1
  254. package/tests/postWmsStocksdocumentsProducts.test.js +1 -1
  255. package/tests/putClients.test.js +2 -2
  256. package/tests/putClientsDeliveryAddress.test.js +1 -1
  257. package/tests/putClientsExternalCode.test.js +1 -1
  258. package/tests/putClientsGiftcards.test.js +3 -3
  259. package/tests/putClientsGiftcardsBlock.test.js +1 -1
  260. package/tests/putClientsGiftcardsUnblock.test.js +1 -1
  261. package/tests/putClientsMembershipCards.test.js +1 -1
  262. package/tests/putClientsPayerAddress.test.js +1 -1
  263. package/tests/putClientsPricelists.test.js +1 -1
  264. package/tests/putClientsPricelistsClients.test.js +1 -1
  265. package/tests/putClientsPricelistsProducts.test.js +1 -1
  266. package/tests/putClientsPricelistsRename.test.js +1 -1
  267. package/tests/putClientsPricesDiscounts.test.js +1 -1
  268. package/tests/putClientsTags.test.js +1 -1
  269. package/tests/putConfigVariables.test.js +1 -1
  270. package/tests/putCouriersPickupPoints.test.js +1 -1
  271. package/tests/putCpa.test.js +1 -1
  272. package/tests/putCpaCampaign.test.js +1 -1
  273. package/tests/putDeliveriesDefaultProfiles.test.js +1 -1
  274. package/tests/putDiscountsGroups.test.js +1 -1
  275. package/tests/putDiscountsGroupsProducts.test.js +1 -1
  276. package/tests/putDiscountsRebatesBlockCard.test.js +1 -1
  277. package/tests/putDiscountsRebatesUnblockCard.test.js +1 -1
  278. package/tests/putEntries.test.js +1 -1
  279. package/tests/putMenu.test.js +1 -1
  280. package/tests/putMenuFilter.test.js +2 -2
  281. package/tests/putMenuSort.test.js +1 -1
  282. package/tests/putOrders.test.js +1 -1
  283. package/tests/putOrdersCourier.test.js +1 -1
  284. package/tests/putOrdersDeliveryAddress.test.js +1 -1
  285. package/tests/putOrdersDevide.test.js +1 -1
  286. package/tests/putOrdersHandler.test.js +1 -1
  287. package/tests/putOrdersPackages.test.js +1 -1
  288. package/tests/putOrdersPickupPoint.test.js +1 -1
  289. package/tests/putOrdersProductsSerialNumbers.test.js +1 -1
  290. package/tests/putOrdersProfitMargin.test.js +1 -1
  291. package/tests/putOrdersShippingCosts.test.js +1 -1
  292. package/tests/putOrdersWarehouse.test.js +1 -1
  293. package/tests/putPackages.test.js +1 -1
  294. package/tests/putPayments.test.js +1 -1
  295. package/tests/putPaymentsConfirm.test.js +1 -1
  296. package/tests/putProducts.test.js +7 -7
  297. package/tests/putProductsAttachments.test.js +6 -1
  298. package/tests/putProductsBrands.test.js +1 -1
  299. package/tests/putProductsBrandsFilter.test.js +1 -1
  300. package/tests/putProductsCategories.test.js +1 -1
  301. package/tests/putProductsCollectionsProducts.test.js +1 -1
  302. package/tests/putProductsCollectionsRenew.test.js +1 -1
  303. package/tests/putProductsDescriptions.test.js +7 -2
  304. package/tests/putProductsGroupsMainProduct.test.js +6 -1
  305. package/tests/putProductsGroupsOrder.test.js +2 -2
  306. package/tests/putProductsGroupsSettings.test.js +6 -1
  307. package/tests/putProductsImages.test.js +5 -5
  308. package/tests/putProductsMarketingPromotion.test.js +1 -1
  309. package/tests/putProductsMarketingZones.test.js +1 -1
  310. package/tests/putProductsOmnibusPrices.test.js +1 -1
  311. package/tests/putProductsOpinions.test.js +1 -1
  312. package/tests/putProductsParameters.test.js +1 -1
  313. package/tests/putProductsQuestions.test.js +1 -1
  314. package/tests/putProductsSeries.test.js +1 -1
  315. package/tests/putProductsSeriesFilter.test.js +2 -2
  316. package/tests/putProductsSizes.test.js +1 -1
  317. package/tests/putProductsStockQuantity.test.js +1 -1
  318. package/tests/putProductsStocks.test.js +1 -1
  319. package/tests/putProductsStrikethroughPrices.test.js +1 -1
  320. package/tests/putProductsSupplierCode.test.js +1 -1
  321. package/tests/putProductsSupplierProductData.test.js +1 -1
  322. package/tests/putRefundsCancelRefund.test.js +1 -1
  323. package/tests/putRefundsConfirmRefund.test.js +1 -1
  324. package/tests/putRefundsUpdateRefund.test.js +1 -1
  325. package/tests/putResponsibilityEntities.test.js +1 -1
  326. package/tests/putReturns.test.js +1 -1
  327. package/tests/putReturnsSerialNumber.test.js +1 -1
  328. package/tests/putRma.test.js +1 -1
  329. package/tests/putSizecharts.test.js +1 -1
  330. package/tests/putSizes.test.js +2 -2
  331. package/tests/putSnippets.test.js +1 -1
  332. package/tests/putSnippetsCampaign.test.js +1 -1
  333. package/tests/putSnippetsCookies.test.js +1 -1
  334. package/tests/putSystemConfig.test.js +1 -1
  335. package/tests/putSystemCurrencies.test.js +1 -1
  336. package/tests/putSystemProcessesAutomation.test.js +1 -1
  337. package/tests/putSystemUnits.test.js +1 -1
  338. package/tests/putVouchers.test.js +1 -1
  339. package/tests/putVouchersBlock.test.js +1 -1
  340. package/tests/putVouchersUnblock.test.js +1 -1
  341. package/tests/putWarranties.test.js +1 -1
  342. package/tests/putWarrantiesLanguageData.test.js +1 -1
  343. package/tests/putWmsStocksdocumentsAcceptMM.test.js +1 -1
  344. package/tests/putWmsStocksdocumentsClose.test.js +1 -1
  345. package/tests/putWmsStocksdocumentsDocuments.test.js +1 -1
  346. package/tests/putWmsStocksdocumentsProducts.test.js +1 -1
  347. package/tests/putWmsStocksdocumentsRejectMM.test.js +1 -1
  348. package/tests/putWmsSuppliers.test.js +1 -1
  349. package/tests/searchClientsCrm.test.js +4 -4
  350. package/tests/searchClientsGiftcards.test.js +1 -1
  351. package/tests/searchClientsNewsletterEmail.test.js +2 -2
  352. package/tests/searchClientsNewsletterSms.test.js +3 -3
  353. package/tests/searchOrders.test.js +12 -12
  354. package/tests/searchOrdersOpinions.test.js +6 -6
  355. package/tests/searchOrdersUnfinished.test.js +6 -6
  356. package/tests/searchPackages.test.js +4 -4
  357. package/tests/searchProducts.test.js +16 -16
  358. package/tests/searchProductsCategoriesIdosell.test.js +1 -1
  359. package/tests/searchProductsDeliveryTime.test.js +3 -3
  360. package/tests/searchProductsParameters.test.js +3 -3
  361. package/tests/url.test.js +2 -2
@@ -2,11 +2,11 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("postOrdersImages", () => {
5
- const params = idosell().postOrdersImages.order({"orderSerialNumber": 9}).userName("me").type("product").source("https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia-logo-v2.png").name("logo").settings({"sourceType":"url"}).getParams();
5
+ const params = idosell().postOrdersImages.order({"orderSerialNumber": 9}).userName("me").type("product").source("https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia-logo-v2.png").name("logo").settings({"sourceType":"url"}).checkParams();
6
6
  expect(params).toEqual({"order":{"orderSerialNumber":9},"userName":"me","images":[{"type":"product","source":"https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia-logo-v2.png","name":"logo"}],"settings":{"sourceType":"url"}});
7
7
  })
8
8
 
9
9
  test("postOrdersImagesOrderSerialNumber", () => {
10
- const params = idosell().postOrdersImages.type("package").source("https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia-logo-v2.png").name("package").orderSerialNumber(17).getParams();
10
+ const params = idosell().postOrdersImages.type("package").source("https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia-logo-v2.png").name("package").orderSerialNumber(17).checkParams();
11
11
  expect(params).toEqual({"userName":"api","images":[{"type":"package","source":"https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia-logo-v2.png","name":"package"}],"settings":{"sourceType":"url"},"order":{"orderSerialNumber":17}});
12
12
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("postOrdersPackagesPackages", () => {
5
- const params = idosell().postOrdersPackages.eventId("9").eventType("order").packages([{"courierId": "10","deliveryPackageNumber": "123465789A"}]).getParams();
5
+ const params = idosell().postOrdersPackages.eventId("9").eventType("order").packages([{"courierId": "10","deliveryPackageNumber": "123465789A"}]).checkParams();
6
6
  expect(params).toEqual({"orderPackages":[{"eventId":"9","eventType":"order","packages":[{"courierId":"10","deliveryPackageNumber":"123465789A"}]}]});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("postPackagesPackages", () => {
5
- const params = idosell().postPackages.orderId("9").orderType("order").packages([{"delivery": 10,"packageNumber": "123465798D"}]).getParams();
5
+ const params = idosell().postPackages.orderId("9").orderType("order").packages([{"delivery": 10,"packageNumber": "123465798D"}]).checkParams();
6
6
  expect(params).toEqual({"orderPackages":[{"orderId":"9","orderType":"order","packages":[{"delivery":10,"packageNumber":"123465798D"}]}]});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("postPackagesLabelsEventType", () => {
5
- const params = idosell().postPackagesLabels.eventId(15).eventType("order").getParams();
5
+ const params = idosell().postPackagesLabels.eventId(15).eventType("order").checkParams();
6
6
  expect(params).toEqual({"eventId":15,"eventType":"order"});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("postPaymentsType", () => {
5
- const params = idosell().postPayments.sourceId(9).sourceType("order").value(100).paymentFormId(5).type("payment").getParams();
5
+ const params = idosell().postPayments.sourceId(9).sourceType("order").value(100).paymentFormId(5).type("payment").checkParams();
6
6
  expect(params).toEqual({"sourceId":9,"sourceType":"order","value":100,"paymentFormId":5,"type":"payment"});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("postPaymentsCancelPaymentNumber", () => {
5
- const params = idosell().postPaymentsCancel.sourceType("order").paymentNumber("9-1").getParams();
5
+ const params = idosell().postPaymentsCancel.sourceType("order").paymentNumber("9-1").checkParams();
6
6
  expect(params).toEqual({"sourceType":"order","paymentNumber":"9-1"});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("postPaymentsCashbackPaymentNumber", () => {
5
- const params = idosell().postPaymentsCashback.value(100).paymentNumber("9-2").getParams();
5
+ const params = idosell().postPaymentsCashback.value(100).paymentNumber("9-2").checkParams();
6
6
  expect(params).toEqual({"value":100,"paymentNumber":"9-2"});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("postPaymentsRepaymentPayment_form_id", () => {
5
- const params = idosell().postPaymentsRepayment.source_id(1).source_type("return").value(100).payment_form_id(27).getParams();
5
+ const params = idosell().postPaymentsRepayment.source_id(1).source_type("return").value(100).payment_form_id(27).checkParams();
6
6
  expect(params).toEqual({"source_id":1,"source_type":"return","value":100,"payment_form_id":27});
7
7
  })
@@ -2,21 +2,21 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("postProductsProductSizes", () => {
5
- const params = idosell().postProducts.productSizes([{"sizeId":"uniw"}]).getParams();
5
+ const params = idosell().postProducts.productSizes([{"sizeId":"uniw"}]).checkParams();
6
6
  expect(params).toEqual({"products":[{"productSizes":[{"sizeId":"uniw"}]}]});
7
7
  })
8
8
 
9
9
  test("postProductsShopsMask", () => {
10
- const params = idosell().postProducts.shopsMask(1).getParams();
10
+ const params = idosell().postProducts.shopsMask(1).checkParams();
11
11
  expect(params).toEqual({"products":[{"shopsMask":1}]});
12
12
  })
13
13
 
14
14
  test("postProductsSetPrice", () => {
15
- const params = idosell().postProducts.shopsMask(1).setPrice(199).getParams();
15
+ const params = idosell().postProducts.shopsMask(1).setPrice(199).checkParams();
16
16
  expect(params).toEqual({"products":[{"shopsMask":1,"priceChangeMode":"amount_set","productRetailPrice":199}]});
17
17
  })
18
18
 
19
19
  test("postProductsSetText", () => {
20
- const params = idosell().postProducts.shopsMask(1).setText("Awesome199","name").getParams();
20
+ const params = idosell().postProducts.shopsMask(1).setText("Awesome199","name").checkParams();
21
21
  expect(params).toEqual({"products":[{"shopsMask":1,"productNames":{"productNamesLangData":[{"langId":"pol","productName":"Awesome199"}]}}]});
22
22
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("postProductsBrandsNameInPanel", () => {
5
- const params = idosell().postProductsBrands.nameInPanel("MyBrand").getParams();
5
+ const params = idosell().postProductsBrands.nameInPanel("MyBrand").checkParams();
6
6
  expect(params).toEqual({"producers":[{"nameInPanel":"MyBrand"}]});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("postProductsCollectionsProducts", () => {
5
- const params = idosell().postProductsCollections.products({"productId":55,"addType":"allSizesWithVariants","quantity":1}).getParams();
5
+ const params = idosell().postProductsCollections.products({"productId":55,"addType":"allSizesWithVariants","quantity":1}).checkParams();
6
6
  expect(params).toEqual({"params":[{"products":{"productId":55,"addType":"allSizesWithVariants","quantity":1}}]});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("postProductsCollectionsProductsProducts", () => {
5
- const params = idosell().postProductsCollectionsProducts.collectionId(54).products([{"productId":52,"addType":"allSizesWithVariants","quantity":1}]).getParams();
5
+ const params = idosell().postProductsCollectionsProducts.collectionId(54).products([{"productId":52,"addType":"allSizesWithVariants","quantity":1}]).checkParams();
6
6
  expect(params).toEqual({"params":[{"collectionId":54,"products":[{"productId":52,"addType":"allSizesWithVariants","quantity":1}]}]});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("postProductsMarketingPromotionMarketingZones", () => {
5
- const params = idosell().postProductsMarketingPromotion.shopsIds([1]).promotionName("Promo").marketingZones({"promotion": "y"}).getParams();
5
+ const params = idosell().postProductsMarketingPromotion.shopsIds([1]).promotionName("Promo").marketingZones({"promotion": "y"}).checkParams();
6
6
  expect(params).toEqual({"shopsIds":[1],"promotionName":"Promo","marketingZones":{"promotion":"y"}});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("postProductsOpinionsProducts", () => {
5
- const params = idosell().postProductsOpinions.shopId(1).rating("5").products({"type": "id","value": "9"}).getParams();
5
+ const params = idosell().postProductsOpinions.shopId(1).rating("5").products({"type": "id","value": "9"}).checkParams();
6
6
  expect(params).toEqual({"opinions":[{"shopId":1,"rating":"5","products":{"type":"id","value":"9"}}]});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("postProductsProductsToFacebookCatalogProducts", () => {
5
- const params = idosell().postProductsProductsToFacebookCatalog.facebookCatalogId(1).shopId(1).products([9]).getParams();
5
+ const params = idosell().postProductsProductsToFacebookCatalog.facebookCatalogId(1).shopId(1).products([9]).checkParams();
6
6
  expect(params).toEqual({"facebookCatalogId":1,"shopId":1,"products":[9]});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("postProductsProductsToPromotionProducts", () => {
5
- const params = idosell().postProductsProductsToPromotion.promotionId(2).products([11]).getParams();
5
+ const params = idosell().postProductsProductsToPromotion.promotionId(2).products([11]).checkParams();
6
6
  expect(params).toEqual({"promotionId":2,"products":[11]});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("postProductsRestoreProductId", () => {
5
- const params = idosell().postProductsRestore.productId(44).getParams();
5
+ const params = idosell().postProductsRestore.productId(44).checkParams();
6
6
  expect(params).toEqual({"productId":44});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("postRefundsAddAutomaticRefundSourceType", () => {
5
- const params = idosell().postRefundsAddAutomaticRefund.sourceId(1).sourceType("return").getParams();
5
+ const params = idosell().postRefundsAddAutomaticRefund.sourceId(1).sourceType("return").checkParams();
6
6
  expect(params).toEqual({"sourceId":1,"sourceType":"return"});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("postRefundsAddAutomaticRefundForOrderRefundValue", () => {
5
- const params = idosell().postRefundsAddAutomaticRefundForOrder.sourceId(1).paymentId("1-1").refundCurrency("PLN").refundValue(100).getParams();
5
+ const params = idosell().postRefundsAddAutomaticRefundForOrder.sourceId(1).paymentId("1-1").refundCurrency("PLN").refundValue(100).checkParams();
6
6
  expect(params).toEqual({"sourceId":1,"paymentId":"1-1","refundCurrency":"PLN","refundValue":100});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("postRefundsAddManualRefundRefundDetails", () => {
5
- const params = idosell().postRefundsAddManualRefund.sourceType("order").sourceId(9).refundValue(100).refundCurrency("PLN").refundDetails({"paymentFormId": 0,"paymentSystem": 27}).getParams();
5
+ const params = idosell().postRefundsAddManualRefund.sourceType("order").sourceId(9).refundValue(100).refundCurrency("PLN").refundDetails({"paymentFormId": 0,"paymentSystem": 27}).checkParams();
6
6
  expect(params).toEqual({"sourceType":"order","sourceId":9,"refundValue":100,"refundCurrency":"PLN","refundDetails":{"paymentFormId":0,"paymentSystem":27}});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("postResponsibilityEntitiesType", () => {
5
- const params = idosell().postResponsibilityEntities.code("XO").name("XO ltd.").mail("xo@mail.com").street("XO st").number(1).subnumber(1).zipcode("00-000").city("Warszawa").country("PL").type("producer").getParams();
5
+ const params = idosell().postResponsibilityEntities.code("XO").name("XO ltd.").mail("xo@mail.com").street("XO st").number(1).subnumber(1).zipcode("00-000").city("Warszawa").country("PL").type("producer").checkParams();
6
6
  expect(params).toEqual({"entities":[{"code":"XO","name":"XO ltd.","mail":"xo@mail.com","street":"XO st","number":1,"subnumber":1,"zipcode":"00-000","city":"Warszawa","country":"PL"}],"type":"producer"});
7
7
  })
@@ -2,11 +2,11 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("postReturnsFull", () => {
5
- const params = idosell().postReturns.order_sn(4).stock_id(1).getParams();
5
+ const params = idosell().postReturns.order_sn(4).stock_id(1).checkParams();
6
6
  expect(params).toEqual({"order_sn":4,"stock_id":1});
7
7
  })
8
8
 
9
9
  test("postReturnsWithProduct", () => {
10
- const params = idosell().postReturns.order_sn(4).stock_id(1).id(7).size("U").quantity(1).getParams();
10
+ const params = idosell().postReturns.order_sn(4).stock_id(1).id(7).size("U").quantity(1).checkParams();
11
11
  expect(params).toEqual({"order_sn":4,"stock_id":1,"products":[{"id":7,"size":"U","quantity":1}]});
12
12
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("postSnippetsCampaign", () => {
5
- const params = idosell().postSnippets.name("snippet").campaign(2).getParams();
5
+ const params = idosell().postSnippets.name("snippet").campaign(2).checkParams();
6
6
  expect(params).toEqual({"snippets":[{"name":"snippet","campaign":2}]});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("postSnippetsCampaignShop", () => {
5
- const params = idosell().postSnippetsCampaign.name("camp").shop([1]).getParams();
5
+ const params = idosell().postSnippetsCampaign.name("camp").shop([1]).checkParams();
6
6
  expect(params).toEqual({"campaigns":[{"name":"camp","shop":[1]}]});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("postSnippetsCookiesDeliverer", () => {
5
- const params = idosell().postSnippetsCookies.snippetId(2).deliverer("custom").getParams();
5
+ const params = idosell().postSnippetsCookies.snippetId(2).deliverer("custom").checkParams();
6
6
  expect(params).toEqual({"cookies":[{"snippetId":2,"deliverer":"custom"}]});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("postVouchersName", () => {
5
- const params = idosell().postVouchers.typeId(9).number("V123456789").shops([1]).balance({ "amount":100, "currency":"PLN"}).name("MyVoucher").getParams();
5
+ const params = idosell().postVouchers.typeId(9).number("V123456789").shops([1]).balance({ "amount":100, "currency":"PLN"}).name("MyVoucher").checkParams();
6
6
  expect(params).toEqual({"vouchers":[{"typeId":9,"number":"V123456789","shops":[1],"balance":{"amount":100,"currency":"PLN"},"name":"MyVoucher"}]});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("postWarrantiesPeriod", () => {
5
- const params = idosell().postWarranties.name("Warranty").type("seller").period(123).getParams();
5
+ const params = idosell().postWarranties.name("Warranty").type("seller").period(123).checkParams();
6
6
  expect(params).toEqual({"warranties":[{"name":"Warranty","type":"seller","period":123}]});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("postWmsStocksdocumentsDocumentsStockId", () => {
5
- const params = idosell().postWmsStocksdocumentsDocuments.type("pz").stockId(1).getParams();
5
+ const params = idosell().postWmsStocksdocumentsDocuments.type("pz").stockId(1).checkParams();
6
6
  expect(params).toEqual({"type":"pz","stockId":1});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("postWmsStocksdocumentsProductsQuantity", () => {
5
- const params = idosell().postWmsStocksdocumentsProducts.type("pz").id(1).product(33).size("uniw").quantity(10).getParams();
5
+ const params = idosell().postWmsStocksdocumentsProducts.type("pz").id(1).product(33).size("uniw").quantity(10).checkParams();
6
6
  expect(params).toEqual({"type":"pz","id":1,"products":[{"product":33,"size":"uniw","quantity":10}]});
7
7
  })
@@ -2,11 +2,11 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("putClientsClientNote", () => {
5
- const params = idosell().putClients.clientLogin("iaisystem").clientNote("System").getParams();
5
+ const params = idosell().putClients.clientLogin("iaisystem").clientNote("System").checkParams();
6
6
  expect(params).toEqual({"clients":[{"clientLogin":"iaisystem","clientNote":"System"}]});
7
7
  })
8
8
 
9
9
  test("putClientsClientNoteMultiple", () => {
10
- const params = idosell().putClients.clientLogin("iaisystem").clientNote("System").append().clientLogin("iai_demo").clientNote("Demo").getParams();
10
+ const params = idosell().putClients.clientLogin("iaisystem").clientNote("System").append().clientLogin("iai_demo").clientNote("Demo").checkParams();
11
11
  expect(params).toEqual({"clients":[{"clientLogin":"iaisystem","clientNote":"System"},{"clientLogin":"iai_demo","clientNote":"Demo"}]});
12
12
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("putClientsDeliveryAddressClientDeliveryAddressZipCode", () => {
5
- const params = idosell().putClientsDeliveryAddress.clientLogin("iai_demo").clientDeliveryAddressId(11).shopsIds([1]).clientDeliveryAddressZipCode("11-111").getParams();
5
+ const params = idosell().putClientsDeliveryAddress.clientLogin("iai_demo").clientDeliveryAddressId(11).shopsIds([1]).clientDeliveryAddressZipCode("11-111").checkParams();
6
6
  expect(params).toEqual({"clients":[{"clientLogin":"iai_demo","clientDeliveryAddressId":11,"shopsIds":[1],"clientDeliveryAddressZipCode":"11-111"}]});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("putClientsExternalCodeCode_extern", () => {
5
- const params = idosell().putClientsExternalCode.client_login("iai_demo").code_extern("abc").getParams();
5
+ const params = idosell().putClientsExternalCode.client_login("iai_demo").code_extern("abc").checkParams();
6
6
  expect(params).toEqual({"client_login":"iai_demo","code_extern":"abc"});
7
7
  })
@@ -2,16 +2,16 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("putClientsGiftcardsName", () => {
5
- const params = idosell().putClientsGiftcards.id(23).name("My Card").getParams();
5
+ const params = idosell().putClientsGiftcards.id(23).name("My Card").checkParams();
6
6
  expect(params).toEqual({"giftCards":[{"id":23,"name":"My Card"}]});
7
7
  })
8
8
 
9
9
  test("putClientsGiftcardsAdd", () => {
10
- const params = idosell().putClientsGiftcards.id(23).add(10, "PLN").getParams();
10
+ const params = idosell().putClientsGiftcards.id(23).add(10, "PLN").checkParams();
11
11
  expect(params).toEqual({"giftCards":[{"id":23,"balance":{"amount":10,"currency":"PLN"},"balanceOperationType":"add"}]});
12
12
  })
13
13
 
14
14
  test("putClientsGiftcardsMultiple", () => {
15
- const params = idosell().putClientsGiftcards.id(23).set(100, "PLN").append().id(24).subtract(20).getParams();
15
+ const params = idosell().putClientsGiftcards.id(23).set(100, "PLN").append().id(24).subtract(20).checkParams();
16
16
  expect(params).toEqual({"giftCards":[{"id":23,"balance":{"amount":100,"currency":"PLN"},"balanceOperationType":"set"},{"id":24,"balance":{"amount":20,"currency":"PLN"},"balanceOperationType":"subtract"}]});
17
17
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("putClientsGiftcardsBlockNumber", () => {
5
- const params = idosell().putClientsGiftcardsBlock.id(23).number("Card23").getParams();
5
+ const params = idosell().putClientsGiftcardsBlock.id(23).number("Card23").checkParams();
6
6
  expect(params).toEqual({"giftCards":[{"id":23,"number":"Card23"}]});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("putClientsGiftcardsUnblockNumber", () => {
5
- const params = idosell().putClientsGiftcardsUnblock.id(23).number("Card23").getParams();
5
+ const params = idosell().putClientsGiftcardsUnblock.id(23).number("Card23").checkParams();
6
6
  expect(params).toEqual({"giftCards":[{"id":23,"number":"Card23"}]});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("putClientsMembershipCardsPin", () => {
5
- const params = idosell().putClientsMembershipCards.login("iai_demo").card_type(1).pin(9999).getParams();
5
+ const params = idosell().putClientsMembershipCards.login("iai_demo").card_type(1).pin(9999).checkParams();
6
6
  expect(params).toEqual({"login":"iai_demo","membership_cards":[{"card_type":1,"pin":9999}]});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("putClientsPayerAddressPayerAddressZipCode", () => {
5
- const params = idosell().putClientsPayerAddress.clientId("3").payerAddressId("1").payerAddressZipCode("11-111").getParams();
5
+ const params = idosell().putClientsPayerAddress.clientId("3").payerAddressId("1").payerAddressZipCode("11-111").checkParams();
6
6
  expect(params).toEqual({"payers":[{"clientId":"3","payerAddressId":"1","payerAddressZipCode":"11-111"}]});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("putClientsPricelistsPriceListName", () => {
5
- const params = idosell().putClientsPricelists.priceListId(200).priceListName("customprice").getParams();
5
+ const params = idosell().putClientsPricelists.priceListId(200).priceListName("customprice").checkParams();
6
6
  expect(params).toEqual({"priceListId":200,"priceListName":"customprice"});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("putClientsPricelistsClientsClientsIds", () => {
5
- const params = idosell().putClientsPricelistsClients.priceListId(200).clientsIds([9,10]).getParams();
5
+ const params = idosell().putClientsPricelistsClients.priceListId(200).clientsIds([9,10]).checkParams();
6
6
  expect(params).toEqual({"priceListId":200,"clientsIds":[9,10]});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("putClientsPricelistsProductsProducts", () => {
5
- const params = idosell().putClientsPricelistsProducts.priceListId(200).products({"productId": 9,"price": 10,"currencyId": "PLN"}).getParams();
5
+ const params = idosell().putClientsPricelistsProducts.priceListId(200).products({"productId": 9,"price": 10,"currencyId": "PLN"}).checkParams();
6
6
  expect(params).toEqual({"priceListId":200,"products":[{"productId":9,"price":10,"currencyId":"PLN"}]});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("putClientsPricelistsRenamePriceListName", () => {
5
- const params = idosell().putClientsPricelistsRename.priceListId(200).priceListName("pricing2").getParams();
5
+ const params = idosell().putClientsPricelistsRename.priceListId(200).priceListName("pricing2").checkParams();
6
6
  expect(params).toEqual({"priceListId":200,"priceListName":"pricing2"});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("putClientsPricesDiscountsDiscount_value", () => {
5
- const params = idosell().putClientsPricesDiscounts.discount_type("simple").customers({"customers_numbers": [9]}).discount_operating("sum_with_other_discounts_to_orders").discount_value(10).getParams();
5
+ const params = idosell().putClientsPricesDiscounts.discount_type("simple").customers({"customers_numbers": [9]}).discount_operating("sum_with_other_discounts_to_orders").discount_value(10).checkParams();
6
6
  expect(params).toEqual({"discount_type":"simple","customers":{"customers_numbers":[9]},"discount_operating":"sum_with_other_discounts_to_orders","discount_parameters":[{"discount_value":10}]});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("putClientsTagsTagValue", () => {
5
- const params = idosell().putClientsTags.clientId(3).tagId(1).operation("set").tagValue(123).getParams();
5
+ const params = idosell().putClientsTags.clientId(3).tagId(1).operation("set").tagValue(123).checkParams();
6
6
  expect(params).toEqual({"clientId":3,"clientTags":[{"tagId":1,"operation":"set","tagValue":123}]});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("putConfigVariablesItemId", () => {
5
- const params = idosell().putConfigVariables.type("snippets_campaign").key("cpax").value("abcdefg").itemId(1).getParams();
5
+ const params = idosell().putConfigVariables.type("snippets_campaign").key("cpax").value("abcdefg").itemId(1).checkParams();
6
6
  expect(params).toEqual({"variables":[{"type":"snippets_campaign","key":"cpax","value":"abcdefg","itemId":1}]});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("putCouriersPickupPointsServiceStatus", () => {
5
- const params = idosell().putCouriersPickupPoints.pickupPointId(1).courierId(100105).serviceStatus("out_of_service").getParams();
5
+ const params = idosell().putCouriersPickupPoints.pickupPointId(1).courierId(100105).serviceStatus("out_of_service").checkParams();
6
6
  expect(params).toEqual({"pickupPoints":[{"pickupPointId":1,"courierId":100105,"serviceStatus":"out_of_service"}]});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("putCpaName", () => {
5
- const params = idosell().putCpa.id(2).name("maincps").getParams();
5
+ const params = idosell().putCpa.id(2).name("maincps").checkParams();
6
6
  expect(params).toEqual({"cpa":[{"id":2,"name":"maincps"}]});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("putCpaCampaignName", () => {
5
- const params = idosell().putCpaCampaign.id(2).name("cps").getParams();
5
+ const params = idosell().putCpaCampaign.id(2).name("cps").checkParams();
6
6
  expect(params).toEqual({"campaigns":[{"id":2,"name":"cps"}]});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("putDeliveriesDefaultProfilesRetailProfileId", () => {
5
- const params = idosell().putDeliveriesDefaultProfiles.shopId(1).regionId(1143020169).retailProfileId(1118398155).getParams();
5
+ const params = idosell().putDeliveriesDefaultProfiles.shopId(1).regionId(1143020169).retailProfileId(1118398155).checkParams();
6
6
  expect(params).toEqual({"shopId":1,"regionId":1143020169,"retailProfileId":1118398155});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("putDiscountsGroupsDiscountGroupName", () => {
5
- const params = idosell().putDiscountsGroups.discountGroupId(201).discountGroupName("abcdefg").getParams();
5
+ const params = idosell().putDiscountsGroups.discountGroupId(201).discountGroupName("abcdefg").checkParams();
6
6
  expect(params).toEqual({"discountGroupId":201,"discountGroupName":"abcdefg"});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("putDiscountsGroupsProductsProducts", () => {
5
- const params = idosell().putDiscountsGroupsProducts.discountGroupId(206).products([{"id": 9,"price": 12,"currency": "PLN"}]).getParams();
5
+ const params = idosell().putDiscountsGroupsProducts.discountGroupId(206).products([{"id": 9,"price": 12,"currency": "PLN"}]).checkParams();
6
6
  expect(params).toEqual({"discountGroupId":206,"products":[{"id":9,"price":12,"currency":"PLN"}]});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("putDiscountsRebatesBlockCardCard_number", () => {
5
- const params = idosell().putDiscountsRebatesBlockCard.card_number("20171227-45").getParams();
5
+ const params = idosell().putDiscountsRebatesBlockCard.card_number("20171227-45").checkParams();
6
6
  expect(params).toEqual({"card_number":"20171227-45"});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("putDiscountsRebatesUnblockCardCard_number", () => {
5
- const params = idosell().putDiscountsRebatesUnblockCard.card_number("20171227-45").getParams();
5
+ const params = idosell().putDiscountsRebatesUnblockCard.card_number("20171227-45").checkParams();
6
6
  expect(params).toEqual({"card_number":"20171227-45"});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("putEntriesVisible", () => {
5
- const params = idosell().putEntries.entryId(1308134189).date("2023-12-21").shopId(1).visible("n").getParams();
5
+ const params = idosell().putEntries.entryId(1308134189).date("2023-12-21").shopId(1).visible("n").checkParams();
6
6
  expect(params).toEqual({"entryId":1308134189,"date":"2023-12-21","shopId":1,"visible":"n"});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("putMenuLang_data", () => {
5
- const params = idosell().putMenu.shop_id(1).menu_id(1).item_id("251").lang_data([{"lang_id": "pol","name": "new"}]).getParams();
5
+ const params = idosell().putMenu.shop_id(1).menu_id(1).item_id("251").lang_data([{"lang_id": "pol","name": "new"}]).checkParams();
6
6
  expect(params).toEqual({"menu_list":[{"shop_id":1,"menu_id":1,"item_id":"251","lang_data":[{"lang_id":"pol","name":"new"}]}]});
7
7
  })
@@ -2,11 +2,11 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("putMenuFilterMenuFiltersActive", () => {
5
- const params = idosell().putMenuFilter.shopId(1).languageId("pol").productMenuTreeId(1).productMenuNodeId(251).menuFiltersActive([{"menuFilterId": "pricerange_0","menuFilterName": "Cena"}]).getParams();
5
+ const params = idosell().putMenuFilter.shopId(1).languageId("pol").productMenuTreeId(1).productMenuNodeId(251).menuFiltersActive([{"menuFilterId": "pricerange_0","menuFilterName": "Cena"}]).checkParams();
6
6
  expect(params).toEqual({"shopId":1,"languageId":"pol","productMenuTreeId":1,"productMenuNodeId":251,"menuFiltersActive":[{"menuFilterId":"pricerange_0","menuFilterName":"Cena"}]});
7
7
  })
8
8
 
9
9
  test("putMenuFilterMenuFilterName", () => {
10
- const params = idosell().putMenuFilter.shopId(1).languageId("pol").productMenuTreeId(1).productMenuNodeId(251).menuFilterId("pricerange_0").menuFilterName("Cena").getParams();
10
+ const params = idosell().putMenuFilter.shopId(1).languageId("pol").productMenuTreeId(1).productMenuNodeId(251).menuFilterId("pricerange_0").menuFilterName("Cena").checkParams();
11
11
  expect(params).toEqual({"shopId":1,"languageId":"pol","productMenuTreeId":1,"productMenuNodeId":251,"menuFiltersActive":[{"menuFilterId":"pricerange_0","menuFilterName":"Cena"}]});
12
12
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("putMenuSortParent_id", () => {
5
- const params = idosell().putMenuSort.shop_id(1).menu_id(1).lang_id("pol").parent_id(1).getParams();
5
+ const params = idosell().putMenuSort.shop_id(1).menu_id(1).lang_id("pol").parent_id(1).checkParams();
6
6
  expect(params).toEqual({"menu_list":[{"shop_id":1,"menu_id":1,"lang_id":"pol","parent_id":1}]});
7
7
  })
@@ -2,6 +2,6 @@ import idosell from "./dist/index"
2
2
  import { expect, test } from "vitest"
3
3
 
4
4
  test("putOrdersOrderNote", () => {
5
- const params = idosell().putOrders.orderSerialNumber(9).orderNote("testmessage").getParams();
5
+ const params = idosell().putOrders.orderSerialNumber(9).orderNote("testmessage").checkParams();
6
6
  expect(params).toEqual({"orders":[{"orderSerialNumber":9,"orderNote":"testmessage"}]});
7
7
  })