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
@@ -3,14 +3,14 @@
3
3
 
4
4
  #Our api provides access to our cloud services
5
5
 
6
- OpenAPI spec version: 3
7
- Contact: support@combase.net
6
+ OpenAPI spec version: 2.11.21
7
+
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.8
10
10
 
11
11
  =end
12
12
 
13
- require "uri"
13
+ require 'uri'
14
14
 
15
15
  module KoronaClient
16
16
  class ImagesApi
@@ -19,27 +19,26 @@ module KoronaClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
-
23
22
  # displays the image
24
23
  #
25
- # @param korona_account_id the account id
26
- # @param image_id 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)
24
+ # @param korona_account_id account id of the KORONA.cloud account
25
+ # @param image_id id of the related object (important: id should match the uuid-format)
27
26
  # @param [Hash] opts the optional parameters
28
- # @return [nil]
27
+ # @return [String]
29
28
  def get_image(korona_account_id, image_id, opts = {})
30
- get_image_with_http_info(korona_account_id, image_id, opts)
31
- return nil
29
+ data, _status_code, _headers = get_image_with_http_info(korona_account_id, image_id, opts)
30
+ data
32
31
  end
33
32
 
34
33
  # displays the image
35
34
  #
36
- # @param korona_account_id the account id
37
- # @param image_id 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)
35
+ # @param korona_account_id account id of the KORONA.cloud account
36
+ # @param image_id id of the related object (important: id should match the uuid-format)
38
37
  # @param [Hash] opts the optional parameters
39
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
38
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
40
39
  def get_image_with_http_info(korona_account_id, image_id, opts = {})
41
40
  if @api_client.config.debugging
42
- @api_client.config.logger.debug "Calling API: ImagesApi.get_image ..."
41
+ @api_client.config.logger.debug 'Calling API: ImagesApi.get_image ...'
43
42
  end
44
43
  # verify the required parameter 'korona_account_id' is set
45
44
  if @api_client.config.client_side_validation && korona_account_id.nil?
@@ -50,7 +49,7 @@ module KoronaClient
50
49
  fail ArgumentError, "Missing the required parameter 'image_id' when calling ImagesApi.get_image"
51
50
  end
52
51
  # resource path
53
- local_var_path = "/accounts/{koronaAccountId}/images/{imageId}".sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'imageId' + '}', image_id.to_s)
52
+ local_var_path = '/accounts/{koronaAccountId}/images/{imageId}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'imageId' + '}', image_id.to_s)
54
53
 
55
54
  # query parameters
56
55
  query_params = {}
@@ -71,7 +70,8 @@ module KoronaClient
71
70
  :query_params => query_params,
72
71
  :form_params => form_params,
73
72
  :body => post_body,
74
- :auth_names => auth_names)
73
+ :auth_names => auth_names,
74
+ :return_type => 'String')
75
75
  if @api_client.config.debugging
76
76
  @api_client.config.logger.debug "API called: ImagesApi#get_image\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
77
77
  end
@@ -3,14 +3,14 @@
3
3
 
4
4
  #Our api provides access to our cloud services
5
5
 
6
- OpenAPI spec version: 3
7
- Contact: support@combase.net
6
+ OpenAPI spec version: 2.11.21
7
+
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.8
10
10
 
11
11
  =end
12
12
 
13
- require "uri"
13
+ require 'uri'
14
14
 
15
15
  module KoronaClient
16
16
  class InfoTextsApi
@@ -19,38 +19,37 @@ module KoronaClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
-
23
- # lists the info text
22
+ # returns the single info text
24
23
  #
25
- # @param korona_account_id the account id
26
- # @param info_text_id_or_number 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)
24
+ # @param korona_account_id account id of the KORONA.cloud account
25
+ # @param info_text_id id of the related object (important: id should match the uuid-format)
27
26
  # @param [Hash] opts the optional parameters
28
27
  # @return [InfoText]
29
- def get_info_text(korona_account_id, info_text_id_or_number, opts = {})
30
- data, _status_code, _headers = get_info_text_with_http_info(korona_account_id, info_text_id_or_number, opts)
31
- return data
28
+ def get_info_text(korona_account_id, info_text_id, opts = {})
29
+ data, _status_code, _headers = get_info_text_with_http_info(korona_account_id, info_text_id, opts)
30
+ data
32
31
  end
33
32
 
34
- # lists the info text
33
+ # returns the single info text
35
34
  #
36
- # @param korona_account_id the account id
37
- # @param info_text_id_or_number 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)
35
+ # @param korona_account_id account id of the KORONA.cloud account
36
+ # @param info_text_id id of the related object (important: id should match the uuid-format)
38
37
  # @param [Hash] opts the optional parameters
39
38
  # @return [Array<(InfoText, Fixnum, Hash)>] InfoText data, response status code and response headers
40
- def get_info_text_with_http_info(korona_account_id, info_text_id_or_number, opts = {})
39
+ def get_info_text_with_http_info(korona_account_id, info_text_id, opts = {})
41
40
  if @api_client.config.debugging
42
- @api_client.config.logger.debug "Calling API: InfoTextsApi.get_info_text ..."
41
+ @api_client.config.logger.debug 'Calling API: InfoTextsApi.get_info_text ...'
43
42
  end
44
43
  # verify the required parameter 'korona_account_id' is set
45
44
  if @api_client.config.client_side_validation && korona_account_id.nil?
46
45
  fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling InfoTextsApi.get_info_text"
47
46
  end
48
- # verify the required parameter 'info_text_id_or_number' is set
49
- if @api_client.config.client_side_validation && info_text_id_or_number.nil?
50
- fail ArgumentError, "Missing the required parameter 'info_text_id_or_number' when calling InfoTextsApi.get_info_text"
47
+ # verify the required parameter 'info_text_id' is set
48
+ if @api_client.config.client_side_validation && info_text_id.nil?
49
+ fail ArgumentError, "Missing the required parameter 'info_text_id' when calling InfoTextsApi.get_info_text"
51
50
  end
52
51
  # resource path
53
- local_var_path = "/accounts/{koronaAccountId}/infoTexts/{infoTextIdOrNumber}".sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'infoTextIdOrNumber' + '}', info_text_id_or_number.to_s)
52
+ local_var_path = '/accounts/{koronaAccountId}/infoTexts/{infoTextId}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'infoTextId' + '}', info_text_id.to_s)
54
53
 
55
54
  # query parameters
56
55
  query_params = {}
@@ -80,42 +79,43 @@ module KoronaClient
80
79
  end
81
80
  return data, status_code, headers
82
81
  end
83
-
84
82
  # lists all info texts
85
83
  #
86
- # @param korona_account_id the account id
84
+ # @param korona_account_id account id of the KORONA.cloud account
87
85
  # @param [Hash] opts the optional parameters
88
86
  # @option opts [Integer] :page number of the page to fetch
89
87
  # @option opts [Integer] :size amount of objects to return per page
90
88
  # @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
91
89
  # @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
92
90
  # @option opts [BOOLEAN] :include_deleted indicates deleted objects should be loaded or not (default: false)
91
+ # @option opts [String] :number number of the related object
93
92
  # @return [ResultListInfoText]
94
93
  def get_info_texts(korona_account_id, opts = {})
95
94
  data, _status_code, _headers = get_info_texts_with_http_info(korona_account_id, opts)
