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 KoronaAccountApi
@@ -19,32 +19,31 @@ module KoronaClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
-
23
- # lists the korona account
22
+ # returns the single korona account
24
23
  #
25
- # @param korona_account_id the account id
24
+ # @param korona_account_id account id of the KORONA.cloud account
26
25
  # @param [Hash] opts the optional parameters
27
26
  # @return [KoronaAccount]
28
27
  def get_korona_account(korona_account_id, opts = {})
29
28
  data, _status_code, _headers = get_korona_account_with_http_info(korona_account_id, opts)
30
- return data
29
+ data
31
30
  end
32
31
 
33
- # lists the korona account
32
+ # returns the single korona account
34
33
  #
35
- # @param korona_account_id the account id
34
+ # @param korona_account_id account id of the KORONA.cloud account
36
35
  # @param [Hash] opts the optional parameters
37
36
  # @return [Array<(KoronaAccount, Fixnum, Hash)>] KoronaAccount data, response status code and response headers
38
37
  def get_korona_account_with_http_info(korona_account_id, opts = {})
39
38
  if @api_client.config.debugging
40
- @api_client.config.logger.debug "Calling API: KoronaAccountApi.get_korona_account ..."
39
+ @api_client.config.logger.debug 'Calling API: KoronaAccountApi.get_korona_account ...'
41
40
  end
42
41
  # verify the required parameter 'korona_account_id' is set
43
42
  if @api_client.config.client_side_validation && korona_account_id.nil?
44
43
  fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling KoronaAccountApi.get_korona_account"
45
44
  end
46
45
  # resource path
47
- local_var_path = "/accounts/{koronaAccountId}".sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)
46
+ local_var_path = '/accounts/{koronaAccountId}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)
48
47
 
49
48
  # query parameters
50
49
  query_params = {}
@@ -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 OrganizationalUnitsApi
@@ -19,44 +19,43 @@ module KoronaClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
-
23
22
  # adds a batch of new day ratings
24
23
  #
25
- # @param korona_account_id the account id
26
- # @param organizational_unit_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)
27
- # @param body a array of new day ratings
24
+ # @param korona_account_id account id of the KORONA.cloud account
25
+ # @param organizational_unit_id id of the related object (important: id should match the uuid-format)
26
+ # @param body an array of new day ratings
28
27
  # @param [Hash] opts the optional parameters
29
28
  # @return [Array<AddOrUpdateResult>]
30
- def add_organizational_unit_day_ratings(korona_account_id, organizational_unit_id_or_number, body, opts = {})
31
- data, _status_code, _headers = add_organizational_unit_day_ratings_with_http_info(korona_account_id, organizational_unit_id_or_number, body, opts)
32
- return data
29
+ def add_organizational_unit_day_ratings(korona_account_id, organizational_unit_id, body, opts = {})
30
+ data, _status_code, _headers = add_organizational_unit_day_ratings_with_http_info(korona_account_id, organizational_unit_id, body, opts)
31
+ data
33
32
  end
34
33
 
35
34
  # adds a batch of new day ratings
36
35
  #
37
- # @param korona_account_id the account id
38
- # @param organizational_unit_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)
39
- # @param body a array of new day ratings
36
+ # @param korona_account_id account id of the KORONA.cloud account
37
+ # @param organizational_unit_id id of the related object (important: id should match the uuid-format)
38
+ # @param body an array of new day ratings
40
39
  # @param [Hash] opts the optional parameters
41
40
  # @return [Array<(Array<AddOrUpdateResult>, Fixnum, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers
42
- def add_organizational_unit_day_ratings_with_http_info(korona_account_id, organizational_unit_id_or_number, body, opts = {})
41
+ def add_organizational_unit_day_ratings_with_http_info(korona_account_id, organizational_unit_id, body, opts = {})
43
42
  if @api_client.config.debugging
44
- @api_client.config.logger.debug "Calling API: OrganizationalUnitsApi.add_organizational_unit_day_ratings ..."
43
+ @api_client.config.logger.debug 'Calling API: OrganizationalUnitsApi.add_organizational_unit_day_ratings ...'
45
44
  end
46
45
  # verify the required parameter 'korona_account_id' is set
47
46
  if @api_client.config.client_side_validation && korona_account_id.nil?
48
47
  fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling OrganizationalUnitsApi.add_organizational_unit_day_ratings"
49
48
  end
50
- # verify the required parameter 'organizational_unit_id_or_number' is set
51
- if @api_client.config.client_side_validation && organizational_unit_id_or_number.nil?
52
- fail ArgumentError, "Missing the required parameter 'organizational_unit_id_or_number' when calling OrganizationalUnitsApi.add_organizational_unit_day_ratings"
49
+ # verify the required parameter 'organizational_unit_id' is set
50
+ if @api_client.config.client_side_validation && organizational_unit_id.nil?
51
+ fail ArgumentError, "Missing the required parameter 'organizational_unit_id' when calling OrganizationalUnitsApi.add_organizational_unit_day_ratings"
53
52
  end
54
53
  # verify the required parameter 'body' is set
55
54
  if @api_client.config.client_side_validation && body.nil?
56
55
  fail ArgumentError, "Missing the required parameter 'body' when calling OrganizationalUnitsApi.add_organizational_unit_day_ratings"
57
56
  end
58
57
  # resource path
59
- local_var_path = "/accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitIdOrNumber}/dayRatings".sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'organizationalUnitIdOrNumber' + '}', organizational_unit_id_or_number.to_s)
58
+ local_var_path = '/accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitId}/dayRatings'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'organizationalUnitId' + '}', organizational_unit_id.to_s)
60
59
 
61
60
  # query parameters
62
61
  query_params = {}
@@ -86,44 +85,43 @@ module KoronaClient
86
85
  end
87
86
  return data, status_code, headers
88
87
  end
89
-
90
- # deletes the day rating by its id or date
88
+ # deletes the single day rating by its id or date
91
89
  #
