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
@@ -32,6 +32,8 @@ module KoronaCloudClient
32
32
 
33
33
  attr_accessor :booking_time
34
34
 
35
+ attr_accessor :cancelled
36
+
35
37
  attr_accessor :cashier
36
38
 
37
39
  attr_accessor :creation_time
@@ -42,14 +44,20 @@ module KoronaCloudClient
42
44
 
43
45
  attr_accessor :customer_group
44
46
 
45
- attr_accessor :order_number
46
-
47
47
  attr_accessor :deposit_amount
48
48
 
49
+ attr_accessor :fiscal_transactions
50
+
49
51
  attr_accessor :geo_location
50
52
 
53
+ attr_accessor :info_texts
54
+
51
55
  attr_accessor :items
52
56
 
57
+ attr_accessor :max_revisions
58
+
59
+ attr_accessor :order_number
60
+
53
61
  attr_accessor :organizational_unit
54
62
 
55
63
  attr_accessor :payments
@@ -58,13 +66,15 @@ module KoronaCloudClient
58
66
 
59
67
  attr_accessor :price_group
60
68
 
69
+ attr_accessor :signature
70
+
61
71
  attr_accessor :voided
62
72
 
63
- attr_accessor :signature
73
+ attr_accessor :voided_items
64
74
 
65
- attr_accessor :cancelled
75
+ attr_accessor :void_fiscal_transactions
66
76
 
67
- attr_accessor :info_texts
77
+ attr_accessor :warehouse
68
78
 
69
79
  attr_accessor :zcounter
70
80
 
@@ -78,23 +88,28 @@ module KoronaCloudClient
78
88
  :'account_transactions' => :'accountTransactions',
79
89
  :'additional_info' => :'additionalInfo',
80
90
  :'booking_time' => :'bookingTime',
91
+ :'cancelled' => :'cancelled',
81
92
  :'cashier' => :'cashier',
82
93
  :'creation_time' => :'creationTime',
83
94
  :'currency' => :'currency',
84
95
  :'customer' => :'customer',
85
96
  :'customer_group' => :'customerGroup',
86
- :'order_number' => :'orderNumber',
87
97
  :'deposit_amount' => :'depositAmount',
98
+ :'fiscal_transactions' => :'fiscalTransactions',
88
99
  :'geo_location' => :'geoLocation',
100
+ :'info_texts' => :'infoTexts',
89
101
  :'items' => :'items',
102
+ :'max_revisions' => :'maxRevisions',
103
+ :'order_number' => :'orderNumber',
90
104
  :'organizational_unit' => :'organizationalUnit',
91
105
  :'payments' => :'payments',
92
106
  :'point_of_sale' => :'pointOfSale',
93
107
  :'price_group' => :'priceGroup',
94
- :'voided' => :'voided',
95
108
  :'signature' => :'signature',
96
- :'cancelled' => :'cancelled',
97
- :'info_texts' => :'infoTexts',
109
+ :'voided' => :'voided',
110
+ :'voided_items' => :'voidedItems',
111
+ :'void_fiscal_transactions' => :'voidFiscalTransactions',
112
+ :'warehouse' => :'warehouse',
98
113
  :'zcounter' => :'zcounter'
99
114
  }
100
115
  end
@@ -109,23 +124,28 @@ module KoronaCloudClient
109
124
  :'account_transactions' => :'Array<AccountTransaction>',
110
125
  :'additional_info' => :'Array<AdditionalInfo>',
111
126
  :'booking_time' => :'DateTime',
127
+ :'cancelled' => :'Boolean',
112
128
  :'cashier' => :'ModelReference',
113
129
  :'creation_time' => :'DateTime',
114
130
  :'currency' => :'ModelReference',
115
131
  :'customer' => :'ModelReference',
116
132
  :'customer_group' => :'ModelReference',
117
- :'order_number' => :'String',
118
133
  :'deposit_amount' => :'Float',
134
+ :'fiscal_transactions' => :'Array<FiscalTransaction>',
119
135
  :'geo_location' => :'GeoLocation',
136
+ :'info_texts' => :'Array<String>',
120
137
  :'items' => :'Array<ReceiptItem>',
138
+ :'max_revisions' => :'ReceiptMaxRevisions',
139
+ :'order_number' => :'String',
121
140
  :'organizational_unit' => :'ModelReference',
