korona-cloud-client 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- 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,305 @@
|
|
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 StatisticsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# returns information about the revenue in the given period
|
23
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [String] :organizational_unit number of the organizational unit
|
26
|
+
# @option opts [String] :period time period for comparison
|
27
|
+
# @return [StatisticRevenueData]
|
28
|
+
def get_revenue(korona_account_id, opts = {})
|
29
|
+
data, _status_code, _headers = get_revenue_with_http_info(korona_account_id, opts)
|
30
|
+
data
|
31
|
+
end
|
32
|
+
|
33
|
+
# returns information about the revenue in the given period
|
34
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @option opts [String] :organizational_unit number of the organizational unit
|
37
|
+
# @option opts [String] :period time period for comparison
|
38
|
+
# @return [Array<(StatisticRevenueData, Integer, Hash)>] StatisticRevenueData data, response status code and response headers
|
39
|
+
def get_revenue_with_http_info(korona_account_id, opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: StatisticsApi.get_revenue ...'
|
42
|
+
end
|
43
|
+
# verify the required parameter 'korona_account_id' is set
|
44
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling StatisticsApi.get_revenue"
|
46
|
+
end
|
47
|
+
allowable_values = ["DAY", "WEEK", "MONTH", "YEAR"]
|
48
|
+
if @api_client.config.client_side_validation && opts[:'period'] && !allowable_values.include?(opts[:'period'])
|
49
|
+
fail ArgumentError, "invalid value for \"period\", must be one of #{allowable_values}"
|
50
|
+
end
|
51
|
+
# resource path
|
52
|
+
local_var_path = '/accounts/{koronaAccountId}/statistics/revenueData'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
53
|
+
|
54
|
+
# query parameters
|
55
|
+
query_params = opts[:query_params] || {}
|
56
|
+
query_params[:'organizationalUnit'] = opts[:'organizational_unit'] if !opts[:'organizational_unit'].nil?
|
57
|
+
query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
|
58
|
+
|
59
|
+
# header parameters
|
60
|
+
header_params = opts[:header_params] || {}
|
61
|
+
# HTTP header 'Accept' (if needed)
|
62
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
63
|
+
|
64
|
+
# form parameters
|
65
|
+
form_params = opts[:form_params] || {}
|
66
|
+
|
67
|
+
# http body (model)
|
68
|
+
post_body = opts[:body]
|
69
|
+
|
70
|
+
# return_type
|
71
|
+
return_type = opts[:return_type] || 'StatisticRevenueData'
|
72
|
+
|
73
|
+
# auth_names
|
74
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
75
|
+
|
76
|
+
new_options = opts.merge(
|
77
|
+
:header_params => header_params,
|
78
|
+
:query_params => query_params,
|
79
|
+
:form_params => form_params,
|
80
|
+
:body => post_body,
|
81
|
+
:auth_names => auth_names,
|
82
|
+
:return_type => return_type
|
83
|
+
)
|
84
|
+
|
85
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
86
|
+
if @api_client.config.debugging
|
87
|
+
@api_client.config.logger.debug "API called: StatisticsApi#get_revenue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
88
|
+
end
|
89
|
+
return data, status_code, headers
|
90
|
+
end
|
91
|
+
|
92
|
+
# returns the turnover per customer group during the given period
|
93
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
94
|
+
# @param [Hash] opts the optional parameters
|
95
|
+
# @option opts [String] :organizational_unit number of the organizational unit
|
96
|
+
# @option opts [String] :period time period for comparison
|
97
|
+
# @return [StatisticMapStringRevenueData]
|
98
|
+
def get_revenue_for_customer_groups(korona_account_id, opts = {})
|
99
|
+
data, _status_code, _headers = get_revenue_for_customer_groups_with_http_info(korona_account_id, opts)
|
100
|
+
data
|
101
|
+
end
|
102
|
+
|
103
|
+
# returns the turnover per customer group during the given period
|
104
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
105
|
+
# @param [Hash] opts the optional parameters
|
106
|
+
# @option opts [String] :organizational_unit number of the organizational unit
|
107
|
+
# @option opts [String] :period time period for comparison
|
108
|
+
# @return [Array<(StatisticMapStringRevenueData, Integer, Hash)>] StatisticMapStringRevenueData data, response status code and response headers
|
109
|
+
def get_revenue_for_customer_groups_with_http_info(korona_account_id, opts = {})
|
110
|
+
if @api_client.config.debugging
|
111
|
+
@api_client.config.logger.debug 'Calling API: StatisticsApi.get_revenue_for_customer_groups ...'
|
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 StatisticsApi.get_revenue_for_customer_groups"
|
116
|
+
end
|
117
|
+
allowable_values = ["DAY", "WEEK", "MONTH", "YEAR"]
|
118
|
+
if @api_client.config.client_side_validation && opts[:'period'] && !allowable_values.include?(opts[:'period'])
|
119
|
+
fail ArgumentError, "invalid value for \"period\", must be one of #{allowable_values}"
|
120
|
+
end
|
121
|
+
# resource path
|
122
|
+
local_var_path = '/accounts/{koronaAccountId}/statistics/revenueDataForCustomerGroups'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
123
|
+
|
124
|
+
# query parameters
|
125
|
+
query_params = opts[:query_params] || {}
|
126
|
+
query_params[:'organizationalUnit'] = opts[:'organizational_unit'] if !opts[:'organizational_unit'].nil?
|
127
|
+
query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
|
128
|
+
|
129
|
+
# header parameters
|
130
|
+
header_params = opts[:header_params] || {}
|
131
|
+
# HTTP header 'Accept' (if needed)
|
132
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
133
|
+
|
134
|
+
# form parameters
|
135
|
+
form_params = opts[:form_params] || {}
|
136
|
+
|
137
|
+
# http body (model)
|
138
|
+
post_body = opts[:body]
|
139
|
+
|
140
|
+
# return_type
|
141
|
+
return_type = opts[:return_type] || 'StatisticMapStringRevenueData'
|
142
|
+
|
143
|
+
# auth_names
|
144
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
145
|
+
|
146
|
+
new_options = opts.merge(
|
147
|
+
:header_params => header_params,
|
148
|
+
:query_params => query_params,
|
149
|
+
:form_params => form_params,
|
150
|
+
:body => post_body,
|
151
|
+
:auth_names => auth_names,
|
152
|
+
:return_type => return_type
|
153
|
+
)
|
154
|
+
|
155
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
156
|
+
if @api_client.config.debugging
|
157
|
+
@api_client.config.logger.debug "API called: StatisticsApi#get_revenue_for_customer_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
158
|
+
end
|
159
|
+
return data, status_code, headers
|
160
|
+
end
|
161
|
+
|
162
|
+
# returns the turnover per hour during the given period
|
163
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
164
|
+
# @param [Hash] opts the optional parameters
|
165
|
+
# @option opts [String] :organizational_unit number of the organizational unit
|
166
|
+
# @option opts [String] :period time period for comparison
|
167
|
+
# @return [StatisticMapStringRevenueData]
|
168
|
+
def get_revenue_hourly(korona_account_id, opts = {})
|
169
|
+
data, _status_code, _headers = get_revenue_hourly_with_http_info(korona_account_id, opts)
|
170
|
+
data
|
171
|
+
end
|
172
|
+
|
173
|
+
# returns the turnover per hour during the given period
|
174
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
175
|
+
# @param [Hash] opts the optional parameters
|
176
|
+
# @option opts [String] :organizational_unit number of the organizational unit
|
177
|
+
# @option opts [String] :period time period for comparison
|
178
|
+
# @return [Array<(StatisticMapStringRevenueData, Integer, Hash)>] StatisticMapStringRevenueData data, response status code and response headers
|
179
|
+
def get_revenue_hourly_with_http_info(korona_account_id, opts = {})
|
180
|
+
if @api_client.config.debugging
|
181
|
+
@api_client.config.logger.debug 'Calling API: StatisticsApi.get_revenue_hourly ...'
|
182
|
+
end
|
183
|
+
# verify the required parameter 'korona_account_id' is set
|
184
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
185
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling StatisticsApi.get_revenue_hourly"
|
186
|
+
end
|
187
|
+
allowable_values = ["DAY", "WEEK", "MONTH", "YEAR"]
|
188
|
+
if @api_client.config.client_side_validation && opts[:'period'] && !allowable_values.include?(opts[:'period'])
|
189
|
+
fail ArgumentError, "invalid value for \"period\", must be one of #{allowable_values}"
|
190
|
+
end
|
191
|
+
# resource path
|
192
|
+
local_var_path = '/accounts/{koronaAccountId}/statistics/revenueDataHourly'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
193
|
+
|
194
|
+
# query parameters
|
195
|
+
query_params = opts[:query_params] || {}
|
196
|
+
query_params[:'organizationalUnit'] = opts[:'organizational_unit'] if !opts[:'organizational_unit'].nil?
|
197
|
+
query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
|
198
|
+
|
199
|
+
# header parameters
|
200
|
+
header_params = opts[:header_params] || {}
|
201
|
+
# HTTP header 'Accept' (if needed)
|
202
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
203
|
+
|
204
|
+
# form parameters
|
205
|
+
form_params = opts[:form_params] || {}
|
206
|
+
|
207
|
+
# http body (model)
|
208
|
+
post_body = opts[:body]
|
209
|
+
|
210
|
+
# return_type
|
211
|
+
return_type = opts[:return_type] || 'StatisticMapStringRevenueData'
|
212
|
+
|
213
|
+
# auth_names
|
214
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
215
|
+
|
216
|
+
new_options = opts.merge(
|
217
|
+
:header_params => header_params,
|
218
|
+
:query_params => query_params,
|
219
|
+
:form_params => form_params,
|
220
|
+
:body => post_body,
|
221
|
+
:auth_names => auth_names,
|
222
|
+
:return_type => return_type
|
223
|
+
)
|
224
|
+
|
225
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
226
|
+
if @api_client.config.debugging
|
227
|
+
@api_client.config.logger.debug "API called: StatisticsApi#get_revenue_hourly\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
228
|
+
end
|
229
|
+
return data, status_code, headers
|
230
|
+
end
|
231
|
+
|
232
|
+
# returns the top-seller
|
233
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
234
|
+
# @param [Hash] opts the optional parameters
|
235
|
+
# @option opts [String] :organizational_unit number of the organizational unit
|
236
|
+
# @option opts [String] :period time period for comparison
|
237
|
+
# @option opts [Integer] :limit maximum number of products to show
|
238
|
+
# @return [StatisticListTopSeller]
|
239
|
+
def get_top_seller(korona_account_id, opts = {})
|
240
|
+
data, _status_code, _headers = get_top_seller_with_http_info(korona_account_id, opts)
|
241
|
+
data
|
242
|
+
end
|
243
|
+
|
244
|
+
# returns the top-seller
|
245
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
246
|
+
# @param [Hash] opts the optional parameters
|
247
|
+
# @option opts [String] :organizational_unit number of the organizational unit
|
248
|
+
# @option opts [String] :period time period for comparison
|
249
|
+
# @option opts [Integer] :limit maximum number of products to show
|
250
|
+
# @return [Array<(StatisticListTopSeller, Integer, Hash)>] StatisticListTopSeller data, response status code and response headers
|
251
|
+
def get_top_seller_with_http_info(korona_account_id, opts = {})
|
252
|
+
if @api_client.config.debugging
|
253
|
+
@api_client.config.logger.debug 'Calling API: StatisticsApi.get_top_seller ...'
|
254
|
+
end
|
255
|
+
# verify the required parameter 'korona_account_id' is set
|
256
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
257
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling StatisticsApi.get_top_seller"
|
258
|
+
end
|
259
|
+
allowable_values = ["DAY", "WEEK", "MONTH", "YEAR"]
|
260
|
+
if @api_client.config.client_side_validation && opts[:'period'] && !allowable_values.include?(opts[:'period'])
|
261
|
+
fail ArgumentError, "invalid value for \"period\", must be one of #{allowable_values}"
|
262
|
+
end
|
263
|
+
# resource path
|
264
|
+
local_var_path = '/accounts/{koronaAccountId}/statistics/topSeller'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
265
|
+
|
266
|
+
# query parameters
|
267
|
+
query_params = opts[:query_params] || {}
|
268
|
+
query_params[:'organizationalUnit'] = opts[:'organizational_unit'] if !opts[:'organizational_unit'].nil?
|
269
|
+
query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
|
270
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
271
|
+
|
272
|
+
# header parameters
|
273
|
+
header_params = opts[:header_params] || {}
|
274
|
+
# HTTP header 'Accept' (if needed)
|
275
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
276
|
+
|
277
|
+
# form parameters
|
278
|
+
form_params = opts[:form_params] || {}
|
279
|
+
|
280
|
+
# http body (model)
|
281
|
+
post_body = opts[:body]
|
282
|
+
|
283
|
+
# return_type
|
284
|
+
return_type = opts[:return_type] || 'StatisticListTopSeller'
|
285
|
+
|
286
|
+
# auth_names
|
287
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
288
|
+
|
289
|
+
new_options = opts.merge(
|
290
|
+
:header_params => header_params,
|
291
|
+
:query_params => query_params,
|
292
|
+
:form_params => form_params,
|
293
|
+
:body => post_body,
|
294
|
+
:auth_names => auth_names,
|
295
|
+
:return_type => return_type
|
296
|
+
)
|
297
|
+
|
298
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
299
|
+
if @api_client.config.debugging
|
300
|
+
@api_client.config.logger.debug "API called: StatisticsApi#get_top_seller\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
301
|
+
end
|
302
|
+
return data, status_code, headers
|
303
|
+
end
|
304
|
+
end
|
305
|
+
end
|
@@ -0,0 +1,849 @@
|
|
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 StockReceiptsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# adds stock-receipt items
|
23
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
24
|
+
# @param stock_receipt_id [String] id of the related object (important: id should match the uuid-format)
|
25
|
+
# @param body [Array<StockReceiptItem>] data to add
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [Array<AddOrUpdateResult>]
|
28
|
+
def add_stock_receipt_items(korona_account_id, stock_receipt_id, body, opts = {})
|
29
|
+
data, _status_code, _headers = add_stock_receipt_items_with_http_info(korona_account_id, stock_receipt_id, body, opts)
|
30
|
+
data
|
31
|
+
end
|
32
|
+
|
33
|
+
# adds stock-receipt items
|
34
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
35
|
+
# @param stock_receipt_id [String] id of the related object (important: id should match the uuid-format)
|
36
|
+
# @param body [Array<StockReceiptItem>] data to add
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [Array<(Array<AddOrUpdateResult>, Integer, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers
|
39
|
+
def add_stock_receipt_items_with_http_info(korona_account_id, stock_receipt_id, body, opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: StockReceiptsApi.add_stock_receipt_items ...'
|
42
|
+
end
|
43
|
+
# verify the required parameter 'korona_account_id' is set
|
44
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling StockReceiptsApi.add_stock_receipt_items"
|
46
|
+
end
|
47
|
+
# verify the required parameter 'stock_receipt_id' is set
|
48
|
+
if @api_client.config.client_side_validation && stock_receipt_id.nil?
|
49
|
+
fail ArgumentError, "Missing the required parameter 'stock_receipt_id' when calling StockReceiptsApi.add_stock_receipt_items"
|
50
|
+
end
|
51
|
+
# verify the required parameter 'body' is set
|
52
|
+
if @api_client.config.client_side_validation && body.nil?
|
53
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling StockReceiptsApi.add_stock_receipt_items"
|
54
|
+
end
|
55
|
+
# resource path
|
56
|
+
local_var_path = '/accounts/{koronaAccountId}/stockReceipts/{stockReceiptId}/items'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s)).sub('{' + 'stockReceiptId' + '}', CGI.escape(stock_receipt_id.to_s))
|
57
|
+
|
58
|
+
# query parameters
|
59
|
+
query_params = opts[:query_params] || {}
|
60
|
+
|
61
|
+
# header parameters
|
62
|
+
header_params = opts[:header_params] || {}
|
63
|
+
# HTTP header 'Accept' (if needed)
|
64
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
65
|
+
# HTTP header 'Content-Type'
|
66
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
67
|
+
|
68
|
+
# form parameters
|
69
|
+
form_params = opts[:form_params] || {}
|
70
|
+
|
71
|
+
# http body (model)
|
72
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
73
|
+
|
74
|
+
# return_type
|
75
|
+
return_type = opts[:return_type] || 'Array<AddOrUpdateResult>'
|
76
|
+
|
77
|
+
# auth_names
|
78
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
79
|
+
|
80
|
+
new_options = opts.merge(
|
81
|
+
:header_params => header_params,
|
82
|
+
:query_params => query_params,
|
83
|
+
:form_params => form_params,
|
84
|
+
:body => post_body,
|
85
|
+
:auth_names => auth_names,
|
86
|
+
:return_type => return_type
|
87
|
+
)
|
88
|
+
|
89
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
90
|
+
if @api_client.config.debugging
|
91
|
+
@api_client.config.logger.debug "API called: StockReceiptsApi#add_stock_receipt_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
92
|
+
end
|
93
|
+
return data, status_code, headers
|
94
|
+
end
|
95
|
+
|
96
|
+
# adds stock-receipts
|
97
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
98
|
+
# @param body [Array<StockReceipt>] data to add
|
99
|
+
# @param [Hash] opts the optional parameters
|
100
|
+
# @return [Array<AddOrUpdateResult>]
|
101
|
+
def add_stock_receipts(korona_account_id, body, opts = {})
|
102
|
+
data, _status_code, _headers = add_stock_receipts_with_http_info(korona_account_id, body, opts)
|
103
|
+
data
|
104
|
+
end
|
105
|
+
|
106
|
+
# adds stock-receipts
|
107
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
108
|
+
# @param body [Array<StockReceipt>] data to add
|
109
|
+
# @param [Hash] opts the optional parameters
|
110
|
+
# @return [Array<(Array<AddOrUpdateResult>, Integer, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers
|
111
|
+
def add_stock_receipts_with_http_info(korona_account_id, body, opts = {})
|
112
|
+
if @api_client.config.debugging
|
113
|
+
@api_client.config.logger.debug 'Calling API: StockReceiptsApi.add_stock_receipts ...'
|
114
|
+
end
|
115
|
+
# verify the required parameter 'korona_account_id' is set
|
116
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
117
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling StockReceiptsApi.add_stock_receipts"
|
118
|
+
end
|
119
|
+
# verify the required parameter 'body' is set
|
120
|
+
if @api_client.config.client_side_validation && body.nil?
|
121
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling StockReceiptsApi.add_stock_receipts"
|
122
|
+
end
|
123
|
+
# resource path
|
124
|
+
local_var_path = '/accounts/{koronaAccountId}/stockReceipts'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
125
|
+
|
126
|
+
# query parameters
|
127
|
+
query_params = opts[:query_params] || {}
|
128
|
+
|
129
|
+
# header parameters
|
130
|
+
header_params = opts[:header_params] || {}
|
131
|
+
# HTTP header 'Accept' (if needed)
|
132
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
133
|
+
# HTTP header 'Content-Type'
|
134
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
135
|
+
|
136
|
+
# form parameters
|
137
|
+
form_params = opts[:form_params] || {}
|
138
|
+
|
139
|
+
# http body (model)
|
140
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
141
|
+
|
142
|
+
# return_type
|
143
|
+
return_type = opts[:return_type] || 'Array<AddOrUpdateResult>'
|
144
|
+
|
145
|
+
# auth_names
|
146
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
147
|
+
|
148
|
+
new_options = opts.merge(
|
149
|
+
:header_params => header_params,
|
150
|
+
:query_params => query_params,
|
151
|
+
:form_params => form_params,
|
152
|
+
:body => post_body,
|
153
|
+
:auth_names => auth_names,
|
154
|
+
:return_type => return_type
|
155
|
+
)
|
156
|
+
|
157
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
158
|
+
if @api_client.config.debugging
|
159
|
+
@api_client.config.logger.debug "API called: StockReceiptsApi#add_stock_receipts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
160
|
+
end
|
161
|
+
return data, status_code, headers
|
162
|
+
end
|
163
|
+
|
164
|
+
# book the single stock-receipt
|
165
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
166
|
+
# @param stock_receipt_id [String] id of the related object (important: id should match the uuid-format)
|
167
|
+
# @param [Hash] opts the optional parameters
|
168
|
+
# @return [nil]
|
169
|
+
def book_stock_receipt(korona_account_id, stock_receipt_id, opts = {})
|
170
|
+
book_stock_receipt_with_http_info(korona_account_id, stock_receipt_id, opts)
|
171
|
+
nil
|
172
|
+
end
|
173
|
+
|
174
|
+
# book the single stock-receipt
|
175
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
176
|
+
# @param stock_receipt_id [String] id of the related object (important: id should match the uuid-format)
|
177
|
+
# @param [Hash] opts the optional parameters
|
178
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
179
|
+
def book_stock_receipt_with_http_info(korona_account_id, stock_receipt_id, opts = {})
|
180
|
+
if @api_client.config.debugging
|
181
|
+
@api_client.config.logger.debug 'Calling API: StockReceiptsApi.book_stock_receipt ...'
|
182
|
+
end
|
183
|
+
# verify the required parameter 'korona_account_id' is set
|
184
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
185
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling StockReceiptsApi.book_stock_receipt"
|
186
|
+
end
|
187
|
+
# verify the required parameter 'stock_receipt_id' is set
|
188
|
+
if @api_client.config.client_side_validation && stock_receipt_id.nil?
|
189
|
+
fail ArgumentError, "Missing the required parameter 'stock_receipt_id' when calling StockReceiptsApi.book_stock_receipt"
|
190
|
+
end
|
191
|
+
# resource path
|
192
|
+
local_var_path = '/accounts/{koronaAccountId}/stockReceipts/{stockReceiptId}/book'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s)).sub('{' + 'stockReceiptId' + '}', CGI.escape(stock_receipt_id.to_s))
|
193
|
+
|
194
|
+
# query parameters
|
195
|
+
query_params = opts[:query_params] || {}
|
196
|
+
|
197
|
+
# header parameters
|
198
|
+
header_params = opts[:header_params] || {}
|
199
|
+
# HTTP header 'Accept' (if needed)
|
200
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
201
|
+
|
202
|
+
# form parameters
|
203
|
+
form_params = opts[:form_params] || {}
|
204
|
+
|
205
|
+
# http body (model)
|
206
|
+
post_body = opts[:body]
|
207
|
+
|
208
|
+
# return_type
|
209
|
+
return_type = opts[:return_type]
|
210
|
+
|
211
|
+
# auth_names
|
212
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
213
|
+
|
214
|
+
new_options = opts.merge(
|
215
|
+
:header_params => header_params,
|
216
|
+
:query_params => query_params,
|
217
|
+
:form_params => form_params,
|
218
|
+
:body => post_body,
|
219
|
+
:auth_names => auth_names,
|
220
|
+
:return_type => return_type
|
221
|
+
)
|
222
|
+
|
223
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
224
|
+
if @api_client.config.debugging
|
225
|
+
@api_client.config.logger.debug "API called: StockReceiptsApi#book_stock_receipt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
226
|
+
end
|
227
|
+
return data, status_code, headers
|
228
|
+
end
|
229
|
+
|
230
|
+
# deletes the single stock-receipt item
|
231
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
232
|
+
# @param stock_receipt_id [String] id of the related object (important: id should match the uuid-format)
|
233
|
+
# @param product_id [String] id of the related object (important: id should match the uuid-format)
|
234
|
+
# @param [Hash] opts the optional parameters
|
235
|
+
# @return [nil]
|
236
|
+
def delete_stock_receipt_item(korona_account_id, stock_receipt_id, product_id, opts = {})
|
237
|
+
delete_stock_receipt_item_with_http_info(korona_account_id, stock_receipt_id, product_id, opts)
|
238
|
+
nil
|
239
|
+
end
|
240
|
+
|
241
|
+
# deletes the single stock-receipt item
|
242
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
243
|
+
# @param stock_receipt_id [String] id of the related object (important: id should match the uuid-format)
|
244
|
+
# @param product_id [String] id of the related object (important: id should match the uuid-format)
|
245
|
+
# @param [Hash] opts the optional parameters
|
246
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
247
|
+
def delete_stock_receipt_item_with_http_info(korona_account_id, stock_receipt_id, product_id, opts = {})
|
248
|
+
if @api_client.config.debugging
|
249
|
+
@api_client.config.logger.debug 'Calling API: StockReceiptsApi.delete_stock_receipt_item ...'
|
250
|
+
end
|
251
|
+
# verify the required parameter 'korona_account_id' is set
|
252
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
253
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling StockReceiptsApi.delete_stock_receipt_item"
|
254
|
+
end
|
255
|
+
# verify the required parameter 'stock_receipt_id' is set
|
256
|
+
if @api_client.config.client_side_validation && stock_receipt_id.nil?
|
257
|
+
fail ArgumentError, "Missing the required parameter 'stock_receipt_id' when calling StockReceiptsApi.delete_stock_receipt_item"
|
258
|
+
end
|
259
|
+
# verify the required parameter 'product_id' is set
|
260
|
+
if @api_client.config.client_side_validation && product_id.nil?
|
261
|
+
fail ArgumentError, "Missing the required parameter 'product_id' when calling StockReceiptsApi.delete_stock_receipt_item"
|
262
|
+
end
|
263
|
+
# resource path
|
264
|
+
local_var_path = '/accounts/{koronaAccountId}/stockReceipts/{stockReceiptId}/items/{productId}'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s)).sub('{' + 'stockReceiptId' + '}', CGI.escape(stock_receipt_id.to_s)).sub('{' + 'productId' + '}', CGI.escape(product_id.to_s))
|
265
|
+
|
266
|
+
# query parameters
|
267
|
+
query_params = opts[:query_params] || {}
|
268
|
+
|
269
|
+
# header parameters
|
270
|
+
header_params = opts[:header_params] || {}
|
271
|
+
# HTTP header 'Accept' (if needed)
|
272
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
273
|
+
|
274
|
+
# form parameters
|
275
|
+
form_params = opts[:form_params] || {}
|
276
|
+
|
277
|
+
# http body (model)
|
278
|
+
post_body = opts[:body]
|
279
|
+
|
280
|
+
# return_type
|
281
|
+
return_type = opts[:return_type]
|
282
|
+
|
283
|
+
# auth_names
|
284
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
285
|
+
|
286
|
+
new_options = opts.merge(
|
287
|
+
:header_params => header_params,
|
288
|
+
:query_params => query_params,
|
289
|
+
:form_params => form_params,
|
290
|
+
:body => post_body,
|
291
|
+
:auth_names => auth_names,
|
292
|
+
:return_type => return_type
|
293
|
+
)
|
294
|
+
|
295
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
296
|
+
if @api_client.config.debugging
|
297
|
+
@api_client.config.logger.debug "API called: StockReceiptsApi#delete_stock_receipt_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
298
|
+
end
|
299
|
+
return data, status_code, headers
|
300
|
+
end
|
301
|
+
|
302
|
+
# returns the single stock-receipt
|
303
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
304
|
+
# @param stock_receipt_id [String] id of the related object (important: id should match the uuid-format)
|
305
|
+
# @param [Hash] opts the optional parameters
|
306
|
+
# @return [StockReceipt]
|
307
|
+
def get_stock_receipt(korona_account_id, stock_receipt_id, opts = {})
|
308
|
+
data, _status_code, _headers = get_stock_receipt_with_http_info(korona_account_id, stock_receipt_id, opts)
|
309
|
+
data
|
310
|
+
end
|
311
|
+
|
312
|
+
# returns the single stock-receipt
|
313
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
314
|
+
# @param stock_receipt_id [String] id of the related object (important: id should match the uuid-format)
|
315
|
+
# @param [Hash] opts the optional parameters
|
316
|
+
# @return [Array<(StockReceipt, Integer, Hash)>] StockReceipt data, response status code and response headers
|
317
|
+
def get_stock_receipt_with_http_info(korona_account_id, stock_receipt_id, opts = {})
|
318
|
+
if @api_client.config.debugging
|
319
|
+
@api_client.config.logger.debug 'Calling API: StockReceiptsApi.get_stock_receipt ...'
|
320
|
+
end
|
321
|
+
# verify the required parameter 'korona_account_id' is set
|
322
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
323
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling StockReceiptsApi.get_stock_receipt"
|
324
|
+
end
|
325
|
+
# verify the required parameter 'stock_receipt_id' is set
|
326
|
+
if @api_client.config.client_side_validation && stock_receipt_id.nil?
|
327
|
+
fail ArgumentError, "Missing the required parameter 'stock_receipt_id' when calling StockReceiptsApi.get_stock_receipt"
|
328
|
+
end
|
329
|
+
# resource path
|
330
|
+
local_var_path = '/accounts/{koronaAccountId}/stockReceipts/{stockReceiptId}'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s)).sub('{' + 'stockReceiptId' + '}', CGI.escape(stock_receipt_id.to_s))
|
331
|
+
|
332
|
+
# query parameters
|
333
|
+
query_params = opts[:query_params] || {}
|
334
|
+
|
335
|
+
# header parameters
|
336
|
+
header_params = opts[:header_params] || {}
|
337
|
+
# HTTP header 'Accept' (if needed)
|
338
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
339
|
+
|
340
|
+
# form parameters
|
341
|
+
form_params = opts[:form_params] || {}
|
342
|
+
|
343
|
+
# http body (model)
|
344
|
+
post_body = opts[:body]
|
345
|
+
|
346
|
+
# return_type
|
347
|
+
return_type = opts[:return_type] || 'StockReceipt'
|
348
|
+
|
349
|
+
# auth_names
|
350
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
351
|
+
|
352
|
+
new_options = opts.merge(
|
353
|
+
:header_params => header_params,
|
354
|
+
:query_params => query_params,
|
355
|
+
:form_params => form_params,
|
356
|
+
:body => post_body,
|
357
|
+
:auth_names => auth_names,
|
358
|
+
:return_type => return_type
|
359
|
+
)
|
360
|
+
|
361
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
362
|
+
if @api_client.config.debugging
|
363
|
+
@api_client.config.logger.debug "API called: StockReceiptsApi#get_stock_receipt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
364
|
+
end
|
365
|
+
return data, status_code, headers
|
366
|
+
end
|
367
|
+
|
368
|
+
# returns the single stock-receipt item
|
369
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
370
|
+
# @param stock_receipt_id [String] id of the related object (important: id should match the uuid-format)
|
371
|
+
# @param product_id [String] id of the related object (important: id should match the uuid-format)
|
372
|
+
# @param [Hash] opts the optional parameters
|
373
|
+
# @return [StockReceiptItem]
|
374
|
+
def get_stock_receipt_item(korona_account_id, stock_receipt_id, product_id, opts = {})
|
375
|
+
data, _status_code, _headers = get_stock_receipt_item_with_http_info(korona_account_id, stock_receipt_id, product_id, opts)
|
376
|
+
data
|
377
|
+
end
|
378
|
+
|
379
|
+
# returns the single stock-receipt item
|
380
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
381
|
+
# @param stock_receipt_id [String] id of the related object (important: id should match the uuid-format)
|
382
|
+
# @param product_id [String] id of the related object (important: id should match the uuid-format)
|
383
|
+
# @param [Hash] opts the optional parameters
|
384
|
+
# @return [Array<(StockReceiptItem, Integer, Hash)>] StockReceiptItem data, response status code and response headers
|
385
|
+
def get_stock_receipt_item_with_http_info(korona_account_id, stock_receipt_id, product_id, opts = {})
|
386
|
+
if @api_client.config.debugging
|
387
|
+
@api_client.config.logger.debug 'Calling API: StockReceiptsApi.get_stock_receipt_item ...'
|
388
|
+
end
|
389
|
+
# verify the required parameter 'korona_account_id' is set
|
390
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
391
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling StockReceiptsApi.get_stock_receipt_item"
|
392
|
+
end
|
393
|
+
# verify the required parameter 'stock_receipt_id' is set
|
394
|
+
if @api_client.config.client_side_validation && stock_receipt_id.nil?
|
395
|
+
fail ArgumentError, "Missing the required parameter 'stock_receipt_id' when calling StockReceiptsApi.get_stock_receipt_item"
|
396
|
+
end
|
397
|
+
# verify the required parameter 'product_id' is set
|
398
|
+
if @api_client.config.client_side_validation && product_id.nil?
|
399
|
+
fail ArgumentError, "Missing the required parameter 'product_id' when calling StockReceiptsApi.get_stock_receipt_item"
|
400
|
+
end
|
401
|
+
# resource path
|
402
|
+
local_var_path = '/accounts/{koronaAccountId}/stockReceipts/{stockReceiptId}/items/{productId}'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s)).sub('{' + 'stockReceiptId' + '}', CGI.escape(stock_receipt_id.to_s)).sub('{' + 'productId' + '}', CGI.escape(product_id.to_s))
|
403
|
+
|
404
|
+
# query parameters
|
405
|
+
query_params = opts[:query_params] || {}
|
406
|
+
|
407
|
+
# header parameters
|
408
|
+
header_params = opts[:header_params] || {}
|
409
|
+
# HTTP header 'Accept' (if needed)
|
410
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
411
|
+
|
412
|
+
# form parameters
|
413
|
+
form_params = opts[:form_params] || {}
|
414
|
+
|
415
|
+
# http body (model)
|
416
|
+
post_body = opts[:body]
|
417
|
+
|
418
|
+
# return_type
|
419
|
+
return_type = opts[:return_type] || 'StockReceiptItem'
|
420
|
+
|
421
|
+
# auth_names
|
422
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
423
|
+
|
424
|
+
new_options = opts.merge(
|
425
|
+
:header_params => header_params,
|
426
|
+
:query_params => query_params,
|
427
|
+
:form_params => form_params,
|
428
|
+
:body => post_body,
|
429
|
+
:auth_names => auth_names,
|
430
|
+
:return_type => return_type
|
431
|
+
)
|
432
|
+
|
433
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
434
|
+
if @api_client.config.debugging
|
435
|
+
@api_client.config.logger.debug "API called: StockReceiptsApi#get_stock_receipt_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
436
|
+
end
|
437
|
+
return data, status_code, headers
|
438
|
+
end
|
439
|
+
|
440
|
+
# lists all stock-receipt items
|
441
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
442
|
+
# @param stock_receipt_id [String] id of the related object (important: id should match the uuid-format)
|
443
|
+
# @param [Hash] opts the optional parameters
|
444
|
+
# @option opts [Integer] :page number of the page to fetch
|
445
|
+
# @option opts [Integer] :size amount of objects to return per page
|
446
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
447
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
448
|
+
# @return [ResultListStockReceiptItem]
|
449
|
+
def get_stock_receipt_items(korona_account_id, stock_receipt_id, opts = {})
|
450
|
+
data, _status_code, _headers = get_stock_receipt_items_with_http_info(korona_account_id, stock_receipt_id, opts)
|
451
|
+
data
|
452
|
+
end
|
453
|
+
|
454
|
+
# lists all stock-receipt items
|
455
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
456
|
+
# @param stock_receipt_id [String] id of the related object (important: id should match the uuid-format)
|
457
|
+
# @param [Hash] opts the optional parameters
|
458
|
+
# @option opts [Integer] :page number of the page to fetch
|
459
|
+
# @option opts [Integer] :size amount of objects to return per page
|
460
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
461
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
462
|
+
# @return [Array<(ResultListStockReceiptItem, Integer, Hash)>] ResultListStockReceiptItem data, response status code and response headers
|
463
|
+
def get_stock_receipt_items_with_http_info(korona_account_id, stock_receipt_id, opts = {})
|
464
|
+
if @api_client.config.debugging
|
465
|
+
@api_client.config.logger.debug 'Calling API: StockReceiptsApi.get_stock_receipt_items ...'
|
466
|
+
end
|
467
|
+
# verify the required parameter 'korona_account_id' is set
|
468
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
469
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling StockReceiptsApi.get_stock_receipt_items"
|
470
|
+
end
|
471
|
+
# verify the required parameter 'stock_receipt_id' is set
|
472
|
+
if @api_client.config.client_side_validation && stock_receipt_id.nil?
|
473
|
+
fail ArgumentError, "Missing the required parameter 'stock_receipt_id' when calling StockReceiptsApi.get_stock_receipt_items"
|
474
|
+
end
|
475
|
+
# resource path
|
476
|
+
local_var_path = '/accounts/{koronaAccountId}/stockReceipts/{stockReceiptId}/items'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s)).sub('{' + 'stockReceiptId' + '}', CGI.escape(stock_receipt_id.to_s))
|
477
|
+
|
478
|
+
# query parameters
|
479
|
+
query_params = opts[:query_params] || {}
|
480
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
481
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
482
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
483
|
+
query_params[:'revision'] = opts[:'revision'] if !opts[:'revision'].nil?
|
484
|
+
|
485
|
+
# header parameters
|
486
|
+
header_params = opts[:header_params] || {}
|
487
|
+
# HTTP header 'Accept' (if needed)
|
488
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
489
|
+
|
490
|
+
# form parameters
|
491
|
+
form_params = opts[:form_params] || {}
|
492
|
+
|
493
|
+
# http body (model)
|
494
|
+
post_body = opts[:body]
|
495
|
+
|
496
|
+
# return_type
|
497
|
+
return_type = opts[:return_type] || 'ResultListStockReceiptItem'
|
498
|
+
|
499
|
+
# auth_names
|
500
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
501
|
+
|
502
|
+
new_options = opts.merge(
|
503
|
+
:header_params => header_params,
|
504
|
+
:query_params => query_params,
|
505
|
+
:form_params => form_params,
|
506
|
+
:body => post_body,
|
507
|
+
:auth_names => auth_names,
|
508
|
+
:return_type => return_type
|
509
|
+
)
|
510
|
+
|
511
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
512
|
+
if @api_client.config.debugging
|
513
|
+
@api_client.config.logger.debug "API called: StockReceiptsApi#get_stock_receipt_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
514
|
+
end
|
515
|
+
return data, status_code, headers
|
516
|
+
end
|
517
|
+
|
518
|
+
# lists all stock-receipts
|
519
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
520
|
+
# @param [Hash] opts the optional parameters
|
521
|
+
# @option opts [Integer] :page number of the page to fetch
|
522
|
+
# @option opts [Integer] :size amount of objects to return per page
|
523
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
524
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
525
|
+
# @option opts [Boolean] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
526
|
+
# @option opts [DateTime] :min_create_time min (inclusive) create time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
527
|
+
# @option opts [DateTime] :max_create_time max (inclusive) create time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
528
|
+
# @option opts [DateTime] :min_booking_time min (inclusive) booking time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
529
|
+
# @option opts [DateTime] :max_booking_time max (inclusive) booking time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
530
|
+
# @option opts [String] :organizational_unit organizational unit
|
531
|
+
# @option opts [String] :source_organizational_unit source organizational unit
|
532
|
+
# @option opts [String] :booking_status booking status (possible values: BOOKED, IN_PROGRESS)
|
533
|
+
# @option opts [String] :number number of the related object
|
534
|
+
# @return [ResultListStockReceipt]
|
535
|
+
def get_stock_receipts(korona_account_id, opts = {})
|
536
|
+
data, _status_code, _headers = get_stock_receipts_with_http_info(korona_account_id, opts)
|
537
|
+
data
|
538
|
+
end
|
539
|
+
|
540
|
+
# lists all stock-receipts
|
541
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
542
|
+
# @param [Hash] opts the optional parameters
|
543
|
+
# @option opts [Integer] :page number of the page to fetch
|
544
|
+
# @option opts [Integer] :size amount of objects to return per page
|
545
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
546
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
547
|
+
# @option opts [Boolean] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
548
|
+
# @option opts [DateTime] :min_create_time min (inclusive) create time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
549
|
+
# @option opts [DateTime] :max_create_time max (inclusive) create time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
550
|
+
# @option opts [DateTime] :min_booking_time min (inclusive) booking time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
551
|
+
# @option opts [DateTime] :max_booking_time max (inclusive) booking time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
552
|
+
# @option opts [String] :organizational_unit organizational unit
|
553
|
+
# @option opts [String] :source_organizational_unit source organizational unit
|
554
|
+
# @option opts [String] :booking_status booking status (possible values: BOOKED, IN_PROGRESS)
|
555
|
+
# @option opts [String] :number number of the related object
|
556
|
+
# @return [Array<(ResultListStockReceipt, Integer, Hash)>] ResultListStockReceipt data, response status code and response headers
|
557
|
+
def get_stock_receipts_with_http_info(korona_account_id, opts = {})
|
558
|
+
if @api_client.config.debugging
|
559
|
+
@api_client.config.logger.debug 'Calling API: StockReceiptsApi.get_stock_receipts ...'
|
560
|
+
end
|
561
|
+
# verify the required parameter 'korona_account_id' is set
|
562
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
563
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling StockReceiptsApi.get_stock_receipts"
|
564
|
+
end
|
565
|
+
allowable_values = ["BOOKED", "IN_PROGRESS"]
|
566
|
+
if @api_client.config.client_side_validation && opts[:'booking_status'] && !allowable_values.include?(opts[:'booking_status'])
|
567
|
+
fail ArgumentError, "invalid value for \"booking_status\", must be one of #{allowable_values}"
|
568
|
+
end
|
569
|
+
# resource path
|
570
|
+
local_var_path = '/accounts/{koronaAccountId}/stockReceipts'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
571
|
+
|
572
|
+
# query parameters
|
573
|
+
query_params = opts[:query_params] || {}
|
574
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
575
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
576
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
577
|
+
query_params[:'revision'] = opts[:'revision'] if !opts[:'revision'].nil?
|
578
|
+
query_params[:'includeDeleted'] = opts[:'include_deleted'] if !opts[:'include_deleted'].nil?
|
579
|
+
query_params[:'minCreateTime'] = opts[:'min_create_time'] if !opts[:'min_create_time'].nil?
|
580
|
+
query_params[:'maxCreateTime'] = opts[:'max_create_time'] if !opts[:'max_create_time'].nil?
|
581
|
+
query_params[:'minBookingTime'] = opts[:'min_booking_time'] if !opts[:'min_booking_time'].nil?
|
582
|
+
query_params[:'maxBookingTime'] = opts[:'max_booking_time'] if !opts[:'max_booking_time'].nil?
|
583
|
+
query_params[:'organizationalUnit'] = opts[:'organizational_unit'] if !opts[:'organizational_unit'].nil?
|
584
|
+
query_params[:'sourceOrganizationalUnit'] = opts[:'source_organizational_unit'] if !opts[:'source_organizational_unit'].nil?
|
585
|
+
query_params[:'bookingStatus'] = opts[:'booking_status'] if !opts[:'booking_status'].nil?
|
586
|
+
query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
|
587
|
+
|
588
|
+
# header parameters
|
589
|
+
header_params = opts[:header_params] || {}
|
590
|
+
# HTTP header 'Accept' (if needed)
|
591
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
592
|
+
|
593
|
+
# form parameters
|
594
|
+
form_params = opts[:form_params] || {}
|
595
|
+
|
596
|
+
# http body (model)
|
597
|
+
post_body = opts[:body]
|
598
|
+
|
599
|
+
# return_type
|
600
|
+
return_type = opts[:return_type] || 'ResultListStockReceipt'
|
601
|
+
|
602
|
+
# auth_names
|
603
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
604
|
+
|
605
|
+
new_options = opts.merge(
|
606
|
+
:header_params => header_params,
|
607
|
+
:query_params => query_params,
|
608
|
+
:form_params => form_params,
|
609
|
+
:body => post_body,
|
610
|
+
:auth_names => auth_names,
|
611
|
+
:return_type => return_type
|
612
|
+
)
|
613
|
+
|
614
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
615
|
+
if @api_client.config.debugging
|
616
|
+
@api_client.config.logger.debug "API called: StockReceiptsApi#get_stock_receipts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
617
|
+
end
|
618
|
+
return data, status_code, headers
|
619
|
+
end
|
620
|
+
|
621
|
+
# updates the single stock-receipt
|
622
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
623
|
+
# @param stock_receipt_id [String] id of the related object (important: id should match the uuid-format)
|
624
|
+
# @param body [StockReceipt] data to update
|
625
|
+
# @param [Hash] opts the optional parameters
|
626
|
+
# @return [nil]
|
627
|
+
def update_stock_receipt(korona_account_id, stock_receipt_id, body, opts = {})
|
628
|
+
update_stock_receipt_with_http_info(korona_account_id, stock_receipt_id, body, opts)
|
629
|
+
nil
|
630
|
+
end
|
631
|
+
|
632
|
+
# updates the single stock-receipt
|
633
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
634
|
+
# @param stock_receipt_id [String] id of the related object (important: id should match the uuid-format)
|
635
|
+
# @param body [StockReceipt] data to update
|
636
|
+
# @param [Hash] opts the optional parameters
|
637
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
638
|
+
def update_stock_receipt_with_http_info(korona_account_id, stock_receipt_id, body, opts = {})
|
639
|
+
if @api_client.config.debugging
|
640
|
+
@api_client.config.logger.debug 'Calling API: StockReceiptsApi.update_stock_receipt ...'
|
641
|
+
end
|
642
|
+
# verify the required parameter 'korona_account_id' is set
|
643
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
644
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling StockReceiptsApi.update_stock_receipt"
|
645
|
+
end
|
646
|
+
# verify the required parameter 'stock_receipt_id' is set
|
647
|
+
if @api_client.config.client_side_validation && stock_receipt_id.nil?
|
648
|
+
fail ArgumentError, "Missing the required parameter 'stock_receipt_id' when calling StockReceiptsApi.update_stock_receipt"
|
649
|
+
end
|
650
|
+
# verify the required parameter 'body' is set
|
651
|
+
if @api_client.config.client_side_validation && body.nil?
|
652
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling StockReceiptsApi.update_stock_receipt"
|
653
|
+
end
|
654
|
+
# resource path
|
655
|
+
local_var_path = '/accounts/{koronaAccountId}/stockReceipts/{stockReceiptId}'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s)).sub('{' + 'stockReceiptId' + '}', CGI.escape(stock_receipt_id.to_s))
|
656
|
+
|
657
|
+
# query parameters
|
658
|
+
query_params = opts[:query_params] || {}
|
659
|
+
|
660
|
+
# header parameters
|
661
|
+
header_params = opts[:header_params] || {}
|
662
|
+
# HTTP header 'Accept' (if needed)
|
663
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
664
|
+
# HTTP header 'Content-Type'
|
665
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
666
|
+
|
667
|
+
# form parameters
|
668
|
+
form_params = opts[:form_params] || {}
|
669
|
+
|
670
|
+
# http body (model)
|
671
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
672
|
+
|
673
|
+
# return_type
|
674
|
+
return_type = opts[:return_type]
|
675
|
+
|
676
|
+
# auth_names
|
677
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
678
|
+
|
679
|
+
new_options = opts.merge(
|
680
|
+
:header_params => header_params,
|
681
|
+
:query_params => query_params,
|
682
|
+
:form_params => form_params,
|
683
|
+
:body => post_body,
|
684
|
+
:auth_names => auth_names,
|
685
|
+
:return_type => return_type
|
686
|
+
)
|
687
|
+
|
688
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
689
|
+
if @api_client.config.debugging
|
690
|
+
@api_client.config.logger.debug "API called: StockReceiptsApi#update_stock_receipt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
691
|
+
end
|
692
|
+
return data, status_code, headers
|
693
|
+
end
|
694
|
+
|
695
|
+
# updates the single stock-receipt item
|
696
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
697
|
+
# @param stock_receipt_id [String] id of the related object (important: id should match the uuid-format)
|
698
|
+
# @param product_id [String] id of the related object (important: id should match the uuid-format)
|
699
|
+
# @param body [StockReceiptItem] data to update
|
700
|
+
# @param [Hash] opts the optional parameters
|
701
|
+
# @return [nil]
|
702
|
+
def update_stock_receipt_item(korona_account_id, stock_receipt_id, product_id, body, opts = {})
|
703
|
+
update_stock_receipt_item_with_http_info(korona_account_id, stock_receipt_id, product_id, body, opts)
|
704
|
+
nil
|
705
|
+
end
|
706
|
+
|
707
|
+
# updates the single stock-receipt item
|
708
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
709
|
+
# @param stock_receipt_id [String] id of the related object (important: id should match the uuid-format)
|
710
|
+
# @param product_id [String] id of the related object (important: id should match the uuid-format)
|
711
|
+
# @param body [StockReceiptItem] data to update
|
712
|
+
# @param [Hash] opts the optional parameters
|
713
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
714
|
+
def update_stock_receipt_item_with_http_info(korona_account_id, stock_receipt_id, product_id, body, opts = {})
|
715
|
+
if @api_client.config.debugging
|
716
|
+
@api_client.config.logger.debug 'Calling API: StockReceiptsApi.update_stock_receipt_item ...'
|
717
|
+
end
|
718
|
+
# verify the required parameter 'korona_account_id' is set
|
719
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
720
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling StockReceiptsApi.update_stock_receipt_item"
|
721
|
+
end
|
722
|
+
# verify the required parameter 'stock_receipt_id' is set
|
723
|
+
if @api_client.config.client_side_validation && stock_receipt_id.nil?
|
724
|
+
fail ArgumentError, "Missing the required parameter 'stock_receipt_id' when calling StockReceiptsApi.update_stock_receipt_item"
|
725
|
+
end
|
726
|
+
# verify the required parameter 'product_id' is set
|
727
|
+
if @api_client.config.client_side_validation && product_id.nil?
|
728
|
+
fail ArgumentError, "Missing the required parameter 'product_id' when calling StockReceiptsApi.update_stock_receipt_item"
|
729
|
+
end
|
730
|
+
# verify the required parameter 'body' is set
|
731
|
+
if @api_client.config.client_side_validation && body.nil?
|
732
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling StockReceiptsApi.update_stock_receipt_item"
|
733
|
+
end
|
734
|
+
# resource path
|
735
|
+
local_var_path = '/accounts/{koronaAccountId}/stockReceipts/{stockReceiptId}/items/{productId}'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s)).sub('{' + 'stockReceiptId' + '}', CGI.escape(stock_receipt_id.to_s)).sub('{' + 'productId' + '}', CGI.escape(product_id.to_s))
|
736
|
+
|
737
|
+
# query parameters
|
738
|
+
query_params = opts[:query_params] || {}
|
739
|
+
|
740
|
+
# header parameters
|
741
|
+
header_params = opts[:header_params] || {}
|
742
|
+
# HTTP header 'Accept' (if needed)
|
743
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
744
|
+
# HTTP header 'Content-Type'
|
745
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
746
|
+
|
747
|
+
# form parameters
|
748
|
+
form_params = opts[:form_params] || {}
|
749
|
+
|
750
|
+
# http body (model)
|
751
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
752
|
+
|
753
|
+
# return_type
|
754
|
+
return_type = opts[:return_type]
|
755
|
+
|
756
|
+
# auth_names
|
757
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
758
|
+
|
759
|
+
new_options = opts.merge(
|
760
|
+
:header_params => header_params,
|
761
|
+
:query_params => query_params,
|
762
|
+
:form_params => form_params,
|
763
|
+
:body => post_body,
|
764
|
+
:auth_names => auth_names,
|
765
|
+
:return_type => return_type
|
766
|
+
)
|
767
|
+
|
768
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
769
|
+
if @api_client.config.debugging
|
770
|
+
@api_client.config.logger.debug "API called: StockReceiptsApi#update_stock_receipt_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
771
|
+
end
|
772
|
+
return data, status_code, headers
|
773
|
+
end
|
774
|
+
|
775
|
+
# updates stock-receipt items
|
776
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
777
|
+
# @param stock_receipt_id [String] id of the related object (important: id should match the uuid-format)
|
778
|
+
# @param body [Array<StockReceiptItem>] data to update
|
779
|
+
# @param [Hash] opts the optional parameters
|
780
|
+
# @return [Array<AddOrUpdateResult>]
|
781
|
+
def update_stock_receipt_items(korona_account_id, stock_receipt_id, body, opts = {})
|
782
|
+
data, _status_code, _headers = update_stock_receipt_items_with_http_info(korona_account_id, stock_receipt_id, body, opts)
|
783
|
+
data
|
784
|
+
end
|
785
|
+
|
786
|
+
# updates stock-receipt items
|
787
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
788
|
+
# @param stock_receipt_id [String] id of the related object (important: id should match the uuid-format)
|
789
|
+
# @param body [Array<StockReceiptItem>] data to update
|
790
|
+
# @param [Hash] opts the optional parameters
|
791
|
+
# @return [Array<(Array<AddOrUpdateResult>, Integer, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers
|
792
|
+
def update_stock_receipt_items_with_http_info(korona_account_id, stock_receipt_id, body, opts = {})
|
793
|
+
if @api_client.config.debugging
|
794
|
+
@api_client.config.logger.debug 'Calling API: StockReceiptsApi.update_stock_receipt_items ...'
|
795
|
+
end
|
796
|
+
# verify the required parameter 'korona_account_id' is set
|
797
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
798
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling StockReceiptsApi.update_stock_receipt_items"
|
799
|
+
end
|
800
|
+
# verify the required parameter 'stock_receipt_id' is set
|
801
|
+
if @api_client.config.client_side_validation && stock_receipt_id.nil?
|
802
|
+
fail ArgumentError, "Missing the required parameter 'stock_receipt_id' when calling StockReceiptsApi.update_stock_receipt_items"
|
803
|
+
end
|
804
|
+
# verify the required parameter 'body' is set
|
805
|
+
if @api_client.config.client_side_validation && body.nil?
|
806
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling StockReceiptsApi.update_stock_receipt_items"
|
807
|
+
end
|
808
|
+
# resource path
|
809
|
+
local_var_path = '/accounts/{koronaAccountId}/stockReceipts/{stockReceiptId}/items'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s)).sub('{' + 'stockReceiptId' + '}', CGI.escape(stock_receipt_id.to_s))
|
810
|
+
|
811
|
+
# query parameters
|
812
|
+
query_params = opts[:query_params] || {}
|
813
|
+
|
814
|
+
# header parameters
|
815
|
+
header_params = opts[:header_params] || {}
|
816
|
+
# HTTP header 'Accept' (if needed)
|
817
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
818
|
+
# HTTP header 'Content-Type'
|
819
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
820
|
+
|
821
|
+
# form parameters
|
822
|
+
form_params = opts[:form_params] || {}
|
823
|
+
|
824
|
+
# http body (model)
|
825
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
826
|
+
|
827
|
+
# return_type
|
828
|
+
return_type = opts[:return_type] || 'Array<AddOrUpdateResult>'
|
829
|
+
|
830
|
+
# auth_names
|
831
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
832
|
+
|
833
|
+
new_options = opts.merge(
|
834
|
+
:header_params => header_params,
|
835
|
+
:query_params => query_params,
|
836
|
+
:form_params => form_params,
|
837
|
+
:body => post_body,
|
838
|
+
:auth_names => auth_names,
|
839
|
+
:return_type => return_type
|
840
|
+
)
|
841
|
+
|
842
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
843
|
+
if @api_client.config.debugging
|
844
|
+
@api_client.config.logger.debug "API called: StockReceiptsApi#update_stock_receipt_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
845
|
+
end
|
846
|
+
return data, status_code, headers
|
847
|
+
end
|
848
|
+
end
|
849
|
+
end
|