92
- # @param korona_account_id the account id
93
- # @param organizational_unit_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)
90
+ # @param korona_account_id account id of the KORONA.cloud account
91
+ # @param organizational_unit_id id of the related object (important: id should match the uuid-format)
94
92
  # @param day_rating_id_or_date the id or date (YYYY-MM-DD) of the day rating
95
93
  # @param [Hash] opts the optional parameters
96
94
  # @return [nil]
97
- def delete_organizational_unit_day_rating(korona_account_id, organizational_unit_id_or_number, day_rating_id_or_date, opts = {})
98
- delete_organizational_unit_day_rating_with_http_info(korona_account_id, organizational_unit_id_or_number, day_rating_id_or_date, opts)
99
- return nil
95
+ def delete_organizational_unit_day_rating(korona_account_id, organizational_unit_id, day_rating_id_or_date, opts = {})
96
+ delete_organizational_unit_day_rating_with_http_info(korona_account_id, organizational_unit_id, day_rating_id_or_date, opts)
97
+ nil
100
98
  end
101
99
 
102
- # deletes the day rating by its id or date
100
+ # deletes the single day rating by its id or date
103
101
  #
104
- # @param korona_account_id the account id
105
- # @param organizational_unit_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)
102
+ # @param korona_account_id account id of the KORONA.cloud account
103
+ # @param organizational_unit_id id of the related object (important: id should match the uuid-format)
106
104
  # @param day_rating_id_or_date the id or date (YYYY-MM-DD) of the day rating
107
105
  # @param [Hash] opts the optional parameters
108
106
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
109
- def delete_organizational_unit_day_rating_with_http_info(korona_account_id, organizational_unit_id_or_number, day_rating_id_or_date, opts = {})
107
+ def delete_organizational_unit_day_rating_with_http_info(korona_account_id, organizational_unit_id, day_rating_id_or_date, opts = {})
110
108
  if @api_client.config.debugging
111
- @api_client.config.logger.debug "Calling API: OrganizationalUnitsApi.delete_organizational_unit_day_rating ..."
109
+ @api_client.config.logger.debug 'Calling API: OrganizationalUnitsApi.delete_organizational_unit_day_rating ...'
112
110
  end
113
111
  # verify the required parameter 'korona_account_id' is set
114
112
  if @api_client.config.client_side_validation && korona_account_id.nil?
115
113
  fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling OrganizationalUnitsApi.delete_organizational_unit_day_rating"
116
114
  end
117
- # verify the required parameter 'organizational_unit_id_or_number' is set
118
- if @api_client.config.client_side_validation && organizational_unit_id_or_number.nil?
119
- fail ArgumentError, "Missing the required parameter 'organizational_unit_id_or_number' when calling OrganizationalUnitsApi.delete_organizational_unit_day_rating"
115
+ # verify the required parameter 'organizational_unit_id' is set
116
+ if @api_client.config.client_side_validation && organizational_unit_id.nil?
117
+ fail ArgumentError, "Missing the required parameter 'organizational_unit_id' when calling OrganizationalUnitsApi.delete_organizational_unit_day_rating"
120
118
  end
121
119
  # verify the required parameter 'day_rating_id_or_date' is set
122
120
  if @api_client.config.client_side_validation && day_rating_id_or_date.nil?
123
121
  fail ArgumentError, "Missing the required parameter 'day_rating_id_or_date' when calling OrganizationalUnitsApi.delete_organizational_unit_day_rating"
124
122
  end
125
123
  # resource path
126
- local_var_path = "/accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitIdOrNumber}/dayRatings/{dayRatingIdOrDate}".sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'organizationalUnitIdOrNumber' + '}', organizational_unit_id_or_number.to_s).sub('{' + 'dayRatingIdOrDate' + '}', day_rating_id_or_date.to_s)
124
+ local_var_path = '/accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitId}/dayRatings/{dayRatingIdOrDate}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'organizationalUnitId' + '}', organizational_unit_id.to_s).sub('{' + 'dayRatingIdOrDate' + '}', day_rating_id_or_date.to_s)
127
125
 
128
126
  # query parameters
129
127
  query_params = {}
@@ -152,38 +150,37 @@ module KoronaClient
152
150
  end
153
151
  return data, status_code, headers
154
152
  end
155
-
156
- # lists the organizational unit
153
+ # returns the single organizational unit
157
154
  #
158
- # @param korona_account_id the account id
159
- # @param organizational_unit_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)
155
+ # @param korona_account_id account id of the KORONA.cloud account
156
+ # @param organizational_unit_id id of the related object (important: id should match the uuid-format)
160
157
  # @param [Hash] opts the optional parameters
161
158
  # @return [OrganizationalUnit]
162
- def get_organizational_unit(korona_account_id, organizational_unit_id_or_number, opts = {})
163
- data, _status_code, _headers = get_organizational_unit_with_http_info(korona_account_id, organizational_unit_id_or_number, opts)
164
- return data
159
+ def get_organizational_unit(korona_account_id, organizational_unit_id, opts = {})
160
+ data, _status_code, _headers = get_organizational_unit_with_http_info(korona_account_id, organizational_unit_id, opts)
161
+ data
165
162
  end
166
163
 
167
- # lists the organizational unit
164
+ # returns the single organizational unit
168
165
  #
169
- # @param korona_account_id the account id
170
- # @param organizational_unit_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)
166
+ # @param korona_account_id account id of the KORONA.cloud account
167
+ # @param organizational_unit_id id of the related object (important: id should match the uuid-format)
171
168
  # @param [Hash] opts the optional parameters
172
169
  # @return [Array<(OrganizationalUnit, Fixnum, Hash)>] OrganizationalUnit data, response status code and response headers
173
- def get_organizational_unit_with_http_info(korona_account_id, organizational_unit_id_or_number, opts = {})
170
+ def get_organizational_unit_with_http_info(korona_account_id, organizational_unit_id, opts = {})
174
171
  if @api_client.config.debugging
