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
@@ -11,15 +11,17 @@ Name | Type | Description | Notes
11
11
  **coupling_id** | **String** | | [optional]
12
12
  **default_customer_group** | [**ModelReference**](ModelReference.md) | | [optional]
13
13
  **default_payment_method** | [**ModelReference**](ModelReference.md) | | [optional]
14
- **device_information** | [**DeviceInformation**](DeviceInformation.md) | | [optional]
14
+ **device_information** | [**DeviceInformation**](DeviceInformation.md) | only for updating-purposes through PATCH, not shown on GET requests. | [optional]
15
15
  **external** | **BOOLEAN** | | [optional]
16
- **last_receipt_number** | **String** | | [optional]
17
- **last_z_count** | **Integer** | | [optional]
16
+ **last_receipt_number** | **String** | last receipt number - only shown if external=true and coupled=false; usable for client-side receipt counter. | [optional]
17
+ **last_z_count** | **Integer** | last zcount property - only shown if external=true and coupled=false; usable for client-side zcount. | [optional]
18
18
  **name** | **String** | | [optional]
19
19
  **organizational_unit** | [**ModelReference**](ModelReference.md) | | [optional]
20
20
  **print_footer_lines** | **Hash<String, String>** | | [optional]
21
21
  **print_header_lines** | **Hash<String, String>** | | [optional]
22
22
  **receipt_info_texts** | [**Array<ModelReference>**](ModelReference.md) | | [optional]
23
23
  **use_alternative_sector** | **BOOLEAN** | | [optional]
24
+ **contra_account** | [**ModelReference**](ModelReference.md) | | [optional]
25
+ **revenue_account** | [**ModelReference**](ModelReference.md) | | [optional]
24
26
 
25
27
 