96
- return data
95
+ data
97
96
  end
98
97
 
99
98
  # lists all info texts
100
99
  #
101
- # @param korona_account_id the account id
100
+ # @param korona_account_id account id of the KORONA.cloud account
102
101
  # @param [Hash] opts the optional parameters
103
102
  # @option opts [Integer] :page number of the page to fetch
104
103
  # @option opts [Integer] :size amount of objects to return per page
105
104
  # @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
106
105
  # @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
107
106
  # @option opts [BOOLEAN] :include_deleted indicates deleted objects should be loaded or not (default: false)
107
+ # @option opts [String] :number number of the related object
108
108
  # @return [Array<(ResultListInfoText, Fixnum, Hash)>] ResultListInfoText data, response status code and response headers
109
109
  def get_info_texts_with_http_info(korona_account_id, opts = {})
110
110
  if @api_client.config.debugging
111
- @api_client.config.logger.debug "Calling API: InfoTextsApi.get_info_texts ..."
111
+ @api_client.config.logger.debug 'Calling API: InfoTextsApi.get_info_texts ...'
112
112
  end
113
113
  # verify the required parameter 'korona_account_id' is set
114
114
  if @api_client.config.client_side_validation && korona_account_id.nil?
115
115
  fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling InfoTextsApi.get_info_texts"
116
116
  end
117
117
  # resource path
118
- local_var_path = "/accounts/{koronaAccountId}/infoTexts".sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)
118
+ local_var_path = '/accounts/{koronaAccountId}/infoTexts'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)
119
119
 
120
120
  # query parameters
121
121
  query_params = {}
@@ -124,6 +124,7 @@ module KoronaClient
124
124
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
125
125
  query_params[:'revision'] = opts[:'revision'] if !opts[:'revision'].nil?
126
126
  query_params[:'includeDeleted'] = opts[:'include_deleted'] if !opts[:'include_deleted'].nil?
127
+ query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
127
128
 
128
129
  # header parameters
129
130
  header_params = {}