175
- @api_client.config.logger.debug "Calling API: OrganizationalUnitsApi.get_organizational_unit ..."
172
+ @api_client.config.logger.debug 'Calling API: OrganizationalUnitsApi.get_organizational_unit ...'
176
173
  end
177
174
  # verify the required parameter 'korona_account_id' is set
178
175
  if @api_client.config.client_side_validation && korona_account_id.nil?
179
176
  fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling OrganizationalUnitsApi.get_organizational_unit"
180
177
  end
181
- # verify the required parameter 'organizational_unit_id_or_number' is set
182
- if @api_client.config.client_side_validation && organizational_unit_id_or_number.nil?
183
- fail ArgumentError, "Missing the required parameter 'organizational_unit_id_or_number' when calling OrganizationalUnitsApi.get_organizational_unit"
178
+ # verify the required parameter 'organizational_unit_id' is set
179
+ if @api_client.config.client_side_validation && organizational_unit_id.nil?
180
+ fail ArgumentError, "Missing the required parameter 'organizational_unit_id' when calling OrganizationalUnitsApi.get_organizational_unit"
184
181
  end
185
182
  # resource path
186
- local_var_path = "/accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitIdOrNumber}".sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'organizationalUnitIdOrNumber' + '}', organizational_unit_id_or_number.to_s)
183
+ local_var_path = '/accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitId}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'organizationalUnitId' + '}', organizational_unit_id.to_s)
187
184
 
188
185
  # query parameters
189
186
  query_params = {}
@@ -213,44 +210,43 @@ module KoronaClient
213
210
  end
214
211
  return data, status_code, headers
215
212
  end
216
-
217
- # lists the day rating by its id or date
213
+ # returns the single day rating by its id or date
218
214
  #
219
- # @param korona_account_id the account id
220
- # @param organizational_unit_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)
215
+ # @param korona_account_id account id of the KORONA.cloud account
216
+ # @param organizational_unit_id id of the related object (important: id should match the uuid-format)
221
217
  # @param day_rating_id_or_date the id or date (YYYY-MM-DD) of the day rating
222
218
  # @param [Hash] opts the optional parameters
223
219
  # @return [DayRating]
224
- def get_organizational_unit_day_rating(korona_account_id, organizational_unit_id_or_number, day_rating_id_or_date, opts = {})
225
- data, _status_code, _headers = get_organizational_unit_day_rating_with_http_info(korona_account_id, organizational_unit_id_or_number, day_rating_id_or_date, opts)
226
- return data
220
+ def get_organizational_unit_day_rating(korona_account_id, organizational_unit_id, day_rating_id_or_date, opts = {})
221
+ data, _status_code, _headers = get_organizational_unit_day_rating_with_http_info(korona_account_id, organizational_unit_id, day_rating_id_or_date, opts)
222
+ data
227
223
  end
228
224
 
229
- # lists the day rating by its id or date
225
+ # returns the single day rating by its id or date
230
226
  #
231
- # @param korona_account_id the account id
232
- # @param organizational_unit_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)
227
+ # @param korona_account_id account id of the KORONA.cloud account
228
+ # @param organizational_unit_id id of the related object (important: id should match the uuid-format)
233
229
  # @param day_rating_id_or_date the id or date (YYYY-MM-DD) of the day rating
234
230
  # @param [Hash] opts the optional parameters
235
231
  # @return [Array<(DayRating, Fixnum, Hash)>] DayRating data, response status code and response headers
236
- def get_organizational_unit_day_rating_with_http_info(korona_account_id, organizational_unit_id_or_number, day_rating_id_or_date, opts = {})
232
+ def get_organizational_unit_day_rating_with_http_info(korona_account_id, organizational_unit_id, day_rating_id_or_date, opts = {})
237
233
  if @api_client.config.debugging
238
- @api_client.config.logger.debug "Calling API: OrganizationalUnitsApi.get_organizational_unit_day_rating ..."
234
+ @api_client.config.logger.debug 'Calling API: OrganizationalUnitsApi.get_organizational_unit_day_rating ...'
239
235
  end
240
236
  # verify the required parameter 'korona_account_id' is set
241
237
  if @api_client.config.client_side_validation && korona_account_id.nil?
242
238
  fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling OrganizationalUnitsApi.get_organizational_unit_day_rating"
243
239
  end
244
- # verify the required parameter 'organizational_unit_id_or_number' is set
245
- if @api_client.config.client_side_validation && organizational_unit_id_or_number.nil?
246
- fail ArgumentError, "Missing the required parameter 'organizational_unit_id_or_number' when calling OrganizationalUnitsApi.get_organizational_unit_day_rating"
240
+ # verify the required parameter 'organizational_unit_id' is set
241
+ if @api_client.config.client_side_validation && organizational_unit_id.nil?
242
+ fail ArgumentError, "Missing the required parameter 'organizational_unit_id' when calling OrganizationalUnitsApi.get_organizational_unit_day_rating"
247
243
  end
248
244
  # verify the required parameter 'day_rating_id_or_date' is set
249
245
  if @api_client.config.client_side_validation && day_rating_id_or_date.nil?
250
246
  fail ArgumentError, "Missing the required parameter 'day_rating_id_or_date' when calling OrganizationalUnitsApi.get_organizational_unit_day_rating"
251
247
  end
252
248
  # resource path
253
- local_var_path = "/accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitIdOrNumber}/dayRatings/{dayRatingIdOrDate}".sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'organizationalUnitIdOrNumber' + '}', organizational_unit_id_or_number.to_s).sub('{' + 'dayRatingIdOrDate' + '}', day_rating_id_or_date.to_s)
249
+ local_var_path = '/accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitId}/dayRatings/{dayRatingIdOrDate}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'organizationalUnitId' + '}', organizational_unit_id.to_s).sub('{' + 'dayRatingIdOrDate' + '}', day_rating_id_or_date.to_s)
254
250
 
