korona-cloud-client 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (290) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +71 -4
  3. data/docs/AddressInformation.md +2 -0
  4. data/docs/Cashier.md +16 -6
  5. data/docs/CashierRole.md +27 -0
  6. data/docs/CashierRolesApi.md +402 -0
  7. data/docs/CashiersApi.md +286 -2
  8. data/docs/CloudSubscriptionDetails.md +19 -0
  9. data/docs/CurrenciesApi.md +166 -0
  10. data/docs/Customer.md +5 -1
  11. data/docs/EconomicZonesApi.md +166 -0
  12. data/docs/FiscalTransaction.md +43 -0
  13. data/docs/FiscalUnit.md +51 -0
  14. data/docs/FiscalUnitCertificateInfo.md +19 -0
  15. data/docs/FiscalUnitState.md +27 -0
  16. data/docs/FiscalUnitStateUsageLevel.md +23 -0
  17. data/docs/FiscalUnitStateUsageLevelValue.md +19 -0
  18. data/docs/FiscalUnitStateVersionInfo.md +21 -0
  19. data/docs/FiscalUnitsApi.md +299 -0
  20. data/docs/InfoTextsApi.md +166 -0
  21. data/docs/KoronaAccount.md +2 -0
  22. data/docs/OrganizationalUnit.md +9 -7
  23. data/docs/PaymentMethod.md +2 -0
  24. data/docs/PointsOfSaleApi.md +6 -2
  25. data/docs/Pos.md +10 -4
  26. data/docs/PriceGroupsApi.md +166 -0
  27. data/docs/ProductionType.md +33 -0
  28. data/docs/ProductionTypesApi.md +294 -0
  29. data/docs/Receipt.md +18 -8
  30. data/docs/ReceiptItem.md +3 -1
  31. data/docs/ReceiptMaxRevisions.md +27 -0
  32. data/docs/ReceiptsApi.md +9 -3
  33. data/docs/ResultListCashierRole.md +27 -0
  34. data/docs/ResultListFiscalUnit.md +27 -0
  35. data/docs/ResultListProductionType.md +27 -0
  36. data/docs/ResultListStockOrder.md +27 -0
  37. data/docs/SalesTax.md +2 -0
  38. data/docs/SalesTaxesApi.md +166 -0
  39. data/docs/SectorsApi.md +54 -0
  40. data/docs/Service.md +19 -0
  41. data/docs/StockOrder.md +73 -0
  42. data/docs/StockOrderItem.md +39 -0
  43. data/docs/StockOrdersApi.md +195 -0
  44. data/docs/StockReceipt.md +4 -0
  45. data/docs/SuppliersApi.md +166 -0
  46. data/docs/TicketingApi.md +223 -3
  47. data/docs/VoidedReceiptItem.md +25 -0
  48. data/korona-cloud-client-1.0.1.gem +0 -0
  49. data/korona-cloud-client.gemspec +2 -2
  50. data/lib/korona-cloud-client.rb +24 -1
  51. data/lib/korona-cloud-client/api/accounts_api.rb +1 -1
  52. data/lib/korona-cloud-client/api/additional_receipt_info_types_api.rb +1 -1
  53. data/lib/korona-cloud-client/api/assortments_api.rb +1 -1
  54. data/lib/korona-cloud-client/api/cashier_roles_api.rb +513 -0
  55. data/lib/korona-cloud-client/api/cashiers_api.rb +366 -1
  56. data/lib/korona-cloud-client/api/commodity_groups_api.rb +1 -1
  57. data/lib/korona-cloud-client/api/currencies_api.rb +208 -1
  58. data/lib/korona-cloud-client/api/customer_groups_api.rb +1 -1
  59. data/lib/korona-cloud-client/api/customer_orders_api.rb +1 -1
  60. data/lib/korona-cloud-client/api/customers_api.rb +1 -1
  61. data/lib/korona-cloud-client/api/delivery_notes_api.rb +1 -1
  62. data/lib/korona-cloud-client/api/economic_zones_api.rb +208 -1
  63. data/lib/korona-cloud-client/api/external_system_calls_api.rb +1 -1
  64. data/lib/korona-cloud-client/api/fiscal_units_api.rb +389 -0
  65. data/lib/korona-cloud-client/api/images_api.rb +1 -1
  66. data/lib/korona-cloud-client/api/info_texts_api.rb +208 -1
  67. data/lib/korona-cloud-client/api/inventories_api.rb +1 -1
  68. data/lib/korona-cloud-client/api/korona_account_api.rb +1 -1
  69. data/lib/korona-cloud-client/api/organizational_units_api.rb +1 -1
  70. data/lib/korona-cloud-client/api/payment_methods_api.rb +1 -1
  71. data/lib/korona-cloud-client/api/points_of_sale_api.rb +7 -1
  72. data/lib/korona-cloud-client/api/price_groups_api.rb +208 -1
  73. data/lib/korona-cloud-client/api/production_types_api.rb +373 -0
  74. data/lib/korona-cloud-client/api/products_api.rb +1 -1
  75. data/lib/korona-cloud-client/api/receipts_api.rb +7 -1
  76. data/lib/korona-cloud-client/api/sales_taxes_api.rb +208 -1
  77. data/lib/korona-cloud-client/api/sectors_api.rb +69 -1
  78. data/lib/korona-cloud-client/api/statistics_api.rb +1 -1
  79. data/lib/korona-cloud-client/api/stock_orders_api.rb +257 -0
  80. data/lib/korona-cloud-client/api/stock_receipts_api.rb +1 -1
  81. data/lib/korona-cloud-client/api/suppliers_api.rb +208 -1
  82. data/lib/korona-cloud-client/api/tags_api.rb +1 -1
  83. data/lib/korona-cloud-client/api/ticket_creation_api.rb +1 -1
  84. data/lib/korona-cloud-client/api/ticketing_api.rb +277 -4
  85. data/lib/korona-cloud-client/api/time_tracking_api.rb +1 -1
  86. data/lib/korona-cloud-client/api_client.rb +1 -1
  87. data/lib/korona-cloud-client/api_error.rb +1 -1
  88. data/lib/korona-cloud-client/configuration.rb +1 -1
  89. data/lib/korona-cloud-client/models/account.rb +1 -1
  90. data/lib/korona-cloud-client/models/account_summary.rb +1 -1
  91. data/lib/korona-cloud-client/models/account_transaction.rb +1 -1
  92. data/lib/korona-cloud-client/models/add_or_update_result.rb +1 -1
  93. data/lib/korona-cloud-client/models/additional_info.rb +1 -1
  94. data/lib/korona-cloud-client/models/additional_receipt_info_type.rb +1 -1
  95. data/lib/korona-cloud-client/models/address_information.rb +11 -2
  96. data/lib/korona-cloud-client/models/admission.rb +1 -1
  97. data/lib/korona-cloud-client/models/amount.rb +1 -1
  98. data/lib/korona-cloud-client/models/amount_count_data.rb +1 -1
  99. data/lib/korona-cloud-client/models/assortment.rb +1 -1
  100. data/lib/korona-cloud-client/models/attendance.rb +1 -1
  101. data/lib/korona-cloud-client/models/bad_request_error.rb +1 -1
  102. data/lib/korona-cloud-client/models/capacity.rb +1 -1
  103. data/lib/korona-cloud-client/models/cashier.rb +55 -10
  104. data/lib/korona-cloud-client/models/cashier_role.rb +279 -0
  105. data/lib/korona-cloud-client/models/cashier_summary.rb +1 -1
  106. data/lib/korona-cloud-client/models/category.rb +1 -1
  107. data/lib/korona-cloud-client/models/cloud_subscription.rb +1 -1
  108. data/lib/korona-cloud-client/models/cloud_subscription_details.rb +249 -0
  109. data/lib/korona-cloud-client/models/commodity_group.rb +1 -1
  110. data/lib/korona-cloud-client/models/commodity_group_summary.rb +1 -1
  111. data/lib/korona-cloud-client/models/company_identification.rb +1 -1
  112. data/lib/korona-cloud-client/models/creation_task.rb +1 -1
  113. data/lib/korona-cloud-client/models/currency.rb +1 -1
  114. data/lib/korona-cloud-client/models/currency_denomination.rb +1 -1
  115. data/lib/korona-cloud-client/models/currency_exchange_rate.rb +1 -1
  116. data/lib/korona-cloud-client/models/customer.rb +23 -5
  117. data/lib/korona-cloud-client/models/customer_card.rb +1 -1
  118. data/lib/korona-cloud-client/models/customer_data.rb +1 -1
  119. data/lib/korona-cloud-client/models/customer_group.rb +1 -1
  120. data/lib/korona-cloud-client/models/customer_group_summary.rb +1 -1
  121. data/lib/korona-cloud-client/models/customer_information.rb +1 -1
  122. data/lib/korona-cloud-client/models/customer_order.rb +1 -1
  123. data/lib/korona-cloud-client/models/day_rating.rb +1 -1
  124. data/lib/korona-cloud-client/models/day_time_period.rb +1 -1
  125. data/lib/korona-cloud-client/models/delivery_note.rb +1 -1
  126. data/lib/korona-cloud-client/models/delivery_note_item.rb +1 -1
  127. data/lib/korona-cloud-client/models/deposit.rb +1 -1
  128. data/lib/korona-cloud-client/models/device_information.rb +1 -1
  129. data/lib/korona-cloud-client/models/discount.rb +1 -1
  130. data/lib/korona-cloud-client/models/economic_zone.rb +1 -1
  131. data/lib/korona-cloud-client/models/end_of_day_statement.rb +1 -1
  132. data/lib/korona-cloud-client/models/end_of_day_statement_summary.rb +1 -1
  133. data/lib/korona-cloud-client/models/entry_gate.rb +1 -1
  134. data/lib/korona-cloud-client/models/event.rb +1 -1
  135. data/lib/korona-cloud-client/models/external_system_call.rb +1 -1
  136. data/lib/korona-cloud-client/models/fiscal_transaction.rb +342 -0
  137. data/lib/korona-cloud-client/models/fiscal_unit.rb +415 -0
  138. data/lib/korona-cloud-client/models/fiscal_unit_certificate_info.rb +233 -0
  139. data/lib/korona-cloud-client/models/fiscal_unit_state.rb +287 -0
  140. data/lib/korona-cloud-client/models/fiscal_unit_state_usage_level.rb +233 -0
  141. data/lib/korona-cloud-client/models/fiscal_unit_state_usage_level_value.rb +215 -0
  142. data/lib/korona-cloud-client/models/fiscal_unit_state_version_info.rb +224 -0
  143. data/lib/korona-cloud-client/models/forbidden_error.rb +1 -1
  144. data/lib/korona-cloud-client/models/geo_location.rb +1 -1
  145. data/lib/korona-cloud-client/models/info_text.rb +1 -1
  146. data/lib/korona-cloud-client/models/interval.rb +1 -1
  147. data/lib/korona-cloud-client/models/inventory.rb +1 -1
  148. data/lib/korona-cloud-client/models/inventory_list.rb +1 -1
  149. data/lib/korona-cloud-client/models/inventory_list_item.rb +1 -1
  150. data/lib/korona-cloud-client/models/inventory_list_item_stock.rb +1 -1
  151. data/lib/korona-cloud-client/models/korona_account.rb +13 -2
  152. data/lib/korona-cloud-client/models/media_url.rb +1 -1
  153. data/lib/korona-cloud-client/models/method_not_allowed_error.rb +1 -1
  154. data/lib/korona-cloud-client/models/model_reference.rb +1 -1
  155. data/lib/korona-cloud-client/models/not_found_error.rb +1 -1
  156. data/lib/korona-cloud-client/models/opening_hours.rb +1 -1
  157. data/lib/korona-cloud-client/models/organizational_unit.rb +43 -34
  158. data/lib/korona-cloud-client/models/payment.rb +1 -1
  159. data/lib/korona-cloud-client/models/payment_method.rb +11 -2
  160. data/lib/korona-cloud-client/models/payment_summary.rb +1 -1
  161. data/lib/korona-cloud-client/models/period.rb +1 -1
  162. data/lib/korona-cloud-client/models/period_list_top_seller.rb +1 -1
  163. data/lib/korona-cloud-client/models/period_map_string_revenue_data.rb +1 -1
  164. data/lib/korona-cloud-client/models/period_object.rb +1 -1
  165. data/lib/korona-cloud-client/models/period_revenue_data.rb +1 -1
  166. data/lib/korona-cloud-client/models/pos.rb +44 -17
  167. data/lib/korona-cloud-client/models/price_group.rb +1 -1
  168. data/lib/korona-cloud-client/models/product.rb +1 -1
  169. data/lib/korona-cloud-client/models/product_code.rb +1 -1
  170. data/lib/korona-cloud-client/models/product_description.rb +1 -1
  171. data/lib/korona-cloud-client/models/product_price.rb +1 -1
  172. data/lib/korona-cloud-client/models/product_stock.rb +1 -1
  173. data/lib/korona-cloud-client/models/product_subproduct.rb +1 -1
  174. data/lib/korona-cloud-client/models/product_supplier_price.rb +1 -1
  175. data/lib/korona-cloud-client/models/product_transfer_involved_party_information.rb +1 -1
  176. data/lib/korona-cloud-client/models/product_transfer_involved_party_information_data.rb +1 -1
  177. data/lib/korona-cloud-client/models/production_type.rb +328 -0
  178. data/lib/korona-cloud-client/models/rating.rb +1 -1
  179. data/lib/korona-cloud-client/models/receipt.rb +82 -31
  180. data/lib/korona-cloud-client/models/receipt_item.rb +14 -5
  181. data/lib/korona-cloud-client/models/receipt_max_revisions.rb +251 -0
  182. data/lib/korona-cloud-client/models/result_list.rb +1 -1
  183. data/lib/korona-cloud-client/models/result_list_account.rb +1 -1
  184. data/lib/korona-cloud-client/models/result_list_additional_receipt_info_type.rb +1 -1
  185. data/lib/korona-cloud-client/models/result_list_assortment.rb +1 -1
  186. data/lib/korona-cloud-client/models/result_list_attendance.rb +1 -1
  187. data/lib/korona-cloud-client/models/result_list_cashier.rb +1 -1
  188. data/lib/korona-cloud-client/models/result_list_cashier_role.rb +291 -0
  189. data/lib/korona-cloud-client/models/result_list_commodity_group.rb +1 -1
  190. data/lib/korona-cloud-client/models/result_list_creation_task.rb +1 -1
  191. data/lib/korona-cloud-client/models/result_list_currency.rb +1 -1
  192. data/lib/korona-cloud-client/models/result_list_customer.rb +1 -1
  193. data/lib/korona-cloud-client/models/result_list_customer_group.rb +1 -1
  194. data/lib/korona-cloud-client/models/result_list_customer_order.rb +1 -1
  195. data/lib/korona-cloud-client/models/result_list_day_rating.rb +1 -1
  196. data/lib/korona-cloud-client/models/result_list_delivery_note.rb +1 -1
  197. data/lib/korona-cloud-client/models/result_list_economic_zone.rb +1 -1
  198. data/lib/korona-cloud-client/models/result_list_end_of_day_statement.rb +1 -1
  199. data/lib/korona-cloud-client/models/result_list_entry_gate.rb +1 -1
  200. data/lib/korona-cloud-client/models/result_list_event.rb +1 -1
  201. data/lib/korona-cloud-client/models/result_list_external_system_call.rb +1 -1
  202. data/lib/korona-cloud-client/models/result_list_fiscal_unit.rb +291 -0
  203. data/lib/korona-cloud-client/models/result_list_info_text.rb +1 -1
  204. data/lib/korona-cloud-client/models/result_list_inventory.rb +1 -1
  205. data/lib/korona-cloud-client/models/result_list_inventory_list.rb +1 -1
  206. data/lib/korona-cloud-client/models/result_list_inventory_list_item.rb +1 -1
  207. data/lib/korona-cloud-client/models/result_list_organizational_unit.rb +1 -1
  208. data/lib/korona-cloud-client/models/result_list_payment_method.rb +1 -1
  209. data/lib/korona-cloud-client/models/result_list_pos.rb +1 -1
  210. data/lib/korona-cloud-client/models/result_list_price_group.rb +1 -1
  211. data/lib/korona-cloud-client/models/result_list_product.rb +1 -1
  212. data/lib/korona-cloud-client/models/result_list_product_stock.rb +1 -1
  213. data/lib/korona-cloud-client/models/result_list_production_type.rb +291 -0
  214. data/lib/korona-cloud-client/models/result_list_receipt.rb +1 -1
  215. data/lib/korona-cloud-client/models/result_list_sales_tax.rb +1 -1
  216. data/lib/korona-cloud-client/models/result_list_sector.rb +1 -1
  217. data/lib/korona-cloud-client/models/result_list_stock_order.rb +291 -0
  218. data/lib/korona-cloud-client/models/result_list_stock_receipt.rb +1 -1
  219. data/lib/korona-cloud-client/models/result_list_stock_receipt_item.rb +1 -1
  220. data/lib/korona-cloud-client/models/result_list_supplier.rb +1 -1
  221. data/lib/korona-cloud-client/models/result_list_tag.rb +1 -1
  222. data/lib/korona-cloud-client/models/result_list_ticket.rb +1 -1
  223. data/lib/korona-cloud-client/models/result_list_ticket_definition.rb +1 -1
  224. data/lib/korona-cloud-client/models/result_list_time_tracking_entity.rb +1 -1
  225. data/lib/korona-cloud-client/models/result_list_time_tracking_entry.rb +1 -1
  226. data/lib/korona-cloud-client/models/revenue_data.rb +1 -1
  227. data/lib/korona-cloud-client/models/sales_tax.rb +45 -2
  228. data/lib/korona-cloud-client/models/sales_tax_rate.rb +1 -1
  229. data/lib/korona-cloud-client/models/sector.rb +1 -1
  230. data/lib/korona-cloud-client/models/sector_revenue_account_item.rb +1 -1
  231. data/lib/korona-cloud-client/models/sector_sales_tax_item.rb +1 -1
  232. data/lib/korona-cloud-client/models/service.rb +249 -0
  233. data/lib/korona-cloud-client/models/signature.rb +1 -1
  234. data/lib/korona-cloud-client/models/statistic.rb +1 -1
  235. data/lib/korona-cloud-client/models/statistic_list_top_seller.rb +1 -1
  236. data/lib/korona-cloud-client/models/statistic_map_string_revenue_data.rb +1 -1
  237. data/lib/korona-cloud-client/models/statistic_revenue_data.rb +1 -1
  238. data/lib/korona-cloud-client/models/stock_order.rb +498 -0
  239. data/lib/korona-cloud-client/models/stock_order_item.rb +305 -0
  240. data/lib/korona-cloud-client/models/stock_receipt.rb +20 -2
  241. data/lib/korona-cloud-client/models/stock_receipt_item.rb +1 -1
  242. data/lib/korona-cloud-client/models/stock_receipt_item_amount.rb +1 -1
  243. data/lib/korona-cloud-client/models/stock_receipt_item_identification.rb +1 -1
  244. data/lib/korona-cloud-client/models/stock_receipt_item_purchase_price.rb +1 -1
  245. data/lib/korona-cloud-client/models/supplier.rb +1 -1
  246. data/lib/korona-cloud-client/models/supplier_contact.rb +1 -1
  247. data/lib/korona-cloud-client/models/supplier_contact_person.rb +1 -1
  248. data/lib/korona-cloud-client/models/supplier_payment_information.rb +1 -1
  249. data/lib/korona-cloud-client/models/tag.rb +1 -1
  250. data/lib/korona-cloud-client/models/tax_payment.rb +1 -1
  251. data/lib/korona-cloud-client/models/tax_summary.rb +1 -1
  252. data/lib/korona-cloud-client/models/ticket.rb +1 -1
  253. data/lib/korona-cloud-client/models/ticket_data.rb +1 -1
  254. data/lib/korona-cloud-client/models/ticket_definition.rb +1 -1
  255. data/lib/korona-cloud-client/models/ticket_personalization.rb +1 -1
  256. data/lib/korona-cloud-client/models/time_period.rb +1 -1
  257. data/lib/korona-cloud-client/models/time_tracking_entity.rb +1 -1
  258. data/lib/korona-cloud-client/models/time_tracking_entry.rb +1 -1
  259. data/lib/korona-cloud-client/models/too_many_requests_error.rb +1 -1
  260. data/lib/korona-cloud-client/models/top_seller.rb +1 -1
  261. data/lib/korona-cloud-client/models/total_period.rb +1 -1
  262. data/lib/korona-cloud-client/models/total_price.rb +1 -1
  263. data/lib/korona-cloud-client/models/validity.rb +1 -1
  264. data/lib/korona-cloud-client/models/voided_receipt_item.rb +242 -0
  265. data/lib/korona-cloud-client/models/weather.rb +1 -1
  266. data/lib/korona-cloud-client/version.rb +2 -2
  267. data/spec/api/cashier_roles_api_spec.rb +126 -0
  268. data/spec/api/fiscal_units_api_spec.rb +104 -0
  269. data/spec/api/production_types_api_spec.rb +101 -0
  270. data/spec/api/stock_orders_api_spec.rb +83 -0
  271. data/spec/models/cashier_role_spec.rb +75 -0
  272. data/spec/models/cloud_subscription_details_spec.rb +51 -0
  273. data/spec/models/fiscal_transaction_spec.rb +119 -0
  274. data/spec/models/fiscal_unit_certificate_info_spec.rb +47 -0
  275. data/spec/models/fiscal_unit_spec.rb +147 -0
  276. data/spec/models/fiscal_unit_state_spec.rb +75 -0
  277. data/spec/models/fiscal_unit_state_usage_level_spec.rb +59 -0
  278. data/spec/models/fiscal_unit_state_usage_level_value_spec.rb +47 -0
  279. data/spec/models/fiscal_unit_state_version_info_spec.rb +53 -0
  280. data/spec/models/production_type_spec.rb +97 -0
  281. data/spec/models/receipt_max_revisions_spec.rb +71 -0
  282. data/spec/models/result_list_cashier_role_spec.rb +71 -0
  283. data/spec/models/result_list_fiscal_unit_spec.rb +71 -0
  284. data/spec/models/result_list_production_type_spec.rb +71 -0
  285. data/spec/models/result_list_stock_order_spec.rb +71 -0
  286. data/spec/models/service_spec.rb +51 -0
  287. data/spec/models/stock_order_item_spec.rb +107 -0
  288. data/spec/models/stock_order_spec.rb +213 -0
  289. data/spec/models/voided_receipt_item_spec.rb +65 -0
  290. metadata +96 -3
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Our api provides access to our cloud services
5
5
 