@@ -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_price_group**](PriceGroupsApi.md#get_price_group) | **GET** /accounts/{koronaAccountId}/priceGroups/{priceGroupIdOrNumber} | lists the price group
7
+ [**get_price_group**](PriceGroupsApi.md#get_price_group) | **GET** /accounts/{koronaAccountId}/priceGroups/{priceGroupId} | returns the single price group
8
8
  [**get_price_groups**](PriceGroupsApi.md#get_price_groups) | **GET** /accounts/{koronaAccountId}/priceGroups | lists all price groups
9
9
 
10
10
 
11
11
  # **get_price_group**
12
- > PriceGroup get_price_group(korona_account_id, price_group_id_or_number)
12
+ > PriceGroup get_price_group(korona_account_id, price_group_id)
13
13
 
14
- lists the price group
14
+ returns the single price group
15
15
 
16
16
 
17
17
 
@@ -28,14 +28,14 @@ end
28
28
 
29
29
  api_instance = KoronaClient::PriceGroupsApi.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
- price_group_id_or_number = "price_group_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
+ price_group_id = 'price_group_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 price group
38
- result = api_instance.get_price_group(korona_account_id, price_group_id_or_number)
37
+ #returns the single price group
38
+ result = api_instance.get_price_group(korona_account_id, price_group_id)
39
39
  p result
40
40
  rescue KoronaClient::ApiError => e
41
41
  puts "Exception when calling PriceGroupsApi->get_price_group: #{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
- **price_group_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
+ **price_group_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::PriceGroupsApi.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
 
@@ -44,6 +44,8 @@ Name | Type | Description | Notes
44
44
  **tags** | [**Array<ModelReference>**](ModelReference.md) | | [optional]
45
45
  **ticket_definition** | [**ModelReference**](ModelReference.md) | | [optional]
46
46
  **track_inventory** | **BOOLEAN** | | [optional]
47
+ **media_urls** | [**Array<MediaUrl>**](MediaUrl.md) | | [optional]
48
+ **quantity_denomination** | **Float** | | [optional]
47
49
  **stock_return_unsellable** | **BOOLEAN** | | [optional]
48
50
 
49
51
 
@@ -5,16 +5,17 @@ All URIs are relative to *https://www.koronacloud.com/web/api/v3*
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
7
  [**add_products**](ProductsApi.md#add_products) | **POST** /accounts/{koronaAccountId}/products | adds a batch of new products
8
- [**delete_product**](ProductsApi.md#delete_product) | **DELETE** /accounts/{koronaAccountId}/products/{productIdOrNumber} | deletes the product
9
- [**get_product**](ProductsApi.md#get_product) | **GET** /accounts/{koronaAccountId}/products/{productIdOrNumber} | lists the product
10
- [**get_product_stocks**](ProductsApi.md#get_product_stocks) | **GET** /accounts/{koronaAccountId}/products/{productIdOrNumber}/stocks | lists the product stocks in different warehouses (KORONA.retail required)
8
+ [**delete_product**](ProductsApi.md#delete_product) | **DELETE** /accounts/{koronaAccountId}/products/{productId} | deletes the single product
9
+ [**delete_products**](ProductsApi.md#delete_products) | **DELETE** /accounts/{koronaAccountId}/products | deletes a batch of products
10
+ [**get_product**](ProductsApi.md#get_product) | **GET** /accounts/{koronaAccountId}/products/{productId} | returns the single product
11
+ [**get_product_stocks**](ProductsApi.md#get_product_stocks) | **GET** /accounts/{koronaAccountId}/products/{productId}/stocks | lists the product stocks in different warehouses (KORONA.retail required)
11
12
  [**get_products**](ProductsApi.md#get_products) | **GET** /accounts/{koronaAccountId}/products | lists all products
12
- [**update_product**](ProductsApi.md#update_product) | **PATCH** /accounts/{koronaAccountId}/products/{productIdOrNumber} | changes the product
13
- [**update_products**](ProductsApi.md#update_products) | **PATCH** /accounts/{koronaAccountId}/products | changes a batch of products
13
+ [**update_product**](ProductsApi.md#update_product) | **PATCH** /accounts/{koronaAccountId}/products/{productId} | updates the single product
14
+ [**update_products**](ProductsApi.md#update_products) | **PATCH** /accounts/{koronaAccountId}/products | updates a batch of products
14
15
 
15
16
 
16
17
  # **add_products**
17
- > Array<AddOrUpdateResult> add_products(korona_account_id, body)
18
+ > Array<AddOrUpdateResult> add_products(korona_account_id, body, opts)
18
19
 
19
20
  adds a batch of new products
20
21
 
@@ -33,14 +34,17 @@ end
33
34
 
34
35
  api_instance = KoronaClient::ProductsApi.new
35
36
 
36
- korona_account_id = "korona_account_id_example" # String | the account id
37
+ korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
37
38
 
38
- body = [KoronaClient::Product.new] # Array<Product> | a array of new products
39
+ body = [KoronaClient::Product.new] # Array<Product> | array of new products
39
40
 
41
+ opts = {
42
+ upsert: true # BOOLEAN | when set to true, updates the object instead of generating a already-exists-error
43
+ }
40
44
 
41
45
  begin
42
46
  #adds a batch of new products
43
- result = api_instance.add_products(korona_account_id, body)
47
+ result = api_instance.add_products(korona_account_id, body, opts)
44
48
  p result
45
49
  rescue KoronaClient::ApiError => e
46
50
  puts "Exception when calling ProductsApi->add_products: #{e}"
@@ -51,8 +55,9 @@ end
51
55
 
52
56
  Name | Type | Description | Notes
53
57
  ------------- | ------------- | ------------- | -------------
54
- **korona_account_id** | **String**| the account id |
55
- **body** | [**Array&lt;Product&gt;**](Product.md)| a array of new products |
58
+ **korona_account_id** | **String**| account id of the KORONA.cloud account |
59
+ **body** | [**Array&lt;Product&gt;**](Product.md)| array of new products |
60
+ **upsert** | **BOOLEAN**| when set to true, updates the object instead of generating a already-exists-error | [optional]
56
61
 
57
62
  ### Return type
58
63
 
@@ -70,9 +75,9 @@ Name | Type | Description | Notes
70
75
 
71
76
 
72
77
  # **delete_product**
73
- > delete_product(korona_account_id, product_id_or_number)
78
+ > delete_product(korona_account_id, product_id)
74
79
 
75
- deletes the product
80
+ deletes the single product
76
81
 
77
82
 
78
83
 
@@ -89,14 +94,14 @@ end
89
94
 
90
95
  api_instance = KoronaClient::ProductsApi.new
91
96
 
92
- korona_account_id = "korona_account_id_example" # String | the account id
97
+ korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
93
98
 
94
- product_id_or_number = "product_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)
99
+ product_id = 'product_id_example' # String | id of the related object (important: id should match the uuid-format)
95
100
 
96
101
 
97
102
  begin
98
- #deletes the product
99
- api_instance.delete_product(korona_account_id, product_id_or_number)
103
+ #deletes the single product
104
+ api_instance.delete_product(korona_account_id, product_id)
100
105
  rescue KoronaClient::ApiError => e
101
106
  puts "Exception when calling ProductsApi->delete_product: #{e}"
102
107
  end
@@ -106,8 +111,8 @@ end
106
111
 
107
112
  Name | Type | Description | Notes
108
113
  ------------- | ------------- | ------------- | -------------
109
- **korona_account_id** | **String**| the account id |
110
- **product_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) |
114
+ **korona_account_id** | **String**| account id of the KORONA.cloud account |
115
+ **product_id** | **String**| id of the related object (important: id should match the uuid-format) |
111
116
 
112
117
  ### Return type
113
118
 
@@ -124,10 +129,66 @@ nil (empty response body)
124
129
 
125
130
 
126
131
 
132
+ # **delete_products**
133
+ > Array&lt;AddOrUpdateResult&gt; delete_products(korona_account_id, body)
134
+
135
+ deletes a batch of products
136
+
137
+
138
+
139
+ ### Example
140
+ ```ruby
141
+ # load the gem
142
+ require 'korona_client'
143
+ # setup authorization
144
+ KoronaClient.configure do |config|
145
+ # Configure HTTP basic authorization: basicAuth
146
+ config.username = 'YOUR USERNAME'
147
+ config.password = 'YOUR PASSWORD'
148
+ end
149
+
150
+ api_instance = KoronaClient::ProductsApi.new
151
+
152
+ korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
153
+
154
+ body = [KoronaClient::Product.new] # Array<Product> | array of existing products (id or number required)
155
+
156
+
157
+ begin
158
+ #deletes a batch of products
159
+ result = api_instance.delete_products(korona_account_id, body)
160
+ p result
161
+ rescue KoronaClient::ApiError => e
162
+ puts "Exception when calling ProductsApi->delete_products: #{e}"
163
+ end
164
+ ```
165
+
166
+ ### Parameters
167
+
168
+ Name | Type | Description | Notes
169
+ ------------- | ------------- | ------------- | -------------
170
+ **korona_account_id** | **String**| account id of the KORONA.cloud account |
171
+ **body** | [**Array&lt;Product&gt;**](Product.md)| array of existing products (id or number required) |
172
+
173
+ ### Return type
174
+
175
+ [**Array&lt;AddOrUpdateResult&gt;**](AddOrUpdateResult.md)
176
+
177
+ ### Authorization
178
+
179
+ [basicAuth](../README.md#basicAuth)
180
+
181
+ ### HTTP request headers
182
+
183
+ - **Content-Type**: application/json
184
+ - **Accept**: application/json
185
+
186
+
187
+
127
188
  # **get_product**
128
- > Product get_product(korona_account_id, product_id_or_number)
189
+ > Product get_product(korona_account_id, product_id)
129
190
 
130
- lists the product
191
+ returns the single product
131
192
 
132
193
 
133
194
 
@@ -144,14 +205,14 @@ end
144
205
 
145
206
  api_instance = KoronaClient::ProductsApi.new
146
207
 
147
- korona_account_id = "korona_account_id_example" # String | the account id
208
+ korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
148
209
 
149
- product_id_or_number = "product_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)
210
+ product_id = 'product_id_example' # String | id of the related object (important: id should match the uuid-format)
150
211
 
151
212
 
152
213
  begin
153
- #lists the product
154
- result = api_instance.get_product(korona_account_id, product_id_or_number)
214
+ #returns the single product
215
+ result = api_instance.get_product(korona_account_id, product_id)
155
216
  p result
156
217
  rescue KoronaClient::ApiError => e
157
218
  puts "Exception when calling ProductsApi->get_product: #{e}"
@@ -162,8 +223,8 @@ end
162
223
 
163
224
  Name | Type | Description | Notes
164
225
  ------------- | ------------- | ------------- | -------------
165
- **korona_account_id** | **String**| the account id |
166
- **product_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) |
226
+ **korona_account_id** | **String**| account id of the KORONA.cloud account |
227
+ **product_id** | **String**| id of the related object (important: id should match the uuid-format) |
167
228
 
168
229
  ### Return type
169
230
 
@@ -181,7 +242,7 @@ Name | Type | Description | Notes
181
242
 
182
243
 
183
244
  # **get_product_stocks**
184
- > ResultListProductStock get_product_stocks(korona_account_id, product_id_or_number, opts)
245
+ > ResultListProductStock get_product_stocks(korona_account_id, product_id, opts)
185
246
 
186
247
  lists the product stocks in different warehouses (KORONA.retail required)
187
248
 
@@ -200,20 +261,20 @@ end
200
261
 
201
262
  api_instance = KoronaClient::ProductsApi.new
202
263
 
203
- korona_account_id = "korona_account_id_example" # String | the account id
264
+ korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
204
265
 
205
- product_id_or_number = "product_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)
266
+ product_id = 'product_id_example' # String | id of the related object (important: id should match the uuid-format)
206
267
 
207
268
  opts = {
208
269
  page: 56, # Integer | number of the page to fetch
209
270
  size: 56, # Integer | amount of objects to return per page
210
- sort: "sort_example", # String | attribute to sort by (multiple separated by comma; max. 5)
271
+ sort: 'sort_example', # String | attribute to sort by (multiple separated by comma; max. 5)
211
272
  revision: 789 # Integer | last revision number, objects with a greater revision than this will be returned
212
273
  }
213
274
 
214
275
  begin
215
276
  #lists the product stocks in different warehouses (KORONA.retail required)
216
- result = api_instance.get_product_stocks(korona_account_id, product_id_or_number, opts)
277
+ result = api_instance.get_product_stocks(korona_account_id, product_id, opts)
217
278
  p result
218
279
  rescue KoronaClient::ApiError => e
219
280
  puts "Exception when calling ProductsApi->get_product_stocks: #{e}"
@@ -224,8 +285,8 @@ end
224
285
 
225
286
  Name | Type | Description | Notes
226
287
  ------------- | ------------- | ------------- | -------------
227
- **korona_account_id** | **String**| the account id |
228
- **product_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) |
288
+ **korona_account_id** | **String**| account id of the KORONA.cloud account |
289
+ **product_id** | **String**| id of the related object (important: id should match the uuid-format) |
229
290
  **page** | **Integer**| number of the page to fetch | [optional]
230
291
  **size** | **Integer**| amount of objects to return per page | [optional]
231
292
  **sort** | **String**| attribute to sort by (multiple separated by comma; max. 5) | [optional]
@@ -266,18 +327,19 @@ end
266
327
 
267
328
  api_instance = KoronaClient::ProductsApi.new
268
329
 
269
- korona_account_id = "korona_account_id_example" # String | the account id
330
+ korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
270
331
 
271
332
  opts = {
272
333
  page: 56, # Integer | number of the page to fetch
273
334
  size: 56, # Integer | amount of objects to return per page
274
- sort: "sort_example", # String | attribute to sort by (multiple separated by comma; max. 5)
335
+ sort: 'sort_example', # String | attribute to sort by (multiple separated by comma; max. 5)
275
336
  revision: 789, # Integer | last revision number, objects with a greater revision than this will be returned
276
337
  include_deleted: true, # BOOLEAN | indicates deleted objects should be loaded or not (default: false)
277
- product_codes: "product_codes_example", # String | at least one product code to filter by (multiple separated by comma; max. 10)
278
- commodity_group: "commodity_group_example", # String | commodity group id or number to filter by
279
- assortment: "assortment_example", # String | assortment id or number to filter by
280
- tag: "tag_example" # String | tag id or number to filter by
338
+ product_codes: 'product_codes_example', # String | at least one product code to filter by (multiple separated by comma; max. 10)
339
+ commodity_group: 'commodity_group_example', # String | commodity group id to filter by
340
+ assortment: 'assortment_example', # String | assortment id to filter by
341
+ tag: 'tag_example', # String | tag id to filter by
342
+ number: 'number_example' # String | number of the related object
281
343
  }
282
344
 
283
345
  begin
@@ -293,16 +355,17 @@ end
293
355
 
294
356
  Name | Type | Description | Notes
295
357
  ------------- | ------------- | ------------- | -------------
296
- **korona_account_id** | **String**| the account id |
358
+ **korona_account_id** | **String**| account id of the KORONA.cloud account |
297
359
  **page** | **Integer**| number of the page to fetch | [optional]
298
360
  **size** | **Integer**| amount of objects to return per page | [optional]
299
361
  **sort** | **String**| attribute to sort by (multiple separated by comma; max. 5) | [optional]
300
362
  **revision** | **Integer**| last revision number, objects with a greater revision than this will be returned | [optional]
301
363
  **include_deleted** | **BOOLEAN**| indicates deleted objects should be loaded or not (default: false) | [optional]
302
364
  **product_codes** | **String**| at least one product code to filter by (multiple separated by comma; max. 10) | [optional]
303
- **commodity_group** | **String**| commodity group id or number to filter by | [optional]
304
- **assortment** | **String**| assortment id or number to filter by | [optional]
305
- **tag** | **String**| tag id or number to filter by | [optional]
365
+ **commodity_group** | **String**| commodity group id to filter by | [optional]
366
+ **assortment** | **String**| assortment id to filter by | [optional]
367
+ **tag** | **String**| tag id to filter by | [optional]
368
+ **number** | **String**| number of the related object | [optional]
306
369
 
307
370
  ### Return type
308
371
 
@@ -320,9 +383,9 @@ Name | Type | Description | Notes
320
383
 
321
384
 
322
385
  # **update_product**
323
- > update_product(korona_account_id, product_id_or_number, body)
386
+ > update_product(korona_account_id, product_id, body)
324
387
 
325
- changes the product
388
+ updates the single product
326
389
 
327
390
  if [number] is set, the number of the object will change and the resource location as well
328
391
 
@@ -339,16 +402,16 @@ end
339
402
 
340
403
  api_instance = KoronaClient::ProductsApi.new
341
404
 
342
- korona_account_id = "korona_account_id_example" # String | the account id
405
+ korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
343
406
 
344
- product_id_or_number = "product_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)
407
+ product_id = 'product_id_example' # String | id of the related object (important: id should match the uuid-format)
345
408
 
346
409
  body = KoronaClient::Product.new # Product | the properties to update of the product
347
410
 
348
411
 
349
412
  begin
350
- #changes the product
351
- api_instance.update_product(korona_account_id, product_id_or_number, body)
413
+ #updates the single product
414
+ api_instance.update_product(korona_account_id, product_id, body)
352
415
  rescue KoronaClient::ApiError => e
353
416
  puts "Exception when calling ProductsApi->update_product: #{e}"
354
417
  end
@@ -358,8 +421,8 @@ end
358
421
 
359
422
  Name | Type | Description | Notes
360
423
  ------------- | ------------- | ------------- | -------------
361
- **korona_account_id** | **String**| the account id |
362
- **product_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) |
424
+ **korona_account_id** | **String**| account id of the KORONA.cloud account |
425
+ **product_id** | **String**| id of the related object (important: id should match the uuid-format) |
363
426
  **body** | [**Product**](Product.md)| the properties to update of the product |
364
427
 
365
428
  ### Return type
@@ -380,7 +443,7 @@ nil (empty response body)
380
443
  # **update_products**
381
444
  > Array&lt;AddOrUpdateResult&gt; update_products(korona_account_id, body)
382
445
 
383
- changes a batch of products
446
+ updates a batch of products
384
447
 
385
448
  [number] must be set in the objects, otherwise the object cannot be updated
386
449
 
@@ -397,13 +460,13 @@ end
397
460
 
398
461
  api_instance = KoronaClient::ProductsApi.new
399
462
 
400
- korona_account_id = "korona_account_id_example" # String | the account id
463
+ korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
401
464
 
402
- body = [KoronaClient::Product.new] # Array<Product> | a array of existing products
465
+ body = [KoronaClient::Product.new] # Array<Product> | an array of existing products
403
466
 
404
467
 
405
468
  begin
406
- #changes a batch of products
469
+ #updates a batch of products
407
470
  result = api_instance.update_products(korona_account_id, body)
408
471
  p result
409
472
  rescue KoronaClient::ApiError => e
@@ -415,8 +478,8 @@ end
415
478
 
416
479
  Name | Type | Description | Notes
417
480
  ------------- | ------------- | ------------- | -------------
418
- **korona_account_id** | **String**| the account id |
419
- **body** | [**Array&lt;Product&gt;**](Product.md)| a array of existing products |
481
+ **korona_account_id** | **String**| account id of the KORONA.cloud account |
482
+ **body** | [**Array&lt;Product&gt;**](Product.md)| an array of existing products |
420
483
 
421
484
  ### Return type
422
485