255
251
  # query parameters
256
252
  query_params = {}
@@ -280,44 +276,43 @@ module KoronaClient
280
276
  end
281
277
  return data, status_code, headers
282
278
  end
283
-
284
279
  # lists all organizational unit related day ratings
285
280
  #
286
- # @param korona_account_id the account id
287
- # @param organizational_unit_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)
281
+ # @param korona_account_id account id of the KORONA.cloud account
282
+ # @param organizational_unit_id id of the related object (important: id should match the uuid-format)
288
283
  # @param [Hash] opts the optional parameters
289
284
  # @option opts [Integer] :page number of the page to fetch
290
285
  # @option opts [Integer] :size amount of objects to return per page
291
286
  # @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
292
287
  # @return [ResultListDayRating]
293
- def get_organizational_unit_day_ratings(korona_account_id, organizational_unit_id_or_number, opts = {})
294
- data, _status_code, _headers = get_organizational_unit_day_ratings_with_http_info(korona_account_id, organizational_unit_id_or_number, opts)
295
- return data
288
+ def get_organizational_unit_day_ratings(korona_account_id, organizational_unit_id, opts = {})
289
+ data, _status_code, _headers = get_organizational_unit_day_ratings_with_http_info(korona_account_id, organizational_unit_id, opts)
290
+ data
296
291
  end
297
292
 
298
293
  # lists all organizational unit related day ratings
299
294
  #
300
- # @param korona_account_id the account id
301
- # @param organizational_unit_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)
295
+ # @param korona_account_id account id of the KORONA.cloud account
296
+ # @param organizational_unit_id id of the related object (important: id should match the uuid-format)
302
297
  # @param [Hash] opts the optional parameters
303
298
  # @option opts [Integer] :page number of the page to fetch
304
299
  # @option opts [Integer] :size amount of objects to return per page
305
300
  # @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
306
301
  # @return [Array<(ResultListDayRating, Fixnum, Hash)>] ResultListDayRating data, response status code and response headers
307
- def get_organizational_unit_day_ratings_with_http_info(korona_account_id, organizational_unit_id_or_number, opts = {})
302
+ def get_organizational_unit_day_ratings_with_http_info(korona_account_id, organizational_unit_id, opts = {})
308
303
  if @api_client.config.debugging
309
- @api_client.config.logger.debug "Calling API: OrganizationalUnitsApi.get_organizational_unit_day_ratings ..."
304
+ @api_client.config.logger.debug 'Calling API: OrganizationalUnitsApi.get_organizational_unit_day_ratings ...'
310
305
  end
311
306
  # verify the required parameter 'korona_account_id' is set
312
307
  if @api_client.config.client_side_validation && korona_account_id.nil?
313
308
  fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling OrganizationalUnitsApi.get_organizational_unit_day_ratings"
314
309
  end
315
- # verify the required parameter 'organizational_unit_id_or_number' is set
316
- if @api_client.config.client_side_validation && organizational_unit_id_or_number.nil?
317
- fail ArgumentError, "Missing the required parameter 'organizational_unit_id_or_number' when calling OrganizationalUnitsApi.get_organizational_unit_day_ratings"
310
+ # verify the required parameter 'organizational_unit_id' is set
311
+ if @api_client.config.client_side_validation && organizational_unit_id.nil?
312
+ fail ArgumentError, "Missing the required parameter 'organizational_unit_id' when calling OrganizationalUnitsApi.get_organizational_unit_day_ratings"
318
313
  end
319
314
  # resource path
320
- local_var_path = "/accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitIdOrNumber}/dayRatings".sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'organizationalUnitIdOrNumber' + '}', organizational_unit_id_or_number.to_s)
315
+ local_var_path = '/accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitId}/dayRatings'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'organizationalUnitId' + '}', organizational_unit_id.to_s)
321
316
 
322
317
  # query parameters
323
318
  query_params = {}
@@ -350,11 +345,10 @@ module KoronaClient
350
345
  end
351
346
  return data, status_code, headers
352
347
  end
353
-
354
348
  # lists the inventory lists belonging to the organizational unit (KORONA.retail required)
355
349
  #
356
- # @param korona_account_id the account id
357
- # @param organizational_unit_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)
350
+ # @param korona_account_id account id of the KORONA.cloud account
351
+ # @param organizational_unit_id id of the related object (important: id should match the uuid-format)
358
352
  # @param [Hash] opts the optional parameters
359
353
  # @option opts [Integer] :page number of the page to fetch
360
354
  # @option opts [Integer] :size amount of objects to return per page
@@ -367,15 +361,15 @@ module KoronaClient
367
361
  # @option opts [DateTime] :max_booking_time max (inclusive) booking time of the receipt (ISO 8601; date, time and timezone)
368
362
  # @option opts [String] :booking_status booking status (possible values: BOOKED, IN_PROGRESS)
369
363
  # @return [ResultListInventoryList]
370
- def get_organizational_unit_inventory_lists(korona_account_id, organizational_unit_id_or_number, opts = {})
371
- data, _status_code, _headers = get_organizational_unit_inventory_lists_with_http_info(korona_account_id, organizational_unit_id_or_number, opts)
372
- return data
364
+ def get_organizational_unit_inventory_lists(korona_account_id, organizational_unit_id, opts = {})
365
+ data, _status_code, _headers = get_organizational_unit_inventory_lists_with_http_info(korona_account_id, organizational_unit_id, opts)
366
+ data
373
367
  end
374
368
 
375
369
  # lists the inventory lists belonging to the organizational unit (KORONA.retail required)
376
370
  #
377
- # @param korona_account_id the account id
378
- # @param organizational_unit_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)
371
+ # @param korona_account_id account id of the KORONA.cloud account
372
+ # @param organizational_unit_id id of the related object (important: id should match the uuid-format)
379
373
  # @param [Hash] opts the optional parameters
380
374
  # @option opts [Integer] :page number of the page to fetch
