beanie 0.2.0 → 0.2.2

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 (455) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +229 -12
  3. data/beanie.gemspec +1 -1
  4. data/docs/AddressBlock.md +8 -0
  5. data/docs/AddressBlockApi.md +175 -0
  6. data/docs/AddressBlockInput.md +8 -0
  7. data/docs/AddressBlocksApi.md +117 -0
  8. data/docs/BankAccount.md +3 -3
  9. data/docs/BankAccountApi.md +24 -3
  10. data/docs/BankAccountInput.md +2 -3
  11. data/docs/BankStatement.md +8 -0
  12. data/docs/BankStatementApi.md +175 -0
  13. data/docs/BankStatementData.md +8 -0
  14. data/docs/BankStatementDataInput.md +8 -0
  15. data/docs/BankStatementInput.md +8 -0
  16. data/docs/BankStatementsApi.md +117 -0
  17. data/docs/BeanieTask.md +8 -0
  18. data/docs/BeanieTaskApi.md +175 -0
  19. data/docs/BeanieTaskInput.md +8 -0
  20. data/docs/BeanieTasksApi.md +117 -0
  21. data/docs/BillOfMaterial.md +8 -0
  22. data/docs/BillOfMaterialApi.md +66 -0
  23. data/docs/BillOfMaterialInput.md +8 -0
  24. data/docs/BillOfMaterialsApi.md +175 -0
  25. data/docs/Billable.md +8 -0
  26. data/docs/BillableApi.md +175 -0
  27. data/docs/BillableInput.md +8 -0
  28. data/docs/BillablesApi.md +117 -0
  29. data/docs/BomItem.md +8 -0
  30. data/docs/BomItemInput.md +8 -0
  31. data/docs/CompaniesApi.md +63 -0
  32. data/docs/Company.md +8 -0
  33. data/docs/CompanyApi.md +63 -0
  34. data/docs/Customer.md +8 -0
  35. data/docs/CustomerAddress.md +8 -0
  36. data/docs/CustomerAddressApi.md +175 -0
  37. data/docs/CustomerAddressInput.md +8 -0
  38. data/docs/CustomerAddressesApi.md +117 -0
  39. data/docs/CustomerApi.md +175 -0
  40. data/docs/CustomerInput.md +8 -0
  41. data/docs/CustomerLedger.md +8 -0
  42. data/docs/CustomerLedgerInput.md +8 -0
  43. data/docs/CustomerNote.md +8 -0
  44. data/docs/CustomerNoteInput.md +8 -0
  45. data/docs/CustomersApi.md +117 -0
  46. data/docs/DeliveryNote.md +8 -0
  47. data/docs/DeliveryNoteApi.md +175 -0
  48. data/docs/DeliveryNoteInput.md +8 -0
  49. data/docs/DeliveryNoteItem.md +8 -0
  50. data/docs/DeliveryNoteItemInput.md +8 -0
  51. data/docs/DeliveryNotesApi.md +117 -0
  52. data/docs/Document.md +8 -0
  53. data/docs/DocumentApi.md +175 -0
  54. data/docs/DocumentInput.md +8 -0
  55. data/docs/DocumentsApi.md +117 -0
  56. data/docs/FixedAsset.md +8 -0
  57. data/docs/FixedAssetApi.md +175 -0
  58. data/docs/FixedAssetInput.md +8 -0
  59. data/docs/FixedAssetsApi.md +117 -0
  60. data/docs/Journal.md +8 -0
  61. data/docs/JournalApi.md +175 -0
  62. data/docs/JournalInput.md +8 -0
  63. data/docs/JournalItem.md +8 -0
  64. data/docs/JournalItemInput.md +8 -0
  65. data/docs/JournalsApi.md +117 -0
  66. data/docs/NominalAccount.md +8 -0
  67. data/docs/NominalAccountApi.md +175 -0
  68. data/docs/NominalAccountCategoriesApi.md +117 -0
  69. data/docs/NominalAccountCategory.md +8 -0
  70. data/docs/NominalAccountCategoryApi.md +175 -0
  71. data/docs/NominalAccountCategoryInput.md +8 -0
  72. data/docs/NominalAccountInput.md +8 -0
  73. data/docs/NominalAccountsApi.md +117 -0
  74. data/docs/Product.md +8 -0
  75. data/docs/ProductApi.md +175 -0
  76. data/docs/ProductCategoriesApi.md +117 -0
  77. data/docs/ProductCategory.md +8 -0
  78. data/docs/ProductCategoryApi.md +175 -0
  79. data/docs/ProductCategoryInput.md +8 -0
  80. data/docs/ProductInput.md +8 -0
  81. data/docs/ProductPrice.md +8 -0
  82. data/docs/ProductPriceApi.md +175 -0
  83. data/docs/ProductPriceInput.md +8 -0
  84. data/docs/ProductPricesApi.md +117 -0
  85. data/docs/ProductVariant.md +8 -0
  86. data/docs/ProductVariantApi.md +175 -0
  87. data/docs/ProductVariantInput.md +8 -0
  88. data/docs/ProductVariantsApi.md +117 -0
  89. data/docs/ProductionOrder.md +8 -0
  90. data/docs/ProductionOrderApi.md +175 -0
  91. data/docs/ProductionOrderInput.md +8 -0
  92. data/docs/ProductionOrderLog.md +8 -0
  93. data/docs/ProductionOrderLogInput.md +8 -0
  94. data/docs/ProductionOrdersApi.md +117 -0
  95. data/docs/ProductsApi.md +117 -0
  96. data/docs/PurchaseInvoice.md +8 -0
  97. data/docs/PurchaseInvoiceApi.md +175 -0
  98. data/docs/PurchaseInvoiceInput.md +8 -0
  99. data/docs/PurchaseInvoicesApi.md +117 -0
  100. data/docs/PurchaseOrder.md +8 -0
  101. data/docs/PurchaseOrderApi.md +175 -0
  102. data/docs/PurchaseOrderInput.md +8 -0
  103. data/docs/PurchaseOrderItem.md +8 -0
  104. data/docs/PurchaseOrderItemInput.md +8 -0
  105. data/docs/PurchaseOrdersApi.md +117 -0
  106. data/docs/ReceivedGoods.md +8 -0
  107. data/docs/ReceivedGoodsApi.md +175 -0
  108. data/docs/ReceivedGoodsInput.md +8 -0
  109. data/docs/SalesInvoice.md +8 -0
  110. data/docs/SalesInvoiceApi.md +175 -0
  111. data/docs/SalesInvoiceInput.md +8 -0
  112. data/docs/SalesInvoiceItem.md +8 -0
  113. data/docs/SalesInvoiceItemInput.md +8 -0
  114. data/docs/SalesInvoicesApi.md +117 -0
  115. data/docs/SalesOrder.md +8 -0
  116. data/docs/SalesOrderApi.md +175 -0
  117. data/docs/SalesOrderInput.md +8 -0
  118. data/docs/SalesOrderItem.md +8 -0
  119. data/docs/SalesOrderItemInput.md +8 -0
  120. data/docs/SalesOrdersApi.md +117 -0
  121. data/docs/ShippingCentre.md +8 -0
  122. data/docs/ShippingCentreApi.md +175 -0
  123. data/docs/ShippingCentreInput.md +8 -0
  124. data/docs/ShippingCentresApi.md +117 -0
  125. data/docs/StockAdjustment.md +8 -0
  126. data/docs/StockAdjustmentApi.md +175 -0
  127. data/docs/StockAdjustmentInput.md +8 -0
  128. data/docs/StockAdjustmentsApi.md +117 -0
  129. data/docs/StockCategoriesApi.md +117 -0
  130. data/docs/StockCategory.md +8 -0
  131. data/docs/StockCategoryApi.md +175 -0
  132. data/docs/StockCategoryInput.md +8 -0
  133. data/docs/StockImage.md +8 -0
  134. data/docs/StockImageApi.md +175 -0
  135. data/docs/StockImageInput.md +8 -0
  136. data/docs/StockImagesApi.md +117 -0
  137. data/docs/StockItem.md +8 -0
  138. data/docs/StockItemApi.md +175 -0
  139. data/docs/StockItemInput.md +8 -0
  140. data/docs/StockItemsApi.md +117 -0
  141. data/docs/StockLocation.md +8 -0
  142. data/docs/StockLocationApi.md +175 -0
  143. data/docs/StockLocationInput.md +8 -0
  144. data/docs/StockLocationsApi.md +117 -0
  145. data/docs/StockSupplier.md +8 -0
  146. data/docs/StockSupplierApi.md +175 -0
  147. data/docs/StockSupplierInput.md +8 -0
  148. data/docs/StockSuppliersApi.md +117 -0
  149. data/docs/Supplier.md +8 -0
  150. data/docs/SupplierAddress.md +8 -0
  151. data/docs/SupplierAddressApi.md +175 -0
  152. data/docs/SupplierAddressInput.md +8 -0
  153. data/docs/SupplierAddressesApi.md +117 -0
  154. data/docs/SupplierApi.md +175 -0
  155. data/docs/SupplierInput.md +8 -0
  156. data/docs/SupplierNote.md +8 -0
  157. data/docs/SupplierNoteInput.md +8 -0
  158. data/docs/SuppliersApi.md +117 -0
  159. data/docs/VatRecord.md +8 -0
  160. data/docs/VatRecordApi.md +175 -0
  161. data/docs/VatRecordInput.md +9 -0
  162. data/docs/VatRecordsApi.md +117 -0
  163. data/docs/VatReturn.md +8 -0
  164. data/docs/VatReturnApi.md +175 -0
  165. data/docs/VatReturnInput.md +8 -0
  166. data/docs/VatReturnsApi.md +117 -0
  167. data/docs/WorkCentre.md +8 -0
  168. data/docs/WorkCentreApi.md +175 -0
  169. data/docs/WorkCentreGroup.md +8 -0
  170. data/docs/WorkCentreGroupApi.md +175 -0
  171. data/docs/WorkCentreGroupInput.md +8 -0
  172. data/docs/WorkCentreGroupsApi.md +117 -0
  173. data/docs/WorkCentreInput.md +8 -0
  174. data/docs/WorkCentresApi.md +117 -0
  175. data/lib/beanie.rb +135 -3
  176. data/lib/beanie/api/address_block_api.rb +183 -0
  177. data/lib/beanie/api/bank_account_api.rb +4 -4
  178. data/lib/beanie/api/bank_statement_api.rb +183 -0
  179. data/lib/beanie/api/beanie_task_api.rb +183 -0
  180. data/lib/beanie/api/bill_of_materials_api.rb +183 -0
  181. data/lib/beanie/api/billable_api.rb +183 -0
  182. data/lib/beanie/api/company_api.rb +77 -0
  183. data/lib/beanie/api/customer_address_api.rb +183 -0
  184. data/lib/beanie/api/customer_api.rb +183 -0
  185. data/lib/beanie/api/delivery_note_api.rb +183 -0
  186. data/lib/beanie/api/document_api.rb +183 -0
  187. data/lib/beanie/api/fixed_asset_api.rb +183 -0
  188. data/lib/beanie/api/journal_api.rb +183 -0
  189. data/lib/beanie/api/nominal_account_api.rb +183 -0
  190. data/lib/beanie/api/nominal_account_category_api.rb +183 -0
  191. data/lib/beanie/api/product_api.rb +183 -0
  192. data/lib/beanie/api/product_category_api.rb +183 -0
  193. data/lib/beanie/api/product_price_api.rb +183 -0
  194. data/lib/beanie/api/product_variant_api.rb +183 -0
  195. data/lib/beanie/api/production_order_api.rb +183 -0
  196. data/lib/beanie/api/purchase_invoice_api.rb +183 -0
  197. data/lib/beanie/api/purchase_order_api.rb +183 -0
  198. data/lib/beanie/api/received_goods_api.rb +183 -0
  199. data/lib/beanie/api/sales_invoice_api.rb +183 -0
  200. data/lib/beanie/api/sales_order_api.rb +183 -0
  201. data/lib/beanie/api/shipping_centre_api.rb +183 -0
  202. data/lib/beanie/api/stock_adjustment_api.rb +183 -0
  203. data/lib/beanie/api/stock_category_api.rb +183 -0
  204. data/lib/beanie/api/stock_image_api.rb +183 -0
  205. data/lib/beanie/api/stock_item_api.rb +183 -0
  206. data/lib/beanie/api/stock_location_api.rb +183 -0
  207. data/lib/beanie/api/stock_supplier_api.rb +183 -0
  208. data/lib/beanie/api/supplier_address_api.rb +183 -0
  209. data/lib/beanie/api/supplier_api.rb +183 -0
  210. data/lib/beanie/api/vat_record_api.rb +183 -0
  211. data/lib/beanie/api/vat_return_api.rb +183 -0
  212. data/lib/beanie/api/work_centre_api.rb +183 -0
  213. data/lib/beanie/api/work_centre_group_api.rb +183 -0
  214. data/lib/beanie/api_client.rb +3 -2
  215. data/lib/beanie/api_error.rb +1 -1
  216. data/lib/beanie/configuration.rb +8 -1
  217. data/lib/beanie/models/address_block.rb +188 -0
  218. data/lib/beanie/models/address_block_input.rb +188 -0
  219. data/lib/beanie/models/bank_account.rb +34 -35
  220. data/lib/beanie/models/bank_account_input.rb +23 -31
  221. data/lib/beanie/models/bank_statement.rb +188 -0
  222. data/lib/beanie/models/bank_statement_data.rb +188 -0
  223. data/lib/beanie/models/bank_statement_data_input.rb +188 -0
  224. data/lib/beanie/models/bank_statement_input.rb +188 -0
  225. data/lib/beanie/models/beanie_task.rb +188 -0
  226. data/lib/beanie/models/beanie_task_input.rb +188 -0
  227. data/lib/beanie/models/bill_of_material.rb +188 -0
  228. data/lib/beanie/models/bill_of_material_input.rb +188 -0
  229. data/lib/beanie/models/billable.rb +188 -0
  230. data/lib/beanie/models/billable_input.rb +188 -0
  231. data/lib/beanie/models/bom_item.rb +188 -0
  232. data/lib/beanie/models/bom_item_input.rb +188 -0
  233. data/lib/beanie/models/company.rb +188 -0
  234. data/lib/beanie/models/customer.rb +188 -0
  235. data/lib/beanie/models/customer_address.rb +188 -0
  236. data/lib/beanie/models/customer_address_input.rb +188 -0
  237. data/lib/beanie/models/customer_input.rb +188 -0
  238. data/lib/beanie/models/customer_ledger.rb +188 -0
  239. data/lib/beanie/models/customer_ledger_input.rb +188 -0
  240. data/lib/beanie/models/customer_note.rb +188 -0
  241. data/lib/beanie/models/customer_note_input.rb +188 -0
  242. data/lib/beanie/models/delivery_note.rb +188 -0
  243. data/lib/beanie/models/delivery_note_input.rb +188 -0
  244. data/lib/beanie/models/delivery_note_item.rb +188 -0
  245. data/lib/beanie/models/delivery_note_item_input.rb +188 -0
  246. data/lib/beanie/models/document.rb +188 -0
  247. data/lib/beanie/models/document_input.rb +188 -0
  248. data/lib/beanie/models/error_model.rb +1 -1
  249. data/lib/beanie/models/fixed_asset.rb +188 -0
  250. data/lib/beanie/models/fixed_asset_input.rb +188 -0
  251. data/lib/beanie/models/journal.rb +188 -0
  252. data/lib/beanie/models/journal_input.rb +188 -0
  253. data/lib/beanie/models/journal_item.rb +188 -0
  254. data/lib/beanie/models/journal_item_input.rb +188 -0
  255. data/lib/beanie/models/nominal_account.rb +188 -0
  256. data/lib/beanie/models/nominal_account_category.rb +188 -0
  257. data/lib/beanie/models/nominal_account_category_input.rb +188 -0
  258. data/lib/beanie/models/nominal_account_input.rb +188 -0
  259. data/lib/beanie/models/product.rb +188 -0
  260. data/lib/beanie/models/product_category.rb +188 -0
  261. data/lib/beanie/models/product_category_input.rb +188 -0
  262. data/lib/beanie/models/product_input.rb +188 -0
  263. data/lib/beanie/models/product_price.rb +188 -0
  264. data/lib/beanie/models/product_price_input.rb +188 -0
  265. data/lib/beanie/models/product_variant.rb +188 -0
  266. data/lib/beanie/models/product_variant_input.rb +188 -0
  267. data/lib/beanie/models/production_order.rb +188 -0
  268. data/lib/beanie/models/production_order_input.rb +188 -0
  269. data/lib/beanie/models/production_order_log.rb +188 -0
  270. data/lib/beanie/models/production_order_log_input.rb +188 -0
  271. data/lib/beanie/models/purchase_invoice.rb +188 -0
  272. data/lib/beanie/models/purchase_invoice_input.rb +188 -0
  273. data/lib/beanie/models/purchase_order.rb +188 -0
  274. data/lib/beanie/models/purchase_order_input.rb +188 -0
  275. data/lib/beanie/models/purchase_order_item.rb +188 -0
  276. data/lib/beanie/models/purchase_order_item_input.rb +188 -0
  277. data/lib/beanie/models/received_goods.rb +188 -0
  278. data/lib/beanie/models/received_goods_input.rb +188 -0
  279. data/lib/beanie/models/sales_invoice.rb +188 -0
  280. data/lib/beanie/models/sales_invoice_input.rb +188 -0
  281. data/lib/beanie/models/sales_invoice_item.rb +188 -0
  282. data/lib/beanie/models/sales_invoice_item_input.rb +188 -0
  283. data/lib/beanie/models/sales_order.rb +188 -0
  284. data/lib/beanie/models/sales_order_input.rb +188 -0
  285. data/lib/beanie/models/sales_order_item.rb +188 -0
  286. data/lib/beanie/models/sales_order_item_input.rb +188 -0
  287. data/lib/beanie/models/shipping_centre.rb +188 -0
  288. data/lib/beanie/models/shipping_centre_input.rb +188 -0
  289. data/lib/beanie/models/stock_adjustment.rb +188 -0
  290. data/lib/beanie/models/stock_adjustment_input.rb +188 -0
  291. data/lib/beanie/models/stock_category.rb +188 -0
  292. data/lib/beanie/models/stock_category_input.rb +188 -0
  293. data/lib/beanie/models/stock_image.rb +188 -0
  294. data/lib/beanie/models/stock_image_input.rb +188 -0
  295. data/lib/beanie/models/stock_item.rb +188 -0
  296. data/lib/beanie/models/stock_item_input.rb +188 -0
  297. data/lib/beanie/models/stock_location.rb +188 -0
  298. data/lib/beanie/models/stock_location_input.rb +188 -0
  299. data/lib/beanie/models/stock_supplier.rb +188 -0
  300. data/lib/beanie/models/stock_supplier_input.rb +188 -0
  301. data/lib/beanie/models/supplier.rb +188 -0
  302. data/lib/beanie/models/supplier_address.rb +188 -0
  303. data/lib/beanie/models/supplier_address_input.rb +188 -0
  304. data/lib/beanie/models/supplier_input.rb +188 -0
  305. data/lib/beanie/models/supplier_note.rb +188 -0
  306. data/lib/beanie/models/supplier_note_input.rb +188 -0
  307. data/lib/beanie/models/vat_record.rb +188 -0
  308. data/lib/beanie/models/vat_record_input.rb +202 -0
  309. data/lib/beanie/models/vat_return.rb +188 -0
  310. data/lib/beanie/models/vat_return_input.rb +188 -0
  311. data/lib/beanie/models/work_centre.rb +188 -0
  312. data/lib/beanie/models/work_centre_group.rb +188 -0
  313. data/lib/beanie/models/work_centre_group_input.rb +188 -0
  314. data/lib/beanie/models/work_centre_input.rb +188 -0
  315. data/lib/beanie/version.rb +2 -2
  316. data/spec/api/address_block_api_spec.rb +71 -0
  317. data/spec/api/bank_account_api_spec.rb +1 -1
  318. data/spec/api/bank_statement_api_spec.rb +71 -0
  319. data/spec/api/beanie_task_api_spec.rb +71 -0
  320. data/spec/api/bill_of_materials_api_spec.rb +71 -0
  321. data/spec/api/billable_api_spec.rb +71 -0
  322. data/spec/api/company_api_spec.rb +47 -0
  323. data/spec/api/customer_address_api_spec.rb +71 -0
  324. data/spec/api/customer_api_spec.rb +71 -0
  325. data/spec/api/delivery_note_api_spec.rb +71 -0
  326. data/spec/api/document_api_spec.rb +71 -0
  327. data/spec/api/fixed_asset_api_spec.rb +71 -0
  328. data/spec/api/journal_api_spec.rb +71 -0
  329. data/spec/api/nominal_account_api_spec.rb +71 -0
  330. data/spec/api/nominal_account_category_api_spec.rb +71 -0
  331. data/spec/api/product_api_spec.rb +71 -0
  332. data/spec/api/product_category_api_spec.rb +71 -0
  333. data/spec/api/product_price_api_spec.rb +71 -0
  334. data/spec/api/product_variant_api_spec.rb +71 -0
  335. data/spec/api/production_order_api_spec.rb +71 -0
  336. data/spec/api/purchase_invoice_api_spec.rb +71 -0
  337. data/spec/api/purchase_order_api_spec.rb +71 -0
  338. data/spec/api/received_goods_api_spec.rb +71 -0
  339. data/spec/api/sales_invoice_api_spec.rb +71 -0
  340. data/spec/api/sales_order_api_spec.rb +71 -0
  341. data/spec/api/shipping_centre_api_spec.rb +71 -0
  342. data/spec/api/stock_adjustment_api_spec.rb +71 -0
  343. data/spec/api/stock_category_api_spec.rb +71 -0
  344. data/spec/api/stock_image_api_spec.rb +71 -0
  345. data/spec/api/stock_item_api_spec.rb +71 -0
  346. data/spec/api/stock_location_api_spec.rb +71 -0
  347. data/spec/api/stock_supplier_api_spec.rb +71 -0
  348. data/spec/api/supplier_address_api_spec.rb +71 -0
  349. data/spec/api/supplier_api_spec.rb +71 -0
  350. data/spec/api/vat_record_api_spec.rb +71 -0
  351. data/spec/api/vat_return_api_spec.rb +71 -0
  352. data/spec/api/work_centre_api_spec.rb +71 -0
  353. data/spec/api/work_centre_group_api_spec.rb +71 -0
  354. data/spec/api_client_spec.rb +1 -1
  355. data/spec/configuration_spec.rb +1 -1
  356. data/spec/models/address_block_input_spec.rb +41 -0
  357. data/spec/models/address_block_spec.rb +41 -0
  358. data/spec/models/bank_account_input_spec.rb +3 -9
  359. data/spec/models/bank_account_spec.rb +9 -9
  360. data/spec/models/bank_statement_data_input_spec.rb +41 -0
  361. data/spec/models/bank_statement_data_spec.rb +41 -0
  362. data/spec/models/bank_statement_input_spec.rb +41 -0
  363. data/spec/models/bank_statement_spec.rb +41 -0
  364. data/spec/models/beanie_task_input_spec.rb +41 -0
  365. data/spec/models/beanie_task_spec.rb +41 -0
  366. data/spec/models/bill_of_material_input_spec.rb +41 -0
  367. data/spec/models/bill_of_material_spec.rb +41 -0
  368. data/spec/models/billable_input_spec.rb +41 -0
  369. data/spec/models/billable_spec.rb +41 -0
  370. data/spec/models/bom_item_input_spec.rb +41 -0
  371. data/spec/models/bom_item_spec.rb +41 -0
  372. data/spec/models/company_spec.rb +41 -0
  373. data/spec/models/customer_address_input_spec.rb +41 -0
  374. data/spec/models/customer_address_spec.rb +41 -0
  375. data/spec/models/customer_input_spec.rb +41 -0
  376. data/spec/models/customer_ledger_input_spec.rb +41 -0
  377. data/spec/models/customer_ledger_spec.rb +41 -0
  378. data/spec/models/customer_note_input_spec.rb +41 -0
  379. data/spec/models/customer_note_spec.rb +41 -0
  380. data/spec/models/customer_spec.rb +41 -0
  381. data/spec/models/delivery_note_input_spec.rb +41 -0
  382. data/spec/models/delivery_note_item_input_spec.rb +41 -0
  383. data/spec/models/delivery_note_item_spec.rb +41 -0
  384. data/spec/models/delivery_note_spec.rb +41 -0
  385. data/spec/models/document_input_spec.rb +41 -0
  386. data/spec/models/document_spec.rb +41 -0
  387. data/spec/models/error_model_spec.rb +1 -1
  388. data/spec/models/fixed_asset_input_spec.rb +41 -0
  389. data/spec/models/fixed_asset_spec.rb +41 -0
  390. data/spec/models/journal_input_spec.rb +41 -0
  391. data/spec/models/journal_item_input_spec.rb +41 -0
  392. data/spec/models/journal_item_spec.rb +41 -0
  393. data/spec/models/journal_spec.rb +41 -0
  394. data/spec/models/nominal_account_category_input_spec.rb +41 -0
  395. data/spec/models/nominal_account_category_spec.rb +41 -0
  396. data/spec/models/nominal_account_input_spec.rb +41 -0
  397. data/spec/models/nominal_account_spec.rb +41 -0
  398. data/spec/models/product_category_input_spec.rb +41 -0
  399. data/spec/models/product_category_spec.rb +41 -0
  400. data/spec/models/product_input_spec.rb +41 -0
  401. data/spec/models/product_price_input_spec.rb +41 -0
  402. data/spec/models/product_price_spec.rb +41 -0
  403. data/spec/models/product_spec.rb +41 -0
  404. data/spec/models/product_variant_input_spec.rb +41 -0
  405. data/spec/models/product_variant_spec.rb +41 -0
  406. data/spec/models/production_order_input_spec.rb +41 -0
  407. data/spec/models/production_order_log_input_spec.rb +41 -0
  408. data/spec/models/production_order_log_spec.rb +41 -0
  409. data/spec/models/production_order_spec.rb +41 -0
  410. data/spec/models/purchase_invoice_input_spec.rb +41 -0
  411. data/spec/models/purchase_invoice_spec.rb +41 -0
  412. data/spec/models/purchase_order_input_spec.rb +41 -0
  413. data/spec/models/purchase_order_item_input_spec.rb +41 -0
  414. data/spec/models/purchase_order_item_spec.rb +41 -0
  415. data/spec/models/purchase_order_spec.rb +41 -0
  416. data/spec/models/received_goods_input_spec.rb +41 -0
  417. data/spec/models/received_goods_spec.rb +41 -0
  418. data/spec/models/sales_invoice_input_spec.rb +41 -0
  419. data/spec/models/sales_invoice_item_input_spec.rb +41 -0
  420. data/spec/models/sales_invoice_item_spec.rb +41 -0
  421. data/spec/models/sales_invoice_spec.rb +41 -0
  422. data/spec/models/sales_order_input_spec.rb +41 -0
  423. data/spec/models/sales_order_item_input_spec.rb +41 -0
  424. data/spec/models/sales_order_item_spec.rb +41 -0
  425. data/spec/models/sales_order_spec.rb +41 -0
  426. data/spec/models/shipping_centre_input_spec.rb +41 -0
  427. data/spec/models/shipping_centre_spec.rb +41 -0
  428. data/spec/models/stock_adjustment_input_spec.rb +41 -0
  429. data/spec/models/stock_adjustment_spec.rb +41 -0
  430. data/spec/models/stock_category_input_spec.rb +41 -0
  431. data/spec/models/stock_category_spec.rb +41 -0
  432. data/spec/models/stock_image_input_spec.rb +41 -0
  433. data/spec/models/stock_image_spec.rb +41 -0
  434. data/spec/models/stock_item_input_spec.rb +41 -0
  435. data/spec/models/stock_item_spec.rb +41 -0
  436. data/spec/models/stock_location_input_spec.rb +41 -0
  437. data/spec/models/stock_location_spec.rb +41 -0
  438. data/spec/models/stock_supplier_input_spec.rb +41 -0
  439. data/spec/models/stock_supplier_spec.rb +41 -0
  440. data/spec/models/supplier_address_input_spec.rb +41 -0
  441. data/spec/models/supplier_address_spec.rb +41 -0
  442. data/spec/models/supplier_input_spec.rb +41 -0
  443. data/spec/models/supplier_note_input_spec.rb +41 -0
  444. data/spec/models/supplier_note_spec.rb +41 -0
  445. data/spec/models/supplier_spec.rb +41 -0
  446. data/spec/models/vat_record_input_spec.rb +47 -0
  447. data/spec/models/vat_record_spec.rb +41 -0
  448. data/spec/models/vat_return_input_spec.rb +41 -0
  449. data/spec/models/vat_return_spec.rb +41 -0
  450. data/spec/models/work_centre_group_input_spec.rb +41 -0
  451. data/spec/models/work_centre_group_spec.rb +41 -0
  452. data/spec/models/work_centre_input_spec.rb +41 -0
  453. data/spec/models/work_centre_spec.rb +41 -0
  454. data/spec/spec_helper.rb +1 -1
  455. metadata +565 -1