122
141
  :'payments' => :'Array<Payment>',
123
142
  :'point_of_sale' => :'ModelReference',
124
143
  :'price_group' => :'ModelReference',
125
- :'voided' => :'Boolean',
126
144
  :'signature' => :'Signature',
127
- :'cancelled' => :'Boolean',
128
- :'info_texts' => :'Array<String>',
145
+ :'voided' => :'Boolean',
146
+ :'voided_items' => :'Array<VoidedReceiptItem>',
147
+ :'void_fiscal_transactions' => :'Array<FiscalTransaction>',
148
+ :'warehouse' => :'ModelReference',
129
149
  :'zcounter' => :'Integer'
130
150
  }
131
151
  end
@@ -183,6 +203,10 @@ module KoronaCloudClient
183
203
  self.booking_time = attributes[:'booking_time']
184
204
  end
185
205
 
206
+ if attributes.key?(:'cancelled')
207
+ self.cancelled = attributes[:'cancelled']
208
+ end
209
+
186
210
  if attributes.key?(:'cashier')
187
211
  self.cashier = attributes[:'cashier']
188
212
  end
@@ -203,24 +227,40 @@ module KoronaCloudClient
203
227
  self.customer_group = attributes[:'customer_group']
204
228
  end
205
229
 
206
- if attributes.key?(:'order_number')
207
- self.order_number = attributes[:'order_number']
208
- end
209
-
210
230
  if attributes.key?(:'deposit_amount')
211
231
  self.deposit_amount = attributes[:'deposit_amount']
212
232
  end
213
233
 
234
+ if attributes.key?(:'fiscal_transactions')
235
+ if (value = attributes[:'fiscal_transactions']).is_a?(Array)
236
+ self.fiscal_transactions = value
237
+ end
238
+ end
239
+
214
240
  if attributes.key?(:'geo_location')
215
241
  self.geo_location = attributes[:'geo_location']
216
242
  end
217
243
 
244
+ if attributes.key?(:'info_texts')
245
+ if (value = attributes[:'info_texts']).is_a?(Array)
246
+ self.info_texts = value
247
+ end
248
+ end
249
+
218
250
  if attributes.key?(:'items')
219
251
  if (value = attributes[:'items']).is_a?(Array)
220
252
  self.items = value
221
253
  end
222
254
  end
223
255
 
256
+ if attributes.key?(:'max_revisions')
257
+ self.max_revisions = attributes[:'max_revisions']
258
+ end
259
+
260
+ if attributes.key?(:'order_number')
261
+ self.order_number = attributes[:'order_number']
262
+ end
263
+
224
264
  if attributes.key?(:'organizational_unit')
225
265
  self.organizational_unit = attributes[:'organizational_unit']
226
266
  end
@@ -239,22 +279,28 @@ module KoronaCloudClient
239
279
  self.price_group = attributes[:'price_group']
240
280
  end
241
281
 
282
+ if attributes.key?(:'signature')
283
+ self.signature = attributes[:'signature']
284
+ end
285
+
242
286
  if attributes.key?(:'voided')
243
287
  self.voided = attributes[:'voided']
244
288
  end
245
289
 
246
- if attributes.key?(:'signature')
247
- self.signature = attributes[:'signature']
290
+ if attributes.key?(:'voided_items')
291
+ if (value = attributes[:'voided_items']).is_a?(Array)
292
+ self.voided_items = value
293
+ end
248
294
  end
249
295
 
250
- if attributes.key?(:'cancelled')
251
- self.cancelled = attributes[:'cancelled']
296
+ if attributes.key?(:'void_fiscal_transactions')
297
+ if (value = attributes[:'void_fiscal_transactions']).is_a?(Array)
298
+ self.void_fiscal_transactions = value
299
+ end
252
300
  end
253
301
 
254
- if attributes.key?(:'info_texts')
255
- if (value = attributes[:'info_texts']).is_a?(Array)
256
- self.info_texts = value
257
- end
302
+ if attributes.key?(:'warehouse')
303
+ self.warehouse = attributes[:'warehouse']
258
304
  end
259
305
 
260
306
  if attributes.key?(:'zcounter')
@@ -287,23 +333,28 @@ module KoronaCloudClient
287
333
  account_transactions == o.account_transactions &&