381
375
  # @option opts [Integer] :size amount of objects to return per page
@@ -388,23 +382,23 @@ module KoronaClient
388
382
  # @option opts [DateTime] :max_booking_time max (inclusive) booking time of the receipt (ISO 8601; date, time and timezone)
389
383
  # @option opts [String] :booking_status booking status (possible values: BOOKED, IN_PROGRESS)
390
384
  # @return [Array<(ResultListInventoryList, Fixnum, Hash)>] ResultListInventoryList data, response status code and response headers
391
- def get_organizational_unit_inventory_lists_with_http_info(korona_account_id, organizational_unit_id_or_number, opts = {})
385
+ def get_organizational_unit_inventory_lists_with_http_info(korona_account_id, organizational_unit_id, opts = {})
392
386
  if @api_client.config.debugging
393
- @api_client.config.logger.debug "Calling API: OrganizationalUnitsApi.get_organizational_unit_inventory_lists ..."
387
+ @api_client.config.logger.debug 'Calling API: OrganizationalUnitsApi.get_organizational_unit_inventory_lists ...'
394
388
  end
395
389
  # verify the required parameter 'korona_account_id' is set
396
390
  if @api_client.config.client_side_validation && korona_account_id.nil?
397
391
  fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling OrganizationalUnitsApi.get_organizational_unit_inventory_lists"
398
392
  end
399
- # verify the required parameter 'organizational_unit_id_or_number' is set
400
- if @api_client.config.client_side_validation && organizational_unit_id_or_number.nil?
401
- fail ArgumentError, "Missing the required parameter 'organizational_unit_id_or_number' when calling OrganizationalUnitsApi.get_organizational_unit_inventory_lists"
393
+ # verify the required parameter 'organizational_unit_id' is set
394
+ if @api_client.config.client_side_validation && organizational_unit_id.nil?
395
+ fail ArgumentError, "Missing the required parameter 'organizational_unit_id' when calling OrganizationalUnitsApi.get_organizational_unit_inventory_lists"
402
396
  end
403
397
  if @api_client.config.client_side_validation && opts[:'booking_status'] && !['BOOKED', 'IN_PROGRESS'].include?(opts[:'booking_status'])
404
398
  fail ArgumentError, 'invalid value for "booking_status", must be one of BOOKED, IN_PROGRESS'
405
399
  end
406
400
  # resource path
407
- local_var_path = "/accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitIdOrNumber}/inventoryLists".sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'organizationalUnitIdOrNumber' + '}', organizational_unit_id_or_number.to_s)
401
+ local_var_path = '/accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitId}/inventoryLists'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'organizationalUnitId' + '}', organizational_unit_id.to_s)
408
402
 
409
403
  # query parameters
410
404
  query_params = {}
@@ -444,46 +438,45 @@ module KoronaClient
444
438
  end
445
439
  return data, status_code, headers
446
440
  end
447
-
448
441
  # lists the product stocks of the organizational unit, in case it contains a warehouse (KORONA.retail required)
449
442
  #
450
- # @param korona_account_id the account id
451
- # @param organizational_unit_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)
443
+ # @param korona_account_id account id of the KORONA.cloud account
444
+ # @param organizational_unit_id id of the related object (important: id should match the uuid-format)
452
445
  # @param [Hash] opts the optional parameters
453
446
  # @option opts [Integer] :page number of the page to fetch
454
447
  # @option opts [Integer] :size amount of objects to return per page
455
448
  # @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
456
449
  # @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
457
450
  # @return [ResultListProductStock]
458
- def get_organizational_unit_product_stocks(korona_account_id, organizational_unit_id_or_number, opts = {})
459
- data, _status_code, _headers = get_organizational_unit_product_stocks_with_http_info(korona_account_id, organizational_unit_id_or_number, opts)
460
- return data
451
+ def get_organizational_unit_product_stocks(korona_account_id, organizational_unit_id, opts = {})
452
+ data, _status_code, _headers = get_organizational_unit_product_stocks_with_http_info(korona_account_id, organizational_unit_id, opts)
453
+ data
461
454
  end
462
455
 
463
456
  # lists the product stocks of the organizational unit, in case it contains a warehouse (KORONA.retail required)
464
457
  #
465
- # @param korona_account_id the account id
466
- # @param organizational_unit_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)
458
+ # @param korona_account_id account id of the KORONA.cloud account
459
+ # @param organizational_unit_id id of the related object (important: id should match the uuid-format)
467
460
  # @param [Hash] opts the optional parameters
468
461
  # @option opts [Integer] :page number of the page to fetch
469
462
  # @option opts [Integer] :size amount of objects to return per page
470
463
  # @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
471
464
  # @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
472
465
  # @return [Array<(ResultListProductStock, Fixnum, Hash)>] ResultListProductStock data, response status code and response headers
473
- def get_organizational_unit_product_stocks_with_http_info(korona_account_id, organizational_unit_id_or_number, opts = {})
466
+ def get_organizational_unit_product_stocks_with_http_info(korona_account_id, organizational_unit_id, opts = {})
474
467
  if @api_client.config.debugging
475
- @api_client.config.logger.debug "Calling API: OrganizationalUnitsApi.get_organizational_unit_product_stocks ..."
468
+ @api_client.config.logger.debug 'Calling API: OrganizationalUnitsApi.get_organizational_unit_product_stocks ...'
476
469
  end
477
470
  # verify the required parameter 'korona_account_id' is set
478
471
  if @api_client.config.client_side_validation && korona_account_id.nil?
479
472
  fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling OrganizationalUnitsApi.get_organizational_unit_product_stocks"
480
473
  end