6
- The version of the OpenAPI document: 2.13.40
6
+ The version of the OpenAPI document: 2.14.7
7
7
  Contact: support@combase.net
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Our api provides access to our cloud services
5
5
 
6
- The version of the OpenAPI document: 2.13.40
6
+ The version of the OpenAPI document: 2.14.7
7
7
  Contact: support@combase.net
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Our api provides access to our cloud services
5
5
 
6
- The version of the OpenAPI document: 2.13.40
6
+ The version of the OpenAPI document: 2.14.7
7
7
  Contact: support@combase.net
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.0
@@ -0,0 +1,291 @@
1
+ =begin
2
+ #KORONA.cloud API v3
3
+
4
+ #Our api provides access to our cloud services
5
+
6
+ The version of the OpenAPI document: 2.14.7
7
+ Contact: support@combase.net
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module KoronaCloudClient
16
+ class ResultListFiscalUnit
17
+ # number of the current page, starting from 1
18
+ attr_accessor :current_page
19
+
20
+ # navigation links (previous, self, next)
21
+ attr_accessor :links
22
+
23
+ # pages count total
24
+ attr_accessor :pages_total
25
+
26
+ # result list
27
+ attr_accessor :results
28
+
29
+ # result count of the current page
30
+ attr_accessor :results_of_page
31
+
32
+ # result count total
33
+ attr_accessor :results_total
34
+
35
+ # Attribute mapping from ruby-style variable name to JSON key.
36
+ def self.attribute_map
37
+ {
38
+ :'current_page' => :'currentPage',
39
+ :'links' => :'links',
40
+ :'pages_total' => :'pagesTotal',
41
+ :'results' => :'results',
42
+ :'results_of_page' => :'resultsOfPage',
43
+ :'results_total' => :'resultsTotal'
44
+ }
45
+ end
46
+
47
+ # Attribute type mapping.
48
+ def self.openapi_types
49
+ {
50
+ :'current_page' => :'Integer',
51
+ :'links' => :'Hash<String, String>',
52
+ :'pages_total' => :'Integer',
53
+ :'results' => :'Array<FiscalUnit>',
54
+ :'results_of_page' => :'Integer',
55
+ :'results_total' => :'Integer'
56
+ }
57
+ end
58
+
59
+ # List of attributes with nullable: true
60
+ def self.openapi_nullable
61
+ Set.new([
62
+ ])
63
+ end
64
+
65
+ # Initializes the object
66
+ # @param [Hash] attributes Model attributes in the form of hash
67
+ def initialize(attributes = {})
68
+ if (!attributes.is_a?(Hash))
69
+ fail ArgumentError, "The input argument (attributes) must be a hash in `KoronaCloudClient::ResultListFiscalUnit` initialize method"
70
+ end
71
+
72
+ # check to see if the attribute exists and convert string to symbol for hash key
73
+ attributes = attributes.each_with_object({}) { |(k, v), h|
74
+ if (!self.class.attribute_map.key?(k.to_sym))
75
+ fail ArgumentError, "`#{k}` is not a valid attribute in `KoronaCloudClient::ResultListFiscalUnit`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
76
+ end
77
+ h[k.to_sym] = v
78
+ }
79
+
80
+ if attributes.key?(:'current_page')
81
+ self.current_page = attributes[:'current_page']
82
+ end
83
+
84
+ if attributes.key?(:'links')
85
+ if (value = attributes[:'links']).is_a?(Hash)
86
+ self.links = value
87
+ end
88
+ end
89
+
90
+ if attributes.key?(:'pages_total')
91
+ self.pages_total = attributes[:'pages_total']
92
+ end
93
+
94
+ if attributes.key?(:'results')
95
+ if (value = attributes[:'results']).is_a?(Array)
96
+ self.results = value
97
+ end
98
+ end
99
+
100
+ if attributes.key?(:'results_of_page')
101
+ self.results_of_page = attributes[:'results_of_page']
102
+ end
103
+
104
+ if attributes.key?(:'results_total')
105
+ self.results_total = attributes[:'results_total']
106
+ end
107
+ end
108
+
109
+ # Show invalid properties with the reasons. Usually used together with valid?
110
+ # @return Array for valid properties with the reasons
111
+ def list_invalid_properties
112
+ invalid_properties = Array.new
113
+ if @current_page.nil?
114
+ invalid_properties.push('invalid value for "current_page", current_page cannot be nil.')
115
+ end
116
+
117
+ if @links.nil?
118
+ invalid_properties.push('invalid value for "links", links cannot be nil.')
119
+ end
120
+
121
+ if @pages_total.nil?
122
+ invalid_properties.push('invalid value for "pages_total", pages_total cannot be nil.')
123
+ end
124
+
125
+ if @results.nil?
126
+ invalid_properties.push('invalid value for "results", results cannot be nil.')
127
+ end
128
+
129
+ if @results_of_page.nil?
130
+ invalid_properties.push('invalid value for "results_of_page", results_of_page cannot be nil.')
131
+ end
132
+
133
+ if @results_total.nil?
134
+ invalid_properties.push('invalid value for "results_total", results_total cannot be nil.')
135
+ end
136
+
137
+ invalid_properties
138
+ end
139
+
140
+ # Check to see if the all the properties in the model are valid
141
+ # @return true if the model is valid
142
+ def valid?
143
+ return false if @current_page.nil?
144
+ return false if @links.nil?
145
+ return false if @pages_total.nil?
146
+ return false if @results.nil?
147
+ return false if @results_of_page.nil?
148
+ return false if @results_total.nil?
149
+ true
150
+ end
151
+
152
+ # Checks equality by comparing each attribute.
153
+ # @param [Object] Object to be compared
154
+ def ==(o)
155
+ return true if self.equal?(o)
156
+ self.class == o.class &&
157
+ current_page == o.current_page &&
158
+ links == o.links &&
159
+ pages_total == o.pages_total &&
160
+ results == o.results &&
161
+ results_of_page == o.results_of_page &&
162
+ results_total == o.results_total
163
+ end
164
+
165
+ # @see the `==` method
166
+ # @param [Object] Object to be compared
167
+ def eql?(o)
168
+ self == o
169
+ end
170
+
171
+ # Calculates hash code according to all attributes.
172
+ # @return [Integer] Hash code
173
+ def hash
174
+ [current_page, links, pages_total, results, results_of_page, results_total].hash
175
+ end
176
+
177
+ # Builds the object from hash
178
+ # @param [Hash] attributes Model attributes in the form of hash
179
+ # @return [Object] Returns the model itself
180
+ def self.build_from_hash(attributes)
181
+ new.build_from_hash(attributes)
182
+ end
183
+
184
+ # Builds the object from hash
185
+ # @param [Hash] attributes Model attributes in the form of hash
186
+ # @return [Object] Returns the model itself
187
+ def build_from_hash(attributes)
188
+ return nil unless attributes.is_a?(Hash)
189
+ self.class.openapi_types.each_pair do |key, type|
190
+ if type =~ /\AArray<(.*)>/i
191
+ # check to ensure the input is an array given that the attribute
192
+ # is documented as an array but the input is not
193
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
194
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
195
+ end
196
+ elsif !attributes[self.class.attribute_map[key]].nil?
197
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
198
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
199
+ end
200
+
201
+ self
202
+ end
203
+
204
+ # Deserializes the data based on type
205
+ # @param string type Data type
206
+ # @param string value Value to be deserialized
207
+ # @return [Object] Deserialized data
208
+ def _deserialize(type, value)
209
+ case type.to_sym
210
+ when :DateTime
211
+ DateTime.parse(value)
212
+ when :Date
213
+ Date.parse(value)
214
+ when :String
215
+ value.to_s
216
+ when :Integer
217
+ value.to_i
218
+ when :Float
219
+ value.to_f
220
+ when :Boolean
221
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
222
+ true
223
+ else
224
+ false
225
+ end
226
+ when :Object
227
+ # generic object (usually a Hash), return directly
228
+ value
229
+ when /\AArray<(?<inner_type>.+)>\z/
230
+ inner_type = Regexp.last_match[:inner_type]
231
+ value.map { |v| _deserialize(inner_type, v) }
232
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
233
+ k_type = Regexp.last_match[:k_type]
234
+ v_type = Regexp.last_match[:v_type]
235
+ {}.tap do |hash|
236
+ value.each do |k, v|
237
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
238
+ end
239
+ end
240
+ else # model
241
+ KoronaCloudClient.const_get(type).build_from_hash(value)
242
+ end
243
+ end
244
+
245
+ # Returns the string representation of the object
246
+ # @return [String] String presentation of the object
247
+ def to_s
248
+ to_hash.to_s
249
+ end
250
+
251
+ # to_body is an alias to to_hash (backward compatibility)
252
+ # @return [Hash] Returns the object in the form of hash
253
+ def to_body
254
+ to_hash
255
+ end
256
+
257
+ # Returns the object in the form of hash
258
+ # @return [Hash] Returns the object in the form of hash
259
+ def to_hash
260
+ hash = {}
261
+ self.class.attribute_map.each_pair do |attr, param|
262
+ value = self.send(attr)
263
+ if value.nil?
264
+ is_nullable = self.class.openapi_nullable.include?(attr)
265
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
266
+ end
267
+
268
+ hash[param] = _to_hash(value)
269
+ end
270
+ hash
271
+ end
272
+
273
+ # Outputs non-array value in the form of hash
274
+ # For object, use to_hash. Otherwise, just return the value
275
+ # @param [Object] value Any valid value
276
+ # @return [Hash] Returns the value in the form of hash
277
+ def _to_hash(value)
278
+ if value.is_a?(Array)
279
+ value.compact.map { |v| _to_hash(v) }
280
+ elsif value.is_a?(Hash)
281
+ {}.tap do |hash|
282
+ value.each { |k, v| hash[k] = _to_hash(v) }
283
+ end
284
+ elsif value.respond_to? :to_hash
285
+ value.to_hash
286
+ else
287
+ value
288
+ end
289
+ end
290
+ end
291
+ end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Our api provides access to our cloud services
5
5
 