288
334
  additional_info == o.additional_info &&
289
335
  booking_time == o.booking_time &&
336
+ cancelled == o.cancelled &&
290
337
  cashier == o.cashier &&
291
338
  creation_time == o.creation_time &&
292
339
  currency == o.currency &&
293
340
  customer == o.customer &&
294
341
  customer_group == o.customer_group &&
295
- order_number == o.order_number &&
296
342
  deposit_amount == o.deposit_amount &&
343
+ fiscal_transactions == o.fiscal_transactions &&
297
344
  geo_location == o.geo_location &&
345
+ info_texts == o.info_texts &&
298
346
  items == o.items &&
347
+ max_revisions == o.max_revisions &&
348
+ order_number == o.order_number &&
299
349
  organizational_unit == o.organizational_unit &&
300
350
  payments == o.payments &&
301
351
  point_of_sale == o.point_of_sale &&
302
352
  price_group == o.price_group &&
303
- voided == o.voided &&
304
353
  signature == o.signature &&
305
- cancelled == o.cancelled &&
306
- info_texts == o.info_texts &&
354
+ voided == o.voided &&
355
+ voided_items == o.voided_items &&
356
+ void_fiscal_transactions == o.void_fiscal_transactions &&
357
+ warehouse == o.warehouse &&
307
358
  zcounter == o.zcounter
308
359
  end
309
360
 
@@ -316,7 +367,7 @@ module KoronaCloudClient
316
367
  # Calculates hash code according to all attributes.
317
368
  # @return [Integer] Hash code
318
369
  def hash
319
- [active, id, number, revision, account_transactions, additional_info, booking_time, cashier, creation_time, currency, customer, customer_group, order_number, deposit_amount, geo_location, items, organizational_unit, payments, point_of_sale, price_group, voided, signature, cancelled, info_texts, zcounter].hash
370
+ [active, id, number, revision, account_transactions, additional_info, booking_time, cancelled, cashier, creation_time, currency, customer, customer_group, deposit_amount, fiscal_transactions, geo_location, info_texts, items, max_revisions, order_number, organizational_unit, payments, point_of_sale, price_group, signature, voided, voided_items, void_fiscal_transactions, warehouse, zcounter].hash
320
371
  end
321
372
 
322
373
  # Builds the object from hash
@@ -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
@@ -40,6 +40,8 @@ module KoronaCloudClient
40
40
 
41
41
  attr_accessor :delivery_date
42
42
 
43
+ attr_accessor :attendance
44
+
43
45
  # Attribute mapping from ruby-style variable name to JSON key.
44
46
  def self.attribute_map
45
47
  {
@@ -55,7 +57,8 @@ module KoronaCloudClient
55
57
  :'sector' => :'sector',
56
58
  :'serial_numbers' => :'serialNumbers',
57
59
  :'total' => :'total',
58
- :'delivery_date' => :'deliveryDate'
60
+ :'delivery_date' => :'deliveryDate',
61
+ :'attendance' => :'attendance'
59
62
  }
60
63
  end
61
64
 
@@ -74,7 +77,8 @@ module KoronaCloudClient
74
77
  :'sector' => :'ModelReference',
75
78
  :'serial_numbers' => :'Array<String>',
76
79
  :'total' => :'TotalPrice',
77
- :'delivery_date' => :'DateTime'
80
+ :'delivery_date' => :'DateTime',
81
+ :'attendance' => :'ModelReference'
78
82
  }
79
83
  end
80
84
 
@@ -156,6 +160,10 @@ module KoronaCloudClient
156
160
  if attributes.key?(:'delivery_date')
157
161
  self.delivery_date = attributes[:'delivery_date']
158
162
  end
163
+
164
+ if attributes.key?(:'attendance')
165
+ self.attendance = attributes[:'attendance']
166
+ end
159
167
  end
160
168
 
161
169
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -188,7 +196,8 @@ module KoronaCloudClient
188
196
  sector == o.sector &&
189
197
  serial_numbers == o.serial_numbers &&
190
198
  total == o.total &&
191
- delivery_date == o.delivery_date
199
+ delivery_date == o.delivery_date &&
200
+ attendance == o.attendance
192
201
  end
193
202
 
