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