korona_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 +7 -0
- data/Gemfile.lock +69 -0
- data/README.md +332 -0
- data/Rakefile +8 -0
- data/docs/Account.md +19 -0
- data/docs/AccountSummary.md +10 -0
- data/docs/AccountTransaction.md +11 -0
- data/docs/AccountsApi.md +131 -0
- data/docs/AddOrUpdateResult.md +13 -0
- data/docs/AddressInformation.md +14 -0
- data/docs/Admission.md +9 -0
- data/docs/Amount.md +12 -0
- data/docs/AmountCountData.md +9 -0
- data/docs/Assortment.md +15 -0
- data/docs/AssortmentsApi.md +254 -0
- data/docs/BadRequestError.md +9 -0
- data/docs/Capacity.md +9 -0
- data/docs/Cashier.md +20 -0
- data/docs/CashierSummary.md +13 -0
- data/docs/CashiersApi.md +131 -0
- data/docs/Category.md +9 -0
- data/docs/CloudSubscription.md +9 -0
- data/docs/CommodityGroup.md +13 -0
- data/docs/CommodityGroupSummary.md +11 -0
- data/docs/CompanyIdentification.md +9 -0
- data/docs/CurrenciesApi.md +131 -0
- data/docs/Currency.md +19 -0
- data/docs/CurrencyDenomination.md +9 -0
- data/docs/CurrencyExchangeRate.md +9 -0
- data/docs/Customer.md +26 -0
- data/docs/CustomerCard.md +9 -0
- data/docs/CustomerData.md +9 -0
- data/docs/CustomerGroup.md +13 -0
- data/docs/CustomerGroupSummary.md +11 -0
- data/docs/CustomerGroupsApi.md +131 -0
- data/docs/CustomerInformation.md +10 -0
- data/docs/CustomerOrder.md +26 -0
- data/docs/CustomerOrdersApi.md +368 -0
- data/docs/CustomersApi.md +360 -0
- data/docs/DayRating.md +17 -0
- data/docs/DeviceInformation.md +9 -0
- data/docs/EconomicZone.md +12 -0
- data/docs/EconomicZonesApi.md +131 -0
- data/docs/EndOfDayStatement.md +16 -0
- data/docs/EndOfDayStatementSummary.md +13 -0
- data/docs/EntryGate.md +14 -0
- data/docs/Event.md +17 -0
- data/docs/ForbiddenError.md +9 -0
- data/docs/GeoLocation.md +9 -0
- data/docs/ImagesApi.md +64 -0
- data/docs/InfoText.md +13 -0
- data/docs/InfoTextsApi.md +131 -0
- data/docs/Interval.md +9 -0
- data/docs/InventoriesKORONARetailApi.md +890 -0
- data/docs/Inventory.md +26 -0
- data/docs/InventoryList.md +22 -0
- data/docs/InventoryListItem.md +13 -0
- data/docs/InventoryListItemStock.md +9 -0
- data/docs/KoronaAccount.md +16 -0
- data/docs/KoronaAccountApi.md +62 -0
- data/docs/MethodNotAllowedError.md +9 -0
- data/docs/ModelReference.md +10 -0
- data/docs/NotFoundError.md +9 -0
- data/docs/OrganizationalUnit.md +17 -0
- data/docs/OrganizationalUnitsApi.md +724 -0
- data/docs/Payment.md +12 -0
- data/docs/PaymentMethod.md +17 -0
- data/docs/PaymentMethodsApi.md +131 -0
- data/docs/PaymentSummary.md +10 -0
- data/docs/Period.md +10 -0
- data/docs/PeriodListTopSeller.md +10 -0
- data/docs/PeriodMapStringRevenueData.md +10 -0
- data/docs/PeriodObject.md +10 -0
- data/docs/PeriodRevenueData.md +10 -0
- data/docs/PointsOfSaleApi.md +537 -0
- data/docs/Pos.md +25 -0
- data/docs/PriceGroup.md +14 -0
- data/docs/PriceGroupsApi.md +131 -0
- data/docs/Product.md +49 -0
- data/docs/ProductCode.md +9 -0
- data/docs/ProductDescription.md +9 -0
- data/docs/ProductPrice.md +12 -0
- data/docs/ProductStock.md +12 -0
- data/docs/ProductSubproduct.md +10 -0
- data/docs/ProductSupplierPrice.md +12 -0
- data/docs/ProductTransferInvolvedPartyInformation.md +13 -0
- data/docs/ProductTransferInvolvedPartyInformationData.md +10 -0
- data/docs/ProductsApi.md +435 -0
- data/docs/Rating.md +10 -0
- data/docs/Receipt.md +28 -0
- data/docs/ReceiptItem.md +16 -0
- data/docs/ReceiptsApi.md +139 -0
- data/docs/ResultList.md +13 -0
- data/docs/ResultListAccount.md +13 -0
- data/docs/ResultListAssortment.md +13 -0
- data/docs/ResultListCashier.md +13 -0
- data/docs/ResultListCommodityGroup.md +13 -0
- data/docs/ResultListCurrency.md +13 -0
- data/docs/ResultListCustomer.md +13 -0
- data/docs/ResultListCustomerGroup.md +13 -0
- data/docs/ResultListCustomerOrder.md +13 -0
- data/docs/ResultListDayRating.md +13 -0
- data/docs/ResultListEconomicZone.md +13 -0
- data/docs/ResultListEndOfDayStatement.md +13 -0
- data/docs/ResultListEntryGate.md +13 -0
- data/docs/ResultListEvent.md +13 -0
- data/docs/ResultListInfoText.md +13 -0
- data/docs/ResultListInventory.md +13 -0
- data/docs/ResultListInventoryList.md +13 -0
- data/docs/ResultListInventoryListItem.md +13 -0
- data/docs/ResultListOrganizationalUnit.md +13 -0
- data/docs/ResultListPaymentMethod.md +13 -0
- data/docs/ResultListPos.md +13 -0
- data/docs/ResultListPriceGroup.md +13 -0
- data/docs/ResultListProduct.md +13 -0
- data/docs/ResultListProductStock.md +13 -0
- data/docs/ResultListReceipt.md +13 -0
- data/docs/ResultListSalesTax.md +13 -0
- data/docs/ResultListSector.md +13 -0
- data/docs/ResultListStockReceipt.md +13 -0
- data/docs/ResultListStockReceiptItem.md +13 -0
- data/docs/ResultListSupplier.md +13 -0
- data/docs/ResultListTag.md +13 -0
- data/docs/ResultListTicketDefinition.md +13 -0
- data/docs/RevenueData.md +12 -0
- data/docs/SalesTax.md +15 -0
- data/docs/SalesTaxRate.md +9 -0
- data/docs/SalesTaxesApi.md +131 -0
- data/docs/Sector.md +13 -0
- data/docs/SectorSalesTaxItem.md +9 -0
- data/docs/SectorsApi.md +131 -0
- data/docs/Statistic.md +10 -0
- data/docs/StatisticListTopSeller.md +10 -0
- data/docs/StatisticMapStringRevenueData.md +10 -0
- data/docs/StatisticRevenueData.md +10 -0
- data/docs/StatisticsApi.md +250 -0
- data/docs/StockReceipt.md +28 -0
- data/docs/StockReceiptItem.md +14 -0
- data/docs/StockReceiptItemAmount.md +9 -0
- data/docs/StockReceiptItemIdentification.md +10 -0
- data/docs/StockReceiptItemPurchasePrice.md +9 -0
- data/docs/StockReceiptsKORONARetailApi.md +629 -0
- data/docs/Supplier.md +19 -0
- data/docs/SupplierContact.md +11 -0
- data/docs/SupplierContactPerson.md +14 -0
- data/docs/SupplierPaymentInformation.md +16 -0
- data/docs/SuppliersApi.md +131 -0
- data/docs/Tag.md +12 -0
- data/docs/TagsApi.md +131 -0
- data/docs/TaxPayment.md +11 -0
- data/docs/TaxSummary.md +10 -0
- data/docs/TicketDefinition.md +19 -0
- data/docs/TicketingApi.md +377 -0
- data/docs/TimePeriod.md +14 -0
- data/docs/TooManyRequestsError.md +9 -0
- data/docs/TopSeller.md +12 -0
- data/docs/TotalPrice.md +12 -0
- data/docs/Weather.md +10 -0
- data/git_push.sh +55 -0
- data/korona_client.gemspec +46 -0
- data/lib/korona_client.rb +193 -0
- data/lib/korona_client/api/accounts_api.rb +154 -0
- data/lib/korona_client/api/assortments_api.rb +285 -0
- data/lib/korona_client/api/cashiers_api.rb +154 -0
- data/lib/korona_client/api/currencies_api.rb +154 -0
- data/lib/korona_client/api/customer_groups_api.rb +154 -0
- data/lib/korona_client/api/customer_orders_api.rb +414 -0
- data/lib/korona_client/api/customers_api.rb +402 -0
- data/lib/korona_client/api/economic_zones_api.rb +154 -0
- data/lib/korona_client/api/images_api.rb +81 -0
- data/lib/korona_client/api/info_texts_api.rb +154 -0
- data/lib/korona_client/api/inventories_korona_retail_api.rb +1022 -0
- data/lib/korona_client/api/korona_account_api.rb +78 -0
- data/lib/korona_client/api/organizational_units_api.rb +827 -0
- data/lib/korona_client/api/payment_methods_api.rb +154 -0
- data/lib/korona_client/api/points_of_sale_api.rb +604 -0
- data/lib/korona_client/api/price_groups_api.rb +154 -0
- data/lib/korona_client/api/products_api.rb +487 -0
- data/lib/korona_client/api/receipts_api.rb +166 -0
- data/lib/korona_client/api/sales_taxes_api.rb +154 -0
- data/lib/korona_client/api/sectors_api.rb +154 -0
- data/lib/korona_client/api/statistics_api.rb +282 -0
- data/lib/korona_client/api/stock_receipts_korona_retail_api.rb +717 -0
- data/lib/korona_client/api/suppliers_api.rb +154 -0
- data/lib/korona_client/api/tags_api.rb +154 -0
- data/lib/korona_client/api/ticketing_api.rb +416 -0
- data/lib/korona_client/api_client.rb +389 -0
- data/lib/korona_client/api_error.rb +38 -0
- data/lib/korona_client/configuration.rb +209 -0
- data/lib/korona_client/models/account.rb +324 -0
- data/lib/korona_client/models/account_summary.rb +206 -0
- data/lib/korona_client/models/account_transaction.rb +215 -0
- data/lib/korona_client/models/add_or_update_result.rb +278 -0
- data/lib/korona_client/models/address_information.rb +242 -0
- data/lib/korona_client/models/admission.rb +197 -0
- data/lib/korona_client/models/amount.rb +224 -0
- data/lib/korona_client/models/amount_count_data.rb +197 -0
- data/lib/korona_client/models/assortment.rb +255 -0
- data/lib/korona_client/models/bad_request_error.rb +232 -0
- data/lib/korona_client/models/capacity.rb +197 -0
- data/lib/korona_client/models/cashier.rb +337 -0
- data/lib/korona_client/models/cashier_summary.rb +233 -0
- data/lib/korona_client/models/category.rb +197 -0
- data/lib/korona_client/models/cloud_subscription.rb +230 -0
- data/lib/korona_client/models/commodity_group.rb +237 -0
- data/lib/korona_client/models/commodity_group_summary.rb +215 -0
- data/lib/korona_client/models/company_identification.rb +197 -0
- data/lib/korona_client/models/currency.rb +295 -0
- data/lib/korona_client/models/currency_denomination.rb +230 -0
- data/lib/korona_client/models/currency_exchange_rate.rb +197 -0
- data/lib/korona_client/models/customer.rb +391 -0
- data/lib/korona_client/models/customer_card.rb +230 -0
- data/lib/korona_client/models/customer_data.rb +197 -0
- data/lib/korona_client/models/customer_group.rb +237 -0
- data/lib/korona_client/models/customer_group_summary.rb +215 -0
- data/lib/korona_client/models/customer_information.rb +206 -0
- data/lib/korona_client/models/customer_order.rb +356 -0
- data/lib/korona_client/models/day_rating.rb +269 -0
- data/lib/korona_client/models/device_information.rb +197 -0
- data/lib/korona_client/models/economic_zone.rb +228 -0
- data/lib/korona_client/models/end_of_day_statement.rb +264 -0
- data/lib/korona_client/models/end_of_day_statement_summary.rb +245 -0
- data/lib/korona_client/models/entry_gate.rb +246 -0
- data/lib/korona_client/models/event.rb +275 -0
- data/lib/korona_client/models/forbidden_error.rb +232 -0
- data/lib/korona_client/models/geo_location.rb +197 -0
- data/lib/korona_client/models/info_text.rb +270 -0
- data/lib/korona_client/models/interval.rb +197 -0
- data/lib/korona_client/models/inventory.rb +408 -0
- data/lib/korona_client/models/inventory_list.rb +351 -0
- data/lib/korona_client/models/inventory_list_item.rb +233 -0
- data/lib/korona_client/models/inventory_list_item_stock.rb +197 -0
- data/lib/korona_client/models/korona_account.rb +264 -0
- data/lib/korona_client/models/method_not_allowed_error.rb +232 -0
- data/lib/korona_client/models/model_reference.rb +209 -0
- data/lib/korona_client/models/not_found_error.rb +232 -0
- data/lib/korona_client/models/organizational_unit.rb +278 -0
- data/lib/korona_client/models/payment.rb +224 -0
- data/lib/korona_client/models/payment_method.rb +273 -0
- data/lib/korona_client/models/payment_summary.rb +206 -0
- data/lib/korona_client/models/period.rb +206 -0
- data/lib/korona_client/models/period_list_top_seller.rb +208 -0
- data/lib/korona_client/models/period_map_string_revenue_data.rb +208 -0
- data/lib/korona_client/models/period_object.rb +206 -0
- data/lib/korona_client/models/period_revenue_data.rb +206 -0
- data/lib/korona_client/models/pos.rb +351 -0
- data/lib/korona_client/models/price_group.rb +246 -0
- data/lib/korona_client/models/product.rb +620 -0
- data/lib/korona_client/models/product_code.rb +197 -0
- data/lib/korona_client/models/product_description.rb +230 -0
- data/lib/korona_client/models/product_price.rb +224 -0
- data/lib/korona_client/models/product_stock.rb +224 -0
- data/lib/korona_client/models/product_subproduct.rb +208 -0
- data/lib/korona_client/models/product_supplier_price.rb +224 -0
- data/lib/korona_client/models/product_transfer_involved_party_information.rb +233 -0
- data/lib/korona_client/models/product_transfer_involved_party_information_data.rb +206 -0
- data/lib/korona_client/models/rating.rb +206 -0
- data/lib/korona_client/models/receipt.rb +378 -0
- data/lib/korona_client/models/receipt_item.rb +262 -0
- data/lib/korona_client/models/result_list.rb +273 -0
- data/lib/korona_client/models/result_list_account.rb +273 -0
- data/lib/korona_client/models/result_list_assortment.rb +273 -0
- data/lib/korona_client/models/result_list_cashier.rb +273 -0
- data/lib/korona_client/models/result_list_commodity_group.rb +273 -0
- data/lib/korona_client/models/result_list_currency.rb +273 -0
- data/lib/korona_client/models/result_list_customer.rb +273 -0
- data/lib/korona_client/models/result_list_customer_group.rb +273 -0
- data/lib/korona_client/models/result_list_customer_order.rb +273 -0
- data/lib/korona_client/models/result_list_day_rating.rb +273 -0
- data/lib/korona_client/models/result_list_economic_zone.rb +273 -0
- data/lib/korona_client/models/result_list_end_of_day_statement.rb +273 -0
- data/lib/korona_client/models/result_list_entry_gate.rb +273 -0
- data/lib/korona_client/models/result_list_event.rb +273 -0
- data/lib/korona_client/models/result_list_info_text.rb +273 -0
- data/lib/korona_client/models/result_list_inventory.rb +273 -0
- data/lib/korona_client/models/result_list_inventory_list.rb +273 -0
- data/lib/korona_client/models/result_list_inventory_list_item.rb +273 -0
- data/lib/korona_client/models/result_list_organizational_unit.rb +273 -0
- data/lib/korona_client/models/result_list_payment_method.rb +273 -0
- data/lib/korona_client/models/result_list_pos.rb +273 -0
- data/lib/korona_client/models/result_list_price_group.rb +273 -0
- data/lib/korona_client/models/result_list_product.rb +273 -0
- data/lib/korona_client/models/result_list_product_stock.rb +273 -0
- data/lib/korona_client/models/result_list_receipt.rb +273 -0
- data/lib/korona_client/models/result_list_sales_tax.rb +273 -0
- data/lib/korona_client/models/result_list_sector.rb +273 -0
- data/lib/korona_client/models/result_list_stock_receipt.rb +273 -0
- data/lib/korona_client/models/result_list_stock_receipt_item.rb +273 -0
- data/lib/korona_client/models/result_list_supplier.rb +273 -0
- data/lib/korona_client/models/result_list_tag.rb +273 -0
- data/lib/korona_client/models/result_list_ticket_definition.rb +273 -0
- data/lib/korona_client/models/revenue_data.rb +224 -0
- data/lib/korona_client/models/sales_tax.rb +257 -0
- data/lib/korona_client/models/sales_tax_rate.rb +197 -0
- data/lib/korona_client/models/sector.rb +239 -0
- data/lib/korona_client/models/sector_sales_tax_item.rb +197 -0
- data/lib/korona_client/models/statistic.rb +206 -0
- data/lib/korona_client/models/statistic_list_top_seller.rb +206 -0
- data/lib/korona_client/models/statistic_map_string_revenue_data.rb +206 -0
- data/lib/korona_client/models/statistic_revenue_data.rb +206 -0
- data/lib/korona_client/models/stock_receipt.rb +405 -0
- data/lib/korona_client/models/stock_receipt_item.rb +242 -0
- data/lib/korona_client/models/stock_receipt_item_amount.rb +197 -0
- data/lib/korona_client/models/stock_receipt_item_identification.rb +206 -0
- data/lib/korona_client/models/stock_receipt_item_purchase_price.rb +197 -0
- data/lib/korona_client/models/supplier.rb +291 -0
- data/lib/korona_client/models/supplier_contact.rb +215 -0
- data/lib/korona_client/models/supplier_contact_person.rb +242 -0
- data/lib/korona_client/models/supplier_payment_information.rb +293 -0
- data/lib/korona_client/models/tag.rb +228 -0
- data/lib/korona_client/models/tax_payment.rb +215 -0
- data/lib/korona_client/models/tax_summary.rb +206 -0
- data/lib/korona_client/models/ticket_definition.rb +293 -0
- data/lib/korona_client/models/time_period.rb +242 -0
- data/lib/korona_client/models/too_many_requests_error.rb +232 -0
- data/lib/korona_client/models/top_seller.rb +227 -0
- data/lib/korona_client/models/total_price.rb +241 -0
- data/lib/korona_client/models/weather.rb +239 -0
- data/lib/korona_client/version.rb +15 -0
- data/spec/api/accounts_api_spec.rb +65 -0
- data/spec/api/assortments_api_spec.rb +95 -0
- data/spec/api/cashiers_api_spec.rb +65 -0
- data/spec/api/currencies_api_spec.rb +65 -0
- data/spec/api/customer_groups_api_spec.rb +65 -0
- data/spec/api/customer_orders_api_spec.rb +122 -0
- data/spec/api/customers_api_spec.rb +118 -0
- data/spec/api/economic_zones_api_spec.rb +65 -0
- data/spec/api/images_api_spec.rb +48 -0
- data/spec/api/info_texts_api_spec.rb +65 -0
- data/spec/api/inventories_korona_retail_api_spec.rb +251 -0
- data/spec/api/korona_account_api_spec.rb +47 -0
- data/spec/api/organizational_units_api_spec.rb +216 -0
- data/spec/api/payment_methods_api_spec.rb +65 -0
- data/spec/api/points_of_sale_api_spec.rb +166 -0
- data/spec/api/price_groups_api_spec.rb +65 -0
- data/spec/api/products_api_spec.rb +139 -0
- data/spec/api/receipts_api_spec.rb +69 -0
- data/spec/api/sales_taxes_api_spec.rb +65 -0
- data/spec/api/sectors_api_spec.rb +65 -0
- data/spec/api/statistics_api_spec.rb +92 -0
- data/spec/api/stock_receipts_korona_retail_api_spec.rb +187 -0
- data/spec/api/suppliers_api_spec.rb +65 -0
- data/spec/api/tags_api_spec.rb +65 -0
- data/spec/api/ticketing_api_spec.rb +125 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/account_spec.rb +112 -0
- data/spec/models/account_summary_spec.rb +54 -0
- data/spec/models/account_transaction_spec.rb +60 -0
- data/spec/models/add_or_update_result_spec.rb +80 -0
- data/spec/models/address_information_spec.rb +78 -0
- data/spec/models/admission_spec.rb +48 -0
- data/spec/models/amount_count_data_spec.rb +48 -0
- data/spec/models/amount_spec.rb +66 -0
- data/spec/models/assortment_spec.rb +84 -0
- data/spec/models/bad_request_error_spec.rb +52 -0
- data/spec/models/capacity_spec.rb +48 -0
- data/spec/models/cashier_spec.rb +122 -0
- data/spec/models/cashier_summary_spec.rb +72 -0
- data/spec/models/category_spec.rb +48 -0
- data/spec/models/cloud_subscription_spec.rb +52 -0
- data/spec/models/commodity_group_spec.rb +72 -0
- data/spec/models/commodity_group_summary_spec.rb +60 -0
- data/spec/models/company_identification_spec.rb +48 -0
- data/spec/models/currency_denomination_spec.rb +52 -0
- data/spec/models/currency_exchange_rate_spec.rb +48 -0
- data/spec/models/currency_spec.rb +108 -0
- data/spec/models/customer_card_spec.rb +52 -0
- data/spec/models/customer_data_spec.rb +48 -0
- data/spec/models/customer_group_spec.rb +72 -0
- data/spec/models/customer_group_summary_spec.rb +60 -0
- data/spec/models/customer_information_spec.rb +54 -0
- data/spec/models/customer_order_spec.rb +150 -0
- data/spec/models/customer_spec.rb +154 -0
- data/spec/models/day_rating_spec.rb +96 -0
- data/spec/models/device_information_spec.rb +48 -0
- data/spec/models/economic_zone_spec.rb +66 -0
- data/spec/models/end_of_day_statement_spec.rb +90 -0
- data/spec/models/end_of_day_statement_summary_spec.rb +72 -0
- data/spec/models/entry_gate_spec.rb +78 -0
- data/spec/models/event_spec.rb +96 -0
- data/spec/models/forbidden_error_spec.rb +52 -0
- data/spec/models/geo_location_spec.rb +48 -0
- data/spec/models/info_text_spec.rb +76 -0
- data/spec/models/interval_spec.rb +48 -0
- data/spec/models/inventory_list_item_spec.rb +72 -0
- data/spec/models/inventory_list_item_stock_spec.rb +48 -0
- data/spec/models/inventory_list_spec.rb +130 -0
- data/spec/models/inventory_spec.rb +162 -0
- data/spec/models/korona_account_spec.rb +90 -0
- data/spec/models/method_not_allowed_error_spec.rb +52 -0
- data/spec/models/model_reference_spec.rb +54 -0
- data/spec/models/not_found_error_spec.rb +52 -0
- data/spec/models/organizational_unit_spec.rb +96 -0
- data/spec/models/payment_method_spec.rb +96 -0
- data/spec/models/payment_spec.rb +66 -0
- data/spec/models/payment_summary_spec.rb +54 -0
- data/spec/models/period_list_top_seller_spec.rb +54 -0
- data/spec/models/period_map_string_revenue_data_spec.rb +54 -0
- data/spec/models/period_object_spec.rb +54 -0
- data/spec/models/period_revenue_data_spec.rb +54 -0
- data/spec/models/period_spec.rb +54 -0
- data/spec/models/pos_spec.rb +144 -0
- data/spec/models/price_group_spec.rb +78 -0
- data/spec/models/product_code_spec.rb +48 -0
- data/spec/models/product_description_spec.rb +52 -0
- data/spec/models/product_price_spec.rb +66 -0
- data/spec/models/product_spec.rb +296 -0
- data/spec/models/product_stock_spec.rb +66 -0
- data/spec/models/product_subproduct_spec.rb +54 -0
- data/spec/models/product_supplier_price_spec.rb +66 -0
- data/spec/models/product_transfer_involved_party_information_data_spec.rb +54 -0
- data/spec/models/product_transfer_involved_party_information_spec.rb +72 -0
- data/spec/models/rating_spec.rb +54 -0
- data/spec/models/receipt_item_spec.rb +90 -0
- data/spec/models/receipt_spec.rb +162 -0
- data/spec/models/result_list_account_spec.rb +72 -0
- data/spec/models/result_list_assortment_spec.rb +72 -0
- data/spec/models/result_list_cashier_spec.rb +72 -0
- data/spec/models/result_list_commodity_group_spec.rb +72 -0
- data/spec/models/result_list_currency_spec.rb +72 -0
- data/spec/models/result_list_customer_group_spec.rb +72 -0
- data/spec/models/result_list_customer_order_spec.rb +72 -0
- data/spec/models/result_list_customer_spec.rb +72 -0
- data/spec/models/result_list_day_rating_spec.rb +72 -0
- data/spec/models/result_list_economic_zone_spec.rb +72 -0
- data/spec/models/result_list_end_of_day_statement_spec.rb +72 -0
- data/spec/models/result_list_entry_gate_spec.rb +72 -0
- data/spec/models/result_list_event_spec.rb +72 -0
- data/spec/models/result_list_info_text_spec.rb +72 -0
- data/spec/models/result_list_inventory_list_item_spec.rb +72 -0
- data/spec/models/result_list_inventory_list_spec.rb +72 -0
- data/spec/models/result_list_inventory_spec.rb +72 -0
- data/spec/models/result_list_organizational_unit_spec.rb +72 -0
- data/spec/models/result_list_payment_method_spec.rb +72 -0
- data/spec/models/result_list_pos_spec.rb +72 -0
- data/spec/models/result_list_price_group_spec.rb +72 -0
- data/spec/models/result_list_product_spec.rb +72 -0
- data/spec/models/result_list_product_stock_spec.rb +72 -0
- data/spec/models/result_list_receipt_spec.rb +72 -0
- data/spec/models/result_list_sales_tax_spec.rb +72 -0
- data/spec/models/result_list_sector_spec.rb +72 -0
- data/spec/models/result_list_spec.rb +72 -0
- data/spec/models/result_list_stock_receipt_item_spec.rb +72 -0
- data/spec/models/result_list_stock_receipt_spec.rb +72 -0
- data/spec/models/result_list_supplier_spec.rb +72 -0
- data/spec/models/result_list_tag_spec.rb +72 -0
- data/spec/models/result_list_ticket_definition_spec.rb +72 -0
- data/spec/models/revenue_data_spec.rb +66 -0
- data/spec/models/sales_tax_rate_spec.rb +48 -0
- data/spec/models/sales_tax_spec.rb +84 -0
- data/spec/models/sector_sales_tax_item_spec.rb +48 -0
- data/spec/models/sector_spec.rb +72 -0
- data/spec/models/statistic_list_top_seller_spec.rb +54 -0
- data/spec/models/statistic_map_string_revenue_data_spec.rb +54 -0
- data/spec/models/statistic_revenue_data_spec.rb +54 -0
- data/spec/models/statistic_spec.rb +54 -0
- data/spec/models/stock_receipt_item_amount_spec.rb +48 -0
- data/spec/models/stock_receipt_item_identification_spec.rb +54 -0
- data/spec/models/stock_receipt_item_purchase_price_spec.rb +48 -0
- data/spec/models/stock_receipt_item_spec.rb +78 -0
- data/spec/models/stock_receipt_spec.rb +166 -0
- data/spec/models/supplier_contact_person_spec.rb +78 -0
- data/spec/models/supplier_contact_spec.rb +60 -0
- data/spec/models/supplier_payment_information_spec.rb +94 -0
- data/spec/models/supplier_spec.rb +108 -0
- data/spec/models/tag_spec.rb +66 -0
- data/spec/models/tax_payment_spec.rb +60 -0
- data/spec/models/tax_summary_spec.rb +54 -0
- data/spec/models/ticket_definition_spec.rb +108 -0
- data/spec/models/time_period_spec.rb +78 -0
- data/spec/models/too_many_requests_error_spec.rb +52 -0
- data/spec/models/top_seller_spec.rb +66 -0
- data/spec/models/total_price_spec.rb +66 -0
- data/spec/models/weather_spec.rb +58 -0
- data/spec/spec_helper.rb +111 -0
- metadata +856 -0
@@ -0,0 +1,282 @@
|
|
1
|
+
=begin
|
2
|
+
#KORONA.cloud API v3
|
3
|
+
|
4
|
+
#Our api provides access to our cloud services
|
5
|
+
|
6
|
+
OpenAPI spec version: 3
|
7
|
+
Contact: support@combase.net
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require "uri"
|
14
|
+
|
15
|
+
module KoronaClient
|
16
|
+
class StatisticsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
|
23
|
+
# lists information about the revenue in the given period
|
24
|
+
#
|
25
|
+
# @param korona_account_id the account id
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @option opts [String] :organizational_unit number of the organizational unit
|
28
|
+
# @option opts [String] :period time period for comparison
|
29
|
+
# @return [StatisticRevenueData]
|
30
|
+
def get_revenue(korona_account_id, opts = {})
|
31
|
+
data, _status_code, _headers = get_revenue_with_http_info(korona_account_id, opts)
|
32
|
+
return data
|
33
|
+
end
|
34
|
+
|
35
|
+
# lists information about the revenue in the given period
|
36
|
+
#
|
37
|
+
# @param korona_account_id the account id
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [String] :organizational_unit number of the organizational unit
|
40
|
+
# @option opts [String] :period time period for comparison
|
41
|
+
# @return [Array<(StatisticRevenueData, Fixnum, Hash)>] StatisticRevenueData data, response status code and response headers
|
42
|
+
def get_revenue_with_http_info(korona_account_id, opts = {})
|
43
|
+
if @api_client.config.debugging
|
44
|
+
@api_client.config.logger.debug "Calling API: StatisticsApi.get_revenue ..."
|
45
|
+
end
|
46
|
+
# verify the required parameter 'korona_account_id' is set
|
47
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
48
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling StatisticsApi.get_revenue"
|
49
|
+
end
|
50
|
+
if @api_client.config.client_side_validation && opts[:'period'] && !['DAY', 'WEEK', 'MONTH', 'YEAR'].include?(opts[:'period'])
|
51
|
+
fail ArgumentError, 'invalid value for "period", must be one of DAY, WEEK, MONTH, YEAR'
|
52
|
+
end
|
53
|
+
# resource path
|
54
|
+
local_var_path = "/accounts/{koronaAccountId}/statistics/revenueData".sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)
|
55
|
+
|
56
|
+
# query parameters
|
57
|
+
query_params = {}
|
58
|
+
query_params[:'organizationalUnit'] = opts[:'organizational_unit'] if !opts[:'organizational_unit'].nil?
|
59
|
+
query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
|
60
|
+
|
61
|
+
# header parameters
|
62
|
+
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 = {}
|
70
|
+
|
71
|
+
# http body (model)
|
72
|
+
post_body = nil
|
73
|
+
auth_names = ['basicAuth']
|
74
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
75
|
+
:header_params => header_params,
|
76
|
+
:query_params => query_params,
|
77
|
+
:form_params => form_params,
|
78
|
+
:body => post_body,
|
79
|
+
:auth_names => auth_names,
|
80
|
+
:return_type => 'StatisticRevenueData')
|
81
|
+
if @api_client.config.debugging
|
82
|
+
@api_client.config.logger.debug "API called: StatisticsApi#get_revenue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
83
|
+
end
|
84
|
+
return data, status_code, headers
|
85
|
+
end
|
86
|
+
|
87
|
+
# lists the turnover per customer group during the given period
|
88
|
+
#
|
89
|
+
# @param korona_account_id the account id
|
90
|
+
# @param [Hash] opts the optional parameters
|
91
|
+
# @option opts [String] :organizational_unit number of the organizational unit
|
92
|
+
# @option opts [String] :period time period for comparison
|
93
|
+
# @return [StatisticMapStringRevenueData]
|
94
|
+
def get_revenue_for_customer_groups(korona_account_id, opts = {})
|
95
|
+
data, _status_code, _headers = get_revenue_for_customer_groups_with_http_info(korona_account_id, opts)
|
96
|
+
return data
|
97
|
+
end
|
98
|
+
|
99
|
+
# lists the turnover per customer group during the given period
|
100
|
+
#
|
101
|
+
# @param korona_account_id the account id
|
102
|
+
# @param [Hash] opts the optional parameters
|
103
|
+
# @option opts [String] :organizational_unit number of the organizational unit
|
104
|
+
# @option opts [String] :period time period for comparison
|
105
|
+
# @return [Array<(StatisticMapStringRevenueData, Fixnum, Hash)>] StatisticMapStringRevenueData data, response status code and response headers
|
106
|
+
def get_revenue_for_customer_groups_with_http_info(korona_account_id, opts = {})
|
107
|
+
if @api_client.config.debugging
|
108
|
+
@api_client.config.logger.debug "Calling API: StatisticsApi.get_revenue_for_customer_groups ..."
|
109
|
+
end
|
110
|
+
# verify the required parameter 'korona_account_id' is set
|
111
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
112
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling StatisticsApi.get_revenue_for_customer_groups"
|
113
|
+
end
|
114
|
+
if @api_client.config.client_side_validation && opts[:'period'] && !['DAY', 'WEEK', 'MONTH', 'YEAR'].include?(opts[:'period'])
|
115
|
+
fail ArgumentError, 'invalid value for "period", must be one of DAY, WEEK, MONTH, YEAR'
|
116
|
+
end
|
117
|
+
# resource path
|
118
|
+
local_var_path = "/accounts/{koronaAccountId}/statistics/revenueDataForCustomerGroups".sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)
|
119
|
+
|
120
|
+
# query parameters
|
121
|
+
query_params = {}
|
122
|
+
query_params[:'organizationalUnit'] = opts[:'organizational_unit'] if !opts[:'organizational_unit'].nil?
|
123
|
+
query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
|
124
|
+
|
125
|
+
# header parameters
|
126
|
+
header_params = {}
|
127
|
+
# HTTP header 'Accept' (if needed)
|
128
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
129
|
+
# HTTP header 'Content-Type'
|
130
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
131
|
+
|
132
|
+
# form parameters
|
133
|
+
form_params = {}
|
134
|
+
|
135
|
+
# http body (model)
|
136
|
+
post_body = nil
|
137
|
+
auth_names = ['basicAuth']
|
138
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
139
|
+
:header_params => header_params,
|
140
|
+
:query_params => query_params,
|
141
|
+
:form_params => form_params,
|
142
|
+
:body => post_body,
|
143
|
+
:auth_names => auth_names,
|
144
|
+
:return_type => 'StatisticMapStringRevenueData')
|
145
|
+
if @api_client.config.debugging
|
146
|
+
@api_client.config.logger.debug "API called: StatisticsApi#get_revenue_for_customer_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
147
|
+
end
|
148
|
+
return data, status_code, headers
|
149
|
+
end
|
150
|
+
|
151
|
+
# lists the turnover per hour during the given period
|
152
|
+
#
|
153
|
+
# @param korona_account_id the account id
|
154
|
+
# @param [Hash] opts the optional parameters
|
155
|
+
# @option opts [String] :organizational_unit number of the organizational unit
|
156
|
+
# @option opts [String] :period time period for comparison
|
157
|
+
# @return [StatisticMapStringRevenueData]
|
158
|
+
def get_revenue_hourly(korona_account_id, opts = {})
|
159
|
+
data, _status_code, _headers = get_revenue_hourly_with_http_info(korona_account_id, opts)
|
160
|
+
return data
|
161
|
+
end
|
162
|
+
|
163
|
+
# lists the turnover per hour during the given period
|
164
|
+
#
|
165
|
+
# @param korona_account_id the account id
|
166
|
+
# @param [Hash] opts the optional parameters
|
167
|
+
# @option opts [String] :organizational_unit number of the organizational unit
|
168
|
+
# @option opts [String] :period time period for comparison
|
169
|
+
# @return [Array<(StatisticMapStringRevenueData, Fixnum, Hash)>] StatisticMapStringRevenueData data, response status code and response headers
|
170
|
+
def get_revenue_hourly_with_http_info(korona_account_id, opts = {})
|
171
|
+
if @api_client.config.debugging
|
172
|
+
@api_client.config.logger.debug "Calling API: StatisticsApi.get_revenue_hourly ..."
|
173
|
+
end
|
174
|
+
# verify the required parameter 'korona_account_id' is set
|
175
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
176
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling StatisticsApi.get_revenue_hourly"
|
177
|
+
end
|
178
|
+
if @api_client.config.client_side_validation && opts[:'period'] && !['DAY', 'WEEK', 'MONTH', 'YEAR'].include?(opts[:'period'])
|
179
|
+
fail ArgumentError, 'invalid value for "period", must be one of DAY, WEEK, MONTH, YEAR'
|
180
|
+
end
|
181
|
+
# resource path
|
182
|
+
local_var_path = "/accounts/{koronaAccountId}/statistics/revenueDataHourly".sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)
|
183
|
+
|
184
|
+
# query parameters
|
185
|
+
query_params = {}
|
186
|
+
query_params[:'organizationalUnit'] = opts[:'organizational_unit'] if !opts[:'organizational_unit'].nil?
|
187
|
+
query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
|
188
|
+
|
189
|
+
# header parameters
|
190
|
+
header_params = {}
|
191
|
+
# HTTP header 'Accept' (if needed)
|
192
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
193
|
+
# HTTP header 'Content-Type'
|
194
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
195
|
+
|
196
|
+
# form parameters
|
197
|
+
form_params = {}
|
198
|
+
|
199
|
+
# http body (model)
|
200
|
+
post_body = nil
|
201
|
+
auth_names = ['basicAuth']
|
202
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
203
|
+
:header_params => header_params,
|
204
|
+
:query_params => query_params,
|
205
|
+
:form_params => form_params,
|
206
|
+
:body => post_body,
|
207
|
+
:auth_names => auth_names,
|
208
|
+
:return_type => 'StatisticMapStringRevenueData')
|
209
|
+
if @api_client.config.debugging
|
210
|
+
@api_client.config.logger.debug "API called: StatisticsApi#get_revenue_hourly\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
211
|
+
end
|
212
|
+
return data, status_code, headers
|
213
|
+
end
|
214
|
+
|
215
|
+
# lists the top-seller
|
216
|
+
#
|
217
|
+
# @param korona_account_id the account id
|
218
|
+
# @param [Hash] opts the optional parameters
|
219
|
+
# @option opts [String] :organizational_unit number of the organizational unit
|
220
|
+
# @option opts [String] :period time period for comparison
|
221
|
+
# @option opts [Integer] :limit maximum number of products to show
|
222
|
+
# @return [StatisticListTopSeller]
|
223
|
+
def get_top_seller(korona_account_id, opts = {})
|
224
|
+
data, _status_code, _headers = get_top_seller_with_http_info(korona_account_id, opts)
|
225
|
+
return data
|
226
|
+
end
|
227
|
+
|
228
|
+
# lists the top-seller
|
229
|
+
#
|
230
|
+
# @param korona_account_id the account id
|
231
|
+
# @param [Hash] opts the optional parameters
|
232
|
+
# @option opts [String] :organizational_unit number of the organizational unit
|
233
|
+
# @option opts [String] :period time period for comparison
|
234
|
+
# @option opts [Integer] :limit maximum number of products to show
|
235
|
+
# @return [Array<(StatisticListTopSeller, Fixnum, Hash)>] StatisticListTopSeller data, response status code and response headers
|
236
|
+
def get_top_seller_with_http_info(korona_account_id, opts = {})
|
237
|
+
if @api_client.config.debugging
|
238
|
+
@api_client.config.logger.debug "Calling API: StatisticsApi.get_top_seller ..."
|
239
|
+
end
|
240
|
+
# verify the required parameter 'korona_account_id' is set
|
241
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
242
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling StatisticsApi.get_top_seller"
|
243
|
+
end
|
244
|
+
if @api_client.config.client_side_validation && opts[:'period'] && !['DAY', 'WEEK', 'MONTH', 'YEAR'].include?(opts[:'period'])
|
245
|
+
fail ArgumentError, 'invalid value for "period", must be one of DAY, WEEK, MONTH, YEAR'
|
246
|
+
end
|
247
|
+
# resource path
|
248
|
+
local_var_path = "/accounts/{koronaAccountId}/statistics/topSeller".sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)
|
249
|
+
|
250
|
+
# query parameters
|
251
|
+
query_params = {}
|
252
|
+
query_params[:'organizationalUnit'] = opts[:'organizational_unit'] if !opts[:'organizational_unit'].nil?
|
253
|
+
query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
|
254
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
255
|
+
|
256
|
+
# header parameters
|
257
|
+
header_params = {}
|
258
|
+
# HTTP header 'Accept' (if needed)
|
259
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
260
|
+
# HTTP header 'Content-Type'
|
261
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
262
|
+
|
263
|
+
# form parameters
|
264
|
+
form_params = {}
|
265
|
+
|
266
|
+
# http body (model)
|
267
|
+
post_body = nil
|
268
|
+
auth_names = ['basicAuth']
|
269
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
270
|
+
:header_params => header_params,
|
271
|
+
:query_params => query_params,
|
272
|
+
:form_params => form_params,
|
273
|
+
:body => post_body,
|
274
|
+
:auth_names => auth_names,
|
275
|
+
:return_type => 'StatisticListTopSeller')
|
276
|
+
if @api_client.config.debugging
|
277
|
+
@api_client.config.logger.debug "API called: StatisticsApi#get_top_seller\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
278
|
+
end
|
279
|
+
return data, status_code, headers
|
280
|
+
end
|
281
|
+
end
|
282
|
+
end
|
@@ -0,0 +1,717 @@
|
|
1
|
+
=begin
|
2
|
+
#KORONA.cloud API v3
|
3
|
+
|
4
|
+
#Our api provides access to our cloud services
|
5
|
+
|
6
|
+
OpenAPI spec version: 3
|
7
|
+
Contact: support@combase.net
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require "uri"
|
14
|
+
|
15
|
+
module KoronaClient
|
16
|
+
class StockReceiptsKORONARetailApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
|
23
|
+
# adds stock-receipt items
|
24
|
+
#
|
25
|
+
# @param korona_account_id the account id
|
26
|
+
# @param stock_receipt_id_or_number id or number of the related object (important: if a number should match the uuid-format, the system will lookup for an id instead of a number)
|
27
|
+
# @param body data to add
|
28
|
+
# @param [Hash] opts the optional parameters
|
29
|
+
# @return [Array<AddOrUpdateResult>]
|
30
|
+
def add_stock_receipt_items(korona_account_id, stock_receipt_id_or_number, body, opts = {})
|
31
|
+
data, _status_code, _headers = add_stock_receipt_items_with_http_info(korona_account_id, stock_receipt_id_or_number, body, opts)
|
32
|
+
return data
|
33
|
+
end
|
34
|
+
|
35
|
+
# adds stock-receipt items
|
36
|
+
#
|
37
|
+
# @param korona_account_id the account id
|
38
|
+
# @param stock_receipt_id_or_number id or number of the related object (important: if a number should match the uuid-format, the system will lookup for an id instead of a number)
|
39
|
+
# @param body data to add
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @return [Array<(Array<AddOrUpdateResult>, Fixnum, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers
|
42
|
+
def add_stock_receipt_items_with_http_info(korona_account_id, stock_receipt_id_or_number, body, opts = {})
|
43
|
+
if @api_client.config.debugging
|
44
|
+
@api_client.config.logger.debug "Calling API: StockReceiptsKORONARetailApi.add_stock_receipt_items ..."
|
45
|
+
end
|
46
|
+
# verify the required parameter 'korona_account_id' is set
|
47
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
48
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling StockReceiptsKORONARetailApi.add_stock_receipt_items"
|
49
|
+
end
|
50
|
+
# verify the required parameter 'stock_receipt_id_or_number' is set
|
51
|
+
if @api_client.config.client_side_validation && stock_receipt_id_or_number.nil?
|
52
|
+
fail ArgumentError, "Missing the required parameter 'stock_receipt_id_or_number' when calling StockReceiptsKORONARetailApi.add_stock_receipt_items"
|
53
|
+
end
|
54
|
+
# verify the required parameter 'body' is set
|
55
|
+
if @api_client.config.client_side_validation && body.nil?
|
56
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling StockReceiptsKORONARetailApi.add_stock_receipt_items"
|
57
|
+
end
|
58
|
+
# resource path
|
59
|
+
local_var_path = "/accounts/{koronaAccountId}/stockReceipts/{stockReceiptIdOrNumber}/items".sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'stockReceiptIdOrNumber' + '}', stock_receipt_id_or_number.to_s)
|
60
|
+
|
61
|
+
# query parameters
|
62
|
+
query_params = {}
|
63
|
+
|
64
|
+
# header parameters
|
65
|
+
header_params = {}
|
66
|
+
# HTTP header 'Accept' (if needed)
|
67
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
68
|
+
# HTTP header 'Content-Type'
|
69
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
70
|
+
|
71
|
+
# form parameters
|
72
|
+
form_params = {}
|
73
|
+
|
74
|
+
# http body (model)
|
75
|
+
post_body = @api_client.object_to_http_body(body)
|
76
|
+
auth_names = ['basicAuth']
|
77
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
78
|
+
:header_params => header_params,
|
79
|
+
:query_params => query_params,
|
80
|
+
:form_params => form_params,
|
81
|
+
:body => post_body,
|
82
|
+
:auth_names => auth_names,
|
83
|
+
:return_type => 'Array<AddOrUpdateResult>')
|
84
|
+
if @api_client.config.debugging
|
85
|
+
@api_client.config.logger.debug "API called: StockReceiptsKORONARetailApi#add_stock_receipt_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
86
|
+
end
|
87
|
+
return data, status_code, headers
|
88
|
+
end
|
89
|
+
|
90
|
+
# adds stock-receipts
|
91
|
+
#
|
92
|
+
# @param korona_account_id the account id
|
93
|
+
# @param body data to add
|
94
|
+
# @param [Hash] opts the optional parameters
|
95
|
+
# @return [Array<AddOrUpdateResult>]
|
96
|
+
def add_stock_receipts(korona_account_id, body, opts = {})
|
97
|
+
data, _status_code, _headers = add_stock_receipts_with_http_info(korona_account_id, body, opts)
|
98
|
+
return data
|
99
|
+
end
|
100
|
+
|
101
|
+
# adds stock-receipts
|
102
|
+
#
|
103
|
+
# @param korona_account_id the account id
|
104
|
+
# @param body data to add
|
105
|
+
# @param [Hash] opts the optional parameters
|
106
|
+
# @return [Array<(Array<AddOrUpdateResult>, Fixnum, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers
|
107
|
+
def add_stock_receipts_with_http_info(korona_account_id, body, opts = {})
|
108
|
+
if @api_client.config.debugging
|
109
|
+
@api_client.config.logger.debug "Calling API: StockReceiptsKORONARetailApi.add_stock_receipts ..."
|
110
|
+
end
|
111
|
+
# verify the required parameter 'korona_account_id' is set
|
112
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
113
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling StockReceiptsKORONARetailApi.add_stock_receipts"
|
114
|
+
end
|
115
|
+
# verify the required parameter 'body' is set
|
116
|
+
if @api_client.config.client_side_validation && body.nil?
|
117
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling StockReceiptsKORONARetailApi.add_stock_receipts"
|
118
|
+
end
|
119
|
+
# resource path
|
120
|
+
local_var_path = "/accounts/{koronaAccountId}/stockReceipts".sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)
|
121
|
+
|
122
|
+
# query parameters
|
123
|
+
query_params = {}
|
124
|
+
|
125
|
+
# header parameters
|
126
|
+
header_params = {}
|
127
|
+
# HTTP header 'Accept' (if needed)
|
128
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
129
|
+
# HTTP header 'Content-Type'
|
130
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
131
|
+
|
132
|
+
# form parameters
|
133
|
+
form_params = {}
|
134
|
+
|
135
|
+
# http body (model)
|
136
|
+
post_body = @api_client.object_to_http_body(body)
|
137
|
+
auth_names = ['basicAuth']
|
138
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
139
|
+
:header_params => header_params,
|
140
|
+
:query_params => query_params,
|
141
|
+
:form_params => form_params,
|
142
|
+
:body => post_body,
|
143
|
+
:auth_names => auth_names,
|
144
|
+
:return_type => 'Array<AddOrUpdateResult>')
|
145
|
+
if @api_client.config.debugging
|
146
|
+
@api_client.config.logger.debug "API called: StockReceiptsKORONARetailApi#add_stock_receipts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
147
|
+
end
|
148
|
+
return data, status_code, headers
|
149
|
+
end
|
150
|
+
|
151
|
+
# deletes the stock-receipt item
|
152
|
+
#
|
153
|
+
# @param korona_account_id the account id
|
154
|
+
# @param stock_receipt_id_or_number id or number of the related object (important: if a number should match the uuid-format, the system will lookup for an id instead of a number)
|
155
|
+
# @param product_id_or_number id or number of the related object (important: if a number should match the uuid-format, the system will lookup for an id instead of a number)
|
156
|
+
# @param [Hash] opts the optional parameters
|
157
|
+
# @return [nil]
|
158
|
+
def delete_stock_receipt_item(korona_account_id, stock_receipt_id_or_number, product_id_or_number, opts = {})
|
159
|
+
delete_stock_receipt_item_with_http_info(korona_account_id, stock_receipt_id_or_number, product_id_or_number, opts)
|
160
|
+
return nil
|
161
|
+
end
|
162
|
+
|
163
|
+
# deletes the stock-receipt item
|
164
|
+
#
|
165
|
+
# @param korona_account_id the account id
|
166
|
+
# @param stock_receipt_id_or_number id or number of the related object (important: if a number should match the uuid-format, the system will lookup for an id instead of a number)
|
167
|
+
# @param product_id_or_number id or number of the related object (important: if a number should match the uuid-format, the system will lookup for an id instead of a number)
|
168
|
+
# @param [Hash] opts the optional parameters
|
169
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
170
|
+
def delete_stock_receipt_item_with_http_info(korona_account_id, stock_receipt_id_or_number, product_id_or_number, opts = {})
|
171
|
+
if @api_client.config.debugging
|
172
|
+
@api_client.config.logger.debug "Calling API: StockReceiptsKORONARetailApi.delete_stock_receipt_item ..."
|
173
|
+
end
|
174
|
+
# verify the required parameter 'korona_account_id' is set
|
175
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
176
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling StockReceiptsKORONARetailApi.delete_stock_receipt_item"
|
177
|
+
end
|
178
|
+
# verify the required parameter 'stock_receipt_id_or_number' is set
|
179
|
+
if @api_client.config.client_side_validation && stock_receipt_id_or_number.nil?
|
180
|
+
fail ArgumentError, "Missing the required parameter 'stock_receipt_id_or_number' when calling StockReceiptsKORONARetailApi.delete_stock_receipt_item"
|
181
|
+
end
|
182
|
+
# verify the required parameter 'product_id_or_number' is set
|
183
|
+
if @api_client.config.client_side_validation && product_id_or_number.nil?
|
184
|
+
fail ArgumentError, "Missing the required parameter 'product_id_or_number' when calling StockReceiptsKORONARetailApi.delete_stock_receipt_item"
|
185
|
+
end
|
186
|
+
# resource path
|
187
|
+
local_var_path = "/accounts/{koronaAccountId}/stockReceipts/{stockReceiptIdOrNumber}/items/{productIdOrNumber}".sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'stockReceiptIdOrNumber' + '}', stock_receipt_id_or_number.to_s).sub('{' + 'productIdOrNumber' + '}', product_id_or_number.to_s)
|
188
|
+
|
189
|
+
# query parameters
|
190
|
+
query_params = {}
|
191
|
+
|
192
|
+
# header parameters
|
193
|
+
header_params = {}
|
194
|
+
# HTTP header 'Accept' (if needed)
|
195
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
196
|
+
# HTTP header 'Content-Type'
|
197
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
198
|
+
|
199
|
+
# form parameters
|
200
|
+
form_params = {}
|
201
|
+
|
202
|
+
# http body (model)
|
203
|
+
post_body = nil
|
204
|
+
auth_names = ['basicAuth']
|
205
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
206
|
+
:header_params => header_params,
|
207
|
+
:query_params => query_params,
|
208
|
+
:form_params => form_params,
|
209
|
+
:body => post_body,
|
210
|
+
:auth_names => auth_names)
|
211
|
+
if @api_client.config.debugging
|
212
|
+
@api_client.config.logger.debug "API called: StockReceiptsKORONARetailApi#delete_stock_receipt_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
213
|
+
end
|
214
|
+
return data, status_code, headers
|
215
|
+
end
|
216
|
+
|
217
|
+
# lists the stock-receipt
|
218
|
+
#
|
219
|
+
# @param korona_account_id the account id
|
220
|
+
# @param stock_receipt_id_or_number id or number of the related object (important: if a number should match the uuid-format, the system will lookup for an id instead of a number)
|
221
|
+
# @param [Hash] opts the optional parameters
|
222
|
+
# @return [StockReceipt]
|
223
|
+
def get_stock_receipt(korona_account_id, stock_receipt_id_or_number, opts = {})
|
224
|
+
data, _status_code, _headers = get_stock_receipt_with_http_info(korona_account_id, stock_receipt_id_or_number, opts)
|
225
|
+
return data
|
226
|
+
end
|
227
|
+
|
228
|
+
# lists the stock-receipt
|
229
|
+
#
|
230
|
+
# @param korona_account_id the account id
|
231
|
+
# @param stock_receipt_id_or_number id or number of the related object (important: if a number should match the uuid-format, the system will lookup for an id instead of a number)
|
232
|
+
# @param [Hash] opts the optional parameters
|
233
|
+
# @return [Array<(StockReceipt, Fixnum, Hash)>] StockReceipt data, response status code and response headers
|
234
|
+
def get_stock_receipt_with_http_info(korona_account_id, stock_receipt_id_or_number, opts = {})
|
235
|
+
if @api_client.config.debugging
|
236
|
+
@api_client.config.logger.debug "Calling API: StockReceiptsKORONARetailApi.get_stock_receipt ..."
|
237
|
+
end
|
238
|
+
# verify the required parameter 'korona_account_id' is set
|
239
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
240
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling StockReceiptsKORONARetailApi.get_stock_receipt"
|
241
|
+
end
|
242
|
+
# verify the required parameter 'stock_receipt_id_or_number' is set
|
243
|
+
if @api_client.config.client_side_validation && stock_receipt_id_or_number.nil?
|
244
|
+
fail ArgumentError, "Missing the required parameter 'stock_receipt_id_or_number' when calling StockReceiptsKORONARetailApi.get_stock_receipt"
|
245
|
+
end
|
246
|
+
# resource path
|
247
|
+
local_var_path = "/accounts/{koronaAccountId}/stockReceipts/{stockReceiptIdOrNumber}".sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'stockReceiptIdOrNumber' + '}', stock_receipt_id_or_number.to_s)
|
248
|
+
|
249
|
+
# query parameters
|
250
|
+
query_params = {}
|
251
|
+
|
252
|
+
# header parameters
|
253
|
+
header_params = {}
|
254
|
+
# HTTP header 'Accept' (if needed)
|
255
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
256
|
+
# HTTP header 'Content-Type'
|
257
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
258
|
+
|
259
|
+
# form parameters
|
260
|
+
form_params = {}
|
261
|
+
|
262
|
+
# http body (model)
|
263
|
+
post_body = nil
|
264
|
+
auth_names = ['basicAuth']
|
265
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
266
|
+
:header_params => header_params,
|
267
|
+
:query_params => query_params,
|
268
|
+
:form_params => form_params,
|
269
|
+
:body => post_body,
|
270
|
+
:auth_names => auth_names,
|
271
|
+
:return_type => 'StockReceipt')
|
272
|
+
if @api_client.config.debugging
|
273
|
+
@api_client.config.logger.debug "API called: StockReceiptsKORONARetailApi#get_stock_receipt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
274
|
+
end
|
275
|
+
return data, status_code, headers
|
276
|
+
end
|
277
|
+
|
278
|
+
# lists the stock-receipt item
|
279
|
+
#
|
280
|
+
# @param korona_account_id the account id
|
281
|
+
# @param stock_receipt_id_or_number id or number of the related object (important: if a number should match the uuid-format, the system will lookup for an id instead of a number)
|
282
|
+
# @param product_id_or_number id or number of the related object (important: if a number should match the uuid-format, the system will lookup for an id instead of a number)
|
283
|
+
# @param [Hash] opts the optional parameters
|
284
|
+
# @return [StockReceiptItem]
|
285
|
+
def get_stock_receipt_item(korona_account_id, stock_receipt_id_or_number, product_id_or_number, opts = {})
|
286
|
+
data, _status_code, _headers = get_stock_receipt_item_with_http_info(korona_account_id, stock_receipt_id_or_number, product_id_or_number, opts)
|
287
|
+
return data
|
288
|
+
end
|
289
|
+
|
290
|
+
# lists the stock-receipt item
|
291
|
+
#
|
292
|
+
# @param korona_account_id the account id
|
293
|
+
# @param stock_receipt_id_or_number id or number of the related object (important: if a number should match the uuid-format, the system will lookup for an id instead of a number)
|
294
|
+
# @param product_id_or_number id or number of the related object (important: if a number should match the uuid-format, the system will lookup for an id instead of a number)
|
295
|
+
# @param [Hash] opts the optional parameters
|
296
|
+
# @return [Array<(StockReceiptItem, Fixnum, Hash)>] StockReceiptItem data, response status code and response headers
|
297
|
+
def get_stock_receipt_item_with_http_info(korona_account_id, stock_receipt_id_or_number, product_id_or_number, opts = {})
|
298
|
+
if @api_client.config.debugging
|
299
|
+
@api_client.config.logger.debug "Calling API: StockReceiptsKORONARetailApi.get_stock_receipt_item ..."
|
300
|
+
end
|
301
|
+
# verify the required parameter 'korona_account_id' is set
|
302
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
303
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling StockReceiptsKORONARetailApi.get_stock_receipt_item"
|
304
|
+
end
|
305
|
+
# verify the required parameter 'stock_receipt_id_or_number' is set
|
306
|
+
if @api_client.config.client_side_validation && stock_receipt_id_or_number.nil?
|
307
|
+
fail ArgumentError, "Missing the required parameter 'stock_receipt_id_or_number' when calling StockReceiptsKORONARetailApi.get_stock_receipt_item"
|
308
|
+
end
|
309
|
+
# verify the required parameter 'product_id_or_number' is set
|
310
|
+
if @api_client.config.client_side_validation && product_id_or_number.nil?
|
311
|
+
fail ArgumentError, "Missing the required parameter 'product_id_or_number' when calling StockReceiptsKORONARetailApi.get_stock_receipt_item"
|
312
|
+
end
|
313
|
+
# resource path
|
314
|
+
local_var_path = "/accounts/{koronaAccountId}/stockReceipts/{stockReceiptIdOrNumber}/items/{productIdOrNumber}".sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'stockReceiptIdOrNumber' + '}', stock_receipt_id_or_number.to_s).sub('{' + 'productIdOrNumber' + '}', product_id_or_number.to_s)
|
315
|
+
|
316
|
+
# query parameters
|
317
|
+
query_params = {}
|
318
|
+
|
319
|
+
# header parameters
|
320
|
+
header_params = {}
|
321
|
+
# HTTP header 'Accept' (if needed)
|
322
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
323
|
+
# HTTP header 'Content-Type'
|
324
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
325
|
+
|
326
|
+
# form parameters
|
327
|
+
form_params = {}
|
328
|
+
|
329
|
+
# http body (model)
|
330
|
+
post_body = nil
|
331
|
+
auth_names = ['basicAuth']
|
332
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
333
|
+
:header_params => header_params,
|
334
|
+
:query_params => query_params,
|
335
|
+
:form_params => form_params,
|
336
|
+
:body => post_body,
|
337
|
+
:auth_names => auth_names,
|
338
|
+
:return_type => 'StockReceiptItem')
|
339
|
+
if @api_client.config.debugging
|
340
|
+
@api_client.config.logger.debug "API called: StockReceiptsKORONARetailApi#get_stock_receipt_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
341
|
+
end
|
342
|
+
return data, status_code, headers
|
343
|
+
end
|
344
|
+
|
345
|
+
# lists all stock-receipt items
|
346
|
+
#
|
347
|
+
# @param korona_account_id the account id
|
348
|
+
# @param stock_receipt_id_or_number id or number of the related object (important: if a number should match the uuid-format, the system will lookup for an id instead of a number)
|
349
|
+
# @param [Hash] opts the optional parameters
|
350
|
+
# @option opts [Integer] :page number of the page to fetch
|
351
|
+
# @option opts [Integer] :size amount of objects to return per page
|
352
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
353
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
354
|
+
# @return [ResultListStockReceiptItem]
|
355
|
+
def get_stock_receipt_items(korona_account_id, stock_receipt_id_or_number, opts = {})
|
356
|
+
data, _status_code, _headers = get_stock_receipt_items_with_http_info(korona_account_id, stock_receipt_id_or_number, opts)
|
357
|
+
return data
|
358
|
+
end
|
359
|
+
|
360
|
+
# lists all stock-receipt items
|
361
|
+
#
|
362
|
+
# @param korona_account_id the account id
|
363
|
+
# @param stock_receipt_id_or_number id or number of the related object (important: if a number should match the uuid-format, the system will lookup for an id instead of a number)
|
364
|
+
# @param [Hash] opts the optional parameters
|
365
|
+
# @option opts [Integer] :page number of the page to fetch
|
366
|
+
# @option opts [Integer] :size amount of objects to return per page
|
367
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
368
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
369
|
+
# @return [Array<(ResultListStockReceiptItem, Fixnum, Hash)>] ResultListStockReceiptItem data, response status code and response headers
|
370
|
+
def get_stock_receipt_items_with_http_info(korona_account_id, stock_receipt_id_or_number, opts = {})
|
371
|
+
if @api_client.config.debugging
|
372
|
+
@api_client.config.logger.debug "Calling API: StockReceiptsKORONARetailApi.get_stock_receipt_items ..."
|
373
|
+
end
|
374
|
+
# verify the required parameter 'korona_account_id' is set
|
375
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
376
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling StockReceiptsKORONARetailApi.get_stock_receipt_items"
|
377
|
+
end
|
378
|
+
# verify the required parameter 'stock_receipt_id_or_number' is set
|
379
|
+
if @api_client.config.client_side_validation && stock_receipt_id_or_number.nil?
|
380
|
+
fail ArgumentError, "Missing the required parameter 'stock_receipt_id_or_number' when calling StockReceiptsKORONARetailApi.get_stock_receipt_items"
|
381
|
+
end
|
382
|
+
# resource path
|
383
|
+
local_var_path = "/accounts/{koronaAccountId}/stockReceipts/{stockReceiptIdOrNumber}/items".sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'stockReceiptIdOrNumber' + '}', stock_receipt_id_or_number.to_s)
|
384
|
+
|
385
|
+
# query parameters
|
386
|
+
query_params = {}
|
387
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
388
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
389
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
390
|
+
query_params[:'revision'] = opts[:'revision'] if !opts[:'revision'].nil?
|
391
|
+
|
392
|
+
# header parameters
|
393
|
+
header_params = {}
|
394
|
+
# HTTP header 'Accept' (if needed)
|
395
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
396
|
+
# HTTP header 'Content-Type'
|
397
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
398
|
+
|
399
|
+
# form parameters
|
400
|
+
form_params = {}
|
401
|
+
|
402
|
+
# http body (model)
|
403
|
+
post_body = nil
|
404
|
+
auth_names = ['basicAuth']
|
405
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
406
|
+
:header_params => header_params,
|
407
|
+
:query_params => query_params,
|
408
|
+
:form_params => form_params,
|
409
|
+
:body => post_body,
|
410
|
+
:auth_names => auth_names,
|
411
|
+
:return_type => 'ResultListStockReceiptItem')
|
412
|
+
if @api_client.config.debugging
|
413
|
+
@api_client.config.logger.debug "API called: StockReceiptsKORONARetailApi#get_stock_receipt_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
414
|
+
end
|
415
|
+
return data, status_code, headers
|
416
|
+
end
|
417
|
+
|
418
|
+
# lists all stock-receipts
|
419
|
+
#
|
420
|
+
# @param korona_account_id the account id
|
421
|
+
# @param [Hash] opts the optional parameters
|
422
|
+
# @option opts [Integer] :page number of the page to fetch
|
423
|
+
# @option opts [Integer] :size amount of objects to return per page
|
424
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
425
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
426
|
+
# @option opts [BOOLEAN] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
427
|
+
# @option opts [DateTime] :min_create_time min (inclusive) create time of the receipt (ISO 8601; date, time and timezone)
|
428
|
+
# @option opts [DateTime] :max_create_time max (inclusive) create time of the receipt (ISO 8601; date, time and timezone)
|
429
|
+
# @option opts [DateTime] :min_booking_time min (inclusive) booking time of the receipt (ISO 8601; date, time and timezone)
|
430
|
+
# @option opts [DateTime] :max_booking_time max (inclusive) booking time of the receipt (ISO 8601; date, time and timezone)
|
431
|
+
# @option opts [String] :organizational_unit organizational unit
|
432
|
+
# @option opts [String] :source_organizational_unit source organizational unit
|
433
|
+
# @option opts [String] :booking_status booking status (possible values: BOOKED, IN_PROGRESS)
|
434
|
+
# @return [ResultListStockReceipt]
|
435
|
+
def get_stock_receipts(korona_account_id, opts = {})
|
436
|
+
data, _status_code, _headers = get_stock_receipts_with_http_info(korona_account_id, opts)
|
437
|
+
return data
|
438
|
+
end
|
439
|
+
|
440
|
+
# lists all stock-receipts
|
441
|
+
#
|
442
|
+
# @param korona_account_id the account id
|
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
|
+
# @option opts [BOOLEAN] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
449
|
+
# @option opts [DateTime] :min_create_time min (inclusive) create time of the receipt (ISO 8601; date, time and timezone)
|
450
|
+
# @option opts [DateTime] :max_create_time max (inclusive) create time of the receipt (ISO 8601; date, time and timezone)
|
451
|
+
# @option opts [DateTime] :min_booking_time min (inclusive) booking time of the receipt (ISO 8601; date, time and timezone)
|
452
|
+
# @option opts [DateTime] :max_booking_time max (inclusive) booking time of the receipt (ISO 8601; date, time and timezone)
|
453
|
+
# @option opts [String] :organizational_unit organizational unit
|
454
|
+
# @option opts [String] :source_organizational_unit source organizational unit
|
455
|
+
# @option opts [String] :booking_status booking status (possible values: BOOKED, IN_PROGRESS)
|
456
|
+
# @return [Array<(ResultListStockReceipt, Fixnum, Hash)>] ResultListStockReceipt data, response status code and response headers
|
457
|
+
def get_stock_receipts_with_http_info(korona_account_id, opts = {})
|
458
|
+
if @api_client.config.debugging
|
459
|
+
@api_client.config.logger.debug "Calling API: StockReceiptsKORONARetailApi.get_stock_receipts ..."
|
460
|
+
end
|
461
|
+
# verify the required parameter 'korona_account_id' is set
|
462
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
463
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling StockReceiptsKORONARetailApi.get_stock_receipts"
|
464
|
+
end
|
465
|
+
if @api_client.config.client_side_validation && opts[:'booking_status'] && !['BOOKED', 'IN_PROGRESS'].include?(opts[:'booking_status'])
|
466
|
+
fail ArgumentError, 'invalid value for "booking_status", must be one of BOOKED, IN_PROGRESS'
|
467
|
+
end
|
468
|
+
# resource path
|
469
|
+
local_var_path = "/accounts/{koronaAccountId}/stockReceipts".sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)
|
470
|
+
|
471
|
+
# query parameters
|
472
|
+
query_params = {}
|
473
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
474
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
475
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
476
|
+
query_params[:'revision'] = opts[:'revision'] if !opts[:'revision'].nil?
|
477
|
+
query_params[:'includeDeleted'] = opts[:'include_deleted'] if !opts[:'include_deleted'].nil?
|
478
|
+
query_params[:'minCreateTime'] = opts[:'min_create_time'] if !opts[:'min_create_time'].nil?
|
479
|
+
query_params[:'maxCreateTime'] = opts[:'max_create_time'] if !opts[:'max_create_time'].nil?
|
480
|
+
query_params[:'minBookingTime'] = opts[:'min_booking_time'] if !opts[:'min_booking_time'].nil?
|
481
|
+
query_params[:'maxBookingTime'] = opts[:'max_booking_time'] if !opts[:'max_booking_time'].nil?
|
482
|
+
query_params[:'organizationalUnit'] = opts[:'organizational_unit'] if !opts[:'organizational_unit'].nil?
|
483
|
+
query_params[:'sourceOrganizationalUnit'] = opts[:'source_organizational_unit'] if !opts[:'source_organizational_unit'].nil?
|
484
|
+
query_params[:'bookingStatus'] = opts[:'booking_status'] if !opts[:'booking_status'].nil?
|
485
|
+
|
486
|
+
# header parameters
|
487
|
+
header_params = {}
|
488
|
+
# HTTP header 'Accept' (if needed)
|
489
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
490
|
+
# HTTP header 'Content-Type'
|
491
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
492
|
+
|
493
|
+
# form parameters
|
494
|
+
form_params = {}
|
495
|
+
|
496
|
+
# http body (model)
|
497
|
+
post_body = nil
|
498
|
+
auth_names = ['basicAuth']
|
499
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
500
|
+
:header_params => header_params,
|
501
|
+
:query_params => query_params,
|
502
|
+
:form_params => form_params,
|
503
|
+
:body => post_body,
|
504
|
+
:auth_names => auth_names,
|
505
|
+
:return_type => 'ResultListStockReceipt')
|
506
|
+
if @api_client.config.debugging
|
507
|
+
@api_client.config.logger.debug "API called: StockReceiptsKORONARetailApi#get_stock_receipts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
508
|
+
end
|
509
|
+
return data, status_code, headers
|
510
|
+
end
|
511
|
+
|
512
|
+
# updates the stock-receipt
|
513
|
+
#
|
514
|
+
# @param korona_account_id the account id
|
515
|
+
# @param stock_receipt_id_or_number id or number of the related object (important: if a number should match the uuid-format, the system will lookup for an id instead of a number)
|
516
|
+
# @param body data to update
|
517
|
+
# @param [Hash] opts the optional parameters
|
518
|
+
# @return [nil]
|
519
|
+
def update_stock_receipt(korona_account_id, stock_receipt_id_or_number, body, opts = {})
|
520
|
+
update_stock_receipt_with_http_info(korona_account_id, stock_receipt_id_or_number, body, opts)
|
521
|
+
return nil
|
522
|
+
end
|
523
|
+
|
524
|
+
# updates the stock-receipt
|
525
|
+
#
|
526
|
+
# @param korona_account_id the account id
|
527
|
+
# @param stock_receipt_id_or_number id or number of the related object (important: if a number should match the uuid-format, the system will lookup for an id instead of a number)
|
528
|
+
# @param body data to update
|
529
|
+
# @param [Hash] opts the optional parameters
|
530
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
531
|
+
def update_stock_receipt_with_http_info(korona_account_id, stock_receipt_id_or_number, body, opts = {})
|
532
|
+
if @api_client.config.debugging
|
533
|
+
@api_client.config.logger.debug "Calling API: StockReceiptsKORONARetailApi.update_stock_receipt ..."
|
534
|
+
end
|
535
|
+
# verify the required parameter 'korona_account_id' is set
|
536
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
537
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling StockReceiptsKORONARetailApi.update_stock_receipt"
|
538
|
+
end
|
539
|
+
# verify the required parameter 'stock_receipt_id_or_number' is set
|
540
|
+
if @api_client.config.client_side_validation && stock_receipt_id_or_number.nil?
|
541
|
+
fail ArgumentError, "Missing the required parameter 'stock_receipt_id_or_number' when calling StockReceiptsKORONARetailApi.update_stock_receipt"
|
542
|
+
end
|
543
|
+
# verify the required parameter 'body' is set
|
544
|
+
if @api_client.config.client_side_validation && body.nil?
|
545
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling StockReceiptsKORONARetailApi.update_stock_receipt"
|
546
|
+
end
|
547
|
+
# resource path
|
548
|
+
local_var_path = "/accounts/{koronaAccountId}/stockReceipts/{stockReceiptIdOrNumber}".sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'stockReceiptIdOrNumber' + '}', stock_receipt_id_or_number.to_s)
|
549
|
+
|
550
|
+
# query parameters
|
551
|
+
query_params = {}
|
552
|
+
|
553
|
+
# header parameters
|
554
|
+
header_params = {}
|
555
|
+
# HTTP header 'Accept' (if needed)
|
556
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
557
|
+
# HTTP header 'Content-Type'
|
558
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
559
|
+
|
560
|
+
# form parameters
|
561
|
+
form_params = {}
|
562
|
+
|
563
|
+
# http body (model)
|
564
|
+
post_body = @api_client.object_to_http_body(body)
|
565
|
+
auth_names = ['basicAuth']
|
566
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
567
|
+
:header_params => header_params,
|
568
|
+
:query_params => query_params,
|
569
|
+
:form_params => form_params,
|
570
|
+
:body => post_body,
|
571
|
+
:auth_names => auth_names)
|
572
|
+
if @api_client.config.debugging
|
573
|
+
@api_client.config.logger.debug "API called: StockReceiptsKORONARetailApi#update_stock_receipt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
574
|
+
end
|
575
|
+
return data, status_code, headers
|
576
|
+
end
|
577
|
+
|
578
|
+
# updates the stock-receipt item
|
579
|
+
#
|
580
|
+
# @param korona_account_id the account id
|
581
|
+
# @param stock_receipt_id_or_number id or number of the related object (important: if a number should match the uuid-format, the system will lookup for an id instead of a number)
|
582
|
+
# @param product_id_or_number id or number of the related object (important: if a number should match the uuid-format, the system will lookup for an id instead of a number)
|
583
|
+
# @param body data to update
|
584
|
+
# @param [Hash] opts the optional parameters
|
585
|
+
# @return [nil]
|
586
|
+
def update_stock_receipt_item(korona_account_id, stock_receipt_id_or_number, product_id_or_number, body, opts = {})
|
587
|
+
update_stock_receipt_item_with_http_info(korona_account_id, stock_receipt_id_or_number, product_id_or_number, body, opts)
|
588
|
+
return nil
|
589
|
+
end
|
590
|
+
|
591
|
+
# updates the stock-receipt item
|
592
|
+
#
|
593
|
+
# @param korona_account_id the account id
|
594
|
+
# @param stock_receipt_id_or_number id or number of the related object (important: if a number should match the uuid-format, the system will lookup for an id instead of a number)
|
595
|
+
# @param product_id_or_number id or number of the related object (important: if a number should match the uuid-format, the system will lookup for an id instead of a number)
|
596
|
+
# @param body data to update
|
597
|
+
# @param [Hash] opts the optional parameters
|
598
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
599
|
+
def update_stock_receipt_item_with_http_info(korona_account_id, stock_receipt_id_or_number, product_id_or_number, body, opts = {})
|
600
|
+
if @api_client.config.debugging
|
601
|
+
@api_client.config.logger.debug "Calling API: StockReceiptsKORONARetailApi.update_stock_receipt_item ..."
|
602
|
+
end
|
603
|
+
# verify the required parameter 'korona_account_id' is set
|
604
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
605
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling StockReceiptsKORONARetailApi.update_stock_receipt_item"
|
606
|
+
end
|
607
|
+
# verify the required parameter 'stock_receipt_id_or_number' is set
|
608
|
+
if @api_client.config.client_side_validation && stock_receipt_id_or_number.nil?
|
609
|
+
fail ArgumentError, "Missing the required parameter 'stock_receipt_id_or_number' when calling StockReceiptsKORONARetailApi.update_stock_receipt_item"
|
610
|
+
end
|
611
|
+
# verify the required parameter 'product_id_or_number' is set
|
612
|
+
if @api_client.config.client_side_validation && product_id_or_number.nil?
|
613
|
+
fail ArgumentError, "Missing the required parameter 'product_id_or_number' when calling StockReceiptsKORONARetailApi.update_stock_receipt_item"
|
614
|
+
end
|
615
|
+
# verify the required parameter 'body' is set
|
616
|
+
if @api_client.config.client_side_validation && body.nil?
|
617
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling StockReceiptsKORONARetailApi.update_stock_receipt_item"
|
618
|
+
end
|
619
|
+
# resource path
|
620
|
+
local_var_path = "/accounts/{koronaAccountId}/stockReceipts/{stockReceiptIdOrNumber}/items/{productIdOrNumber}".sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'stockReceiptIdOrNumber' + '}', stock_receipt_id_or_number.to_s).sub('{' + 'productIdOrNumber' + '}', product_id_or_number.to_s)
|
621
|
+
|
622
|
+
# query parameters
|
623
|
+
query_params = {}
|
624
|
+
|
625
|
+
# header parameters
|
626
|
+
header_params = {}
|
627
|
+
# HTTP header 'Accept' (if needed)
|
628
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
629
|
+
# HTTP header 'Content-Type'
|
630
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
631
|
+
|
632
|
+
# form parameters
|
633
|
+
form_params = {}
|
634
|
+
|
635
|
+
# http body (model)
|
636
|
+
post_body = @api_client.object_to_http_body(body)
|
637
|
+
auth_names = ['basicAuth']
|
638
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
639
|
+
:header_params => header_params,
|
640
|
+
:query_params => query_params,
|
641
|
+
:form_params => form_params,
|
642
|
+
:body => post_body,
|
643
|
+
:auth_names => auth_names)
|
644
|
+
if @api_client.config.debugging
|
645
|
+
@api_client.config.logger.debug "API called: StockReceiptsKORONARetailApi#update_stock_receipt_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
646
|
+
end
|
647
|
+
return data, status_code, headers
|
648
|
+
end
|
649
|
+
|
650
|
+
# updates stock-receipt items
|
651
|
+
#
|
652
|
+
# @param korona_account_id the account id
|
653
|
+
# @param stock_receipt_id_or_number id or number of the related object (important: if a number should match the uuid-format, the system will lookup for an id instead of a number)
|
654
|
+
# @param body data to update
|
655
|
+
# @param [Hash] opts the optional parameters
|
656
|
+
# @return [Array<AddOrUpdateResult>]
|
657
|
+
def update_stock_receipt_items(korona_account_id, stock_receipt_id_or_number, body, opts = {})
|
658
|
+
data, _status_code, _headers = update_stock_receipt_items_with_http_info(korona_account_id, stock_receipt_id_or_number, body, opts)
|
659
|
+
return data
|
660
|
+
end
|
661
|
+
|
662
|
+
# updates stock-receipt items
|
663
|
+
#
|
664
|
+
# @param korona_account_id the account id
|
665
|
+
# @param stock_receipt_id_or_number id or number of the related object (important: if a number should match the uuid-format, the system will lookup for an id instead of a number)
|
666
|
+
# @param body data to update
|
667
|
+
# @param [Hash] opts the optional parameters
|
668
|
+
# @return [Array<(Array<AddOrUpdateResult>, Fixnum, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers
|
669
|
+
def update_stock_receipt_items_with_http_info(korona_account_id, stock_receipt_id_or_number, body, opts = {})
|
670
|
+
if @api_client.config.debugging
|
671
|
+
@api_client.config.logger.debug "Calling API: StockReceiptsKORONARetailApi.update_stock_receipt_items ..."
|
672
|
+
end
|
673
|
+
# verify the required parameter 'korona_account_id' is set
|
674
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
675
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling StockReceiptsKORONARetailApi.update_stock_receipt_items"
|
676
|
+
end
|
677
|
+
# verify the required parameter 'stock_receipt_id_or_number' is set
|
678
|
+
if @api_client.config.client_side_validation && stock_receipt_id_or_number.nil?
|
679
|
+
fail ArgumentError, "Missing the required parameter 'stock_receipt_id_or_number' when calling StockReceiptsKORONARetailApi.update_stock_receipt_items"
|
680
|
+
end
|
681
|
+
# verify the required parameter 'body' is set
|
682
|
+
if @api_client.config.client_side_validation && body.nil?
|
683
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling StockReceiptsKORONARetailApi.update_stock_receipt_items"
|
684
|
+
end
|
685
|
+
# resource path
|
686
|
+
local_var_path = "/accounts/{koronaAccountId}/stockReceipts/{stockReceiptIdOrNumber}/items".sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'stockReceiptIdOrNumber' + '}', stock_receipt_id_or_number.to_s)
|
687
|
+
|
688
|
+
# query parameters
|
689
|
+
query_params = {}
|
690
|
+
|
691
|
+
# header parameters
|
692
|
+
header_params = {}
|
693
|
+
# HTTP header 'Accept' (if needed)
|
694
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
695
|
+
# HTTP header 'Content-Type'
|
696
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
697
|
+
|
698
|
+
# form parameters
|
699
|
+
form_params = {}
|
700
|
+
|
701
|
+
# http body (model)
|
702
|
+
post_body = @api_client.object_to_http_body(body)
|
703
|
+
auth_names = ['basicAuth']
|
704
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
705
|
+
:header_params => header_params,
|
706
|
+
:query_params => query_params,
|
707
|
+
:form_params => form_params,
|
708
|
+
:body => post_body,
|
709
|
+
:auth_names => auth_names,
|
710
|
+
:return_type => 'Array<AddOrUpdateResult>')
|
711
|
+
if @api_client.config.debugging
|
712
|
+
@api_client.config.logger.debug "API called: StockReceiptsKORONARetailApi#update_stock_receipt_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
713
|
+
end
|
714
|
+
return data, status_code, headers
|
715
|
+
end
|
716
|
+
end
|
717
|
+
end
|