481
- # verify the required parameter 'organizational_unit_id_or_number' is set
482
- if @api_client.config.client_side_validation && organizational_unit_id_or_number.nil?
483
- fail ArgumentError, "Missing the required parameter 'organizational_unit_id_or_number' when calling OrganizationalUnitsApi.get_organizational_unit_product_stocks"
474
+ # verify the required parameter 'organizational_unit_id' is set
475
+ if @api_client.config.client_side_validation && organizational_unit_id.nil?
476
+ fail ArgumentError, "Missing the required parameter 'organizational_unit_id' when calling OrganizationalUnitsApi.get_organizational_unit_product_stocks"
484
477
  end
485
478
  # resource path
486
- local_var_path = "/accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitIdOrNumber}/productStocks".sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'organizationalUnitIdOrNumber' + '}', organizational_unit_id_or_number.to_s)
479
+ local_var_path = '/accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitId}/productStocks'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'organizationalUnitId' + '}', organizational_unit_id.to_s)
487
480
 
488
481
  # query parameters
489
482
  query_params = {}
@@ -517,11 +510,10 @@ module KoronaClient
517
510
  end
518
511
  return data, status_code, headers
519
512
  end
520
-
521
513
  # lists the stock receipts belonging to the organizational unit (KORONA.retail required)
522
514
  #
523
- # @param korona_account_id the account id
524
- # @param organizational_unit_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)
515
+ # @param korona_account_id account id of the KORONA.cloud account
516
+ # @param organizational_unit_id id of the related object (important: id should match the uuid-format)
525
517
  # @param [Hash] opts the optional parameters
526
518
  # @option opts [Integer] :page number of the page to fetch
527
519
  # @option opts [Integer] :size amount of objects to return per page
@@ -534,16 +526,17 @@ module KoronaClient
534
526
  # @option opts [DateTime] :max_booking_time max (inclusive) booking time of the receipt (ISO 8601; date, time and timezone)
535
527
  # @option opts [String] :source_organizational_unit source organizational unit
536
528
  # @option opts [String] :booking_status booking status (possible values: BOOKED, IN_PROGRESS)
529
+ # @option opts [String] :number number of the related object
537
530
  # @return [ResultListStockReceipt]
538
- def get_organizational_unit_stock_receipts(korona_account_id, organizational_unit_id_or_number, opts = {})
539
- data, _status_code, _headers = get_organizational_unit_stock_receipts_with_http_info(korona_account_id, organizational_unit_id_or_number, opts)
540
- return data
531
+ def get_organizational_unit_stock_receipts(korona_account_id, organizational_unit_id, opts = {})
532
+ data, _status_code, _headers = get_organizational_unit_stock_receipts_with_http_info(korona_account_id, organizational_unit_id, opts)
533
+ data
541
534
  end
542
535
 
543
536
  # lists the stock receipts belonging to the organizational unit (KORONA.retail required)
544
537
  #
545
- # @param korona_account_id the account id
546
- # @param organizational_unit_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)
538
+ # @param korona_account_id account id of the KORONA.cloud account
539
+ # @param organizational_unit_id id of the related object (important: id should match the uuid-format)
547
540
  # @param [Hash] opts the optional parameters
548
541
  # @option opts [Integer] :page number of the page to fetch
549
542
  # @option opts [Integer] :size amount of objects to return per page
@@ -556,24 +549,25 @@ module KoronaClient
556
549
  # @option opts [DateTime] :max_booking_time max (inclusive) booking time of the receipt (ISO 8601; date, time and timezone)
557
550
  # @option opts [String] :source_organizational_unit source organizational unit
558
551
  # @option opts [String] :booking_status booking status (possible values: BOOKED, IN_PROGRESS)
552
+ # @option opts [String] :number number of the related object
559
553
  # @return [Array<(ResultListStockReceipt, Fixnum, Hash)>] ResultListStockReceipt data, response status code and response headers
560
- def get_organizational_unit_stock_receipts_with_http_info(korona_account_id, organizational_unit_id_or_number, opts = {})
554
+ def get_organizational_unit_stock_receipts_with_http_info(korona_account_id, organizational_unit_id, opts = {})
561
555
  if @api_client.config.debugging
562
- @api_client.config.logger.debug "Calling API: OrganizationalUnitsApi.get_organizational_unit_stock_receipts ..."
556
+ @api_client.config.logger.debug 'Calling API: OrganizationalUnitsApi.get_organizational_unit_stock_receipts ...'
563
557
  end
564
558
  # verify the required parameter 'korona_account_id' is set
565
559
  if @api_client.config.client_side_validation && korona_account_id.nil?
566
560
  fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling OrganizationalUnitsApi.get_organizational_unit_stock_receipts"
567
561
  end
568
- # verify the required parameter 'organizational_unit_id_or_number' is set
569
- if @api_client.config.client_side_validation && organizational_unit_id_or_number.nil?
570
- fail ArgumentError, "Missing the required parameter 'organizational_unit_id_or_number' when calling OrganizationalUnitsApi.get_organizational_unit_stock_receipts"
562
+ # verify the required parameter 'organizational_unit_id' is set
563
+ if @api_client.config.client_side_validation && organizational_unit_id.nil?
564
+ fail ArgumentError, "Missing the required parameter 'organizational_unit_id' when calling OrganizationalUnitsApi.get_organizational_unit_stock_receipts"
571
565
  end
572
566
  if @api_client.config.client_side_validation && opts[:'booking_status'] && !['BOOKED', 'IN_PROGRESS'].include?(opts[:'booking_status'])
573
567
  fail ArgumentError, 'invalid value for "booking_status", must be one of BOOKED, IN_PROGRESS'
574
568
  end
575
569
  # resource path
576
- local_var_path = "/accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitIdOrNumber}/stockReceipts".sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'organizationalUnitIdOrNumber' + '}', organizational_unit_id_or_number.to_s)
570
+ local_var_path = '/accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitId}/stockReceipts'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'organizationalUnitId' + '}', organizational_unit_id.to_s)
577
571
 
578
572
  # query parameters
579
573
  query_params = {}
@@ -588,6 +582,7 @@ module KoronaClient
588
582
  query_params[:'maxBookingTime'] = opts[:'max_booking_time'] if !opts[:'max_booking_time'].nil?
