korona-cloud-client 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +156 -17
- data/docs/Account.md +7 -3
- data/docs/AdditionalReceiptInfoType.md +2 -4
- data/docs/AdditionalReceiptInfoTypesApi.md +363 -0
- data/docs/Assortment.md +2 -2
- data/docs/Attendance.md +2 -2
- data/docs/Cashier.md +2 -2
- data/docs/CashierRole.md +2 -2
- data/docs/CashierVerificationRequirement.md +2 -2
- data/docs/{CashierVerificationRequirementApi.md → CashierVerificationRequirementsApi.md} +51 -51
- data/docs/CommodityGroup.md +2 -2
- 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/Currency.md +2 -2
- data/docs/Customer.md +5 -3
- data/docs/CustomerDisplayConfiguration.md +2 -2
- data/docs/CustomerGroup.md +2 -2
- data/docs/CustomerOrder.md +2 -2
- data/docs/DeliveryNote.md +2 -2
- data/docs/DeliveryNotesApi.md +73 -0
- data/docs/DeviceConfiguration.md +3 -1
- data/docs/DeviceConfigurationVariable.md +2 -2
- 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 +8 -6
- data/docs/DispatchNotificationItem.md +5 -1
- data/docs/DispatchNotificationItemImport.md +30 -0
- data/docs/DispatchNotificationsApi.md +597 -8
- data/docs/EconomicZone.md +2 -2
- data/docs/EndOfDayStatement.md +2 -2
- data/docs/EntryGate.md +2 -2
- data/docs/Event.md +2 -2
- data/docs/ExternalSystemCall.md +2 -2
- data/docs/FiscalUnit.md +2 -2
- data/docs/InfoText.md +2 -2
- data/docs/Inventory.md +2 -2
- data/docs/InventoryList.md +2 -2
- data/docs/ItemSequence.md +26 -0
- data/docs/ItemSequencesApi.md +524 -0
- data/docs/KoronaAccount.md +5 -3
- data/docs/LanguageResource.md +28 -0
- data/docs/LanguagesApi.md +524 -0
- data/docs/Message.md +22 -0
- data/docs/MessagesApi.md +78 -0
- data/docs/ModelReference.md +1 -1
- data/docs/NumberRange.md +26 -0
- data/docs/NumberRangeConfiguration.md +28 -0
- data/docs/NumberRangeConfigurationsApi.md +305 -0
- data/docs/OrganizationalUnit.md +5 -3
- data/docs/PaymentMethod.md +9 -3
- data/docs/PaymentMethodCategoriesApi.md +524 -0
- data/docs/PaymentMethodCategory.md +26 -0
- data/docs/PointsOfSaleApi.md +11 -3
- data/docs/Pos.md +5 -3
- data/docs/PosBalance.md +2 -2
- data/docs/PosButtonFunction.md +3 -1
- data/docs/PosButtonLayout.md +2 -2
- data/docs/PosPageLayoutConfiguration.md +5 -3
- data/docs/PosProfile.md +15 -3
- data/docs/PriceGroup.md +2 -2
- data/docs/PriceRule.md +2 -2
- data/docs/Product.md +4 -2
- data/docs/ProductTransferInvolvedPartyInformationData.md +0 -2
- data/docs/ProductionType.md +2 -2
- data/docs/ProductionTypeSetting.md +18 -0
- data/docs/ProductsApi.md +75 -1
- data/docs/Promotion.md +2 -2
- data/docs/PromotionBenefitExtendedDiscountPositionSelectionFilter.md +13 -11
- data/docs/PromotionsApi.md +4 -4
- data/docs/Receipt.md +7 -3
- data/docs/ReceiptItem.md +5 -1
- data/docs/ReceiptItemReturnReason.md +18 -0
- data/docs/ReceiptLayoutConfiguration.md +2 -2
- data/docs/ReceiptsApi.md +78 -3
- data/docs/ReportFile.md +32 -0
- data/docs/ReportFilesApi.md +520 -0
- data/docs/ResultListContraAccount.md +28 -0
- data/docs/ResultListCostCenter.md +28 -0
- data/docs/ResultListDiscountConfiguration.md +28 -0
- data/docs/ResultListDiscountLevel.md +28 -0
- data/docs/ResultListItemSequence.md +28 -0
- data/docs/ResultListLanguageResource.md +28 -0
- data/docs/ResultListNumberRangeConfiguration.md +28 -0
- data/docs/ResultListPaymentMethodCategory.md +28 -0
- data/docs/ResultListReportFile.md +28 -0
- data/docs/ResultListRevenueAccount.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/SalesTax.md +5 -3
- data/docs/Sector.md +2 -2
- data/docs/Service.md +3 -1
- data/docs/SpecialPriceConfiguration.md +2 -2
- data/docs/StockAdjustment.md +2 -2
- data/docs/StockOrder.md +2 -2
- data/docs/StockReceipt.md +3 -3
- data/docs/StockReceiptItemPurchasePrice.md +1 -1
- data/docs/StoreOrder.md +2 -2
- data/docs/StoreOrdersApi.md +10 -6
- data/docs/Supplier.md +2 -2
- data/docs/Tag.md +2 -2
- data/docs/TicketDefinition.md +2 -2
- data/docs/TicketingApi.md +148 -0
- data/docs/TimeTrackingApi.md +78 -78
- data/docs/TimeTrackingEntity.md +2 -2
- data/docs/TopSeller.md +1 -1
- data/docs/UserRole.md +2 -2
- data/docs/UserRolesApi.md +2 -0
- data/docs/VoidedReceiptItem.md +3 -1
- 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 +3 -1
- data/docs/VoucherTransactionResource.md +60 -0
- data/docs/VouchersApi.md +1126 -0
- data/git_push.sh +3 -4
- data/korona-cloud-client.gemspec +2 -2
- data/lib/korona-cloud-client/api/accounts_api.rb +18 -6
- data/lib/korona-cloud-client/api/additional_receipt_info_types_api.rb +370 -2
- data/lib/korona-cloud-client/api/assortments_api.rb +18 -6
- data/lib/korona-cloud-client/api/cashier_roles_api.rb +18 -6
- data/lib/korona-cloud-client/api/{cashier_verification_requirement_api.rb → cashier_verification_requirements_api.rb} +54 -45
- data/lib/korona-cloud-client/api/cashiers_api.rb +18 -6
- data/lib/korona-cloud-client/api/commodity_groups_api.rb +18 -6
- 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 +2 -2
- data/lib/korona-cloud-client/api/currencies_api.rb +14 -5
- data/lib/korona-cloud-client/api/customer_display_configurations_api.rb +14 -5
- data/lib/korona-cloud-client/api/customer_groups_api.rb +18 -6
- data/lib/korona-cloud-client/api/customer_orders_api.rb +14 -5
- data/lib/korona-cloud-client/api/customers_api.rb +18 -6
- data/lib/korona-cloud-client/api/delivery_notes_api.rb +79 -3
- data/lib/korona-cloud-client/api/device_configuration_variables_api.rb +14 -5
- 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 +620 -11
- data/lib/korona-cloud-client/api/economic_zones_api.rb +14 -5
- data/lib/korona-cloud-client/api/external_system_calls_api.rb +18 -6
- data/lib/korona-cloud-client/api/fiscal_units_api.rb +14 -5
- data/lib/korona-cloud-client/api/images_api.rb +2 -2
- data/lib/korona-cloud-client/api/info_texts_api.rb +14 -5
- data/lib/korona-cloud-client/api/inventories_api.rb +26 -8
- data/lib/korona-cloud-client/api/item_sequences_api.rb +536 -0
- data/lib/korona-cloud-client/api/korona_account_api.rb +2 -2
- 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 +30 -9
- data/lib/korona-cloud-client/api/payment_method_categories_api.rb +536 -0
- data/lib/korona-cloud-client/api/payment_methods_api.rb +18 -6
- data/lib/korona-cloud-client/api/points_of_sale_api.rb +36 -9
- data/lib/korona-cloud-client/api/pos_button_layouts_api.rb +18 -6
- data/lib/korona-cloud-client/api/pos_page_layout_configurations_api.rb +18 -6
- data/lib/korona-cloud-client/api/pos_profiles_api.rb +18 -6
- data/lib/korona-cloud-client/api/price_groups_api.rb +14 -5
- data/lib/korona-cloud-client/api/price_rules_api.rb +18 -6
- data/lib/korona-cloud-client/api/production_types_api.rb +14 -5
- data/lib/korona-cloud-client/api/products_api.rb +94 -6
- data/lib/korona-cloud-client/api/promotions_api.rb +22 -10
- data/lib/korona-cloud-client/api/receipt_layout_configurations_api.rb +18 -6
- data/lib/korona-cloud-client/api/receipts_api.rb +80 -4
- 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 +14 -5
- data/lib/korona-cloud-client/api/sectors_api.rb +14 -5
- data/lib/korona-cloud-client/api/special_price_configurations_api.rb +14 -5
- data/lib/korona-cloud-client/api/statistics_api.rb +2 -2
- data/lib/korona-cloud-client/api/stock_adjustments_api.rb +22 -7
- data/lib/korona-cloud-client/api/stock_orders_api.rb +2 -2
- data/lib/korona-cloud-client/api/stock_receipts_api.rb +22 -7
- data/lib/korona-cloud-client/api/store_orders_api.rb +40 -14
- data/lib/korona-cloud-client/api/suppliers_api.rb +14 -5
- data/lib/korona-cloud-client/api/tags_api.rb +18 -6
- data/lib/korona-cloud-client/api/ticketing_api.rb +188 -12
- data/lib/korona-cloud-client/api/time_tracking_api.rb +95 -89
- data/lib/korona-cloud-client/api/user_roles_api.rb +21 -6
- 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 +8 -6
- data/lib/korona-cloud-client/api_error.rb +2 -2
- data/lib/korona-cloud-client/configuration.rb +6 -4
- data/lib/korona-cloud-client/models/account.rb +47 -16
- data/lib/korona-cloud-client/models/account_summary.rb +3 -2
- data/lib/korona-cloud-client/models/account_transaction.rb +3 -2
- data/lib/korona-cloud-client/models/add_or_update_result.rb +5 -4
- data/lib/korona-cloud-client/models/additional_info.rb +3 -2
- data/lib/korona-cloud-client/models/additional_receipt_info_type.rb +14 -28
- data/lib/korona-cloud-client/models/address_information.rb +3 -2
- data/lib/korona-cloud-client/models/admission.rb +3 -2
- data/lib/korona-cloud-client/models/amount.rb +3 -2
- data/lib/korona-cloud-client/models/amount_count_data.rb +3 -2
- data/lib/korona-cloud-client/models/assortment.rb +14 -13
- data/lib/korona-cloud-client/models/attendance.rb +14 -13
- data/lib/korona-cloud-client/models/bad_request_error.rb +3 -2
- data/lib/korona-cloud-client/models/capacity.rb +3 -2
- data/lib/korona-cloud-client/models/cashier.rb +14 -13
- data/lib/korona-cloud-client/models/cashier_role.rb +14 -13
- data/lib/korona-cloud-client/models/cashier_summary.rb +3 -2
- data/lib/korona-cloud-client/models/cashier_verification_requirement.rb +14 -13
- data/lib/korona-cloud-client/models/cashier_verification_result.rb +3 -2
- data/lib/korona-cloud-client/models/category.rb +3 -2
- data/lib/korona-cloud-client/models/cloud_subscription.rb +3 -2
- data/lib/korona-cloud-client/models/cloud_subscription_details.rb +5 -4
- data/lib/korona-cloud-client/models/commodity_group.rb +14 -13
- data/lib/korona-cloud-client/models/commodity_group_summary.rb +3 -2
- data/lib/korona-cloud-client/models/company_identification.rb +3 -2
- 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 +3 -2
- data/lib/korona-cloud-client/models/coupon_position.rb +3 -2
- data/lib/korona-cloud-client/models/creation_task.rb +3 -2
- data/lib/korona-cloud-client/models/currency.rb +14 -13
- data/lib/korona-cloud-client/models/currency_denomination.rb +3 -2
- data/lib/korona-cloud-client/models/currency_exchange_rate.rb +3 -2
- data/lib/korona-cloud-client/models/customer.rb +26 -16
- data/lib/korona-cloud-client/models/customer_card.rb +3 -2
- data/lib/korona-cloud-client/models/customer_data.rb +3 -2
- data/lib/korona-cloud-client/models/customer_display_configuration.rb +19 -18
- data/lib/korona-cloud-client/models/customer_group.rb +14 -13
- data/lib/korona-cloud-client/models/customer_group_summary.rb +3 -2
- data/lib/korona-cloud-client/models/customer_information.rb +3 -2
- data/lib/korona-cloud-client/models/customer_order.rb +14 -13
- data/lib/korona-cloud-client/models/customer_order_item.rb +3 -2
- data/lib/korona-cloud-client/models/date_interval.rb +3 -2
- data/lib/korona-cloud-client/models/day_rating.rb +3 -2
- data/lib/korona-cloud-client/models/day_time_period.rb +3 -2
- data/lib/korona-cloud-client/models/delivery_note.rb +14 -13
- data/lib/korona-cloud-client/models/delivery_note_item.rb +3 -2
- data/lib/korona-cloud-client/models/deposit.rb +3 -2
- data/lib/korona-cloud-client/models/device_configuration.rb +26 -8
- data/lib/korona-cloud-client/models/device_configuration_variable.rb +14 -13
- data/lib/korona-cloud-client/models/device_configuration_variable_value.rb +3 -2
- data/lib/korona-cloud-client/models/device_information.rb +3 -2
- data/lib/korona-cloud-client/models/device_parameter_item.rb +3 -2
- data/lib/korona-cloud-client/models/discount.rb +3 -2
- 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 +62 -18
- data/lib/korona-cloud-client/models/dispatch_notification_item.rb +25 -6
- data/lib/korona-cloud-client/models/dispatch_notification_item_amount.rb +3 -2
- data/lib/korona-cloud-client/models/dispatch_notification_item_container.rb +3 -2
- data/lib/korona-cloud-client/models/dispatch_notification_item_identification.rb +3 -2
- data/lib/korona-cloud-client/models/dispatch_notification_item_import.rb +279 -0
- data/lib/korona-cloud-client/models/economic_zone.rb +14 -13
- data/lib/korona-cloud-client/models/end_of_day_statement.rb +14 -13
- data/lib/korona-cloud-client/models/end_of_day_statement_summary.rb +3 -2
- data/lib/korona-cloud-client/models/entry_gate.rb +14 -13
- data/lib/korona-cloud-client/models/event.rb +14 -13
- data/lib/korona-cloud-client/models/external_system_call.rb +14 -13
- data/lib/korona-cloud-client/models/fiscal_transaction.rb +3 -2
- data/lib/korona-cloud-client/models/fiscal_unit.rb +14 -13
- data/lib/korona-cloud-client/models/fiscal_unit_certificate_info.rb +3 -2
- data/lib/korona-cloud-client/models/fiscal_unit_pre_configuration.rb +3 -2
- data/lib/korona-cloud-client/models/fiscal_unit_state.rb +3 -2
- data/lib/korona-cloud-client/models/fiscal_unit_state_usage_level.rb +3 -2
- data/lib/korona-cloud-client/models/fiscal_unit_state_usage_level_value.rb +3 -2
- data/lib/korona-cloud-client/models/fiscal_unit_state_version_info.rb +3 -2
- data/lib/korona-cloud-client/models/forbidden_error.rb +3 -2
- data/lib/korona-cloud-client/models/geo_location.rb +3 -2
- data/lib/korona-cloud-client/models/info_text.rb +16 -15
- data/lib/korona-cloud-client/models/interval.rb +3 -2
- data/lib/korona-cloud-client/models/inventory.rb +14 -13
- data/lib/korona-cloud-client/models/inventory_list.rb +14 -13
- data/lib/korona-cloud-client/models/inventory_list_item.rb +3 -2
- data/lib/korona-cloud-client/models/inventory_list_item_stock.rb +3 -2
- data/lib/korona-cloud-client/models/item_sequence.rb +259 -0
- data/lib/korona-cloud-client/models/korona_account.rb +26 -16
- data/lib/korona-cloud-client/models/language_resource.rb +268 -0
- data/lib/korona-cloud-client/models/media_url.rb +3 -2
- data/lib/korona-cloud-client/models/message.rb +287 -0
- data/lib/korona-cloud-client/models/method_not_allowed_error.rb +3 -2
- data/lib/korona-cloud-client/models/model_reference.rb +4 -3
- data/lib/korona-cloud-client/models/not_found_error.rb +3 -2
- 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 +3 -2
- data/lib/korona-cloud-client/models/organizational_unit.rb +26 -16
- data/lib/korona-cloud-client/models/payment.rb +3 -2
- data/lib/korona-cloud-client/models/payment_method.rb +44 -16
- data/lib/korona-cloud-client/models/payment_method_category.rb +259 -0
- data/lib/korona-cloud-client/models/payment_service_configuration.rb +3 -2
- data/lib/korona-cloud-client/models/payment_summary.rb +3 -2
- data/lib/korona-cloud-client/models/payment_terminal_receipt.rb +3 -2
- data/lib/korona-cloud-client/models/period.rb +3 -2
- data/lib/korona-cloud-client/models/period_list_top_seller.rb +3 -2
- data/lib/korona-cloud-client/models/period_map_string_revenue_data.rb +3 -2
- data/lib/korona-cloud-client/models/period_object.rb +3 -2
- data/lib/korona-cloud-client/models/period_revenue_data.rb +3 -2
- data/lib/korona-cloud-client/models/pos.rb +38 -16
- data/lib/korona-cloud-client/models/pos_balance.rb +14 -13
- data/lib/korona-cloud-client/models/pos_balance_item.rb +3 -2
- data/lib/korona-cloud-client/models/pos_balance_summary.rb +3 -2
- data/lib/korona-cloud-client/models/pos_balance_summary_changeset.rb +3 -2
- data/lib/korona-cloud-client/models/pos_balance_total.rb +3 -2
- data/lib/korona-cloud-client/models/pos_button.rb +3 -2
- data/lib/korona-cloud-client/models/pos_button_function.rb +30 -8
- data/lib/korona-cloud-client/models/pos_button_layout.rb +14 -13
- data/lib/korona-cloud-client/models/pos_page_layout.rb +3 -2
- data/lib/korona-cloud-client/models/pos_page_layout_configuration.rb +26 -16
- data/lib/korona-cloud-client/models/pos_profile.rb +73 -16
- data/lib/korona-cloud-client/models/prepaid_card.rb +3 -2
- data/lib/korona-cloud-client/models/price_group.rb +14 -13
- data/lib/korona-cloud-client/models/price_rule.rb +14 -13
- data/lib/korona-cloud-client/models/price_rule_calculation.rb +3 -2
- data/lib/korona-cloud-client/models/price_rule_condition.rb +5 -4
- data/lib/korona-cloud-client/models/price_rule_time_validity_repetition_interval.rb +3 -2
- data/lib/korona-cloud-client/models/price_rule_validity_period.rb +3 -2
- data/lib/korona-cloud-client/models/product.rb +25 -15
- data/lib/korona-cloud-client/models/product_code.rb +3 -2
- data/lib/korona-cloud-client/models/product_description.rb +3 -2
- data/lib/korona-cloud-client/models/product_price.rb +3 -2
- data/lib/korona-cloud-client/models/product_special_price.rb +3 -2
- data/lib/korona-cloud-client/models/product_stock.rb +3 -2
- data/lib/korona-cloud-client/models/product_subproduct.rb +3 -2
- data/lib/korona-cloud-client/models/product_supplier_price.rb +3 -2
- data/lib/korona-cloud-client/models/product_transfer_involved_party_information.rb +3 -2
- data/lib/korona-cloud-client/models/product_transfer_involved_party_information_data.rb +4 -12
- data/lib/korona-cloud-client/models/production_type.rb +14 -13
- data/lib/korona-cloud-client/models/production_type_setting.rb +219 -0
- data/lib/korona-cloud-client/models/promotion.rb +14 -13
- data/lib/korona-cloud-client/models/promotion_application.rb +3 -2
- data/lib/korona-cloud-client/models/promotion_benefit.rb +3 -2
- data/lib/korona-cloud-client/models/promotion_benefit_common_discount.rb +3 -2
- data/lib/korona-cloud-client/models/promotion_benefit_extended_discount.rb +3 -2
- data/lib/korona-cloud-client/models/promotion_benefit_extended_discount_discount_calculation.rb +3 -2
- data/lib/korona-cloud-client/models/promotion_benefit_extended_discount_position_selection.rb +3 -2
- data/lib/korona-cloud-client/models/promotion_benefit_extended_discount_position_selection_count_amount.rb +3 -2
- data/lib/korona-cloud-client/models/promotion_benefit_extended_discount_position_selection_criteria.rb +3 -2
- data/lib/korona-cloud-client/models/promotion_benefit_extended_discount_position_selection_criteria_min_max_range.rb +3 -2
- data/lib/korona-cloud-client/models/promotion_benefit_extended_discount_position_selection_criteria_min_max_range_value_comperator.rb +3 -2
- data/lib/korona-cloud-client/models/promotion_benefit_extended_discount_position_selection_filter.rb +89 -39
- data/lib/korona-cloud-client/models/promotion_benefit_reduce_product_amount.rb +3 -2
- data/lib/korona-cloud-client/models/promotion_bonuspoint.rb +3 -2
- data/lib/korona-cloud-client/models/promotion_bonuspoint_creation.rb +3 -2
- data/lib/korona-cloud-client/models/promotion_bonuspoint_redemption.rb +3 -2
- data/lib/korona-cloud-client/models/promotion_bonuspoint_redemption_fixed_discount.rb +3 -2
- data/lib/korona-cloud-client/models/promotion_bonuspoint_redemption_percentage_discount.rb +3 -2
- data/lib/korona-cloud-client/models/promotion_bonuspoint_redemption_tag_discount.rb +3 -2
- data/lib/korona-cloud-client/models/promotion_coupon.rb +3 -2
- data/lib/korona-cloud-client/models/promotion_coupon_validity.rb +3 -2
- data/lib/korona-cloud-client/models/promotion_coupon_validity_days_after_purchase_interval.rb +3 -2
- data/lib/korona-cloud-client/models/promotion_layer.rb +3 -2
- data/lib/korona-cloud-client/models/promotion_stamp.rb +3 -2
- data/lib/korona-cloud-client/models/promotion_trigger.rb +3 -2
- data/lib/korona-cloud-client/models/promotion_trigger_product_amount_condition.rb +3 -2
- data/lib/korona-cloud-client/models/promotion_trigger_receipt_product_amount_condition.rb +3 -2
- data/lib/korona-cloud-client/models/promotion_trigger_receipt_revenue_condition.rb +3 -2
- data/lib/korona-cloud-client/models/promotion_trigger_tag_amount_condition.rb +3 -2
- data/lib/korona-cloud-client/models/promotion_trigger_tag_revenue_condition.rb +3 -2
- data/lib/korona-cloud-client/models/promotion_validity.rb +3 -2
- data/lib/korona-cloud-client/models/rating.rb +3 -2
- data/lib/korona-cloud-client/models/receipt.rb +35 -13
- data/lib/korona-cloud-client/models/receipt_item.rb +25 -6
- data/lib/korona-cloud-client/models/receipt_item_return_reason.rb +219 -0
- data/lib/korona-cloud-client/models/receipt_layout_configuration.rb +14 -13
- data/lib/korona-cloud-client/models/receipt_max_revisions.rb +3 -2
- data/lib/korona-cloud-client/models/receipt_revenue.rb +3 -2
- data/lib/korona-cloud-client/models/receipt_total.rb +3 -2
- data/lib/korona-cloud-client/models/report_file.rb +337 -0
- data/lib/korona-cloud-client/models/result_list.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_account.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_additional_receipt_info_type.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_assortment.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_attendance.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_cashier.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_cashier_role.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_cashier_verification_requirement.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_commodity_group.rb +3 -2
- 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 +3 -2
- data/lib/korona-cloud-client/models/result_list_creation_task.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_currency.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_customer.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_customer_display_configuration.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_customer_group.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_customer_order.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_day_rating.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_delivery_note.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_device_configuration_variable.rb +3 -2
- 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 +3 -2
- data/lib/korona-cloud-client/models/result_list_dispatch_notification_item.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_economic_zone.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_end_of_day_statement.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_entry_gate.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_event.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_external_system_call.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_fiscal_unit.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_info_text.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_inventory.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_inventory_list.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_inventory_list_item.rb +3 -2
- 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 +3 -2
- data/lib/korona-cloud-client/models/result_list_payment_method.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_payment_method_category.rb +304 -0
- data/lib/korona-cloud-client/models/result_list_pos.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_pos_balance.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_pos_button_layout.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_pos_page_layout_configuration.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_pos_profile.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_price_group.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_price_rule.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_product.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_product_stock.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_production_type.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_promotion.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_receipt.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_receipt_layout_configuration.rb +3 -2
- 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 +3 -2
- data/lib/korona-cloud-client/models/result_list_sector.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_special_price_configuration.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_stock_adjustment.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_stock_adjustment_item.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_stock_order.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_stock_order_item.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_stock_receipt.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_stock_receipt_item.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_store_order.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_store_order_item.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_supplier.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_tag.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_ticket.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_ticket_definition.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_time_tracking_entity.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_time_tracking_entry.rb +3 -2
- data/lib/korona-cloud-client/models/result_list_user_role.rb +3 -2
- 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 +3 -2
- data/lib/korona-cloud-client/models/sales_tax.rb +26 -16
- data/lib/korona-cloud-client/models/sales_tax_rate.rb +3 -2
- data/lib/korona-cloud-client/models/sector.rb +14 -13
- data/lib/korona-cloud-client/models/sector_revenue_account_item.rb +3 -2
- data/lib/korona-cloud-client/models/sector_sales_tax_item.rb +3 -2
- data/lib/korona-cloud-client/models/service.rb +28 -6
- data/lib/korona-cloud-client/models/signature.rb +3 -2
- data/lib/korona-cloud-client/models/special_price.rb +3 -2
- data/lib/korona-cloud-client/models/special_price_configuration.rb +14 -13
- data/lib/korona-cloud-client/models/statistic.rb +3 -2
- data/lib/korona-cloud-client/models/statistic_list_top_seller.rb +3 -2
- data/lib/korona-cloud-client/models/statistic_map_string_revenue_data.rb +3 -2
- data/lib/korona-cloud-client/models/statistic_revenue_data.rb +3 -2
- data/lib/korona-cloud-client/models/stock_adjustment.rb +14 -13
- data/lib/korona-cloud-client/models/stock_adjustment_item.rb +3 -2
- data/lib/korona-cloud-client/models/stock_adjustment_item_reason.rb +5 -4
- data/lib/korona-cloud-client/models/stock_order.rb +14 -13
- data/lib/korona-cloud-client/models/stock_order_item.rb +3 -2
- data/lib/korona-cloud-client/models/stock_receipt.rb +14 -13
- data/lib/korona-cloud-client/models/stock_receipt_item.rb +3 -2
- data/lib/korona-cloud-client/models/stock_receipt_item_amount.rb +3 -2
- data/lib/korona-cloud-client/models/stock_receipt_item_identification.rb +3 -2
- data/lib/korona-cloud-client/models/stock_receipt_item_purchase_price.rb +3 -2
- data/lib/korona-cloud-client/models/store_order.rb +14 -13
- data/lib/korona-cloud-client/models/store_order_item.rb +3 -2
- data/lib/korona-cloud-client/models/supplier.rb +14 -13
- data/lib/korona-cloud-client/models/supplier_contact.rb +3 -2
- data/lib/korona-cloud-client/models/supplier_contact_person.rb +3 -2
- data/lib/korona-cloud-client/models/supplier_payment_information.rb +3 -2
- data/lib/korona-cloud-client/models/tag.rb +14 -13
- data/lib/korona-cloud-client/models/tax_payment.rb +3 -2
- data/lib/korona-cloud-client/models/tax_summary.rb +3 -2
- data/lib/korona-cloud-client/models/terminal_receipt_print_line.rb +3 -2
- data/lib/korona-cloud-client/models/ticket.rb +3 -2
- data/lib/korona-cloud-client/models/ticket_data.rb +3 -2
- data/lib/korona-cloud-client/models/ticket_definition.rb +14 -13
- data/lib/korona-cloud-client/models/ticket_personalization.rb +3 -2
- data/lib/korona-cloud-client/models/time_of_day_interval.rb +3 -2
- data/lib/korona-cloud-client/models/time_period.rb +3 -2
- data/lib/korona-cloud-client/models/time_tracking_entity.rb +14 -13
- data/lib/korona-cloud-client/models/time_tracking_entry.rb +3 -2
- data/lib/korona-cloud-client/models/too_many_requests_error.rb +3 -2
- data/lib/korona-cloud-client/models/top_seller.rb +4 -3
- data/lib/korona-cloud-client/models/total_period.rb +3 -2
- data/lib/korona-cloud-client/models/total_price.rb +3 -2
- data/lib/korona-cloud-client/models/user_role.rb +14 -13
- data/lib/korona-cloud-client/models/validity.rb +3 -2
- data/lib/korona-cloud-client/models/voided_receipt_item.rb +18 -6
- 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 +16 -6
- data/lib/korona-cloud-client/models/voucher_transaction_resource.rb +447 -0
- data/lib/korona-cloud-client/models/weather.rb +3 -2
- data/lib/korona-cloud-client/version.rb +3 -3
- data/lib/korona-cloud-client.rb +49 -4
- data/spec/api/accounts_api_spec.rb +2 -2
- 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_requirement_api_spec.rb → cashier_verification_requirements_api_spec.rb} +18 -18
- data/spec/api/cashiers_api_spec.rb +2 -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 +2 -2
- data/spec/api/currencies_api_spec.rb +2 -2
- data/spec/api/customer_display_configurations_api_spec.rb +2 -2
- data/spec/api/customer_groups_api_spec.rb +2 -2
- data/spec/api/customer_orders_api_spec.rb +2 -2
- data/spec/api/customers_api_spec.rb +2 -2
- data/spec/api/delivery_notes_api_spec.rb +15 -2
- data/spec/api/device_configuration_variables_api_spec.rb +2 -2
- 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 +109 -3
- data/spec/api/economic_zones_api_spec.rb +2 -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 +2 -2
- data/spec/api/inventories_api_spec.rb +2 -2
- 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 +2 -2
- data/spec/api/payment_method_categories_api_spec.rb +128 -0
- data/spec/api/payment_methods_api_spec.rb +2 -2
- data/spec/api/points_of_sale_api_spec.rb +7 -3
- data/spec/api/pos_button_layouts_api_spec.rb +2 -2
- data/spec/api/pos_page_layout_configurations_api_spec.rb +2 -2
- data/spec/api/pos_profiles_api_spec.rb +2 -2
- data/spec/api/price_groups_api_spec.rb +2 -2
- data/spec/api/price_rules_api_spec.rb +2 -2
- data/spec/api/production_types_api_spec.rb +2 -2
- data/spec/api/products_api_spec.rb +16 -2
- data/spec/api/promotions_api_spec.rb +4 -4
- data/spec/api/receipt_layout_configurations_api_spec.rb +2 -2
- data/spec/api/receipts_api_spec.rb +17 -3
- 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 +2 -2
- data/spec/api/sectors_api_spec.rb +2 -2
- data/spec/api/special_price_configurations_api_spec.rb +2 -2
- data/spec/api/statistics_api_spec.rb +2 -2
- data/spec/api/stock_adjustments_api_spec.rb +2 -2
- data/spec/api/stock_orders_api_spec.rb +2 -2
- data/spec/api/stock_receipts_api_spec.rb +2 -2
- data/spec/api/store_orders_api_spec.rb +5 -3
- data/spec/api/suppliers_api_spec.rb +2 -2
- data/spec/api/tags_api_spec.rb +2 -2
- data/spec/api/ticketing_api_spec.rb +28 -2
- data/spec/api/time_tracking_api_spec.rb +22 -22
- data/spec/api/user_roles_api_spec.rb +3 -2
- 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 +20 -4
- data/spec/models/account_summary_spec.rb +2 -2
- data/spec/models/account_transaction_spec.rb +2 -2
- data/spec/models/add_or_update_result_spec.rb +3 -3
- data/spec/models/additional_info_spec.rb +2 -2
- data/spec/models/additional_receipt_info_type_spec.rb +4 -10
- data/spec/models/address_information_spec.rb +2 -2
- data/spec/models/admission_spec.rb +2 -2
- data/spec/models/amount_count_data_spec.rb +2 -2
- data/spec/models/amount_spec.rb +2 -2
- data/spec/models/assortment_spec.rb +4 -4
- data/spec/models/attendance_spec.rb +4 -4
- data/spec/models/bad_request_error_spec.rb +2 -2
- data/spec/models/capacity_spec.rb +2 -2
- data/spec/models/cashier_role_spec.rb +4 -4
- data/spec/models/cashier_spec.rb +4 -4
- data/spec/models/cashier_summary_spec.rb +2 -2
- data/spec/models/cashier_verification_requirement_spec.rb +4 -4
- data/spec/models/cashier_verification_result_spec.rb +2 -2
- data/spec/models/category_spec.rb +2 -2
- data/spec/models/cloud_subscription_details_spec.rb +3 -3
- data/spec/models/cloud_subscription_spec.rb +2 -2
- data/spec/models/commodity_group_spec.rb +4 -4
- data/spec/models/commodity_group_summary_spec.rb +2 -2
- data/spec/models/company_identification_spec.rb +2 -2
- 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 +2 -2
- data/spec/models/coupon_spec.rb +2 -2
- data/spec/models/creation_task_spec.rb +2 -2
- data/spec/models/currency_denomination_spec.rb +2 -2
- data/spec/models/currency_exchange_rate_spec.rb +2 -2
- data/spec/models/currency_spec.rb +4 -4
- data/spec/models/customer_card_spec.rb +2 -2
- data/spec/models/customer_data_spec.rb +2 -2
- data/spec/models/customer_display_configuration_spec.rb +5 -5
- data/spec/models/customer_group_spec.rb +4 -4
- data/spec/models/customer_group_summary_spec.rb +2 -2
- data/spec/models/customer_information_spec.rb +2 -2
- data/spec/models/customer_order_item_spec.rb +2 -2
- data/spec/models/customer_order_spec.rb +4 -4
- data/spec/models/customer_spec.rb +10 -4
- data/spec/models/date_interval_spec.rb +2 -2
- data/spec/models/day_rating_spec.rb +2 -2
- data/spec/models/day_time_period_spec.rb +2 -2
- data/spec/models/delivery_note_item_spec.rb +2 -2
- data/spec/models/delivery_note_spec.rb +4 -4
- data/spec/models/deposit_spec.rb +2 -2
- data/spec/models/device_configuration_spec.rb +9 -3
- data/spec/models/device_configuration_variable_spec.rb +4 -4
- data/spec/models/device_configuration_variable_value_spec.rb +2 -2
- data/spec/models/device_information_spec.rb +2 -2
- data/spec/models/device_parameter_item_spec.rb +2 -2
- data/spec/models/discount_configuration_spec.rb +76 -0
- data/spec/models/discount_level_spec.rb +64 -0
- data/spec/models/discount_spec.rb +2 -2
- data/spec/models/dispatch_notification_item_amount_spec.rb +2 -2
- data/spec/models/dispatch_notification_item_container_spec.rb +2 -2
- data/spec/models/dispatch_notification_item_identification_spec.rb +2 -2
- data/spec/models/dispatch_notification_item_import_spec.rb +70 -0
- data/spec/models/dispatch_notification_item_spec.rb +14 -2
- data/spec/models/dispatch_notification_spec.rb +14 -4
- data/spec/models/economic_zone_spec.rb +4 -4
- data/spec/models/end_of_day_statement_spec.rb +4 -4
- data/spec/models/end_of_day_statement_summary_spec.rb +2 -2
- data/spec/models/entry_gate_spec.rb +4 -4
- data/spec/models/event_spec.rb +4 -4
- data/spec/models/external_system_call_spec.rb +4 -4
- data/spec/models/fiscal_transaction_spec.rb +2 -2
- data/spec/models/fiscal_unit_certificate_info_spec.rb +2 -2
- data/spec/models/fiscal_unit_pre_configuration_spec.rb +2 -2
- data/spec/models/fiscal_unit_spec.rb +4 -4
- data/spec/models/fiscal_unit_state_spec.rb +2 -2
- data/spec/models/fiscal_unit_state_usage_level_spec.rb +2 -2
- data/spec/models/fiscal_unit_state_usage_level_value_spec.rb +2 -2
- data/spec/models/fiscal_unit_state_version_info_spec.rb +2 -2
- data/spec/models/forbidden_error_spec.rb +2 -2
- data/spec/models/geo_location_spec.rb +2 -2
- data/spec/models/info_text_spec.rb +5 -5
- data/spec/models/interval_spec.rb +2 -2
- data/spec/models/inventory_list_item_spec.rb +2 -2
- data/spec/models/inventory_list_item_stock_spec.rb +2 -2
- data/spec/models/inventory_list_spec.rb +4 -4
- data/spec/models/inventory_spec.rb +4 -4
- data/spec/models/item_sequence_spec.rb +58 -0
- data/spec/models/korona_account_spec.rb +11 -5
- data/spec/models/language_resource_spec.rb +64 -0
- data/spec/models/media_url_spec.rb +2 -2
- data/spec/models/message_spec.rb +50 -0
- data/spec/models/method_not_allowed_error_spec.rb +2 -2
- data/spec/models/model_reference_spec.rb +2 -2
- data/spec/models/not_found_error_spec.rb +2 -2
- 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 +2 -2
- data/spec/models/organizational_unit_spec.rb +10 -4
- data/spec/models/payment_method_category_spec.rb +58 -0
- data/spec/models/payment_method_spec.rb +22 -4
- data/spec/models/payment_service_configuration_spec.rb +2 -2
- data/spec/models/payment_spec.rb +2 -2
- data/spec/models/payment_summary_spec.rb +2 -2
- data/spec/models/payment_terminal_receipt_spec.rb +2 -2
- data/spec/models/period_list_top_seller_spec.rb +2 -2
- data/spec/models/period_map_string_revenue_data_spec.rb +2 -2
- data/spec/models/period_object_spec.rb +2 -2
- data/spec/models/period_revenue_data_spec.rb +2 -2
- data/spec/models/period_spec.rb +2 -2
- data/spec/models/pos_balance_item_spec.rb +2 -2
- data/spec/models/pos_balance_spec.rb +4 -4
- data/spec/models/pos_balance_summary_changeset_spec.rb +2 -2
- data/spec/models/pos_balance_summary_spec.rb +2 -2
- data/spec/models/pos_balance_total_spec.rb +2 -2
- data/spec/models/pos_button_function_spec.rb +13 -3
- data/spec/models/pos_button_layout_spec.rb +4 -4
- data/spec/models/pos_button_spec.rb +2 -2
- data/spec/models/pos_page_layout_configuration_spec.rb +10 -4
- data/spec/models/pos_page_layout_spec.rb +2 -2
- data/spec/models/pos_profile_spec.rb +40 -4
- data/spec/models/pos_spec.rb +14 -4
- data/spec/models/prepaid_card_spec.rb +2 -2
- data/spec/models/price_group_spec.rb +4 -4
- data/spec/models/price_rule_calculation_spec.rb +2 -2
- data/spec/models/price_rule_condition_spec.rb +3 -3
- data/spec/models/price_rule_spec.rb +4 -4
- data/spec/models/price_rule_time_validity_repetition_interval_spec.rb +2 -2
- data/spec/models/price_rule_validity_period_spec.rb +2 -2
- data/spec/models/product_code_spec.rb +2 -2
- data/spec/models/product_description_spec.rb +2 -2
- data/spec/models/product_price_spec.rb +2 -2
- data/spec/models/product_spec.rb +11 -5
- data/spec/models/product_special_price_spec.rb +2 -2
- data/spec/models/product_stock_spec.rb +2 -2
- data/spec/models/product_subproduct_spec.rb +2 -2
- data/spec/models/product_supplier_price_spec.rb +2 -2
- data/spec/models/product_transfer_involved_party_information_data_spec.rb +2 -8
- data/spec/models/product_transfer_involved_party_information_spec.rb +2 -2
- data/spec/models/production_type_setting_spec.rb +34 -0
- data/spec/models/production_type_spec.rb +4 -4
- data/spec/models/promotion_application_spec.rb +2 -2
- data/spec/models/promotion_benefit_common_discount_spec.rb +2 -2
- data/spec/models/promotion_benefit_extended_discount_discount_calculation_spec.rb +2 -2
- data/spec/models/{promotion_benefit_ext_discount_pos_selection_criteria_min_max_range_value_comp_spec.rb → promotion_benefit_extended_discount_position_comperator_spec.rb} +2 -2
- data/spec/models/promotion_benefit_extended_discount_position_selection_count_amount_spec.rb +2 -2
- data/spec/models/promotion_benefit_extended_discount_position_selection_criteria_min_max_range_spec.rb +2 -2
- data/spec/models/promotion_benefit_extended_discount_position_selection_criteria_spec.rb +2 -2
- data/spec/models/promotion_benefit_extended_discount_position_selection_filter_spec.rb +18 -12
- data/spec/models/promotion_benefit_extended_discount_position_selection_spec.rb +2 -2
- data/spec/models/promotion_benefit_extended_discount_spec.rb +2 -2
- data/spec/models/promotion_benefit_reduce_product_amount_spec.rb +2 -2
- data/spec/models/promotion_benefit_spec.rb +2 -2
- data/spec/models/promotion_bonuspoint_creation_spec.rb +2 -2
- data/spec/models/promotion_bonuspoint_redemption_fixed_discount_spec.rb +2 -2
- data/spec/models/promotion_bonuspoint_redemption_percentage_discount_spec.rb +2 -2
- data/spec/models/promotion_bonuspoint_redemption_spec.rb +2 -2
- data/spec/models/promotion_bonuspoint_redemption_tag_discount_spec.rb +2 -2
- data/spec/models/promotion_bonuspoint_spec.rb +2 -2
- data/spec/models/promotion_coupon_spec.rb +2 -2
- data/spec/models/promotion_coupon_validity_days_after_purchase_interval_spec.rb +2 -2
- data/spec/models/promotion_coupon_validity_spec.rb +2 -2
- data/spec/models/promotion_layer_spec.rb +2 -2
- data/spec/models/promotion_spec.rb +4 -4
- data/spec/models/promotion_stamp_spec.rb +2 -2
- data/spec/models/promotion_trigger_product_amount_condition_spec.rb +2 -2
- data/spec/models/promotion_trigger_receipt_product_amount_condition_spec.rb +2 -2
- data/spec/models/promotion_trigger_receipt_revenue_condition_spec.rb +2 -2
- data/spec/models/promotion_trigger_spec.rb +2 -2
- data/spec/models/promotion_trigger_tag_amount_condition_spec.rb +2 -2
- data/spec/models/promotion_trigger_tag_revenue_condition_spec.rb +2 -2
- data/spec/models/promotion_validity_spec.rb +2 -2
- data/spec/models/rating_spec.rb +2 -2
- data/spec/models/receipt_item_return_reason_spec.rb +34 -0
- data/spec/models/receipt_item_spec.rb +14 -2
- data/spec/models/receipt_layout_configuration_spec.rb +4 -4
- data/spec/models/receipt_max_revisions_spec.rb +2 -2
- data/spec/models/receipt_revenue_spec.rb +2 -2
- data/spec/models/receipt_spec.rb +16 -4
- data/spec/models/receipt_total_spec.rb +2 -2
- data/spec/models/report_file_spec.rb +80 -0
- data/spec/models/result_list_account_spec.rb +2 -2
- data/spec/models/result_list_additional_receipt_info_type_spec.rb +2 -2
- data/spec/models/result_list_assortment_spec.rb +2 -2
- data/spec/models/result_list_attendance_spec.rb +2 -2
- data/spec/models/result_list_cashier_role_spec.rb +2 -2
- data/spec/models/result_list_cashier_spec.rb +2 -2
- data/spec/models/result_list_cashier_verification_requirement_spec.rb +2 -2
- data/spec/models/result_list_commodity_group_spec.rb +2 -2
- 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 +2 -2
- data/spec/models/result_list_creation_task_spec.rb +2 -2
- data/spec/models/result_list_currency_spec.rb +2 -2
- data/spec/models/result_list_customer_display_configuration_spec.rb +2 -2
- data/spec/models/result_list_customer_group_spec.rb +2 -2
- data/spec/models/result_list_customer_order_spec.rb +2 -2
- data/spec/models/result_list_customer_spec.rb +2 -2
- data/spec/models/result_list_day_rating_spec.rb +2 -2
- data/spec/models/result_list_delivery_note_spec.rb +2 -2
- data/spec/models/result_list_device_configuration_variable_spec.rb +2 -2
- 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 +2 -2
- data/spec/models/result_list_dispatch_notification_spec.rb +2 -2
- data/spec/models/result_list_economic_zone_spec.rb +2 -2
- data/spec/models/result_list_end_of_day_statement_spec.rb +2 -2
- data/spec/models/result_list_entry_gate_spec.rb +2 -2
- data/spec/models/result_list_event_spec.rb +2 -2
- data/spec/models/result_list_external_system_call_spec.rb +2 -2
- data/spec/models/result_list_fiscal_unit_spec.rb +2 -2
- data/spec/models/result_list_info_text_spec.rb +2 -2
- data/spec/models/result_list_inventory_list_item_spec.rb +2 -2
- data/spec/models/result_list_inventory_list_spec.rb +2 -2
- data/spec/models/result_list_inventory_spec.rb +2 -2
- 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 +2 -2
- data/spec/models/result_list_payment_method_category_spec.rb +64 -0
- data/spec/models/result_list_payment_method_spec.rb +2 -2
- data/spec/models/result_list_pos_balance_spec.rb +2 -2
- data/spec/models/result_list_pos_button_layout_spec.rb +2 -2
- data/spec/models/result_list_pos_page_layout_configuration_spec.rb +2 -2
- data/spec/models/result_list_pos_profile_spec.rb +2 -2
- data/spec/models/result_list_pos_spec.rb +2 -2
- data/spec/models/result_list_price_group_spec.rb +2 -2
- data/spec/models/result_list_price_rule_spec.rb +2 -2
- data/spec/models/result_list_product_spec.rb +2 -2
- data/spec/models/result_list_product_stock_spec.rb +2 -2
- data/spec/models/result_list_production_type_spec.rb +2 -2
- data/spec/models/result_list_promotion_spec.rb +2 -2
- data/spec/models/result_list_receipt_layout_configuration_spec.rb +2 -2
- data/spec/models/result_list_receipt_spec.rb +2 -2
- 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 +2 -2
- data/spec/models/result_list_sector_spec.rb +2 -2
- data/spec/models/result_list_spec.rb +2 -2
- data/spec/models/result_list_special_price_configuration_spec.rb +2 -2
- data/spec/models/result_list_stock_adjustment_item_spec.rb +2 -2
- data/spec/models/result_list_stock_adjustment_spec.rb +2 -2
- data/spec/models/result_list_stock_order_item_spec.rb +2 -2
- data/spec/models/result_list_stock_order_spec.rb +2 -2
- data/spec/models/result_list_stock_receipt_item_spec.rb +2 -2
- data/spec/models/result_list_stock_receipt_spec.rb +2 -2
- data/spec/models/result_list_store_order_item_spec.rb +2 -2
- data/spec/models/result_list_store_order_spec.rb +2 -2
- data/spec/models/result_list_supplier_spec.rb +2 -2
- data/spec/models/result_list_tag_spec.rb +2 -2
- data/spec/models/result_list_ticket_definition_spec.rb +2 -2
- data/spec/models/result_list_ticket_spec.rb +2 -2
- data/spec/models/result_list_time_tracking_entity_spec.rb +2 -2
- data/spec/models/result_list_time_tracking_entry_spec.rb +2 -2
- data/spec/models/result_list_user_role_spec.rb +2 -2
- 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 +2 -2
- data/spec/models/sales_tax_rate_spec.rb +2 -2
- data/spec/models/sales_tax_spec.rb +10 -4
- data/spec/models/sector_revenue_account_item_spec.rb +2 -2
- data/spec/models/sector_sales_tax_item_spec.rb +2 -2
- data/spec/models/sector_spec.rb +4 -4
- data/spec/models/service_spec.rb +12 -2
- data/spec/models/signature_spec.rb +2 -2
- data/spec/models/special_price_configuration_spec.rb +4 -4
- data/spec/models/special_price_spec.rb +2 -2
- data/spec/models/statistic_list_top_seller_spec.rb +2 -2
- data/spec/models/statistic_map_string_revenue_data_spec.rb +2 -2
- data/spec/models/statistic_revenue_data_spec.rb +2 -2
- data/spec/models/statistic_spec.rb +2 -2
- data/spec/models/stock_adjustment_item_reason_spec.rb +3 -3
- data/spec/models/stock_adjustment_item_spec.rb +2 -2
- data/spec/models/stock_adjustment_spec.rb +4 -4
- data/spec/models/stock_order_item_spec.rb +2 -2
- data/spec/models/stock_order_spec.rb +4 -4
- data/spec/models/stock_receipt_item_amount_spec.rb +2 -2
- data/spec/models/stock_receipt_item_identification_spec.rb +2 -2
- data/spec/models/stock_receipt_item_purchase_price_spec.rb +2 -2
- data/spec/models/stock_receipt_item_spec.rb +2 -2
- data/spec/models/stock_receipt_spec.rb +4 -4
- data/spec/models/store_order_item_spec.rb +2 -2
- data/spec/models/store_order_spec.rb +4 -4
- data/spec/models/supplier_contact_person_spec.rb +2 -2
- data/spec/models/supplier_contact_spec.rb +2 -2
- data/spec/models/supplier_payment_information_spec.rb +2 -2
- data/spec/models/supplier_spec.rb +4 -4
- data/spec/models/tag_spec.rb +4 -4
- data/spec/models/tax_payment_spec.rb +2 -2
- data/spec/models/tax_summary_spec.rb +2 -2
- data/spec/models/terminal_receipt_print_line_spec.rb +2 -2
- data/spec/models/ticket_data_spec.rb +2 -2
- data/spec/models/ticket_definition_spec.rb +4 -4
- data/spec/models/ticket_personalization_spec.rb +2 -2
- data/spec/models/ticket_spec.rb +2 -2
- data/spec/models/time_of_day_interval_spec.rb +2 -2
- data/spec/models/time_period_spec.rb +2 -2
- data/spec/models/time_tracking_entity_spec.rb +4 -4
- data/spec/models/time_tracking_entry_spec.rb +2 -2
- data/spec/models/too_many_requests_error_spec.rb +2 -2
- data/spec/models/top_seller_spec.rb +2 -2
- data/spec/models/total_period_spec.rb +2 -2
- data/spec/models/total_price_spec.rb +2 -2
- data/spec/models/user_role_spec.rb +5 -5
- data/spec/models/validity_spec.rb +2 -2
- data/spec/models/voided_receipt_item_spec.rb +8 -2
- 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 +8 -2
- data/spec/models/weather_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +192 -12
- data/docs/TicketCreationApi.md +0 -155
- data/lib/korona-cloud-client/api/ticket_creation_api.rb +0 -165
- data/spec/api/ticket_creation_api_spec.rb +0 -61
@@ -0,0 +1,1149 @@
|
|
1
|
+
=begin
|
2
|
+
#KORONA.cloud API v3
|
3
|
+
|
4
|
+
#Our api provides access to our cloud services
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.19.20
|
7
|
+
Contact: support@combase.net
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.0.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module KoronaCloudClient
|
16
|
+
class VouchersApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# adds a batch of new voucher transactions
|
23
|
+
# @param voucher_id [String] id of the related object (important: id should match the uuid-format)
|
24
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
25
|
+
# @param body [Array<VoucherTransactionResource>] array of new voucher transactions
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [Array<AddOrUpdateResult>]
|
28
|
+
def add_voucher_voucher_transactions(voucher_id, korona_account_id, body, opts = {})
|
29
|
+
data, _status_code, _headers = add_voucher_voucher_transactions_with_http_info(voucher_id, korona_account_id, body, opts)
|
30
|
+
data
|
31
|
+
end
|
32
|
+
|
33
|
+
# adds a batch of new voucher transactions
|
34
|
+
# @param voucher_id [String] id of the related object (important: id should match the uuid-format)
|
35
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
36
|
+
# @param body [Array<VoucherTransactionResource>] array of new voucher transactions
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [Array<(Array<AddOrUpdateResult>, Integer, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers
|
39
|
+
def add_voucher_voucher_transactions_with_http_info(voucher_id, korona_account_id, body, opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: VouchersApi.add_voucher_voucher_transactions ...'
|
42
|
+
end
|
43
|
+
# verify the required parameter 'voucher_id' is set
|
44
|
+
if @api_client.config.client_side_validation && voucher_id.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'voucher_id' when calling VouchersApi.add_voucher_voucher_transactions"
|
46
|
+
end
|
47
|
+
# verify the required parameter 'korona_account_id' is set
|
48
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
49
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling VouchersApi.add_voucher_voucher_transactions"
|
50
|
+
end
|
51
|
+
# verify the required parameter 'body' is set
|
52
|
+
if @api_client.config.client_side_validation && body.nil?
|
53
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling VouchersApi.add_voucher_voucher_transactions"
|
54
|
+
end
|
55
|
+
# resource path
|
56
|
+
local_var_path = '/accounts/{koronaAccountId}/vouchers/{voucherId}/transactions'.sub('{' + 'voucherId' + '}', CGI.escape(voucher_id.to_s)).sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
57
|
+
|
58
|
+
# query parameters
|
59
|
+
query_params = opts[:query_params] || {}
|
60
|
+
|
61
|
+
# header parameters
|
62
|
+
header_params = opts[:header_params] || {}
|
63
|
+
# HTTP header 'Accept' (if needed)
|
64
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
65
|
+
# HTTP header 'Content-Type'
|
66
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
67
|
+
if !content_type.nil?
|
68
|
+
header_params['Content-Type'] = content_type
|
69
|
+
end
|
70
|
+
|
71
|
+
# form parameters
|
72
|
+
form_params = opts[:form_params] || {}
|
73
|
+
|
74
|
+
# http body (model)
|
75
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
76
|
+
|
77
|
+
# return_type
|
78
|
+
return_type = opts[:debug_return_type] || 'Array<AddOrUpdateResult>'
|
79
|
+
|
80
|
+
# auth_names
|
81
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
82
|
+
|
83
|
+
new_options = opts.merge(
|
84
|
+
:operation => :"VouchersApi.add_voucher_voucher_transactions",
|
85
|
+
:header_params => header_params,
|
86
|
+
:query_params => query_params,
|
87
|
+
:form_params => form_params,
|
88
|
+
:body => post_body,
|
89
|
+
:auth_names => auth_names,
|
90
|
+
:return_type => return_type
|
91
|
+
)
|
92
|
+
|
93
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
94
|
+
if @api_client.config.debugging
|
95
|
+
@api_client.config.logger.debug "API called: VouchersApi#add_voucher_voucher_transactions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
96
|
+
end
|
97
|
+
return data, status_code, headers
|
98
|
+
end
|
99
|
+
|
100
|
+
# adds a batch of new vouchers
|
101
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
102
|
+
# @param body [Array<VoucherResource>] array of new vouchers
|
103
|
+
# @param [Hash] opts the optional parameters
|
104
|
+
# @option opts [Boolean] :upsert when set to true, updates the object instead of generating a already-exists-error
|
105
|
+
# @return [Array<AddOrUpdateResult>]
|
106
|
+
def add_vouchers(korona_account_id, body, opts = {})
|
107
|
+
data, _status_code, _headers = add_vouchers_with_http_info(korona_account_id, body, opts)
|
108
|
+
data
|
109
|
+
end
|
110
|
+
|
111
|
+
# adds a batch of new vouchers
|
112
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
113
|
+
# @param body [Array<VoucherResource>] array of new vouchers
|
114
|
+
# @param [Hash] opts the optional parameters
|
115
|
+
# @option opts [Boolean] :upsert when set to true, updates the object instead of generating a already-exists-error
|
116
|
+
# @return [Array<(Array<AddOrUpdateResult>, Integer, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers
|
117
|
+
def add_vouchers_with_http_info(korona_account_id, body, opts = {})
|
118
|
+
if @api_client.config.debugging
|
119
|
+
@api_client.config.logger.debug 'Calling API: VouchersApi.add_vouchers ...'
|
120
|
+
end
|
121
|
+
# verify the required parameter 'korona_account_id' is set
|
122
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
123
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling VouchersApi.add_vouchers"
|
124
|
+
end
|
125
|
+
# verify the required parameter 'body' is set
|
126
|
+
if @api_client.config.client_side_validation && body.nil?
|
127
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling VouchersApi.add_vouchers"
|
128
|
+
end
|
129
|
+
# resource path
|
130
|
+
local_var_path = '/accounts/{koronaAccountId}/vouchers'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
131
|
+
|
132
|
+
# query parameters
|
133
|
+
query_params = opts[:query_params] || {}
|
134
|
+
query_params[:'upsert'] = opts[:'upsert'] if !opts[:'upsert'].nil?
|
135
|
+
|
136
|
+
# header parameters
|
137
|
+
header_params = opts[:header_params] || {}
|
138
|
+
# HTTP header 'Accept' (if needed)
|
139
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
140
|
+
# HTTP header 'Content-Type'
|
141
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
142
|
+
if !content_type.nil?
|
143
|
+
header_params['Content-Type'] = content_type
|
144
|
+
end
|
145
|
+
|
146
|
+
# form parameters
|
147
|
+
form_params = opts[:form_params] || {}
|
148
|
+
|
149
|
+
# http body (model)
|
150
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
151
|
+
|
152
|
+
# return_type
|
153
|
+
return_type = opts[:debug_return_type] || 'Array<AddOrUpdateResult>'
|
154
|
+
|
155
|
+
# auth_names
|
156
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
157
|
+
|
158
|
+
new_options = opts.merge(
|
159
|
+
:operation => :"VouchersApi.add_vouchers",
|
160
|
+
:header_params => header_params,
|
161
|
+
:query_params => query_params,
|
162
|
+
:form_params => form_params,
|
163
|
+
:body => post_body,
|
164
|
+
:auth_names => auth_names,
|
165
|
+
:return_type => return_type
|
166
|
+
)
|
167
|
+
|
168
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
169
|
+
if @api_client.config.debugging
|
170
|
+
@api_client.config.logger.debug "API called: VouchersApi#add_vouchers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
171
|
+
end
|
172
|
+
return data, status_code, headers
|
173
|
+
end
|
174
|
+
|
175
|
+
# deletes the single voucher
|
176
|
+
# @param voucher_id [String] id of the related object (important: id should match the uuid-format)
|
177
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
178
|
+
# @param [Hash] opts the optional parameters
|
179
|
+
# @return [nil]
|
180
|
+
def delete_voucher(voucher_id, korona_account_id, opts = {})
|
181
|
+
delete_voucher_with_http_info(voucher_id, korona_account_id, opts)
|
182
|
+
nil
|
183
|
+
end
|
184
|
+
|
185
|
+
# deletes the single voucher
|
186
|
+
# @param voucher_id [String] id of the related object (important: id should match the uuid-format)
|
187
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
188
|
+
# @param [Hash] opts the optional parameters
|
189
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
190
|
+
def delete_voucher_with_http_info(voucher_id, korona_account_id, opts = {})
|
191
|
+
if @api_client.config.debugging
|
192
|
+
@api_client.config.logger.debug 'Calling API: VouchersApi.delete_voucher ...'
|
193
|
+
end
|
194
|
+
# verify the required parameter 'voucher_id' is set
|
195
|
+
if @api_client.config.client_side_validation && voucher_id.nil?
|
196
|
+
fail ArgumentError, "Missing the required parameter 'voucher_id' when calling VouchersApi.delete_voucher"
|
197
|
+
end
|
198
|
+
# verify the required parameter 'korona_account_id' is set
|
199
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
200
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling VouchersApi.delete_voucher"
|
201
|
+
end
|
202
|
+
# resource path
|
203
|
+
local_var_path = '/accounts/{koronaAccountId}/vouchers/{voucherId}'.sub('{' + 'voucherId' + '}', CGI.escape(voucher_id.to_s)).sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
204
|
+
|
205
|
+
# query parameters
|
206
|
+
query_params = opts[:query_params] || {}
|
207
|
+
|
208
|
+
# header parameters
|
209
|
+
header_params = opts[:header_params] || {}
|
210
|
+
# HTTP header 'Accept' (if needed)
|
211
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
212
|
+
|
213
|
+
# form parameters
|
214
|
+
form_params = opts[:form_params] || {}
|
215
|
+
|
216
|
+
# http body (model)
|
217
|
+
post_body = opts[:debug_body]
|
218
|
+
|
219
|
+
# return_type
|
220
|
+
return_type = opts[:debug_return_type]
|
221
|
+
|
222
|
+
# auth_names
|
223
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
224
|
+
|
225
|
+
new_options = opts.merge(
|
226
|
+
:operation => :"VouchersApi.delete_voucher",
|
227
|
+
:header_params => header_params,
|
228
|
+
:query_params => query_params,
|
229
|
+
:form_params => form_params,
|
230
|
+
:body => post_body,
|
231
|
+
:auth_names => auth_names,
|
232
|
+
:return_type => return_type
|
233
|
+
)
|
234
|
+
|
235
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
236
|
+
if @api_client.config.debugging
|
237
|
+
@api_client.config.logger.debug "API called: VouchersApi#delete_voucher\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
238
|
+
end
|
239
|
+
return data, status_code, headers
|
240
|
+
end
|
241
|
+
|
242
|
+
# deletes a batch of vouchers
|
243
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
244
|
+
# @param body [Array<VoucherResource>] array of existing vouchers (id or number required)
|
245
|
+
# @param [Hash] opts the optional parameters
|
246
|
+
# @return [Array<AddOrUpdateResult>]
|
247
|
+
def delete_vouchers(korona_account_id, body, opts = {})
|
248
|
+
data, _status_code, _headers = delete_vouchers_with_http_info(korona_account_id, body, opts)
|
249
|
+
data
|
250
|
+
end
|
251
|
+
|
252
|
+
# deletes a batch of vouchers
|
253
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
254
|
+
# @param body [Array<VoucherResource>] array of existing vouchers (id or number required)
|
255
|
+
# @param [Hash] opts the optional parameters
|
256
|
+
# @return [Array<(Array<AddOrUpdateResult>, Integer, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers
|
257
|
+
def delete_vouchers_with_http_info(korona_account_id, body, opts = {})
|
258
|
+
if @api_client.config.debugging
|
259
|
+
@api_client.config.logger.debug 'Calling API: VouchersApi.delete_vouchers ...'
|
260
|
+
end
|
261
|
+
# verify the required parameter 'korona_account_id' is set
|
262
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
263
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling VouchersApi.delete_vouchers"
|
264
|
+
end
|
265
|
+
# verify the required parameter 'body' is set
|
266
|
+
if @api_client.config.client_side_validation && body.nil?
|
267
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling VouchersApi.delete_vouchers"
|
268
|
+
end
|
269
|
+
# resource path
|
270
|
+
local_var_path = '/accounts/{koronaAccountId}/vouchers'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
271
|
+
|
272
|
+
# query parameters
|
273
|
+
query_params = opts[:query_params] || {}
|
274
|
+
|
275
|
+
# header parameters
|
276
|
+
header_params = opts[:header_params] || {}
|
277
|
+
# HTTP header 'Accept' (if needed)
|
278
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
279
|
+
# HTTP header 'Content-Type'
|
280
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
281
|
+
if !content_type.nil?
|
282
|
+
header_params['Content-Type'] = content_type
|
283
|
+
end
|
284
|
+
|
285
|
+
# form parameters
|
286
|
+
form_params = opts[:form_params] || {}
|
287
|
+
|
288
|
+
# http body (model)
|
289
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
290
|
+
|
291
|
+
# return_type
|
292
|
+
return_type = opts[:debug_return_type] || 'Array<AddOrUpdateResult>'
|
293
|
+
|
294
|
+
# auth_names
|
295
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
296
|
+
|
297
|
+
new_options = opts.merge(
|
298
|
+
:operation => :"VouchersApi.delete_vouchers",
|
299
|
+
:header_params => header_params,
|
300
|
+
:query_params => query_params,
|
301
|
+
:form_params => form_params,
|
302
|
+
:body => post_body,
|
303
|
+
:auth_names => auth_names,
|
304
|
+
:return_type => return_type
|
305
|
+
)
|
306
|
+
|
307
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
308
|
+
if @api_client.config.debugging
|
309
|
+
@api_client.config.logger.debug "API called: VouchersApi#delete_vouchers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
310
|
+
end
|
311
|
+
return data, status_code, headers
|
312
|
+
end
|
313
|
+
|
314
|
+
# returns the single voucher
|
315
|
+
# @param voucher_id [String] id of the related object (important: id should match the uuid-format)
|
316
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
317
|
+
# @param [Hash] opts the optional parameters
|
318
|
+
# @return [VoucherResource]
|
319
|
+
def get_voucher(voucher_id, korona_account_id, opts = {})
|
320
|
+
data, _status_code, _headers = get_voucher_with_http_info(voucher_id, korona_account_id, opts)
|
321
|
+
data
|
322
|
+
end
|
323
|
+
|
324
|
+
# returns the single voucher
|
325
|
+
# @param voucher_id [String] id of the related object (important: id should match the uuid-format)
|
326
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
327
|
+
# @param [Hash] opts the optional parameters
|
328
|
+
# @return [Array<(VoucherResource, Integer, Hash)>] VoucherResource data, response status code and response headers
|
329
|
+
def get_voucher_with_http_info(voucher_id, korona_account_id, opts = {})
|
330
|
+
if @api_client.config.debugging
|
331
|
+
@api_client.config.logger.debug 'Calling API: VouchersApi.get_voucher ...'
|
332
|
+
end
|
333
|
+
# verify the required parameter 'voucher_id' is set
|
334
|
+
if @api_client.config.client_side_validation && voucher_id.nil?
|
335
|
+
fail ArgumentError, "Missing the required parameter 'voucher_id' when calling VouchersApi.get_voucher"
|
336
|
+
end
|
337
|
+
# verify the required parameter 'korona_account_id' is set
|
338
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
339
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling VouchersApi.get_voucher"
|
340
|
+
end
|
341
|
+
# resource path
|
342
|
+
local_var_path = '/accounts/{koronaAccountId}/vouchers/{voucherId}'.sub('{' + 'voucherId' + '}', CGI.escape(voucher_id.to_s)).sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
343
|
+
|
344
|
+
# query parameters
|
345
|
+
query_params = opts[:query_params] || {}
|
346
|
+
|
347
|
+
# header parameters
|
348
|
+
header_params = opts[:header_params] || {}
|
349
|
+
# HTTP header 'Accept' (if needed)
|
350
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
351
|
+
|
352
|
+
# form parameters
|
353
|
+
form_params = opts[:form_params] || {}
|
354
|
+
|
355
|
+
# http body (model)
|
356
|
+
post_body = opts[:debug_body]
|
357
|
+
|
358
|
+
# return_type
|
359
|
+
return_type = opts[:debug_return_type] || 'VoucherResource'
|
360
|
+
|
361
|
+
# auth_names
|
362
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
363
|
+
|
364
|
+
new_options = opts.merge(
|
365
|
+
:operation => :"VouchersApi.get_voucher",
|
366
|
+
:header_params => header_params,
|
367
|
+
:query_params => query_params,
|
368
|
+
:form_params => form_params,
|
369
|
+
:body => post_body,
|
370
|
+
:auth_names => auth_names,
|
371
|
+
:return_type => return_type
|
372
|
+
)
|
373
|
+
|
374
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
375
|
+
if @api_client.config.debugging
|
376
|
+
@api_client.config.logger.debug "API called: VouchersApi#get_voucher\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
377
|
+
end
|
378
|
+
return data, status_code, headers
|
379
|
+
end
|
380
|
+
|
381
|
+
# returns the single voucher transaction
|
382
|
+
# @param voucher_transaction_id [String] id of the related object (important: id should match the uuid-format)
|
383
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
384
|
+
# @param [Hash] opts the optional parameters
|
385
|
+
# @return [VoucherTransactionResource]
|
386
|
+
def get_voucher_transaction(voucher_transaction_id, korona_account_id, opts = {})
|
387
|
+
data, _status_code, _headers = get_voucher_transaction_with_http_info(voucher_transaction_id, korona_account_id, opts)
|
388
|
+
data
|
389
|
+
end
|
390
|
+
|
391
|
+
# returns the single voucher transaction
|
392
|
+
# @param voucher_transaction_id [String] id of the related object (important: id should match the uuid-format)
|
393
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
394
|
+
# @param [Hash] opts the optional parameters
|
395
|
+
# @return [Array<(VoucherTransactionResource, Integer, Hash)>] VoucherTransactionResource data, response status code and response headers
|
396
|
+
def get_voucher_transaction_with_http_info(voucher_transaction_id, korona_account_id, opts = {})
|
397
|
+
if @api_client.config.debugging
|
398
|
+
@api_client.config.logger.debug 'Calling API: VouchersApi.get_voucher_transaction ...'
|
399
|
+
end
|
400
|
+
# verify the required parameter 'voucher_transaction_id' is set
|
401
|
+
if @api_client.config.client_side_validation && voucher_transaction_id.nil?
|
402
|
+
fail ArgumentError, "Missing the required parameter 'voucher_transaction_id' when calling VouchersApi.get_voucher_transaction"
|
403
|
+
end
|
404
|
+
# verify the required parameter 'korona_account_id' is set
|
405
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
406
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling VouchersApi.get_voucher_transaction"
|
407
|
+
end
|
408
|
+
# resource path
|
409
|
+
local_var_path = '/accounts/{koronaAccountId}/voucherTransactions/{voucherTransactionId}'.sub('{' + 'voucherTransactionId' + '}', CGI.escape(voucher_transaction_id.to_s)).sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
410
|
+
|
411
|
+
# query parameters
|
412
|
+
query_params = opts[:query_params] || {}
|
413
|
+
|
414
|
+
# header parameters
|
415
|
+
header_params = opts[:header_params] || {}
|
416
|
+
# HTTP header 'Accept' (if needed)
|
417
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
418
|
+
|
419
|
+
# form parameters
|
420
|
+
form_params = opts[:form_params] || {}
|
421
|
+
|
422
|
+
# http body (model)
|
423
|
+
post_body = opts[:debug_body]
|
424
|
+
|
425
|
+
# return_type
|
426
|
+
return_type = opts[:debug_return_type] || 'VoucherTransactionResource'
|
427
|
+
|
428
|
+
# auth_names
|
429
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
430
|
+
|
431
|
+
new_options = opts.merge(
|
432
|
+
:operation => :"VouchersApi.get_voucher_transaction",
|
433
|
+
:header_params => header_params,
|
434
|
+
:query_params => query_params,
|
435
|
+
:form_params => form_params,
|
436
|
+
:body => post_body,
|
437
|
+
:auth_names => auth_names,
|
438
|
+
:return_type => return_type
|
439
|
+
)
|
440
|
+
|
441
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
442
|
+
if @api_client.config.debugging
|
443
|
+
@api_client.config.logger.debug "API called: VouchersApi#get_voucher_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
444
|
+
end
|
445
|
+
return data, status_code, headers
|
446
|
+
end
|
447
|
+
|
448
|
+
# returns all voucher transactions
|
449
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
450
|
+
# @param [Hash] opts the optional parameters
|
451
|
+
# @option opts [Integer] :page number of the page to fetch
|
452
|
+
# @option opts [Integer] :size amount of objects to return per page
|
453
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
454
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
455
|
+
# @return [ResultListVoucherTransactionResource]
|
456
|
+
def get_voucher_transactions(korona_account_id, opts = {})
|
457
|
+
data, _status_code, _headers = get_voucher_transactions_with_http_info(korona_account_id, opts)
|
458
|
+
data
|
459
|
+
end
|
460
|
+
|
461
|
+
# returns all voucher transactions
|
462
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
463
|
+
# @param [Hash] opts the optional parameters
|
464
|
+
# @option opts [Integer] :page number of the page to fetch
|
465
|
+
# @option opts [Integer] :size amount of objects to return per page
|
466
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
467
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
468
|
+
# @return [Array<(ResultListVoucherTransactionResource, Integer, Hash)>] ResultListVoucherTransactionResource data, response status code and response headers
|
469
|
+
def get_voucher_transactions_with_http_info(korona_account_id, opts = {})
|
470
|
+
if @api_client.config.debugging
|
471
|
+
@api_client.config.logger.debug 'Calling API: VouchersApi.get_voucher_transactions ...'
|
472
|
+
end
|
473
|
+
# verify the required parameter 'korona_account_id' is set
|
474
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
475
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling VouchersApi.get_voucher_transactions"
|
476
|
+
end
|
477
|
+
# resource path
|
478
|
+
local_var_path = '/accounts/{koronaAccountId}/voucherTransactions'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
479
|
+
|
480
|
+
# query parameters
|
481
|
+
query_params = opts[:query_params] || {}
|
482
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
483
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
484
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
485
|
+
query_params[:'revision'] = opts[:'revision'] if !opts[:'revision'].nil?
|
486
|
+
|
487
|
+
# header parameters
|
488
|
+
header_params = opts[:header_params] || {}
|
489
|
+
# HTTP header 'Accept' (if needed)
|
490
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
491
|
+
|
492
|
+
# form parameters
|
493
|
+
form_params = opts[:form_params] || {}
|
494
|
+
|
495
|
+
# http body (model)
|
496
|
+
post_body = opts[:debug_body]
|
497
|
+
|
498
|
+
# return_type
|
499
|
+
return_type = opts[:debug_return_type] || 'ResultListVoucherTransactionResource'
|
500
|
+
|
501
|
+
# auth_names
|
502
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
503
|
+
|
504
|
+
new_options = opts.merge(
|
505
|
+
:operation => :"VouchersApi.get_voucher_transactions",
|
506
|
+
:header_params => header_params,
|
507
|
+
:query_params => query_params,
|
508
|
+
:form_params => form_params,
|
509
|
+
:body => post_body,
|
510
|
+
:auth_names => auth_names,
|
511
|
+
:return_type => return_type
|
512
|
+
)
|
513
|
+
|
514
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
515
|
+
if @api_client.config.debugging
|
516
|
+
@api_client.config.logger.debug "API called: VouchersApi#get_voucher_transactions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
517
|
+
end
|
518
|
+
return data, status_code, headers
|
519
|
+
end
|
520
|
+
|
521
|
+
# returns the single voucher transaction
|
522
|
+
# @param voucher_id [String] id of the related object (important: id should match the uuid-format)
|
523
|
+
# @param voucher_transaction_id [String] id of the related object (important: id should match the uuid-format)
|
524
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
525
|
+
# @param [Hash] opts the optional parameters
|
526
|
+
# @return [VoucherTransactionResource]
|
527
|
+
def get_voucher_voucher_transaction(voucher_id, voucher_transaction_id, korona_account_id, opts = {})
|
528
|
+
data, _status_code, _headers = get_voucher_voucher_transaction_with_http_info(voucher_id, voucher_transaction_id, korona_account_id, opts)
|
529
|
+
data
|
530
|
+
end
|
531
|
+
|
532
|
+
# returns the single voucher transaction
|
533
|
+
# @param voucher_id [String] id of the related object (important: id should match the uuid-format)
|
534
|
+
# @param voucher_transaction_id [String] id of the related object (important: id should match the uuid-format)
|
535
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
536
|
+
# @param [Hash] opts the optional parameters
|
537
|
+
# @return [Array<(VoucherTransactionResource, Integer, Hash)>] VoucherTransactionResource data, response status code and response headers
|
538
|
+
def get_voucher_voucher_transaction_with_http_info(voucher_id, voucher_transaction_id, korona_account_id, opts = {})
|
539
|
+
if @api_client.config.debugging
|
540
|
+
@api_client.config.logger.debug 'Calling API: VouchersApi.get_voucher_voucher_transaction ...'
|
541
|
+
end
|
542
|
+
# verify the required parameter 'voucher_id' is set
|
543
|
+
if @api_client.config.client_side_validation && voucher_id.nil?
|
544
|
+
fail ArgumentError, "Missing the required parameter 'voucher_id' when calling VouchersApi.get_voucher_voucher_transaction"
|
545
|
+
end
|
546
|
+
# verify the required parameter 'voucher_transaction_id' is set
|
547
|
+
if @api_client.config.client_side_validation && voucher_transaction_id.nil?
|
548
|
+
fail ArgumentError, "Missing the required parameter 'voucher_transaction_id' when calling VouchersApi.get_voucher_voucher_transaction"
|
549
|
+
end
|
550
|
+
# verify the required parameter 'korona_account_id' is set
|
551
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
552
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling VouchersApi.get_voucher_voucher_transaction"
|
553
|
+
end
|
554
|
+
# resource path
|
555
|
+
local_var_path = '/accounts/{koronaAccountId}/vouchers/{voucherId}/transactions/{voucherTransactionId}'.sub('{' + 'voucherId' + '}', CGI.escape(voucher_id.to_s)).sub('{' + 'voucherTransactionId' + '}', CGI.escape(voucher_transaction_id.to_s)).sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
556
|
+
|
557
|
+
# query parameters
|
558
|
+
query_params = opts[:query_params] || {}
|
559
|
+
|
560
|
+
# header parameters
|
561
|
+
header_params = opts[:header_params] || {}
|
562
|
+
# HTTP header 'Accept' (if needed)
|
563
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
564
|
+
|
565
|
+
# form parameters
|
566
|
+
form_params = opts[:form_params] || {}
|
567
|
+
|
568
|
+
# http body (model)
|
569
|
+
post_body = opts[:debug_body]
|
570
|
+
|
571
|
+
# return_type
|
572
|
+
return_type = opts[:debug_return_type] || 'VoucherTransactionResource'
|
573
|
+
|
574
|
+
# auth_names
|
575
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
576
|
+
|
577
|
+
new_options = opts.merge(
|
578
|
+
:operation => :"VouchersApi.get_voucher_voucher_transaction",
|
579
|
+
:header_params => header_params,
|
580
|
+
:query_params => query_params,
|
581
|
+
:form_params => form_params,
|
582
|
+
:body => post_body,
|
583
|
+
:auth_names => auth_names,
|
584
|
+
:return_type => return_type
|
585
|
+
)
|
586
|
+
|
587
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
588
|
+
if @api_client.config.debugging
|
589
|
+
@api_client.config.logger.debug "API called: VouchersApi#get_voucher_voucher_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
590
|
+
end
|
591
|
+
return data, status_code, headers
|
592
|
+
end
|
593
|
+
|
594
|
+
# returns all voucher transaction of specified voucher
|
595
|
+
# @param voucher_id [String] id of the related object (important: id should match the uuid-format)
|
596
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
597
|
+
# @param [Hash] opts the optional parameters
|
598
|
+
# @option opts [Integer] :page number of the page to fetch
|
599
|
+
# @option opts [Integer] :size amount of objects to return per page
|
600
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
601
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
602
|
+
# @return [ResultListVoucherTransactionResource]
|
603
|
+
def get_voucher_voucher_transactions(voucher_id, korona_account_id, opts = {})
|
604
|
+
data, _status_code, _headers = get_voucher_voucher_transactions_with_http_info(voucher_id, korona_account_id, opts)
|
605
|
+
data
|
606
|
+
end
|
607
|
+
|
608
|
+
# returns all voucher transaction of specified voucher
|
609
|
+
# @param voucher_id [String] id of the related object (important: id should match the uuid-format)
|
610
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
611
|
+
# @param [Hash] opts the optional parameters
|
612
|
+
# @option opts [Integer] :page number of the page to fetch
|
613
|
+
# @option opts [Integer] :size amount of objects to return per page
|
614
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
615
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
616
|
+
# @return [Array<(ResultListVoucherTransactionResource, Integer, Hash)>] ResultListVoucherTransactionResource data, response status code and response headers
|
617
|
+
def get_voucher_voucher_transactions_with_http_info(voucher_id, korona_account_id, opts = {})
|
618
|
+
if @api_client.config.debugging
|
619
|
+
@api_client.config.logger.debug 'Calling API: VouchersApi.get_voucher_voucher_transactions ...'
|
620
|
+
end
|
621
|
+
# verify the required parameter 'voucher_id' is set
|
622
|
+
if @api_client.config.client_side_validation && voucher_id.nil?
|
623
|
+
fail ArgumentError, "Missing the required parameter 'voucher_id' when calling VouchersApi.get_voucher_voucher_transactions"
|
624
|
+
end
|
625
|
+
# verify the required parameter 'korona_account_id' is set
|
626
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
627
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling VouchersApi.get_voucher_voucher_transactions"
|
628
|
+
end
|
629
|
+
# resource path
|
630
|
+
local_var_path = '/accounts/{koronaAccountId}/vouchers/{voucherId}/transactions'.sub('{' + 'voucherId' + '}', CGI.escape(voucher_id.to_s)).sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
631
|
+
|
632
|
+
# query parameters
|
633
|
+
query_params = opts[:query_params] || {}
|
634
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
635
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
636
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
637
|
+
query_params[:'revision'] = opts[:'revision'] if !opts[:'revision'].nil?
|
638
|
+
|
639
|
+
# header parameters
|
640
|
+
header_params = opts[:header_params] || {}
|
641
|
+
# HTTP header 'Accept' (if needed)
|
642
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
643
|
+
|
644
|
+
# form parameters
|
645
|
+
form_params = opts[:form_params] || {}
|
646
|
+
|
647
|
+
# http body (model)
|
648
|
+
post_body = opts[:debug_body]
|
649
|
+
|
650
|
+
# return_type
|
651
|
+
return_type = opts[:debug_return_type] || 'ResultListVoucherTransactionResource'
|
652
|
+
|
653
|
+
# auth_names
|
654
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
655
|
+
|
656
|
+
new_options = opts.merge(
|
657
|
+
:operation => :"VouchersApi.get_voucher_voucher_transactions",
|
658
|
+
:header_params => header_params,
|
659
|
+
:query_params => query_params,
|
660
|
+
:form_params => form_params,
|
661
|
+
:body => post_body,
|
662
|
+
:auth_names => auth_names,
|
663
|
+
:return_type => return_type
|
664
|
+
)
|
665
|
+
|
666
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
667
|
+
if @api_client.config.debugging
|
668
|
+
@api_client.config.logger.debug "API called: VouchersApi#get_voucher_voucher_transactions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
669
|
+
end
|
670
|
+
return data, status_code, headers
|
671
|
+
end
|
672
|
+
|
673
|
+
# lists all vouchers
|
674
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
675
|
+
# @param [Hash] opts the optional parameters
|
676
|
+
# @option opts [Integer] :page number of the page to fetch
|
677
|
+
# @option opts [Integer] :size amount of objects to return per page
|
678
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
679
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
680
|
+
# @option opts [Boolean] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
681
|
+
# @option opts [String] :tag voucher configuration id to filter by
|
682
|
+
# @option opts [String] :customer voucher configuration id to filter by
|
683
|
+
# @option opts [String] :number number of the related object
|
684
|
+
# @return [ResultListVoucherResource]
|
685
|
+
def get_vouchers(korona_account_id, opts = {})
|
686
|
+
data, _status_code, _headers = get_vouchers_with_http_info(korona_account_id, opts)
|
687
|
+
data
|
688
|
+
end
|
689
|
+
|
690
|
+
# lists all vouchers
|
691
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
692
|
+
# @param [Hash] opts the optional parameters
|
693
|
+
# @option opts [Integer] :page number of the page to fetch
|
694
|
+
# @option opts [Integer] :size amount of objects to return per page
|
695
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
696
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
697
|
+
# @option opts [Boolean] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
698
|
+
# @option opts [String] :tag voucher configuration id to filter by
|
699
|
+
# @option opts [String] :customer voucher configuration id to filter by
|
700
|
+
# @option opts [String] :number number of the related object
|
701
|
+
# @return [Array<(ResultListVoucherResource, Integer, Hash)>] ResultListVoucherResource data, response status code and response headers
|
702
|
+
def get_vouchers_with_http_info(korona_account_id, opts = {})
|
703
|
+
if @api_client.config.debugging
|
704
|
+
@api_client.config.logger.debug 'Calling API: VouchersApi.get_vouchers ...'
|
705
|
+
end
|
706
|
+
# verify the required parameter 'korona_account_id' is set
|
707
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
708
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling VouchersApi.get_vouchers"
|
709
|
+
end
|
710
|
+
# resource path
|
711
|
+
local_var_path = '/accounts/{koronaAccountId}/vouchers'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
712
|
+
|
713
|
+
# query parameters
|
714
|
+
query_params = opts[:query_params] || {}
|
715
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
716
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
717
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
718
|
+
query_params[:'revision'] = opts[:'revision'] if !opts[:'revision'].nil?
|
719
|
+
query_params[:'includeDeleted'] = opts[:'include_deleted'] if !opts[:'include_deleted'].nil?
|
720
|
+
query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
|
721
|
+
query_params[:'customer'] = opts[:'customer'] if !opts[:'customer'].nil?
|
722
|
+
query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
|
723
|
+
|
724
|
+
# header parameters
|
725
|
+
header_params = opts[:header_params] || {}
|
726
|
+
# HTTP header 'Accept' (if needed)
|
727
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
728
|
+
|
729
|
+
# form parameters
|
730
|
+
form_params = opts[:form_params] || {}
|
731
|
+
|
732
|
+
# http body (model)
|
733
|
+
post_body = opts[:debug_body]
|
734
|
+
|
735
|
+
# return_type
|
736
|
+
return_type = opts[:debug_return_type] || 'ResultListVoucherResource'
|
737
|
+
|
738
|
+
# auth_names
|
739
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
740
|
+
|
741
|
+
new_options = opts.merge(
|
742
|
+
:operation => :"VouchersApi.get_vouchers",
|
743
|
+
:header_params => header_params,
|
744
|
+
:query_params => query_params,
|
745
|
+
:form_params => form_params,
|
746
|
+
:body => post_body,
|
747
|
+
:auth_names => auth_names,
|
748
|
+
:return_type => return_type
|
749
|
+
)
|
750
|
+
|
751
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
752
|
+
if @api_client.config.debugging
|
753
|
+
@api_client.config.logger.debug "API called: VouchersApi#get_vouchers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
754
|
+
end
|
755
|
+
return data, status_code, headers
|
756
|
+
end
|
757
|
+
|
758
|
+
# updates the single voucher
|
759
|
+
# if [number] is set, the number of the object will change and the resource location as well
|
760
|
+
# @param voucher_id [String] id of the related object (important: id should match the uuid-format)
|
761
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
762
|
+
# @param body [VoucherResource] the properties to update of the voucher
|
763
|
+
# @param [Hash] opts the optional parameters
|
764
|
+
# @return [nil]
|
765
|
+
def update_voucher(voucher_id, korona_account_id, body, opts = {})
|
766
|
+
update_voucher_with_http_info(voucher_id, korona_account_id, body, opts)
|
767
|
+
nil
|
768
|
+
end
|
769
|
+
|
770
|
+
# updates the single voucher
|
771
|
+
# if [number] is set, the number of the object will change and the resource location as well
|
772
|
+
# @param voucher_id [String] id of the related object (important: id should match the uuid-format)
|
773
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
774
|
+
# @param body [VoucherResource] the properties to update of the voucher
|
775
|
+
# @param [Hash] opts the optional parameters
|
776
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
777
|
+
def update_voucher_with_http_info(voucher_id, korona_account_id, body, opts = {})
|
778
|
+
if @api_client.config.debugging
|
779
|
+
@api_client.config.logger.debug 'Calling API: VouchersApi.update_voucher ...'
|
780
|
+
end
|
781
|
+
# verify the required parameter 'voucher_id' is set
|
782
|
+
if @api_client.config.client_side_validation && voucher_id.nil?
|
783
|
+
fail ArgumentError, "Missing the required parameter 'voucher_id' when calling VouchersApi.update_voucher"
|
784
|
+
end
|
785
|
+
# verify the required parameter 'korona_account_id' is set
|
786
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
787
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling VouchersApi.update_voucher"
|
788
|
+
end
|
789
|
+
# verify the required parameter 'body' is set
|
790
|
+
if @api_client.config.client_side_validation && body.nil?
|
791
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling VouchersApi.update_voucher"
|
792
|
+
end
|
793
|
+
# resource path
|
794
|
+
local_var_path = '/accounts/{koronaAccountId}/vouchers/{voucherId}'.sub('{' + 'voucherId' + '}', CGI.escape(voucher_id.to_s)).sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
795
|
+
|
796
|
+
# query parameters
|
797
|
+
query_params = opts[:query_params] || {}
|
798
|
+
|
799
|
+
# header parameters
|
800
|
+
header_params = opts[:header_params] || {}
|
801
|
+
# HTTP header 'Accept' (if needed)
|
802
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
803
|
+
# HTTP header 'Content-Type'
|
804
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
805
|
+
if !content_type.nil?
|
806
|
+
header_params['Content-Type'] = content_type
|
807
|
+
end
|
808
|
+
|
809
|
+
# form parameters
|
810
|
+
form_params = opts[:form_params] || {}
|
811
|
+
|
812
|
+
# http body (model)
|
813
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
814
|
+
|
815
|
+
# return_type
|
816
|
+
return_type = opts[:debug_return_type]
|
817
|
+
|
818
|
+
# auth_names
|
819
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
820
|
+
|
821
|
+
new_options = opts.merge(
|
822
|
+
:operation => :"VouchersApi.update_voucher",
|
823
|
+
:header_params => header_params,
|
824
|
+
:query_params => query_params,
|
825
|
+
:form_params => form_params,
|
826
|
+
:body => post_body,
|
827
|
+
:auth_names => auth_names,
|
828
|
+
:return_type => return_type
|
829
|
+
)
|
830
|
+
|
831
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
832
|
+
if @api_client.config.debugging
|
833
|
+
@api_client.config.logger.debug "API called: VouchersApi#update_voucher\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
834
|
+
end
|
835
|
+
return data, status_code, headers
|
836
|
+
end
|
837
|
+
|
838
|
+
# updates the voucher transaction
|
839
|
+
# @param voucher_id [String] id of the related object (important: id should match the uuid-format)
|
840
|
+
# @param voucher_transaction_id [String] id of the related object (important: id should match the uuid-format)
|
841
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
842
|
+
# @param body [VoucherTransactionResource] the properties to update of the voucher transaction
|
843
|
+
# @param [Hash] opts the optional parameters
|
844
|
+
# @return [nil]
|
845
|
+
def update_voucher_voucher_transaction(voucher_id, voucher_transaction_id, korona_account_id, body, opts = {})
|
846
|
+
update_voucher_voucher_transaction_with_http_info(voucher_id, voucher_transaction_id, korona_account_id, body, opts)
|
847
|
+
nil
|
848
|
+
end
|
849
|
+
|
850
|
+
# updates the voucher transaction
|
851
|
+
# @param voucher_id [String] id of the related object (important: id should match the uuid-format)
|
852
|
+
# @param voucher_transaction_id [String] id of the related object (important: id should match the uuid-format)
|
853
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
854
|
+
# @param body [VoucherTransactionResource] the properties to update of the voucher transaction
|
855
|
+
# @param [Hash] opts the optional parameters
|
856
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
857
|
+
def update_voucher_voucher_transaction_with_http_info(voucher_id, voucher_transaction_id, korona_account_id, body, opts = {})
|
858
|
+
if @api_client.config.debugging
|
859
|
+
@api_client.config.logger.debug 'Calling API: VouchersApi.update_voucher_voucher_transaction ...'
|
860
|
+
end
|
861
|
+
# verify the required parameter 'voucher_id' is set
|
862
|
+
if @api_client.config.client_side_validation && voucher_id.nil?
|
863
|
+
fail ArgumentError, "Missing the required parameter 'voucher_id' when calling VouchersApi.update_voucher_voucher_transaction"
|
864
|
+
end
|
865
|
+
# verify the required parameter 'voucher_transaction_id' is set
|
866
|
+
if @api_client.config.client_side_validation && voucher_transaction_id.nil?
|
867
|
+
fail ArgumentError, "Missing the required parameter 'voucher_transaction_id' when calling VouchersApi.update_voucher_voucher_transaction"
|
868
|
+
end
|
869
|
+
# verify the required parameter 'korona_account_id' is set
|
870
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
871
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling VouchersApi.update_voucher_voucher_transaction"
|
872
|
+
end
|
873
|
+
# verify the required parameter 'body' is set
|
874
|
+
if @api_client.config.client_side_validation && body.nil?
|
875
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling VouchersApi.update_voucher_voucher_transaction"
|
876
|
+
end
|
877
|
+
# resource path
|
878
|
+
local_var_path = '/accounts/{koronaAccountId}/vouchers/{voucherId}/transactions/{voucherTransactionId}'.sub('{' + 'voucherId' + '}', CGI.escape(voucher_id.to_s)).sub('{' + 'voucherTransactionId' + '}', CGI.escape(voucher_transaction_id.to_s)).sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
879
|
+
|
880
|
+
# query parameters
|
881
|
+
query_params = opts[:query_params] || {}
|
882
|
+
|
883
|
+
# header parameters
|
884
|
+
header_params = opts[:header_params] || {}
|
885
|
+
# HTTP header 'Accept' (if needed)
|
886
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
887
|
+
# HTTP header 'Content-Type'
|
888
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
889
|
+
if !content_type.nil?
|
890
|
+
header_params['Content-Type'] = content_type
|
891
|
+
end
|
892
|
+
|
893
|
+
# form parameters
|
894
|
+
form_params = opts[:form_params] || {}
|
895
|
+
|
896
|
+
# http body (model)
|
897
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
898
|
+
|
899
|
+
# return_type
|
900
|
+
return_type = opts[:debug_return_type]
|
901
|
+
|
902
|
+
# auth_names
|
903
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
904
|
+
|
905
|
+
new_options = opts.merge(
|
906
|
+
:operation => :"VouchersApi.update_voucher_voucher_transaction",
|
907
|
+
:header_params => header_params,
|
908
|
+
:query_params => query_params,
|
909
|
+
:form_params => form_params,
|
910
|
+
:body => post_body,
|
911
|
+
:auth_names => auth_names,
|
912
|
+
:return_type => return_type
|
913
|
+
)
|
914
|
+
|
915
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
916
|
+
if @api_client.config.debugging
|
917
|
+
@api_client.config.logger.debug "API called: VouchersApi#update_voucher_voucher_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
918
|
+
end
|
919
|
+
return data, status_code, headers
|
920
|
+
end
|
921
|
+
|
922
|
+
# updates a batch of vouchers
|
923
|
+
# [id] must be set in the objects, otherwise the object cannot be updated
|
924
|
+
# @param voucher_id [String] id of the related object (important: id should match the uuid-format)
|
925
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
926
|
+
# @param body [Array<VoucherTransactionResource>] an array of existing voucher transactions
|
927
|
+
# @param [Hash] opts the optional parameters
|
928
|
+
# @return [Array<AddOrUpdateResult>]
|
929
|
+
def update_voucher_voucher_transactions(voucher_id, korona_account_id, body, opts = {})
|
930
|
+
data, _status_code, _headers = update_voucher_voucher_transactions_with_http_info(voucher_id, korona_account_id, body, opts)
|
931
|
+
data
|
932
|
+
end
|
933
|
+
|
934
|
+
# updates a batch of vouchers
|
935
|
+
# [id] must be set in the objects, otherwise the object cannot be updated
|
936
|
+
# @param voucher_id [String] id of the related object (important: id should match the uuid-format)
|
937
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
938
|
+
# @param body [Array<VoucherTransactionResource>] an array of existing voucher transactions
|
939
|
+
# @param [Hash] opts the optional parameters
|
940
|
+
# @return [Array<(Array<AddOrUpdateResult>, Integer, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers
|
941
|
+
def update_voucher_voucher_transactions_with_http_info(voucher_id, korona_account_id, body, opts = {})
|
942
|
+
if @api_client.config.debugging
|
943
|
+
@api_client.config.logger.debug 'Calling API: VouchersApi.update_voucher_voucher_transactions ...'
|
944
|
+
end
|
945
|
+
# verify the required parameter 'voucher_id' is set
|
946
|
+
if @api_client.config.client_side_validation && voucher_id.nil?
|
947
|
+
fail ArgumentError, "Missing the required parameter 'voucher_id' when calling VouchersApi.update_voucher_voucher_transactions"
|
948
|
+
end
|
949
|
+
# verify the required parameter 'korona_account_id' is set
|
950
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
951
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling VouchersApi.update_voucher_voucher_transactions"
|
952
|
+
end
|
953
|
+
# verify the required parameter 'body' is set
|
954
|
+
if @api_client.config.client_side_validation && body.nil?
|
955
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling VouchersApi.update_voucher_voucher_transactions"
|
956
|
+
end
|
957
|
+
# resource path
|
958
|
+
local_var_path = '/accounts/{koronaAccountId}/vouchers/{voucherId}/transactions'.sub('{' + 'voucherId' + '}', CGI.escape(voucher_id.to_s)).sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
959
|
+
|
960
|
+
# query parameters
|
961
|
+
query_params = opts[:query_params] || {}
|
962
|
+
|
963
|
+
# header parameters
|
964
|
+
header_params = opts[:header_params] || {}
|
965
|
+
# HTTP header 'Accept' (if needed)
|
966
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
967
|
+
# HTTP header 'Content-Type'
|
968
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
969
|
+
if !content_type.nil?
|
970
|
+
header_params['Content-Type'] = content_type
|
971
|
+
end
|
972
|
+
|
973
|
+
# form parameters
|
974
|
+
form_params = opts[:form_params] || {}
|
975
|
+
|
976
|
+
# http body (model)
|
977
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
978
|
+
|
979
|
+
# return_type
|
980
|
+
return_type = opts[:debug_return_type] || 'Array<AddOrUpdateResult>'
|
981
|
+
|
982
|
+
# auth_names
|
983
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
984
|
+
|
985
|
+
new_options = opts.merge(
|
986
|
+
:operation => :"VouchersApi.update_voucher_voucher_transactions",
|
987
|
+
:header_params => header_params,
|
988
|
+
:query_params => query_params,
|
989
|
+
:form_params => form_params,
|
990
|
+
:body => post_body,
|
991
|
+
:auth_names => auth_names,
|
992
|
+
:return_type => return_type
|
993
|
+
)
|
994
|
+
|
995
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
996
|
+
if @api_client.config.debugging
|
997
|
+
@api_client.config.logger.debug "API called: VouchersApi#update_voucher_voucher_transactions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
998
|
+
end
|
999
|
+
return data, status_code, headers
|
1000
|
+
end
|
1001
|
+
|
1002
|
+
# updates a batch of vouchers
|
1003
|
+
# [number] must be set in the objects, otherwise the object cannot be updated
|
1004
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
1005
|
+
# @param body [Array<VoucherResource>] an array of existing vouchers
|
1006
|
+
# @param [Hash] opts the optional parameters
|
1007
|
+
# @return [Array<AddOrUpdateResult>]
|
1008
|
+
def update_vouchers(korona_account_id, body, opts = {})
|
1009
|
+
data, _status_code, _headers = update_vouchers_with_http_info(korona_account_id, body, opts)
|
1010
|
+
data
|
1011
|
+
end
|
1012
|
+
|
1013
|
+
# updates a batch of vouchers
|
1014
|
+
# [number] must be set in the objects, otherwise the object cannot be updated
|
1015
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
1016
|
+
# @param body [Array<VoucherResource>] an array of existing vouchers
|
1017
|
+
# @param [Hash] opts the optional parameters
|
1018
|
+
# @return [Array<(Array<AddOrUpdateResult>, Integer, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers
|
1019
|
+
def update_vouchers_with_http_info(korona_account_id, body, opts = {})
|
1020
|
+
if @api_client.config.debugging
|
1021
|
+
@api_client.config.logger.debug 'Calling API: VouchersApi.update_vouchers ...'
|
1022
|
+
end
|
1023
|
+
# verify the required parameter 'korona_account_id' is set
|
1024
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
1025
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling VouchersApi.update_vouchers"
|
1026
|
+
end
|
1027
|
+
# verify the required parameter 'body' is set
|
1028
|
+
if @api_client.config.client_side_validation && body.nil?
|
1029
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling VouchersApi.update_vouchers"
|
1030
|
+
end
|
1031
|
+
# resource path
|
1032
|
+
local_var_path = '/accounts/{koronaAccountId}/vouchers'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
1033
|
+
|
1034
|
+
# query parameters
|
1035
|
+
query_params = opts[:query_params] || {}
|
1036
|
+
|
1037
|
+
# header parameters
|
1038
|
+
header_params = opts[:header_params] || {}
|
1039
|
+
# HTTP header 'Accept' (if needed)
|
1040
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1041
|
+
# HTTP header 'Content-Type'
|
1042
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
1043
|
+
if !content_type.nil?
|
1044
|
+
header_params['Content-Type'] = content_type
|
1045
|
+
end
|
1046
|
+
|
1047
|
+
# form parameters
|
1048
|
+
form_params = opts[:form_params] || {}
|
1049
|
+
|
1050
|
+
# http body (model)
|
1051
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
1052
|
+
|
1053
|
+
# return_type
|
1054
|
+
return_type = opts[:debug_return_type] || 'Array<AddOrUpdateResult>'
|
1055
|
+
|
1056
|
+
# auth_names
|
1057
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
1058
|
+
|
1059
|
+
new_options = opts.merge(
|
1060
|
+
:operation => :"VouchersApi.update_vouchers",
|
1061
|
+
:header_params => header_params,
|
1062
|
+
:query_params => query_params,
|
1063
|
+
:form_params => form_params,
|
1064
|
+
:body => post_body,
|
1065
|
+
:auth_names => auth_names,
|
1066
|
+
:return_type => return_type
|
1067
|
+
)
|
1068
|
+
|
1069
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
1070
|
+
if @api_client.config.debugging
|
1071
|
+
@api_client.config.logger.debug "API called: VouchersApi#update_vouchers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1072
|
+
end
|
1073
|
+
return data, status_code, headers
|
1074
|
+
end
|
1075
|
+
|
1076
|
+
# voids the voucher transaction
|
1077
|
+
# @param voucher_id [String] id of the related object (important: id should match the uuid-format)
|
1078
|
+
# @param voucher_transaction_id [String] id of the related object (important: id should match the uuid-format)
|
1079
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
1080
|
+
# @param [Hash] opts the optional parameters
|
1081
|
+
# @return [nil]
|
1082
|
+
def void_voucher_voucher_transaction(voucher_id, voucher_transaction_id, korona_account_id, opts = {})
|
1083
|
+
void_voucher_voucher_transaction_with_http_info(voucher_id, voucher_transaction_id, korona_account_id, opts)
|
1084
|
+
nil
|
1085
|
+
end
|
1086
|
+
|
1087
|
+
# voids the voucher transaction
|
1088
|
+
# @param voucher_id [String] id of the related object (important: id should match the uuid-format)
|
1089
|
+
# @param voucher_transaction_id [String] id of the related object (important: id should match the uuid-format)
|
1090
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
1091
|
+
# @param [Hash] opts the optional parameters
|
1092
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1093
|
+
def void_voucher_voucher_transaction_with_http_info(voucher_id, voucher_transaction_id, korona_account_id, opts = {})
|
1094
|
+
if @api_client.config.debugging
|
1095
|
+
@api_client.config.logger.debug 'Calling API: VouchersApi.void_voucher_voucher_transaction ...'
|
1096
|
+
end
|
1097
|
+
# verify the required parameter 'voucher_id' is set
|
1098
|
+
if @api_client.config.client_side_validation && voucher_id.nil?
|
1099
|
+
fail ArgumentError, "Missing the required parameter 'voucher_id' when calling VouchersApi.void_voucher_voucher_transaction"
|
1100
|
+
end
|
1101
|
+
# verify the required parameter 'voucher_transaction_id' is set
|
1102
|
+
if @api_client.config.client_side_validation && voucher_transaction_id.nil?
|
1103
|
+
fail ArgumentError, "Missing the required parameter 'voucher_transaction_id' when calling VouchersApi.void_voucher_voucher_transaction"
|
1104
|
+
end
|
1105
|
+
# verify the required parameter 'korona_account_id' is set
|
1106
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
1107
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling VouchersApi.void_voucher_voucher_transaction"
|
1108
|
+
end
|
1109
|
+
# resource path
|
1110
|
+
local_var_path = '/accounts/{koronaAccountId}/vouchers/{voucherId}/transactions/{voucherTransactionId}/void'.sub('{' + 'voucherId' + '}', CGI.escape(voucher_id.to_s)).sub('{' + 'voucherTransactionId' + '}', CGI.escape(voucher_transaction_id.to_s)).sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
1111
|
+
|
1112
|
+
# query parameters
|
1113
|
+
query_params = opts[:query_params] || {}
|
1114
|
+
|
1115
|
+
# header parameters
|
1116
|
+
header_params = opts[:header_params] || {}
|
1117
|
+
# HTTP header 'Accept' (if needed)
|
1118
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1119
|
+
|
1120
|
+
# form parameters
|
1121
|
+
form_params = opts[:form_params] || {}
|
1122
|
+
|
1123
|
+
# http body (model)
|
1124
|
+
post_body = opts[:debug_body]
|
1125
|
+
|
1126
|
+
# return_type
|
1127
|
+
return_type = opts[:debug_return_type]
|
1128
|
+
|
1129
|
+
# auth_names
|
1130
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
1131
|
+
|
1132
|
+
new_options = opts.merge(
|
1133
|
+
:operation => :"VouchersApi.void_voucher_voucher_transaction",
|
1134
|
+
:header_params => header_params,
|
1135
|
+
:query_params => query_params,
|
1136
|
+
:form_params => form_params,
|
1137
|
+
:body => post_body,
|
1138
|
+
:auth_names => auth_names,
|
1139
|
+
:return_type => return_type
|
1140
|
+
)
|
1141
|
+
|
1142
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
1143
|
+
if @api_client.config.debugging
|
1144
|
+
@api_client.config.logger.debug "API called: VouchersApi#void_voucher_voucher_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1145
|
+
end
|
1146
|
+
return data, status_code, headers
|
1147
|
+
end
|
1148
|
+
end
|
1149
|
+
end
|