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
@@ -4,11 +4,124 @@ All URIs are relative to *https://www.koronacloud.com/web/api/v3*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
+ [**add_info_texts**](InfoTextsApi.md#add_info_texts) | **POST** /accounts/{koronaAccountId}/infoTexts | adds a batch of new info texts
8
+ [**delete_info_texts**](InfoTextsApi.md#delete_info_texts) | **DELETE** /accounts/{koronaAccountId}/infoTexts | deletes a batch of info texts
7
9
  [**get_info_text**](InfoTextsApi.md#get_info_text) | **GET** /accounts/{koronaAccountId}/infoTexts/{infoTextId} | returns the single info text
8
10
  [**get_info_texts**](InfoTextsApi.md#get_info_texts) | **GET** /accounts/{koronaAccountId}/infoTexts | lists all info texts
11
+ [**update_info_texts**](InfoTextsApi.md#update_info_texts) | **PATCH** /accounts/{koronaAccountId}/infoTexts | updates a batch of info texts
9
12
 
10
13
 
11
14
 
15
+ ## add_info_texts
16
+
17
+ > Array<AddOrUpdateResult> add_info_texts(korona_account_id, body, opts)
18
+
19
+ adds a batch of new info texts
20
+
21
+ ### Example
22
+
23
+ ```ruby
24
+ # load the gem
25
+ require 'korona-cloud-client'
26
+ # setup authorization
27
+ KoronaCloudClient.configure do |config|
28
+ # Configure HTTP basic authorization: basicAuth
29
+ config.username = 'YOUR USERNAME'
30
+ config.password = 'YOUR PASSWORD'
31
+ end
32
+
33
+ api_instance = KoronaCloudClient::InfoTextsApi.new
34
+ korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
35
+ body = [KoronaCloudClient::InfoText.new] # Array<InfoText> | array of new info texts
36
+ opts = {
37
+ upsert: true # Boolean | when set to true, updates the object instead of generating a already-exists-error
38
+ }
39
+
40
+ begin
41
+ #adds a batch of new info texts
42
+ result = api_instance.add_info_texts(korona_account_id, body, opts)
43
+ p result
44
+ rescue KoronaCloudClient::ApiError => e
45
+ puts "Exception when calling InfoTextsApi->add_info_texts: #{e}"
46
+ end
47
+ ```
48
+
49
+ ### Parameters
50
+
51
+
52
+ Name | Type | Description | Notes
53
+ ------------- | ------------- | ------------- | -------------
54
+ **korona_account_id** | **String**| account id of the KORONA.cloud account |
55
+ **body** | [**Array&lt;InfoText&gt;**](InfoText.md)| array of new info texts |
56
+ **upsert** | **Boolean**| when set to true, updates the object instead of generating a already-exists-error | [optional]
57
+
58
+ ### Return type
59
+
60
+ [**Array&lt;AddOrUpdateResult&gt;**](AddOrUpdateResult.md)
61
+
62
+ ### Authorization
63
+
64
+ [basicAuth](../README.md#basicAuth)
65
+
66
+ ### HTTP request headers
67
+
68
+ - **Content-Type**: application/json
69
+ - **Accept**: application/json
70
+
71
+
72
+ ## delete_info_texts
73
+
74
+ > Array&lt;AddOrUpdateResult&gt; delete_info_texts(korona_account_id, body)
75
+
76
+ deletes a batch of info texts
77
+
78
+ ### Example
79
+
80
+ ```ruby
81
+ # load the gem
82
+ require 'korona-cloud-client'
83
+ # setup authorization
84
+ KoronaCloudClient.configure do |config|
85
+ # Configure HTTP basic authorization: basicAuth
86
+ config.username = 'YOUR USERNAME'
87
+ config.password = 'YOUR PASSWORD'
88
+ end
89
+
90
+ api_instance = KoronaCloudClient::InfoTextsApi.new
91
+ korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
92
+ body = [KoronaCloudClient::InfoText.new] # Array<InfoText> | array of existing info texts (id or number required)
93
+
94
+ begin
95
+ #deletes a batch of info texts
96
+ result = api_instance.delete_info_texts(korona_account_id, body)
97
+ p result
98
+ rescue KoronaCloudClient::ApiError => e
99
+ puts "Exception when calling InfoTextsApi->delete_info_texts: #{e}"
100
+ end
101
+ ```
102
+
103
+ ### Parameters
104
+
105
+
106
+ Name | Type | Description | Notes
107
+ ------------- | ------------- | ------------- | -------------
108
+ **korona_account_id** | **String**| account id of the KORONA.cloud account |
109
+ **body** | [**Array&lt;InfoText&gt;**](InfoText.md)| array of existing info texts (id or number required) |
110
+
111
+ ### Return type
112
+
113
+ [**Array&lt;AddOrUpdateResult&gt;**](AddOrUpdateResult.md)
114
+
115
+ ### Authorization
116
+
117
+ [basicAuth](../README.md#basicAuth)
118
+
119
+ ### HTTP request headers
120
+
121
+ - **Content-Type**: application/json
122
+ - **Accept**: application/json
123
+
124
+
12
125
  ## get_info_text
13
126
 
14
127
  > InfoText get_info_text(korona_account_id, info_text_id)
@@ -126,3 +239,56 @@ Name | Type | Description | Notes
126
239
  - **Content-Type**: Not defined
127
240
  - **Accept**: application/json
128
241
 
242
+
243
+ ## update_info_texts
244
+
245
+ > Array&lt;AddOrUpdateResult&gt; update_info_texts(korona_account_id, body)
246
+
247
+ updates a batch of info texts
248
+
249
+ ### Example
250
+
251
+ ```ruby
252
+ # load the gem
253
+ require 'korona-cloud-client'
254
+ # setup authorization
255
+ KoronaCloudClient.configure do |config|
256
+ # Configure HTTP basic authorization: basicAuth
257
+ config.username = 'YOUR USERNAME'
258
+ config.password = 'YOUR PASSWORD'
259
+ end
260
+
261
+ api_instance = KoronaCloudClient::InfoTextsApi.new
262
+ korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
263
+ body = [KoronaCloudClient::InfoText.new] # Array<InfoText> | array of existing info texts (id or number required)
264
+
265
+ begin
266
+ #updates a batch of info texts
267
+ result = api_instance.update_info_texts(korona_account_id, body)
268
+ p result
269
+ rescue KoronaCloudClient::ApiError => e
270
+ puts "Exception when calling InfoTextsApi->update_info_texts: #{e}"
271
+ end
272
+ ```
273
+
274
+ ### Parameters
275
+
276
+
277
+ Name | Type | Description | Notes
278
+ ------------- | ------------- | ------------- | -------------
279
+ **korona_account_id** | **String**| account id of the KORONA.cloud account |
280
+ **body** | [**Array&lt;InfoText&gt;**](InfoText.md)| array of existing info texts (id or number required) |
281
+
282
+ ### Return type
283
+
284
+ [**Array&lt;AddOrUpdateResult&gt;**](AddOrUpdateResult.md)
285
+
286
+ ### Authorization
287
+
288
+ [basicAuth](../README.md#basicAuth)
289
+
290
+ ### HTTP request headers
291
+
292
+ - **Content-Type**: application/json
293
+ - **Accept**: application/json
294
+
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
8
8
  **id** | **String** | global object uuid (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) | [optional]
9
9
  **number** | **String** | number of the object, like it is set in backoffice; will be removed when active&#x3D;false | [optional]
10
10
  **revision** | **Integer** | the revision number of the object. revision numbers are unique per object-type. there is is no object of the same type with identical revision numbers. | [optional] [readonly]
11
+ **active_package_details** | [**Array&lt;CloudSubscriptionDetails&gt;**](CloudSubscriptionDetails.md) | | [optional]
11
12
  **active_packages** | **Array&lt;String&gt;** | | [optional]
12
13
  **address** | [**AddressInformation**](AddressInformation.md) | | [optional]
13
14
  **cloud_subscription** | [**CloudSubscription**](CloudSubscription.md) | | [optional]
@@ -24,6 +25,7 @@ instance = KoronaCloudClient::KoronaAccount.new(active: null,
24
25
  id: null,
25
26
  number: null,
26
27
  revision: null,
28
+ active_package_details: null,
27
29
  active_packages: null,
28
30
  address: null,
29
31
  cloud_subscription: null,
@@ -9,14 +9,15 @@ Name | Type | Description | Notes
9
9
  **number** | **String** | number of the object, like it is set in backoffice; will be removed when active&#x3D;false | [optional]
10
10
  **revision** | **Integer** | the revision number of the object. revision numbers are unique per object-type. there is is no object of the same type with identical revision numbers. | [optional] [readonly]
11
11
  **address** | [**AddressInformation**](AddressInformation.md) | | [optional]
12
+ **cost_center** | [**ModelReference**](ModelReference.md) | | [optional]
12
13
  **economic_zone** | [**ModelReference**](ModelReference.md) | | [optional]
14
+ **eh_number** | **Integer** | | [optional]
15
+ **identification** | [**CompanyIdentification**](CompanyIdentification.md) | | [optional]
13
16
  **name** | **String** | |
17
+ **opening_hours** | [**Array&lt;OpeningHours&gt;**](OpeningHours.md) | | [optional]
14
18
  **parent_organizational_unit** | [**ModelReference**](ModelReference.md) | | [optional]
15
19
  **price_group** | [**ModelReference**](ModelReference.md) | | [optional]
16
20
  **warehouse** | **Boolean** | | [optional]
17
- **cost_center** | [**ModelReference**](ModelReference.md) | | [optional]
18
- **opening_hours** | [**Array&lt;OpeningHours&gt;**](OpeningHours.md) | | [optional]
19
- **eh_number** | **Integer** | | [optional]
20
21
 
21
22
  ## Code Sample
22
23
 
@@ -28,14 +29,15 @@ instance = KoronaCloudClient::OrganizationalUnit.new(active: null,
28
29
  number: null,
29
30
  revision: null,
30
31
  address: null,
32
+ cost_center: null,
31
33
  economic_zone: null,
34
+ eh_number: null,
35
+ identification: null,
32
36
  name: null,
37
+ opening_hours: null,
33
38
  parent_organizational_unit: null,
34
39
  price_group: null,
35
- warehouse: null,
36
- cost_center: null,
37
- opening_hours: null,
38
- eh_number: null)
40
+ warehouse: null)
39
41
  ```
40
42
 
41
43
 
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
13
13
  **force_customer_number** | **Boolean** | | [optional]
14
14
  **force_print** | **Boolean** | | [optional]
15
15
  **name** | **String** | | [optional]
16
+ **payment_service** | [**Service**](Service.md) | | [optional]
16
17
  **print_copies** | **Integer** | | [optional]
17
18
  **tag** | [**ModelReference**](ModelReference.md) | | [optional]
18
19
  **use_cash_drawer** | **Boolean** | | [optional]
@@ -32,6 +33,7 @@ instance = KoronaCloudClient::PaymentMethod.new(active: null,
32
33
  force_customer_number: null,
33
34
  force_print: null,
34
35
  name: null,
36
+ payment_service: null,
35
37
  print_copies: null,
36
38
  tag: null,
37
39
  use_cash_drawer: null,
@@ -278,7 +278,8 @@ korona_account_id = 'korona_account_id_example' # String | account id of the KOR
278
278
  point_of_sale_id = 'point_of_sale_id_example' # String | id of the related object (important: id should match the uuid-format)
279
279
  receipt_id = 'receipt_id_example' # String | the id of the receipt
280
280
  opts = {
281
- coupling_id: 'coupling_id_example' # String | the coupling-id of the device. It can be set to check whether your coupling-id is correct or not (works only, if point of sale is external).
281
+ coupling_id: 'coupling_id_example', # String | the coupling-id of the device. It can be set to check whether your coupling-id is correct or not (works only, if point of sale is external).
282
+ voided_items: true # Boolean | when set to true, voided items will be returned
282
283
  }
283
284
 
284
285
  begin
@@ -299,6 +300,7 @@ Name | Type | Description | Notes
299
300
  **point_of_sale_id** | **String**| id of the related object (important: id should match the uuid-format) |
300
301
  **receipt_id** | **String**| the id of the receipt |
301
302
  **coupling_id** | **String**| the coupling-id of the device. It can be set to check whether your coupling-id is correct or not (works only, if point of sale is external). | [optional]
303
+ **voided_items** | **Boolean**| when set to true, voided items will be returned | [optional]
302
304
 
303
305
  ### Return type
304
306
 
@@ -346,7 +348,8 @@ opts = {
346
348
  max_create_time: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | max (inclusive) create time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
347
349
  number: 'number_example', # String | number of the related object
348
350
  min_booking_time: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | min (inclusive) booking time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
349
- max_booking_time: DateTime.parse('2013-10-20T19:20:30+01:00') # DateTime | max (inclusive) booking time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
351
+ max_booking_time: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | max (inclusive) booking time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
352
+ voided_items: true # Boolean | when set to true, voided items will be returned
350
353
  }
351
354
 
352
355
  begin
@@ -376,6 +379,7 @@ Name | Type | Description | Notes
376
379
  **number** | **String**| number of the related object | [optional]
377
380
  **min_booking_time** | **DateTime**| min (inclusive) booking time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional) | [optional]
378
381
  **max_booking_time** | **DateTime**| max (inclusive) booking time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional) | [optional]
382
+ **voided_items** | **Boolean**| when set to true, voided items will be returned | [optional]
379
383
 
380
384
  ### Return type
381
385
 
@@ -8,12 +8,14 @@ Name | Type | Description | Notes
8
8
  **id** | **String** | global object uuid (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) | [optional]
9
9
  **number** | **String** | number of the object, like it is set in backoffice; will be removed when active&#x3D;false | [optional]
10
10
  **revision** | **Integer** | the revision number of the object. revision numbers are unique per object-type. there is is no object of the same type with identical revision numbers. | [optional] [readonly]
11
+ **contra_account** | [**ModelReference**](ModelReference.md) | | [optional]
11
12
  **coupled** | **Boolean** | | [optional] [readonly]
12
13
  **coupling_id** | **String** | | [optional]
13
14
  **default_customer_group** | [**ModelReference**](ModelReference.md) | | [optional]
14
15
  **default_payment_method** | [**ModelReference**](ModelReference.md) | | [optional]
15
16
  **device_information** | [**DeviceInformation**](DeviceInformation.md) | | [optional]
16
17
  **external** | **Boolean** | | [optional] [readonly]
18
+ **fiscal_unit** | [**ModelReference**](ModelReference.md) | | [optional]
17
19
  **last_receipt_number** | **String** | last receipt number - only shown if external&#x3D;true and coupled&#x3D;false; usable for client-side receipt counter. | [optional] [readonly]
18
20
  **last_z_count** | **Integer** | last zcount property - only shown if external&#x3D;true and coupled&#x3D;false; usable for client-side zcount. | [optional] [readonly]
19
21
  **name** | **String** | | [optional] [readonly]
@@ -21,9 +23,10 @@ Name | Type | Description | Notes
21
23
  **print_footer_lines** | **Hash&lt;String, String&gt;** | | [optional] [readonly]
22
24
  **print_header_lines** | **Hash&lt;String, String&gt;** | | [optional] [readonly]
23
25
  **receipt_info_texts** | [**Array&lt;ModelReference&gt;**](ModelReference.md) | | [optional] [readonly]
24
- **use_alternative_sector** | **Boolean** | | [optional]
25
- **contra_account** | [**ModelReference**](ModelReference.md) | | [optional]
26
+ **receipt_number_prefix** | **String** | | [optional] [readonly]
26
27
  **revenue_account** | [**ModelReference**](ModelReference.md) | | [optional]
28
+ **use_alternative_sector** | **Boolean** | | [optional]
29
+ **warehouse** | [**ModelReference**](ModelReference.md) | | [optional]
27
30
 
28
31
  ## Code Sample
29
32
 
@@ -34,12 +37,14 @@ instance = KoronaCloudClient::Pos.new(active: null,
34
37
  id: null,
35
38
  number: null,
36
39
  revision: null,
40
+ contra_account: null,
37
41
  coupled: null,
38
42
  coupling_id: null,
39
43
  default_customer_group: null,
40
44
  default_payment_method: null,
41
45
  device_information: null,
42
46
  external: null,
47
+ fiscal_unit: null,
43
48
  last_receipt_number: null,
44
49
  last_z_count: null,
45
50
  name: null,
@@ -47,9 +52,10 @@ instance = KoronaCloudClient::Pos.new(active: null,
47
52
  print_footer_lines: null,
48
53
  print_header_lines: null,
49
54
  receipt_info_texts: null,
55
+ receipt_number_prefix: null,
56
+ revenue_account: null,
50
57
  use_alternative_sector: null,
51
- contra_account: null,
52
- revenue_account: null)
58
+ warehouse: null)
53
59
  ```
54
60
 
55
61
 
@@ -4,11 +4,124 @@ All URIs are relative to *https://www.koronacloud.com/web/api/v3*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
+ [**add_price_groups**](PriceGroupsApi.md#add_price_groups) | **POST** /accounts/{koronaAccountId}/priceGroups | adds a batch of new price groups
8
+ [**delete_price_groups**](PriceGroupsApi.md#delete_price_groups) | **DELETE** /accounts/{koronaAccountId}/priceGroups | deletes a batch of price groups
7
9
  [**get_price_group**](PriceGroupsApi.md#get_price_group) | **GET** /accounts/{koronaAccountId}/priceGroups/{priceGroupId} | returns the single price group
8
10
  [**get_price_groups**](PriceGroupsApi.md#get_price_groups) | **GET** /accounts/{koronaAccountId}/priceGroups | lists all price groups
11
+ [**update_price_groups**](PriceGroupsApi.md#update_price_groups) | **PATCH** /accounts/{koronaAccountId}/priceGroups | updates a batch of price groups
9
12
 
10
13
 
11
14
 
15
+ ## add_price_groups
16
+
17
+ > Array&lt;AddOrUpdateResult&gt; add_price_groups(korona_account_id, body, opts)
18
+
19
+ adds a batch of new price groups
20
+
21
+ ### Example
22
+
23
+ ```ruby
24
+ # load the gem
25
+ require 'korona-cloud-client'
26
+ # setup authorization
27
+ KoronaCloudClient.configure do |config|
28
+ # Configure HTTP basic authorization: basicAuth
29
+ config.username = 'YOUR USERNAME'
30
+ config.password = 'YOUR PASSWORD'
31
+ end
32
+
33
+ api_instance = KoronaCloudClient::PriceGroupsApi.new
34
+ korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
35
+ body = [KoronaCloudClient::PriceGroup.new] # Array<PriceGroup> | array of new price groups
36
+ opts = {
37
+ upsert: true # Boolean | when set to true, updates the object instead of generating a already-exists-error
38
+ }
39
+
40
+ begin
41
+ #adds a batch of new price groups
42
+ result = api_instance.add_price_groups(korona_account_id, body, opts)
43
+ p result
44
+ rescue KoronaCloudClient::ApiError => e
45
+ puts "Exception when calling PriceGroupsApi->add_price_groups: #{e}"
46
+ end
47
+ ```
48
+
49
+ ### Parameters
50
+
51
+
52
+ Name | Type | Description | Notes
53
+ ------------- | ------------- | ------------- | -------------
54
+ **korona_account_id** | **String**| account id of the KORONA.cloud account |
55
+ **body** | [**Array&lt;PriceGroup&gt;**](PriceGroup.md)| array of new price groups |
56
+ **upsert** | **Boolean**| when set to true, updates the object instead of generating a already-exists-error | [optional]
57
+
58
+ ### Return type
59
+
60
+ [**Array&lt;AddOrUpdateResult&gt;**](AddOrUpdateResult.md)
61
+
62
+ ### Authorization
63
+
64
+ [basicAuth](../README.md#basicAuth)
65
+
66
+ ### HTTP request headers
67
+
68
+ - **Content-Type**: application/json
69
+ - **Accept**: application/json
70
+
71
+
72
+ ## delete_price_groups
73
+
74
+ > Array&lt;AddOrUpdateResult&gt; delete_price_groups(korona_account_id, body)
75
+
76
+ deletes a batch of price groups
77
+
78
+ ### Example
79
+
80
+ ```ruby
81
+ # load the gem
82
+ require 'korona-cloud-client'
83
+ # setup authorization
84
+ KoronaCloudClient.configure do |config|
85
+ # Configure HTTP basic authorization: basicAuth
86
+ config.username = 'YOUR USERNAME'
87
+ config.password = 'YOUR PASSWORD'
88
+ end
89
+
90
+ api_instance = KoronaCloudClient::PriceGroupsApi.new
91
+ korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
92
+ body = [KoronaCloudClient::PriceGroup.new] # Array<PriceGroup> | array of existing price groups (id or number required)
93
+
94
+ begin
95
+ #deletes a batch of price groups
96
+ result = api_instance.delete_price_groups(korona_account_id, body)
97
+ p result
98
+ rescue KoronaCloudClient::ApiError => e
99
+ puts "Exception when calling PriceGroupsApi->delete_price_groups: #{e}"
100
+ end
101
+ ```
102
+
103
+ ### Parameters
104
+
105
+
106
+ Name | Type | Description | Notes
107
+ ------------- | ------------- | ------------- | -------------
108
+ **korona_account_id** | **String**| account id of the KORONA.cloud account |
109
+ **body** | [**Array&lt;PriceGroup&gt;**](PriceGroup.md)| array of existing price groups (id or number required) |
110
+
111
+ ### Return type
112
+
113
+ [**Array&lt;AddOrUpdateResult&gt;**](AddOrUpdateResult.md)
114
+
115
+ ### Authorization
116
+
117
+ [basicAuth](../README.md#basicAuth)
118
+
119
+ ### HTTP request headers
120
+
121
+ - **Content-Type**: application/json
122
+ - **Accept**: application/json
123
+
124
+
12
125
  ## get_price_group
13
126
 
14
127
  > PriceGroup get_price_group(korona_account_id, price_group_id)
@@ -126,3 +239,56 @@ Name | Type | Description | Notes
126
239
  - **Content-Type**: Not defined
127
240
  - **Accept**: application/json
128
241
 
242
+
243
+ ## update_price_groups
244
+
245
+ > Array&lt;AddOrUpdateResult&gt; update_price_groups(korona_account_id, body)
246
+
247
+ updates a batch of price groups
248
+
249
+ ### Example
250
+
251
+ ```ruby
252
+ # load the gem
253
+ require 'korona-cloud-client'
254
+ # setup authorization
255
+ KoronaCloudClient.configure do |config|
256
+ # Configure HTTP basic authorization: basicAuth
257
+ config.username = 'YOUR USERNAME'
258
+ config.password = 'YOUR PASSWORD'
259
+ end
260
+
261
+ api_instance = KoronaCloudClient::PriceGroupsApi.new
262
+ korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
263
+ body = [KoronaCloudClient::PriceGroup.new] # Array<PriceGroup> | array of existing price groups (id or number required)
264
+
265
+ begin
266
+ #updates a batch of price groups
267
+ result = api_instance.update_price_groups(korona_account_id, body)
268
+ p result
269
+ rescue KoronaCloudClient::ApiError => e
270
+ puts "Exception when calling PriceGroupsApi->update_price_groups: #{e}"
271
+ end
272
+ ```
273
+
274
+ ### Parameters
275
+
276
+
277
+ Name | Type | Description | Notes
278
+ ------------- | ------------- | ------------- | -------------
279
+ **korona_account_id** | **String**| account id of the KORONA.cloud account |
280
+ **body** | [**Array&lt;PriceGroup&gt;**](PriceGroup.md)| array of existing price groups (id or number required) |
281
+
282
+ ### Return type
283
+
284
+ [**Array&lt;AddOrUpdateResult&gt;**](AddOrUpdateResult.md)
285
+
286
+ ### Authorization
287
+
288
+ [basicAuth](../README.md#basicAuth)
289
+
290
+ ### HTTP request headers
291
+
292
+ - **Content-Type**: application/json
293
+ - **Accept**: application/json
294
+