589
583
  query_params[:'sourceOrganizationalUnit'] = opts[:'source_organizational_unit'] if !opts[:'source_organizational_unit'].nil?
590
584
  query_params[:'bookingStatus'] = opts[:'booking_status'] if !opts[:'booking_status'].nil?
585
+ query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
591
586
 
592
587
  # header parameters
593
588
  header_params = {}
@@ -614,42 +609,43 @@ module KoronaClient
614
609
  end
615
610
  return data, status_code, headers
616
611
  end
617
-
618
612
  # lists all organizational units
619
613
  #
620
- # @param korona_account_id the account id
614
+ # @param korona_account_id account id of the KORONA.cloud account
621
615
  # @param [Hash] opts the optional parameters
622
616
  # @option opts [Integer] :page number of the page to fetch
623
617
  # @option opts [Integer] :size amount of objects to return per page
624
618
  # @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
625
619
  # @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
626
620
  # @option opts [BOOLEAN] :include_deleted indicates deleted objects should be loaded or not (default: false)
621
+ # @option opts [String] :number number of the related object
627
622
  # @return [ResultListOrganizationalUnit]
628
623
  def get_organizational_units(korona_account_id, opts = {})
629
624
  data, _status_code, _headers = get_organizational_units_with_http_info(korona_account_id, opts)
630
- return data
625
+ data
631
626
  end
632
627
 
633
628
  # lists all organizational units
634
629
  #
635
- # @param korona_account_id the account id
630
+ # @param korona_account_id account id of the KORONA.cloud account
636
631
  # @param [Hash] opts the optional parameters
637
632
  # @option opts [Integer] :page number of the page to fetch
638
633
  # @option opts [Integer] :size amount of objects to return per page
639
634
  # @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
640
635
  # @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
641
636
  # @option opts [BOOLEAN] :include_deleted indicates deleted objects should be loaded or not (default: false)
637
+ # @option opts [String] :number number of the related object
642
638
  # @return [Array<(ResultListOrganizationalUnit, Fixnum, Hash)>] ResultListOrganizationalUnit data, response status code and response headers
643
639
  def get_organizational_units_with_http_info(korona_account_id, opts = {})
644
640
  if @api_client.config.debugging
645
- @api_client.config.logger.debug "Calling API: OrganizationalUnitsApi.get_organizational_units ..."
641
+ @api_client.config.logger.debug 'Calling API: OrganizationalUnitsApi.get_organizational_units ...'
646
642
  end
647
643
  # verify the required parameter 'korona_account_id' is set
648
644
  if @api_client.config.client_side_validation && korona_account_id.nil?
649
645
  fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling OrganizationalUnitsApi.get_organizational_units"
650
646
  end
651
647
  # resource path
652
- local_var_path = "/accounts/{koronaAccountId}/organizationalUnits".sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)
648
+ local_var_path = '/accounts/{koronaAccountId}/organizationalUnits'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)
653
649
 
654
650
  # query parameters
655
651
  query_params = {}
@@ -658,6 +654,7 @@ module KoronaClient
658
654
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
659
655
  query_params[:'revision'] = opts[:'revision'] if !opts[:'revision'].nil?
660
656
  query_params[:'includeDeleted'] = opts[:'include_deleted'] if !opts[:'include_deleted'].nil?
657
+ query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
661
658
 
662
659
  # header parameters
663
660
  header_params = {}
@@ -684,39 +681,38 @@ module KoronaClient
684
681
  end
685
682
  return data, status_code, headers
686
683
  end
687
-
688
684
  # updates the day rating by its id or date
689
685
  #
690
- # @param korona_account_id the account id
691
- # @param organizational_unit_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)
686
+ # @param korona_account_id account id of the KORONA.cloud account
687
+ # @param organizational_unit_id id of the related object (important: id should match the uuid-format)
692
688
  # @param day_rating_id_or_date the id or date (YYYY-MM-DD) of the day rating
693
689
  # @param body the properties to update of the day rating
694
690
  # @param [Hash] opts the optional parameters
695
691
  # @return [nil]
696
- def update_organizational_unit_day_rating(korona_account_id, organizational_unit_id_or_number, day_rating_id_or_date, body, opts = {})
697
- update_organizational_unit_day_rating_with_http_info(korona_account_id, organizational_unit_id_or_number, day_rating_id_or_date, body, opts)
698
- return nil
692
+ def update_organizational_unit_day_rating(korona_account_id, organizational_unit_id, day_rating_id_or_date, body, opts = {})
693
+ update_organizational_unit_day_rating_with_http_info(korona_account_id, organizational_unit_id, day_rating_id_or_date, body, opts)
694
+ nil
699
695
  end
700
696
 
701
697
  # updates the day rating by its id or date
702
698
  #
703
- # @param korona_account_id the account id
704
- # @param organizational_unit_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)
699
+ # @param korona_account_id account id of the KORONA.cloud account
700
+ # @param organizational_unit_id id of the related object (important: id should match the uuid-format)
705
701
  # @param day_rating_id_or_date the id or date (YYYY-MM-DD) of the day rating
706
702
  # @param body the properties to update of the day rating
707
703
  # @param [Hash] opts the optional parameters
708
704
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
709
- def update_organizational_unit_day_rating_with_http_info(korona_account_id, organizational_unit_id_or_number, day_rating_id_or_date, body, opts = {})
705
+ def update_organizational_unit_day_rating_with_http_info(korona_account_id, organizational_unit_id, day_rating_id_or_date, body, opts = {})
710
706
  if @api_client.config.debugging
711
- @api_client.config.logger.debug "Calling API: OrganizationalUnitsApi.update_organizational_unit_day_rating ..."
707
+ @api_client.config.logger.debug 'Calling API: OrganizationalUnitsApi.update_organizational_unit_day_rating ...'
712
708
  end
