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.
- checksums.yaml +4 -4
- data/README.md +171 -89
- data/config.json +6 -0
- data/docs/AccountTransaction.md +2 -0
- data/docs/AccountsApi.md +12 -12
- data/docs/AddOrUpdateResult.md +1 -0
- data/docs/AdditionalInfo.md +9 -0
- data/docs/AdditionalReceiptInfoType.md +22 -0
- data/docs/AdditionalReceiptInfoTypesApi.md +133 -0
- data/docs/AssortmentsApi.md +217 -48
- data/docs/Attendance.md +17 -0
- data/docs/Cashier.md +1 -0
- data/docs/CashiersApi.md +15 -13
- data/docs/Category.md +1 -0
- data/docs/CommodityGroupsApi.md +423 -0
- data/docs/CreationTask.md +17 -0
- data/docs/CurrenciesApi.md +15 -13
- data/docs/CustomerGroupsApi.md +15 -13
- data/docs/CustomerOrder.md +2 -2
- data/docs/CustomerOrdersApi.md +52 -46
- data/docs/CustomersApi.md +108 -45
- data/docs/DayTimePeriod.md +9 -0
- data/docs/DeliveryNote.md +22 -0
- data/docs/DeliveryNoteItem.md +14 -0
- data/docs/DeliveryNotesApi.md +316 -0
- data/docs/Deposit.md +12 -0
- data/docs/Discount.md +10 -0
- data/docs/EconomicZonesApi.md +15 -13
- data/docs/EndOfDayStatement.md +1 -1
- data/docs/Event.md +2 -0
- data/docs/ExternalSystemCall.md +20 -0
- data/docs/ExternalSystemCallsApi.md +423 -0
- data/docs/ImagesApi.md +8 -7
- data/docs/InfoTextsApi.md +15 -13
- data/docs/InventoriesApi.md +894 -0
- data/docs/KoronaAccount.md +1 -0
- data/docs/KoronaAccountApi.md +5 -5
- data/docs/MediaUrl.md +8 -0
- data/docs/OrganizationalUnit.md +1 -0
- data/docs/OrganizationalUnitsApi.md +108 -104
- data/docs/PaymentMethod.md +3 -0
- data/docs/PaymentMethodsApi.md +15 -13
- data/docs/PointsOfSaleApi.md +85 -74
- data/docs/Pos.md +5 -3
- data/docs/PriceGroupsApi.md +15 -13
- data/docs/Product.md +2 -0
- data/docs/ProductsApi.md +121 -58
- data/docs/Receipt.md +5 -1
- data/docs/ReceiptItem.md +3 -0
- data/docs/ReceiptsApi.md +20 -14
- data/docs/ResultListAdditionalReceiptInfoType.md +13 -0
- data/docs/ResultListAttendance.md +13 -0
- data/docs/ResultListCreationTask.md +13 -0
- data/docs/ResultListDeliveryNote.md +13 -0
- data/docs/ResultListExternalSystemCall.md +13 -0
- data/docs/ResultListTicket.md +13 -0
- data/docs/ResultListTimeTrackingEntity.md +13 -0
- data/docs/ResultListTimeTrackingEntry.md +13 -0
- data/docs/SalesTaxesApi.md +15 -13
- data/docs/Sector.md +1 -0
- data/docs/SectorRevenueAccountItem.md +9 -0
- data/docs/SectorsApi.md +15 -13
- data/docs/Signature.md +10 -0
- data/docs/StatisticsApi.md +28 -28
- data/docs/StockReceipt.md +1 -0
- data/docs/StockReceiptsApi.md +687 -0
- data/docs/SuppliersApi.md +15 -13
- data/docs/TagsApi.md +303 -13
- data/docs/Ticket.md +14 -0
- data/docs/TicketCreationApi.md +127 -0
- data/docs/TicketPersonalization.md +11 -0
- data/docs/TicketingApi.md +975 -76
- data/docs/TimeTrackingApi.md +388 -0
- data/docs/TimeTrackingEntity.md +13 -0
- data/docs/TimeTrackingEntry.md +14 -0
- data/docs/TotalPeriod.md +9 -0
- data/docs/Validity.md +11 -0
- data/korona_client-1.0.0.gem +0 -0
- data/korona_client.gemspec +7 -8
- data/lib/korona_client.rb +38 -5
- data/lib/korona_client/api/accounts_api.rb +24 -26
- data/lib/korona_client/api/additional_receipt_info_types_api.rb +155 -0
- data/lib/korona_client/api/assortments_api.rb +259 -82
- data/lib/korona_client/api/cashiers_api.rb +27 -26
- data/lib/korona_client/api/commodity_groups_api.rb +462 -0
- data/lib/korona_client/api/currencies_api.rb +27 -26
- data/lib/korona_client/api/customer_groups_api.rb +27 -26
- data/lib/korona_client/api/customer_orders_api.rb +78 -78
- data/lib/korona_client/api/customers_api.rb +137 -77
- data/lib/korona_client/api/delivery_notes_api.rb +354 -0
- data/lib/korona_client/api/economic_zones_api.rb +27 -26
- data/lib/korona_client/api/external_system_calls_api.rb +462 -0
- data/lib/korona_client/api/images_api.rb +16 -16
- data/lib/korona_client/api/info_texts_api.rb +27 -26
- data/lib/korona_client/api/inventories_api.rb +1014 -0
- data/lib/korona_client/api/korona_account_api.rb +11 -12
- data/lib/korona_client/api/organizational_units_api.rb +157 -162
- data/lib/korona_client/api/payment_methods_api.rb +27 -26
- data/lib/korona_client/api/points_of_sale_api.rb +127 -121
- data/lib/korona_client/api/price_groups_api.rb +27 -26
- data/lib/korona_client/api/products_api.rb +154 -95
- data/lib/korona_client/api/receipts_api.rb +27 -20
- data/lib/korona_client/api/sales_taxes_api.rb +27 -26
- data/lib/korona_client/api/sectors_api.rb +27 -26
- data/lib/korona_client/api/statistics_api.rb +32 -36
- data/lib/korona_client/api/stock_receipts_api.rb +769 -0
- data/lib/korona_client/api/suppliers_api.rb +27 -26
- data/lib/korona_client/api/tags_api.rb +326 -21
- data/lib/korona_client/api/ticket_creation_api.rb +149 -0
- data/lib/korona_client/api/ticketing_api.rb +1084 -132
- data/lib/korona_client/api/time_tracking_api.rb +425 -0
- data/lib/korona_client/api_client.rb +11 -11
- data/lib/korona_client/api_error.rb +3 -3
- data/lib/korona_client/configuration.rb +4 -4
- data/lib/korona_client/models/account.rb +11 -15
- data/lib/korona_client/models/account_summary.rb +8 -13
- data/lib/korona_client/models/account_transaction.rb +32 -15
- data/lib/korona_client/models/add_or_update_result.rb +24 -19
- data/lib/korona_client/models/additional_info.rb +192 -0
- data/lib/korona_client/models/additional_receipt_info_type.rb +319 -0
- data/lib/korona_client/models/address_information.rb +8 -13
- data/lib/korona_client/models/admission.rb +8 -13
- data/lib/korona_client/models/amount.rb +8 -13
- data/lib/korona_client/models/amount_count_data.rb +8 -13
- data/lib/korona_client/models/assortment.rb +8 -13
- data/lib/korona_client/models/attendance.rb +268 -0
- data/lib/korona_client/models/bad_request_error.rb +11 -15
- data/lib/korona_client/models/capacity.rb +8 -13
- data/lib/korona_client/models/cashier.rb +21 -16
- data/lib/korona_client/models/cashier_summary.rb +8 -13
- data/lib/korona_client/models/category.rb +19 -15
- data/lib/korona_client/models/cloud_subscription.rb +11 -15
- data/lib/korona_client/models/commodity_group.rb +8 -13
- data/lib/korona_client/models/commodity_group_summary.rb +8 -13
- data/lib/korona_client/models/company_identification.rb +8 -13
- data/lib/korona_client/models/creation_task.rb +298 -0
- data/lib/korona_client/models/currency.rb +8 -13
- data/lib/korona_client/models/currency_denomination.rb +11 -15
- data/lib/korona_client/models/currency_exchange_rate.rb +8 -13
- data/lib/korona_client/models/customer.rb +11 -15
- data/lib/korona_client/models/customer_card.rb +11 -15
- data/lib/korona_client/models/customer_data.rb +8 -13
- data/lib/korona_client/models/customer_group.rb +8 -13
- data/lib/korona_client/models/customer_group_summary.rb +8 -13
- data/lib/korona_client/models/customer_information.rb +8 -13
- data/lib/korona_client/models/customer_order.rb +28 -29
- data/lib/korona_client/models/day_rating.rb +8 -13
- data/lib/korona_client/models/day_time_period.rb +192 -0
- data/lib/korona_client/models/delivery_note.rb +316 -0
- data/lib/korona_client/models/delivery_note_item.rb +239 -0
- data/lib/korona_client/models/deposit.rb +219 -0
- data/lib/korona_client/models/device_information.rb +8 -13
- data/lib/korona_client/models/discount.rb +201 -0
- data/lib/korona_client/models/economic_zone.rb +8 -13
- data/lib/korona_client/models/end_of_day_statement.rb +15 -20
- data/lib/korona_client/models/end_of_day_statement_summary.rb +8 -13
- data/lib/korona_client/models/entry_gate.rb +8 -13
- data/lib/korona_client/models/event.rb +30 -15
- data/lib/korona_client/models/external_system_call.rb +295 -0
- data/lib/korona_client/models/forbidden_error.rb +11 -15
- data/lib/korona_client/models/geo_location.rb +8 -13
- data/lib/korona_client/models/info_text.rb +11 -15
- data/lib/korona_client/models/interval.rb +8 -13
- data/lib/korona_client/models/inventory.rb +14 -18
- data/lib/korona_client/models/inventory_list.rb +11 -15
- data/lib/korona_client/models/inventory_list_item.rb +8 -13
- data/lib/korona_client/models/inventory_list_item_stock.rb +8 -13
- data/lib/korona_client/models/korona_account.rb +41 -13
- data/lib/korona_client/models/media_url.rb +183 -0
- data/lib/korona_client/models/method_not_allowed_error.rb +11 -15
- data/lib/korona_client/models/model_reference.rb +8 -12
- data/lib/korona_client/models/not_found_error.rb +11 -15
- data/lib/korona_client/models/organizational_unit.rb +20 -16
- data/lib/korona_client/models/payment.rb +8 -13
- data/lib/korona_client/models/payment_method.rb +37 -15
- data/lib/korona_client/models/payment_summary.rb +8 -13
- data/lib/korona_client/models/period.rb +8 -13
- data/lib/korona_client/models/period_list_top_seller.rb +8 -13
- data/lib/korona_client/models/period_map_string_revenue_data.rb +8 -13
- data/lib/korona_client/models/period_object.rb +8 -13
- data/lib/korona_client/models/period_revenue_data.rb +8 -13
- data/lib/korona_client/models/pos.rb +31 -15
- data/lib/korona_client/models/price_group.rb +8 -13
- data/lib/korona_client/models/product.rb +35 -19
- data/lib/korona_client/models/product_code.rb +8 -13
- data/lib/korona_client/models/product_description.rb +11 -15
- data/lib/korona_client/models/product_price.rb +8 -13
- data/lib/korona_client/models/product_stock.rb +8 -13
- data/lib/korona_client/models/product_subproduct.rb +8 -13
- data/lib/korona_client/models/product_supplier_price.rb +8 -13
- data/lib/korona_client/models/product_transfer_involved_party_information.rb +8 -13
- data/lib/korona_client/models/product_transfer_involved_party_information_data.rb +8 -13
- data/lib/korona_client/models/rating.rb +8 -13
- data/lib/korona_client/models/receipt.rb +55 -20
- data/lib/korona_client/models/receipt_item.rb +40 -14
- data/lib/korona_client/models/result_list.rb +14 -19
- data/lib/korona_client/models/result_list_account.rb +14 -19
- data/lib/korona_client/models/result_list_additional_receipt_info_type.rb +268 -0
- data/lib/korona_client/models/result_list_assortment.rb +14 -19
- data/lib/korona_client/models/result_list_attendance.rb +268 -0
- data/lib/korona_client/models/result_list_cashier.rb +14 -19
- data/lib/korona_client/models/result_list_commodity_group.rb +14 -19
- data/lib/korona_client/models/result_list_creation_task.rb +268 -0
- data/lib/korona_client/models/result_list_currency.rb +14 -19
- data/lib/korona_client/models/result_list_customer.rb +14 -19
- data/lib/korona_client/models/result_list_customer_group.rb +14 -19
- data/lib/korona_client/models/result_list_customer_order.rb +14 -19
- data/lib/korona_client/models/result_list_day_rating.rb +14 -19
- data/lib/korona_client/models/result_list_delivery_note.rb +268 -0
- data/lib/korona_client/models/result_list_economic_zone.rb +14 -19
- data/lib/korona_client/models/result_list_end_of_day_statement.rb +14 -19
- data/lib/korona_client/models/result_list_entry_gate.rb +14 -19
- data/lib/korona_client/models/result_list_event.rb +14 -19
- data/lib/korona_client/models/result_list_external_system_call.rb +268 -0
- data/lib/korona_client/models/result_list_info_text.rb +14 -19
- data/lib/korona_client/models/result_list_inventory.rb +14 -19
- data/lib/korona_client/models/result_list_inventory_list.rb +14 -19
- data/lib/korona_client/models/result_list_inventory_list_item.rb +14 -19
- data/lib/korona_client/models/result_list_organizational_unit.rb +14 -19
- data/lib/korona_client/models/result_list_payment_method.rb +14 -19
- data/lib/korona_client/models/result_list_pos.rb +14 -19
- data/lib/korona_client/models/result_list_price_group.rb +14 -19
- data/lib/korona_client/models/result_list_product.rb +14 -19
- data/lib/korona_client/models/result_list_product_stock.rb +14 -19
- data/lib/korona_client/models/result_list_receipt.rb +14 -19
- data/lib/korona_client/models/result_list_sales_tax.rb +14 -19
- data/lib/korona_client/models/result_list_sector.rb +14 -19
- data/lib/korona_client/models/result_list_stock_receipt.rb +14 -19
- data/lib/korona_client/models/result_list_stock_receipt_item.rb +14 -19
- data/lib/korona_client/models/result_list_supplier.rb +14 -19
- data/lib/korona_client/models/result_list_tag.rb +14 -19
- data/lib/korona_client/models/result_list_ticket.rb +268 -0
- data/lib/korona_client/models/result_list_ticket_definition.rb +14 -19
- data/lib/korona_client/models/result_list_time_tracking_entity.rb +268 -0
- data/lib/korona_client/models/result_list_time_tracking_entry.rb +268 -0
- data/lib/korona_client/models/revenue_data.rb +8 -13
- data/lib/korona_client/models/sales_tax.rb +8 -13
- data/lib/korona_client/models/sales_tax_rate.rb +8 -13
- data/lib/korona_client/models/sector.rb +21 -15
- data/lib/korona_client/models/sector_revenue_account_item.rb +192 -0
- data/lib/korona_client/models/sector_sales_tax_item.rb +8 -13
- data/lib/korona_client/models/signature.rb +216 -0
- data/lib/korona_client/models/statistic.rb +8 -13
- data/lib/korona_client/models/statistic_list_top_seller.rb +8 -13
- data/lib/korona_client/models/statistic_map_string_revenue_data.rb +8 -13
- data/lib/korona_client/models/statistic_revenue_data.rb +8 -13
- data/lib/korona_client/models/stock_receipt.rb +21 -16
- data/lib/korona_client/models/stock_receipt_item.rb +8 -13
- data/lib/korona_client/models/stock_receipt_item_amount.rb +8 -13
- data/lib/korona_client/models/stock_receipt_item_identification.rb +8 -13
- data/lib/korona_client/models/stock_receipt_item_purchase_price.rb +8 -13
- data/lib/korona_client/models/supplier.rb +8 -13
- data/lib/korona_client/models/supplier_contact.rb +8 -13
- data/lib/korona_client/models/supplier_contact_person.rb +8 -13
- data/lib/korona_client/models/supplier_payment_information.rb +11 -15
- data/lib/korona_client/models/tag.rb +8 -13
- data/lib/korona_client/models/tax_payment.rb +8 -13
- data/lib/korona_client/models/tax_summary.rb +8 -13
- data/lib/korona_client/models/ticket.rb +237 -0
- data/lib/korona_client/models/ticket_definition.rb +8 -13
- data/lib/korona_client/models/ticket_personalization.rb +225 -0
- data/lib/korona_client/models/time_period.rb +8 -13
- data/lib/korona_client/models/time_tracking_entity.rb +232 -0
- data/lib/korona_client/models/time_tracking_entry.rb +240 -0
- data/lib/korona_client/models/too_many_requests_error.rb +11 -15
- data/lib/korona_client/models/top_seller.rb +8 -13
- data/lib/korona_client/models/total_period.rb +192 -0
- data/lib/korona_client/models/total_price.rb +10 -14
- data/lib/korona_client/models/validity.rb +236 -0
- data/lib/korona_client/models/weather.rb +11 -15
- data/lib/korona_client/version.rb +4 -4
- data/node_modules/.yarn-integrity +12 -0
- data/spec/api/additional_receipt_info_types_api_spec.rb +66 -0
- data/spec/api/commodity_groups_api_spec.rb +133 -0
- data/spec/api/delivery_notes_api_spec.rb +112 -0
- data/spec/api/external_system_calls_api_spec.rb +133 -0
- data/spec/api/inventories_api_spec.rb +253 -0
- data/spec/api/stock_receipts_api_spec.rb +201 -0
- data/spec/api/ticket_creation_api_spec.rb +63 -0
- data/spec/api/time_tracking_api_spec.rb +129 -0
- data/spec/models/additional_info_spec.rb +47 -0
- data/spec/models/additional_receipt_info_type_spec.rb +125 -0
- data/spec/models/attendance_spec.rb +95 -0
- data/spec/models/creation_task_spec.rb +99 -0
- data/spec/models/day_time_period_spec.rb +47 -0
- data/spec/models/delivery_note_item_spec.rb +77 -0
- data/spec/models/delivery_note_spec.rb +125 -0
- data/spec/models/deposit_spec.rb +65 -0
- data/spec/models/discount_spec.rb +53 -0
- data/spec/models/external_system_call_spec.rb +113 -0
- data/spec/models/media_url_spec.rb +41 -0
- data/spec/models/result_list_additional_receipt_info_type_spec.rb +71 -0
- data/spec/models/result_list_attendance_spec.rb +71 -0
- data/spec/models/result_list_creation_task_spec.rb +71 -0
- data/spec/models/result_list_delivery_note_spec.rb +71 -0
- data/spec/models/result_list_external_system_call_spec.rb +71 -0
- data/spec/models/result_list_ticket_spec.rb +71 -0
- data/spec/models/result_list_time_tracking_entity_spec.rb +71 -0
- data/spec/models/result_list_time_tracking_entry_spec.rb +71 -0
- data/spec/models/sector_revenue_account_item_spec.rb +47 -0
- data/spec/models/signature_spec.rb +53 -0
- data/spec/models/ticket_personalization_spec.rb +59 -0
- data/spec/models/ticket_spec.rb +77 -0
- data/spec/models/time_tracking_entity_spec.rb +71 -0
- data/spec/models/time_tracking_entry_spec.rb +77 -0
- data/spec/models/total_period_spec.rb +47 -0
- data/spec/models/validity_spec.rb +63 -0
- data/yarn.lock +4 -0
- 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:
|
7
|
-
|
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.
|
9
|
+
Swagger Codegen version: 2.4.8
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require
|
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
|
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
|
-
|
29
|
+
data
|
31
30
|
end
|
32
31
|
|
33
|
-
#
|
32
|
+
# returns the single korona account
|
34
33
|
#
|
35
|
-
# @param korona_account_id the account
|
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
|
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 =
|
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:
|
7
|
-
|
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.
|
9
|
+
Swagger Codegen version: 2.4.8
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require
|
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
|
26
|
-
# @param
|
27
|
-
# @param body
|
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,
|
31
|
-
data, _status_code, _headers = add_organizational_unit_day_ratings_with_http_info(korona_account_id,
|
32
|
-
|
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
|
38
|
-
# @param
|
39
|
-
# @param body
|
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,
|
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
|
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 '
|
51
|
-
if @api_client.config.client_side_validation &&
|
52
|
-
fail ArgumentError, "Missing the required parameter '
|
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 =
|
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
|
93
|
-
# @param
|
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,
|
98
|
-
delete_organizational_unit_day_rating_with_http_info(korona_account_id,
|
99
|
-
|
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
|
105
|
-
# @param
|
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,
|
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
|
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 '
|
118
|
-
if @api_client.config.client_side_validation &&
|
119
|
-
fail ArgumentError, "Missing the required parameter '
|
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 =
|
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
|
159
|
-
# @param
|
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,
|
163
|
-
data, _status_code, _headers = get_organizational_unit_with_http_info(korona_account_id,
|
164
|
-
|
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
|
-
#
|
164
|
+
# returns the single organizational unit
|
168
165
|
#
|
169
|
-
# @param korona_account_id the account
|
170
|
-
# @param
|
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,
|
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
|
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 '
|
182
|
-
if @api_client.config.client_side_validation &&
|
183
|
-
fail ArgumentError, "Missing the required parameter '
|
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 =
|
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
|
220
|
-
# @param
|
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,
|
225
|
-
data, _status_code, _headers = get_organizational_unit_day_rating_with_http_info(korona_account_id,
|
226
|
-
|
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
|
-
#
|
225
|
+
# returns the single day rating by its id or date
|
230
226
|
#
|
231
|
-
# @param korona_account_id the account
|
232
|
-
# @param
|
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,
|
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
|
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 '
|
245
|
-
if @api_client.config.client_side_validation &&
|
246
|
-
fail ArgumentError, "Missing the required parameter '
|
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 =
|
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
|
287
|
-
# @param
|
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,
|
294
|
-
data, _status_code, _headers = get_organizational_unit_day_ratings_with_http_info(korona_account_id,
|
295
|
-
|
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
|
301
|
-
# @param
|
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,
|
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
|
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 '
|
316
|
-
if @api_client.config.client_side_validation &&
|
317
|
-
fail ArgumentError, "Missing the required parameter '
|
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 =
|
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
|
357
|
-
# @param
|
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,
|
371
|
-
data, _status_code, _headers = get_organizational_unit_inventory_lists_with_http_info(korona_account_id,
|
372
|
-
|
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
|
378
|
-
# @param
|
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,
|
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
|
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 '
|
400
|
-
if @api_client.config.client_side_validation &&
|
401
|
-
fail ArgumentError, "Missing the required parameter '
|
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 =
|
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
|
451
|
-
# @param
|
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,
|
459
|
-
data, _status_code, _headers = get_organizational_unit_product_stocks_with_http_info(korona_account_id,
|
460
|
-
|
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
|
466
|
-
# @param
|
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,
|
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
|
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 '
|
482
|
-
if @api_client.config.client_side_validation &&
|
483
|
-
fail ArgumentError, "Missing the required parameter '
|
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 =
|
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
|
524
|
-
# @param
|
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,
|
539
|
-
data, _status_code, _headers = get_organizational_unit_stock_receipts_with_http_info(korona_account_id,
|
540
|
-
|
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
|
546
|
-
# @param
|
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,
|
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
|
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 '
|
569
|
-
if @api_client.config.client_side_validation &&
|
570
|
-
fail ArgumentError, "Missing the required parameter '
|
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 =
|
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
|
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
|
-
|
625
|
+
data
|
631
626
|
end
|
632
627
|
|
633
628
|
# lists all organizational units
|
634
629
|
#
|
635
|
-
# @param korona_account_id the account
|
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
|
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 =
|
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
|
691
|
-
# @param
|
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,
|
697
|
-
update_organizational_unit_day_rating_with_http_info(korona_account_id,
|
698
|
-
|
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
|
704
|
-
# @param
|
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,
|
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
|
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 '
|
718
|
-
if @api_client.config.client_side_validation &&
|
719
|
-
fail ArgumentError, "Missing the required parameter '
|
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 =
|
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
|
763
|
-
# @param
|
764
|
-
# @param body
|
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,
|
768
|
-
data, _status_code, _headers = update_organizational_unit_day_ratings_with_http_info(korona_account_id,
|
769
|
-
|
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
|
-
#
|
767
|
+
# updates a batch of day ratings
|
773
768
|
#
|
774
|
-
# @param korona_account_id the account
|
775
|
-
# @param
|
776
|
-
# @param body
|
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,
|
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
|
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 '
|
788
|
-
if @api_client.config.client_side_validation &&
|
789
|
-
fail ArgumentError, "Missing the required parameter '
|
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 =
|
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 = {}
|