korona_client 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (309) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +171 -89
  3. data/config.json +6 -0
  4. data/docs/AccountTransaction.md +2 -0
  5. data/docs/AccountsApi.md +12 -12
  6. data/docs/AddOrUpdateResult.md +1 -0
  7. data/docs/AdditionalInfo.md +9 -0
  8. data/docs/AdditionalReceiptInfoType.md +22 -0
  9. data/docs/AdditionalReceiptInfoTypesApi.md +133 -0
  10. data/docs/AssortmentsApi.md +217 -48
  11. data/docs/Attendance.md +17 -0
  12. data/docs/Cashier.md +1 -0
  13. data/docs/CashiersApi.md +15 -13
  14. data/docs/Category.md +1 -0
  15. data/docs/CommodityGroupsApi.md +423 -0
  16. data/docs/CreationTask.md +17 -0
  17. data/docs/CurrenciesApi.md +15 -13
  18. data/docs/CustomerGroupsApi.md +15 -13
  19. data/docs/CustomerOrder.md +2 -2
  20. data/docs/CustomerOrdersApi.md +52 -46
  21. data/docs/CustomersApi.md +108 -45
  22. data/docs/DayTimePeriod.md +9 -0
  23. data/docs/DeliveryNote.md +22 -0
  24. data/docs/DeliveryNoteItem.md +14 -0
  25. data/docs/DeliveryNotesApi.md +316 -0
  26. data/docs/Deposit.md +12 -0
  27. data/docs/Discount.md +10 -0
  28. data/docs/EconomicZonesApi.md +15 -13
  29. data/docs/EndOfDayStatement.md +1 -1
  30. data/docs/Event.md +2 -0
  31. data/docs/ExternalSystemCall.md +20 -0
  32. data/docs/ExternalSystemCallsApi.md +423 -0
  33. data/docs/ImagesApi.md +8 -7
  34. data/docs/InfoTextsApi.md +15 -13
  35. data/docs/InventoriesApi.md +894 -0
  36. data/docs/KoronaAccount.md +1 -0
  37. data/docs/KoronaAccountApi.md +5 -5
  38. data/docs/MediaUrl.md +8 -0
  39. data/docs/OrganizationalUnit.md +1 -0
  40. data/docs/OrganizationalUnitsApi.md +108 -104
  41. data/docs/PaymentMethod.md +3 -0
  42. data/docs/PaymentMethodsApi.md +15 -13
  43. data/docs/PointsOfSaleApi.md +85 -74
  44. data/docs/Pos.md +5 -3
  45. data/docs/PriceGroupsApi.md +15 -13
  46. data/docs/Product.md +2 -0
  47. data/docs/ProductsApi.md +121 -58
  48. data/docs/Receipt.md +5 -1
  49. data/docs/ReceiptItem.md +3 -0
  50. data/docs/ReceiptsApi.md +20 -14
  51. data/docs/ResultListAdditionalReceiptInfoType.md +13 -0
  52. data/docs/ResultListAttendance.md +13 -0
  53. data/docs/ResultListCreationTask.md +13 -0
  54. data/docs/ResultListDeliveryNote.md +13 -0
  55. data/docs/ResultListExternalSystemCall.md +13 -0
  56. data/docs/ResultListTicket.md +13 -0
  57. data/docs/ResultListTimeTrackingEntity.md +13 -0
  58. data/docs/ResultListTimeTrackingEntry.md +13 -0
  59. data/docs/SalesTaxesApi.md +15 -13
  60. data/docs/Sector.md +1 -0
  61. data/docs/SectorRevenueAccountItem.md +9 -0
  62. data/docs/SectorsApi.md +15 -13
  63. data/docs/Signature.md +10 -0
  64. data/docs/StatisticsApi.md +28 -28
  65. data/docs/StockReceipt.md +1 -0
  66. data/docs/StockReceiptsApi.md +687 -0
  67. data/docs/SuppliersApi.md +15 -13
  68. data/docs/TagsApi.md +303 -13
  69. data/docs/Ticket.md +14 -0
  70. data/docs/TicketCreationApi.md +127 -0
  71. data/docs/TicketPersonalization.md +11 -0
  72. data/docs/TicketingApi.md +975 -76
  73. data/docs/TimeTrackingApi.md +388 -0
  74. data/docs/TimeTrackingEntity.md +13 -0
  75. data/docs/TimeTrackingEntry.md +14 -0
  76. data/docs/TotalPeriod.md +9 -0
  77. data/docs/Validity.md +11 -0
  78. data/korona_client-1.0.0.gem +0 -0
  79. data/korona_client.gemspec +7 -8
  80. data/lib/korona_client.rb +38 -5
  81. data/lib/korona_client/api/accounts_api.rb +24 -26
  82. data/lib/korona_client/api/additional_receipt_info_types_api.rb +155 -0
  83. data/lib/korona_client/api/assortments_api.rb +259 -82
  84. data/lib/korona_client/api/cashiers_api.rb +27 -26
  85. data/lib/korona_client/api/commodity_groups_api.rb +462 -0
  86. data/lib/korona_client/api/currencies_api.rb +27 -26
  87. data/lib/korona_client/api/customer_groups_api.rb +27 -26
  88. data/lib/korona_client/api/customer_orders_api.rb +78 -78
  89. data/lib/korona_client/api/customers_api.rb +137 -77
  90. data/lib/korona_client/api/delivery_notes_api.rb +354 -0
  91. data/lib/korona_client/api/economic_zones_api.rb +27 -26
  92. data/lib/korona_client/api/external_system_calls_api.rb +462 -0
  93. data/lib/korona_client/api/images_api.rb +16 -16
  94. data/lib/korona_client/api/info_texts_api.rb +27 -26
  95. data/lib/korona_client/api/inventories_api.rb +1014 -0
  96. data/lib/korona_client/api/korona_account_api.rb +11 -12
  97. data/lib/korona_client/api/organizational_units_api.rb +157 -162
  98. data/lib/korona_client/api/payment_methods_api.rb +27 -26
  99. data/lib/korona_client/api/points_of_sale_api.rb +127 -121
  100. data/lib/korona_client/api/price_groups_api.rb +27 -26
  101. data/lib/korona_client/api/products_api.rb +154 -95
  102. data/lib/korona_client/api/receipts_api.rb +27 -20
  103. data/lib/korona_client/api/sales_taxes_api.rb +27 -26
  104. data/lib/korona_client/api/sectors_api.rb +27 -26
  105. data/lib/korona_client/api/statistics_api.rb +32 -36
  106. data/lib/korona_client/api/stock_receipts_api.rb +769 -0
  107. data/lib/korona_client/api/suppliers_api.rb +27 -26
  108. data/lib/korona_client/api/tags_api.rb +326 -21
  109. data/lib/korona_client/api/ticket_creation_api.rb +149 -0
  110. data/lib/korona_client/api/ticketing_api.rb +1084 -132
  111. data/lib/korona_client/api/time_tracking_api.rb +425 -0
  112. data/lib/korona_client/api_client.rb +11 -11
  113. data/lib/korona_client/api_error.rb +3 -3
  114. data/lib/korona_client/configuration.rb +4 -4
  115. data/lib/korona_client/models/account.rb +11 -15
  116. data/lib/korona_client/models/account_summary.rb +8 -13
  117. data/lib/korona_client/models/account_transaction.rb +32 -15
  118. data/lib/korona_client/models/add_or_update_result.rb +24 -19
  119. data/lib/korona_client/models/additional_info.rb +192 -0
  120. data/lib/korona_client/models/additional_receipt_info_type.rb +319 -0
  121. data/lib/korona_client/models/address_information.rb +8 -13
  122. data/lib/korona_client/models/admission.rb +8 -13
  123. data/lib/korona_client/models/amount.rb +8 -13
  124. data/lib/korona_client/models/amount_count_data.rb +8 -13
  125. data/lib/korona_client/models/assortment.rb +8 -13
  126. data/lib/korona_client/models/attendance.rb +268 -0
  127. data/lib/korona_client/models/bad_request_error.rb +11 -15
  128. data/lib/korona_client/models/capacity.rb +8 -13
  129. data/lib/korona_client/models/cashier.rb +21 -16
  130. data/lib/korona_client/models/cashier_summary.rb +8 -13
  131. data/lib/korona_client/models/category.rb +19 -15
  132. data/lib/korona_client/models/cloud_subscription.rb +11 -15
  133. data/lib/korona_client/models/commodity_group.rb +8 -13
  134. data/lib/korona_client/models/commodity_group_summary.rb +8 -13
  135. data/lib/korona_client/models/company_identification.rb +8 -13
  136. data/lib/korona_client/models/creation_task.rb +298 -0
  137. data/lib/korona_client/models/currency.rb +8 -13
  138. data/lib/korona_client/models/currency_denomination.rb +11 -15
  139. data/lib/korona_client/models/currency_exchange_rate.rb +8 -13
  140. data/lib/korona_client/models/customer.rb +11 -15
  141. data/lib/korona_client/models/customer_card.rb +11 -15
  142. data/lib/korona_client/models/customer_data.rb +8 -13
  143. data/lib/korona_client/models/customer_group.rb +8 -13
  144. data/lib/korona_client/models/customer_group_summary.rb +8 -13
  145. data/lib/korona_client/models/customer_information.rb +8 -13
  146. data/lib/korona_client/models/customer_order.rb +28 -29
  147. data/lib/korona_client/models/day_rating.rb +8 -13
  148. data/lib/korona_client/models/day_time_period.rb +192 -0
  149. data/lib/korona_client/models/delivery_note.rb +316 -0
  150. data/lib/korona_client/models/delivery_note_item.rb +239 -0
  151. data/lib/korona_client/models/deposit.rb +219 -0
  152. data/lib/korona_client/models/device_information.rb +8 -13
  153. data/lib/korona_client/models/discount.rb +201 -0
  154. data/lib/korona_client/models/economic_zone.rb +8 -13
  155. data/lib/korona_client/models/end_of_day_statement.rb +15 -20
  156. data/lib/korona_client/models/end_of_day_statement_summary.rb +8 -13
  157. data/lib/korona_client/models/entry_gate.rb +8 -13
  158. data/lib/korona_client/models/event.rb +30 -15
  159. data/lib/korona_client/models/external_system_call.rb +295 -0
  160. data/lib/korona_client/models/forbidden_error.rb +11 -15
  161. data/lib/korona_client/models/geo_location.rb +8 -13
  162. data/lib/korona_client/models/info_text.rb +11 -15
  163. data/lib/korona_client/models/interval.rb +8 -13
  164. data/lib/korona_client/models/inventory.rb +14 -18
  165. data/lib/korona_client/models/inventory_list.rb +11 -15
  166. data/lib/korona_client/models/inventory_list_item.rb +8 -13
  167. data/lib/korona_client/models/inventory_list_item_stock.rb +8 -13
  168. data/lib/korona_client/models/korona_account.rb +41 -13
  169. data/lib/korona_client/models/media_url.rb +183 -0
  170. data/lib/korona_client/models/method_not_allowed_error.rb +11 -15
  171. data/lib/korona_client/models/model_reference.rb +8 -12
  172. data/lib/korona_client/models/not_found_error.rb +11 -15
  173. data/lib/korona_client/models/organizational_unit.rb +20 -16
  174. data/lib/korona_client/models/payment.rb +8 -13
  175. data/lib/korona_client/models/payment_method.rb +37 -15
  176. data/lib/korona_client/models/payment_summary.rb +8 -13
  177. data/lib/korona_client/models/period.rb +8 -13
  178. data/lib/korona_client/models/period_list_top_seller.rb +8 -13
  179. data/lib/korona_client/models/period_map_string_revenue_data.rb +8 -13
  180. data/lib/korona_client/models/period_object.rb +8 -13
  181. data/lib/korona_client/models/period_revenue_data.rb +8 -13
  182. data/lib/korona_client/models/pos.rb +31 -15
  183. data/lib/korona_client/models/price_group.rb +8 -13
  184. data/lib/korona_client/models/product.rb +35 -19
  185. data/lib/korona_client/models/product_code.rb +8 -13
  186. data/lib/korona_client/models/product_description.rb +11 -15
  187. data/lib/korona_client/models/product_price.rb +8 -13
  188. data/lib/korona_client/models/product_stock.rb +8 -13
  189. data/lib/korona_client/models/product_subproduct.rb +8 -13
  190. data/lib/korona_client/models/product_supplier_price.rb +8 -13
  191. data/lib/korona_client/models/product_transfer_involved_party_information.rb +8 -13
  192. data/lib/korona_client/models/product_transfer_involved_party_information_data.rb +8 -13
  193. data/lib/korona_client/models/rating.rb +8 -13
  194. data/lib/korona_client/models/receipt.rb +55 -20
  195. data/lib/korona_client/models/receipt_item.rb +40 -14
  196. data/lib/korona_client/models/result_list.rb +14 -19
  197. data/lib/korona_client/models/result_list_account.rb +14 -19
  198. data/lib/korona_client/models/result_list_additional_receipt_info_type.rb +268 -0
  199. data/lib/korona_client/models/result_list_assortment.rb +14 -19
  200. data/lib/korona_client/models/result_list_attendance.rb +268 -0
  201. data/lib/korona_client/models/result_list_cashier.rb +14 -19
  202. data/lib/korona_client/models/result_list_commodity_group.rb +14 -19
  203. data/lib/korona_client/models/result_list_creation_task.rb +268 -0
  204. data/lib/korona_client/models/result_list_currency.rb +14 -19
  205. data/lib/korona_client/models/result_list_customer.rb +14 -19
  206. data/lib/korona_client/models/result_list_customer_group.rb +14 -19
  207. data/lib/korona_client/models/result_list_customer_order.rb +14 -19
  208. data/lib/korona_client/models/result_list_day_rating.rb +14 -19
  209. data/lib/korona_client/models/result_list_delivery_note.rb +268 -0
  210. data/lib/korona_client/models/result_list_economic_zone.rb +14 -19
  211. data/lib/korona_client/models/result_list_end_of_day_statement.rb +14 -19
  212. data/lib/korona_client/models/result_list_entry_gate.rb +14 -19
  213. data/lib/korona_client/models/result_list_event.rb +14 -19
  214. data/lib/korona_client/models/result_list_external_system_call.rb +268 -0
  215. data/lib/korona_client/models/result_list_info_text.rb +14 -19
  216. data/lib/korona_client/models/result_list_inventory.rb +14 -19
  217. data/lib/korona_client/models/result_list_inventory_list.rb +14 -19
  218. data/lib/korona_client/models/result_list_inventory_list_item.rb +14 -19
  219. data/lib/korona_client/models/result_list_organizational_unit.rb +14 -19
  220. data/lib/korona_client/models/result_list_payment_method.rb +14 -19
  221. data/lib/korona_client/models/result_list_pos.rb +14 -19
  222. data/lib/korona_client/models/result_list_price_group.rb +14 -19
  223. data/lib/korona_client/models/result_list_product.rb +14 -19
  224. data/lib/korona_client/models/result_list_product_stock.rb +14 -19
  225. data/lib/korona_client/models/result_list_receipt.rb +14 -19
  226. data/lib/korona_client/models/result_list_sales_tax.rb +14 -19
  227. data/lib/korona_client/models/result_list_sector.rb +14 -19
  228. data/lib/korona_client/models/result_list_stock_receipt.rb +14 -19
  229. data/lib/korona_client/models/result_list_stock_receipt_item.rb +14 -19
  230. data/lib/korona_client/models/result_list_supplier.rb +14 -19
  231. data/lib/korona_client/models/result_list_tag.rb +14 -19
  232. data/lib/korona_client/models/result_list_ticket.rb +268 -0
  233. data/lib/korona_client/models/result_list_ticket_definition.rb +14 -19
  234. data/lib/korona_client/models/result_list_time_tracking_entity.rb +268 -0
  235. data/lib/korona_client/models/result_list_time_tracking_entry.rb +268 -0
  236. data/lib/korona_client/models/revenue_data.rb +8 -13
  237. data/lib/korona_client/models/sales_tax.rb +8 -13
  238. data/lib/korona_client/models/sales_tax_rate.rb +8 -13
  239. data/lib/korona_client/models/sector.rb +21 -15
  240. data/lib/korona_client/models/sector_revenue_account_item.rb +192 -0
  241. data/lib/korona_client/models/sector_sales_tax_item.rb +8 -13
  242. data/lib/korona_client/models/signature.rb +216 -0
  243. data/lib/korona_client/models/statistic.rb +8 -13
  244. data/lib/korona_client/models/statistic_list_top_seller.rb +8 -13
  245. data/lib/korona_client/models/statistic_map_string_revenue_data.rb +8 -13
  246. data/lib/korona_client/models/statistic_revenue_data.rb +8 -13
  247. data/lib/korona_client/models/stock_receipt.rb +21 -16
  248. data/lib/korona_client/models/stock_receipt_item.rb +8 -13
  249. data/lib/korona_client/models/stock_receipt_item_amount.rb +8 -13
  250. data/lib/korona_client/models/stock_receipt_item_identification.rb +8 -13
  251. data/lib/korona_client/models/stock_receipt_item_purchase_price.rb +8 -13
  252. data/lib/korona_client/models/supplier.rb +8 -13
  253. data/lib/korona_client/models/supplier_contact.rb +8 -13
  254. data/lib/korona_client/models/supplier_contact_person.rb +8 -13
  255. data/lib/korona_client/models/supplier_payment_information.rb +11 -15
  256. data/lib/korona_client/models/tag.rb +8 -13
  257. data/lib/korona_client/models/tax_payment.rb +8 -13
  258. data/lib/korona_client/models/tax_summary.rb +8 -13
  259. data/lib/korona_client/models/ticket.rb +237 -0
  260. data/lib/korona_client/models/ticket_definition.rb +8 -13
  261. data/lib/korona_client/models/ticket_personalization.rb +225 -0
  262. data/lib/korona_client/models/time_period.rb +8 -13
  263. data/lib/korona_client/models/time_tracking_entity.rb +232 -0
  264. data/lib/korona_client/models/time_tracking_entry.rb +240 -0
  265. data/lib/korona_client/models/too_many_requests_error.rb +11 -15
  266. data/lib/korona_client/models/top_seller.rb +8 -13
  267. data/lib/korona_client/models/total_period.rb +192 -0
  268. data/lib/korona_client/models/total_price.rb +10 -14
  269. data/lib/korona_client/models/validity.rb +236 -0
  270. data/lib/korona_client/models/weather.rb +11 -15
  271. data/lib/korona_client/version.rb +4 -4
  272. data/node_modules/.yarn-integrity +12 -0
  273. data/spec/api/additional_receipt_info_types_api_spec.rb +66 -0
  274. data/spec/api/commodity_groups_api_spec.rb +133 -0
  275. data/spec/api/delivery_notes_api_spec.rb +112 -0
  276. data/spec/api/external_system_calls_api_spec.rb +133 -0
  277. data/spec/api/inventories_api_spec.rb +253 -0
  278. data/spec/api/stock_receipts_api_spec.rb +201 -0
  279. data/spec/api/ticket_creation_api_spec.rb +63 -0
  280. data/spec/api/time_tracking_api_spec.rb +129 -0
  281. data/spec/models/additional_info_spec.rb +47 -0
  282. data/spec/models/additional_receipt_info_type_spec.rb +125 -0
  283. data/spec/models/attendance_spec.rb +95 -0
  284. data/spec/models/creation_task_spec.rb +99 -0
  285. data/spec/models/day_time_period_spec.rb +47 -0
  286. data/spec/models/delivery_note_item_spec.rb +77 -0
  287. data/spec/models/delivery_note_spec.rb +125 -0
  288. data/spec/models/deposit_spec.rb +65 -0
  289. data/spec/models/discount_spec.rb +53 -0
  290. data/spec/models/external_system_call_spec.rb +113 -0
  291. data/spec/models/media_url_spec.rb +41 -0
  292. data/spec/models/result_list_additional_receipt_info_type_spec.rb +71 -0
  293. data/spec/models/result_list_attendance_spec.rb +71 -0
  294. data/spec/models/result_list_creation_task_spec.rb +71 -0
  295. data/spec/models/result_list_delivery_note_spec.rb +71 -0
  296. data/spec/models/result_list_external_system_call_spec.rb +71 -0
  297. data/spec/models/result_list_ticket_spec.rb +71 -0
  298. data/spec/models/result_list_time_tracking_entity_spec.rb +71 -0
  299. data/spec/models/result_list_time_tracking_entry_spec.rb +71 -0
  300. data/spec/models/sector_revenue_account_item_spec.rb +47 -0
  301. data/spec/models/signature_spec.rb +53 -0
  302. data/spec/models/ticket_personalization_spec.rb +59 -0
  303. data/spec/models/ticket_spec.rb +77 -0
  304. data/spec/models/time_tracking_entity_spec.rb +71 -0
  305. data/spec/models/time_tracking_entry_spec.rb +77 -0
  306. data/spec/models/total_period_spec.rb +47 -0
  307. data/spec/models/validity_spec.rb +63 -0
  308. data/yarn.lock +4 -0
  309. metadata +162 -18