194
203
  # @see the `==` method
@@ -200,7 +209,7 @@ module KoronaCloudClient
200
209
  # Calculates hash code according to all attributes.
201
210
  # @return [Integer] Hash code
202
211
  def hash
203
- [booking_time, commodity_group, indent, info_texts, discounts, manual_price, product, quantity, recognition_number, sector, serial_numbers, total, delivery_date].hash
212
+ [booking_time, commodity_group, indent, info_texts, discounts, manual_price, product, quantity, recognition_number, sector, serial_numbers, total, delivery_date, attendance].hash
204
213
  end
205
214
 
206
215
  # Builds the object from hash
@@ -0,0 +1,251 @@
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 ReceiptMaxRevisions
17
+ attr_accessor :account
18
+
19
+ attr_accessor :cashier
20
+
21
+ attr_accessor :customer
22
+
23
+ attr_accessor :customer_group
24
+
25
+ attr_accessor :organizational_unit
26
+
27
+ attr_accessor :sales_tax
28
+
29
+ # Attribute mapping from ruby-style variable name to JSON key.
30
+ def self.attribute_map
31
+ {
32
+ :'account' => :'account',
33
+ :'cashier' => :'cashier',
34
+ :'customer' => :'customer',
35
+ :'customer_group' => :'customerGroup',
36
+ :'organizational_unit' => :'organizationalUnit',
37
+ :'sales_tax' => :'salesTax'
38
+ }
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ def self.openapi_types
43
+ {
44
+ :'account' => :'Integer',
45
+ :'cashier' => :'Integer',
46
+ :'customer' => :'Integer',
47
+ :'customer_group' => :'Integer',
48
+ :'organizational_unit' => :'Integer',
49
+ :'sales_tax' => :'Integer'
50
+ }
51
+ end
52
+
53
+ # List of attributes with nullable: true
54
+ def self.openapi_nullable
55
+ Set.new([
56
+ ])
57
+ end
58
+
59
+ # Initializes the object
60
+ # @param [Hash] attributes Model attributes in the form of hash
61
+ def initialize(attributes = {})
62
+ if (!attributes.is_a?(Hash))
63
+ fail ArgumentError, "The input argument (attributes) must be a hash in `KoronaCloudClient::ReceiptMaxRevisions` initialize method"
64
+ end
65
+
66
+ # check to see if the attribute exists and convert string to symbol for hash key
67
+ attributes = attributes.each_with_object({}) { |(k, v), h|
68
+ if (!self.class.attribute_map.key?(k.to_sym))
69
+ fail ArgumentError, "`#{k}` is not a valid attribute in `KoronaCloudClient::ReceiptMaxRevisions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
70
+ end
71
+ h[k.to_sym] = v
72
+ }
73
+
74
+ if attributes.key?(:'account')
75
+ self.account = attributes[:'account']
76
+ end
77
+
78
+ if attributes.key?(:'cashier')
79
+ self.cashier = attributes[:'cashier']
80
+ end
81
+
82
+ if attributes.key?(:'customer')
83
+ self.customer = attributes[:'customer']
84
+ end
85
+
86
+ if attributes.key?(:'customer_group')
87
+ self.customer_group = attributes[:'customer_group']
88
+ end
89
+
90
+ if attributes.key?(:'organizational_unit')
91
+ self.organizational_unit = attributes[:'organizational_unit']
92
+ end
93
+
94
+ if attributes.key?(:'sales_tax')
95
+ self.sales_tax = attributes[:'sales_tax']
96
+ end
97
+ end
98
+
99
+ # Show invalid properties with the reasons. Usually used together with valid?
100
+ # @return Array for valid properties with the reasons
101
+ def list_invalid_properties
102
+ invalid_properties = Array.new
103
+ invalid_properties
104
+ end
105
+
106
+ # Check to see if the all the properties in the model are valid
107
+ # @return true if the model is valid
108
+ def valid?
109
+ true
110
+ end
111
+
112
+ # Checks equality by comparing each attribute.
113
+ # @param [Object] Object to be compared
114
+ def ==(o)
115
+ return true if self.equal?(o)
116
+ self.class == o.class &&
117
+ account == o.account &&
118
+ cashier == o.cashier &&
119
+ customer == o.customer &&
120
+ customer_group == o.customer_group &&
121
+ organizational_unit == o.organizational_unit &&
122
+ sales_tax == o.sales_tax
123
+ end
124
+
125
+ # @see the `==` method
126
+ # @param [Object] Object to be compared
127
+ def eql?(o)
128
+ self == o
129
+ end
130
+
131
+ # Calculates hash code according to all attributes.
132
+ # @return [Integer] Hash code
133
+ def hash
134
+ [account, cashier, customer, customer_group, organizational_unit, sales_tax].hash
135
+ end
136
+
137
+ # Builds the object from hash
138
+ # @param [Hash] attributes Model attributes in the form of hash
139
+ # @return [Object] Returns the model itself
140
+ def self.build_from_hash(attributes)
141
+ new.build_from_hash(attributes)
142
+ end
143
+
144
+ # Builds the object from hash
145
+ # @param [Hash] attributes Model attributes in the form of hash
146
+ # @return [Object] Returns the model itself
147
+ def build_from_hash(attributes)
148
+ return nil unless attributes.is_a?(Hash)
149
+ self.class.openapi_types.each_pair do |key, type|
150
+ if type =~ /\AArray<(.*)>/i
151
+ # check to ensure the input is an array given that the attribute
152
+ # is documented as an array but the input is not
153
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
154
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
155
+ end
156
+ elsif !attributes[self.class.attribute_map[key]].nil?
157
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
158
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
159
+ end
160
+
161
+ self
162
+ end
163
+
164
+ # Deserializes the data based on type
165
+ # @param string type Data type
166
+ # @param string value Value to be deserialized
167
+ # @return [Object] Deserialized data
168
+ def _deserialize(type, value)
169
+ case type.to_sym
170
+ when :DateTime
171
+ DateTime.parse(value)
172
+ when :Date
173
+ Date.parse(value)
174
+ when :String
175
+ value.to_s
176
+ when :Integer
177
+ value.to_i
178
+ when :Float
179
+ value.to_f
180
+ when :Boolean
181
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
182
+ true
183
+ else
184
+ false
185
+ end
186
+ when :Object
187
+ # generic object (usually a Hash), return directly
188
+ value
189
+ when /\AArray<(?<inner_type>.+)>\z/
190
+ inner_type = Regexp.last_match[:inner_type]
191
+ value.map { |v| _deserialize(inner_type, v) }
192
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
193
+ k_type = Regexp.last_match[:k_type]
194
+ v_type = Regexp.last_match[:v_type]
195
+ {}.tap do |hash|
196
+ value.each do |k, v|
197
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
198
+ end
199
+ end
200
+ else # model
201
+ KoronaCloudClient.const_get(type).build_from_hash(value)
202
+ end
203
+ end
204
+
205
+ # Returns the string representation of the object
206
+ # @return [String] String presentation of the object
207
+ def to_s
208
+ to_hash.to_s
209
+ end
210
+
211
+ # to_body is an alias to to_hash (backward compatibility)
212
+ # @return [Hash] Returns the object in the form of hash
213
+ def to_body
214
+ to_hash
215
+ end
216
+
217
+ # Returns the object in the form of hash
218
+ # @return [Hash] Returns the object in the form of hash
219
+ def to_hash
220
+ hash = {}
221
+ self.class.attribute_map.each_pair do |attr, param|
222
+ value = self.send(attr)
223
+ if value.nil?
224
+ is_nullable = self.class.openapi_nullable.include?(attr)
225
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
226
+ end
227
+
228
+ hash[param] = _to_hash(value)
229
+ end
230
+ hash
231
+ end
232
+
233
+ # Outputs non-array value in the form of hash
234
+ # For object, use to_hash. Otherwise, just return the value
235
+ # @param [Object] value Any valid value
236
+ # @return [Hash] Returns the value in the form of hash
237
+ def _to_hash(value)
238
+ if value.is_a?(Array)
239
+ value.compact.map { |v| _to_hash(v) }
240
+ elsif value.is_a?(Hash)
241
+ {}.tap do |hash|
242
+ value.each { |k, v| hash[k] = _to_hash(v) }
243
+ end
244
+ elsif value.respond_to? :to_hash
245
+ value.to_hash
246
+ else
247
+ value
248
+ end
249
+ end
250
+ end
251
+ end