@@ -0,0 +1,1014 @@
1
+ =begin
2
+ #KORONA.cloud API v3
3
+
4
+ #Our api provides access to our cloud services
5
+
6
+ OpenAPI spec version: 2.11.21
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.8
10
+
11
+ =end
12
+
13
+ require 'uri'
14
+
15
+ module KoronaClient
16
+ class InventoriesApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # adds a batch of new inventories
23
+ #
24
+ # @param korona_account_id account id of the KORONA.cloud account
25
+ # @param body an array of new inventories
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [Array<AddOrUpdateResult>]
28
+ def add_inventories(korona_account_id, body, opts = {})
29
+ data, _status_code, _headers = add_inventories_with_http_info(korona_account_id, body, opts)
30
+ data
31
+ end
32
+
33
+ # adds a batch of new inventories
34
+ #
35
+ # @param korona_account_id account id of the KORONA.cloud account
36
+ # @param body an array of new inventories
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [Array<(Array<AddOrUpdateResult>, Fixnum, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers
39
+ def add_inventories_with_http_info(korona_account_id, body, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: InventoriesApi.add_inventories ...'
42
+ end
43
+ # verify the required parameter 'korona_account_id' is set
44
+ if @api_client.config.client_side_validation && korona_account_id.nil?
45
+ fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling InventoriesApi.add_inventories"
46
+ end
47
+ # verify the required parameter 'body' is set
48
+ if @api_client.config.client_side_validation && body.nil?
49
+ fail ArgumentError, "Missing the required parameter 'body' when calling InventoriesApi.add_inventories"
50
+ end
51
+ # resource path
52
+ local_var_path = '/accounts/{koronaAccountId}/inventories'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)
53
+
54
+ # query parameters
55
+ query_params = {}
56
+
57
+ # header parameters
58
+ header_params = {}
59
+ # HTTP header 'Accept' (if needed)
60
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
61
+ # HTTP header 'Content-Type'
62
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
63
+
64
+ # form parameters
65
+ form_params = {}
66
+
67
+ # http body (model)
68
+ post_body = @api_client.object_to_http_body(body)
69
+ auth_names = ['basicAuth']
70
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
71
+ :header_params => header_params,
72
+ :query_params => query_params,
73
+ :form_params => form_params,
74
+ :body => post_body,
75
+ :auth_names => auth_names,
76
+ :return_type => 'Array<AddOrUpdateResult>')
77
+ if @api_client.config.debugging
78
+ @api_client.config.logger.debug "API called: InventoriesApi#add_inventories\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
79
+ end
80
+ return data, status_code, headers
81
+ end
82
+ # adds inventory list items
83
+ #
84
+ # @param korona_account_id account id of the KORONA.cloud account
85
+ # @param inventory_id id of the related object (important: id should match the uuid-format)
86
+ # @param inventory_list_id id of the related object (important: id should match the uuid-format)
87
+ # @param body data to update
88
+ # @param [Hash] opts the optional parameters
89
+ # @return [Array<AddOrUpdateResult>]
90
+ def add_inventory_inventory_list_items(korona_account_id, inventory_id, inventory_list_id, body, opts = {})
91
+ data, _status_code, _headers = add_inventory_inventory_list_items_with_http_info(korona_account_id, inventory_id, inventory_list_id, body, opts)
92
+ data
93
+ end
94
+
95
+ # adds inventory list items
96
+ #
97
+ # @param korona_account_id account id of the KORONA.cloud account
98
+ # @param inventory_id id of the related object (important: id should match the uuid-format)
99
+ # @param inventory_list_id id of the related object (important: id should match the uuid-format)
100
+ # @param body data to update
101
+ # @param [Hash] opts the optional parameters
102
+ # @return [Array<(Array<AddOrUpdateResult>, Fixnum, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers
103
+ def add_inventory_inventory_list_items_with_http_info(korona_account_id, inventory_id, inventory_list_id, body, opts = {})
104
+ if @api_client.config.debugging
105
+ @api_client.config.logger.debug 'Calling API: InventoriesApi.add_inventory_inventory_list_items ...'
106
+ end
107
+ # verify the required parameter 'korona_account_id' is set
108
+ if @api_client.config.client_side_validation && korona_account_id.nil?
109
+ fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling InventoriesApi.add_inventory_inventory_list_items"
110
+ end
111
+ # verify the required parameter 'inventory_id' is set
112
+ if @api_client.config.client_side_validation && inventory_id.nil?
113
+ fail ArgumentError, "Missing the required parameter 'inventory_id' when calling InventoriesApi.add_inventory_inventory_list_items"
114
+ end
115
+ # verify the required parameter 'inventory_list_id' is set
116
+ if @api_client.config.client_side_validation && inventory_list_id.nil?
117
+ fail ArgumentError, "Missing the required parameter 'inventory_list_id' when calling InventoriesApi.add_inventory_inventory_list_items"
118
+ end
119
+ # verify the required parameter 'body' is set
120
+ if @api_client.config.client_side_validation && body.nil?
121
+ fail ArgumentError, "Missing the required parameter 'body' when calling InventoriesApi.add_inventory_inventory_list_items"
122
+ end
123
+ # resource path
124
+ local_var_path = '/accounts/{koronaAccountId}/inventories/{inventoryId}/inventoryLists/{inventoryListId}/items'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'inventoryId' + '}', inventory_id.to_s).sub('{' + 'inventoryListId' + '}', inventory_list_id.to_s)
125
+
126
+ # query parameters
127
+ query_params = {}
128
+
129
+ # header parameters
130
+ header_params = {}
131
+ # HTTP header 'Accept' (if needed)
132
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
133
+ # HTTP header 'Content-Type'
134
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
135
+
136
+ # form parameters
137
+ form_params = {}
138
+
139
+ # http body (model)
140
+ post_body = @api_client.object_to_http_body(body)
141
+ auth_names = ['basicAuth']
142
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
143
+ :header_params => header_params,
144
+ :query_params => query_params,
145
+ :form_params => form_params,
146
+ :body => post_body,
147
+ :auth_names => auth_names,
148
+ :return_type => 'Array<AddOrUpdateResult>')
149
+ if @api_client.config.debugging
150
+ @api_client.config.logger.debug "API called: InventoriesApi#add_inventory_inventory_list_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
151
+ end
152
+ return data, status_code, headers
153
+ end
154
+ # deletes the single inventory (only allowed if hasBookedReceipts=false)
155
+ #
156
+ # @param korona_account_id account id of the KORONA.cloud account
157
+ # @param inventory_id id of the related object (important: id should match the uuid-format)
158
+ # @param [Hash] opts the optional parameters
159
+ # @return [nil]
160
+ def delete_inventory(korona_account_id, inventory_id, opts = {})
161
+ delete_inventory_with_http_info(korona_account_id, inventory_id, opts)
162
+ nil
163
+ end
164
+
165
+ # deletes the single inventory (only allowed if hasBookedReceipts&#x3D;false)
166
+ #
167
+ # @param korona_account_id account id of the KORONA.cloud account
168
+ # @param inventory_id id of the related object (important: id should match the uuid-format)
169
+ # @param [Hash] opts the optional parameters
170
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
171
+ def delete_inventory_with_http_info(korona_account_id, inventory_id, opts = {})
172
+ if @api_client.config.debugging
173
+ @api_client.config.logger.debug 'Calling API: InventoriesApi.delete_inventory ...'
174
+ end
175
+ # verify the required parameter 'korona_account_id' is set
176
+ if @api_client.config.client_side_validation && korona_account_id.nil?
177
+ fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling InventoriesApi.delete_inventory"
178
+ end
179
+ # verify the required parameter 'inventory_id' is set
180
+ if @api_client.config.client_side_validation && inventory_id.nil?
181
+ fail ArgumentError, "Missing the required parameter 'inventory_id' when calling InventoriesApi.delete_inventory"
182
+ end
183
+ # resource path
184
+ local_var_path = '/accounts/{koronaAccountId}/inventories/{inventoryId}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'inventoryId' + '}', inventory_id.to_s)
185
+
186
+ # query parameters
187
+ query_params = {}
188
+
189
+ # header parameters
190
+ header_params = {}
191
+ # HTTP header 'Accept' (if needed)
192
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
193
+ # HTTP header 'Content-Type'
194
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
195
+
196
+ # form parameters
197
+ form_params = {}
198
+
199
+ # http body (model)
200
+ post_body = nil
201
+ auth_names = ['basicAuth']
202
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
203
+ :header_params => header_params,
204
+ :query_params => query_params,
205
+ :form_params => form_params,
206
+ :body => post_body,
207
+ :auth_names => auth_names)
208
+ if @api_client.config.debugging
209
+ @api_client.config.logger.debug "API called: InventoriesApi#delete_inventory\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
210
+ end
211
+ return data, status_code, headers
212
+ end
213
+ # deletes the single inventory list item
214
+ #
215
+ # @param korona_account_id account id of the KORONA.cloud account
216
+ # @param inventory_id id of the related object (important: id should match the uuid-format)
217
+ # @param inventory_list_id id of the related object (important: id should match the uuid-format)
218
+ # @param product_id id of the related object (important: id should match the uuid-format)
219
+ # @param [Hash] opts the optional parameters
220
+ # @return [nil]
221
+ def delete_inventory_inventory_list_item(korona_account_id, inventory_id, inventory_list_id, product_id, opts = {})
222
+ delete_inventory_inventory_list_item_with_http_info(korona_account_id, inventory_id, inventory_list_id, product_id, opts)
223
+ nil
224
+ end
225
+
226
+ # deletes the single inventory list item
227
+ #
228
+ # @param korona_account_id account id of the KORONA.cloud account
229
+ # @param inventory_id id of the related object (important: id should match the uuid-format)
230
+ # @param inventory_list_id id of the related object (important: id should match the uuid-format)
231
+ # @param product_id id of the related object (important: id should match the uuid-format)
232
+ # @param [Hash] opts the optional parameters
233
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
234
+ def delete_inventory_inventory_list_item_with_http_info(korona_account_id, inventory_id, inventory_list_id, product_id, opts = {})
235
+ if @api_client.config.debugging
236
+ @api_client.config.logger.debug 'Calling API: InventoriesApi.delete_inventory_inventory_list_item ...'
237
+ end
238
+ # verify the required parameter 'korona_account_id' is set
239
+ if @api_client.config.client_side_validation && korona_account_id.nil?
240
+ fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling InventoriesApi.delete_inventory_inventory_list_item"
241
+ end
242
+ # verify the required parameter 'inventory_id' is set
243
+ if @api_client.config.client_side_validation && inventory_id.nil?
244
+ fail ArgumentError, "Missing the required parameter 'inventory_id' when calling InventoriesApi.delete_inventory_inventory_list_item"
245
+ end
246
+ # verify the required parameter 'inventory_list_id' is set
247
+ if @api_client.config.client_side_validation && inventory_list_id.nil?
248
+ fail ArgumentError, "Missing the required parameter 'inventory_list_id' when calling InventoriesApi.delete_inventory_inventory_list_item"
249
+ end
250
+ # verify the required parameter 'product_id' is set
251
+ if @api_client.config.client_side_validation && product_id.nil?
252
+ fail ArgumentError, "Missing the required parameter 'product_id' when calling InventoriesApi.delete_inventory_inventory_list_item"
253
+ end
254
+ # resource path
255
+ local_var_path = '/accounts/{koronaAccountId}/inventories/{inventoryId}/inventoryLists/{inventoryListId}/items/{productId}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'inventoryId' + '}', inventory_id.to_s).sub('{' + 'inventoryListId' + '}', inventory_list_id.to_s).sub('{' + 'productId' + '}', product_id.to_s)
256
+
257
+ # query parameters
258
+ query_params = {}
259
+
260
+ # header parameters
261
+ header_params = {}
262
+ # HTTP header 'Accept' (if needed)
263
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
264
+ # HTTP header 'Content-Type'
265
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
266
+
267
+ # form parameters
268
+ form_params = {}
269
+
270
+ # http body (model)
271
+ post_body = nil
272
+ auth_names = ['basicAuth']
273
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
274
+ :header_params => header_params,
275
+ :query_params => query_params,
276
+ :form_params => form_params,
277
+ :body => post_body,
278
+ :auth_names => auth_names)
279
+ if @api_client.config.debugging
280
+ @api_client.config.logger.debug "API called: InventoriesApi#delete_inventory_inventory_list_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
281
+ end
282
+ return data, status_code, headers
283
+ end
284
+ # lists all inventories
285
+ #
286
+ # @param korona_account_id account id of the KORONA.cloud account
287
+ # @param [Hash] opts the optional parameters
288
+ # @option opts [Integer] :page number of the page to fetch
289
+ # @option opts [Integer] :size amount of objects to return per page
290
+ # @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
291
+ # @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
292
+ # @option opts [BOOLEAN] :include_deleted indicates deleted objects should be loaded or not (default: false)
293
+ # @option opts [String] :number number of the related object
294
+ # @return [ResultListInventory]
295
+ def get_inventories(korona_account_id, opts = {})
296
+ data, _status_code, _headers = get_inventories_with_http_info(korona_account_id, opts)
297
+ data
298
+ end
299
+
300
+ # lists all inventories
301
+ #
302
+ # @param korona_account_id account id of the KORONA.cloud account
303
+ # @param [Hash] opts the optional parameters
304
+ # @option opts [Integer] :page number of the page to fetch
305
+ # @option opts [Integer] :size amount of objects to return per page
306
+ # @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
307
+ # @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
308
+ # @option opts [BOOLEAN] :include_deleted indicates deleted objects should be loaded or not (default: false)
309
+ # @option opts [String] :number number of the related object
310
+ # @return [Array<(ResultListInventory, Fixnum, Hash)>] ResultListInventory data, response status code and response headers
311
+ def get_inventories_with_http_info(korona_account_id, opts = {})
312
+ if @api_client.config.debugging
313
+ @api_client.config.logger.debug 'Calling API: InventoriesApi.get_inventories ...'
314
+ end
315
+ # verify the required parameter 'korona_account_id' is set
316
+ if @api_client.config.client_side_validation && korona_account_id.nil?
317
+ fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling InventoriesApi.get_inventories"
318
+ end
319
+ # resource path
320
+ local_var_path = '/accounts/{koronaAccountId}/inventories'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)
321
+
322
+ # query parameters
323
+ query_params = {}
324
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
325
+ query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
326
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
327
+ query_params[:'revision'] = opts[:'revision'] if !opts[:'revision'].nil?
328
+ query_params[:'includeDeleted'] = opts[:'include_deleted'] if !opts[:'include_deleted'].nil?
329
+ query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
330
+
331
+ # header parameters
332
+ header_params = {}
333
+ # HTTP header 'Accept' (if needed)
334
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
335
+ # HTTP header 'Content-Type'
336
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
337
+
338
+ # form parameters
339
+ form_params = {}
340
+
341
+ # http body (model)
342
+ post_body = nil
343
+ auth_names = ['basicAuth']
344
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
345
+ :header_params => header_params,
346
+ :query_params => query_params,
347
+ :form_params => form_params,
348
+ :body => post_body,
349
+ :auth_names => auth_names,
350
+ :return_type => 'ResultListInventory')
351
+ if @api_client.config.debugging
352
+ @api_client.config.logger.debug "API called: InventoriesApi#get_inventories\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
353
+ end
354
+ return data, status_code, headers
355
+ end
356
+ # returns the single inventory
357
+ #
358
+ # @param korona_account_id account id of the KORONA.cloud account
359
+ # @param inventory_id id of the related object (important: id should match the uuid-format)
360
+ # @param [Hash] opts the optional parameters
361
+ # @return [Inventory]
362
+ def get_inventory(korona_account_id, inventory_id, opts = {})
363
+ data, _status_code, _headers = get_inventory_with_http_info(korona_account_id, inventory_id, opts)
364
+ data
365
+ end
366
+
367
+ # returns the single inventory
368
+ #
369
+ # @param korona_account_id account id of the KORONA.cloud account
370
+ # @param inventory_id id of the related object (important: id should match the uuid-format)
371
+ # @param [Hash] opts the optional parameters
372
+ # @return [Array<(Inventory, Fixnum, Hash)>] Inventory data, response status code and response headers
373
+ def get_inventory_with_http_info(korona_account_id, inventory_id, opts = {})
374
+ if @api_client.config.debugging
375
+ @api_client.config.logger.debug 'Calling API: InventoriesApi.get_inventory ...'
376
+ end
377
+ # verify the required parameter 'korona_account_id' is set
378
+ if @api_client.config.client_side_validation && korona_account_id.nil?
379
+ fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling InventoriesApi.get_inventory"
380
+ end
381
+ # verify the required parameter 'inventory_id' is set
382
+ if @api_client.config.client_side_validation && inventory_id.nil?
383
+ fail ArgumentError, "Missing the required parameter 'inventory_id' when calling InventoriesApi.get_inventory"
384
+ end
385
+ # resource path
386
+ local_var_path = '/accounts/{koronaAccountId}/inventories/{inventoryId}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'inventoryId' + '}', inventory_id.to_s)
387
+
388
+ # query parameters
389
+ query_params = {}
390
+
391
+ # header parameters
392
+ header_params = {}
393
+ # HTTP header 'Accept' (if needed)
394
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
395
+ # HTTP header 'Content-Type'
396
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
397
+
398
+ # form parameters
399
+ form_params = {}
400
+
401
+ # http body (model)
402
+ post_body = nil
403
+ auth_names = ['basicAuth']
404
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
405
+ :header_params => header_params,
406
+ :query_params => query_params,
407
+ :form_params => form_params,
408
+ :body => post_body,
409
+ :auth_names => auth_names,
410
+ :return_type => 'Inventory')
411
+ if @api_client.config.debugging
412
+ @api_client.config.logger.debug "API called: InventoriesApi#get_inventory\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
413
+ end
414
+ return data, status_code, headers
415
+ end
416
+ # returns the single inventory list
417
+ #
418
+ # @param korona_account_id account id of the KORONA.cloud account
419
+ # @param inventory_id id of the related object (important: id should match the uuid-format)
420
+ # @param inventory_list_id id of the related object (important: id should match the uuid-format)
421
+ # @param [Hash] opts the optional parameters
422
+ # @return [InventoryList]
423
+ def get_inventory_inventory_list(korona_account_id, inventory_id, inventory_list_id, opts = {})
424
+ data, _status_code, _headers = get_inventory_inventory_list_with_http_info(korona_account_id, inventory_id, inventory_list_id, opts)
425
+ data
426
+ end
427
+
428
+ # returns the single inventory list
429
+ #
430
+ # @param korona_account_id account id of the KORONA.cloud account
431
+ # @param inventory_id id of the related object (important: id should match the uuid-format)
432
+ # @param inventory_list_id id of the related object (important: id should match the uuid-format)
433
+ # @param [Hash] opts the optional parameters
434
+ # @return [Array<(InventoryList, Fixnum, Hash)>] InventoryList data, response status code and response headers
435
+ def get_inventory_inventory_list_with_http_info(korona_account_id, inventory_id, inventory_list_id, opts = {})
436
+ if @api_client.config.debugging
437
+ @api_client.config.logger.debug 'Calling API: InventoriesApi.get_inventory_inventory_list ...'
438
+ end
439
+ # verify the required parameter 'korona_account_id' is set
440
+ if @api_client.config.client_side_validation && korona_account_id.nil?
441
+ fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling InventoriesApi.get_inventory_inventory_list"
442
+ end
443
+ # verify the required parameter 'inventory_id' is set
444
+ if @api_client.config.client_side_validation && inventory_id.nil?
445
+ fail ArgumentError, "Missing the required parameter 'inventory_id' when calling InventoriesApi.get_inventory_inventory_list"
446
+ end
447
+ # verify the required parameter 'inventory_list_id' is set
448
+ if @api_client.config.client_side_validation && inventory_list_id.nil?
449
+ fail ArgumentError, "Missing the required parameter 'inventory_list_id' when calling InventoriesApi.get_inventory_inventory_list"
450
+ end
451
+ # resource path
452
+ local_var_path = '/accounts/{koronaAccountId}/inventories/{inventoryId}/inventoryLists/{inventoryListId}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'inventoryId' + '}', inventory_id.to_s).sub('{' + 'inventoryListId' + '}', inventory_list_id.to_s)
453
+
454
+ # query parameters
455
+ query_params = {}
456
+
457
+ # header parameters
458
+ header_params = {}
459
+ # HTTP header 'Accept' (if needed)
460
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
461
+ # HTTP header 'Content-Type'
462
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
463
+
464
+ # form parameters
465
+ form_params = {}
466
+
467
+ # http body (model)
468
+ post_body = nil
469
+ auth_names = ['basicAuth']
470
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
471
+ :header_params => header_params,
472
+ :query_params => query_params,
473
+ :form_params => form_params,
474
+ :body => post_body,
475
+ :auth_names => auth_names,
476
+ :return_type => 'InventoryList')
477
+ if @api_client.config.debugging
478
+ @api_client.config.logger.debug "API called: InventoriesApi#get_inventory_inventory_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
479
+ end
480
+ return data, status_code, headers
481
+ end
482
+ # returns the single inventory list item
483
+ #
484
+ # @param korona_account_id account id of the KORONA.cloud account
485
+ # @param inventory_id id of the related object (important: id should match the uuid-format)
486
+ # @param inventory_list_id id of the related object (important: id should match the uuid-format)
487
+ # @param product_id id of the related object (important: id should match the uuid-format)
488
+ # @param [Hash] opts the optional parameters
489
+ # @return [InventoryListItem]
490
+ def get_inventory_inventory_list_item(korona_account_id, inventory_id, inventory_list_id, product_id, opts = {})
491
+ data, _status_code, _headers = get_inventory_inventory_list_item_with_http_info(korona_account_id, inventory_id, inventory_list_id, product_id, opts)
492
+ data
493
+ end
494
+
495
+ # returns the single inventory list item
496
+ #
497
+ # @param korona_account_id account id of the KORONA.cloud account
498
+ # @param inventory_id id of the related object (important: id should match the uuid-format)
499
+ # @param inventory_list_id id of the related object (important: id should match the uuid-format)
500
+ # @param product_id id of the related object (important: id should match the uuid-format)
501
+ # @param [Hash] opts the optional parameters
502
+ # @return [Array<(InventoryListItem, Fixnum, Hash)>] InventoryListItem data, response status code and response headers
503
+ def get_inventory_inventory_list_item_with_http_info(korona_account_id, inventory_id, inventory_list_id, product_id, opts = {})
504
+ if @api_client.config.debugging
505
+ @api_client.config.logger.debug 'Calling API: InventoriesApi.get_inventory_inventory_list_item ...'
506
+ end
507
+ # verify the required parameter 'korona_account_id' is set
508
+ if @api_client.config.client_side_validation && korona_account_id.nil?
509
+ fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling InventoriesApi.get_inventory_inventory_list_item"
510
+ end
511
+ # verify the required parameter 'inventory_id' is set
512
+ if @api_client.config.client_side_validation && inventory_id.nil?
513
+ fail ArgumentError, "Missing the required parameter 'inventory_id' when calling InventoriesApi.get_inventory_inventory_list_item"
514
+ end
515
+ # verify the required parameter 'inventory_list_id' is set
516
+ if @api_client.config.client_side_validation && inventory_list_id.nil?
517
+ fail ArgumentError, "Missing the required parameter 'inventory_list_id' when calling InventoriesApi.get_inventory_inventory_list_item"
518
+ end
519
+ # verify the required parameter 'product_id' is set
520
+ if @api_client.config.client_side_validation && product_id.nil?
521
+ fail ArgumentError, "Missing the required parameter 'product_id' when calling InventoriesApi.get_inventory_inventory_list_item"
522
+ end
523
+ # resource path
524
+ local_var_path = '/accounts/{koronaAccountId}/inventories/{inventoryId}/inventoryLists/{inventoryListId}/items/{productId}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'inventoryId' + '}', inventory_id.to_s).sub('{' + 'inventoryListId' + '}', inventory_list_id.to_s).sub('{' + 'productId' + '}', product_id.to_s)
525
+
526
+ # query parameters
527
+ query_params = {}
528
+
529
+ # header parameters
530
+ header_params = {}
531
+ # HTTP header 'Accept' (if needed)
532
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
533
+ # HTTP header 'Content-Type'
534
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
535
+
536
+ # form parameters
537
+ form_params = {}
538
+
539
+ # http body (model)
540
+ post_body = nil
541
+ auth_names = ['basicAuth']
542
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
543
+ :header_params => header_params,
544
+ :query_params => query_params,
545
+ :form_params => form_params,
546
+ :body => post_body,
547
+ :auth_names => auth_names,
548
+ :return_type => 'InventoryListItem')
549
+ if @api_client.config.debugging
550
+ @api_client.config.logger.debug "API called: InventoriesApi#get_inventory_inventory_list_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
551
+ end
552
+ return data, status_code, headers
553
+ end
554
+ # lists all inventory list items
555
+ #
556
+ # @param korona_account_id account id of the KORONA.cloud account
557
+ # @param inventory_id id of the related object (important: id should match the uuid-format)
558
+ # @param inventory_list_id id of the related object (important: id should match the uuid-format)
559
+ # @param [Hash] opts the optional parameters
560
+ # @option opts [Integer] :page number of the page to fetch
561
+ # @option opts [Integer] :size amount of objects to return per page
562
+ # @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
563
+ # @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
564
+ # @return [ResultListInventoryListItem]
565
+ def get_inventory_inventory_list_items(korona_account_id, inventory_id, inventory_list_id, opts = {})
566
+ data, _status_code, _headers = get_inventory_inventory_list_items_with_http_info(korona_account_id, inventory_id, inventory_list_id, opts)
567
+ data
568
+ end
569
+
570
+ # lists all inventory list items
571
+ #
572
+ # @param korona_account_id account id of the KORONA.cloud account
573
+ # @param inventory_id id of the related object (important: id should match the uuid-format)
574
+ # @param inventory_list_id id of the related object (important: id should match the uuid-format)
575
+ # @param [Hash] opts the optional parameters
576
+ # @option opts [Integer] :page number of the page to fetch
577
+ # @option opts [Integer] :size amount of objects to return per page
578
+ # @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
579
+ # @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
580
+ # @return [Array<(ResultListInventoryListItem, Fixnum, Hash)>] ResultListInventoryListItem data, response status code and response headers
581
+ def get_inventory_inventory_list_items_with_http_info(korona_account_id, inventory_id, inventory_list_id, opts = {})
582
+ if @api_client.config.debugging
583
+ @api_client.config.logger.debug 'Calling API: InventoriesApi.get_inventory_inventory_list_items ...'
584
+ end
585
+ # verify the required parameter 'korona_account_id' is set
586
+ if @api_client.config.client_side_validation && korona_account_id.nil?
587
+ fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling InventoriesApi.get_inventory_inventory_list_items"
588
+ end
589
+ # verify the required parameter 'inventory_id' is set
590
+ if @api_client.config.client_side_validation && inventory_id.nil?
591
+ fail ArgumentError, "Missing the required parameter 'inventory_id' when calling InventoriesApi.get_inventory_inventory_list_items"
592
+ end
593
+ # verify the required parameter 'inventory_list_id' is set
594
+ if @api_client.config.client_side_validation && inventory_list_id.nil?
595
+ fail ArgumentError, "Missing the required parameter 'inventory_list_id' when calling InventoriesApi.get_inventory_inventory_list_items"
596
+ end
597
+ # resource path
598
+ local_var_path = '/accounts/{koronaAccountId}/inventories/{inventoryId}/inventoryLists/{inventoryListId}/items'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'inventoryId' + '}', inventory_id.to_s).sub('{' + 'inventoryListId' + '}', inventory_list_id.to_s)
599
+
600
+ # query parameters
601
+ query_params = {}
602
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
603
+ query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
604
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
605
+ query_params[:'revision'] = opts[:'revision'] if !opts[:'revision'].nil?
606
+
607
+ # header parameters
608
+ header_params = {}
609
+ # HTTP header 'Accept' (if needed)
610
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
611
+ # HTTP header 'Content-Type'
612
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
613
+
614
+ # form parameters
615
+ form_params = {}
616
+
617
+ # http body (model)
618
+ post_body = nil
619
+ auth_names = ['basicAuth']
620
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
621
+ :header_params => header_params,
622
+ :query_params => query_params,
623
+ :form_params => form_params,
624
+ :body => post_body,
625
+ :auth_names => auth_names,
626
+ :return_type => 'ResultListInventoryListItem')
627
+ if @api_client.config.debugging
628
+ @api_client.config.logger.debug "API called: InventoriesApi#get_inventory_inventory_list_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
629
+ end
630
+ return data, status_code, headers
631
+ end
632
+ # lists all inventory lists
633
+ #
634
+ # @param korona_account_id account id of the KORONA.cloud account
635
+ # @param inventory_id id of the related object (important: id should match the uuid-format)
636
+ # @param [Hash] opts the optional parameters
637
+ # @option opts [Integer] :page number of the page to fetch
638
+ # @option opts [Integer] :size amount of objects to return per page
639
+ # @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
640
+ # @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
641
+ # @option opts [BOOLEAN] :include_deleted indicates deleted objects should be loaded or not (default: false)
642
+ # @option opts [DateTime] :min_create_time min (inclusive) create time of the receipt (ISO 8601; date, time and timezone)
643
+ # @option opts [DateTime] :max_create_time max (inclusive) create time of the receipt (ISO 8601; date, time and timezone)
644
+ # @option opts [DateTime] :min_booking_time min (inclusive) booking time of the receipt (ISO 8601; date, time and timezone)
645
+ # @option opts [DateTime] :max_booking_time max (inclusive) booking time of the receipt (ISO 8601; date, time and timezone)
646
+ # @option opts [String] :booking_status booking status (possible values: BOOKED, IN_PROGRESS)
647
+ # @option opts [String] :number number of the related object
648
+ # @return [ResultListInventoryList]
649
+ def get_inventory_inventory_lists(korona_account_id, inventory_id, opts = {})
650
+ data, _status_code, _headers = get_inventory_inventory_lists_with_http_info(korona_account_id, inventory_id, opts)
651
+ data
652
+ end
653
+
654
+ # lists all inventory lists
655
+ #
656
+ # @param korona_account_id account id of the KORONA.cloud account
657
+ # @param inventory_id id of the related object (important: id should match the uuid-format)
658
+ # @param [Hash] opts the optional parameters
659
+ # @option opts [Integer] :page number of the page to fetch
660
+ # @option opts [Integer] :size amount of objects to return per page
661
+ # @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
662
+ # @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
663
+ # @option opts [BOOLEAN] :include_deleted indicates deleted objects should be loaded or not (default: false)
664
+ # @option opts [DateTime] :min_create_time min (inclusive) create time of the receipt (ISO 8601; date, time and timezone)
665
+ # @option opts [DateTime] :max_create_time max (inclusive) create time of the receipt (ISO 8601; date, time and timezone)
666
+ # @option opts [DateTime] :min_booking_time min (inclusive) booking time of the receipt (ISO 8601; date, time and timezone)
667
+ # @option opts [DateTime] :max_booking_time max (inclusive) booking time of the receipt (ISO 8601; date, time and timezone)
668
+ # @option opts [String] :booking_status booking status (possible values: BOOKED, IN_PROGRESS)
669
+ # @option opts [String] :number number of the related object
670
+ # @return [Array<(ResultListInventoryList, Fixnum, Hash)>] ResultListInventoryList data, response status code and response headers
671
+ def get_inventory_inventory_lists_with_http_info(korona_account_id, inventory_id, opts = {})
672
+ if @api_client.config.debugging
673
+ @api_client.config.logger.debug 'Calling API: InventoriesApi.get_inventory_inventory_lists ...'
674
+ end
675
+ # verify the required parameter 'korona_account_id' is set
676
+ if @api_client.config.client_side_validation && korona_account_id.nil?
677
+ fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling InventoriesApi.get_inventory_inventory_lists"
678
+ end
679
+ # verify the required parameter 'inventory_id' is set
680
+ if @api_client.config.client_side_validation && inventory_id.nil?
681
+ fail ArgumentError, "Missing the required parameter 'inventory_id' when calling InventoriesApi.get_inventory_inventory_lists"
682
+ end
683
+ if @api_client.config.client_side_validation && opts[:'booking_status'] && !['BOOKED', 'IN_PROGRESS'].include?(opts[:'booking_status'])
684
+ fail ArgumentError, 'invalid value for "booking_status", must be one of BOOKED, IN_PROGRESS'
685
+ end
686
+ # resource path
687
+ local_var_path = '/accounts/{koronaAccountId}/inventories/{inventoryId}/inventoryLists'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'inventoryId' + '}', inventory_id.to_s)
688
+
689
+ # query parameters
690
+ query_params = {}
691
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
692
+ query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
693
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
694
+ query_params[:'revision'] = opts[:'revision'] if !opts[:'revision'].nil?
695
+ query_params[:'includeDeleted'] = opts[:'include_deleted'] if !opts[:'include_deleted'].nil?
696
+ query_params[:'minCreateTime'] = opts[:'min_create_time'] if !opts[:'min_create_time'].nil?
697
+ query_params[:'maxCreateTime'] = opts[:'max_create_time'] if !opts[:'max_create_time'].nil?
698
+ query_params[:'minBookingTime'] = opts[:'min_booking_time'] if !opts[:'min_booking_time'].nil?
699
+ query_params[:'maxBookingTime'] = opts[:'max_booking_time'] if !opts[:'max_booking_time'].nil?
700
+ query_params[:'bookingStatus'] = opts[:'booking_status'] if !opts[:'booking_status'].nil?
701
+ query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
702
+
703
+ # header parameters
704
+ header_params = {}
705
+ # HTTP header 'Accept' (if needed)
706
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
707
+ # HTTP header 'Content-Type'
708
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
709
+
710
+ # form parameters
711
+ form_params = {}
712
+
713
+ # http body (model)
714
+ post_body = nil
715
+ auth_names = ['basicAuth']
716
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
717
+ :header_params => header_params,
718
+ :query_params => query_params,
719
+ :form_params => form_params,
720
+ :body => post_body,
721
+ :auth_names => auth_names,
722
+ :return_type => 'ResultListInventoryList')
723
+ if @api_client.config.debugging
724
+ @api_client.config.logger.debug "API called: InventoriesApi#get_inventory_inventory_lists\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
725
+ end
726
+ return data, status_code, headers
727
+ end
728
+ # updates the single inventory
729
+ #
730
+ # @param korona_account_id account id of the KORONA.cloud account
731
+ # @param inventory_id id of the related object (important: id should match the uuid-format)
732
+ # @param body the properties to update of the inventory
733
+ # @param [Hash] opts the optional parameters
734
+ # @return [nil]
735
+ def update_inventory(korona_account_id, inventory_id, body, opts = {})
736
+ update_inventory_with_http_info(korona_account_id, inventory_id, body, opts)
737
+ nil
738
+ end
739
+
740
+ # updates the single inventory
741
+ #
742
+ # @param korona_account_id account id of the KORONA.cloud account
743
+ # @param inventory_id id of the related object (important: id should match the uuid-format)
744
+ # @param body the properties to update of the inventory
745
+ # @param [Hash] opts the optional parameters
746
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
747
+ def update_inventory_with_http_info(korona_account_id, inventory_id, body, opts = {})
748
+ if @api_client.config.debugging
749
+ @api_client.config.logger.debug 'Calling API: InventoriesApi.update_inventory ...'
750
+ end
751
+ # verify the required parameter 'korona_account_id' is set
752
+ if @api_client.config.client_side_validation && korona_account_id.nil?
753
+ fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling InventoriesApi.update_inventory"
754
+ end
755
+ # verify the required parameter 'inventory_id' is set
756
+ if @api_client.config.client_side_validation && inventory_id.nil?
757
+ fail ArgumentError, "Missing the required parameter 'inventory_id' when calling InventoriesApi.update_inventory"
758
+ end
759
+ # verify the required parameter 'body' is set
760
+ if @api_client.config.client_side_validation && body.nil?
761
+ fail ArgumentError, "Missing the required parameter 'body' when calling InventoriesApi.update_inventory"
762
+ end
763
+ # resource path
764
+ local_var_path = '/accounts/{koronaAccountId}/inventories/{inventoryId}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'inventoryId' + '}', inventory_id.to_s)
765
+
766
+ # query parameters
767
+ query_params = {}
768
+
769
+ # header parameters
770
+ header_params = {}
771
+ # HTTP header 'Accept' (if needed)
772
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
773
+ # HTTP header 'Content-Type'
774
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
775
+
776
+ # form parameters
777
+ form_params = {}
778
+
779
+ # http body (model)
780
+ post_body = @api_client.object_to_http_body(body)
781
+ auth_names = ['basicAuth']
782
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
783
+ :header_params => header_params,
784
+ :query_params => query_params,
785
+ :form_params => form_params,
786
+ :body => post_body,
787
+ :auth_names => auth_names)
788
+ if @api_client.config.debugging
789
+ @api_client.config.logger.debug "API called: InventoriesApi#update_inventory\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
790
+ end
791
+ return data, status_code, headers
792
+ end
793
+ # updates the single inventory list
794
+ #
795
+ # @param korona_account_id account id of the KORONA.cloud account
796
+ # @param inventory_id id of the related object (important: id should match the uuid-format)
797
+ # @param inventory_list_id id of the related object (important: id should match the uuid-format)
798
+ # @param body data to update
799
+ # @param [Hash] opts the optional parameters
800
+ # @return [nil]
801
+ def update_inventory_inventory_list(korona_account_id, inventory_id, inventory_list_id, body, opts = {})
802
+ update_inventory_inventory_list_with_http_info(korona_account_id, inventory_id, inventory_list_id, body, opts)
803
+ nil
804
+ end
805
+
806
+ # updates the single inventory list
807
+ #
808
+ # @param korona_account_id account id of the KORONA.cloud account
809
+ # @param inventory_id id of the related object (important: id should match the uuid-format)
810
+ # @param inventory_list_id id of the related object (important: id should match the uuid-format)
811
+ # @param body data to update
812
+ # @param [Hash] opts the optional parameters
813
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
814
+ def update_inventory_inventory_list_with_http_info(korona_account_id, inventory_id, inventory_list_id, body, opts = {})
815
+ if @api_client.config.debugging
816
+ @api_client.config.logger.debug 'Calling API: InventoriesApi.update_inventory_inventory_list ...'
817
+ end
818
+ # verify the required parameter 'korona_account_id' is set
819
+ if @api_client.config.client_side_validation && korona_account_id.nil?
820
+ fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling InventoriesApi.update_inventory_inventory_list"
821
+ end
822
+ # verify the required parameter 'inventory_id' is set
823
+ if @api_client.config.client_side_validation && inventory_id.nil?
824
+ fail ArgumentError, "Missing the required parameter 'inventory_id' when calling InventoriesApi.update_inventory_inventory_list"
825
+ end
826
+ # verify the required parameter 'inventory_list_id' is set
827
+ if @api_client.config.client_side_validation && inventory_list_id.nil?
828
+ fail ArgumentError, "Missing the required parameter 'inventory_list_id' when calling InventoriesApi.update_inventory_inventory_list"
829
+ end
830
+ # verify the required parameter 'body' is set
831
+ if @api_client.config.client_side_validation && body.nil?
832
+ fail ArgumentError, "Missing the required parameter 'body' when calling InventoriesApi.update_inventory_inventory_list"
833
+ end
834
+ # resource path
835
+ local_var_path = '/accounts/{koronaAccountId}/inventories/{inventoryId}/inventoryLists/{inventoryListId}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'inventoryId' + '}', inventory_id.to_s).sub('{' + 'inventoryListId' + '}', inventory_list_id.to_s)
836
+
837
+ # query parameters
838
+ query_params = {}
839
+
840
+ # header parameters
841
+ header_params = {}
842
+ # HTTP header 'Accept' (if needed)
843
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
844
+ # HTTP header 'Content-Type'
845
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
846
+
847
+ # form parameters
848
+ form_params = {}
849
+
850
+ # http body (model)
851
+ post_body = @api_client.object_to_http_body(body)
852
+ auth_names = ['basicAuth']
853
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
854
+ :header_params => header_params,
855
+ :query_params => query_params,
856
+ :form_params => form_params,
857
+ :body => post_body,
858
+ :auth_names => auth_names)
859
+ if @api_client.config.debugging
860
+ @api_client.config.logger.debug "API called: InventoriesApi#update_inventory_inventory_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
861
+ end
862
+ return data, status_code, headers
863
+ end
864
+ # updates the single inventory list item
865
+ #
866
+ # @param korona_account_id account id of the KORONA.cloud account
867
+ # @param inventory_id id of the related object (important: id should match the uuid-format)
868
+ # @param inventory_list_id id of the related object (important: id should match the uuid-format)
869
+ # @param product_id id of the related object (important: id should match the uuid-format)
870
+ # @param body data to update
871
+ # @param [Hash] opts the optional parameters
872
+ # @return [nil]
873
+ def update_inventory_inventory_list_item(korona_account_id, inventory_id, inventory_list_id, product_id, body, opts = {})
874
+ update_inventory_inventory_list_item_with_http_info(korona_account_id, inventory_id, inventory_list_id, product_id, body, opts)
875
+ nil
876
+ end
877
+
878
+ # updates the single inventory list item
879
+ #
880
+ # @param korona_account_id account id of the KORONA.cloud account
881
+ # @param inventory_id id of the related object (important: id should match the uuid-format)
882
+ # @param inventory_list_id id of the related object (important: id should match the uuid-format)
883
+ # @param product_id id of the related object (important: id should match the uuid-format)
884
+ # @param body data to update
885
+ # @param [Hash] opts the optional parameters
886
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
887
+ def update_inventory_inventory_list_item_with_http_info(korona_account_id, inventory_id, inventory_list_id, product_id, body, opts = {})
888
+ if @api_client.config.debugging
889
+ @api_client.config.logger.debug 'Calling API: InventoriesApi.update_inventory_inventory_list_item ...'
890
+ end
891
+ # verify the required parameter 'korona_account_id' is set
892
+ if @api_client.config.client_side_validation && korona_account_id.nil?
893
+ fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling InventoriesApi.update_inventory_inventory_list_item"
894
+ end
895
+ # verify the required parameter 'inventory_id' is set
896
+ if @api_client.config.client_side_validation && inventory_id.nil?
897
+ fail ArgumentError, "Missing the required parameter 'inventory_id' when calling InventoriesApi.update_inventory_inventory_list_item"
898
+ end
899
+ # verify the required parameter 'inventory_list_id' is set
900
+ if @api_client.config.client_side_validation && inventory_list_id.nil?
901
+ fail ArgumentError, "Missing the required parameter 'inventory_list_id' when calling InventoriesApi.update_inventory_inventory_list_item"
902
+ end
903
+ # verify the required parameter 'product_id' is set
904
+ if @api_client.config.client_side_validation && product_id.nil?
905
+ fail ArgumentError, "Missing the required parameter 'product_id' when calling InventoriesApi.update_inventory_inventory_list_item"
906
+ end
907
+ # verify the required parameter 'body' is set
908
+ if @api_client.config.client_side_validation && body.nil?
909
+ fail ArgumentError, "Missing the required parameter 'body' when calling InventoriesApi.update_inventory_inventory_list_item"
910
+ end
911
+ # resource path
912
+ local_var_path = '/accounts/{koronaAccountId}/inventories/{inventoryId}/inventoryLists/{inventoryListId}/items/{productId}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'inventoryId' + '}', inventory_id.to_s).sub('{' + 'inventoryListId' + '}', inventory_list_id.to_s).sub('{' + 'productId' + '}', product_id.to_s)
913
+
914
+ # query parameters
915
+ query_params = {}
916
+
917
+ # header parameters
918
+ header_params = {}
919
+ # HTTP header 'Accept' (if needed)
920
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
921
+ # HTTP header 'Content-Type'
922
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
923
+
924
+ # form parameters
925
+ form_params = {}
926
+
927
+ # http body (model)
928
+ post_body = @api_client.object_to_http_body(body)
929
+ auth_names = ['basicAuth']
930
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
931
+ :header_params => header_params,
932
+ :query_params => query_params,
933
+ :form_params => form_params,
934
+ :body => post_body,
935
+ :auth_names => auth_names)
936
+ if @api_client.config.debugging
937
+ @api_client.config.logger.debug "API called: InventoriesApi#update_inventory_inventory_list_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
938
+ end
939
+ return data, status_code, headers
940
+ end
941
+ # updates inventory list items (property [product] required))
942
+ #
943
+ # @param korona_account_id account id of the KORONA.cloud account
944
+ # @param inventory_id id of the related object (important: id should match the uuid-format)
945
+ # @param inventory_list_id id of the related object (important: id should match the uuid-format)
946
+ # @param body an array of inventory list items to update
947
+ # @param [Hash] opts the optional parameters
948
+ # @return [Array<AddOrUpdateResult>]
949
+ def update_inventory_inventory_list_items(korona_account_id, inventory_id, inventory_list_id, body, opts = {})
950
+ data, _status_code, _headers = update_inventory_inventory_list_items_with_http_info(korona_account_id, inventory_id, inventory_list_id, body, opts)
951
+ data
952
+ end
953
+
954
+ # updates inventory list items (property [product] required))
955
+ #
956
+ # @param korona_account_id account id of the KORONA.cloud account
957
+ # @param inventory_id id of the related object (important: id should match the uuid-format)
958
+ # @param inventory_list_id id of the related object (important: id should match the uuid-format)
959
+ # @param body an array of inventory list items to update
960
+ # @param [Hash] opts the optional parameters
961
+ # @return [Array<(Array<AddOrUpdateResult>, Fixnum, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers
962
+ def update_inventory_inventory_list_items_with_http_info(korona_account_id, inventory_id, inventory_list_id, body, opts = {})
963
+ if @api_client.config.debugging
964
+ @api_client.config.logger.debug 'Calling API: InventoriesApi.update_inventory_inventory_list_items ...'
965
+ end
966
+ # verify the required parameter 'korona_account_id' is set
967
+ if @api_client.config.client_side_validation && korona_account_id.nil?
968
+ fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling InventoriesApi.update_inventory_inventory_list_items"
969
+ end
970
+ # verify the required parameter 'inventory_id' is set
971
+ if @api_client.config.client_side_validation && inventory_id.nil?
972
+ fail ArgumentError, "Missing the required parameter 'inventory_id' when calling InventoriesApi.update_inventory_inventory_list_items"
973
+ end
974
+ # verify the required parameter 'inventory_list_id' is set
975
+ if @api_client.config.client_side_validation && inventory_list_id.nil?
976
+ fail ArgumentError, "Missing the required parameter 'inventory_list_id' when calling InventoriesApi.update_inventory_inventory_list_items"
977
+ end
978
+ # verify the required parameter 'body' is set
979
+ if @api_client.config.client_side_validation && body.nil?
980
+ fail ArgumentError, "Missing the required parameter 'body' when calling InventoriesApi.update_inventory_inventory_list_items"
981
+ end
982
+ # resource path
983
+ local_var_path = '/accounts/{koronaAccountId}/inventories/{inventoryId}/inventoryLists/{inventoryListId}/items'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'inventoryId' + '}', inventory_id.to_s).sub('{' + 'inventoryListId' + '}', inventory_list_id.to_s)
984
+
985
+ # query parameters
986
+ query_params = {}
987
+
988
+ # header parameters
989
+ header_params = {}
990
+ # HTTP header 'Accept' (if needed)
991
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
992
+ # HTTP header 'Content-Type'
993
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
994
+
995
+ # form parameters
996
+ form_params = {}
997
+
998
+ # http body (model)
999
+ post_body = @api_client.object_to_http_body(body)
1000
+ auth_names = ['basicAuth']
1001
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
1002
+ :header_params => header_params,
1003
+ :query_params => query_params,
1004
+ :form_params => form_params,
1005
+ :body => post_body,
1006
+ :auth_names => auth_names,
1007
+ :return_type => 'Array<AddOrUpdateResult>')
1008
+ if @api_client.config.debugging
1009
+ @api_client.config.logger.debug "API called: InventoriesApi#update_inventory_inventory_list_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1010
+ end
1011
+ return data, status_code, headers
1012
+ end
1013
+ end
1014
+ end