713
709
  # verify the required parameter 'korona_account_id' is set
714
710
  if @api_client.config.client_side_validation && korona_account_id.nil?
715
711
  fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling OrganizationalUnitsApi.update_organizational_unit_day_rating"
716
712
  end
717
- # verify the required parameter 'organizational_unit_id_or_number' is set
718
- if @api_client.config.client_side_validation && organizational_unit_id_or_number.nil?
719
- fail ArgumentError, "Missing the required parameter 'organizational_unit_id_or_number' when calling OrganizationalUnitsApi.update_organizational_unit_day_rating"
713
+ # verify the required parameter 'organizational_unit_id' is set
714
+ if @api_client.config.client_side_validation && organizational_unit_id.nil?
715
+ fail ArgumentError, "Missing the required parameter 'organizational_unit_id' when calling OrganizationalUnitsApi.update_organizational_unit_day_rating"
720
716
  end
721
717
  # verify the required parameter 'day_rating_id_or_date' is set
722
718
  if @api_client.config.client_side_validation && day_rating_id_or_date.nil?
@@ -727,7 +723,7 @@ module KoronaClient
727
723
  fail ArgumentError, "Missing the required parameter 'body' when calling OrganizationalUnitsApi.update_organizational_unit_day_rating"
728
724
  end
729
725
  # resource path
730
- local_var_path = "/accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitIdOrNumber}/dayRatings/{dayRatingIdOrDate}".sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'organizationalUnitIdOrNumber' + '}', organizational_unit_id_or_number.to_s).sub('{' + 'dayRatingIdOrDate' + '}', day_rating_id_or_date.to_s)
726
+ local_var_path = '/accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitId}/dayRatings/{dayRatingIdOrDate}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'organizationalUnitId' + '}', organizational_unit_id.to_s).sub('{' + 'dayRatingIdOrDate' + '}', day_rating_id_or_date.to_s)
731
727
 
732
728
  # query parameters
733
729
  query_params = {}
@@ -756,44 +752,43 @@ module KoronaClient
756
752
  end
757
753
  return data, status_code, headers
758
754
  end
759
-
760
- # updated a batch of new day ratings
755
+ # updates a batch of day ratings
761
756
  #
762
- # @param korona_account_id the account id
763
- # @param organizational_unit_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)
764
- # @param body a array of new day ratings
757
+ # @param korona_account_id account id of the KORONA.cloud account
758
+ # @param organizational_unit_id id of the related object (important: id should match the uuid-format)
759
+ # @param body an array of new day ratings
765
760
  # @param [Hash] opts the optional parameters
766
761
  # @return [Array<AddOrUpdateResult>]
767
- def update_organizational_unit_day_ratings(korona_account_id, organizational_unit_id_or_number, body, opts = {})
768
- data, _status_code, _headers = update_organizational_unit_day_ratings_with_http_info(korona_account_id, organizational_unit_id_or_number, body, opts)
769
- return data
762
+ def update_organizational_unit_day_ratings(korona_account_id, organizational_unit_id, body, opts = {})
763
+ data, _status_code, _headers = update_organizational_unit_day_ratings_with_http_info(korona_account_id, organizational_unit_id, body, opts)
764
+ data
770
765
  end
771
766
 
772
- # updated a batch of new day ratings
767
+ # updates a batch of day ratings
773
768
  #
774
- # @param korona_account_id the account id
775
- # @param organizational_unit_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)
776
- # @param body a array of new day ratings
769
+ # @param korona_account_id account id of the KORONA.cloud account
770
+ # @param organizational_unit_id id of the related object (important: id should match the uuid-format)
771
+ # @param body an array of new day ratings
777
772
  # @param [Hash] opts the optional parameters
778
773
  # @return [Array<(Array<AddOrUpdateResult>, Fixnum, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers
779
- def update_organizational_unit_day_ratings_with_http_info(korona_account_id, organizational_unit_id_or_number, body, opts = {})
774
+ def update_organizational_unit_day_ratings_with_http_info(korona_account_id, organizational_unit_id, body, opts = {})
780
775
  if @api_client.config.debugging
781
- @api_client.config.logger.debug "Calling API: OrganizationalUnitsApi.update_organizational_unit_day_ratings ..."
776
+ @api_client.config.logger.debug 'Calling API: OrganizationalUnitsApi.update_organizational_unit_day_ratings ...'
782
777
  end
783
778
  # verify the required parameter 'korona_account_id' is set
784
779
  if @api_client.config.client_side_validation && korona_account_id.nil?
785
780
  fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling OrganizationalUnitsApi.update_organizational_unit_day_ratings"
786
781
  end
787
- # verify the required parameter 'organizational_unit_id_or_number' is set
788
- if @api_client.config.client_side_validation && organizational_unit_id_or_number.nil?
789
- fail ArgumentError, "Missing the required parameter 'organizational_unit_id_or_number' when calling OrganizationalUnitsApi.update_organizational_unit_day_ratings"
782
+ # verify the required parameter 'organizational_unit_id' is set
783
+ if @api_client.config.client_side_validation && organizational_unit_id.nil?
784
+ fail ArgumentError, "Missing the required parameter 'organizational_unit_id' when calling OrganizationalUnitsApi.update_organizational_unit_day_ratings"
790
785
  end
791
786
  # verify the required parameter 'body' is set
792
787
  if @api_client.config.client_side_validation && body.nil?
793
788
  fail ArgumentError, "Missing the required parameter 'body' when calling OrganizationalUnitsApi.update_organizational_unit_day_ratings"
794
789
  end
795
790
  # resource path
796
- local_var_path = "/accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitIdOrNumber}/dayRatings".sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'organizationalUnitIdOrNumber' + '}', organizational_unit_id_or_number.to_s)
791
+ local_var_path = '/accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitId}/dayRatings'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'organizationalUnitId' + '}', organizational_unit_id.to_s)
797
792
 
798
793
  # query parameters
799
794
  query_params = {}