korona-cloud-client 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +417 -0
- data/Rakefile +10 -0
- data/docs/Account.md +39 -0
- data/docs/AccountSummary.md +21 -0
- data/docs/AccountTransaction.md +27 -0
- data/docs/AccountsApi.md +126 -0
- data/docs/AddOrUpdateResult.md +29 -0
- data/docs/AdditionalInfo.md +19 -0
- data/docs/AdditionalReceiptInfoType.md +45 -0
- data/docs/AdditionalReceiptInfoTypesApi.md +128 -0
- data/docs/AddressInformation.md +29 -0
- data/docs/Admission.md +19 -0
- data/docs/Amount.md +25 -0
- data/docs/AmountCountData.md +19 -0
- data/docs/Assortment.md +31 -0
- data/docs/AssortmentsApi.md +402 -0
- data/docs/Attendance.md +35 -0
- data/docs/BadRequestError.md +19 -0
- data/docs/Capacity.md +19 -0
- data/docs/Cashier.md +43 -0
- data/docs/CashierSummary.md +27 -0
- data/docs/CashiersApi.md +128 -0
- data/docs/Category.md +21 -0
- data/docs/CloudSubscription.md +19 -0
- data/docs/CommodityGroup.md +27 -0
- data/docs/CommodityGroupSummary.md +23 -0
- data/docs/CommodityGroupsApi.md +402 -0
- data/docs/CompanyIdentification.md +19 -0
- data/docs/CreationTask.md +37 -0
- data/docs/CurrenciesApi.md +128 -0
- data/docs/Currency.md +39 -0
- data/docs/CurrencyDenomination.md +19 -0
- data/docs/CurrencyExchangeRate.md +19 -0
- data/docs/Customer.md +53 -0
- data/docs/CustomerCard.md +19 -0
- data/docs/CustomerData.md +19 -0
- data/docs/CustomerGroup.md +27 -0
- data/docs/CustomerGroupSummary.md +23 -0
- data/docs/CustomerGroupsApi.md +128 -0
- data/docs/CustomerInformation.md +21 -0
- data/docs/CustomerOrder.md +53 -0
- data/docs/CustomerOrdersApi.md +358 -0
- data/docs/CustomersApi.md +402 -0
- data/docs/DayRating.md +35 -0
- data/docs/DayTimePeriod.md +19 -0
- data/docs/DeliveryNote.md +47 -0
- data/docs/DeliveryNoteItem.md +31 -0
- data/docs/DeliveryNotesApi.md +302 -0
- data/docs/Deposit.md +25 -0
- data/docs/DeviceInformation.md +19 -0
- data/docs/Discount.md +21 -0
- data/docs/EconomicZone.md +25 -0
- data/docs/EconomicZonesApi.md +128 -0
- data/docs/EndOfDayStatement.md +33 -0
- data/docs/EndOfDayStatementSummary.md +27 -0
- data/docs/EntryGate.md +29 -0
- data/docs/Event.md +39 -0
- data/docs/ExternalSystemCall.md +41 -0
- data/docs/ExternalSystemCallsApi.md +402 -0
- data/docs/ForbiddenError.md +19 -0
- data/docs/GeoLocation.md +19 -0
- data/docs/ImagesApi.md +62 -0
- data/docs/InfoText.md +27 -0
- data/docs/InfoTextsApi.md +128 -0
- data/docs/Interval.md +19 -0
- data/docs/InventoriesApi.md +837 -0
- data/docs/Inventory.md +53 -0
- data/docs/InventoryList.md +45 -0
- data/docs/InventoryListItem.md +27 -0
- data/docs/InventoryListItemStock.md +19 -0
- data/docs/KoronaAccount.md +35 -0
- data/docs/KoronaAccountApi.md +60 -0
- data/docs/MediaUrl.md +17 -0
- data/docs/MethodNotAllowedError.md +19 -0
- data/docs/ModelReference.md +21 -0
- data/docs/NotFoundError.md +19 -0
- data/docs/OpeningHours.md +21 -0
- data/docs/OrganizationalUnit.md +41 -0
- data/docs/OrganizationalUnitsApi.md +690 -0
- data/docs/Payment.md +25 -0
- data/docs/PaymentMethod.md +41 -0
- data/docs/PaymentMethodsApi.md +128 -0
- data/docs/PaymentSummary.md +21 -0
- data/docs/Period.md +21 -0
- data/docs/PeriodListTopSeller.md +21 -0
- data/docs/PeriodMapStringRevenueData.md +21 -0
- data/docs/PeriodObject.md +21 -0
- data/docs/PeriodRevenueData.md +21 -0
- data/docs/PointsOfSaleApi.md +521 -0
- data/docs/Pos.md +55 -0
- data/docs/PriceGroup.md +29 -0
- data/docs/PriceGroupsApi.md +128 -0
- data/docs/Product.md +103 -0
- data/docs/ProductCode.md +21 -0
- data/docs/ProductDescription.md +21 -0
- data/docs/ProductPrice.md +25 -0
- data/docs/ProductStock.md +25 -0
- data/docs/ProductSubproduct.md +21 -0
- data/docs/ProductSupplierPrice.md +25 -0
- data/docs/ProductTransferInvolvedPartyInformation.md +27 -0
- data/docs/ProductTransferInvolvedPartyInformationData.md +21 -0
- data/docs/ProductsApi.md +478 -0
- data/docs/Rating.md +21 -0
- data/docs/Receipt.md +65 -0
- data/docs/ReceiptItem.md +41 -0
- data/docs/ReceiptsApi.md +140 -0
- data/docs/ResultList.md +27 -0
- data/docs/ResultListAccount.md +27 -0
- data/docs/ResultListAdditionalReceiptInfoType.md +27 -0
- data/docs/ResultListAssortment.md +27 -0
- data/docs/ResultListAttendance.md +27 -0
- data/docs/ResultListCashier.md +27 -0
- data/docs/ResultListCommodityGroup.md +27 -0
- data/docs/ResultListCreationTask.md +27 -0
- data/docs/ResultListCurrency.md +27 -0
- data/docs/ResultListCustomer.md +27 -0
- data/docs/ResultListCustomerGroup.md +27 -0
- data/docs/ResultListCustomerOrder.md +27 -0
- data/docs/ResultListDayRating.md +27 -0
- data/docs/ResultListDeliveryNote.md +27 -0
- data/docs/ResultListEconomicZone.md +27 -0
- data/docs/ResultListEndOfDayStatement.md +27 -0
- data/docs/ResultListEntryGate.md +27 -0
- data/docs/ResultListEvent.md +27 -0
- data/docs/ResultListExternalSystemCall.md +27 -0
- data/docs/ResultListInfoText.md +27 -0
- data/docs/ResultListInventory.md +27 -0
- data/docs/ResultListInventoryList.md +27 -0
- data/docs/ResultListInventoryListItem.md +27 -0
- data/docs/ResultListOrganizationalUnit.md +27 -0
- data/docs/ResultListPaymentMethod.md +27 -0
- data/docs/ResultListPos.md +27 -0
- data/docs/ResultListPriceGroup.md +27 -0
- data/docs/ResultListProduct.md +27 -0
- data/docs/ResultListProductStock.md +27 -0
- data/docs/ResultListReceipt.md +27 -0
- data/docs/ResultListSalesTax.md +27 -0
- data/docs/ResultListSector.md +27 -0
- data/docs/ResultListStockReceipt.md +27 -0
- data/docs/ResultListStockReceiptItem.md +27 -0
- data/docs/ResultListSupplier.md +27 -0
- data/docs/ResultListTag.md +27 -0
- data/docs/ResultListTicket.md +27 -0
- data/docs/ResultListTicketDefinition.md +27 -0
- data/docs/ResultListTimeTrackingEntity.md +27 -0
- data/docs/ResultListTimeTrackingEntry.md +27 -0
- data/docs/RevenueData.md +25 -0
- data/docs/SalesTax.md +31 -0
- data/docs/SalesTaxRate.md +19 -0
- data/docs/SalesTaxesApi.md +128 -0
- data/docs/Sector.md +29 -0
- data/docs/SectorRevenueAccountItem.md +19 -0
- data/docs/SectorSalesTaxItem.md +19 -0
- data/docs/SectorsApi.md +240 -0
- data/docs/Signature.md +21 -0
- data/docs/Statistic.md +21 -0
- data/docs/StatisticListTopSeller.md +21 -0
- data/docs/StatisticMapStringRevenueData.md +21 -0
- data/docs/StatisticRevenueData.md +21 -0
- data/docs/StatisticsApi.md +242 -0
- data/docs/StockReceipt.md +59 -0
- data/docs/StockReceiptItem.md +29 -0
- data/docs/StockReceiptItemAmount.md +19 -0
- data/docs/StockReceiptItemIdentification.md +21 -0
- data/docs/StockReceiptItemPurchasePrice.md +19 -0
- data/docs/StockReceiptsApi.md +648 -0
- data/docs/Supplier.md +39 -0
- data/docs/SupplierContact.md +23 -0
- data/docs/SupplierContactPerson.md +29 -0
- data/docs/SupplierPaymentInformation.md +33 -0
- data/docs/SuppliersApi.md +128 -0
- data/docs/Tag.md +25 -0
- data/docs/TagsApi.md +400 -0
- data/docs/TaxPayment.md +23 -0
- data/docs/TaxSummary.md +21 -0
- data/docs/Ticket.md +29 -0
- data/docs/TicketCreationApi.md +122 -0
- data/docs/TicketData.md +37 -0
- data/docs/TicketDefinition.md +39 -0
- data/docs/TicketPersonalization.md +23 -0
- data/docs/TicketingApi.md +1217 -0
- data/docs/TimePeriod.md +29 -0
- data/docs/TimeTrackingApi.md +372 -0
- data/docs/TimeTrackingEntity.md +27 -0
- data/docs/TimeTrackingEntry.md +29 -0
- data/docs/TooManyRequestsError.md +19 -0
- data/docs/TopSeller.md +25 -0
- data/docs/TotalPeriod.md +19 -0
- data/docs/TotalPrice.md +25 -0
- data/docs/Validity.md +23 -0
- data/docs/Weather.md +21 -0
- data/git_push.sh +58 -0
- data/korona-cloud-client.gemspec +39 -0
- data/lib/korona-cloud-client.rb +228 -0
- data/lib/korona-cloud-client/api/accounts_api.rb +163 -0
- data/lib/korona-cloud-client/api/additional_receipt_info_types_api.rb +166 -0
- data/lib/korona-cloud-client/api/assortments_api.rb +513 -0
- data/lib/korona-cloud-client/api/cashiers_api.rb +166 -0
- data/lib/korona-cloud-client/api/commodity_groups_api.rb +513 -0
- data/lib/korona-cloud-client/api/currencies_api.rb +166 -0
- data/lib/korona-cloud-client/api/customer_groups_api.rb +166 -0
- data/lib/korona-cloud-client/api/customer_orders_api.rb +459 -0
- data/lib/korona-cloud-client/api/customers_api.rb +513 -0
- data/lib/korona-cloud-client/api/delivery_notes_api.rb +387 -0
- data/lib/korona-cloud-client/api/economic_zones_api.rb +166 -0
- data/lib/korona-cloud-client/api/external_system_calls_api.rb +513 -0
- data/lib/korona-cloud-client/api/images_api.rb +88 -0
- data/lib/korona-cloud-client/api/info_texts_api.rb +166 -0
- data/lib/korona-cloud-client/api/inventories_api.rb +1115 -0
- data/lib/korona-cloud-client/api/korona_account_api.rb +82 -0
- data/lib/korona-cloud-client/api/organizational_units_api.rb +897 -0
- data/lib/korona-cloud-client/api/payment_methods_api.rb +166 -0
- data/lib/korona-cloud-client/api/points_of_sale_api.rb +664 -0
- data/lib/korona-cloud-client/api/price_groups_api.rb +166 -0
- data/lib/korona-cloud-client/api/products_api.rb +607 -0
- data/lib/korona-cloud-client/api/receipts_api.rb +184 -0
- data/lib/korona-cloud-client/api/sales_taxes_api.rb +166 -0
- data/lib/korona-cloud-client/api/sectors_api.rb +305 -0
- data/lib/korona-cloud-client/api/statistics_api.rb +305 -0
- data/lib/korona-cloud-client/api/stock_receipts_api.rb +849 -0
- data/lib/korona-cloud-client/api/suppliers_api.rb +166 -0
- data/lib/korona-cloud-client/api/tags_api.rb +510 -0
- data/lib/korona-cloud-client/api/ticket_creation_api.rb +163 -0
- data/lib/korona-cloud-client/api/ticketing_api.rb +1516 -0
- data/lib/korona-cloud-client/api/time_tracking_api.rb +464 -0
- data/lib/korona-cloud-client/api_client.rb +386 -0
- data/lib/korona-cloud-client/api_error.rb +57 -0
- data/lib/korona-cloud-client/configuration.rb +248 -0
- data/lib/korona-cloud-client/models/account.rb +343 -0
- data/lib/korona-cloud-client/models/account_summary.rb +224 -0
- data/lib/korona-cloud-client/models/account_transaction.rb +255 -0
- data/lib/korona-cloud-client/models/add_or_update_result.rb +306 -0
- data/lib/korona-cloud-client/models/additional_info.rb +215 -0
- data/lib/korona-cloud-client/models/additional_receipt_info_type.rb +342 -0
- data/lib/korona-cloud-client/models/address_information.rb +260 -0
- data/lib/korona-cloud-client/models/admission.rb +215 -0
- data/lib/korona-cloud-client/models/amount.rb +242 -0
- data/lib/korona-cloud-client/models/amount_count_data.rb +215 -0
- data/lib/korona-cloud-client/models/assortment.rb +273 -0
- data/lib/korona-cloud-client/models/attendance.rb +291 -0
- data/lib/korona-cloud-client/models/bad_request_error.rb +251 -0
- data/lib/korona-cloud-client/models/capacity.rb +215 -0
- data/lib/korona-cloud-client/models/cashier.rb +365 -0
- data/lib/korona-cloud-client/models/cashier_summary.rb +251 -0
- data/lib/korona-cloud-client/models/category.rb +224 -0
- data/lib/korona-cloud-client/models/cloud_subscription.rb +249 -0
- data/lib/korona-cloud-client/models/commodity_group.rb +255 -0
- data/lib/korona-cloud-client/models/commodity_group_summary.rb +233 -0
- data/lib/korona-cloud-client/models/company_identification.rb +215 -0
- data/lib/korona-cloud-client/models/creation_task.rb +330 -0
- data/lib/korona-cloud-client/models/currency.rb +313 -0
- data/lib/korona-cloud-client/models/currency_denomination.rb +249 -0
- data/lib/korona-cloud-client/models/currency_exchange_rate.rb +215 -0
- data/lib/korona-cloud-client/models/customer.rb +410 -0
- data/lib/korona-cloud-client/models/customer_card.rb +249 -0
- data/lib/korona-cloud-client/models/customer_data.rb +215 -0
- data/lib/korona-cloud-client/models/customer_group.rb +255 -0
- data/lib/korona-cloud-client/models/customer_group_summary.rb +233 -0
- data/lib/korona-cloud-client/models/customer_information.rb +224 -0
- data/lib/korona-cloud-client/models/customer_order.rb +378 -0
- data/lib/korona-cloud-client/models/day_rating.rb +287 -0
- data/lib/korona-cloud-client/models/day_time_period.rb +215 -0
- data/lib/korona-cloud-client/models/delivery_note.rb +347 -0
- data/lib/korona-cloud-client/models/delivery_note_item.rb +273 -0
- data/lib/korona-cloud-client/models/deposit.rb +242 -0
- data/lib/korona-cloud-client/models/device_information.rb +215 -0
- data/lib/korona-cloud-client/models/discount.rb +224 -0
- data/lib/korona-cloud-client/models/economic_zone.rb +246 -0
- data/lib/korona-cloud-client/models/end_of_day_statement.rb +282 -0
- data/lib/korona-cloud-client/models/end_of_day_statement_summary.rb +263 -0
- data/lib/korona-cloud-client/models/entry_gate.rb +264 -0
- data/lib/korona-cloud-client/models/event.rb +313 -0
- data/lib/korona-cloud-client/models/external_system_call.rb +318 -0
- data/lib/korona-cloud-client/models/forbidden_error.rb +251 -0
- data/lib/korona-cloud-client/models/geo_location.rb +215 -0
- data/lib/korona-cloud-client/models/info_text.rb +289 -0
- data/lib/korona-cloud-client/models/interval.rb +215 -0
- data/lib/korona-cloud-client/models/inventory.rb +427 -0
- data/lib/korona-cloud-client/models/inventory_list.rb +370 -0
- data/lib/korona-cloud-client/models/inventory_list_item.rb +251 -0
- data/lib/korona-cloud-client/models/inventory_list_item_stock.rb +215 -0
- data/lib/korona-cloud-client/models/korona_account.rb +315 -0
- data/lib/korona-cloud-client/models/media_url.rb +206 -0
- data/lib/korona-cloud-client/models/method_not_allowed_error.rb +251 -0
- data/lib/korona-cloud-client/models/model_reference.rb +228 -0
- data/lib/korona-cloud-client/models/not_found_error.rb +251 -0
- data/lib/korona-cloud-client/models/opening_hours.rb +258 -0
- data/lib/korona-cloud-client/models/organizational_unit.rb +325 -0
- data/lib/korona-cloud-client/models/payment.rb +242 -0
- data/lib/korona-cloud-client/models/payment_method.rb +318 -0
- data/lib/korona-cloud-client/models/payment_summary.rb +224 -0
- data/lib/korona-cloud-client/models/period.rb +224 -0
- data/lib/korona-cloud-client/models/period_list_top_seller.rb +226 -0
- data/lib/korona-cloud-client/models/period_map_string_revenue_data.rb +226 -0
- data/lib/korona-cloud-client/models/period_object.rb +224 -0
- data/lib/korona-cloud-client/models/period_revenue_data.rb +224 -0
- data/lib/korona-cloud-client/models/pos.rb +389 -0
- data/lib/korona-cloud-client/models/price_group.rb +264 -0
- data/lib/korona-cloud-client/models/product.rb +659 -0
- data/lib/korona-cloud-client/models/product_code.rb +224 -0
- data/lib/korona-cloud-client/models/product_description.rb +258 -0
- data/lib/korona-cloud-client/models/product_price.rb +242 -0
- data/lib/korona-cloud-client/models/product_stock.rb +242 -0
- data/lib/korona-cloud-client/models/product_subproduct.rb +226 -0
- data/lib/korona-cloud-client/models/product_supplier_price.rb +242 -0
- data/lib/korona-cloud-client/models/product_transfer_involved_party_information.rb +251 -0
- data/lib/korona-cloud-client/models/product_transfer_involved_party_information_data.rb +224 -0
- data/lib/korona-cloud-client/models/rating.rb +224 -0
- data/lib/korona-cloud-client/models/receipt.rb +436 -0
- data/lib/korona-cloud-client/models/receipt_item.rb +320 -0
- data/lib/korona-cloud-client/models/result_list.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_account.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_additional_receipt_info_type.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_assortment.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_attendance.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_cashier.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_commodity_group.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_creation_task.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_currency.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_customer.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_customer_group.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_customer_order.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_day_rating.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_delivery_note.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_economic_zone.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_end_of_day_statement.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_entry_gate.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_event.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_external_system_call.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_info_text.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_inventory.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_inventory_list.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_inventory_list_item.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_organizational_unit.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_payment_method.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_pos.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_price_group.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_product.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_product_stock.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_receipt.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_sales_tax.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_sector.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_stock_receipt.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_stock_receipt_item.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_supplier.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_tag.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_ticket.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_ticket_definition.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_time_tracking_entity.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_time_tracking_entry.rb +291 -0
- data/lib/korona-cloud-client/models/revenue_data.rb +242 -0
- data/lib/korona-cloud-client/models/sales_tax.rb +275 -0
- data/lib/korona-cloud-client/models/sales_tax_rate.rb +215 -0
- data/lib/korona-cloud-client/models/sector.rb +268 -0
- data/lib/korona-cloud-client/models/sector_revenue_account_item.rb +215 -0
- data/lib/korona-cloud-client/models/sector_sales_tax_item.rb +215 -0
- data/lib/korona-cloud-client/models/signature.rb +241 -0
- data/lib/korona-cloud-client/models/statistic.rb +224 -0
- data/lib/korona-cloud-client/models/statistic_list_top_seller.rb +224 -0
- data/lib/korona-cloud-client/models/statistic_map_string_revenue_data.rb +224 -0
- data/lib/korona-cloud-client/models/statistic_revenue_data.rb +224 -0
- data/lib/korona-cloud-client/models/stock_receipt.rb +433 -0
- data/lib/korona-cloud-client/models/stock_receipt_item.rb +260 -0
- data/lib/korona-cloud-client/models/stock_receipt_item_amount.rb +215 -0
- data/lib/korona-cloud-client/models/stock_receipt_item_identification.rb +224 -0
- data/lib/korona-cloud-client/models/stock_receipt_item_purchase_price.rb +215 -0
- data/lib/korona-cloud-client/models/supplier.rb +309 -0
- data/lib/korona-cloud-client/models/supplier_contact.rb +233 -0
- data/lib/korona-cloud-client/models/supplier_contact_person.rb +260 -0
- data/lib/korona-cloud-client/models/supplier_payment_information.rb +312 -0
- data/lib/korona-cloud-client/models/tag.rb +246 -0
- data/lib/korona-cloud-client/models/tax_payment.rb +233 -0
- data/lib/korona-cloud-client/models/tax_summary.rb +224 -0
- data/lib/korona-cloud-client/models/ticket.rb +260 -0
- data/lib/korona-cloud-client/models/ticket_data.rb +298 -0
- data/lib/korona-cloud-client/models/ticket_definition.rb +311 -0
- data/lib/korona-cloud-client/models/ticket_personalization.rb +250 -0
- data/lib/korona-cloud-client/models/time_period.rb +260 -0
- data/lib/korona-cloud-client/models/time_tracking_entity.rb +255 -0
- data/lib/korona-cloud-client/models/time_tracking_entry.rb +263 -0
- data/lib/korona-cloud-client/models/too_many_requests_error.rb +251 -0
- data/lib/korona-cloud-client/models/top_seller.rb +245 -0
- data/lib/korona-cloud-client/models/total_period.rb +215 -0
- data/lib/korona-cloud-client/models/total_price.rb +260 -0
- data/lib/korona-cloud-client/models/validity.rb +259 -0
- data/lib/korona-cloud-client/models/weather.rb +258 -0
- data/lib/korona-cloud-client/version.rb +15 -0
- data/spec/api/accounts_api_spec.rb +63 -0
- data/spec/api/additional_receipt_info_types_api_spec.rb +64 -0
- data/spec/api/assortments_api_spec.rb +126 -0
- data/spec/api/cashiers_api_spec.rb +64 -0
- data/spec/api/commodity_groups_api_spec.rb +126 -0
- data/spec/api/currencies_api_spec.rb +64 -0
- data/spec/api/customer_groups_api_spec.rb +64 -0
- data/spec/api/customer_orders_api_spec.rb +119 -0
- data/spec/api/customers_api_spec.rb +126 -0
- data/spec/api/delivery_notes_api_spec.rb +107 -0
- data/spec/api/economic_zones_api_spec.rb +64 -0
- data/spec/api/external_system_calls_api_spec.rb +126 -0
- data/spec/api/images_api_spec.rb +47 -0
- data/spec/api/info_texts_api_spec.rb +64 -0
- data/spec/api/inventories_api_spec.rb +239 -0
- data/spec/api/korona_account_api_spec.rb +46 -0
- data/spec/api/organizational_units_api_spec.rb +207 -0
- data/spec/api/payment_methods_api_spec.rb +64 -0
- data/spec/api/points_of_sale_api_spec.rb +164 -0
- data/spec/api/price_groups_api_spec.rb +64 -0
- data/spec/api/products_api_spec.rb +148 -0
- data/spec/api/receipts_api_spec.rb +70 -0
- data/spec/api/sales_taxes_api_spec.rb +64 -0
- data/spec/api/sectors_api_spec.rb +89 -0
- data/spec/api/statistics_api_spec.rb +88 -0
- data/spec/api/stock_receipts_api_spec.rb +190 -0
- data/spec/api/suppliers_api_spec.rb +64 -0
- data/spec/api/tags_api_spec.rb +125 -0
- data/spec/api/ticket_creation_api_spec.rb +61 -0
- data/spec/api/ticketing_api_spec.rb +320 -0
- data/spec/api/time_tracking_api_spec.rb +123 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/account_spec.rb +111 -0
- data/spec/models/account_summary_spec.rb +53 -0
- data/spec/models/account_transaction_spec.rb +71 -0
- data/spec/models/add_or_update_result_spec.rb +85 -0
- data/spec/models/additional_info_spec.rb +47 -0
- data/spec/models/additional_receipt_info_type_spec.rb +125 -0
- data/spec/models/address_information_spec.rb +77 -0
- data/spec/models/admission_spec.rb +47 -0
- data/spec/models/amount_count_data_spec.rb +47 -0
- data/spec/models/amount_spec.rb +65 -0
- data/spec/models/assortment_spec.rb +83 -0
- data/spec/models/attendance_spec.rb +95 -0
- data/spec/models/bad_request_error_spec.rb +51 -0
- data/spec/models/capacity_spec.rb +47 -0
- data/spec/models/cashier_spec.rb +127 -0
- data/spec/models/cashier_summary_spec.rb +71 -0
- data/spec/models/category_spec.rb +53 -0
- data/spec/models/cloud_subscription_spec.rb +51 -0
- data/spec/models/commodity_group_spec.rb +71 -0
- data/spec/models/commodity_group_summary_spec.rb +59 -0
- data/spec/models/company_identification_spec.rb +47 -0
- data/spec/models/creation_task_spec.rb +105 -0
- data/spec/models/currency_denomination_spec.rb +51 -0
- data/spec/models/currency_exchange_rate_spec.rb +47 -0
- data/spec/models/currency_spec.rb +107 -0
- data/spec/models/customer_card_spec.rb +51 -0
- data/spec/models/customer_data_spec.rb +47 -0
- data/spec/models/customer_group_spec.rb +71 -0
- data/spec/models/customer_group_summary_spec.rb +59 -0
- data/spec/models/customer_information_spec.rb +53 -0
- data/spec/models/customer_order_spec.rb +149 -0
- data/spec/models/customer_spec.rb +153 -0
- data/spec/models/day_rating_spec.rb +95 -0
- data/spec/models/day_time_period_spec.rb +47 -0
- data/spec/models/delivery_note_item_spec.rb +83 -0
- data/spec/models/delivery_note_spec.rb +131 -0
- data/spec/models/deposit_spec.rb +65 -0
- data/spec/models/device_information_spec.rb +47 -0
- data/spec/models/discount_spec.rb +53 -0
- data/spec/models/economic_zone_spec.rb +65 -0
- data/spec/models/end_of_day_statement_spec.rb +89 -0
- data/spec/models/end_of_day_statement_summary_spec.rb +71 -0
- data/spec/models/entry_gate_spec.rb +77 -0
- data/spec/models/event_spec.rb +107 -0
- data/spec/models/external_system_call_spec.rb +113 -0
- data/spec/models/forbidden_error_spec.rb +51 -0
- data/spec/models/geo_location_spec.rb +47 -0
- data/spec/models/info_text_spec.rb +75 -0
- data/spec/models/interval_spec.rb +47 -0
- data/spec/models/inventory_list_item_spec.rb +71 -0
- data/spec/models/inventory_list_item_stock_spec.rb +47 -0
- data/spec/models/inventory_list_spec.rb +129 -0
- data/spec/models/inventory_spec.rb +161 -0
- data/spec/models/korona_account_spec.rb +99 -0
- data/spec/models/media_url_spec.rb +41 -0
- data/spec/models/method_not_allowed_error_spec.rb +51 -0
- data/spec/models/model_reference_spec.rb +53 -0
- data/spec/models/not_found_error_spec.rb +51 -0
- data/spec/models/opening_hours_spec.rb +57 -0
- data/spec/models/organizational_unit_spec.rb +113 -0
- data/spec/models/payment_method_spec.rb +113 -0
- data/spec/models/payment_spec.rb +65 -0
- data/spec/models/payment_summary_spec.rb +53 -0
- data/spec/models/period_list_top_seller_spec.rb +53 -0
- data/spec/models/period_map_string_revenue_data_spec.rb +53 -0
- data/spec/models/period_object_spec.rb +53 -0
- data/spec/models/period_revenue_data_spec.rb +53 -0
- data/spec/models/period_spec.rb +53 -0
- data/spec/models/pos_spec.rb +155 -0
- data/spec/models/price_group_spec.rb +77 -0
- data/spec/models/product_code_spec.rb +53 -0
- data/spec/models/product_description_spec.rb +57 -0
- data/spec/models/product_price_spec.rb +65 -0
- data/spec/models/product_spec.rb +307 -0
- data/spec/models/product_stock_spec.rb +65 -0
- data/spec/models/product_subproduct_spec.rb +53 -0
- data/spec/models/product_supplier_price_spec.rb +65 -0
- data/spec/models/product_transfer_involved_party_information_data_spec.rb +53 -0
- data/spec/models/product_transfer_involved_party_information_spec.rb +71 -0
- data/spec/models/rating_spec.rb +53 -0
- data/spec/models/receipt_item_spec.rb +113 -0
- data/spec/models/receipt_spec.rb +185 -0
- data/spec/models/result_list_account_spec.rb +71 -0
- data/spec/models/result_list_additional_receipt_info_type_spec.rb +71 -0
- data/spec/models/result_list_assortment_spec.rb +71 -0
- data/spec/models/result_list_attendance_spec.rb +71 -0
- data/spec/models/result_list_cashier_spec.rb +71 -0
- data/spec/models/result_list_commodity_group_spec.rb +71 -0
- data/spec/models/result_list_creation_task_spec.rb +71 -0
- data/spec/models/result_list_currency_spec.rb +71 -0
- data/spec/models/result_list_customer_group_spec.rb +71 -0
- data/spec/models/result_list_customer_order_spec.rb +71 -0
- data/spec/models/result_list_customer_spec.rb +71 -0
- data/spec/models/result_list_day_rating_spec.rb +71 -0
- data/spec/models/result_list_delivery_note_spec.rb +71 -0
- data/spec/models/result_list_economic_zone_spec.rb +71 -0
- data/spec/models/result_list_end_of_day_statement_spec.rb +71 -0
- data/spec/models/result_list_entry_gate_spec.rb +71 -0
- data/spec/models/result_list_event_spec.rb +71 -0
- data/spec/models/result_list_external_system_call_spec.rb +71 -0
- data/spec/models/result_list_info_text_spec.rb +71 -0
- data/spec/models/result_list_inventory_list_item_spec.rb +71 -0
- data/spec/models/result_list_inventory_list_spec.rb +71 -0
- data/spec/models/result_list_inventory_spec.rb +71 -0
- data/spec/models/result_list_organizational_unit_spec.rb +71 -0
- data/spec/models/result_list_payment_method_spec.rb +71 -0
- data/spec/models/result_list_pos_spec.rb +71 -0
- data/spec/models/result_list_price_group_spec.rb +71 -0
- data/spec/models/result_list_product_spec.rb +71 -0
- data/spec/models/result_list_product_stock_spec.rb +71 -0
- data/spec/models/result_list_receipt_spec.rb +71 -0
- data/spec/models/result_list_sales_tax_spec.rb +71 -0
- data/spec/models/result_list_sector_spec.rb +71 -0
- data/spec/models/result_list_spec.rb +71 -0
- data/spec/models/result_list_stock_receipt_item_spec.rb +71 -0
- data/spec/models/result_list_stock_receipt_spec.rb +71 -0
- data/spec/models/result_list_supplier_spec.rb +71 -0
- data/spec/models/result_list_tag_spec.rb +71 -0
- data/spec/models/result_list_ticket_definition_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/revenue_data_spec.rb +65 -0
- data/spec/models/sales_tax_rate_spec.rb +47 -0
- data/spec/models/sales_tax_spec.rb +83 -0
- data/spec/models/sector_revenue_account_item_spec.rb +47 -0
- data/spec/models/sector_sales_tax_item_spec.rb +47 -0
- data/spec/models/sector_spec.rb +77 -0
- data/spec/models/signature_spec.rb +53 -0
- data/spec/models/statistic_list_top_seller_spec.rb +53 -0
- data/spec/models/statistic_map_string_revenue_data_spec.rb +53 -0
- data/spec/models/statistic_revenue_data_spec.rb +53 -0
- data/spec/models/statistic_spec.rb +53 -0
- data/spec/models/stock_receipt_item_amount_spec.rb +47 -0
- data/spec/models/stock_receipt_item_identification_spec.rb +53 -0
- data/spec/models/stock_receipt_item_purchase_price_spec.rb +47 -0
- data/spec/models/stock_receipt_item_spec.rb +77 -0
- data/spec/models/stock_receipt_spec.rb +171 -0
- data/spec/models/supplier_contact_person_spec.rb +77 -0
- data/spec/models/supplier_contact_spec.rb +59 -0
- data/spec/models/supplier_payment_information_spec.rb +93 -0
- data/spec/models/supplier_spec.rb +107 -0
- data/spec/models/tag_spec.rb +65 -0
- data/spec/models/tax_payment_spec.rb +59 -0
- data/spec/models/tax_summary_spec.rb +53 -0
- data/spec/models/ticket_data_spec.rb +101 -0
- data/spec/models/ticket_definition_spec.rb +107 -0
- data/spec/models/ticket_personalization_spec.rb +59 -0
- data/spec/models/ticket_spec.rb +77 -0
- data/spec/models/time_period_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/too_many_requests_error_spec.rb +51 -0
- data/spec/models/top_seller_spec.rb +65 -0
- data/spec/models/total_period_spec.rb +47 -0
- data/spec/models/total_price_spec.rb +65 -0
- data/spec/models/validity_spec.rb +63 -0
- data/spec/models/weather_spec.rb +57 -0
- data/spec/spec_helper.rb +111 -0
- metadata +875 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#KORONA.cloud API v3
|
|
3
|
+
|
|
4
|
+
#Our api provides access to our cloud services
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.13.40
|
|
7
|
+
Contact: support@combase.net
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 4.3.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module KoronaCloudClient
|
|
16
|
+
class KoronaAccountApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# returns the single korona account
|
|
23
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @return [KoronaAccount]
|
|
26
|
+
def get_korona_account(korona_account_id, opts = {})
|
|
27
|
+
data, _status_code, _headers = get_korona_account_with_http_info(korona_account_id, opts)
|
|
28
|
+
data
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# returns the single korona account
|
|
32
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
33
|
+
# @param [Hash] opts the optional parameters
|
|
34
|
+
# @return [Array<(KoronaAccount, Integer, Hash)>] KoronaAccount data, response status code and response headers
|
|
35
|
+
def get_korona_account_with_http_info(korona_account_id, opts = {})
|
|
36
|
+
if @api_client.config.debugging
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: KoronaAccountApi.get_korona_account ...'
|
|
38
|
+
end
|
|
39
|
+
# verify the required parameter 'korona_account_id' is set
|
|
40
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
|
41
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling KoronaAccountApi.get_korona_account"
|
|
42
|
+
end
|
|
43
|
+
# resource path
|
|
44
|
+
local_var_path = '/accounts/{koronaAccountId}'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
|
45
|
+
|
|
46
|
+
# query parameters
|
|
47
|
+
query_params = opts[:query_params] || {}
|
|
48
|
+
|
|
49
|
+
# header parameters
|
|
50
|
+
header_params = opts[:header_params] || {}
|
|
51
|
+
# HTTP header 'Accept' (if needed)
|
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
53
|
+
|
|
54
|
+
# form parameters
|
|
55
|
+
form_params = opts[:form_params] || {}
|
|
56
|
+
|
|
57
|
+
# http body (model)
|
|
58
|
+
post_body = opts[:body]
|
|
59
|
+
|
|
60
|
+
# return_type
|
|
61
|
+
return_type = opts[:return_type] || 'KoronaAccount'
|
|
62
|
+
|
|
63
|
+
# auth_names
|
|
64
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
65
|
+
|
|
66
|
+
new_options = opts.merge(
|
|
67
|
+
:header_params => header_params,
|
|
68
|
+
:query_params => query_params,
|
|
69
|
+
:form_params => form_params,
|
|
70
|
+
:body => post_body,
|
|
71
|
+
:auth_names => auth_names,
|
|
72
|
+
:return_type => return_type
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
76
|
+
if @api_client.config.debugging
|
|
77
|
+
@api_client.config.logger.debug "API called: KoronaAccountApi#get_korona_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
78
|
+
end
|
|
79
|
+
return data, status_code, headers
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
@@ -0,0 +1,897 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#KORONA.cloud API v3
|
|
3
|
+
|
|
4
|
+
#Our api provides access to our cloud services
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.13.40
|
|
7
|
+
Contact: support@combase.net
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 4.3.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module KoronaCloudClient
|
|
16
|
+
class OrganizationalUnitsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# adds a batch of new day ratings
|
|
23
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
24
|
+
# @param organizational_unit_id [String] id of the related object (important: id should match the uuid-format)
|
|
25
|
+
# @param body [Array<DayRating>] an array of new day ratings
|
|
26
|
+
# @param [Hash] opts the optional parameters
|
|
27
|
+
# @return [Array<AddOrUpdateResult>]
|
|
28
|
+
def add_organizational_unit_day_ratings(korona_account_id, organizational_unit_id, body, opts = {})
|
|
29
|
+
data, _status_code, _headers = add_organizational_unit_day_ratings_with_http_info(korona_account_id, organizational_unit_id, body, opts)
|
|
30
|
+
data
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# adds a batch of new day ratings
|
|
34
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
35
|
+
# @param organizational_unit_id [String] id of the related object (important: id should match the uuid-format)
|
|
36
|
+
# @param body [Array<DayRating>] an array of new day ratings
|
|
37
|
+
# @param [Hash] opts the optional parameters
|
|
38
|
+
# @return [Array<(Array<AddOrUpdateResult>, Integer, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers
|
|
39
|
+
def add_organizational_unit_day_ratings_with_http_info(korona_account_id, organizational_unit_id, body, opts = {})
|
|
40
|
+
if @api_client.config.debugging
|
|
41
|
+
@api_client.config.logger.debug 'Calling API: OrganizationalUnitsApi.add_organizational_unit_day_ratings ...'
|
|
42
|
+
end
|
|
43
|
+
# verify the required parameter 'korona_account_id' is set
|
|
44
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
|
45
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling OrganizationalUnitsApi.add_organizational_unit_day_ratings"
|
|
46
|
+
end
|
|
47
|
+
# verify the required parameter 'organizational_unit_id' is set
|
|
48
|
+
if @api_client.config.client_side_validation && organizational_unit_id.nil?
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'organizational_unit_id' when calling OrganizationalUnitsApi.add_organizational_unit_day_ratings"
|
|
50
|
+
end
|
|
51
|
+
# verify the required parameter 'body' is set
|
|
52
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
53
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling OrganizationalUnitsApi.add_organizational_unit_day_ratings"
|
|
54
|
+
end
|
|
55
|
+
# resource path
|
|
56
|
+
local_var_path = '/accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitId}/dayRatings'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s)).sub('{' + 'organizationalUnitId' + '}', CGI.escape(organizational_unit_id.to_s))
|
|
57
|
+
|
|
58
|
+
# query parameters
|
|
59
|
+
query_params = opts[:query_params] || {}
|
|
60
|
+
|
|
61
|
+
# header parameters
|
|
62
|
+
header_params = opts[:header_params] || {}
|
|
63
|
+
# HTTP header 'Accept' (if needed)
|
|
64
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
65
|
+
# HTTP header 'Content-Type'
|
|
66
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
67
|
+
|
|
68
|
+
# form parameters
|
|
69
|
+
form_params = opts[:form_params] || {}
|
|
70
|
+
|
|
71
|
+
# http body (model)
|
|
72
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
73
|
+
|
|
74
|
+
# return_type
|
|
75
|
+
return_type = opts[:return_type] || 'Array<AddOrUpdateResult>'
|
|
76
|
+
|
|
77
|
+
# auth_names
|
|
78
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
79
|
+
|
|
80
|
+
new_options = opts.merge(
|
|
81
|
+
:header_params => header_params,
|
|
82
|
+
:query_params => query_params,
|
|
83
|
+
:form_params => form_params,
|
|
84
|
+
:body => post_body,
|
|
85
|
+
:auth_names => auth_names,
|
|
86
|
+
:return_type => return_type
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
90
|
+
if @api_client.config.debugging
|
|
91
|
+
@api_client.config.logger.debug "API called: OrganizationalUnitsApi#add_organizational_unit_day_ratings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
92
|
+
end
|
|
93
|
+
return data, status_code, headers
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# deletes the single day rating by its id or date
|
|
97
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
98
|
+
# @param organizational_unit_id [String] id of the related object (important: id should match the uuid-format)
|
|
99
|
+
# @param day_rating_id_or_date [String] the id or date (YYYY-MM-DD) of the day rating
|
|
100
|
+
# @param [Hash] opts the optional parameters
|
|
101
|
+
# @return [nil]
|
|
102
|
+
def delete_organizational_unit_day_rating(korona_account_id, organizational_unit_id, day_rating_id_or_date, opts = {})
|
|
103
|
+
delete_organizational_unit_day_rating_with_http_info(korona_account_id, organizational_unit_id, day_rating_id_or_date, opts)
|
|
104
|
+
nil
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# deletes the single day rating by its id or date
|
|
108
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
109
|
+
# @param organizational_unit_id [String] id of the related object (important: id should match the uuid-format)
|
|
110
|
+
# @param day_rating_id_or_date [String] the id or date (YYYY-MM-DD) of the day rating
|
|
111
|
+
# @param [Hash] opts the optional parameters
|
|
112
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
113
|
+
def delete_organizational_unit_day_rating_with_http_info(korona_account_id, organizational_unit_id, day_rating_id_or_date, opts = {})
|
|
114
|
+
if @api_client.config.debugging
|
|
115
|
+
@api_client.config.logger.debug 'Calling API: OrganizationalUnitsApi.delete_organizational_unit_day_rating ...'
|
|
116
|
+
end
|
|
117
|
+
# verify the required parameter 'korona_account_id' is set
|
|
118
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
|
119
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling OrganizationalUnitsApi.delete_organizational_unit_day_rating"
|
|
120
|
+
end
|
|
121
|
+
# verify the required parameter 'organizational_unit_id' is set
|
|
122
|
+
if @api_client.config.client_side_validation && organizational_unit_id.nil?
|
|
123
|
+
fail ArgumentError, "Missing the required parameter 'organizational_unit_id' when calling OrganizationalUnitsApi.delete_organizational_unit_day_rating"
|
|
124
|
+
end
|
|
125
|
+
# verify the required parameter 'day_rating_id_or_date' is set
|
|
126
|
+
if @api_client.config.client_side_validation && day_rating_id_or_date.nil?
|
|
127
|
+
fail ArgumentError, "Missing the required parameter 'day_rating_id_or_date' when calling OrganizationalUnitsApi.delete_organizational_unit_day_rating"
|
|
128
|
+
end
|
|
129
|
+
# resource path
|
|
130
|
+
local_var_path = '/accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitId}/dayRatings/{dayRatingIdOrDate}'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s)).sub('{' + 'organizationalUnitId' + '}', CGI.escape(organizational_unit_id.to_s)).sub('{' + 'dayRatingIdOrDate' + '}', CGI.escape(day_rating_id_or_date.to_s))
|
|
131
|
+
|
|
132
|
+
# query parameters
|
|
133
|
+
query_params = opts[:query_params] || {}
|
|
134
|
+
|
|
135
|
+
# header parameters
|
|
136
|
+
header_params = opts[:header_params] || {}
|
|
137
|
+
# HTTP header 'Accept' (if needed)
|
|
138
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
139
|
+
|
|
140
|
+
# form parameters
|
|
141
|
+
form_params = opts[:form_params] || {}
|
|
142
|
+
|
|
143
|
+
# http body (model)
|
|
144
|
+
post_body = opts[:body]
|
|
145
|
+
|
|
146
|
+
# return_type
|
|
147
|
+
return_type = opts[:return_type]
|
|
148
|
+
|
|
149
|
+
# auth_names
|
|
150
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
151
|
+
|
|
152
|
+
new_options = opts.merge(
|
|
153
|
+
:header_params => header_params,
|
|
154
|
+
:query_params => query_params,
|
|
155
|
+
:form_params => form_params,
|
|
156
|
+
:body => post_body,
|
|
157
|
+
:auth_names => auth_names,
|
|
158
|
+
:return_type => return_type
|
|
159
|
+
)
|
|
160
|
+
|
|
161
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
162
|
+
if @api_client.config.debugging
|
|
163
|
+
@api_client.config.logger.debug "API called: OrganizationalUnitsApi#delete_organizational_unit_day_rating\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
164
|
+
end
|
|
165
|
+
return data, status_code, headers
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# returns the single organizational unit
|
|
169
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
170
|
+
# @param organizational_unit_id [String] id of the related object (important: id should match the uuid-format)
|
|
171
|
+
# @param [Hash] opts the optional parameters
|
|
172
|
+
# @return [OrganizationalUnit]
|
|
173
|
+
def get_organizational_unit(korona_account_id, organizational_unit_id, opts = {})
|
|
174
|
+
data, _status_code, _headers = get_organizational_unit_with_http_info(korona_account_id, organizational_unit_id, opts)
|
|
175
|
+
data
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# returns the single organizational unit
|
|
179
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
180
|
+
# @param organizational_unit_id [String] id of the related object (important: id should match the uuid-format)
|
|
181
|
+
# @param [Hash] opts the optional parameters
|
|
182
|
+
# @return [Array<(OrganizationalUnit, Integer, Hash)>] OrganizationalUnit data, response status code and response headers
|
|
183
|
+
def get_organizational_unit_with_http_info(korona_account_id, organizational_unit_id, opts = {})
|
|
184
|
+
if @api_client.config.debugging
|
|
185
|
+
@api_client.config.logger.debug 'Calling API: OrganizationalUnitsApi.get_organizational_unit ...'
|
|
186
|
+
end
|
|
187
|
+
# verify the required parameter 'korona_account_id' is set
|
|
188
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
|
189
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling OrganizationalUnitsApi.get_organizational_unit"
|
|
190
|
+
end
|
|
191
|
+
# verify the required parameter 'organizational_unit_id' is set
|
|
192
|
+
if @api_client.config.client_side_validation && organizational_unit_id.nil?
|
|
193
|
+
fail ArgumentError, "Missing the required parameter 'organizational_unit_id' when calling OrganizationalUnitsApi.get_organizational_unit"
|
|
194
|
+
end
|
|
195
|
+
# resource path
|
|
196
|
+
local_var_path = '/accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitId}'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s)).sub('{' + 'organizationalUnitId' + '}', CGI.escape(organizational_unit_id.to_s))
|
|
197
|
+
|
|
198
|
+
# query parameters
|
|
199
|
+
query_params = opts[:query_params] || {}
|
|
200
|
+
|
|
201
|
+
# header parameters
|
|
202
|
+
header_params = opts[:header_params] || {}
|
|
203
|
+
# HTTP header 'Accept' (if needed)
|
|
204
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
205
|
+
|
|
206
|
+
# form parameters
|
|
207
|
+
form_params = opts[:form_params] || {}
|
|
208
|
+
|
|
209
|
+
# http body (model)
|
|
210
|
+
post_body = opts[:body]
|
|
211
|
+
|
|
212
|
+
# return_type
|
|
213
|
+
return_type = opts[:return_type] || 'OrganizationalUnit'
|
|
214
|
+
|
|
215
|
+
# auth_names
|
|
216
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
217
|
+
|
|
218
|
+
new_options = opts.merge(
|
|
219
|
+
:header_params => header_params,
|
|
220
|
+
:query_params => query_params,
|
|
221
|
+
:form_params => form_params,
|
|
222
|
+
:body => post_body,
|
|
223
|
+
:auth_names => auth_names,
|
|
224
|
+
:return_type => return_type
|
|
225
|
+
)
|
|
226
|
+
|
|
227
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
228
|
+
if @api_client.config.debugging
|
|
229
|
+
@api_client.config.logger.debug "API called: OrganizationalUnitsApi#get_organizational_unit\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
230
|
+
end
|
|
231
|
+
return data, status_code, headers
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
# returns the single day rating by its id or date
|
|
235
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
236
|
+
# @param organizational_unit_id [String] id of the related object (important: id should match the uuid-format)
|
|
237
|
+
# @param day_rating_id_or_date [String] the id or date (YYYY-MM-DD) of the day rating
|
|
238
|
+
# @param [Hash] opts the optional parameters
|
|
239
|
+
# @return [DayRating]
|
|
240
|
+
def get_organizational_unit_day_rating(korona_account_id, organizational_unit_id, day_rating_id_or_date, opts = {})
|
|
241
|
+
data, _status_code, _headers = get_organizational_unit_day_rating_with_http_info(korona_account_id, organizational_unit_id, day_rating_id_or_date, opts)
|
|
242
|
+
data
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
# returns the single day rating by its id or date
|
|
246
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
247
|
+
# @param organizational_unit_id [String] id of the related object (important: id should match the uuid-format)
|
|
248
|
+
# @param day_rating_id_or_date [String] the id or date (YYYY-MM-DD) of the day rating
|
|
249
|
+
# @param [Hash] opts the optional parameters
|
|
250
|
+
# @return [Array<(DayRating, Integer, Hash)>] DayRating data, response status code and response headers
|
|
251
|
+
def get_organizational_unit_day_rating_with_http_info(korona_account_id, organizational_unit_id, day_rating_id_or_date, opts = {})
|
|
252
|
+
if @api_client.config.debugging
|
|
253
|
+
@api_client.config.logger.debug 'Calling API: OrganizationalUnitsApi.get_organizational_unit_day_rating ...'
|
|
254
|
+
end
|
|
255
|
+
# verify the required parameter 'korona_account_id' is set
|
|
256
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
|
257
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling OrganizationalUnitsApi.get_organizational_unit_day_rating"
|
|
258
|
+
end
|
|
259
|
+
# verify the required parameter 'organizational_unit_id' is set
|
|
260
|
+
if @api_client.config.client_side_validation && organizational_unit_id.nil?
|
|
261
|
+
fail ArgumentError, "Missing the required parameter 'organizational_unit_id' when calling OrganizationalUnitsApi.get_organizational_unit_day_rating"
|
|
262
|
+
end
|
|
263
|
+
# verify the required parameter 'day_rating_id_or_date' is set
|
|
264
|
+
if @api_client.config.client_side_validation && day_rating_id_or_date.nil?
|
|
265
|
+
fail ArgumentError, "Missing the required parameter 'day_rating_id_or_date' when calling OrganizationalUnitsApi.get_organizational_unit_day_rating"
|
|
266
|
+
end
|
|
267
|
+
# resource path
|
|
268
|
+
local_var_path = '/accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitId}/dayRatings/{dayRatingIdOrDate}'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s)).sub('{' + 'organizationalUnitId' + '}', CGI.escape(organizational_unit_id.to_s)).sub('{' + 'dayRatingIdOrDate' + '}', CGI.escape(day_rating_id_or_date.to_s))
|
|
269
|
+
|
|
270
|
+
# query parameters
|
|
271
|
+
query_params = opts[:query_params] || {}
|
|
272
|
+
|
|
273
|
+
# header parameters
|
|
274
|
+
header_params = opts[:header_params] || {}
|
|
275
|
+
# HTTP header 'Accept' (if needed)
|
|
276
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
277
|
+
|
|
278
|
+
# form parameters
|
|
279
|
+
form_params = opts[:form_params] || {}
|
|
280
|
+
|
|
281
|
+
# http body (model)
|
|
282
|
+
post_body = opts[:body]
|
|
283
|
+
|
|
284
|
+
# return_type
|
|
285
|
+
return_type = opts[:return_type] || 'DayRating'
|
|
286
|
+
|
|
287
|
+
# auth_names
|
|
288
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
289
|
+
|
|
290
|
+
new_options = opts.merge(
|
|
291
|
+
:header_params => header_params,
|
|
292
|
+
:query_params => query_params,
|
|
293
|
+
:form_params => form_params,
|
|
294
|
+
:body => post_body,
|
|
295
|
+
:auth_names => auth_names,
|
|
296
|
+
:return_type => return_type
|
|
297
|
+
)
|
|
298
|
+
|
|
299
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
300
|
+
if @api_client.config.debugging
|
|
301
|
+
@api_client.config.logger.debug "API called: OrganizationalUnitsApi#get_organizational_unit_day_rating\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
302
|
+
end
|
|
303
|
+
return data, status_code, headers
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
# lists all organizational unit related day ratings
|
|
307
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
308
|
+
# @param organizational_unit_id [String] id of the related object (important: id should match the uuid-format)
|
|
309
|
+
# @param [Hash] opts the optional parameters
|
|
310
|
+
# @option opts [Integer] :page number of the page to fetch
|
|
311
|
+
# @option opts [Integer] :size amount of objects to return per page
|
|
312
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
|
313
|
+
# @return [ResultListDayRating]
|
|
314
|
+
def get_organizational_unit_day_ratings(korona_account_id, organizational_unit_id, opts = {})
|
|
315
|
+
data, _status_code, _headers = get_organizational_unit_day_ratings_with_http_info(korona_account_id, organizational_unit_id, opts)
|
|
316
|
+
data
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
# lists all organizational unit related day ratings
|
|
320
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
321
|
+
# @param organizational_unit_id [String] id of the related object (important: id should match the uuid-format)
|
|
322
|
+
# @param [Hash] opts the optional parameters
|
|
323
|
+
# @option opts [Integer] :page number of the page to fetch
|
|
324
|
+
# @option opts [Integer] :size amount of objects to return per page
|
|
325
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
|
326
|
+
# @return [Array<(ResultListDayRating, Integer, Hash)>] ResultListDayRating data, response status code and response headers
|
|
327
|
+
def get_organizational_unit_day_ratings_with_http_info(korona_account_id, organizational_unit_id, opts = {})
|
|
328
|
+
if @api_client.config.debugging
|
|
329
|
+
@api_client.config.logger.debug 'Calling API: OrganizationalUnitsApi.get_organizational_unit_day_ratings ...'
|
|
330
|
+
end
|
|
331
|
+
# verify the required parameter 'korona_account_id' is set
|
|
332
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
|
333
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling OrganizationalUnitsApi.get_organizational_unit_day_ratings"
|
|
334
|
+
end
|
|
335
|
+
# verify the required parameter 'organizational_unit_id' is set
|
|
336
|
+
if @api_client.config.client_side_validation && organizational_unit_id.nil?
|
|
337
|
+
fail ArgumentError, "Missing the required parameter 'organizational_unit_id' when calling OrganizationalUnitsApi.get_organizational_unit_day_ratings"
|
|
338
|
+
end
|
|
339
|
+
# resource path
|
|
340
|
+
local_var_path = '/accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitId}/dayRatings'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s)).sub('{' + 'organizationalUnitId' + '}', CGI.escape(organizational_unit_id.to_s))
|
|
341
|
+
|
|
342
|
+
# query parameters
|
|
343
|
+
query_params = opts[:query_params] || {}
|
|
344
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
345
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
|
346
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
347
|
+
|
|
348
|
+
# header parameters
|
|
349
|
+
header_params = opts[:header_params] || {}
|
|
350
|
+
# HTTP header 'Accept' (if needed)
|
|
351
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
352
|
+
|
|
353
|
+
# form parameters
|
|
354
|
+
form_params = opts[:form_params] || {}
|
|
355
|
+
|
|
356
|
+
# http body (model)
|
|
357
|
+
post_body = opts[:body]
|
|
358
|
+
|
|
359
|
+
# return_type
|
|
360
|
+
return_type = opts[:return_type] || 'ResultListDayRating'
|
|
361
|
+
|
|
362
|
+
# auth_names
|
|
363
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
364
|
+
|
|
365
|
+
new_options = opts.merge(
|
|
366
|
+
:header_params => header_params,
|
|
367
|
+
:query_params => query_params,
|
|
368
|
+
:form_params => form_params,
|
|
369
|
+
:body => post_body,
|
|
370
|
+
:auth_names => auth_names,
|
|
371
|
+
:return_type => return_type
|
|
372
|
+
)
|
|
373
|
+
|
|
374
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
375
|
+
if @api_client.config.debugging
|
|
376
|
+
@api_client.config.logger.debug "API called: OrganizationalUnitsApi#get_organizational_unit_day_ratings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
377
|
+
end
|
|
378
|
+
return data, status_code, headers
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
# lists the inventory lists belonging to the organizational unit (KORONA.retail required)
|
|
382
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
383
|
+
# @param organizational_unit_id [String] id of the related object (important: id should match the uuid-format)
|
|
384
|
+
# @param [Hash] opts the optional parameters
|
|
385
|
+
# @option opts [Integer] :page number of the page to fetch
|
|
386
|
+
# @option opts [Integer] :size amount of objects to return per page
|
|
387
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
|
388
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
|
389
|
+
# @option opts [Boolean] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
|
390
|
+
# @option opts [DateTime] :min_create_time min (inclusive) create time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
|
391
|
+
# @option opts [DateTime] :max_create_time max (inclusive) create time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
|
392
|
+
# @option opts [DateTime] :min_booking_time min (inclusive) booking time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
|
393
|
+
# @option opts [DateTime] :max_booking_time max (inclusive) booking time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
|
394
|
+
# @option opts [String] :booking_status booking status (possible values: BOOKED, IN_PROGRESS)
|
|
395
|
+
# @return [ResultListInventoryList]
|
|
396
|
+
def get_organizational_unit_inventory_lists(korona_account_id, organizational_unit_id, opts = {})
|
|
397
|
+
data, _status_code, _headers = get_organizational_unit_inventory_lists_with_http_info(korona_account_id, organizational_unit_id, opts)
|
|
398
|
+
data
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
# lists the inventory lists belonging to the organizational unit (KORONA.retail required)
|
|
402
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
403
|
+
# @param organizational_unit_id [String] id of the related object (important: id should match the uuid-format)
|
|
404
|
+
# @param [Hash] opts the optional parameters
|
|
405
|
+
# @option opts [Integer] :page number of the page to fetch
|
|
406
|
+
# @option opts [Integer] :size amount of objects to return per page
|
|
407
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
|
408
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
|
409
|
+
# @option opts [Boolean] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
|
410
|
+
# @option opts [DateTime] :min_create_time min (inclusive) create time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
|
411
|
+
# @option opts [DateTime] :max_create_time max (inclusive) create time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
|
412
|
+
# @option opts [DateTime] :min_booking_time min (inclusive) booking time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
|
413
|
+
# @option opts [DateTime] :max_booking_time max (inclusive) booking time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
|
414
|
+
# @option opts [String] :booking_status booking status (possible values: BOOKED, IN_PROGRESS)
|
|
415
|
+
# @return [Array<(ResultListInventoryList, Integer, Hash)>] ResultListInventoryList data, response status code and response headers
|
|
416
|
+
def get_organizational_unit_inventory_lists_with_http_info(korona_account_id, organizational_unit_id, opts = {})
|
|
417
|
+
if @api_client.config.debugging
|
|
418
|
+
@api_client.config.logger.debug 'Calling API: OrganizationalUnitsApi.get_organizational_unit_inventory_lists ...'
|
|
419
|
+
end
|
|
420
|
+
# verify the required parameter 'korona_account_id' is set
|
|
421
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
|
422
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling OrganizationalUnitsApi.get_organizational_unit_inventory_lists"
|
|
423
|
+
end
|
|
424
|
+
# verify the required parameter 'organizational_unit_id' is set
|
|
425
|
+
if @api_client.config.client_side_validation && organizational_unit_id.nil?
|
|
426
|
+
fail ArgumentError, "Missing the required parameter 'organizational_unit_id' when calling OrganizationalUnitsApi.get_organizational_unit_inventory_lists"
|
|
427
|
+
end
|
|
428
|
+
allowable_values = ["BOOKED", "IN_PROGRESS"]
|
|
429
|
+
if @api_client.config.client_side_validation && opts[:'booking_status'] && !allowable_values.include?(opts[:'booking_status'])
|
|
430
|
+
fail ArgumentError, "invalid value for \"booking_status\", must be one of #{allowable_values}"
|
|
431
|
+
end
|
|
432
|
+
# resource path
|
|
433
|
+
local_var_path = '/accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitId}/inventoryLists'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s)).sub('{' + 'organizationalUnitId' + '}', CGI.escape(organizational_unit_id.to_s))
|
|
434
|
+
|
|
435
|
+
# query parameters
|
|
436
|
+
query_params = opts[:query_params] || {}
|
|
437
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
438
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
|
439
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
440
|
+
query_params[:'revision'] = opts[:'revision'] if !opts[:'revision'].nil?
|
|
441
|
+
query_params[:'includeDeleted'] = opts[:'include_deleted'] if !opts[:'include_deleted'].nil?
|
|
442
|
+
query_params[:'minCreateTime'] = opts[:'min_create_time'] if !opts[:'min_create_time'].nil?
|
|
443
|
+
query_params[:'maxCreateTime'] = opts[:'max_create_time'] if !opts[:'max_create_time'].nil?
|
|
444
|
+
query_params[:'minBookingTime'] = opts[:'min_booking_time'] if !opts[:'min_booking_time'].nil?
|
|
445
|
+
query_params[:'maxBookingTime'] = opts[:'max_booking_time'] if !opts[:'max_booking_time'].nil?
|
|
446
|
+
query_params[:'bookingStatus'] = opts[:'booking_status'] if !opts[:'booking_status'].nil?
|
|
447
|
+
|
|
448
|
+
# header parameters
|
|
449
|
+
header_params = opts[:header_params] || {}
|
|
450
|
+
# HTTP header 'Accept' (if needed)
|
|
451
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
452
|
+
|
|
453
|
+
# form parameters
|
|
454
|
+
form_params = opts[:form_params] || {}
|
|
455
|
+
|
|
456
|
+
# http body (model)
|
|
457
|
+
post_body = opts[:body]
|
|
458
|
+
|
|
459
|
+
# return_type
|
|
460
|
+
return_type = opts[:return_type] || 'ResultListInventoryList'
|
|
461
|
+
|
|
462
|
+
# auth_names
|
|
463
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
464
|
+
|
|
465
|
+
new_options = opts.merge(
|
|
466
|
+
:header_params => header_params,
|
|
467
|
+
:query_params => query_params,
|
|
468
|
+
:form_params => form_params,
|
|
469
|
+
:body => post_body,
|
|
470
|
+
:auth_names => auth_names,
|
|
471
|
+
:return_type => return_type
|
|
472
|
+
)
|
|
473
|
+
|
|
474
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
475
|
+
if @api_client.config.debugging
|
|
476
|
+
@api_client.config.logger.debug "API called: OrganizationalUnitsApi#get_organizational_unit_inventory_lists\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
477
|
+
end
|
|
478
|
+
return data, status_code, headers
|
|
479
|
+
end
|
|
480
|
+
|
|
481
|
+
# lists the product stocks of the organizational unit, in case it contains a warehouse (KORONA.retail required)
|
|
482
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
483
|
+
# @param organizational_unit_id [String] id of the related object (important: id should match the uuid-format)
|
|
484
|
+
# @param [Hash] opts the optional parameters
|
|
485
|
+
# @option opts [Integer] :page number of the page to fetch
|
|
486
|
+
# @option opts [Integer] :size amount of objects to return per page
|
|
487
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
|
488
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
|
489
|
+
# @return [ResultListProductStock]
|
|
490
|
+
def get_organizational_unit_product_stocks(korona_account_id, organizational_unit_id, opts = {})
|
|
491
|
+
data, _status_code, _headers = get_organizational_unit_product_stocks_with_http_info(korona_account_id, organizational_unit_id, opts)
|
|
492
|
+
data
|
|
493
|
+
end
|
|
494
|
+
|
|
495
|
+
# lists the product stocks of the organizational unit, in case it contains a warehouse (KORONA.retail required)
|
|
496
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
497
|
+
# @param organizational_unit_id [String] id of the related object (important: id should match the uuid-format)
|
|
498
|
+
# @param [Hash] opts the optional parameters
|
|
499
|
+
# @option opts [Integer] :page number of the page to fetch
|
|
500
|
+
# @option opts [Integer] :size amount of objects to return per page
|
|
501
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
|
502
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
|
503
|
+
# @return [Array<(ResultListProductStock, Integer, Hash)>] ResultListProductStock data, response status code and response headers
|
|
504
|
+
def get_organizational_unit_product_stocks_with_http_info(korona_account_id, organizational_unit_id, opts = {})
|
|
505
|
+
if @api_client.config.debugging
|
|
506
|
+
@api_client.config.logger.debug 'Calling API: OrganizationalUnitsApi.get_organizational_unit_product_stocks ...'
|
|
507
|
+
end
|
|
508
|
+
# verify the required parameter 'korona_account_id' is set
|
|
509
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
|
510
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling OrganizationalUnitsApi.get_organizational_unit_product_stocks"
|
|
511
|
+
end
|
|
512
|
+
# verify the required parameter 'organizational_unit_id' is set
|
|
513
|
+
if @api_client.config.client_side_validation && organizational_unit_id.nil?
|
|
514
|
+
fail ArgumentError, "Missing the required parameter 'organizational_unit_id' when calling OrganizationalUnitsApi.get_organizational_unit_product_stocks"
|
|
515
|
+
end
|
|
516
|
+
# resource path
|
|
517
|
+
local_var_path = '/accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitId}/productStocks'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s)).sub('{' + 'organizationalUnitId' + '}', CGI.escape(organizational_unit_id.to_s))
|
|
518
|
+
|
|
519
|
+
# query parameters
|
|
520
|
+
query_params = opts[:query_params] || {}
|
|
521
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
522
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
|
523
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
524
|
+
query_params[:'revision'] = opts[:'revision'] if !opts[:'revision'].nil?
|
|
525
|
+
|
|
526
|
+
# header parameters
|
|
527
|
+
header_params = opts[:header_params] || {}
|
|
528
|
+
# HTTP header 'Accept' (if needed)
|
|
529
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
530
|
+
|
|
531
|
+
# form parameters
|
|
532
|
+
form_params = opts[:form_params] || {}
|
|
533
|
+
|
|
534
|
+
# http body (model)
|
|
535
|
+
post_body = opts[:body]
|
|
536
|
+
|
|
537
|
+
# return_type
|
|
538
|
+
return_type = opts[:return_type] || 'ResultListProductStock'
|
|
539
|
+
|
|
540
|
+
# auth_names
|
|
541
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
542
|
+
|
|
543
|
+
new_options = opts.merge(
|
|
544
|
+
:header_params => header_params,
|
|
545
|
+
:query_params => query_params,
|
|
546
|
+
:form_params => form_params,
|
|
547
|
+
:body => post_body,
|
|
548
|
+
:auth_names => auth_names,
|
|
549
|
+
:return_type => return_type
|
|
550
|
+
)
|
|
551
|
+
|
|
552
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
553
|
+
if @api_client.config.debugging
|
|
554
|
+
@api_client.config.logger.debug "API called: OrganizationalUnitsApi#get_organizational_unit_product_stocks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
555
|
+
end
|
|
556
|
+
return data, status_code, headers
|
|
557
|
+
end
|
|
558
|
+
|
|
559
|
+
# lists the stock receipts belonging to the organizational unit (KORONA.retail required)
|
|
560
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
561
|
+
# @param organizational_unit_id [String] id of the related object (important: id should match the uuid-format)
|
|
562
|
+
# @param [Hash] opts the optional parameters
|
|
563
|
+
# @option opts [Integer] :page number of the page to fetch
|
|
564
|
+
# @option opts [Integer] :size amount of objects to return per page
|
|
565
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
|
566
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
|
567
|
+
# @option opts [Boolean] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
|
568
|
+
# @option opts [DateTime] :min_create_time min (inclusive) create time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
|
569
|
+
# @option opts [DateTime] :max_create_time max (inclusive) create time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
|
570
|
+
# @option opts [DateTime] :min_booking_time min (inclusive) booking time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
|
571
|
+
# @option opts [DateTime] :max_booking_time max (inclusive) booking time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
|
572
|
+
# @option opts [String] :source_organizational_unit source organizational unit
|
|
573
|
+
# @option opts [String] :booking_status booking status (possible values: BOOKED, IN_PROGRESS)
|
|
574
|
+
# @option opts [String] :number number of the related object
|
|
575
|
+
# @return [ResultListStockReceipt]
|
|
576
|
+
def get_organizational_unit_stock_receipts(korona_account_id, organizational_unit_id, opts = {})
|
|
577
|
+
data, _status_code, _headers = get_organizational_unit_stock_receipts_with_http_info(korona_account_id, organizational_unit_id, opts)
|
|
578
|
+
data
|
|
579
|
+
end
|
|
580
|
+
|
|
581
|
+
# lists the stock receipts belonging to the organizational unit (KORONA.retail required)
|
|
582
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
583
|
+
# @param organizational_unit_id [String] id of the related object (important: id should match the uuid-format)
|
|
584
|
+
# @param [Hash] opts the optional parameters
|
|
585
|
+
# @option opts [Integer] :page number of the page to fetch
|
|
586
|
+
# @option opts [Integer] :size amount of objects to return per page
|
|
587
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
|
588
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
|
589
|
+
# @option opts [Boolean] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
|
590
|
+
# @option opts [DateTime] :min_create_time min (inclusive) create time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
|
591
|
+
# @option opts [DateTime] :max_create_time max (inclusive) create time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
|
592
|
+
# @option opts [DateTime] :min_booking_time min (inclusive) booking time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
|
593
|
+
# @option opts [DateTime] :max_booking_time max (inclusive) booking time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
|
594
|
+
# @option opts [String] :source_organizational_unit source organizational unit
|
|
595
|
+
# @option opts [String] :booking_status booking status (possible values: BOOKED, IN_PROGRESS)
|
|
596
|
+
# @option opts [String] :number number of the related object
|
|
597
|
+
# @return [Array<(ResultListStockReceipt, Integer, Hash)>] ResultListStockReceipt data, response status code and response headers
|
|
598
|
+
def get_organizational_unit_stock_receipts_with_http_info(korona_account_id, organizational_unit_id, opts = {})
|
|
599
|
+
if @api_client.config.debugging
|
|
600
|
+
@api_client.config.logger.debug 'Calling API: OrganizationalUnitsApi.get_organizational_unit_stock_receipts ...'
|
|
601
|
+
end
|
|
602
|
+
# verify the required parameter 'korona_account_id' is set
|
|
603
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
|
604
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling OrganizationalUnitsApi.get_organizational_unit_stock_receipts"
|
|
605
|
+
end
|
|
606
|
+
# verify the required parameter 'organizational_unit_id' is set
|
|
607
|
+
if @api_client.config.client_side_validation && organizational_unit_id.nil?
|
|
608
|
+
fail ArgumentError, "Missing the required parameter 'organizational_unit_id' when calling OrganizationalUnitsApi.get_organizational_unit_stock_receipts"
|
|
609
|
+
end
|
|
610
|
+
allowable_values = ["BOOKED", "IN_PROGRESS"]
|
|
611
|
+
if @api_client.config.client_side_validation && opts[:'booking_status'] && !allowable_values.include?(opts[:'booking_status'])
|
|
612
|
+
fail ArgumentError, "invalid value for \"booking_status\", must be one of #{allowable_values}"
|
|
613
|
+
end
|
|
614
|
+
# resource path
|
|
615
|
+
local_var_path = '/accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitId}/stockReceipts'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s)).sub('{' + 'organizationalUnitId' + '}', CGI.escape(organizational_unit_id.to_s))
|
|
616
|
+
|
|
617
|
+
# query parameters
|
|
618
|
+
query_params = opts[:query_params] || {}
|
|
619
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
620
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
|
621
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
622
|
+
query_params[:'revision'] = opts[:'revision'] if !opts[:'revision'].nil?
|
|
623
|
+
query_params[:'includeDeleted'] = opts[:'include_deleted'] if !opts[:'include_deleted'].nil?
|
|
624
|
+
query_params[:'minCreateTime'] = opts[:'min_create_time'] if !opts[:'min_create_time'].nil?
|
|
625
|
+
query_params[:'maxCreateTime'] = opts[:'max_create_time'] if !opts[:'max_create_time'].nil?
|
|
626
|
+
query_params[:'minBookingTime'] = opts[:'min_booking_time'] if !opts[:'min_booking_time'].nil?
|
|
627
|
+
query_params[:'maxBookingTime'] = opts[:'max_booking_time'] if !opts[:'max_booking_time'].nil?
|
|
628
|
+
query_params[:'sourceOrganizationalUnit'] = opts[:'source_organizational_unit'] if !opts[:'source_organizational_unit'].nil?
|
|
629
|
+
query_params[:'bookingStatus'] = opts[:'booking_status'] if !opts[:'booking_status'].nil?
|
|
630
|
+
query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
|
|
631
|
+
|
|
632
|
+
# header parameters
|
|
633
|
+
header_params = opts[:header_params] || {}
|
|
634
|
+
# HTTP header 'Accept' (if needed)
|
|
635
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
636
|
+
|
|
637
|
+
# form parameters
|
|
638
|
+
form_params = opts[:form_params] || {}
|
|
639
|
+
|
|
640
|
+
# http body (model)
|
|
641
|
+
post_body = opts[:body]
|
|
642
|
+
|
|
643
|
+
# return_type
|
|
644
|
+
return_type = opts[:return_type] || 'ResultListStockReceipt'
|
|
645
|
+
|
|
646
|
+
# auth_names
|
|
647
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
648
|
+
|
|
649
|
+
new_options = opts.merge(
|
|
650
|
+
:header_params => header_params,
|
|
651
|
+
:query_params => query_params,
|
|
652
|
+
:form_params => form_params,
|
|
653
|
+
:body => post_body,
|
|
654
|
+
:auth_names => auth_names,
|
|
655
|
+
:return_type => return_type
|
|
656
|
+
)
|
|
657
|
+
|
|
658
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
659
|
+
if @api_client.config.debugging
|
|
660
|
+
@api_client.config.logger.debug "API called: OrganizationalUnitsApi#get_organizational_unit_stock_receipts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
661
|
+
end
|
|
662
|
+
return data, status_code, headers
|
|
663
|
+
end
|
|
664
|
+
|
|
665
|
+
# lists all organizational units
|
|
666
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
667
|
+
# @param [Hash] opts the optional parameters
|
|
668
|
+
# @option opts [Integer] :page number of the page to fetch
|
|
669
|
+
# @option opts [Integer] :size amount of objects to return per page
|
|
670
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
|
671
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
|
672
|
+
# @option opts [Boolean] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
|
673
|
+
# @option opts [String] :number number of the related object
|
|
674
|
+
# @return [ResultListOrganizationalUnit]
|
|
675
|
+
def get_organizational_units(korona_account_id, opts = {})
|
|
676
|
+
data, _status_code, _headers = get_organizational_units_with_http_info(korona_account_id, opts)
|
|
677
|
+
data
|
|
678
|
+
end
|
|
679
|
+
|
|
680
|
+
# lists all organizational units
|
|
681
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
682
|
+
# @param [Hash] opts the optional parameters
|
|
683
|
+
# @option opts [Integer] :page number of the page to fetch
|
|
684
|
+
# @option opts [Integer] :size amount of objects to return per page
|
|
685
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
|
686
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
|
687
|
+
# @option opts [Boolean] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
|
688
|
+
# @option opts [String] :number number of the related object
|
|
689
|
+
# @return [Array<(ResultListOrganizationalUnit, Integer, Hash)>] ResultListOrganizationalUnit data, response status code and response headers
|
|
690
|
+
def get_organizational_units_with_http_info(korona_account_id, opts = {})
|
|
691
|
+
if @api_client.config.debugging
|
|
692
|
+
@api_client.config.logger.debug 'Calling API: OrganizationalUnitsApi.get_organizational_units ...'
|
|
693
|
+
end
|
|
694
|
+
# verify the required parameter 'korona_account_id' is set
|
|
695
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
|
696
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling OrganizationalUnitsApi.get_organizational_units"
|
|
697
|
+
end
|
|
698
|
+
# resource path
|
|
699
|
+
local_var_path = '/accounts/{koronaAccountId}/organizationalUnits'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
|
700
|
+
|
|
701
|
+
# query parameters
|
|
702
|
+
query_params = opts[:query_params] || {}
|
|
703
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
704
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
|
705
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
706
|
+
query_params[:'revision'] = opts[:'revision'] if !opts[:'revision'].nil?
|
|
707
|
+
query_params[:'includeDeleted'] = opts[:'include_deleted'] if !opts[:'include_deleted'].nil?
|
|
708
|
+
query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
|
|
709
|
+
|
|
710
|
+
# header parameters
|
|
711
|
+
header_params = opts[:header_params] || {}
|
|
712
|
+
# HTTP header 'Accept' (if needed)
|
|
713
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
714
|
+
|
|
715
|
+
# form parameters
|
|
716
|
+
form_params = opts[:form_params] || {}
|
|
717
|
+
|
|
718
|
+
# http body (model)
|
|
719
|
+
post_body = opts[:body]
|
|
720
|
+
|
|
721
|
+
# return_type
|
|
722
|
+
return_type = opts[:return_type] || 'ResultListOrganizationalUnit'
|
|
723
|
+
|
|
724
|
+
# auth_names
|
|
725
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
726
|
+
|
|
727
|
+
new_options = opts.merge(
|
|
728
|
+
:header_params => header_params,
|
|
729
|
+
:query_params => query_params,
|
|
730
|
+
:form_params => form_params,
|
|
731
|
+
:body => post_body,
|
|
732
|
+
:auth_names => auth_names,
|
|
733
|
+
:return_type => return_type
|
|
734
|
+
)
|
|
735
|
+
|
|
736
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
737
|
+
if @api_client.config.debugging
|
|
738
|
+
@api_client.config.logger.debug "API called: OrganizationalUnitsApi#get_organizational_units\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
739
|
+
end
|
|
740
|
+
return data, status_code, headers
|
|
741
|
+
end
|
|
742
|
+
|
|
743
|
+
# updates the day rating by its id or date
|
|
744
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
745
|
+
# @param organizational_unit_id [String] id of the related object (important: id should match the uuid-format)
|
|
746
|
+
# @param day_rating_id_or_date [String] the id or date (YYYY-MM-DD) of the day rating
|
|
747
|
+
# @param body [DayRating] the properties to update of the day rating
|
|
748
|
+
# @param [Hash] opts the optional parameters
|
|
749
|
+
# @return [nil]
|
|
750
|
+
def update_organizational_unit_day_rating(korona_account_id, organizational_unit_id, day_rating_id_or_date, body, opts = {})
|
|
751
|
+
update_organizational_unit_day_rating_with_http_info(korona_account_id, organizational_unit_id, day_rating_id_or_date, body, opts)
|
|
752
|
+
nil
|
|
753
|
+
end
|
|
754
|
+
|
|
755
|
+
# updates the day rating by its id or date
|
|
756
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
757
|
+
# @param organizational_unit_id [String] id of the related object (important: id should match the uuid-format)
|
|
758
|
+
# @param day_rating_id_or_date [String] the id or date (YYYY-MM-DD) of the day rating
|
|
759
|
+
# @param body [DayRating] the properties to update of the day rating
|
|
760
|
+
# @param [Hash] opts the optional parameters
|
|
761
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
762
|
+
def update_organizational_unit_day_rating_with_http_info(korona_account_id, organizational_unit_id, day_rating_id_or_date, body, opts = {})
|
|
763
|
+
if @api_client.config.debugging
|
|
764
|
+
@api_client.config.logger.debug 'Calling API: OrganizationalUnitsApi.update_organizational_unit_day_rating ...'
|
|
765
|
+
end
|
|
766
|
+
# verify the required parameter 'korona_account_id' is set
|
|
767
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
|
768
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling OrganizationalUnitsApi.update_organizational_unit_day_rating"
|
|
769
|
+
end
|
|
770
|
+
# verify the required parameter 'organizational_unit_id' is set
|
|
771
|
+
if @api_client.config.client_side_validation && organizational_unit_id.nil?
|
|
772
|
+
fail ArgumentError, "Missing the required parameter 'organizational_unit_id' when calling OrganizationalUnitsApi.update_organizational_unit_day_rating"
|
|
773
|
+
end
|
|
774
|
+
# verify the required parameter 'day_rating_id_or_date' is set
|
|
775
|
+
if @api_client.config.client_side_validation && day_rating_id_or_date.nil?
|
|
776
|
+
fail ArgumentError, "Missing the required parameter 'day_rating_id_or_date' when calling OrganizationalUnitsApi.update_organizational_unit_day_rating"
|
|
777
|
+
end
|
|
778
|
+
# verify the required parameter 'body' is set
|
|
779
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
780
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling OrganizationalUnitsApi.update_organizational_unit_day_rating"
|
|
781
|
+
end
|
|
782
|
+
# resource path
|
|
783
|
+
local_var_path = '/accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitId}/dayRatings/{dayRatingIdOrDate}'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s)).sub('{' + 'organizationalUnitId' + '}', CGI.escape(organizational_unit_id.to_s)).sub('{' + 'dayRatingIdOrDate' + '}', CGI.escape(day_rating_id_or_date.to_s))
|
|
784
|
+
|
|
785
|
+
# query parameters
|
|
786
|
+
query_params = opts[:query_params] || {}
|
|
787
|
+
|
|
788
|
+
# header parameters
|
|
789
|
+
header_params = opts[:header_params] || {}
|
|
790
|
+
# HTTP header 'Accept' (if needed)
|
|
791
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
792
|
+
# HTTP header 'Content-Type'
|
|
793
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
794
|
+
|
|
795
|
+
# form parameters
|
|
796
|
+
form_params = opts[:form_params] || {}
|
|
797
|
+
|
|
798
|
+
# http body (model)
|
|
799
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
800
|
+
|
|
801
|
+
# return_type
|
|
802
|
+
return_type = opts[:return_type]
|
|
803
|
+
|
|
804
|
+
# auth_names
|
|
805
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
806
|
+
|
|
807
|
+
new_options = opts.merge(
|
|
808
|
+
:header_params => header_params,
|
|
809
|
+
:query_params => query_params,
|
|
810
|
+
:form_params => form_params,
|
|
811
|
+
:body => post_body,
|
|
812
|
+
:auth_names => auth_names,
|
|
813
|
+
:return_type => return_type
|
|
814
|
+
)
|
|
815
|
+
|
|
816
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
817
|
+
if @api_client.config.debugging
|
|
818
|
+
@api_client.config.logger.debug "API called: OrganizationalUnitsApi#update_organizational_unit_day_rating\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
819
|
+
end
|
|
820
|
+
return data, status_code, headers
|
|
821
|
+
end
|
|
822
|
+
|
|
823
|
+
# updates a batch of day ratings
|
|
824
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
825
|
+
# @param organizational_unit_id [String] id of the related object (important: id should match the uuid-format)
|
|
826
|
+
# @param body [Array<DayRating>] an array of new day ratings
|
|
827
|
+
# @param [Hash] opts the optional parameters
|
|
828
|
+
# @return [Array<AddOrUpdateResult>]
|
|
829
|
+
def update_organizational_unit_day_ratings(korona_account_id, organizational_unit_id, body, opts = {})
|
|
830
|
+
data, _status_code, _headers = update_organizational_unit_day_ratings_with_http_info(korona_account_id, organizational_unit_id, body, opts)
|
|
831
|
+
data
|
|
832
|
+
end
|
|
833
|
+
|
|
834
|
+
# updates a batch of day ratings
|
|
835
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
836
|
+
# @param organizational_unit_id [String] id of the related object (important: id should match the uuid-format)
|
|
837
|
+
# @param body [Array<DayRating>] an array of new day ratings
|
|
838
|
+
# @param [Hash] opts the optional parameters
|
|
839
|
+
# @return [Array<(Array<AddOrUpdateResult>, Integer, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers
|
|
840
|
+
def update_organizational_unit_day_ratings_with_http_info(korona_account_id, organizational_unit_id, body, opts = {})
|
|
841
|
+
if @api_client.config.debugging
|
|
842
|
+
@api_client.config.logger.debug 'Calling API: OrganizationalUnitsApi.update_organizational_unit_day_ratings ...'
|
|
843
|
+
end
|
|
844
|
+
# verify the required parameter 'korona_account_id' is set
|
|
845
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
|
846
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling OrganizationalUnitsApi.update_organizational_unit_day_ratings"
|
|
847
|
+
end
|
|
848
|
+
# verify the required parameter 'organizational_unit_id' is set
|
|
849
|
+
if @api_client.config.client_side_validation && organizational_unit_id.nil?
|
|
850
|
+
fail ArgumentError, "Missing the required parameter 'organizational_unit_id' when calling OrganizationalUnitsApi.update_organizational_unit_day_ratings"
|
|
851
|
+
end
|
|
852
|
+
# verify the required parameter 'body' is set
|
|
853
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
854
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling OrganizationalUnitsApi.update_organizational_unit_day_ratings"
|
|
855
|
+
end
|
|
856
|
+
# resource path
|
|
857
|
+
local_var_path = '/accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitId}/dayRatings'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s)).sub('{' + 'organizationalUnitId' + '}', CGI.escape(organizational_unit_id.to_s))
|
|
858
|
+
|
|
859
|
+
# query parameters
|
|
860
|
+
query_params = opts[:query_params] || {}
|
|
861
|
+
|
|
862
|
+
# header parameters
|
|
863
|
+
header_params = opts[:header_params] || {}
|
|
864
|
+
# HTTP header 'Accept' (if needed)
|
|
865
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
866
|
+
# HTTP header 'Content-Type'
|
|
867
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
868
|
+
|
|
869
|
+
# form parameters
|
|
870
|
+
form_params = opts[:form_params] || {}
|
|
871
|
+
|
|
872
|
+
# http body (model)
|
|
873
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
874
|
+
|
|
875
|
+
# return_type
|
|
876
|
+
return_type = opts[:return_type] || 'Array<AddOrUpdateResult>'
|
|
877
|
+
|
|
878
|
+
# auth_names
|
|
879
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
880
|
+
|
|
881
|
+
new_options = opts.merge(
|
|
882
|
+
:header_params => header_params,
|
|
883
|
+
:query_params => query_params,
|
|
884
|
+
:form_params => form_params,
|
|
885
|
+
:body => post_body,
|
|
886
|
+
:auth_names => auth_names,
|
|
887
|
+
:return_type => return_type
|
|
888
|
+
)
|
|
889
|
+
|
|
890
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
891
|
+
if @api_client.config.debugging
|
|
892
|
+
@api_client.config.logger.debug "API called: OrganizationalUnitsApi#update_organizational_unit_day_ratings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
893
|
+
end
|
|
894
|
+
return data, status_code, headers
|
|
895
|
+
end
|
|
896
|
+
end
|
|
897
|
+
end
|