korona-cloud-client 1.0.3 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +396 -26
- data/docs/Account.md +36 -29
- data/docs/AccountSummary.md +12 -11
- data/docs/AccountTransaction.md +20 -17
- data/docs/AccountsApi.md +426 -30
- data/docs/AddOrUpdateResult.md +20 -19
- data/docs/AdditionalInfo.md +10 -9
- data/docs/AdditionalReceiptInfoType.md +34 -35
- data/docs/AdditionalReceiptInfoTypesApi.md +426 -30
- data/docs/AddressInformation.md +22 -21
- data/docs/Admission.md +10 -9
- data/docs/Amount.md +16 -15
- data/docs/AmountCountData.md +10 -9
- data/docs/Assortment.md +22 -21
- data/docs/AssortmentsApi.md +204 -86
- data/docs/Attendance.md +26 -25
- data/docs/BadRequestError.md +10 -9
- data/docs/Capacity.md +10 -9
- data/docs/Cashier.md +46 -43
- data/docs/CashierRole.md +18 -17
- data/docs/CashierRolesApi.md +204 -86
- data/docs/CashierSummary.md +18 -17
- data/docs/CashierVerificationRequirement.md +36 -0
- data/docs/CashierVerificationRequirementsApi.md +378 -0
- data/docs/CashierVerificationResult.md +28 -0
- data/docs/CashiersApi.md +208 -90
- data/docs/Category.md +12 -11
- data/docs/CloudSubscription.md +10 -9
- data/docs/CloudSubscriptionDetails.md +10 -9
- data/docs/CommodityGroup.md +20 -17
- data/docs/CommodityGroupSummary.md +14 -13
- data/docs/CommodityGroupsApi.md +204 -86
- data/docs/CompanyIdentification.md +10 -9
- data/docs/ContraAccount.md +24 -0
- data/docs/ContraAccountsApi.md +524 -0
- data/docs/CostCenter.md +24 -0
- data/docs/CostCentersApi.md +524 -0
- data/docs/Coupon.md +20 -0
- data/docs/CouponPosition.md +28 -0
- data/docs/CouponsApi.md +159 -0
- data/docs/CreationTask.md +28 -27
- data/docs/CurrenciesApi.md +149 -65
- data/docs/Currency.md +30 -29
- data/docs/CurrencyDenomination.md +10 -9
- data/docs/CurrencyExchangeRate.md +10 -9
- data/docs/Customer.md +54 -47
- data/docs/CustomerCard.md +10 -9
- data/docs/CustomerData.md +10 -9
- data/docs/CustomerDisplayConfiguration.md +50 -0
- data/docs/CustomerDisplayConfigurationsApi.md +450 -0
- data/docs/CustomerGroup.md +18 -17
- data/docs/CustomerGroupSummary.md +14 -13
- data/docs/CustomerGroupsApi.md +426 -30
- data/docs/CustomerInformation.md +12 -11
- data/docs/CustomerOrder.md +44 -43
- data/docs/CustomerOrderItem.md +46 -0
- data/docs/CustomerOrdersApi.md +192 -83
- data/docs/CustomersApi.md +204 -86
- data/docs/DateInterval.md +20 -0
- data/docs/DayRating.md +26 -25
- data/docs/DayTimePeriod.md +10 -9
- data/docs/DeliveryNote.md +38 -37
- data/docs/DeliveryNoteItem.md +22 -21
- data/docs/DeliveryNotesApi.md +230 -73
- data/docs/Deposit.md +16 -15
- data/docs/DeviceConfiguration.md +36 -0
- data/docs/DeviceConfigurationVariable.md +26 -0
- data/docs/DeviceConfigurationVariableValue.md +20 -0
- data/docs/DeviceConfigurationVariablesApi.md +448 -0
- data/docs/DeviceInformation.md +10 -9
- data/docs/DeviceParameterItem.md +22 -0
- data/docs/Discount.md +16 -11
- data/docs/DiscountConfiguration.md +32 -0
- data/docs/DiscountConfigurationsApi.md +524 -0
- data/docs/DiscountLevel.md +28 -0
- data/docs/DiscountLevelsApi.md +524 -0
- data/docs/DispatchNotification.md +62 -0
- data/docs/DispatchNotificationItem.md +36 -0
- data/docs/DispatchNotificationItemAmount.md +20 -0
- data/docs/DispatchNotificationItemContainer.md +20 -0
- data/docs/DispatchNotificationItemIdentification.md +22 -0
- data/docs/DispatchNotificationItemImport.md +30 -0
- data/docs/DispatchNotificationsApi.md +918 -0
- data/docs/EconomicZone.md +16 -15
- data/docs/EconomicZonesApi.md +149 -65
- data/docs/EndOfDayStatement.md +24 -23
- data/docs/EndOfDayStatementSummary.md +18 -17
- data/docs/EntryGate.md +20 -19
- data/docs/Event.md +30 -29
- data/docs/ExternalSystemCall.md +34 -31
- data/docs/ExternalSystemCallsApi.md +204 -86
- data/docs/FiscalTransaction.md +34 -33
- data/docs/FiscalUnit.md +44 -41
- data/docs/FiscalUnitCertificateInfo.md +10 -9
- data/docs/FiscalUnitPreConfiguration.md +28 -0
- data/docs/FiscalUnitState.md +18 -17
- data/docs/FiscalUnitStateUsageLevel.md +14 -13
- data/docs/FiscalUnitStateUsageLevelValue.md +10 -9
- data/docs/FiscalUnitStateVersionInfo.md +12 -11
- data/docs/FiscalUnitsApi.md +152 -68
- data/docs/ForbiddenError.md +10 -9
- data/docs/GeoLocation.md +10 -9
- data/docs/ImagesApi.md +29 -13
- data/docs/InfoText.md +20 -17
- data/docs/InfoTextsApi.md +149 -65
- data/docs/Interval.md +10 -9
- data/docs/InventoriesApi.md +526 -217
- data/docs/Inventory.md +44 -43
- data/docs/InventoryList.md +38 -35
- data/docs/InventoryListItem.md +18 -17
- data/docs/InventoryListItemStock.md +10 -9
- data/docs/ItemSequence.md +26 -0
- data/docs/ItemSequencesApi.md +524 -0
- data/docs/KoronaAccount.md +30 -27
- data/docs/KoronaAccountApi.md +29 -13
- data/docs/LanguageResource.md +28 -0
- data/docs/LanguagesApi.md +524 -0
- data/docs/MediaUrl.md +8 -7
- data/docs/Message.md +22 -0
- data/docs/MessagesApi.md +78 -0
- data/docs/MethodNotAllowedError.md +10 -9
- data/docs/ModelReference.md +12 -11
- data/docs/NotFoundError.md +10 -9
- data/docs/NumberRange.md +26 -0
- data/docs/NumberRangeConfiguration.md +28 -0
- data/docs/NumberRangeConfigurationsApi.md +305 -0
- data/docs/OpeningHours.md +12 -11
- data/docs/OrganizationalUnit.md +36 -33
- data/docs/OrganizationalUnitsApi.md +721 -174
- data/docs/Payment.md +22 -15
- data/docs/PaymentMethod.md +44 -33
- data/docs/PaymentMethodCategoriesApi.md +524 -0
- data/docs/PaymentMethodCategory.md +26 -0
- data/docs/PaymentMethodsApi.md +426 -30
- data/docs/PaymentServiceConfiguration.md +26 -0
- data/docs/PaymentSummary.md +12 -11
- data/docs/PaymentTerminalReceipt.md +20 -0
- data/docs/Period.md +12 -11
- data/docs/PeriodListTopSeller.md +12 -11
- data/docs/PeriodMapStringRevenueData.md +12 -11
- data/docs/PeriodObject.md +12 -11
- data/docs/PeriodRevenueData.md +12 -11
- data/docs/PointsOfSaleApi.md +514 -136
- data/docs/Pos.md +78 -51
- data/docs/PosBalance.md +44 -0
- data/docs/PosBalanceItem.md +26 -0
- data/docs/PosBalanceSummary.md +22 -0
- data/docs/PosBalanceSummaryChangeset.md +26 -0
- data/docs/PosBalanceTotal.md +20 -0
- data/docs/PosButton.md +32 -0
- data/docs/PosButtonFunction.md +40 -0
- data/docs/PosButtonLayout.md +30 -0
- data/docs/PosButtonLayoutsApi.md +524 -0
- data/docs/PosPageLayout.md +26 -0
- data/docs/PosPageLayoutConfiguration.md +34 -0
- data/docs/PosPageLayoutConfigurationsApi.md +524 -0
- data/docs/PosProfile.md +110 -0
- data/docs/PosProfilesApi.md +524 -0
- data/docs/PrepaidCard.md +20 -0
- data/docs/PriceGroup.md +20 -19
- data/docs/PriceGroupsApi.md +149 -65
- data/docs/PriceRule.md +38 -0
- data/docs/PriceRuleCalculation.md +20 -0
- data/docs/PriceRuleCondition.md +30 -0
- data/docs/PriceRuleTimeValidityRepetitionInterval.md +20 -0
- data/docs/PriceRuleValidityPeriod.md +22 -0
- data/docs/PriceRulesApi.md +520 -0
- data/docs/Product.md +100 -93
- data/docs/ProductCode.md +12 -11
- data/docs/ProductDescription.md +12 -11
- data/docs/ProductPrice.md +16 -15
- data/docs/ProductSpecialPrice.md +22 -0
- data/docs/ProductStock.md +16 -15
- data/docs/ProductSubproduct.md +16 -11
- data/docs/ProductSupplierPrice.md +16 -15
- data/docs/ProductTransferInvolvedPartyInformation.md +18 -17
- data/docs/ProductTransferInvolvedPartyInformationData.md +10 -11
- data/docs/ProductionType.md +24 -23
- data/docs/ProductionTypeSetting.md +18 -0
- data/docs/ProductionTypesApi.md +149 -65
- data/docs/ProductsApi.md +330 -111
- data/docs/Promotion.md +44 -0
- data/docs/PromotionApplication.md +22 -0
- data/docs/PromotionBenefit.md +26 -0
- data/docs/PromotionBenefitCommonDiscount.md +34 -0
- data/docs/PromotionBenefitExtendedDiscount.md +20 -0
- data/docs/PromotionBenefitExtendedDiscountDiscountCalculation.md +28 -0
- data/docs/PromotionBenefitExtendedDiscountPositionSelection.md +24 -0
- data/docs/PromotionBenefitExtendedDiscountPositionSelectionCountAmount.md +20 -0
- data/docs/PromotionBenefitExtendedDiscountPositionSelectionCriteria.md +24 -0
- data/docs/PromotionBenefitExtendedDiscountPositionSelectionCriteriaMinMaxRange.md +20 -0
- data/docs/PromotionBenefitExtendedDiscountPositionSelectionCriteriaMinMaxRangeValueComperator.md +20 -0
- data/docs/PromotionBenefitExtendedDiscountPositionSelectionFilter.md +30 -0
- data/docs/PromotionBenefitReduceProductAmount.md +20 -0
- data/docs/PromotionBonuspoint.md +20 -0
- data/docs/PromotionBonuspointCreation.md +24 -0
- data/docs/PromotionBonuspointRedemption.md +24 -0
- data/docs/PromotionBonuspointRedemptionFixedDiscount.md +20 -0
- data/docs/PromotionBonuspointRedemptionPercentageDiscount.md +20 -0
- data/docs/PromotionBonuspointRedemptionTagDiscount.md +20 -0
- data/docs/PromotionCoupon.md +24 -0
- data/docs/PromotionCouponValidity.md +22 -0
- data/docs/PromotionCouponValidityDaysAfterPurchaseInterval.md +20 -0
- data/docs/PromotionLayer.md +20 -0
- data/docs/PromotionStamp.md +22 -0
- data/docs/PromotionTrigger.md +32 -0
- data/docs/PromotionTriggerProductAmountCondition.md +22 -0
- data/docs/PromotionTriggerReceiptProductAmountCondition.md +20 -0
- data/docs/PromotionTriggerReceiptRevenueCondition.md +20 -0
- data/docs/PromotionTriggerTagAmountCondition.md +22 -0
- data/docs/PromotionTriggerTagRevenueCondition.md +22 -0
- data/docs/PromotionValidity.md +26 -0
- data/docs/PromotionsApi.md +520 -0
- data/docs/Rating.md +12 -11
- data/docs/Receipt.md +86 -65
- data/docs/ReceiptItem.md +52 -33
- data/docs/ReceiptItemReturnReason.md +18 -0
- data/docs/ReceiptLayoutConfiguration.md +56 -0
- data/docs/ReceiptLayoutConfigurationsApi.md +524 -0
- data/docs/ReceiptMaxRevisions.md +18 -17
- data/docs/ReceiptRevenue.md +20 -0
- data/docs/ReceiptTotal.md +22 -0
- data/docs/ReceiptsApi.md +155 -47
- data/docs/ReportFile.md +32 -0
- data/docs/ReportFilesApi.md +520 -0
- data/docs/ResultList.md +18 -17
- data/docs/ResultListAccount.md +18 -17
- data/docs/ResultListAdditionalReceiptInfoType.md +18 -17
- data/docs/ResultListAssortment.md +18 -17
- data/docs/ResultListAttendance.md +18 -17
- data/docs/ResultListCashier.md +18 -17
- data/docs/ResultListCashierRole.md +18 -17
- data/docs/ResultListCashierVerificationRequirement.md +28 -0
- data/docs/ResultListCommodityGroup.md +18 -17
- data/docs/ResultListContraAccount.md +28 -0
- data/docs/ResultListCostCenter.md +28 -0
- data/docs/ResultListCoupon.md +28 -0
- data/docs/ResultListCreationTask.md +18 -17
- data/docs/ResultListCurrency.md +18 -17
- data/docs/ResultListCustomer.md +18 -17
- data/docs/ResultListCustomerDisplayConfiguration.md +28 -0
- data/docs/ResultListCustomerGroup.md +18 -17
- data/docs/ResultListCustomerOrder.md +18 -17
- data/docs/ResultListDayRating.md +18 -17
- data/docs/ResultListDeliveryNote.md +18 -17
- data/docs/ResultListDeviceConfigurationVariable.md +28 -0
- data/docs/ResultListDiscountConfiguration.md +28 -0
- data/docs/ResultListDiscountLevel.md +28 -0
- data/docs/ResultListDispatchNotification.md +28 -0
- data/docs/ResultListDispatchNotificationItem.md +28 -0
- data/docs/ResultListEconomicZone.md +18 -17
- data/docs/ResultListEndOfDayStatement.md +18 -17
- data/docs/ResultListEntryGate.md +18 -17
- data/docs/ResultListEvent.md +18 -17
- data/docs/ResultListExternalSystemCall.md +18 -17
- data/docs/ResultListFiscalUnit.md +18 -17
- data/docs/ResultListInfoText.md +18 -17
- data/docs/ResultListInventory.md +18 -17
- data/docs/ResultListInventoryList.md +18 -17
- data/docs/ResultListInventoryListItem.md +18 -17
- data/docs/ResultListItemSequence.md +28 -0
- data/docs/ResultListLanguageResource.md +28 -0
- data/docs/ResultListNumberRangeConfiguration.md +28 -0
- data/docs/ResultListOrganizationalUnit.md +18 -17
- data/docs/ResultListPaymentMethod.md +18 -17
- data/docs/ResultListPaymentMethodCategory.md +28 -0
- data/docs/ResultListPos.md +18 -17
- data/docs/ResultListPosBalance.md +28 -0
- data/docs/ResultListPosButtonLayout.md +28 -0
- data/docs/ResultListPosPageLayoutConfiguration.md +28 -0
- data/docs/ResultListPosProfile.md +28 -0
- data/docs/ResultListPriceGroup.md +18 -17
- data/docs/ResultListPriceRule.md +28 -0
- data/docs/ResultListProduct.md +18 -17
- data/docs/ResultListProductStock.md +18 -17
- data/docs/ResultListProductionType.md +18 -17
- data/docs/ResultListPromotion.md +28 -0
- data/docs/ResultListReceipt.md +18 -17
- data/docs/ResultListReceiptLayoutConfiguration.md +28 -0
- data/docs/ResultListReportFile.md +28 -0
- data/docs/ResultListRevenueAccount.md +28 -0
- data/docs/ResultListSalesTax.md +18 -17
- data/docs/ResultListSector.md +18 -17
- data/docs/ResultListSpecialPriceConfiguration.md +28 -0
- data/docs/ResultListStockAdjustment.md +28 -0
- data/docs/ResultListStockAdjustmentItem.md +28 -0
- data/docs/ResultListStockOrder.md +18 -17
- data/docs/ResultListStockOrderItem.md +28 -0
- data/docs/ResultListStockReceipt.md +18 -17
- data/docs/ResultListStockReceiptItem.md +18 -17
- data/docs/ResultListStoreOrder.md +28 -0
- data/docs/ResultListStoreOrderItem.md +28 -0
- data/docs/ResultListSupplier.md +18 -17
- data/docs/ResultListTag.md +18 -17
- data/docs/ResultListTicket.md +18 -17
- data/docs/ResultListTicketDefinition.md +18 -17
- data/docs/ResultListTimeTrackingEntity.md +18 -17
- data/docs/ResultListTimeTrackingEntry.md +18 -17
- data/docs/ResultListUserRole.md +28 -0
- data/docs/ResultListVoucherConfiguration.md +28 -0
- data/docs/ResultListVoucherResource.md +28 -0
- data/docs/ResultListVoucherTransactionResource.md +28 -0
- data/docs/RevenueAccount.md +26 -0
- data/docs/RevenueAccountsApi.md +524 -0
- data/docs/RevenueData.md +16 -15
- data/docs/SalesTax.md +26 -23
- data/docs/SalesTaxRate.md +10 -9
- data/docs/SalesTaxesApi.md +149 -65
- data/docs/Sector.md +20 -19
- data/docs/SectorRevenueAccountItem.md +10 -9
- data/docs/SectorSalesTaxItem.md +10 -9
- data/docs/SectorsApi.md +149 -65
- data/docs/Service.md +12 -9
- data/docs/Signature.md +12 -11
- data/docs/SpecialPrice.md +22 -0
- data/docs/SpecialPriceConfiguration.md +32 -0
- data/docs/SpecialPriceConfigurationsApi.md +449 -0
- data/docs/Statistic.md +12 -11
- data/docs/StatisticListTopSeller.md +12 -11
- data/docs/StatisticMapStringRevenueData.md +12 -11
- data/docs/StatisticRevenueData.md +12 -11
- data/docs/StatisticsApi.md +123 -56
- data/docs/StockAdjustment.md +44 -0
- data/docs/StockAdjustmentItem.md +24 -0
- data/docs/StockAdjustmentItemReason.md +20 -0
- data/docs/StockAdjustmentsApi.md +834 -0
- data/docs/StockOrder.md +66 -63
- data/docs/StockOrderItem.md +30 -29
- data/docs/StockOrdersApi.md +263 -54
- data/docs/StockReceipt.md +54 -53
- data/docs/StockReceiptItem.md +20 -19
- data/docs/StockReceiptItemAmount.md +10 -9
- data/docs/StockReceiptItemIdentification.md +12 -11
- data/docs/StockReceiptItemPurchasePrice.md +10 -9
- data/docs/StockReceiptsApi.md +336 -150
- data/docs/StoreOrder.md +42 -0
- data/docs/StoreOrderItem.md +24 -0
- data/docs/StoreOrdersApi.md +840 -0
- data/docs/Supplier.md +32 -29
- data/docs/SupplierContact.md +14 -13
- data/docs/SupplierContactPerson.md +20 -19
- data/docs/SupplierPaymentInformation.md +24 -23
- data/docs/SuppliersApi.md +149 -65
- data/docs/Tag.md +16 -15
- data/docs/TagsApi.md +203 -85
- data/docs/TaxPayment.md +14 -13
- data/docs/TaxSummary.md +12 -11
- data/docs/TerminalReceiptPrintLine.md +20 -0
- data/docs/Ticket.md +20 -19
- data/docs/TicketData.md +28 -27
- data/docs/TicketDefinition.md +38 -29
- data/docs/TicketPersonalization.md +14 -13
- data/docs/TicketingApi.md +886 -310
- data/docs/TimeOfDayInterval.md +20 -0
- data/docs/TimePeriod.md +20 -19
- data/docs/TimeTrackingApi.md +214 -113
- data/docs/TimeTrackingEntity.md +18 -17
- data/docs/TimeTrackingEntry.md +20 -19
- data/docs/TooManyRequestsError.md +10 -9
- data/docs/TopSeller.md +16 -15
- data/docs/TotalPeriod.md +10 -9
- data/docs/TotalPrice.md +16 -15
- data/docs/UserRole.md +28 -0
- data/docs/UserRolesApi.md +520 -0
- data/docs/Validity.md +14 -13
- data/docs/VoidedReceiptItem.md +18 -15
- data/docs/VoucherConfiguration.md +50 -0
- data/docs/VoucherConfigurationDiscountCalculation.md +22 -0
- data/docs/VoucherConfigurationFollowUpProducts.md +22 -0
- data/docs/VoucherConfigurationsApi.md +522 -0
- data/docs/VoucherResource.md +36 -0
- data/docs/VoucherTransaction.md +38 -0
- data/docs/VoucherTransactionResource.md +60 -0
- data/docs/VouchersApi.md +1126 -0
- data/docs/Weather.md +12 -11
- data/git_push.sh +3 -4
- data/korona-cloud-client.gemspec +3 -4
- data/lib/korona-cloud-client/api/accounts_api.rb +380 -10
- data/lib/korona-cloud-client/api/additional_receipt_info_types_api.rb +378 -8
- data/lib/korona-cloud-client/api/assortments_api.rb +46 -27
- data/lib/korona-cloud-client/api/cashier_roles_api.rb +46 -27
- data/lib/korona-cloud-client/api/cashier_verification_requirements_api.rb +387 -0
- data/lib/korona-cloud-client/api/cashiers_api.rb +46 -27
- data/lib/korona-cloud-client/api/commodity_groups_api.rb +46 -27
- data/lib/korona-cloud-client/api/contra_accounts_api.rb +536 -0
- data/lib/korona-cloud-client/api/cost_centers_api.rb +536 -0
- data/lib/korona-cloud-client/api/coupons_api.rb +165 -0
- data/lib/korona-cloud-client/api/currencies_api.rb +34 -20
- data/lib/korona-cloud-client/api/customer_display_configurations_api.rb +456 -0
- data/lib/korona-cloud-client/api/customer_groups_api.rb +378 -8
- data/lib/korona-cloud-client/api/customer_orders_api.rb +58 -31
- data/lib/korona-cloud-client/api/customers_api.rb +46 -27
- data/lib/korona-cloud-client/api/delivery_notes_api.rb +107 -26
- data/lib/korona-cloud-client/api/device_configuration_variables_api.rb +454 -0
- data/lib/korona-cloud-client/api/discount_configurations_api.rb +536 -0
- data/lib/korona-cloud-client/api/discount_levels_api.rb +536 -0
- data/lib/korona-cloud-client/api/dispatch_notifications_api.rb +954 -0
- data/lib/korona-cloud-client/api/economic_zones_api.rb +34 -20
- data/lib/korona-cloud-client/api/external_system_calls_api.rb +46 -27
- data/lib/korona-cloud-client/api/fiscal_units_api.rb +34 -20
- data/lib/korona-cloud-client/api/images_api.rb +6 -5
- data/lib/korona-cloud-client/api/info_texts_api.rb +34 -20
- data/lib/korona-cloud-client/api/inventories_api.rb +241 -136
- data/lib/korona-cloud-client/api/item_sequences_api.rb +536 -0
- data/lib/korona-cloud-client/api/korona_account_api.rb +6 -5
- data/lib/korona-cloud-client/api/languages_api.rb +536 -0
- data/lib/korona-cloud-client/api/messages_api.rb +94 -0
- data/lib/korona-cloud-client/api/number_range_configurations_api.rb +312 -0
- data/lib/korona-cloud-client/api/organizational_units_api.rb +440 -54
- data/lib/korona-cloud-client/api/payment_method_categories_api.rb +536 -0
- data/lib/korona-cloud-client/api/payment_methods_api.rb +378 -8
- data/lib/korona-cloud-client/api/points_of_sale_api.rb +309 -45
- data/lib/korona-cloud-client/api/pos_button_layouts_api.rb +536 -0
- data/lib/korona-cloud-client/api/pos_page_layout_configurations_api.rb +536 -0
- data/lib/korona-cloud-client/api/pos_profiles_api.rb +536 -0
- data/lib/korona-cloud-client/api/price_groups_api.rb +34 -20
- data/lib/korona-cloud-client/api/price_rules_api.rb +532 -0
- data/lib/korona-cloud-client/api/production_types_api.rb +34 -20
- data/lib/korona-cloud-client/api/products_api.rb +135 -30
- data/lib/korona-cloud-client/api/promotions_api.rb +532 -0
- data/lib/korona-cloud-client/api/receipt_layout_configurations_api.rb +536 -0
- data/lib/korona-cloud-client/api/receipts_api.rb +100 -22
- data/lib/korona-cloud-client/api/report_files_api.rb +532 -0
- data/lib/korona-cloud-client/api/revenue_accounts_api.rb +536 -0
- data/lib/korona-cloud-client/api/sales_taxes_api.rb +34 -20
- data/lib/korona-cloud-client/api/sectors_api.rb +34 -20
- data/lib/korona-cloud-client/api/special_price_configurations_api.rb +454 -0
- data/lib/korona-cloud-client/api/statistics_api.rb +18 -14
- data/lib/korona-cloud-client/api/stock_adjustments_api.rb +875 -0
- data/lib/korona-cloud-client/api/stock_orders_api.rb +177 -19
- data/lib/korona-cloud-client/api/stock_receipts_api.rb +74 -48
- data/lib/korona-cloud-client/api/store_orders_api.rb +886 -0
- data/lib/korona-cloud-client/api/suppliers_api.rb +34 -20
- data/lib/korona-cloud-client/api/tags_api.rb +46 -27
- data/lib/korona-cloud-client/api/ticketing_api.rb +298 -91
- data/lib/korona-cloud-client/api/time_tracking_api.rb +112 -100
- data/lib/korona-cloud-client/api/user_roles_api.rb +532 -0
- data/lib/korona-cloud-client/api/voucher_configurations_api.rb +534 -0
- data/lib/korona-cloud-client/api/vouchers_api.rb +1149 -0
- data/lib/korona-cloud-client/api_client.rb +57 -51
- data/lib/korona-cloud-client/api_error.rb +2 -2
- data/lib/korona-cloud-client/configuration.rb +43 -12
- data/lib/korona-cloud-client/models/account.rb +74 -22
- data/lib/korona-cloud-client/models/account_summary.rb +21 -8
- data/lib/korona-cloud-client/models/account_transaction.rb +44 -13
- data/lib/korona-cloud-client/models/add_or_update_result.rb +23 -10
- data/lib/korona-cloud-client/models/additional_info.rb +21 -8
- data/lib/korona-cloud-client/models/additional_receipt_info_type.rb +44 -28
- data/lib/korona-cloud-client/models/address_information.rb +21 -8
- data/lib/korona-cloud-client/models/admission.rb +21 -8
- data/lib/korona-cloud-client/models/amount.rb +21 -8
- data/lib/korona-cloud-client/models/amount_count_data.rb +21 -8
- data/lib/korona-cloud-client/models/assortment.rb +34 -20
- data/lib/korona-cloud-client/models/attendance.rb +36 -21
- data/lib/korona-cloud-client/models/bad_request_error.rb +23 -10
- data/lib/korona-cloud-client/models/capacity.rb +21 -8
- data/lib/korona-cloud-client/models/cashier.rb +51 -19
- data/lib/korona-cloud-client/models/cashier_role.rb +32 -19
- data/lib/korona-cloud-client/models/cashier_summary.rb +21 -8
- data/lib/korona-cloud-client/models/cashier_verification_requirement.rb +346 -0
- data/lib/korona-cloud-client/models/cashier_verification_result.rb +300 -0
- data/lib/korona-cloud-client/models/category.rb +21 -8
- data/lib/korona-cloud-client/models/cloud_subscription.rb +22 -9
- data/lib/korona-cloud-client/models/cloud_subscription_details.rb +23 -10
- data/lib/korona-cloud-client/models/commodity_group.rb +38 -16
- data/lib/korona-cloud-client/models/commodity_group_summary.rb +21 -8
- data/lib/korona-cloud-client/models/company_identification.rb +21 -8
- data/lib/korona-cloud-client/models/contra_account.rb +250 -0
- data/lib/korona-cloud-client/models/cost_center.rb +250 -0
- data/lib/korona-cloud-client/models/coupon.rb +228 -0
- data/lib/korona-cloud-client/models/coupon_position.rb +280 -0
- data/lib/korona-cloud-client/models/creation_task.rb +23 -9
- data/lib/korona-cloud-client/models/currency.rb +32 -19
- data/lib/korona-cloud-client/models/currency_denomination.rb +21 -8
- data/lib/korona-cloud-client/models/currency_exchange_rate.rb +23 -9
- data/lib/korona-cloud-client/models/customer.rb +72 -23
- data/lib/korona-cloud-client/models/customer_card.rb +21 -8
- data/lib/korona-cloud-client/models/customer_data.rb +21 -8
- data/lib/korona-cloud-client/models/customer_display_configuration.rb +425 -0
- data/lib/korona-cloud-client/models/customer_group.rb +32 -19
- data/lib/korona-cloud-client/models/customer_group_summary.rb +21 -8
- data/lib/korona-cloud-client/models/customer_information.rb +23 -9
- data/lib/korona-cloud-client/models/customer_order.rb +42 -24
- data/lib/korona-cloud-client/models/customer_order_item.rb +359 -0
- data/lib/korona-cloud-client/models/date_interval.rb +230 -0
- data/lib/korona-cloud-client/models/day_rating.rb +23 -9
- data/lib/korona-cloud-client/models/day_time_period.rb +21 -8
- data/lib/korona-cloud-client/models/delivery_note.rb +36 -21
- data/lib/korona-cloud-client/models/delivery_note_item.rb +21 -8
- data/lib/korona-cloud-client/models/deposit.rb +23 -9
- data/lib/korona-cloud-client/models/device_configuration.rb +374 -0
- data/lib/korona-cloud-client/models/device_configuration_variable.rb +259 -0
- data/lib/korona-cloud-client/models/device_configuration_variable_value.rb +228 -0
- data/lib/korona-cloud-client/models/device_information.rb +23 -8
- data/lib/korona-cloud-client/models/device_parameter_item.rb +237 -0
- data/lib/korona-cloud-client/models/discount.rb +51 -18
- data/lib/korona-cloud-client/models/discount_configuration.rb +290 -0
- data/lib/korona-cloud-client/models/discount_level.rb +268 -0
- data/lib/korona-cloud-client/models/dispatch_notification.rb +457 -0
- data/lib/korona-cloud-client/models/dispatch_notification_item.rb +301 -0
- data/lib/korona-cloud-client/models/dispatch_notification_item_amount.rb +228 -0
- data/lib/korona-cloud-client/models/dispatch_notification_item_container.rb +228 -0
- data/lib/korona-cloud-client/models/dispatch_notification_item_identification.rb +237 -0
- data/lib/korona-cloud-client/models/dispatch_notification_item_import.rb +279 -0
- data/lib/korona-cloud-client/models/economic_zone.rb +32 -19
- data/lib/korona-cloud-client/models/end_of_day_statement.rb +34 -20
- data/lib/korona-cloud-client/models/end_of_day_statement_summary.rb +57 -8
- data/lib/korona-cloud-client/models/entry_gate.rb +32 -19
- data/lib/korona-cloud-client/models/event.rb +46 -20
- data/lib/korona-cloud-client/models/external_system_call.rb +44 -22
- data/lib/korona-cloud-client/models/fiscal_transaction.rb +27 -11
- data/lib/korona-cloud-client/models/fiscal_unit.rb +45 -23
- data/lib/korona-cloud-client/models/fiscal_unit_certificate_info.rb +24 -10
- data/lib/korona-cloud-client/models/fiscal_unit_pre_configuration.rb +264 -0
- data/lib/korona-cloud-client/models/fiscal_unit_state.rb +21 -8
- data/lib/korona-cloud-client/models/fiscal_unit_state_usage_level.rb +21 -8
- data/lib/korona-cloud-client/models/fiscal_unit_state_usage_level_value.rb +21 -8
- data/lib/korona-cloud-client/models/fiscal_unit_state_version_info.rb +21 -8
- data/lib/korona-cloud-client/models/forbidden_error.rb +21 -8
- data/lib/korona-cloud-client/models/geo_location.rb +21 -8
- data/lib/korona-cloud-client/models/info_text.rb +46 -24
- data/lib/korona-cloud-client/models/interval.rb +25 -10
- data/lib/korona-cloud-client/models/inventory.rb +42 -21
- data/lib/korona-cloud-client/models/inventory_list.rb +49 -23
- data/lib/korona-cloud-client/models/inventory_list_item.rb +21 -8
- data/lib/korona-cloud-client/models/inventory_list_item_stock.rb +21 -8
- data/lib/korona-cloud-client/models/item_sequence.rb +259 -0
- data/lib/korona-cloud-client/models/korona_account.rb +50 -22
- data/lib/korona-cloud-client/models/language_resource.rb +268 -0
- data/lib/korona-cloud-client/models/media_url.rb +21 -8
- data/lib/korona-cloud-client/models/message.rb +287 -0
- data/lib/korona-cloud-client/models/method_not_allowed_error.rb +21 -8
- data/lib/korona-cloud-client/models/model_reference.rb +22 -9
- data/lib/korona-cloud-client/models/not_found_error.rb +21 -8
- data/lib/korona-cloud-client/models/number_range.rb +289 -0
- data/lib/korona-cloud-client/models/number_range_configuration.rb +270 -0
- data/lib/korona-cloud-client/models/opening_hours.rb +23 -8
- data/lib/korona-cloud-client/models/organizational_unit.rb +50 -22
- data/lib/korona-cloud-client/models/payment.rb +58 -13
- data/lib/korona-cloud-client/models/payment_method.rb +80 -22
- data/lib/korona-cloud-client/models/payment_method_category.rb +259 -0
- data/lib/korona-cloud-client/models/payment_service_configuration.rb +289 -0
- data/lib/korona-cloud-client/models/payment_summary.rb +21 -8
- data/lib/korona-cloud-client/models/payment_terminal_receipt.rb +264 -0
- data/lib/korona-cloud-client/models/period.rb +25 -10
- data/lib/korona-cloud-client/models/period_list_top_seller.rb +25 -10
- data/lib/korona-cloud-client/models/period_map_string_revenue_data.rb +25 -10
- data/lib/korona-cloud-client/models/period_object.rb +25 -10
- data/lib/korona-cloud-client/models/period_revenue_data.rb +25 -10
- data/lib/korona-cloud-client/models/pos.rb +206 -19
- data/lib/korona-cloud-client/models/pos_balance.rb +366 -0
- data/lib/korona-cloud-client/models/pos_balance_item.rb +289 -0
- data/lib/korona-cloud-client/models/pos_balance_summary.rb +237 -0
- data/lib/korona-cloud-client/models/pos_balance_summary_changeset.rb +256 -0
- data/lib/korona-cloud-client/models/pos_balance_total.rb +228 -0
- data/lib/korona-cloud-client/models/pos_button.rb +330 -0
- data/lib/korona-cloud-client/models/pos_button_function.rb +388 -0
- data/lib/korona-cloud-client/models/pos_button_layout.rb +319 -0
- data/lib/korona-cloud-client/models/pos_page_layout.rb +289 -0
- data/lib/korona-cloud-client/models/pos_page_layout_configuration.rb +303 -0
- data/lib/korona-cloud-client/models/pos_profile.rb +715 -0
- data/lib/korona-cloud-client/models/prepaid_card.rb +228 -0
- data/lib/korona-cloud-client/models/price_group.rb +32 -19
- data/lib/korona-cloud-client/models/price_rule.rb +313 -0
- data/lib/korona-cloud-client/models/price_rule_calculation.rb +262 -0
- data/lib/korona-cloud-client/models/price_rule_condition.rb +307 -0
- data/lib/korona-cloud-client/models/price_rule_time_validity_repetition_interval.rb +262 -0
- data/lib/korona-cloud-client/models/price_rule_validity_period.rb +237 -0
- data/lib/korona-cloud-client/models/product.rb +73 -22
- data/lib/korona-cloud-client/models/product_code.rb +21 -8
- data/lib/korona-cloud-client/models/product_description.rb +21 -8
- data/lib/korona-cloud-client/models/product_price.rb +25 -9
- data/lib/korona-cloud-client/models/product_special_price.rb +238 -0
- data/lib/korona-cloud-client/models/product_stock.rb +21 -8
- data/lib/korona-cloud-client/models/product_subproduct.rb +77 -12
- data/lib/korona-cloud-client/models/product_supplier_price.rb +21 -8
- data/lib/korona-cloud-client/models/product_transfer_involved_party_information.rb +21 -8
- data/lib/korona-cloud-client/models/product_transfer_involved_party_information_data.rb +22 -18
- data/lib/korona-cloud-client/models/production_type.rb +34 -21
- data/lib/korona-cloud-client/models/production_type_setting.rb +219 -0
- data/lib/korona-cloud-client/models/promotion.rb +384 -0
- data/lib/korona-cloud-client/models/promotion_application.rb +237 -0
- data/lib/korona-cloud-client/models/promotion_benefit.rb +289 -0
- data/lib/korona-cloud-client/models/promotion_benefit_common_discount.rb +361 -0
- data/lib/korona-cloud-client/models/promotion_benefit_extended_discount.rb +230 -0
- data/lib/korona-cloud-client/models/promotion_benefit_extended_discount_discount_calculation.rb +322 -0
- data/lib/korona-cloud-client/models/promotion_benefit_extended_discount_position_selection.rb +280 -0
- data/lib/korona-cloud-client/models/promotion_benefit_extended_discount_position_selection_count_amount.rb +262 -0
- data/lib/korona-cloud-client/models/promotion_benefit_extended_discount_position_selection_criteria.rb +248 -0
- data/lib/korona-cloud-client/models/promotion_benefit_extended_discount_position_selection_criteria_min_max_range.rb +228 -0
- data/lib/korona-cloud-client/models/promotion_benefit_extended_discount_position_selection_criteria_min_max_range_value_comperator.rb +228 -0
- data/lib/korona-cloud-client/models/promotion_benefit_extended_discount_position_selection_filter.rb +347 -0
- data/lib/korona-cloud-client/models/promotion_benefit_reduce_product_amount.rb +228 -0
- data/lib/korona-cloud-client/models/promotion_bonuspoint.rb +228 -0
- data/lib/korona-cloud-client/models/promotion_bonuspoint_creation.rb +280 -0
- data/lib/korona-cloud-client/models/promotion_bonuspoint_redemption.rb +280 -0
- data/lib/korona-cloud-client/models/promotion_bonuspoint_redemption_fixed_discount.rb +228 -0
- data/lib/korona-cloud-client/models/promotion_bonuspoint_redemption_percentage_discount.rb +228 -0
- data/lib/korona-cloud-client/models/promotion_bonuspoint_redemption_tag_discount.rb +228 -0
- data/lib/korona-cloud-client/models/promotion_coupon.rb +288 -0
- data/lib/korona-cloud-client/models/promotion_coupon_validity.rb +271 -0
- data/lib/korona-cloud-client/models/promotion_coupon_validity_days_after_purchase_interval.rb +228 -0
- data/lib/korona-cloud-client/models/promotion_layer.rb +228 -0
- data/lib/korona-cloud-client/models/promotion_stamp.rb +271 -0
- data/lib/korona-cloud-client/models/promotion_trigger.rb +299 -0
- data/lib/korona-cloud-client/models/promotion_trigger_product_amount_condition.rb +271 -0
- data/lib/korona-cloud-client/models/promotion_trigger_receipt_product_amount_condition.rb +262 -0
- data/lib/korona-cloud-client/models/promotion_trigger_receipt_revenue_condition.rb +262 -0
- data/lib/korona-cloud-client/models/promotion_trigger_tag_amount_condition.rb +271 -0
- data/lib/korona-cloud-client/models/promotion_trigger_tag_revenue_condition.rb +271 -0
- data/lib/korona-cloud-client/models/promotion_validity.rb +295 -0
- data/lib/korona-cloud-client/models/rating.rb +21 -8
- data/lib/korona-cloud-client/models/receipt.rb +157 -21
- data/lib/korona-cloud-client/models/receipt_item.rb +177 -37
- data/lib/korona-cloud-client/models/receipt_item_return_reason.rb +219 -0
- data/lib/korona-cloud-client/models/receipt_layout_configuration.rb +428 -0
- data/lib/korona-cloud-client/models/receipt_max_revisions.rb +21 -8
- data/lib/korona-cloud-client/models/receipt_revenue.rb +228 -0
- data/lib/korona-cloud-client/models/receipt_total.rb +237 -0
- data/lib/korona-cloud-client/models/report_file.rb +337 -0
- data/lib/korona-cloud-client/models/result_list.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_account.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_additional_receipt_info_type.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_assortment.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_attendance.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_cashier.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_cashier_role.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_cashier_verification_requirement.rb +304 -0
- data/lib/korona-cloud-client/models/result_list_commodity_group.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_contra_account.rb +304 -0
- data/lib/korona-cloud-client/models/result_list_cost_center.rb +304 -0
- data/lib/korona-cloud-client/models/result_list_coupon.rb +304 -0
- data/lib/korona-cloud-client/models/result_list_creation_task.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_currency.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_customer.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_customer_display_configuration.rb +304 -0
- data/lib/korona-cloud-client/models/result_list_customer_group.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_customer_order.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_day_rating.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_delivery_note.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_device_configuration_variable.rb +304 -0
- data/lib/korona-cloud-client/models/result_list_discount_configuration.rb +304 -0
- data/lib/korona-cloud-client/models/result_list_discount_level.rb +304 -0
- data/lib/korona-cloud-client/models/result_list_dispatch_notification.rb +304 -0
- data/lib/korona-cloud-client/models/result_list_dispatch_notification_item.rb +304 -0
- data/lib/korona-cloud-client/models/result_list_economic_zone.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_end_of_day_statement.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_entry_gate.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_event.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_external_system_call.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_fiscal_unit.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_info_text.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_inventory.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_inventory_list.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_inventory_list_item.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_item_sequence.rb +304 -0
- data/lib/korona-cloud-client/models/result_list_language_resource.rb +304 -0
- data/lib/korona-cloud-client/models/result_list_number_range_configuration.rb +304 -0
- data/lib/korona-cloud-client/models/result_list_organizational_unit.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_payment_method.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_payment_method_category.rb +304 -0
- data/lib/korona-cloud-client/models/result_list_pos.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_pos_balance.rb +304 -0
- data/lib/korona-cloud-client/models/result_list_pos_button_layout.rb +304 -0
- data/lib/korona-cloud-client/models/result_list_pos_page_layout_configuration.rb +304 -0
- data/lib/korona-cloud-client/models/result_list_pos_profile.rb +304 -0
- data/lib/korona-cloud-client/models/result_list_price_group.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_price_rule.rb +304 -0
- data/lib/korona-cloud-client/models/result_list_product.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_product_stock.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_production_type.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_promotion.rb +304 -0
- data/lib/korona-cloud-client/models/result_list_receipt.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_receipt_layout_configuration.rb +304 -0
- data/lib/korona-cloud-client/models/result_list_report_file.rb +304 -0
- data/lib/korona-cloud-client/models/result_list_revenue_account.rb +304 -0
- data/lib/korona-cloud-client/models/result_list_sales_tax.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_sector.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_special_price_configuration.rb +304 -0
- data/lib/korona-cloud-client/models/result_list_stock_adjustment.rb +304 -0
- data/lib/korona-cloud-client/models/result_list_stock_adjustment_item.rb +304 -0
- data/lib/korona-cloud-client/models/result_list_stock_order.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_stock_order_item.rb +304 -0
- data/lib/korona-cloud-client/models/result_list_stock_receipt.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_stock_receipt_item.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_store_order.rb +304 -0
- data/lib/korona-cloud-client/models/result_list_store_order_item.rb +304 -0
- data/lib/korona-cloud-client/models/result_list_supplier.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_tag.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_ticket.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_ticket_definition.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_time_tracking_entity.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_time_tracking_entry.rb +21 -8
- data/lib/korona-cloud-client/models/result_list_user_role.rb +304 -0
- data/lib/korona-cloud-client/models/result_list_voucher_configuration.rb +304 -0
- data/lib/korona-cloud-client/models/result_list_voucher_resource.rb +304 -0
- data/lib/korona-cloud-client/models/result_list_voucher_transaction_resource.rb +304 -0
- data/lib/korona-cloud-client/models/revenue_account.rb +259 -0
- data/lib/korona-cloud-client/models/revenue_data.rb +21 -8
- data/lib/korona-cloud-client/models/sales_tax.rb +44 -22
- data/lib/korona-cloud-client/models/sales_tax_rate.rb +23 -9
- data/lib/korona-cloud-client/models/sector.rb +32 -19
- data/lib/korona-cloud-client/models/sector_revenue_account_item.rb +21 -8
- data/lib/korona-cloud-client/models/sector_sales_tax_item.rb +21 -8
- data/lib/korona-cloud-client/models/service.rb +46 -12
- data/lib/korona-cloud-client/models/signature.rb +23 -9
- data/lib/korona-cloud-client/models/special_price.rb +238 -0
- data/lib/korona-cloud-client/models/special_price_configuration.rb +296 -0
- data/lib/korona-cloud-client/models/statistic.rb +21 -8
- data/lib/korona-cloud-client/models/statistic_list_top_seller.rb +21 -8
- data/lib/korona-cloud-client/models/statistic_map_string_revenue_data.rb +21 -8
- data/lib/korona-cloud-client/models/statistic_revenue_data.rb +21 -8
- data/lib/korona-cloud-client/models/stock_adjustment.rb +376 -0
- data/lib/korona-cloud-client/models/stock_adjustment_item.rb +246 -0
- data/lib/korona-cloud-client/models/stock_adjustment_item_reason.rb +262 -0
- data/lib/korona-cloud-client/models/stock_order.rb +131 -104
- data/lib/korona-cloud-client/models/stock_order_item.rb +23 -9
- data/lib/korona-cloud-client/models/stock_receipt.rb +38 -22
- data/lib/korona-cloud-client/models/stock_receipt_item.rb +23 -9
- data/lib/korona-cloud-client/models/stock_receipt_item_amount.rb +21 -8
- data/lib/korona-cloud-client/models/stock_receipt_item_identification.rb +21 -8
- data/lib/korona-cloud-client/models/stock_receipt_item_purchase_price.rb +21 -8
- data/lib/korona-cloud-client/models/store_order.rb +334 -0
- data/lib/korona-cloud-client/models/store_order_item.rb +246 -0
- data/lib/korona-cloud-client/models/supplier.rb +44 -22
- data/lib/korona-cloud-client/models/supplier_contact.rb +21 -8
- data/lib/korona-cloud-client/models/supplier_contact_person.rb +21 -8
- data/lib/korona-cloud-client/models/supplier_payment_information.rb +21 -8
- data/lib/korona-cloud-client/models/tag.rb +32 -19
- data/lib/korona-cloud-client/models/tax_payment.rb +21 -8
- data/lib/korona-cloud-client/models/tax_summary.rb +21 -8
- data/lib/korona-cloud-client/models/terminal_receipt_print_line.rb +262 -0
- data/lib/korona-cloud-client/models/ticket.rb +25 -10
- data/lib/korona-cloud-client/models/ticket_data.rb +27 -10
- data/lib/korona-cloud-client/models/ticket_definition.rb +74 -19
- data/lib/korona-cloud-client/models/ticket_personalization.rb +21 -8
- data/lib/korona-cloud-client/models/time_of_day_interval.rb +230 -0
- data/lib/korona-cloud-client/models/time_period.rb +21 -8
- data/lib/korona-cloud-client/models/time_tracking_entity.rb +32 -19
- data/lib/korona-cloud-client/models/time_tracking_entry.rb +23 -9
- data/lib/korona-cloud-client/models/too_many_requests_error.rb +21 -8
- data/lib/korona-cloud-client/models/top_seller.rb +22 -9
- data/lib/korona-cloud-client/models/total_period.rb +25 -10
- data/lib/korona-cloud-client/models/total_price.rb +21 -8
- data/lib/korona-cloud-client/models/user_role.rb +292 -0
- data/lib/korona-cloud-client/models/validity.rb +27 -8
- data/lib/korona-cloud-client/models/voided_receipt_item.rb +36 -12
- data/lib/korona-cloud-client/models/voucher_configuration.rb +401 -0
- data/lib/korona-cloud-client/models/voucher_configuration_discount_calculation.rb +271 -0
- data/lib/korona-cloud-client/models/voucher_configuration_follow_up_products.rb +237 -0
- data/lib/korona-cloud-client/models/voucher_resource.rb +306 -0
- data/lib/korona-cloud-client/models/voucher_transaction.rb +345 -0
- data/lib/korona-cloud-client/models/voucher_transaction_resource.rb +447 -0
- data/lib/korona-cloud-client/models/weather.rb +21 -8
- data/lib/korona-cloud-client/version.rb +3 -3
- data/lib/korona-cloud-client.rb +165 -3
- data/spec/api/accounts_api_spec.rb +67 -3
- data/spec/api/additional_receipt_info_types_api_spec.rb +66 -2
- data/spec/api/assortments_api_spec.rb +2 -2
- data/spec/api/cashier_roles_api_spec.rb +2 -2
- data/spec/api/cashier_verification_requirements_api_spec.rb +101 -0
- data/spec/api/cashiers_api_spec.rb +68 -2
- data/spec/api/commodity_groups_api_spec.rb +2 -2
- data/spec/api/contra_accounts_api_spec.rb +128 -0
- data/spec/api/cost_centers_api_spec.rb +128 -0
- data/spec/api/coupons_api_spec.rb +63 -0
- data/spec/api/currencies_api_spec.rb +39 -2
- data/spec/api/customer_display_configurations_api_spec.rb +114 -0
- data/spec/api/customer_groups_api_spec.rb +66 -2
- data/spec/api/customer_orders_api_spec.rb +10 -6
- data/spec/api/customers_api_spec.rb +2 -2
- data/spec/api/delivery_notes_api_spec.rb +19 -6
- data/spec/api/device_configuration_variables_api_spec.rb +113 -0
- data/spec/api/discount_configurations_api_spec.rb +128 -0
- data/spec/api/discount_levels_api_spec.rb +128 -0
- data/spec/api/dispatch_notifications_api_spec.rb +206 -0
- data/spec/api/economic_zones_api_spec.rb +39 -2
- data/spec/api/external_system_calls_api_spec.rb +2 -2
- data/spec/api/fiscal_units_api_spec.rb +2 -2
- data/spec/api/images_api_spec.rb +2 -2
- data/spec/api/info_texts_api_spec.rb +39 -2
- data/spec/api/inventories_api_spec.rb +37 -24
- data/spec/api/item_sequences_api_spec.rb +128 -0
- data/spec/api/korona_account_api_spec.rb +2 -2
- data/spec/api/languages_api_spec.rb +128 -0
- data/spec/api/messages_api_spec.rb +47 -0
- data/spec/api/number_range_configurations_api_spec.rb +88 -0
- data/spec/api/organizational_units_api_spec.rb +73 -10
- data/spec/api/payment_method_categories_api_spec.rb +128 -0
- data/spec/api/payment_methods_api_spec.rb +66 -2
- data/spec/api/points_of_sale_api_spec.rb +58 -8
- data/spec/api/pos_button_layouts_api_spec.rb +128 -0
- data/spec/api/pos_page_layout_configurations_api_spec.rb +128 -0
- data/spec/api/pos_profiles_api_spec.rb +128 -0
- data/spec/api/price_groups_api_spec.rb +39 -2
- data/spec/api/price_rules_api_spec.rb +126 -0
- data/spec/api/production_types_api_spec.rb +2 -2
- data/spec/api/products_api_spec.rb +19 -2
- data/spec/api/promotions_api_spec.rb +126 -0
- data/spec/api/receipt_layout_configurations_api_spec.rb +128 -0
- data/spec/api/receipts_api_spec.rb +23 -7
- data/spec/api/report_files_api_spec.rb +126 -0
- data/spec/api/revenue_accounts_api_spec.rb +128 -0
- data/spec/api/sales_taxes_api_spec.rb +39 -2
- data/spec/api/sectors_api_spec.rb +14 -2
- data/spec/api/special_price_configurations_api_spec.rb +113 -0
- data/spec/api/statistics_api_spec.rb +2 -2
- data/spec/api/stock_adjustments_api_spec.rb +190 -0
- data/spec/api/stock_orders_api_spec.rb +37 -6
- data/spec/api/stock_receipts_api_spec.rb +6 -6
- data/spec/api/store_orders_api_spec.rb +192 -0
- data/spec/api/suppliers_api_spec.rb +39 -2
- data/spec/api/tags_api_spec.rb +2 -2
- data/spec/api/ticketing_api_spec.rb +81 -4
- data/spec/api/time_tracking_api_spec.rb +24 -24
- data/spec/api/user_roles_api_spec.rb +126 -0
- data/spec/api/voucher_configurations_api_spec.rb +127 -0
- data/spec/api/vouchers_api_spec.rb +240 -0
- data/spec/api_client_spec.rb +4 -4
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/account_spec.rb +30 -15
- data/spec/models/account_summary_spec.rb +5 -12
- data/spec/models/account_transaction_spec.rb +11 -12
- data/spec/models/add_or_update_result_spec.rb +8 -15
- data/spec/models/additional_info_spec.rb +5 -12
- data/spec/models/additional_receipt_info_type_spec.rb +7 -20
- data/spec/models/address_information_spec.rb +11 -12
- data/spec/models/admission_spec.rb +5 -12
- data/spec/models/amount_count_data_spec.rb +5 -12
- data/spec/models/amount_spec.rb +5 -12
- data/spec/models/assortment_spec.rb +7 -14
- data/spec/models/attendance_spec.rb +7 -14
- data/spec/models/bad_request_error_spec.rb +7 -14
- data/spec/models/capacity_spec.rb +5 -12
- data/spec/models/cashier_role_spec.rb +9 -16
- data/spec/models/cashier_spec.rb +47 -18
- data/spec/models/cashier_summary_spec.rb +5 -12
- data/spec/models/cashier_verification_requirement_spec.rb +92 -0
- data/spec/models/cashier_verification_result_spec.rb +68 -0
- data/spec/models/category_spec.rb +5 -12
- data/spec/models/cloud_subscription_details_spec.rb +7 -14
- data/spec/models/cloud_subscription_spec.rb +6 -13
- data/spec/models/commodity_group_spec.rb +12 -13
- data/spec/models/commodity_group_summary_spec.rb +5 -12
- data/spec/models/company_identification_spec.rb +5 -12
- data/spec/models/contra_account_spec.rb +52 -0
- data/spec/models/cost_center_spec.rb +52 -0
- data/spec/models/coupon_position_spec.rb +64 -0
- data/spec/models/coupon_spec.rb +40 -0
- data/spec/models/creation_task_spec.rb +6 -13
- data/spec/models/currency_denomination_spec.rb +6 -13
- data/spec/models/currency_exchange_rate_spec.rb +5 -12
- data/spec/models/currency_spec.rb +7 -14
- data/spec/models/customer_card_spec.rb +6 -13
- data/spec/models/customer_data_spec.rb +5 -12
- data/spec/models/customer_display_configuration_spec.rb +142 -0
- data/spec/models/customer_group_spec.rb +7 -14
- data/spec/models/customer_group_summary_spec.rb +5 -12
- data/spec/models/customer_information_spec.rb +5 -12
- data/spec/models/customer_order_item_spec.rb +118 -0
- data/spec/models/customer_order_spec.rb +7 -14
- data/spec/models/customer_spec.rb +38 -15
- data/spec/models/date_interval_spec.rb +40 -0
- data/spec/models/day_rating_spec.rb +5 -12
- data/spec/models/day_time_period_spec.rb +5 -12
- data/spec/models/delivery_note_item_spec.rb +5 -12
- data/spec/models/delivery_note_spec.rb +7 -14
- data/spec/models/deposit_spec.rb +5 -12
- data/spec/models/device_configuration_spec.rb +100 -0
- data/spec/models/device_configuration_variable_spec.rb +58 -0
- data/spec/models/device_configuration_variable_value_spec.rb +40 -0
- data/spec/models/device_information_spec.rb +5 -12
- data/spec/models/device_parameter_item_spec.rb +46 -0
- data/spec/models/discount_configuration_spec.rb +76 -0
- data/spec/models/discount_level_spec.rb +64 -0
- data/spec/models/discount_spec.rb +18 -13
- data/spec/models/dispatch_notification_item_amount_spec.rb +40 -0
- data/spec/models/dispatch_notification_item_container_spec.rb +40 -0
- data/spec/models/dispatch_notification_item_identification_spec.rb +46 -0
- data/spec/models/dispatch_notification_item_import_spec.rb +70 -0
- data/spec/models/dispatch_notification_item_spec.rb +88 -0
- data/spec/models/dispatch_notification_spec.rb +170 -0
- data/spec/models/economic_zone_spec.rb +7 -14
- data/spec/models/end_of_day_statement_spec.rb +7 -14
- data/spec/models/end_of_day_statement_summary_spec.rb +5 -12
- data/spec/models/entry_gate_spec.rb +7 -14
- data/spec/models/event_spec.rb +7 -14
- data/spec/models/external_system_call_spec.rb +13 -14
- data/spec/models/fiscal_transaction_spec.rb +5 -12
- data/spec/models/fiscal_unit_certificate_info_spec.rb +5 -12
- data/spec/models/fiscal_unit_pre_configuration_spec.rb +64 -0
- data/spec/models/fiscal_unit_spec.rb +14 -15
- data/spec/models/fiscal_unit_state_spec.rb +6 -13
- data/spec/models/fiscal_unit_state_usage_level_spec.rb +5 -12
- data/spec/models/fiscal_unit_state_usage_level_value_spec.rb +5 -12
- data/spec/models/fiscal_unit_state_version_info_spec.rb +5 -12
- data/spec/models/forbidden_error_spec.rb +6 -13
- data/spec/models/geo_location_spec.rb +5 -12
- data/spec/models/info_text_spec.rb +15 -16
- data/spec/models/interval_spec.rb +5 -12
- data/spec/models/inventory_list_item_spec.rb +5 -12
- data/spec/models/inventory_list_item_stock_spec.rb +5 -12
- data/spec/models/inventory_list_spec.rb +14 -15
- data/spec/models/inventory_spec.rb +10 -17
- data/spec/models/item_sequence_spec.rb +58 -0
- data/spec/models/korona_account_spec.rb +20 -15
- data/spec/models/language_resource_spec.rb +64 -0
- data/spec/models/media_url_spec.rb +5 -12
- data/spec/models/message_spec.rb +50 -0
- data/spec/models/method_not_allowed_error_spec.rb +6 -13
- data/spec/models/model_reference_spec.rb +5 -12
- data/spec/models/not_found_error_spec.rb +6 -13
- data/spec/models/number_range_configuration_spec.rb +64 -0
- data/spec/models/number_range_spec.rb +62 -0
- data/spec/models/opening_hours_spec.rb +6 -13
- data/spec/models/organizational_unit_spec.rb +26 -21
- data/spec/models/payment_method_category_spec.rb +58 -0
- data/spec/models/payment_method_spec.rb +43 -14
- data/spec/models/payment_service_configuration_spec.rb +62 -0
- data/spec/models/payment_spec.rb +23 -12
- data/spec/models/payment_summary_spec.rb +5 -12
- data/spec/models/payment_terminal_receipt_spec.rb +44 -0
- data/spec/models/period_list_top_seller_spec.rb +5 -12
- data/spec/models/period_map_string_revenue_data_spec.rb +5 -12
- data/spec/models/period_object_spec.rb +5 -12
- data/spec/models/period_revenue_data_spec.rb +5 -12
- data/spec/models/period_spec.rb +5 -12
- data/spec/models/pos_balance_item_spec.rb +62 -0
- data/spec/models/pos_balance_spec.rb +112 -0
- data/spec/models/pos_balance_summary_changeset_spec.rb +58 -0
- data/spec/models/pos_balance_summary_spec.rb +46 -0
- data/spec/models/pos_balance_total_spec.rb +40 -0
- data/spec/models/pos_button_function_spec.rb +116 -0
- data/spec/models/pos_button_layout_spec.rb +74 -0
- data/spec/models/pos_button_spec.rb +84 -0
- data/spec/models/pos_page_layout_configuration_spec.rb +82 -0
- data/spec/models/pos_page_layout_spec.rb +62 -0
- data/spec/models/pos_profile_spec.rb +318 -0
- data/spec/models/pos_spec.rb +112 -15
- data/spec/models/prepaid_card_spec.rb +40 -0
- data/spec/models/price_group_spec.rb +7 -14
- data/spec/models/price_rule_calculation_spec.rb +44 -0
- data/spec/models/price_rule_condition_spec.rb +74 -0
- data/spec/models/price_rule_spec.rb +94 -0
- data/spec/models/price_rule_time_validity_repetition_interval_spec.rb +44 -0
- data/spec/models/price_rule_validity_period_spec.rb +46 -0
- data/spec/models/product_code_spec.rb +5 -12
- data/spec/models/product_description_spec.rb +6 -13
- data/spec/models/product_price_spec.rb +5 -12
- data/spec/models/product_spec.rb +28 -17
- data/spec/models/product_special_price_spec.rb +46 -0
- data/spec/models/product_stock_spec.rb +5 -12
- data/spec/models/product_subproduct_spec.rb +21 -12
- data/spec/models/product_supplier_price_spec.rb +5 -12
- data/spec/models/product_transfer_involved_party_information_data_spec.rb +5 -18
- data/spec/models/product_transfer_involved_party_information_spec.rb +5 -12
- data/spec/models/production_type_setting_spec.rb +34 -0
- data/spec/models/production_type_spec.rb +10 -17
- data/spec/models/promotion_application_spec.rb +46 -0
- data/spec/models/promotion_benefit_common_discount_spec.rb +98 -0
- data/spec/models/promotion_benefit_extended_discount_discount_calculation_spec.rb +76 -0
- data/spec/models/promotion_benefit_extended_discount_position_comperator_spec.rb +40 -0
- data/spec/models/promotion_benefit_extended_discount_position_selection_count_amount_spec.rb +44 -0
- data/spec/models/promotion_benefit_extended_discount_position_selection_criteria_min_max_range_spec.rb +40 -0
- data/spec/models/promotion_benefit_extended_discount_position_selection_criteria_spec.rb +52 -0
- data/spec/models/promotion_benefit_extended_discount_position_selection_filter_spec.rb +74 -0
- data/spec/models/promotion_benefit_extended_discount_position_selection_spec.rb +56 -0
- data/spec/models/promotion_benefit_extended_discount_spec.rb +40 -0
- data/spec/models/promotion_benefit_reduce_product_amount_spec.rb +40 -0
- data/spec/models/promotion_benefit_spec.rb +62 -0
- data/spec/models/promotion_bonuspoint_creation_spec.rb +56 -0
- data/spec/models/promotion_bonuspoint_redemption_fixed_discount_spec.rb +40 -0
- data/spec/models/promotion_bonuspoint_redemption_percentage_discount_spec.rb +40 -0
- data/spec/models/promotion_bonuspoint_redemption_spec.rb +56 -0
- data/spec/models/promotion_bonuspoint_redemption_tag_discount_spec.rb +40 -0
- data/spec/models/promotion_bonuspoint_spec.rb +40 -0
- data/spec/models/promotion_coupon_spec.rb +56 -0
- data/spec/models/promotion_coupon_validity_days_after_purchase_interval_spec.rb +40 -0
- data/spec/models/promotion_coupon_validity_spec.rb +50 -0
- data/spec/models/promotion_layer_spec.rb +40 -0
- data/spec/models/promotion_spec.rb +116 -0
- data/spec/models/promotion_stamp_spec.rb +50 -0
- data/spec/models/promotion_trigger_product_amount_condition_spec.rb +50 -0
- data/spec/models/promotion_trigger_receipt_product_amount_condition_spec.rb +44 -0
- data/spec/models/promotion_trigger_receipt_revenue_condition_spec.rb +44 -0
- data/spec/models/promotion_trigger_spec.rb +76 -0
- data/spec/models/promotion_trigger_tag_amount_condition_spec.rb +50 -0
- data/spec/models/promotion_trigger_tag_revenue_condition_spec.rb +50 -0
- data/spec/models/promotion_validity_spec.rb +62 -0
- data/spec/models/rating_spec.rb +5 -12
- data/spec/models/receipt_item_return_reason_spec.rb +34 -0
- data/spec/models/receipt_item_spec.rb +75 -18
- data/spec/models/receipt_layout_configuration_spec.rb +152 -0
- data/spec/models/receipt_max_revisions_spec.rb +5 -12
- data/spec/models/receipt_revenue_spec.rb +40 -0
- data/spec/models/receipt_spec.rb +102 -19
- data/spec/models/receipt_total_spec.rb +46 -0
- data/spec/models/report_file_spec.rb +80 -0
- data/spec/models/result_list_account_spec.rb +5 -12
- data/spec/models/result_list_additional_receipt_info_type_spec.rb +5 -12
- data/spec/models/result_list_assortment_spec.rb +5 -12
- data/spec/models/result_list_attendance_spec.rb +5 -12
- data/spec/models/result_list_cashier_role_spec.rb +5 -12
- data/spec/models/result_list_cashier_spec.rb +5 -12
- data/spec/models/result_list_cashier_verification_requirement_spec.rb +64 -0
- data/spec/models/result_list_commodity_group_spec.rb +5 -12
- data/spec/models/result_list_contra_account_spec.rb +64 -0
- data/spec/models/result_list_cost_center_spec.rb +64 -0
- data/spec/models/result_list_coupon_spec.rb +64 -0
- data/spec/models/result_list_creation_task_spec.rb +5 -12
- data/spec/models/result_list_currency_spec.rb +5 -12
- data/spec/models/result_list_customer_display_configuration_spec.rb +64 -0
- data/spec/models/result_list_customer_group_spec.rb +5 -12
- data/spec/models/result_list_customer_order_spec.rb +5 -12
- data/spec/models/result_list_customer_spec.rb +5 -12
- data/spec/models/result_list_day_rating_spec.rb +5 -12
- data/spec/models/result_list_delivery_note_spec.rb +5 -12
- data/spec/models/result_list_device_configuration_variable_spec.rb +64 -0
- data/spec/models/result_list_discount_configuration_spec.rb +64 -0
- data/spec/models/result_list_discount_level_spec.rb +64 -0
- data/spec/models/result_list_dispatch_notification_item_spec.rb +64 -0
- data/spec/models/result_list_dispatch_notification_spec.rb +64 -0
- data/spec/models/result_list_economic_zone_spec.rb +5 -12
- data/spec/models/result_list_end_of_day_statement_spec.rb +5 -12
- data/spec/models/result_list_entry_gate_spec.rb +5 -12
- data/spec/models/result_list_event_spec.rb +5 -12
- data/spec/models/result_list_external_system_call_spec.rb +5 -12
- data/spec/models/result_list_fiscal_unit_spec.rb +5 -12
- data/spec/models/result_list_info_text_spec.rb +5 -12
- data/spec/models/result_list_inventory_list_item_spec.rb +5 -12
- data/spec/models/result_list_inventory_list_spec.rb +5 -12
- data/spec/models/result_list_inventory_spec.rb +5 -12
- data/spec/models/result_list_item_sequence_spec.rb +64 -0
- data/spec/models/result_list_language_resource_spec.rb +64 -0
- data/spec/models/result_list_number_range_configuration_spec.rb +64 -0
- data/spec/models/result_list_organizational_unit_spec.rb +5 -12
- data/spec/models/result_list_payment_method_category_spec.rb +64 -0
- data/spec/models/result_list_payment_method_spec.rb +5 -12
- data/spec/models/result_list_pos_balance_spec.rb +64 -0
- data/spec/models/result_list_pos_button_layout_spec.rb +64 -0
- data/spec/models/result_list_pos_page_layout_configuration_spec.rb +64 -0
- data/spec/models/result_list_pos_profile_spec.rb +64 -0
- data/spec/models/result_list_pos_spec.rb +5 -12
- data/spec/models/result_list_price_group_spec.rb +5 -12
- data/spec/models/result_list_price_rule_spec.rb +64 -0
- data/spec/models/result_list_product_spec.rb +5 -12
- data/spec/models/result_list_product_stock_spec.rb +5 -12
- data/spec/models/result_list_production_type_spec.rb +5 -12
- data/spec/models/result_list_promotion_spec.rb +64 -0
- data/spec/models/result_list_receipt_layout_configuration_spec.rb +64 -0
- data/spec/models/result_list_receipt_spec.rb +5 -12
- data/spec/models/result_list_report_file_spec.rb +64 -0
- data/spec/models/result_list_revenue_account_spec.rb +64 -0
- data/spec/models/result_list_sales_tax_spec.rb +5 -12
- data/spec/models/result_list_sector_spec.rb +5 -12
- data/spec/models/result_list_spec.rb +5 -12
- data/spec/models/result_list_special_price_configuration_spec.rb +64 -0
- data/spec/models/result_list_stock_adjustment_item_spec.rb +64 -0
- data/spec/models/result_list_stock_adjustment_spec.rb +64 -0
- data/spec/models/result_list_stock_order_item_spec.rb +64 -0
- data/spec/models/result_list_stock_order_spec.rb +5 -12
- data/spec/models/result_list_stock_receipt_item_spec.rb +5 -12
- data/spec/models/result_list_stock_receipt_spec.rb +5 -12
- data/spec/models/result_list_store_order_item_spec.rb +64 -0
- data/spec/models/result_list_store_order_spec.rb +64 -0
- data/spec/models/result_list_supplier_spec.rb +5 -12
- data/spec/models/result_list_tag_spec.rb +5 -12
- data/spec/models/result_list_ticket_definition_spec.rb +5 -12
- data/spec/models/result_list_ticket_spec.rb +5 -12
- data/spec/models/result_list_time_tracking_entity_spec.rb +5 -12
- data/spec/models/result_list_time_tracking_entry_spec.rb +5 -12
- data/spec/models/result_list_user_role_spec.rb +64 -0
- data/spec/models/result_list_voucher_configuration_spec.rb +64 -0
- data/spec/models/result_list_voucher_resource_spec.rb +64 -0
- data/spec/models/result_list_voucher_transaction_resource_spec.rb +64 -0
- data/spec/models/revenue_account_spec.rb +58 -0
- data/spec/models/revenue_data_spec.rb +5 -12
- data/spec/models/sales_tax_rate_spec.rb +5 -12
- data/spec/models/sales_tax_spec.rb +22 -13
- data/spec/models/sector_revenue_account_item_spec.rb +5 -12
- data/spec/models/sector_sales_tax_item_spec.rb +5 -12
- data/spec/models/sector_spec.rb +7 -14
- data/spec/models/service_spec.rb +16 -13
- data/spec/models/signature_spec.rb +5 -12
- data/spec/models/special_price_configuration_spec.rb +76 -0
- data/spec/models/special_price_spec.rb +46 -0
- data/spec/models/statistic_list_top_seller_spec.rb +5 -12
- data/spec/models/statistic_map_string_revenue_data_spec.rb +5 -12
- data/spec/models/statistic_revenue_data_spec.rb +5 -12
- data/spec/models/statistic_spec.rb +5 -12
- data/spec/models/stock_adjustment_item_reason_spec.rb +44 -0
- data/spec/models/stock_adjustment_item_spec.rb +52 -0
- data/spec/models/stock_adjustment_spec.rb +116 -0
- data/spec/models/stock_order_item_spec.rb +5 -12
- data/spec/models/stock_order_spec.rb +31 -32
- data/spec/models/stock_receipt_item_amount_spec.rb +5 -12
- data/spec/models/stock_receipt_item_identification_spec.rb +5 -12
- data/spec/models/stock_receipt_item_purchase_price_spec.rb +5 -12
- data/spec/models/stock_receipt_item_spec.rb +5 -12
- data/spec/models/stock_receipt_spec.rb +20 -15
- data/spec/models/store_order_item_spec.rb +52 -0
- data/spec/models/store_order_spec.rb +106 -0
- data/spec/models/supplier_contact_person_spec.rb +5 -12
- data/spec/models/supplier_contact_spec.rb +5 -12
- data/spec/models/supplier_payment_information_spec.rb +6 -13
- data/spec/models/supplier_spec.rb +13 -14
- data/spec/models/tag_spec.rb +7 -14
- data/spec/models/tax_payment_spec.rb +5 -12
- data/spec/models/tax_summary_spec.rb +5 -12
- data/spec/models/terminal_receipt_print_line_spec.rb +44 -0
- data/spec/models/ticket_data_spec.rb +5 -12
- data/spec/models/ticket_definition_spec.rb +31 -14
- data/spec/models/ticket_personalization_spec.rb +5 -12
- data/spec/models/ticket_spec.rb +5 -12
- data/spec/models/time_of_day_interval_spec.rb +40 -0
- data/spec/models/time_period_spec.rb +5 -12
- data/spec/models/time_tracking_entity_spec.rb +7 -14
- data/spec/models/time_tracking_entry_spec.rb +5 -12
- data/spec/models/too_many_requests_error_spec.rb +6 -13
- data/spec/models/top_seller_spec.rb +5 -12
- data/spec/models/total_period_spec.rb +5 -12
- data/spec/models/total_price_spec.rb +5 -12
- data/spec/models/user_role_spec.rb +68 -0
- data/spec/models/validity_spec.rb +6 -13
- data/spec/models/voided_receipt_item_spec.rb +11 -12
- data/spec/models/voucher_configuration_discount_calculation_spec.rb +50 -0
- data/spec/models/voucher_configuration_follow_up_products_spec.rb +46 -0
- data/spec/models/voucher_configuration_spec.rb +134 -0
- data/spec/models/voucher_resource_spec.rb +88 -0
- data/spec/models/voucher_transaction_resource_spec.rb +164 -0
- data/spec/models/voucher_transaction_spec.rb +98 -0
- data/spec/models/weather_spec.rb +6 -13
- data/spec/spec_helper.rb +2 -2
- metadata +659 -35
- data/docs/TicketCreationApi.md +0 -122
- data/korona-cloud-client-1.0.0.gem +0 -0
- data/korona-cloud-client-1.0.1.gem +0 -0
- data/korona-cloud-client-1.0.2.gem +0 -0
- data/lib/korona-cloud-client/api/ticket_creation_api.rb +0 -163
- data/spec/api/ticket_creation_api_spec.rb +0 -61
|
@@ -2,32 +2,36 @@
|
|
|
2
2
|
|
|
3
3
|
All URIs are relative to *https://www.koronacloud.com/web/api/v3*
|
|
4
4
|
|
|
5
|
-
Method | HTTP request | Description
|
|
6
|
-
|
|
7
|
-
[**add_organizational_unit_day_ratings**](OrganizationalUnitsApi.md#add_organizational_unit_day_ratings) | **POST** /accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitId}/dayRatings | adds a batch of new day ratings
|
|
8
|
-
[**
|
|
9
|
-
[**
|
|
10
|
-
[**
|
|
11
|
-
[**
|
|
12
|
-
[**
|
|
13
|
-
[**
|
|
14
|
-
[**
|
|
15
|
-
[**
|
|
16
|
-
[**
|
|
17
|
-
[**
|
|
18
|
-
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**add_organizational_unit_day_ratings**](OrganizationalUnitsApi.md#add_organizational_unit_day_ratings) | **POST** /accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitId}/dayRatings | adds a batch of new day ratings |
|
|
8
|
+
| [**add_organizational_units**](OrganizationalUnitsApi.md#add_organizational_units) | **POST** /accounts/{koronaAccountId}/organizationalUnits | adds a batch of new organizational units |
|
|
9
|
+
| [**delete_organizational_unit**](OrganizationalUnitsApi.md#delete_organizational_unit) | **DELETE** /accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitId} | deletes the single organizational unit by its id |
|
|
10
|
+
| [**delete_organizational_unit_day_rating**](OrganizationalUnitsApi.md#delete_organizational_unit_day_rating) | **DELETE** /accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitId}/dayRatings/{dayRatingIdOrDate} | deletes the single day rating by its id or date |
|
|
11
|
+
| [**delete_organizational_units**](OrganizationalUnitsApi.md#delete_organizational_units) | **DELETE** /accounts/{koronaAccountId}/organizationalUnits | deletes a batch of organizational units |
|
|
12
|
+
| [**get_organizational_unit**](OrganizationalUnitsApi.md#get_organizational_unit) | **GET** /accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitId} | returns the single organizational unit |
|
|
13
|
+
| [**get_organizational_unit_day_rating**](OrganizationalUnitsApi.md#get_organizational_unit_day_rating) | **GET** /accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitId}/dayRatings/{dayRatingIdOrDate} | returns the single day rating by its id or date |
|
|
14
|
+
| [**get_organizational_unit_day_ratings**](OrganizationalUnitsApi.md#get_organizational_unit_day_ratings) | **GET** /accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitId}/dayRatings | lists all organizational unit related day ratings |
|
|
15
|
+
| [**get_organizational_unit_inventory_lists**](OrganizationalUnitsApi.md#get_organizational_unit_inventory_lists) | **GET** /accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitId}/inventoryLists | lists the inventory lists belonging to the organizational unit (KORONA.retail required) |
|
|
16
|
+
| [**get_organizational_unit_product_stocks**](OrganizationalUnitsApi.md#get_organizational_unit_product_stocks) | **GET** /accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitId}/productStocks | lists the product stocks of the organizational unit, in case it contains a warehouse (KORONA.retail required) |
|
|
17
|
+
| [**get_organizational_unit_stock_receipts**](OrganizationalUnitsApi.md#get_organizational_unit_stock_receipts) | **GET** /accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitId}/stockReceipts | lists the stock receipts belonging to the organizational unit (KORONA.retail required) |
|
|
18
|
+
| [**get_organizational_units**](OrganizationalUnitsApi.md#get_organizational_units) | **GET** /accounts/{koronaAccountId}/organizationalUnits | lists all organizational units |
|
|
19
|
+
| [**update_organizational_unit**](OrganizationalUnitsApi.md#update_organizational_unit) | **PATCH** /accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitId} | updates the organizational unit |
|
|
20
|
+
| [**update_organizational_unit_day_rating**](OrganizationalUnitsApi.md#update_organizational_unit_day_rating) | **PATCH** /accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitId}/dayRatings/{dayRatingIdOrDate} | updates the day rating by its id or date |
|
|
21
|
+
| [**update_organizational_unit_day_ratings**](OrganizationalUnitsApi.md#update_organizational_unit_day_ratings) | **PATCH** /accounts/{koronaAccountId}/organizationalUnits/{organizationalUnitId}/dayRatings | updates a batch of day ratings |
|
|
22
|
+
| [**update_organizational_units**](OrganizationalUnitsApi.md#update_organizational_units) | **PATCH** /accounts/{koronaAccountId}/organizationalUnits | updates a batch of organizational units |
|
|
19
23
|
|
|
20
24
|
|
|
21
25
|
## add_organizational_unit_day_ratings
|
|
22
26
|
|
|
23
|
-
> Array
|
|
27
|
+
> <Array<AddOrUpdateResult>> add_organizational_unit_day_ratings(korona_account_id, organizational_unit_id, body)
|
|
24
28
|
|
|
25
29
|
adds a batch of new day ratings
|
|
26
30
|
|
|
27
|
-
###
|
|
31
|
+
### Examples
|
|
28
32
|
|
|
29
33
|
```ruby
|
|
30
|
-
|
|
34
|
+
require 'time'
|
|
31
35
|
require 'korona-cloud-client'
|
|
32
36
|
# setup authorization
|
|
33
37
|
KoronaCloudClient.configure do |config|
|
|
@@ -42,22 +46,113 @@ organizational_unit_id = 'organizational_unit_id_example' # String | id of the r
|
|
|
42
46
|
body = [KoronaCloudClient::DayRating.new] # Array<DayRating> | an array of new day ratings
|
|
43
47
|
|
|
44
48
|
begin
|
|
45
|
-
#adds a batch of new day ratings
|
|
49
|
+
# adds a batch of new day ratings
|
|
46
50
|
result = api_instance.add_organizational_unit_day_ratings(korona_account_id, organizational_unit_id, body)
|
|
47
51
|
p result
|
|
48
52
|
rescue KoronaCloudClient::ApiError => e
|
|
49
|
-
puts "
|
|
53
|
+
puts "Error when calling OrganizationalUnitsApi->add_organizational_unit_day_ratings: #{e}"
|
|
54
|
+
end
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
#### Using the add_organizational_unit_day_ratings_with_http_info variant
|
|
58
|
+
|
|
59
|
+
This returns an Array which contains the response data, status code and headers.
|
|
60
|
+
|
|
61
|
+
> <Array(<Array<AddOrUpdateResult>>, Integer, Hash)> add_organizational_unit_day_ratings_with_http_info(korona_account_id, organizational_unit_id, body)
|
|
62
|
+
|
|
63
|
+
```ruby
|
|
64
|
+
begin
|
|
65
|
+
# adds a batch of new day ratings
|
|
66
|
+
data, status_code, headers = api_instance.add_organizational_unit_day_ratings_with_http_info(korona_account_id, organizational_unit_id, body)
|
|
67
|
+
p status_code # => 2xx
|
|
68
|
+
p headers # => { ... }
|
|
69
|
+
p data # => <Array<AddOrUpdateResult>>
|
|
70
|
+
rescue KoronaCloudClient::ApiError => e
|
|
71
|
+
puts "Error when calling OrganizationalUnitsApi->add_organizational_unit_day_ratings_with_http_info: #{e}"
|
|
50
72
|
end
|
|
51
73
|
```
|
|
52
74
|
|
|
53
75
|
### Parameters
|
|
54
76
|
|
|
77
|
+
| Name | Type | Description | Notes |
|
|
78
|
+
| ---- | ---- | ----------- | ----- |
|
|
79
|
+
| **korona_account_id** | **String** | account id of the KORONA.cloud account | |
|
|
80
|
+
| **organizational_unit_id** | **String** | id of the related object (important: id should match the uuid-format) | |
|
|
81
|
+
| **body** | [**Array<DayRating>**](DayRating.md) | an array of new day ratings | |
|
|
82
|
+
|
|
83
|
+
### Return type
|
|
84
|
+
|
|
85
|
+
[**Array<AddOrUpdateResult>**](AddOrUpdateResult.md)
|
|
86
|
+
|
|
87
|
+
### Authorization
|
|
88
|
+
|
|
89
|
+
[basicAuth](../README.md#basicAuth)
|
|
90
|
+
|
|
91
|
+
### HTTP request headers
|
|
92
|
+
|
|
93
|
+
- **Content-Type**: application/json
|
|
94
|
+
- **Accept**: application/json
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
## add_organizational_units
|
|
98
|
+
|
|
99
|
+
> <Array<AddOrUpdateResult>> add_organizational_units(korona_account_id, body, opts)
|
|
100
|
+
|
|
101
|
+
adds a batch of new organizational units
|
|
102
|
+
|
|
103
|
+
### Examples
|
|
104
|
+
|
|
105
|
+
```ruby
|
|
106
|
+
require 'time'
|
|
107
|
+
require 'korona-cloud-client'
|
|
108
|
+
# setup authorization
|
|
109
|
+
KoronaCloudClient.configure do |config|
|
|
110
|
+
# Configure HTTP basic authorization: basicAuth
|
|
111
|
+
config.username = 'YOUR USERNAME'
|
|
112
|
+
config.password = 'YOUR PASSWORD'
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
api_instance = KoronaCloudClient::OrganizationalUnitsApi.new
|
|
116
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
|
117
|
+
body = [KoronaCloudClient::OrganizationalUnit.new({name: 'name_example'})] # Array<OrganizationalUnit> | an array of new organizational units
|
|
118
|
+
opts = {
|
|
119
|
+
upsert: true # Boolean | when set to true, updates the object instead of generating a already-exists-error
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
begin
|
|
123
|
+
# adds a batch of new organizational units
|
|
124
|
+
result = api_instance.add_organizational_units(korona_account_id, body, opts)
|
|
125
|
+
p result
|
|
126
|
+
rescue KoronaCloudClient::ApiError => e
|
|
127
|
+
puts "Error when calling OrganizationalUnitsApi->add_organizational_units: #{e}"
|
|
128
|
+
end
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
#### Using the add_organizational_units_with_http_info variant
|
|
132
|
+
|
|
133
|
+
This returns an Array which contains the response data, status code and headers.
|
|
134
|
+
|
|
135
|
+
> <Array(<Array<AddOrUpdateResult>>, Integer, Hash)> add_organizational_units_with_http_info(korona_account_id, body, opts)
|
|
136
|
+
|
|
137
|
+
```ruby
|
|
138
|
+
begin
|
|
139
|
+
# adds a batch of new organizational units
|
|
140
|
+
data, status_code, headers = api_instance.add_organizational_units_with_http_info(korona_account_id, body, opts)
|
|
141
|
+
p status_code # => 2xx
|
|
142
|
+
p headers # => { ... }
|
|
143
|
+
p data # => <Array<AddOrUpdateResult>>
|
|
144
|
+
rescue KoronaCloudClient::ApiError => e
|
|
145
|
+
puts "Error when calling OrganizationalUnitsApi->add_organizational_units_with_http_info: #{e}"
|
|
146
|
+
end
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
### Parameters
|
|
55
150
|
|
|
56
|
-
Name | Type | Description
|
|
57
|
-
|
|
58
|
-
**korona_account_id** | **String
|
|
59
|
-
**
|
|
60
|
-
**
|
|
151
|
+
| Name | Type | Description | Notes |
|
|
152
|
+
| ---- | ---- | ----------- | ----- |
|
|
153
|
+
| **korona_account_id** | **String** | account id of the KORONA.cloud account | |
|
|
154
|
+
| **body** | [**Array<OrganizationalUnit>**](OrganizationalUnit.md) | an array of new organizational units | |
|
|
155
|
+
| **upsert** | **Boolean** | when set to true, updates the object instead of generating a already-exists-error | [optional] |
|
|
61
156
|
|
|
62
157
|
### Return type
|
|
63
158
|
|
|
@@ -73,16 +168,85 @@ Name | Type | Description | Notes
|
|
|
73
168
|
- **Accept**: application/json
|
|
74
169
|
|
|
75
170
|
|
|
171
|
+
## delete_organizational_unit
|
|
172
|
+
|
|
173
|
+
> delete_organizational_unit(korona_account_id, organizational_unit_id)
|
|
174
|
+
|
|
175
|
+
deletes the single organizational unit by its id
|
|
176
|
+
|
|
177
|
+
### Examples
|
|
178
|
+
|
|
179
|
+
```ruby
|
|
180
|
+
require 'time'
|
|
181
|
+
require 'korona-cloud-client'
|
|
182
|
+
# setup authorization
|
|
183
|
+
KoronaCloudClient.configure do |config|
|
|
184
|
+
# Configure HTTP basic authorization: basicAuth
|
|
185
|
+
config.username = 'YOUR USERNAME'
|
|
186
|
+
config.password = 'YOUR PASSWORD'
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
api_instance = KoronaCloudClient::OrganizationalUnitsApi.new
|
|
190
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
|
191
|
+
organizational_unit_id = 'organizational_unit_id_example' # String | id of the related object (important: id should match the uuid-format)
|
|
192
|
+
|
|
193
|
+
begin
|
|
194
|
+
# deletes the single organizational unit by its id
|
|
195
|
+
api_instance.delete_organizational_unit(korona_account_id, organizational_unit_id)
|
|
196
|
+
rescue KoronaCloudClient::ApiError => e
|
|
197
|
+
puts "Error when calling OrganizationalUnitsApi->delete_organizational_unit: #{e}"
|
|
198
|
+
end
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
#### Using the delete_organizational_unit_with_http_info variant
|
|
202
|
+
|
|
203
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
204
|
+
|
|
205
|
+
> <Array(nil, Integer, Hash)> delete_organizational_unit_with_http_info(korona_account_id, organizational_unit_id)
|
|
206
|
+
|
|
207
|
+
```ruby
|
|
208
|
+
begin
|
|
209
|
+
# deletes the single organizational unit by its id
|
|
210
|
+
data, status_code, headers = api_instance.delete_organizational_unit_with_http_info(korona_account_id, organizational_unit_id)
|
|
211
|
+
p status_code # => 2xx
|
|
212
|
+
p headers # => { ... }
|
|
213
|
+
p data # => nil
|
|
214
|
+
rescue KoronaCloudClient::ApiError => e
|
|
215
|
+
puts "Error when calling OrganizationalUnitsApi->delete_organizational_unit_with_http_info: #{e}"
|
|
216
|
+
end
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
### Parameters
|
|
220
|
+
|
|
221
|
+
| Name | Type | Description | Notes |
|
|
222
|
+
| ---- | ---- | ----------- | ----- |
|
|
223
|
+
| **korona_account_id** | **String** | account id of the KORONA.cloud account | |
|
|
224
|
+
| **organizational_unit_id** | **String** | id of the related object (important: id should match the uuid-format) | |
|
|
225
|
+
|
|
226
|
+
### Return type
|
|
227
|
+
|
|
228
|
+
nil (empty response body)
|
|
229
|
+
|
|
230
|
+
### Authorization
|
|
231
|
+
|
|
232
|
+
[basicAuth](../README.md#basicAuth)
|
|
233
|
+
|
|
234
|
+
### HTTP request headers
|
|
235
|
+
|
|
236
|
+
- **Content-Type**: Not defined
|
|
237
|
+
- **Accept**: application/json
|
|
238
|
+
|
|
239
|
+
|
|
76
240
|
## delete_organizational_unit_day_rating
|
|
77
241
|
|
|
78
242
|
> delete_organizational_unit_day_rating(korona_account_id, organizational_unit_id, day_rating_id_or_date)
|
|
79
243
|
|
|
80
244
|
deletes the single day rating by its id or date
|
|
81
245
|
|
|
82
|
-
###
|
|
246
|
+
### Examples
|
|
83
247
|
|
|
84
248
|
```ruby
|
|
85
|
-
|
|
249
|
+
require 'time'
|
|
86
250
|
require 'korona-cloud-client'
|
|
87
251
|
# setup authorization
|
|
88
252
|
KoronaCloudClient.configure do |config|
|
|
@@ -97,21 +261,38 @@ organizational_unit_id = 'organizational_unit_id_example' # String | id of the r
|
|
|
97
261
|
day_rating_id_or_date = 'day_rating_id_or_date_example' # String | the id or date (YYYY-MM-DD) of the day rating
|
|
98
262
|
|
|
99
263
|
begin
|
|
100
|
-
#deletes the single day rating by its id or date
|
|
264
|
+
# deletes the single day rating by its id or date
|
|
101
265
|
api_instance.delete_organizational_unit_day_rating(korona_account_id, organizational_unit_id, day_rating_id_or_date)
|
|
102
266
|
rescue KoronaCloudClient::ApiError => e
|
|
103
|
-
puts "
|
|
267
|
+
puts "Error when calling OrganizationalUnitsApi->delete_organizational_unit_day_rating: #{e}"
|
|
104
268
|
end
|
|
105
269
|
```
|
|
106
270
|
|
|
107
|
-
|
|
271
|
+
#### Using the delete_organizational_unit_day_rating_with_http_info variant
|
|
272
|
+
|
|
273
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
274
|
+
|
|
275
|
+
> <Array(nil, Integer, Hash)> delete_organizational_unit_day_rating_with_http_info(korona_account_id, organizational_unit_id, day_rating_id_or_date)
|
|
108
276
|
|
|
277
|
+
```ruby
|
|
278
|
+
begin
|
|
279
|
+
# deletes the single day rating by its id or date
|
|
280
|
+
data, status_code, headers = api_instance.delete_organizational_unit_day_rating_with_http_info(korona_account_id, organizational_unit_id, day_rating_id_or_date)
|
|
281
|
+
p status_code # => 2xx
|
|
282
|
+
p headers # => { ... }
|
|
283
|
+
p data # => nil
|
|
284
|
+
rescue KoronaCloudClient::ApiError => e
|
|
285
|
+
puts "Error when calling OrganizationalUnitsApi->delete_organizational_unit_day_rating_with_http_info: #{e}"
|
|
286
|
+
end
|
|
287
|
+
```
|
|
109
288
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
**
|
|
289
|
+
### Parameters
|
|
290
|
+
|
|
291
|
+
| Name | Type | Description | Notes |
|
|
292
|
+
| ---- | ---- | ----------- | ----- |
|
|
293
|
+
| **korona_account_id** | **String** | account id of the KORONA.cloud account | |
|
|
294
|
+
| **organizational_unit_id** | **String** | id of the related object (important: id should match the uuid-format) | |
|
|
295
|
+
| **day_rating_id_or_date** | **String** | the id or date (YYYY-MM-DD) of the day rating | |
|
|
115
296
|
|
|
116
297
|
### Return type
|
|
117
298
|
|
|
@@ -127,16 +308,86 @@ nil (empty response body)
|
|
|
127
308
|
- **Accept**: application/json
|
|
128
309
|
|
|
129
310
|
|
|
311
|
+
## delete_organizational_units
|
|
312
|
+
|
|
313
|
+
> <Array<AddOrUpdateResult>> delete_organizational_units(korona_account_id, body)
|
|
314
|
+
|
|
315
|
+
deletes a batch of organizational units
|
|
316
|
+
|
|
317
|
+
### Examples
|
|
318
|
+
|
|
319
|
+
```ruby
|
|
320
|
+
require 'time'
|
|
321
|
+
require 'korona-cloud-client'
|
|
322
|
+
# setup authorization
|
|
323
|
+
KoronaCloudClient.configure do |config|
|
|
324
|
+
# Configure HTTP basic authorization: basicAuth
|
|
325
|
+
config.username = 'YOUR USERNAME'
|
|
326
|
+
config.password = 'YOUR PASSWORD'
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
api_instance = KoronaCloudClient::OrganizationalUnitsApi.new
|
|
330
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
|
331
|
+
body = [KoronaCloudClient::OrganizationalUnit.new({name: 'name_example'})] # Array<OrganizationalUnit> | array of existing organizational units (id or number required)
|
|
332
|
+
|
|
333
|
+
begin
|
|
334
|
+
# deletes a batch of organizational units
|
|
335
|
+
result = api_instance.delete_organizational_units(korona_account_id, body)
|
|
336
|
+
p result
|
|
337
|
+
rescue KoronaCloudClient::ApiError => e
|
|
338
|
+
puts "Error when calling OrganizationalUnitsApi->delete_organizational_units: #{e}"
|
|
339
|
+
end
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
#### Using the delete_organizational_units_with_http_info variant
|
|
343
|
+
|
|
344
|
+
This returns an Array which contains the response data, status code and headers.
|
|
345
|
+
|
|
346
|
+
> <Array(<Array<AddOrUpdateResult>>, Integer, Hash)> delete_organizational_units_with_http_info(korona_account_id, body)
|
|
347
|
+
|
|
348
|
+
```ruby
|
|
349
|
+
begin
|
|
350
|
+
# deletes a batch of organizational units
|
|
351
|
+
data, status_code, headers = api_instance.delete_organizational_units_with_http_info(korona_account_id, body)
|
|
352
|
+
p status_code # => 2xx
|
|
353
|
+
p headers # => { ... }
|
|
354
|
+
p data # => <Array<AddOrUpdateResult>>
|
|
355
|
+
rescue KoronaCloudClient::ApiError => e
|
|
356
|
+
puts "Error when calling OrganizationalUnitsApi->delete_organizational_units_with_http_info: #{e}"
|
|
357
|
+
end
|
|
358
|
+
```
|
|
359
|
+
|
|
360
|
+
### Parameters
|
|
361
|
+
|
|
362
|
+
| Name | Type | Description | Notes |
|
|
363
|
+
| ---- | ---- | ----------- | ----- |
|
|
364
|
+
| **korona_account_id** | **String** | account id of the KORONA.cloud account | |
|
|
365
|
+
| **body** | [**Array<OrganizationalUnit>**](OrganizationalUnit.md) | array of existing organizational units (id or number required) | |
|
|
366
|
+
|
|
367
|
+
### Return type
|
|
368
|
+
|
|
369
|
+
[**Array<AddOrUpdateResult>**](AddOrUpdateResult.md)
|
|
370
|
+
|
|
371
|
+
### Authorization
|
|
372
|
+
|
|
373
|
+
[basicAuth](../README.md#basicAuth)
|
|
374
|
+
|
|
375
|
+
### HTTP request headers
|
|
376
|
+
|
|
377
|
+
- **Content-Type**: application/json
|
|
378
|
+
- **Accept**: application/json
|
|
379
|
+
|
|
380
|
+
|
|
130
381
|
## get_organizational_unit
|
|
131
382
|
|
|
132
|
-
> OrganizationalUnit get_organizational_unit(korona_account_id, organizational_unit_id)
|
|
383
|
+
> <OrganizationalUnit> get_organizational_unit(korona_account_id, organizational_unit_id)
|
|
133
384
|
|
|
134
385
|
returns the single organizational unit
|
|
135
386
|
|
|
136
|
-
###
|
|
387
|
+
### Examples
|
|
137
388
|
|
|
138
389
|
```ruby
|
|
139
|
-
|
|
390
|
+
require 'time'
|
|
140
391
|
require 'korona-cloud-client'
|
|
141
392
|
# setup authorization
|
|
142
393
|
KoronaCloudClient.configure do |config|
|
|
@@ -150,21 +401,38 @@ korona_account_id = 'korona_account_id_example' # String | account id of the KOR
|
|
|
150
401
|
organizational_unit_id = 'organizational_unit_id_example' # String | id of the related object (important: id should match the uuid-format)
|
|
151
402
|
|
|
152
403
|
begin
|
|
153
|
-
#returns the single organizational unit
|
|
404
|
+
# returns the single organizational unit
|
|
154
405
|
result = api_instance.get_organizational_unit(korona_account_id, organizational_unit_id)
|
|
155
406
|
p result
|
|
156
407
|
rescue KoronaCloudClient::ApiError => e
|
|
157
|
-
puts "
|
|
408
|
+
puts "Error when calling OrganizationalUnitsApi->get_organizational_unit: #{e}"
|
|
158
409
|
end
|
|
159
410
|
```
|
|
160
411
|
|
|
161
|
-
|
|
412
|
+
#### Using the get_organizational_unit_with_http_info variant
|
|
413
|
+
|
|
414
|
+
This returns an Array which contains the response data, status code and headers.
|
|
415
|
+
|
|
416
|
+
> <Array(<OrganizationalUnit>, Integer, Hash)> get_organizational_unit_with_http_info(korona_account_id, organizational_unit_id)
|
|
417
|
+
|
|
418
|
+
```ruby
|
|
419
|
+
begin
|
|
420
|
+
# returns the single organizational unit
|
|
421
|
+
data, status_code, headers = api_instance.get_organizational_unit_with_http_info(korona_account_id, organizational_unit_id)
|
|
422
|
+
p status_code # => 2xx
|
|
423
|
+
p headers # => { ... }
|
|
424
|
+
p data # => <OrganizationalUnit>
|
|
425
|
+
rescue KoronaCloudClient::ApiError => e
|
|
426
|
+
puts "Error when calling OrganizationalUnitsApi->get_organizational_unit_with_http_info: #{e}"
|
|
427
|
+
end
|
|
428
|
+
```
|
|
162
429
|
|
|
430
|
+
### Parameters
|
|
163
431
|
|
|
164
|
-
Name | Type | Description
|
|
165
|
-
|
|
166
|
-
**korona_account_id** | **String
|
|
167
|
-
**organizational_unit_id** | **String
|
|
432
|
+
| Name | Type | Description | Notes |
|
|
433
|
+
| ---- | ---- | ----------- | ----- |
|
|
434
|
+
| **korona_account_id** | **String** | account id of the KORONA.cloud account | |
|
|
435
|
+
| **organizational_unit_id** | **String** | id of the related object (important: id should match the uuid-format) | |
|
|
168
436
|
|
|
169
437
|
### Return type
|
|
170
438
|
|
|
@@ -182,14 +450,14 @@ Name | Type | Description | Notes
|
|
|
182
450
|
|
|
183
451
|
## get_organizational_unit_day_rating
|
|
184
452
|
|
|
185
|
-
> DayRating get_organizational_unit_day_rating(korona_account_id, organizational_unit_id, day_rating_id_or_date)
|
|
453
|
+
> <DayRating> get_organizational_unit_day_rating(korona_account_id, organizational_unit_id, day_rating_id_or_date)
|
|
186
454
|
|
|
187
455
|
returns the single day rating by its id or date
|
|
188
456
|
|
|
189
|
-
###
|
|
457
|
+
### Examples
|
|
190
458
|
|
|
191
459
|
```ruby
|
|
192
|
-
|
|
460
|
+
require 'time'
|
|
193
461
|
require 'korona-cloud-client'
|
|
194
462
|
# setup authorization
|
|
195
463
|
KoronaCloudClient.configure do |config|
|
|
@@ -204,22 +472,39 @@ organizational_unit_id = 'organizational_unit_id_example' # String | id of the r
|
|
|
204
472
|
day_rating_id_or_date = 'day_rating_id_or_date_example' # String | the id or date (YYYY-MM-DD) of the day rating
|
|
205
473
|
|
|
206
474
|
begin
|
|
207
|
-
#returns the single day rating by its id or date
|
|
475
|
+
# returns the single day rating by its id or date
|
|
208
476
|
result = api_instance.get_organizational_unit_day_rating(korona_account_id, organizational_unit_id, day_rating_id_or_date)
|
|
209
477
|
p result
|
|
210
478
|
rescue KoronaCloudClient::ApiError => e
|
|
211
|
-
puts "
|
|
479
|
+
puts "Error when calling OrganizationalUnitsApi->get_organizational_unit_day_rating: #{e}"
|
|
212
480
|
end
|
|
213
481
|
```
|
|
214
482
|
|
|
215
|
-
|
|
483
|
+
#### Using the get_organizational_unit_day_rating_with_http_info variant
|
|
216
484
|
|
|
485
|
+
This returns an Array which contains the response data, status code and headers.
|
|
217
486
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
487
|
+
> <Array(<DayRating>, Integer, Hash)> get_organizational_unit_day_rating_with_http_info(korona_account_id, organizational_unit_id, day_rating_id_or_date)
|
|
488
|
+
|
|
489
|
+
```ruby
|
|
490
|
+
begin
|
|
491
|
+
# returns the single day rating by its id or date
|
|
492
|
+
data, status_code, headers = api_instance.get_organizational_unit_day_rating_with_http_info(korona_account_id, organizational_unit_id, day_rating_id_or_date)
|
|
493
|
+
p status_code # => 2xx
|
|
494
|
+
p headers # => { ... }
|
|
495
|
+
p data # => <DayRating>
|
|
496
|
+
rescue KoronaCloudClient::ApiError => e
|
|
497
|
+
puts "Error when calling OrganizationalUnitsApi->get_organizational_unit_day_rating_with_http_info: #{e}"
|
|
498
|
+
end
|
|
499
|
+
```
|
|
500
|
+
|
|
501
|
+
### Parameters
|
|
502
|
+
|
|
503
|
+
| Name | Type | Description | Notes |
|
|
504
|
+
| ---- | ---- | ----------- | ----- |
|
|
505
|
+
| **korona_account_id** | **String** | account id of the KORONA.cloud account | |
|
|
506
|
+
| **organizational_unit_id** | **String** | id of the related object (important: id should match the uuid-format) | |
|
|
507
|
+
| **day_rating_id_or_date** | **String** | the id or date (YYYY-MM-DD) of the day rating | |
|
|
223
508
|
|
|
224
509
|
### Return type
|
|
225
510
|
|
|
@@ -237,14 +522,14 @@ Name | Type | Description | Notes
|
|
|
237
522
|
|
|
238
523
|
## get_organizational_unit_day_ratings
|
|
239
524
|
|
|
240
|
-
> ResultListDayRating get_organizational_unit_day_ratings(korona_account_id, organizational_unit_id, opts)
|
|
525
|
+
> <ResultListDayRating> get_organizational_unit_day_ratings(korona_account_id, organizational_unit_id, opts)
|
|
241
526
|
|
|
242
527
|
lists all organizational unit related day ratings
|
|
243
528
|
|
|
244
|
-
###
|
|
529
|
+
### Examples
|
|
245
530
|
|
|
246
531
|
```ruby
|
|
247
|
-
|
|
532
|
+
require 'time'
|
|
248
533
|
require 'korona-cloud-client'
|
|
249
534
|
# setup authorization
|
|
250
535
|
KoronaCloudClient.configure do |config|
|
|
@@ -263,24 +548,41 @@ opts = {
|
|
|
263
548
|
}
|
|
264
549
|
|
|
265
550
|
begin
|
|
266
|
-
#lists all organizational unit related day ratings
|
|
551
|
+
# lists all organizational unit related day ratings
|
|
267
552
|
result = api_instance.get_organizational_unit_day_ratings(korona_account_id, organizational_unit_id, opts)
|
|
268
553
|
p result
|
|
269
554
|
rescue KoronaCloudClient::ApiError => e
|
|
270
|
-
puts "
|
|
555
|
+
puts "Error when calling OrganizationalUnitsApi->get_organizational_unit_day_ratings: #{e}"
|
|
271
556
|
end
|
|
272
557
|
```
|
|
273
558
|
|
|
274
|
-
|
|
559
|
+
#### Using the get_organizational_unit_day_ratings_with_http_info variant
|
|
275
560
|
|
|
561
|
+
This returns an Array which contains the response data, status code and headers.
|
|
276
562
|
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
563
|
+
> <Array(<ResultListDayRating>, Integer, Hash)> get_organizational_unit_day_ratings_with_http_info(korona_account_id, organizational_unit_id, opts)
|
|
564
|
+
|
|
565
|
+
```ruby
|
|
566
|
+
begin
|
|
567
|
+
# lists all organizational unit related day ratings
|
|
568
|
+
data, status_code, headers = api_instance.get_organizational_unit_day_ratings_with_http_info(korona_account_id, organizational_unit_id, opts)
|
|
569
|
+
p status_code # => 2xx
|
|
570
|
+
p headers # => { ... }
|
|
571
|
+
p data # => <ResultListDayRating>
|
|
572
|
+
rescue KoronaCloudClient::ApiError => e
|
|
573
|
+
puts "Error when calling OrganizationalUnitsApi->get_organizational_unit_day_ratings_with_http_info: #{e}"
|
|
574
|
+
end
|
|
575
|
+
```
|
|
576
|
+
|
|
577
|
+
### Parameters
|
|
578
|
+
|
|
579
|
+
| Name | Type | Description | Notes |
|
|
580
|
+
| ---- | ---- | ----------- | ----- |
|
|
581
|
+
| **korona_account_id** | **String** | account id of the KORONA.cloud account | |
|
|
582
|
+
| **organizational_unit_id** | **String** | id of the related object (important: id should match the uuid-format) | |
|
|
583
|
+
| **page** | **Integer** | number of the page to fetch | [optional] |
|
|
584
|
+
| **size** | **Integer** | amount of objects to return per page | [optional] |
|
|
585
|
+
| **sort** | **String** | attribute to sort by (multiple separated by comma; max. 5) | [optional] |
|
|
284
586
|
|
|
285
587
|
### Return type
|
|
286
588
|
|
|
@@ -298,14 +600,14 @@ Name | Type | Description | Notes
|
|
|
298
600
|
|
|
299
601
|
## get_organizational_unit_inventory_lists
|
|
300
602
|
|
|
301
|
-
> ResultListInventoryList get_organizational_unit_inventory_lists(korona_account_id, organizational_unit_id, opts)
|
|
603
|
+
> <ResultListInventoryList> get_organizational_unit_inventory_lists(korona_account_id, organizational_unit_id, opts)
|
|
302
604
|
|
|
303
605
|
lists the inventory lists belonging to the organizational unit (KORONA.retail required)
|
|
304
606
|
|
|
305
|
-
###
|
|
607
|
+
### Examples
|
|
306
608
|
|
|
307
609
|
```ruby
|
|
308
|
-
|
|
610
|
+
require 'time'
|
|
309
611
|
require 'korona-cloud-client'
|
|
310
612
|
# setup authorization
|
|
311
613
|
KoronaCloudClient.configure do |config|
|
|
@@ -321,41 +623,58 @@ opts = {
|
|
|
321
623
|
page: 56, # Integer | number of the page to fetch
|
|
322
624
|
size: 56, # Integer | amount of objects to return per page
|
|
323
625
|
sort: 'sort_example', # String | attribute to sort by (multiple separated by comma; max. 5)
|
|
324
|
-
revision:
|
|
626
|
+
revision: 789, # Integer | last revision number, objects with a greater revision than this will be returned
|
|
325
627
|
include_deleted: true, # Boolean | indicates deleted objects should be loaded or not (default: false)
|
|
326
|
-
min_create_time:
|
|
327
|
-
max_create_time:
|
|
328
|
-
min_booking_time:
|
|
329
|
-
max_booking_time:
|
|
330
|
-
booking_status: '
|
|
628
|
+
min_create_time: Time.parse('2013-10-20T19:20:30+01:00'), # Time | min (inclusive) create time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
|
629
|
+
max_create_time: Time.parse('2013-10-20T19:20:30+01:00'), # Time | max (inclusive) create time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
|
630
|
+
min_booking_time: Time.parse('2013-10-20T19:20:30+01:00'), # Time | min (inclusive) booking time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
|
631
|
+
max_booking_time: Time.parse('2013-10-20T19:20:30+01:00'), # Time | max (inclusive) booking time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
|
632
|
+
booking_status: 'BOOKED' # String | booking status (possible values: BOOKED, IN_PROGRESS)
|
|
331
633
|
}
|
|
332
634
|
|
|
333
635
|
begin
|
|
334
|
-
#lists the inventory lists belonging to the organizational unit (KORONA.retail required)
|
|
636
|
+
# lists the inventory lists belonging to the organizational unit (KORONA.retail required)
|
|
335
637
|
result = api_instance.get_organizational_unit_inventory_lists(korona_account_id, organizational_unit_id, opts)
|
|
336
638
|
p result
|
|
337
639
|
rescue KoronaCloudClient::ApiError => e
|
|
338
|
-
puts "
|
|
640
|
+
puts "Error when calling OrganizationalUnitsApi->get_organizational_unit_inventory_lists: #{e}"
|
|
339
641
|
end
|
|
340
642
|
```
|
|
341
643
|
|
|
342
|
-
|
|
644
|
+
#### Using the get_organizational_unit_inventory_lists_with_http_info variant
|
|
645
|
+
|
|
646
|
+
This returns an Array which contains the response data, status code and headers.
|
|
343
647
|
|
|
648
|
+
> <Array(<ResultListInventoryList>, Integer, Hash)> get_organizational_unit_inventory_lists_with_http_info(korona_account_id, organizational_unit_id, opts)
|
|
344
649
|
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
650
|
+
```ruby
|
|
651
|
+
begin
|
|
652
|
+
# lists the inventory lists belonging to the organizational unit (KORONA.retail required)
|
|
653
|
+
data, status_code, headers = api_instance.get_organizational_unit_inventory_lists_with_http_info(korona_account_id, organizational_unit_id, opts)
|
|
654
|
+
p status_code # => 2xx
|
|
655
|
+
p headers # => { ... }
|
|
656
|
+
p data # => <ResultListInventoryList>
|
|
657
|
+
rescue KoronaCloudClient::ApiError => e
|
|
658
|
+
puts "Error when calling OrganizationalUnitsApi->get_organizational_unit_inventory_lists_with_http_info: #{e}"
|
|
659
|
+
end
|
|
660
|
+
```
|
|
661
|
+
|
|
662
|
+
### Parameters
|
|
663
|
+
|
|
664
|
+
| Name | Type | Description | Notes |
|
|
665
|
+
| ---- | ---- | ----------- | ----- |
|
|
666
|
+
| **korona_account_id** | **String** | account id of the KORONA.cloud account | |
|
|
667
|
+
| **organizational_unit_id** | **String** | id of the related object (important: id should match the uuid-format) | |
|
|
668
|
+
| **page** | **Integer** | number of the page to fetch | [optional] |
|
|
669
|
+
| **size** | **Integer** | amount of objects to return per page | [optional] |
|
|
670
|
+
| **sort** | **String** | attribute to sort by (multiple separated by comma; max. 5) | [optional] |
|
|
671
|
+
| **revision** | **Integer** | last revision number, objects with a greater revision than this will be returned | [optional] |
|
|
672
|
+
| **include_deleted** | **Boolean** | indicates deleted objects should be loaded or not (default: false) | [optional] |
|
|
673
|
+
| **min_create_time** | **Time** | min (inclusive) create time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional) | [optional] |
|
|
674
|
+
| **max_create_time** | **Time** | max (inclusive) create time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional) | [optional] |
|
|
675
|
+
| **min_booking_time** | **Time** | min (inclusive) booking time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional) | [optional] |
|
|
676
|
+
| **max_booking_time** | **Time** | max (inclusive) booking time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional) | [optional] |
|
|
677
|
+
| **booking_status** | **String** | booking status (possible values: BOOKED, IN_PROGRESS) | [optional] |
|
|
359
678
|
|
|
360
679
|
### Return type
|
|
361
680
|
|
|
@@ -373,14 +692,14 @@ Name | Type | Description | Notes
|
|
|
373
692
|
|
|
374
693
|
## get_organizational_unit_product_stocks
|
|
375
694
|
|
|
376
|
-
> ResultListProductStock get_organizational_unit_product_stocks(korona_account_id, organizational_unit_id, opts)
|
|
695
|
+
> <ResultListProductStock> get_organizational_unit_product_stocks(korona_account_id, organizational_unit_id, opts)
|
|
377
696
|
|
|
378
697
|
lists the product stocks of the organizational unit, in case it contains a warehouse (KORONA.retail required)
|
|
379
698
|
|
|
380
|
-
###
|
|
699
|
+
### Examples
|
|
381
700
|
|
|
382
701
|
```ruby
|
|
383
|
-
|
|
702
|
+
require 'time'
|
|
384
703
|
require 'korona-cloud-client'
|
|
385
704
|
# setup authorization
|
|
386
705
|
KoronaCloudClient.configure do |config|
|
|
@@ -396,29 +715,46 @@ opts = {
|
|
|
396
715
|
page: 56, # Integer | number of the page to fetch
|
|
397
716
|
size: 56, # Integer | amount of objects to return per page
|
|
398
717
|
sort: 'sort_example', # String | attribute to sort by (multiple separated by comma; max. 5)
|
|
399
|
-
revision:
|
|
718
|
+
revision: 789 # Integer | last revision number, objects with a greater revision than this will be returned
|
|
400
719
|
}
|
|
401
720
|
|
|
402
721
|
begin
|
|
403
|
-
#lists the product stocks of the organizational unit, in case it contains a warehouse (KORONA.retail required)
|
|
722
|
+
# lists the product stocks of the organizational unit, in case it contains a warehouse (KORONA.retail required)
|
|
404
723
|
result = api_instance.get_organizational_unit_product_stocks(korona_account_id, organizational_unit_id, opts)
|
|
405
724
|
p result
|
|
406
725
|
rescue KoronaCloudClient::ApiError => e
|
|
407
|
-
puts "
|
|
726
|
+
puts "Error when calling OrganizationalUnitsApi->get_organizational_unit_product_stocks: #{e}"
|
|
408
727
|
end
|
|
409
728
|
```
|
|
410
729
|
|
|
411
|
-
|
|
730
|
+
#### Using the get_organizational_unit_product_stocks_with_http_info variant
|
|
731
|
+
|
|
732
|
+
This returns an Array which contains the response data, status code and headers.
|
|
733
|
+
|
|
734
|
+
> <Array(<ResultListProductStock>, Integer, Hash)> get_organizational_unit_product_stocks_with_http_info(korona_account_id, organizational_unit_id, opts)
|
|
412
735
|
|
|
736
|
+
```ruby
|
|
737
|
+
begin
|
|
738
|
+
# lists the product stocks of the organizational unit, in case it contains a warehouse (KORONA.retail required)
|
|
739
|
+
data, status_code, headers = api_instance.get_organizational_unit_product_stocks_with_http_info(korona_account_id, organizational_unit_id, opts)
|
|
740
|
+
p status_code # => 2xx
|
|
741
|
+
p headers # => { ... }
|
|
742
|
+
p data # => <ResultListProductStock>
|
|
743
|
+
rescue KoronaCloudClient::ApiError => e
|
|
744
|
+
puts "Error when calling OrganizationalUnitsApi->get_organizational_unit_product_stocks_with_http_info: #{e}"
|
|
745
|
+
end
|
|
746
|
+
```
|
|
413
747
|
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
**
|
|
419
|
-
**
|
|
420
|
-
**
|
|
421
|
-
**
|
|
748
|
+
### Parameters
|
|
749
|
+
|
|
750
|
+
| Name | Type | Description | Notes |
|
|
751
|
+
| ---- | ---- | ----------- | ----- |
|
|
752
|
+
| **korona_account_id** | **String** | account id of the KORONA.cloud account | |
|
|
753
|
+
| **organizational_unit_id** | **String** | id of the related object (important: id should match the uuid-format) | |
|
|
754
|
+
| **page** | **Integer** | number of the page to fetch | [optional] |
|
|
755
|
+
| **size** | **Integer** | amount of objects to return per page | [optional] |
|
|
756
|
+
| **sort** | **String** | attribute to sort by (multiple separated by comma; max. 5) | [optional] |
|
|
757
|
+
| **revision** | **Integer** | last revision number, objects with a greater revision than this will be returned | [optional] |
|
|
422
758
|
|
|
423
759
|
### Return type
|
|
424
760
|
|
|
@@ -436,14 +772,14 @@ Name | Type | Description | Notes
|
|
|
436
772
|
|
|
437
773
|
## get_organizational_unit_stock_receipts
|
|
438
774
|
|
|
439
|
-
> ResultListStockReceipt get_organizational_unit_stock_receipts(korona_account_id, organizational_unit_id, opts)
|
|
775
|
+
> <ResultListStockReceipt> get_organizational_unit_stock_receipts(korona_account_id, organizational_unit_id, opts)
|
|
440
776
|
|
|
441
777
|
lists the stock receipts belonging to the organizational unit (KORONA.retail required)
|
|
442
778
|
|
|
443
|
-
###
|
|
779
|
+
### Examples
|
|
444
780
|
|
|
445
781
|
```ruby
|
|
446
|
-
|
|
782
|
+
require 'time'
|
|
447
783
|
require 'korona-cloud-client'
|
|
448
784
|
# setup authorization
|
|
449
785
|
KoronaCloudClient.configure do |config|
|
|
@@ -459,45 +795,62 @@ opts = {
|
|
|
459
795
|
page: 56, # Integer | number of the page to fetch
|
|
460
796
|
size: 56, # Integer | amount of objects to return per page
|
|
461
797
|
sort: 'sort_example', # String | attribute to sort by (multiple separated by comma; max. 5)
|
|
462
|
-
revision:
|
|
798
|
+
revision: 789, # Integer | last revision number, objects with a greater revision than this will be returned
|
|
463
799
|
include_deleted: true, # Boolean | indicates deleted objects should be loaded or not (default: false)
|
|
464
|
-
min_create_time:
|
|
465
|
-
max_create_time:
|
|
466
|
-
min_booking_time:
|
|
467
|
-
max_booking_time:
|
|
800
|
+
min_create_time: Time.parse('2013-10-20T19:20:30+01:00'), # Time | min (inclusive) create time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
|
801
|
+
max_create_time: Time.parse('2013-10-20T19:20:30+01:00'), # Time | max (inclusive) create time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
|
802
|
+
min_booking_time: Time.parse('2013-10-20T19:20:30+01:00'), # Time | min (inclusive) booking time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
|
803
|
+
max_booking_time: Time.parse('2013-10-20T19:20:30+01:00'), # Time | max (inclusive) booking time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
|
468
804
|
source_organizational_unit: 'source_organizational_unit_example', # String | source organizational unit
|
|
469
|
-
booking_status: '
|
|
805
|
+
booking_status: 'BOOKED', # String | booking status (possible values: BOOKED, IN_PROGRESS)
|
|
470
806
|
number: 'number_example' # String | number of the related object
|
|
471
807
|
}
|
|
472
808
|
|
|
473
809
|
begin
|
|
474
|
-
#lists the stock receipts belonging to the organizational unit (KORONA.retail required)
|
|
810
|
+
# lists the stock receipts belonging to the organizational unit (KORONA.retail required)
|
|
475
811
|
result = api_instance.get_organizational_unit_stock_receipts(korona_account_id, organizational_unit_id, opts)
|
|
476
812
|
p result
|
|
477
813
|
rescue KoronaCloudClient::ApiError => e
|
|
478
|
-
puts "
|
|
814
|
+
puts "Error when calling OrganizationalUnitsApi->get_organizational_unit_stock_receipts: #{e}"
|
|
479
815
|
end
|
|
480
816
|
```
|
|
481
817
|
|
|
482
|
-
|
|
818
|
+
#### Using the get_organizational_unit_stock_receipts_with_http_info variant
|
|
819
|
+
|
|
820
|
+
This returns an Array which contains the response data, status code and headers.
|
|
821
|
+
|
|
822
|
+
> <Array(<ResultListStockReceipt>, Integer, Hash)> get_organizational_unit_stock_receipts_with_http_info(korona_account_id, organizational_unit_id, opts)
|
|
823
|
+
|
|
824
|
+
```ruby
|
|
825
|
+
begin
|
|
826
|
+
# lists the stock receipts belonging to the organizational unit (KORONA.retail required)
|
|
827
|
+
data, status_code, headers = api_instance.get_organizational_unit_stock_receipts_with_http_info(korona_account_id, organizational_unit_id, opts)
|
|
828
|
+
p status_code # => 2xx
|
|
829
|
+
p headers # => { ... }
|
|
830
|
+
p data # => <ResultListStockReceipt>
|
|
831
|
+
rescue KoronaCloudClient::ApiError => e
|
|
832
|
+
puts "Error when calling OrganizationalUnitsApi->get_organizational_unit_stock_receipts_with_http_info: #{e}"
|
|
833
|
+
end
|
|
834
|
+
```
|
|
483
835
|
|
|
836
|
+
### Parameters
|
|
484
837
|
|
|
485
|
-
Name | Type | Description
|
|
486
|
-
|
|
487
|
-
**korona_account_id** | **String
|
|
488
|
-
**organizational_unit_id** | **String
|
|
489
|
-
**page** | **Integer
|
|
490
|
-
**size** | **Integer
|
|
491
|
-
**sort** | **String
|
|
492
|
-
**revision** | **Integer
|
|
493
|
-
**include_deleted** | **Boolean
|
|
494
|
-
**min_create_time** | **
|
|
495
|
-
**max_create_time** | **
|
|
496
|
-
**min_booking_time** | **
|
|
497
|
-
**max_booking_time** | **
|
|
498
|
-
**source_organizational_unit** | **String
|
|
499
|
-
**booking_status** | **String
|
|
500
|
-
**number** | **String
|
|
838
|
+
| Name | Type | Description | Notes |
|
|
839
|
+
| ---- | ---- | ----------- | ----- |
|
|
840
|
+
| **korona_account_id** | **String** | account id of the KORONA.cloud account | |
|
|
841
|
+
| **organizational_unit_id** | **String** | id of the related object (important: id should match the uuid-format) | |
|
|
842
|
+
| **page** | **Integer** | number of the page to fetch | [optional] |
|
|
843
|
+
| **size** | **Integer** | amount of objects to return per page | [optional] |
|
|
844
|
+
| **sort** | **String** | attribute to sort by (multiple separated by comma; max. 5) | [optional] |
|
|
845
|
+
| **revision** | **Integer** | last revision number, objects with a greater revision than this will be returned | [optional] |
|
|
846
|
+
| **include_deleted** | **Boolean** | indicates deleted objects should be loaded or not (default: false) | [optional] |
|
|
847
|
+
| **min_create_time** | **Time** | min (inclusive) create time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional) | [optional] |
|
|
848
|
+
| **max_create_time** | **Time** | max (inclusive) create time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional) | [optional] |
|
|
849
|
+
| **min_booking_time** | **Time** | min (inclusive) booking time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional) | [optional] |
|
|
850
|
+
| **max_booking_time** | **Time** | max (inclusive) booking time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional) | [optional] |
|
|
851
|
+
| **source_organizational_unit** | **String** | source organizational unit | [optional] |
|
|
852
|
+
| **booking_status** | **String** | booking status (possible values: BOOKED, IN_PROGRESS) | [optional] |
|
|
853
|
+
| **number** | **String** | number of the related object | [optional] |
|
|
501
854
|
|
|
502
855
|
### Return type
|
|
503
856
|
|
|
@@ -515,14 +868,14 @@ Name | Type | Description | Notes
|
|
|
515
868
|
|
|
516
869
|
## get_organizational_units
|
|
517
870
|
|
|
518
|
-
> ResultListOrganizationalUnit get_organizational_units(korona_account_id, opts)
|
|
871
|
+
> <ResultListOrganizationalUnit> get_organizational_units(korona_account_id, opts)
|
|
519
872
|
|
|
520
873
|
lists all organizational units
|
|
521
874
|
|
|
522
|
-
###
|
|
875
|
+
### Examples
|
|
523
876
|
|
|
524
877
|
```ruby
|
|
525
|
-
|
|
878
|
+
require 'time'
|
|
526
879
|
require 'korona-cloud-client'
|
|
527
880
|
# setup authorization
|
|
528
881
|
KoronaCloudClient.configure do |config|
|
|
@@ -537,32 +890,49 @@ opts = {
|
|
|
537
890
|
page: 56, # Integer | number of the page to fetch
|
|
538
891
|
size: 56, # Integer | amount of objects to return per page
|
|
539
892
|
sort: 'sort_example', # String | attribute to sort by (multiple separated by comma; max. 5)
|
|
540
|
-
revision:
|
|
893
|
+
revision: 789, # Integer | last revision number, objects with a greater revision than this will be returned
|
|
541
894
|
include_deleted: true, # Boolean | indicates deleted objects should be loaded or not (default: false)
|
|
542
895
|
number: 'number_example' # String | number of the related object
|
|
543
896
|
}
|
|
544
897
|
|
|
545
898
|
begin
|
|
546
|
-
#lists all organizational units
|
|
899
|
+
# lists all organizational units
|
|
547
900
|
result = api_instance.get_organizational_units(korona_account_id, opts)
|
|
548
901
|
p result
|
|
549
902
|
rescue KoronaCloudClient::ApiError => e
|
|
550
|
-
puts "
|
|
903
|
+
puts "Error when calling OrganizationalUnitsApi->get_organizational_units: #{e}"
|
|
551
904
|
end
|
|
552
905
|
```
|
|
553
906
|
|
|
554
|
-
|
|
907
|
+
#### Using the get_organizational_units_with_http_info variant
|
|
908
|
+
|
|
909
|
+
This returns an Array which contains the response data, status code and headers.
|
|
910
|
+
|
|
911
|
+
> <Array(<ResultListOrganizationalUnit>, Integer, Hash)> get_organizational_units_with_http_info(korona_account_id, opts)
|
|
912
|
+
|
|
913
|
+
```ruby
|
|
914
|
+
begin
|
|
915
|
+
# lists all organizational units
|
|
916
|
+
data, status_code, headers = api_instance.get_organizational_units_with_http_info(korona_account_id, opts)
|
|
917
|
+
p status_code # => 2xx
|
|
918
|
+
p headers # => { ... }
|
|
919
|
+
p data # => <ResultListOrganizationalUnit>
|
|
920
|
+
rescue KoronaCloudClient::ApiError => e
|
|
921
|
+
puts "Error when calling OrganizationalUnitsApi->get_organizational_units_with_http_info: #{e}"
|
|
922
|
+
end
|
|
923
|
+
```
|
|
555
924
|
|
|
925
|
+
### Parameters
|
|
556
926
|
|
|
557
|
-
Name | Type | Description
|
|
558
|
-
|
|
559
|
-
**korona_account_id** | **String
|
|
560
|
-
**page** | **Integer
|
|
561
|
-
**size** | **Integer
|
|
562
|
-
**sort** | **String
|
|
563
|
-
**revision** | **Integer
|
|
564
|
-
**include_deleted** | **Boolean
|
|
565
|
-
**number** | **String
|
|
927
|
+
| Name | Type | Description | Notes |
|
|
928
|
+
| ---- | ---- | ----------- | ----- |
|
|
929
|
+
| **korona_account_id** | **String** | account id of the KORONA.cloud account | |
|
|
930
|
+
| **page** | **Integer** | number of the page to fetch | [optional] |
|
|
931
|
+
| **size** | **Integer** | amount of objects to return per page | [optional] |
|
|
932
|
+
| **sort** | **String** | attribute to sort by (multiple separated by comma; max. 5) | [optional] |
|
|
933
|
+
| **revision** | **Integer** | last revision number, objects with a greater revision than this will be returned | [optional] |
|
|
934
|
+
| **include_deleted** | **Boolean** | indicates deleted objects should be loaded or not (default: false) | [optional] |
|
|
935
|
+
| **number** | **String** | number of the related object | [optional] |
|
|
566
936
|
|
|
567
937
|
### Return type
|
|
568
938
|
|
|
@@ -578,16 +948,87 @@ Name | Type | Description | Notes
|
|
|
578
948
|
- **Accept**: application/json
|
|
579
949
|
|
|
580
950
|
|
|
951
|
+
## update_organizational_unit
|
|
952
|
+
|
|
953
|
+
> update_organizational_unit(korona_account_id, organizational_unit_id, body)
|
|
954
|
+
|
|
955
|
+
updates the organizational unit
|
|
956
|
+
|
|
957
|
+
### Examples
|
|
958
|
+
|
|
959
|
+
```ruby
|
|
960
|
+
require 'time'
|
|
961
|
+
require 'korona-cloud-client'
|
|
962
|
+
# setup authorization
|
|
963
|
+
KoronaCloudClient.configure do |config|
|
|
964
|
+
# Configure HTTP basic authorization: basicAuth
|
|
965
|
+
config.username = 'YOUR USERNAME'
|
|
966
|
+
config.password = 'YOUR PASSWORD'
|
|
967
|
+
end
|
|
968
|
+
|
|
969
|
+
api_instance = KoronaCloudClient::OrganizationalUnitsApi.new
|
|
970
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
|
971
|
+
organizational_unit_id = 'organizational_unit_id_example' # String | id of the related object (important: id should match the uuid-format)
|
|
972
|
+
body = KoronaCloudClient::OrganizationalUnit.new({name: 'name_example'}) # OrganizationalUnit | the properties to update of the organizational unit
|
|
973
|
+
|
|
974
|
+
begin
|
|
975
|
+
# updates the organizational unit
|
|
976
|
+
api_instance.update_organizational_unit(korona_account_id, organizational_unit_id, body)
|
|
977
|
+
rescue KoronaCloudClient::ApiError => e
|
|
978
|
+
puts "Error when calling OrganizationalUnitsApi->update_organizational_unit: #{e}"
|
|
979
|
+
end
|
|
980
|
+
```
|
|
981
|
+
|
|
982
|
+
#### Using the update_organizational_unit_with_http_info variant
|
|
983
|
+
|
|
984
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
985
|
+
|
|
986
|
+
> <Array(nil, Integer, Hash)> update_organizational_unit_with_http_info(korona_account_id, organizational_unit_id, body)
|
|
987
|
+
|
|
988
|
+
```ruby
|
|
989
|
+
begin
|
|
990
|
+
# updates the organizational unit
|
|
991
|
+
data, status_code, headers = api_instance.update_organizational_unit_with_http_info(korona_account_id, organizational_unit_id, body)
|
|
992
|
+
p status_code # => 2xx
|
|
993
|
+
p headers # => { ... }
|
|
994
|
+
p data # => nil
|
|
995
|
+
rescue KoronaCloudClient::ApiError => e
|
|
996
|
+
puts "Error when calling OrganizationalUnitsApi->update_organizational_unit_with_http_info: #{e}"
|
|
997
|
+
end
|
|
998
|
+
```
|
|
999
|
+
|
|
1000
|
+
### Parameters
|
|
1001
|
+
|
|
1002
|
+
| Name | Type | Description | Notes |
|
|
1003
|
+
| ---- | ---- | ----------- | ----- |
|
|
1004
|
+
| **korona_account_id** | **String** | account id of the KORONA.cloud account | |
|
|
1005
|
+
| **organizational_unit_id** | **String** | id of the related object (important: id should match the uuid-format) | |
|
|
1006
|
+
| **body** | [**OrganizationalUnit**](OrganizationalUnit.md) | the properties to update of the organizational unit | |
|
|
1007
|
+
|
|
1008
|
+
### Return type
|
|
1009
|
+
|
|
1010
|
+
nil (empty response body)
|
|
1011
|
+
|
|
1012
|
+
### Authorization
|
|
1013
|
+
|
|
1014
|
+
[basicAuth](../README.md#basicAuth)
|
|
1015
|
+
|
|
1016
|
+
### HTTP request headers
|
|
1017
|
+
|
|
1018
|
+
- **Content-Type**: application/json
|
|
1019
|
+
- **Accept**: application/json
|
|
1020
|
+
|
|
1021
|
+
|
|
581
1022
|
## update_organizational_unit_day_rating
|
|
582
1023
|
|
|
583
1024
|
> update_organizational_unit_day_rating(korona_account_id, organizational_unit_id, day_rating_id_or_date, body)
|
|
584
1025
|
|
|
585
1026
|
updates the day rating by its id or date
|
|
586
1027
|
|
|
587
|
-
###
|
|
1028
|
+
### Examples
|
|
588
1029
|
|
|
589
1030
|
```ruby
|
|
590
|
-
|
|
1031
|
+
require 'time'
|
|
591
1032
|
require 'korona-cloud-client'
|
|
592
1033
|
# setup authorization
|
|
593
1034
|
KoronaCloudClient.configure do |config|
|
|
@@ -603,22 +1044,39 @@ day_rating_id_or_date = 'day_rating_id_or_date_example' # String | the id or dat
|
|
|
603
1044
|
body = KoronaCloudClient::DayRating.new # DayRating | the properties to update of the day rating
|
|
604
1045
|
|
|
605
1046
|
begin
|
|
606
|
-
#updates the day rating by its id or date
|
|
1047
|
+
# updates the day rating by its id or date
|
|
607
1048
|
api_instance.update_organizational_unit_day_rating(korona_account_id, organizational_unit_id, day_rating_id_or_date, body)
|
|
608
1049
|
rescue KoronaCloudClient::ApiError => e
|
|
609
|
-
puts "
|
|
1050
|
+
puts "Error when calling OrganizationalUnitsApi->update_organizational_unit_day_rating: #{e}"
|
|
610
1051
|
end
|
|
611
1052
|
```
|
|
612
1053
|
|
|
613
|
-
|
|
1054
|
+
#### Using the update_organizational_unit_day_rating_with_http_info variant
|
|
1055
|
+
|
|
1056
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
614
1057
|
|
|
1058
|
+
> <Array(nil, Integer, Hash)> update_organizational_unit_day_rating_with_http_info(korona_account_id, organizational_unit_id, day_rating_id_or_date, body)
|
|
615
1059
|
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
1060
|
+
```ruby
|
|
1061
|
+
begin
|
|
1062
|
+
# updates the day rating by its id or date
|
|
1063
|
+
data, status_code, headers = api_instance.update_organizational_unit_day_rating_with_http_info(korona_account_id, organizational_unit_id, day_rating_id_or_date, body)
|
|
1064
|
+
p status_code # => 2xx
|
|
1065
|
+
p headers # => { ... }
|
|
1066
|
+
p data # => nil
|
|
1067
|
+
rescue KoronaCloudClient::ApiError => e
|
|
1068
|
+
puts "Error when calling OrganizationalUnitsApi->update_organizational_unit_day_rating_with_http_info: #{e}"
|
|
1069
|
+
end
|
|
1070
|
+
```
|
|
1071
|
+
|
|
1072
|
+
### Parameters
|
|
1073
|
+
|
|
1074
|
+
| Name | Type | Description | Notes |
|
|
1075
|
+
| ---- | ---- | ----------- | ----- |
|
|
1076
|
+
| **korona_account_id** | **String** | account id of the KORONA.cloud account | |
|
|
1077
|
+
| **organizational_unit_id** | **String** | id of the related object (important: id should match the uuid-format) | |
|
|
1078
|
+
| **day_rating_id_or_date** | **String** | the id or date (YYYY-MM-DD) of the day rating | |
|
|
1079
|
+
| **body** | [**DayRating**](DayRating.md) | the properties to update of the day rating | |
|
|
622
1080
|
|
|
623
1081
|
### Return type
|
|
624
1082
|
|
|
@@ -636,14 +1094,14 @@ nil (empty response body)
|
|
|
636
1094
|
|
|
637
1095
|
## update_organizational_unit_day_ratings
|
|
638
1096
|
|
|
639
|
-
> Array
|
|
1097
|
+
> <Array<AddOrUpdateResult>> update_organizational_unit_day_ratings(korona_account_id, organizational_unit_id, body)
|
|
640
1098
|
|
|
641
1099
|
updates a batch of day ratings
|
|
642
1100
|
|
|
643
|
-
###
|
|
1101
|
+
### Examples
|
|
644
1102
|
|
|
645
1103
|
```ruby
|
|
646
|
-
|
|
1104
|
+
require 'time'
|
|
647
1105
|
require 'korona-cloud-client'
|
|
648
1106
|
# setup authorization
|
|
649
1107
|
KoronaCloudClient.configure do |config|
|
|
@@ -658,22 +1116,111 @@ organizational_unit_id = 'organizational_unit_id_example' # String | id of the r
|
|
|
658
1116
|
body = [KoronaCloudClient::DayRating.new] # Array<DayRating> | an array of new day ratings
|
|
659
1117
|
|
|
660
1118
|
begin
|
|
661
|
-
#updates a batch of day ratings
|
|
1119
|
+
# updates a batch of day ratings
|
|
662
1120
|
result = api_instance.update_organizational_unit_day_ratings(korona_account_id, organizational_unit_id, body)
|
|
663
1121
|
p result
|
|
664
1122
|
rescue KoronaCloudClient::ApiError => e
|
|
665
|
-
puts "
|
|
1123
|
+
puts "Error when calling OrganizationalUnitsApi->update_organizational_unit_day_ratings: #{e}"
|
|
1124
|
+
end
|
|
1125
|
+
```
|
|
1126
|
+
|
|
1127
|
+
#### Using the update_organizational_unit_day_ratings_with_http_info variant
|
|
1128
|
+
|
|
1129
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1130
|
+
|
|
1131
|
+
> <Array(<Array<AddOrUpdateResult>>, Integer, Hash)> update_organizational_unit_day_ratings_with_http_info(korona_account_id, organizational_unit_id, body)
|
|
1132
|
+
|
|
1133
|
+
```ruby
|
|
1134
|
+
begin
|
|
1135
|
+
# updates a batch of day ratings
|
|
1136
|
+
data, status_code, headers = api_instance.update_organizational_unit_day_ratings_with_http_info(korona_account_id, organizational_unit_id, body)
|
|
1137
|
+
p status_code # => 2xx
|
|
1138
|
+
p headers # => { ... }
|
|
1139
|
+
p data # => <Array<AddOrUpdateResult>>
|
|
1140
|
+
rescue KoronaCloudClient::ApiError => e
|
|
1141
|
+
puts "Error when calling OrganizationalUnitsApi->update_organizational_unit_day_ratings_with_http_info: #{e}"
|
|
666
1142
|
end
|
|
667
1143
|
```
|
|
668
1144
|
|
|
669
1145
|
### Parameters
|
|
670
1146
|
|
|
1147
|
+
| Name | Type | Description | Notes |
|
|
1148
|
+
| ---- | ---- | ----------- | ----- |
|
|
1149
|
+
| **korona_account_id** | **String** | account id of the KORONA.cloud account | |
|
|
1150
|
+
| **organizational_unit_id** | **String** | id of the related object (important: id should match the uuid-format) | |
|
|
1151
|
+
| **body** | [**Array<DayRating>**](DayRating.md) | an array of new day ratings | |
|
|
1152
|
+
|
|
1153
|
+
### Return type
|
|
1154
|
+
|
|
1155
|
+
[**Array<AddOrUpdateResult>**](AddOrUpdateResult.md)
|
|
1156
|
+
|
|
1157
|
+
### Authorization
|
|
1158
|
+
|
|
1159
|
+
[basicAuth](../README.md#basicAuth)
|
|
1160
|
+
|
|
1161
|
+
### HTTP request headers
|
|
1162
|
+
|
|
1163
|
+
- **Content-Type**: application/json
|
|
1164
|
+
- **Accept**: application/json
|
|
1165
|
+
|
|
1166
|
+
|
|
1167
|
+
## update_organizational_units
|
|
1168
|
+
|
|
1169
|
+
> <Array<AddOrUpdateResult>> update_organizational_units(korona_account_id, body)
|
|
1170
|
+
|
|
1171
|
+
updates a batch of organizational units
|
|
1172
|
+
|
|
1173
|
+
[number] must be set in the objects, otherwise the object cannot be updated
|
|
1174
|
+
|
|
1175
|
+
### Examples
|
|
1176
|
+
|
|
1177
|
+
```ruby
|
|
1178
|
+
require 'time'
|
|
1179
|
+
require 'korona-cloud-client'
|
|
1180
|
+
# setup authorization
|
|
1181
|
+
KoronaCloudClient.configure do |config|
|
|
1182
|
+
# Configure HTTP basic authorization: basicAuth
|
|
1183
|
+
config.username = 'YOUR USERNAME'
|
|
1184
|
+
config.password = 'YOUR PASSWORD'
|
|
1185
|
+
end
|
|
1186
|
+
|
|
1187
|
+
api_instance = KoronaCloudClient::OrganizationalUnitsApi.new
|
|
1188
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
|
1189
|
+
body = [KoronaCloudClient::OrganizationalUnit.new({name: 'name_example'})] # Array<OrganizationalUnit> | an array of existing organizational units
|
|
1190
|
+
|
|
1191
|
+
begin
|
|
1192
|
+
# updates a batch of organizational units
|
|
1193
|
+
result = api_instance.update_organizational_units(korona_account_id, body)
|
|
1194
|
+
p result
|
|
1195
|
+
rescue KoronaCloudClient::ApiError => e
|
|
1196
|
+
puts "Error when calling OrganizationalUnitsApi->update_organizational_units: #{e}"
|
|
1197
|
+
end
|
|
1198
|
+
```
|
|
1199
|
+
|
|
1200
|
+
#### Using the update_organizational_units_with_http_info variant
|
|
1201
|
+
|
|
1202
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1203
|
+
|
|
1204
|
+
> <Array(<Array<AddOrUpdateResult>>, Integer, Hash)> update_organizational_units_with_http_info(korona_account_id, body)
|
|
1205
|
+
|
|
1206
|
+
```ruby
|
|
1207
|
+
begin
|
|
1208
|
+
# updates a batch of organizational units
|
|
1209
|
+
data, status_code, headers = api_instance.update_organizational_units_with_http_info(korona_account_id, body)
|
|
1210
|
+
p status_code # => 2xx
|
|
1211
|
+
p headers # => { ... }
|
|
1212
|
+
p data # => <Array<AddOrUpdateResult>>
|
|
1213
|
+
rescue KoronaCloudClient::ApiError => e
|
|
1214
|
+
puts "Error when calling OrganizationalUnitsApi->update_organizational_units_with_http_info: #{e}"
|
|
1215
|
+
end
|
|
1216
|
+
```
|
|
1217
|
+
|
|
1218
|
+
### Parameters
|
|
671
1219
|
|
|
672
|
-
Name | Type | Description
|
|
673
|
-
|
|
674
|
-
**korona_account_id** | **String
|
|
675
|
-
**
|
|
676
|
-
**body** | [**Array<DayRating>**](DayRating.md)| an array of new day ratings |
|
|
1220
|
+
| Name | Type | Description | Notes |
|
|
1221
|
+
| ---- | ---- | ----------- | ----- |
|
|
1222
|
+
| **korona_account_id** | **String** | account id of the KORONA.cloud account | |
|
|
1223
|
+
| **body** | [**Array<OrganizationalUnit>**](OrganizationalUnit.md) | an array of existing organizational units | |
|
|
677
1224
|
|
|
678
1225
|
### Return type
|
|
679
1226
|
|