@@ -0,0 +1,17 @@
1
+ # KoronaClient::Attendance
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **active** | **BOOLEAN** | indicates whether the object is active for use or not | [optional]
7
+ **id** | **String** | global object uuid (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) | [optional]
8
+ **number** | **String** | number of the object, like it is set in backoffice; will be removed when active=false | [optional]
9
+ **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]
10
+ **category_name** | **String** | | [optional]
11
+ **category_id** | **String** | | [optional]
12
+ **creation_time** | **DateTime** | | [optional]
13
+ **event** | [**ModelReference**](ModelReference.md) | | [optional]
14
+ **expiration_time** | **DateTime** | | [optional]
15
+ **seats** | **Integer** | | [optional]
16
+
17
+
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
8
8
  **number** | **String** | number of the object, like it is set in backoffice; will be removed when active=false | [optional]
9
9
  **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]
10
10
  **_alias** | **String** | | [optional]
11
+ **deactivated** | **BOOLEAN** | | [optional]
11
12
  **email** | **String** | | [optional]
12
13
  **firstname** | **String** | | [optional]
13
14
  **gender** | **String** | | [optional]
@@ -4,14 +4,14 @@ All URIs are relative to *https://www.koronacloud.com/web/api/v3*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
- [**get_cashier**](CashiersApi.md#get_cashier) | **GET** /accounts/{koronaAccountId}/cashiers/{cashierIdOrNumber} | lists the cashier
7
+ [**get_cashier**](CashiersApi.md#get_cashier) | **GET** /accounts/{koronaAccountId}/cashiers/{cashierId} | returns the single cashier
8
8
  [**get_cashiers**](CashiersApi.md#get_cashiers) | **GET** /accounts/{koronaAccountId}/cashiers | lists all cashiers
9
9
 
10
10
 
11
11
  # **get_cashier**
12
- > Cashier get_cashier(korona_account_id, cashier_id_or_number)
12
+ > Cashier get_cashier(korona_account_id, cashier_id)
13
13
 
14
- lists the cashier
14
+ returns the single cashier
15
15
 
16
16
 
17
17
 
@@ -28,14 +28,14 @@ end
28
28
 
29
29
  api_instance = KoronaClient::CashiersApi.new
30
30
 
31
- korona_account_id = "korona_account_id_example" # String | the account id
31
+ korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
32
32
 
33
- cashier_id_or_number = "cashier_id_or_number_example" # String | id or number of the related object (important: if a number should match the uuid-format, the system will lookup for an id instead of a number)
33
+ cashier_id = 'cashier_id_example' # String | id of the related object (important: id should match the uuid-format)
34
34
 
35
35
 
36
36
  begin
37
- #lists the cashier
38
- result = api_instance.get_cashier(korona_account_id, cashier_id_or_number)
37
+ #returns the single cashier
38
+ result = api_instance.get_cashier(korona_account_id, cashier_id)
39
39
  p result
40
40
  rescue KoronaClient::ApiError => e
41
41
  puts "Exception when calling CashiersApi->get_cashier: #{e}"
@@ -46,8 +46,8 @@ end
46
46
 
47
47
  Name | Type | Description | Notes
48
48
  ------------- | ------------- | ------------- | -------------
49
- **korona_account_id** | **String**| the account id |
50
- **cashier_id_or_number** | **String**| id or number of the related object (important: if a number should match the uuid-format, the system will lookup for an id instead of a number) |
49
+ **korona_account_id** | **String**| account id of the KORONA.cloud account |
50
+ **cashier_id** | **String**| id of the related object (important: id should match the uuid-format) |
51
51
 
52
52
  ### Return type
53
53
 
@@ -84,14 +84,15 @@ end
84
84
 
85
85
  api_instance = KoronaClient::CashiersApi.new
86
86
 
87
- korona_account_id = "korona_account_id_example" # String | the account id
87
+ korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
88
88
 
89
89
  opts = {
90
90
  page: 56, # Integer | number of the page to fetch
91
91
  size: 56, # Integer | amount of objects to return per page
92
- sort: "sort_example", # String | attribute to sort by (multiple separated by comma; max. 5)
92
+ sort: 'sort_example', # String | attribute to sort by (multiple separated by comma; max. 5)
93
93
  revision: 789, # Integer | last revision number, objects with a greater revision than this will be returned
94
- include_deleted: true # BOOLEAN | indicates deleted objects should be loaded or not (default: false)
94
+ include_deleted: true, # BOOLEAN | indicates deleted objects should be loaded or not (default: false)
95
+ number: 'number_example' # String | number of the related object
95
96
  }
96
97
 
97
98
  begin
@@ -107,12 +108,13 @@ end
107
108
 
108
109
  Name | Type | Description | Notes
109
110
  ------------- | ------------- | ------------- | -------------
110
- **korona_account_id** | **String**| the account id |
111
+ **korona_account_id** | **String**| account id of the KORONA.cloud account |
111
112
  **page** | **Integer**| number of the page to fetch | [optional]
112
113
  **size** | **Integer**| amount of objects to return per page | [optional]
113
114
  **sort** | **String**| attribute to sort by (multiple separated by comma; max. 5) | [optional]
114
115
  **revision** | **Integer**| last revision number, objects with a greater revision than this will be returned | [optional]
115
116
  **include_deleted** | **BOOLEAN**| indicates deleted objects should be loaded or not (default: false) | [optional]
117
+ **number** | **String**| number of the related object | [optional]
116
118
 
117
119
  ### Return type
118
120
 
@@ -5,5 +5,6 @@ Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **name** | **String** | | [optional]
7
7
  **product** | [**ModelReference**](ModelReference.md) | | [optional]
8
+ **external_id** | **String** | | [optional]
8
9
 
9
10
 
@@ -0,0 +1,423 @@
1
+ # KoronaClient::CommodityGroupsApi
2
+
3
+ All URIs are relative to *https://www.koronacloud.com/web/api/v3*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**add_commodity_groups**](CommodityGroupsApi.md#add_commodity_groups) | **POST** /accounts/{koronaAccountId}/commodityGroups | adds a batch of new commodity groups
8
+ [**delete_commodity_group**](CommodityGroupsApi.md#delete_commodity_group) | **DELETE** /accounts/{koronaAccountId}/commodityGroups/{commodityGroupId} | deletes the single commodity group
9
+ [**delete_commodity_groups**](CommodityGroupsApi.md#delete_commodity_groups) | **DELETE** /accounts/{koronaAccountId}/commodityGroups | deletes a batch of commodity groups
10
+ [**get_commodity_group**](CommodityGroupsApi.md#get_commodity_group) | **GET** /accounts/{koronaAccountId}/commodityGroups/{commodityGroupId} | returns the single commodity group
11
+ [**get_commodity_groups**](CommodityGroupsApi.md#get_commodity_groups) | **GET** /accounts/{koronaAccountId}/commodityGroups | lists all commodity groups
12
+ [**update_commodity_group**](CommodityGroupsApi.md#update_commodity_group) | **PATCH** /accounts/{koronaAccountId}/commodityGroups/{commodityGroupId} | updates the single commodity group
13
+ [**update_commodity_groups**](CommodityGroupsApi.md#update_commodity_groups) | **PATCH** /accounts/{koronaAccountId}/commodityGroups | updates a batch of commodity groups
14
+
15
+
16
+ # **add_commodity_groups**
17
+ > Array<AddOrUpdateResult> add_commodity_groups(korona_account_id, body, opts)
18
+
19
+ adds a batch of new commodity groups
20
+
21
+
22
+
23
+ ### Example
24
+ ```ruby
25
+ # load the gem
26
+ require 'korona_client'
27
+ # setup authorization
28
+ KoronaClient.configure do |config|
29
+ # Configure HTTP basic authorization: basicAuth
30
+ config.username = 'YOUR USERNAME'
31
+ config.password = 'YOUR PASSWORD'
32
+ end
33
+
34
+ api_instance = KoronaClient::CommodityGroupsApi.new
35
+
36
+ korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
37
+
38
+ body = [KoronaClient::CommodityGroup.new] # Array<CommodityGroup> | an array of new commodity groups
39
+
40
+ opts = {
41
+ upsert: true # BOOLEAN | when set to true, updates the object instead of generating a already-exists-error
42
+ }
43
+
44
+ begin
45
+ #adds a batch of new commodity groups
46
+ result = api_instance.add_commodity_groups(korona_account_id, body, opts)
47
+ p result
48
+ rescue KoronaClient::ApiError => e
49
+ puts "Exception when calling CommodityGroupsApi->add_commodity_groups: #{e}"
50
+ end
51
+ ```
52
+
53
+ ### Parameters
54
+
55
+ Name | Type | Description | Notes
56
+ ------------- | ------------- | ------------- | -------------
57
+ **korona_account_id** | **String**| account id of the KORONA.cloud account |
58
+ **body** | [**Array&lt;CommodityGroup&gt;**](CommodityGroup.md)| an array of new commodity groups |
59
+ **upsert** | **BOOLEAN**| when set to true, updates the object instead of generating a already-exists-error | [optional]
60
+
61
+ ### Return type
62
+
63
+ [**Array&lt;AddOrUpdateResult&gt;**](AddOrUpdateResult.md)
64
+
65
+ ### Authorization
66
+
67
+ [basicAuth](../README.md#basicAuth)
68
+
69
+ ### HTTP request headers
70
+
71
+ - **Content-Type**: application/json
72
+ - **Accept**: application/json
73
+
74
+
75
+
76
+ # **delete_commodity_group**
77
+ > delete_commodity_group(korona_account_id, commodity_group_id)
78
+
79
+ deletes the single commodity group
80
+
81
+
82
+
83
+ ### Example
84
+ ```ruby
85
+ # load the gem
86
+ require 'korona_client'
87
+ # setup authorization
88
+ KoronaClient.configure do |config|
89
+ # Configure HTTP basic authorization: basicAuth
90
+ config.username = 'YOUR USERNAME'
91
+ config.password = 'YOUR PASSWORD'
92
+ end
93
+
94
+ api_instance = KoronaClient::CommodityGroupsApi.new
95
+
96
+ korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
97
+
98
+ commodity_group_id = 'commodity_group_id_example' # String | id of the related object (important: id should match the uuid-format)
99
+
100
+
101
+ begin
102
+ #deletes the single commodity group
103
+ api_instance.delete_commodity_group(korona_account_id, commodity_group_id)
104
+ rescue KoronaClient::ApiError => e
105
+ puts "Exception when calling CommodityGroupsApi->delete_commodity_group: #{e}"
106
+ end
107
+ ```
108
+
109
+ ### Parameters
110
+
111
+ Name | Type | Description | Notes
112
+ ------------- | ------------- | ------------- | -------------
113
+ **korona_account_id** | **String**| account id of the KORONA.cloud account |
114
+ **commodity_group_id** | **String**| id of the related object (important: id should match the uuid-format) |
115
+
116
+ ### Return type
117
+
118
+ nil (empty response body)
119
+
120
+ ### Authorization
121
+
122
+ [basicAuth](../README.md#basicAuth)
123
+
124
+ ### HTTP request headers
125
+
126
+ - **Content-Type**: application/json
127
+ - **Accept**: application/json
128
+
129
+
130
+
131
+ # **delete_commodity_groups**
132
+ > Array&lt;AddOrUpdateResult&gt; delete_commodity_groups(korona_account_id, body)
133
+
134
+ deletes a batch of commodity groups
135
+
136
+
137
+
138
+ ### Example
139
+ ```ruby
140
+ # load the gem
141
+ require 'korona_client'
142
+ # setup authorization
143
+ KoronaClient.configure do |config|
144
+ # Configure HTTP basic authorization: basicAuth
145
+ config.username = 'YOUR USERNAME'
146
+ config.password = 'YOUR PASSWORD'
147
+ end
148
+
149
+ api_instance = KoronaClient::CommodityGroupsApi.new
150
+
151
+ korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
152
+
153
+ body = [KoronaClient::CommodityGroup.new] # Array<CommodityGroup> | array of existing commodity groups (id or number required)
154
+
155
+
156
+ begin
157
+ #deletes a batch of commodity groups
158
+ result = api_instance.delete_commodity_groups(korona_account_id, body)
159
+ p result
160
+ rescue KoronaClient::ApiError => e
161
+ puts "Exception when calling CommodityGroupsApi->delete_commodity_groups: #{e}"
162
+ end
163
+ ```
164
+
165
+ ### Parameters
166
+
167
+ Name | Type | Description | Notes
168
+ ------------- | ------------- | ------------- | -------------
169
+ **korona_account_id** | **String**| account id of the KORONA.cloud account |
170
+ **body** | [**Array&lt;CommodityGroup&gt;**](CommodityGroup.md)| array of existing commodity groups (id or number required) |
171
+
172
+ ### Return type
173
+
174
+ [**Array&lt;AddOrUpdateResult&gt;**](AddOrUpdateResult.md)
175
+
176
+ ### Authorization
177
+
178
+ [basicAuth](../README.md#basicAuth)
179
+
180
+ ### HTTP request headers
181
+
182
+ - **Content-Type**: application/json
183
+ - **Accept**: application/json
184
+
185
+
186
+
187
+ # **get_commodity_group**
188
+ > CommodityGroup get_commodity_group(korona_account_id, commodity_group_id)
189
+
190
+ returns the single commodity group
191
+
192
+
193
+
194
+ ### Example
195
+ ```ruby
196
+ # load the gem
197
+ require 'korona_client'
198
+ # setup authorization
199
+ KoronaClient.configure do |config|
200
+ # Configure HTTP basic authorization: basicAuth
201
+ config.username = 'YOUR USERNAME'
202
+ config.password = 'YOUR PASSWORD'
203
+ end
204
+
205
+ api_instance = KoronaClient::CommodityGroupsApi.new
206
+
207
+ korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
208
+
209
+ commodity_group_id = 'commodity_group_id_example' # String | id of the related object (important: id should match the uuid-format)
210
+
211
+
212
+ begin
213
+ #returns the single commodity group
214
+ result = api_instance.get_commodity_group(korona_account_id, commodity_group_id)
215
+ p result
216
+ rescue KoronaClient::ApiError => e
217
+ puts "Exception when calling CommodityGroupsApi->get_commodity_group: #{e}"
218
+ end
219
+ ```
220
+
221
+ ### Parameters
222
+
223
+ Name | Type | Description | Notes
224
+ ------------- | ------------- | ------------- | -------------
225
+ **korona_account_id** | **String**| account id of the KORONA.cloud account |
226
+ **commodity_group_id** | **String**| id of the related object (important: id should match the uuid-format) |
227
+
228
+ ### Return type
229
+
230
+ [**CommodityGroup**](CommodityGroup.md)
231
+
232
+ ### Authorization
233
+
234
+ [basicAuth](../README.md#basicAuth)
235
+
236
+ ### HTTP request headers
237
+
238
+ - **Content-Type**: application/json
239
+ - **Accept**: application/json
240
+
241
+
242
+
243
+ # **get_commodity_groups**
244
+ > ResultListCommodityGroup get_commodity_groups(korona_account_id, opts)
245
+
246
+ lists all commodity groups
247
+
248
+
249
+
250
+ ### Example
251
+ ```ruby
252
+ # load the gem
253
+ require 'korona_client'
254
+ # setup authorization
255
+ KoronaClient.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 = KoronaClient::CommodityGroupsApi.new
262
+
263
+ korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
264
+
265
+ opts = {
266
+ page: 56, # Integer | number of the page to fetch
267
+ size: 56, # Integer | amount of objects to return per page
268
+ sort: 'sort_example', # String | attribute to sort by (multiple separated by comma; max. 5)
269
+ revision: 789, # Integer | last revision number, objects with a greater revision than this will be returned
270
+ include_deleted: true, # BOOLEAN | indicates deleted objects should be loaded or not (default: false)
271
+ number: 'number_example' # String | number of the related object
272
+ }
273
+
274
+ begin
275
+ #lists all commodity groups
276
+ result = api_instance.get_commodity_groups(korona_account_id, opts)
277
+ p result
278
+ rescue KoronaClient::ApiError => e
279
+ puts "Exception when calling CommodityGroupsApi->get_commodity_groups: #{e}"
280
+ end
281
+ ```
282
+
283
+ ### Parameters
284
+
285
+ Name | Type | Description | Notes
286
+ ------------- | ------------- | ------------- | -------------
287
+ **korona_account_id** | **String**| account id of the KORONA.cloud account |
288
+ **page** | **Integer**| number of the page to fetch | [optional]
289
+ **size** | **Integer**| amount of objects to return per page | [optional]
290
+ **sort** | **String**| attribute to sort by (multiple separated by comma; max. 5) | [optional]
291
+ **revision** | **Integer**| last revision number, objects with a greater revision than this will be returned | [optional]
292
+ **include_deleted** | **BOOLEAN**| indicates deleted objects should be loaded or not (default: false) | [optional]
293
+ **number** | **String**| number of the related object | [optional]
294
+
295
+ ### Return type
296
+
297
+ [**ResultListCommodityGroup**](ResultListCommodityGroup.md)
298
+
299
+ ### Authorization
300
+
301
+ [basicAuth](../README.md#basicAuth)
302
+
303
+ ### HTTP request headers
304
+
305
+ - **Content-Type**: application/json
306
+ - **Accept**: application/json
307
+
308
+
309
+
310
+ # **update_commodity_group**
311
+ > update_commodity_group(korona_account_id, commodity_group_id, body)
312
+
313
+ updates the single commodity group
314
+
315
+
316
+
317
+ ### Example
318
+ ```ruby
319
+ # load the gem
320
+ require 'korona_client'
321
+ # setup authorization
322
+ KoronaClient.configure do |config|
323
+ # Configure HTTP basic authorization: basicAuth
324
+ config.username = 'YOUR USERNAME'
325
+ config.password = 'YOUR PASSWORD'
326
+ end
327
+
328
+ api_instance = KoronaClient::CommodityGroupsApi.new
329
+
330
+ korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
331
+
332
+ commodity_group_id = 'commodity_group_id_example' # String | id of the related object (important: id should match the uuid-format)
333
+
334
+ body = KoronaClient::CommodityGroup.new # CommodityGroup | the properties to update of the commodity group
335
+
336
+
337
+ begin
338
+ #updates the single commodity group
339
+ api_instance.update_commodity_group(korona_account_id, commodity_group_id, body)
340
+ rescue KoronaClient::ApiError => e
341
+ puts "Exception when calling CommodityGroupsApi->update_commodity_group: #{e}"
342
+ end
343
+ ```
344
+
345
+ ### Parameters
346
+
347
+ Name | Type | Description | Notes
348
+ ------------- | ------------- | ------------- | -------------
349
+ **korona_account_id** | **String**| account id of the KORONA.cloud account |
350
+ **commodity_group_id** | **String**| id of the related object (important: id should match the uuid-format) |
351
+ **body** | [**CommodityGroup**](CommodityGroup.md)| the properties to update of the commodity group |
352
+
353
+ ### Return type
354
+
355
+ nil (empty response body)
356
+
357
+ ### Authorization
358
+
359
+ [basicAuth](../README.md#basicAuth)
360
+
361
+ ### HTTP request headers
362
+
363
+ - **Content-Type**: application/json
364
+ - **Accept**: application/json
365
+
366
+
367
+
368
+ # **update_commodity_groups**
369
+ > Array&lt;AddOrUpdateResult&gt; update_commodity_groups(korona_account_id, body)
370
+
371
+ updates a batch of commodity groups
372
+
373
+
374
+
375
+ ### Example
376
+ ```ruby
377
+ # load the gem
378
+ require 'korona_client'
379
+ # setup authorization
380
+ KoronaClient.configure do |config|
381
+ # Configure HTTP basic authorization: basicAuth
382
+ config.username = 'YOUR USERNAME'
383
+ config.password = 'YOUR PASSWORD'
384
+ end
385
+
386
+ api_instance = KoronaClient::CommodityGroupsApi.new
387
+
388
+ korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
389
+
390
+ body = [KoronaClient::CommodityGroup.new] # Array<CommodityGroup> | array of existing commodity groups (id or number required)
391
+
392
+
393
+ begin
394
+ #updates a batch of commodity groups
395
+ result = api_instance.update_commodity_groups(korona_account_id, body)
396
+ p result
397
+ rescue KoronaClient::ApiError => e
398
+ puts "Exception when calling CommodityGroupsApi->update_commodity_groups: #{e}"
399
+ end
400
+ ```
401
+
402
+ ### Parameters
403
+
404
+ Name | Type | Description | Notes
405
+ ------------- | ------------- | ------------- | -------------
406
+ **korona_account_id** | **String**| account id of the KORONA.cloud account |
407
+ **body** | [**Array&lt;CommodityGroup&gt;**](CommodityGroup.md)| array of existing commodity groups (id or number required) |
408
+
409
+ ### Return type
410
+
411
+ [**Array&lt;AddOrUpdateResult&gt;**](AddOrUpdateResult.md)
412
+
413
+ ### Authorization
414
+
415
+ [basicAuth](../README.md#basicAuth)
416
+
417
+ ### HTTP request headers
418
+
419
+ - **Content-Type**: application/json
420
+ - **Accept**: application/json
421
+
422
+
423
+