6
- The version of the OpenAPI document: 2.13.40
6
+ The version of the OpenAPI document: 2.14.7
7
7
  Contact: support@combase.net
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Our api provides access to our cloud services
5
5
 
6
- The version of the OpenAPI document: 2.13.40
6
+ The version of the OpenAPI document: 2.14.7
7
7
  Contact: support@combase.net
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Our api provides access to our cloud services
5
5
 
6
- The version of the OpenAPI document: 2.13.40
6
+ The version of the OpenAPI document: 2.14.7
7
7
  Contact: support@combase.net
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Our api provides access to our cloud services
5
5
 
6
- The version of the OpenAPI document: 2.13.40
6
+ The version of the OpenAPI document: 2.14.7
7
7
  Contact: support@combase.net
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Our api provides access to our cloud services
5
5
 
6
- The version of the OpenAPI document: 2.13.40
6
+ The version of the OpenAPI document: 2.14.7
7
7
  Contact: support@combase.net
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Our api provides access to our cloud services
5
5
 
6
- The version of the OpenAPI document: 2.13.40
6
+ The version of the OpenAPI document: 2.14.7
7
7
  Contact: support@combase.net
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Our api provides access to our cloud services
5
5
 
6
- The version of the OpenAPI document: 2.13.40
6
+ The version of the OpenAPI document: 2.14.7
7
7
  Contact: support@combase.net
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Our api provides access to our cloud services
5
5
 
6
- The version of the OpenAPI document: 2.13.40
6
+ The version of the OpenAPI document: 2.14.7
7
7
  Contact: support@combase.net
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Our api provides access to our cloud services
5
5
 
6
- The version of the OpenAPI document: 2.13.40
6
+ The version of the OpenAPI document: 2.14.7
7
7
  Contact: support@combase.net
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Our api provides access to our cloud services
5
5
 
6
- The version of the OpenAPI document: 2.13.40
6
+ The version of the OpenAPI document: 2.14.7
7
7
  Contact: support@combase.net
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.0
@@ -0,0 +1,291 @@
1
+ =begin
2
+ #KORONA.cloud API v3
3
+
4
+ #Our api provides access to our cloud services
5
+
6
+ The version of the OpenAPI document: 2.14.7
7
+ Contact: support@combase.net
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module KoronaCloudClient
16
+ class ResultListProductionType
17
+ # number of the current page, starting from 1
18
+ attr_accessor :current_page
19
+
20
+ # navigation links (previous, self, next)
21
+ attr_accessor :links
22
+
23
+ # pages count total
24
+ attr_accessor :pages_total
25
+
26
+ # result list
27
+ attr_accessor :results
28
+
29
+ # result count of the current page
30
+ attr_accessor :results_of_page
31
+
32
+ # result count total
33
+ attr_accessor :results_total
34
+
35
+ # Attribute mapping from ruby-style variable name to JSON key.
36
+ def self.attribute_map
37
+ {
38
+ :'current_page' => :'currentPage',
39
+ :'links' => :'links',
40
+ :'pages_total' => :'pagesTotal',
41
+ :'results' => :'results',
42
+ :'results_of_page' => :'resultsOfPage',
43
+ :'results_total' => :'resultsTotal'
44
+ }
45
+ end
46
+
47
+ # Attribute type mapping.
48
+ def self.openapi_types
49
+ {
50
+ :'current_page' => :'Integer',
51
+ :'links' => :'Hash<String, String>',
52
+ :'pages_total' => :'Integer',
53
+ :'results' => :'Array<ProductionType>',
54
+ :'results_of_page' => :'Integer',
55
+ :'results_total' => :'Integer'
56
+ }
57
+ end
58
+
59
+ # List of attributes with nullable: true
60
+ def self.openapi_nullable
61
+ Set.new([
62
+ ])
63
+ end
64
+
65
+ # Initializes the object
66
+ # @param [Hash] attributes Model attributes in the form of hash
67
+ def initialize(attributes = {})
68
+ if (!attributes.is_a?(Hash))
69
+ fail ArgumentError, "The input argument (attributes) must be a hash in `KoronaCloudClient::ResultListProductionType` initialize method"
70
+ end
71
+
72
+ # check to see if the attribute exists and convert string to symbol for hash key
73
+ attributes = attributes.each_with_object({}) { |(k, v), h|
74
+ if (!self.class.attribute_map.key?(k.to_sym))
75
+ fail ArgumentError, "`#{k}` is not a valid attribute in `KoronaCloudClient::ResultListProductionType`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
76
+ end
77
+ h[k.to_sym] = v
78
+ }
79
+
80
+ if attributes.key?(:'current_page')
81
+ self.current_page = attributes[:'current_page']
82
+ end
83
+
84
+ if attributes.key?(:'links')
85
+ if (value = attributes[:'links']).is_a?(Hash)
86
+ self.links = value
87
+ end
88
+ end
89
+
90
+ if attributes.key?(:'pages_total')
91
+ self.pages_total = attributes[:'pages_total']
92
+ end
93
+
94
+ if attributes.key?(:'results')
95
+ if (value = attributes[:'results']).is_a?(Array)
96
+ self.results = value
97
+ end
98
+ end
99
+
100
+ if attributes.key?(:'results_of_page')
101
+ self.results_of_page = attributes[:'results_of_page']
102
+ end
103
+
104
+ if attributes.key?(:'results_total')
105
+ self.results_total = attributes[:'results_total']
106
+ end
107
+ end
108
+
109
+ # Show invalid properties with the reasons. Usually used together with valid?
110
+ # @return Array for valid properties with the reasons
111
+ def list_invalid_properties
112
+ invalid_properties = Array.new
113
+ if @current_page.nil?
114
+ invalid_properties.push('invalid value for "current_page", current_page cannot be nil.')
115
+ end
116
+
117
+ if @links.nil?
118
+ invalid_properties.push('invalid value for "links", links cannot be nil.')
119
+ end
120
+
121
+ if @pages_total.nil?
122
+ invalid_properties.push('invalid value for "pages_total", pages_total cannot be nil.')
123
+ end
124
+
125
+ if @results.nil?
126
+ invalid_properties.push('invalid value for "results", results cannot be nil.')
127
+ end
128
+
129
+ if @results_of_page.nil?
130
+ invalid_properties.push('invalid value for "results_of_page", results_of_page cannot be nil.')
131
+ end
132
+
133
+ if @results_total.nil?
134
+ invalid_properties.push('invalid value for "results_total", results_total cannot be nil.')
135
+ end
136
+
137
+ invalid_properties
138
+ end
139
+
140
+ # Check to see if the all the properties in the model are valid
141
+ # @return true if the model is valid
142
+ def valid?
143
+ return false if @current_page.nil?
144
+ return false if @links.nil?
145
+ return false if @pages_total.nil?
146
+ return false if @results.nil?
147
+ return false if @results_of_page.nil?
148
+ return false if @results_total.nil?
149
+ true
150
+ end
151
+
152
+ # Checks equality by comparing each attribute.
153
+ # @param [Object] Object to be compared
154
+ def ==(o)
155
+ return true if self.equal?(o)
156
+ self.class == o.class &&
157
+ current_page == o.current_page &&
158
+ links == o.links &&
159
+ pages_total == o.pages_total &&
160
+ results == o.results &&
161
+ results_of_page == o.results_of_page &&
162
+ results_total == o.results_total
163
+ end
164
+
165
+ # @see the `==` method
166
+ # @param [Object] Object to be compared
167
+ def eql?(o)
168
+ self == o
169
+ end
170
+
171
+ # Calculates hash code according to all attributes.
172
+ # @return [Integer] Hash code
173
+ def hash
174
+ [current_page, links, pages_total, results, results_of_page, results_total].hash
175
+ end
176
+
177
+ # Builds the object from hash
178
+ # @param [Hash] attributes Model attributes in the form of hash
179
+ # @return [Object] Returns the model itself
180
+ def self.build_from_hash(attributes)
181
+ new.build_from_hash(attributes)
182
+ end
183
+
184
+ # Builds the object from hash
185
+ # @param [Hash] attributes Model attributes in the form of hash
186
+ # @return [Object] Returns the model itself
187
+ def build_from_hash(attributes)
188
+ return nil unless attributes.is_a?(Hash)
189
+ self.class.openapi_types.each_pair do |key, type|
190
+ if type =~ /\AArray<(.*)>/i
191
+ # check to ensure the input is an array given that the attribute
192
+ # is documented as an array but the input is not
193
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
194
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
195
+ end
196
+ elsif !attributes[self.class.attribute_map[key]].nil?
197
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
198
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
199
+ end
200
+
201
+ self
202
+ end
203
+
204
+ # Deserializes the data based on type
205
+ # @param string type Data type
206
+ # @param string value Value to be deserialized
207
+ # @return [Object] Deserialized data
208
+ def _deserialize(type, value)
209
+ case type.to_sym
210
+ when :DateTime
211
+ DateTime.parse(value)
212
+ when :Date
213
+ Date.parse(value)
214
+ when :String
215
+ value.to_s
216
+ when :Integer
217
+ value.to_i
218
+ when :Float
219
+ value.to_f
220
+ when :Boolean
221
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
222
+ true
223
+ else
224
+ false
225
+ end
226
+ when :Object
227
+ # generic object (usually a Hash), return directly
228
+ value
229
+ when /\AArray<(?<inner_type>.+)>\z/
230
+ inner_type = Regexp.last_match[:inner_type]
231
+ value.map { |v| _deserialize(inner_type, v) }
232
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
233
+ k_type = Regexp.last_match[:k_type]
234
+ v_type = Regexp.last_match[:v_type]
235
+ {}.tap do |hash|
236
+ value.each do |k, v|
237
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
238
+ end
239
+ end
240
+ else # model
241
+ KoronaCloudClient.const_get(type).build_from_hash(value)
242
+ end
243
+ end
244
+
245
+ # Returns the string representation of the object
246
+ # @return [String] String presentation of the object
247
+ def to_s
248
+ to_hash.to_s
249
+ end
250
+
251
+ # to_body is an alias to to_hash (backward compatibility)
252
+ # @return [Hash] Returns the object in the form of hash
253
+ def to_body
254
+ to_hash
255
+ end
256
+
257
+ # Returns the object in the form of hash
258
+ # @return [Hash] Returns the object in the form of hash
259
+ def to_hash
260
+ hash = {}
261
+ self.class.attribute_map.each_pair do |attr, param|
262
+ value = self.send(attr)
263
+ if value.nil?
264
+ is_nullable = self.class.openapi_nullable.include?(attr)
265
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
266
+ end
267
+
268
+ hash[param] = _to_hash(value)
269
+ end
270
+ hash
271
+ end
272
+
273
+ # Outputs non-array value in the form of hash
274
+ # For object, use to_hash. Otherwise, just return the value
275
+ # @param [Object] value Any valid value
276
+ # @return [Hash] Returns the value in the form of hash
277
+ def _to_hash(value)
278
+ if value.is_a?(Array)
279
+ value.compact.map { |v| _to_hash(v) }
280
+ elsif value.is_a?(Hash)
281
+ {}.tap do |hash|
282
+ value.each { |k, v| hash[k] = _to_hash(v) }
283
+ end
284
+ elsif value.respond_to? :to_hash
285
+ value.to_hash
286
+ else
287
+ value
288
+ end
289
+ end
290
+ end
291
+ end