@@ -0,0 +1,71 @@
1
+ =begin
2
+ #Beanie ERP API
3
+
4
+ #An API specification for interacting with the Beanie ERP system
5
+
6
+ OpenAPI spec version: 0.2
7
+ Contact: dev@bean.ie
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for Beanie::ProductApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'ProductApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = Beanie::ProductApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of ProductApi' do
30
+ it 'should create an instance of ProductApi' do
31
+ expect(@instance).to be_instance_of(Beanie::ProductApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for add_product
36
+ # Creates a new product in the system
37
+ # @param products Product to add to the system
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [Product]
40
+ describe 'add_product test' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ # unit tests for find_product_by_id
47
+ # Find Product by ID
48
+ # Returns a single product if the user has access
49
+ # @param id ID of product to fetch
50
+ # @param [Hash] opts the optional parameters
51
+ # @return [Product]
52
+ describe 'find_product_by_id test' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ # unit tests for find_products
59
+ # All product
60
+ # Returns all product from the system that the user has access to
61
+ # @param [Hash] opts the optional parameters
62
+ # @option opts [Array<String>] :tags tags to filter by
63
+ # @option opts [Integer] :limit Maximum number of results to return
64
+ # @return [Array<Product>]
65
+ describe 'find_products test' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ end
@@ -0,0 +1,71 @@
1
+ =begin
2
+ #Beanie ERP API
3
+
4
+ #An API specification for interacting with the Beanie ERP system
5
+
6
+ OpenAPI spec version: 0.2
7
+ Contact: dev@bean.ie
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for Beanie::ProductCategoryApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'ProductCategoryApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = Beanie::ProductCategoryApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of ProductCategoryApi' do
30
+ it 'should create an instance of ProductCategoryApi' do
31
+ expect(@instance).to be_instance_of(Beanie::ProductCategoryApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for add_product_category
36
+ # Creates a new product category in the system
37
+ # @param product_categories Product category to add to the system
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [ProductCategory]
40
+ describe 'add_product_category test' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ # unit tests for find_product_categories
47
+ # All product category
48
+ # Returns all product category from the system that the user has access to
49
+ # @param [Hash] opts the optional parameters
50
+ # @option opts [Array<String>] :tags tags to filter by
51
+ # @option opts [Integer] :limit Maximum number of results to return
52
+ # @return [Array<ProductCategory>]
53
+ describe 'find_product_categories test' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ # unit tests for find_product_category_by_id
60
+ # Find Product category by ID
61
+ # Returns a single product category if the user has access
62
+ # @param id ID of product category to fetch
63
+ # @param [Hash] opts the optional parameters
64
+ # @return [ProductCategory]
65
+ describe 'find_product_category_by_id test' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ end
@@ -0,0 +1,71 @@
1
+ =begin
2
+ #Beanie ERP API
3
+
4
+ #An API specification for interacting with the Beanie ERP system
5
+
6
+ OpenAPI spec version: 0.2
7
+ Contact: dev@bean.ie
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for Beanie::ProductPriceApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'ProductPriceApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = Beanie::ProductPriceApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of ProductPriceApi' do
30
+ it 'should create an instance of ProductPriceApi' do
31
+ expect(@instance).to be_instance_of(Beanie::ProductPriceApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for add_product_price
36
+ # Creates a new product price in the system
37
+ # @param product_prices Product price to add to the system
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [ProductPrice]
40
+ describe 'add_product_price test' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ # unit tests for find_product_price_by_id
47
+ # Find Product price by ID
48
+ # Returns a single product price if the user has access
49
+ # @param id ID of product price to fetch
50
+ # @param [Hash] opts the optional parameters
51
+ # @return [ProductPrice]
52
+ describe 'find_product_price_by_id test' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ # unit tests for find_product_prices
59
+ # All product price
60
+ # Returns all product price from the system that the user has access to
61
+ # @param [Hash] opts the optional parameters
62
+ # @option opts [Array<String>] :tags tags to filter by
63
+ # @option opts [Integer] :limit Maximum number of results to return
64
+ # @return [Array<ProductPrice>]
65
+ describe 'find_product_prices test' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ end
@@ -0,0 +1,71 @@
1
+ =begin
2
+ #Beanie ERP API
3
+
4
+ #An API specification for interacting with the Beanie ERP system
5
+
6
+ OpenAPI spec version: 0.2
7
+ Contact: dev@bean.ie
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for Beanie::ProductVariantApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'ProductVariantApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = Beanie::ProductVariantApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of ProductVariantApi' do
30
+ it 'should create an instance of ProductVariantApi' do
31
+ expect(@instance).to be_instance_of(Beanie::ProductVariantApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for add_product_variant
36
+ # Creates a new product variant in the system
37
+ # @param product_variants Product variant to add to the system
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [ProductVariant]
40
+ describe 'add_product_variant test' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ # unit tests for find_product_variant_by_id
47
+ # Find Product variant by ID
48
+ # Returns a single product variant if the user has access
49
+ # @param id ID of product variant to fetch
50
+ # @param [Hash] opts the optional parameters
51
+ # @return [ProductVariant]
52
+ describe 'find_product_variant_by_id test' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ # unit tests for find_product_variants
59
+ # All product variant
60
+ # Returns all product variant from the system that the user has access to
61
+ # @param [Hash] opts the optional parameters
62
+ # @option opts [Array<String>] :tags tags to filter by
63
+ # @option opts [Integer] :limit Maximum number of results to return
64
+ # @return [Array<ProductVariant>]
65
+ describe 'find_product_variants test' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ end
@@ -0,0 +1,71 @@
1
+ =begin
2
+ #Beanie ERP API
3
+
4
+ #An API specification for interacting with the Beanie ERP system
5
+
6
+ OpenAPI spec version: 0.2
7
+ Contact: dev@bean.ie
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for Beanie::ProductionOrderApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'ProductionOrderApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = Beanie::ProductionOrderApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of ProductionOrderApi' do
30
+ it 'should create an instance of ProductionOrderApi' do
31
+ expect(@instance).to be_instance_of(Beanie::ProductionOrderApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for add_production_order
36
+ # Creates a new production order in the system
37
+ # @param production_orders Production order to add to the system
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [ProductionOrder]
40
+ describe 'add_production_order test' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ # unit tests for find_production_order_by_id
47
+ # Find Production order by ID
48
+ # Returns a single production order if the user has access
49
+ # @param id ID of production order to fetch
50
+ # @param [Hash] opts the optional parameters
51
+ # @return [ProductionOrder]
52
+ describe 'find_production_order_by_id test' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ # unit tests for find_production_orders
59
+ # All production order
60
+ # Returns all production order from the system that the user has access to
61
+ # @param [Hash] opts the optional parameters
62
+ # @option opts [Array<String>] :tags tags to filter by
63
+ # @option opts [Integer] :limit Maximum number of results to return
64
+ # @return [Array<ProductionOrder>]
65
+ describe 'find_production_orders test' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ end
@@ -0,0 +1,71 @@
1
+ =begin
2
+ #Beanie ERP API
3
+
4
+ #An API specification for interacting with the Beanie ERP system
5
+
6
+ OpenAPI spec version: 0.2
7
+ Contact: dev@bean.ie
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for Beanie::PurchaseInvoiceApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'PurchaseInvoiceApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = Beanie::PurchaseInvoiceApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of PurchaseInvoiceApi' do
30
+ it 'should create an instance of PurchaseInvoiceApi' do
31
+ expect(@instance).to be_instance_of(Beanie::PurchaseInvoiceApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for add_purchase_invoice
36
+ # Creates a new purchase invoice in the system
37
+ # @param purchase_invoices Purchase invoice to add to the system
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [PurchaseInvoice]
40
+ describe 'add_purchase_invoice test' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ # unit tests for find_purchase_invoice_by_id
47
+ # Find Purchase invoice by ID
48
+ # Returns a single purchase invoice if the user has access
49
+ # @param id ID of purchase invoice to fetch
50
+ # @param [Hash] opts the optional parameters
51
+ # @return [PurchaseInvoice]
52
+ describe 'find_purchase_invoice_by_id test' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ # unit tests for find_purchase_invoices
59
+ # All purchase invoice
60
+ # Returns all purchase invoice from the system that the user has access to
61
+ # @param [Hash] opts the optional parameters
62
+ # @option opts [Array<String>] :tags tags to filter by
63
+ # @option opts [Integer] :limit Maximum number of results to return
64
+ # @return [Array<PurchaseInvoice>]
65
+ describe 'find_purchase_invoices test' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ end
@@ -0,0 +1,71 @@
1
+ =begin
2
+ #Beanie ERP API
3
+
4
+ #An API specification for interacting with the Beanie ERP system
5
+
6
+ OpenAPI spec version: 0.2
7
+ Contact: dev@bean.ie
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for Beanie::PurchaseOrderApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'PurchaseOrderApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = Beanie::PurchaseOrderApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of PurchaseOrderApi' do
30
+ it 'should create an instance of PurchaseOrderApi' do
31
+ expect(@instance).to be_instance_of(Beanie::PurchaseOrderApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for add_purchase_order
36
+ # Creates a new purchase order in the system
37
+ # @param purchase_orders Purchase order to add to the system
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [PurchaseOrder]
40
+ describe 'add_purchase_order test' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ # unit tests for find_purchase_order_by_id
47
+ # Find Purchase order by ID
48
+ # Returns a single purchase order if the user has access
49
+ # @param id ID of purchase order to fetch
50
+ # @param [Hash] opts the optional parameters
51
+ # @return [PurchaseOrder]
52
+ describe 'find_purchase_order_by_id test' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ # unit tests for find_purchase_orders
59
+ # All purchase order
60
+ # Returns all purchase order from the system that the user has access to
61
+ # @param [Hash] opts the optional parameters
62
+ # @option opts [Array<String>] :tags tags to filter by
63
+ # @option opts [Integer] :limit Maximum number of results to return
64
+ # @return [Array<PurchaseOrder>]
65
+ describe 'find_purchase_orders test' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ end