korona-cloud-client 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +417 -0
- data/Rakefile +10 -0
- data/docs/Account.md +39 -0
- data/docs/AccountSummary.md +21 -0
- data/docs/AccountTransaction.md +27 -0
- data/docs/AccountsApi.md +126 -0
- data/docs/AddOrUpdateResult.md +29 -0
- data/docs/AdditionalInfo.md +19 -0
- data/docs/AdditionalReceiptInfoType.md +45 -0
- data/docs/AdditionalReceiptInfoTypesApi.md +128 -0
- data/docs/AddressInformation.md +29 -0
- data/docs/Admission.md +19 -0
- data/docs/Amount.md +25 -0
- data/docs/AmountCountData.md +19 -0
- data/docs/Assortment.md +31 -0
- data/docs/AssortmentsApi.md +402 -0
- data/docs/Attendance.md +35 -0
- data/docs/BadRequestError.md +19 -0
- data/docs/Capacity.md +19 -0
- data/docs/Cashier.md +43 -0
- data/docs/CashierSummary.md +27 -0
- data/docs/CashiersApi.md +128 -0
- data/docs/Category.md +21 -0
- data/docs/CloudSubscription.md +19 -0
- data/docs/CommodityGroup.md +27 -0
- data/docs/CommodityGroupSummary.md +23 -0
- data/docs/CommodityGroupsApi.md +402 -0
- data/docs/CompanyIdentification.md +19 -0
- data/docs/CreationTask.md +37 -0
- data/docs/CurrenciesApi.md +128 -0
- data/docs/Currency.md +39 -0
- data/docs/CurrencyDenomination.md +19 -0
- data/docs/CurrencyExchangeRate.md +19 -0
- data/docs/Customer.md +53 -0
- data/docs/CustomerCard.md +19 -0
- data/docs/CustomerData.md +19 -0
- data/docs/CustomerGroup.md +27 -0
- data/docs/CustomerGroupSummary.md +23 -0
- data/docs/CustomerGroupsApi.md +128 -0
- data/docs/CustomerInformation.md +21 -0
- data/docs/CustomerOrder.md +53 -0
- data/docs/CustomerOrdersApi.md +358 -0
- data/docs/CustomersApi.md +402 -0
- data/docs/DayRating.md +35 -0
- data/docs/DayTimePeriod.md +19 -0
- data/docs/DeliveryNote.md +47 -0
- data/docs/DeliveryNoteItem.md +31 -0
- data/docs/DeliveryNotesApi.md +302 -0
- data/docs/Deposit.md +25 -0
- data/docs/DeviceInformation.md +19 -0
- data/docs/Discount.md +21 -0
- data/docs/EconomicZone.md +25 -0
- data/docs/EconomicZonesApi.md +128 -0
- data/docs/EndOfDayStatement.md +33 -0
- data/docs/EndOfDayStatementSummary.md +27 -0
- data/docs/EntryGate.md +29 -0
- data/docs/Event.md +39 -0
- data/docs/ExternalSystemCall.md +41 -0
- data/docs/ExternalSystemCallsApi.md +402 -0
- data/docs/ForbiddenError.md +19 -0
- data/docs/GeoLocation.md +19 -0
- data/docs/ImagesApi.md +62 -0
- data/docs/InfoText.md +27 -0
- data/docs/InfoTextsApi.md +128 -0
- data/docs/Interval.md +19 -0
- data/docs/InventoriesApi.md +837 -0
- data/docs/Inventory.md +53 -0
- data/docs/InventoryList.md +45 -0
- data/docs/InventoryListItem.md +27 -0
- data/docs/InventoryListItemStock.md +19 -0
- data/docs/KoronaAccount.md +35 -0
- data/docs/KoronaAccountApi.md +60 -0
- data/docs/MediaUrl.md +17 -0
- data/docs/MethodNotAllowedError.md +19 -0
- data/docs/ModelReference.md +21 -0
- data/docs/NotFoundError.md +19 -0
- data/docs/OpeningHours.md +21 -0
- data/docs/OrganizationalUnit.md +41 -0
- data/docs/OrganizationalUnitsApi.md +690 -0
- data/docs/Payment.md +25 -0
- data/docs/PaymentMethod.md +41 -0
- data/docs/PaymentMethodsApi.md +128 -0
- data/docs/PaymentSummary.md +21 -0
- data/docs/Period.md +21 -0
- data/docs/PeriodListTopSeller.md +21 -0
- data/docs/PeriodMapStringRevenueData.md +21 -0
- data/docs/PeriodObject.md +21 -0
- data/docs/PeriodRevenueData.md +21 -0
- data/docs/PointsOfSaleApi.md +521 -0
- data/docs/Pos.md +55 -0
- data/docs/PriceGroup.md +29 -0
- data/docs/PriceGroupsApi.md +128 -0
- data/docs/Product.md +103 -0
- data/docs/ProductCode.md +21 -0
- data/docs/ProductDescription.md +21 -0
- data/docs/ProductPrice.md +25 -0
- data/docs/ProductStock.md +25 -0
- data/docs/ProductSubproduct.md +21 -0
- data/docs/ProductSupplierPrice.md +25 -0
- data/docs/ProductTransferInvolvedPartyInformation.md +27 -0
- data/docs/ProductTransferInvolvedPartyInformationData.md +21 -0
- data/docs/ProductsApi.md +478 -0
- data/docs/Rating.md +21 -0
- data/docs/Receipt.md +65 -0
- data/docs/ReceiptItem.md +41 -0
- data/docs/ReceiptsApi.md +140 -0
- data/docs/ResultList.md +27 -0
- data/docs/ResultListAccount.md +27 -0
- data/docs/ResultListAdditionalReceiptInfoType.md +27 -0
- data/docs/ResultListAssortment.md +27 -0
- data/docs/ResultListAttendance.md +27 -0
- data/docs/ResultListCashier.md +27 -0
- data/docs/ResultListCommodityGroup.md +27 -0
- data/docs/ResultListCreationTask.md +27 -0
- data/docs/ResultListCurrency.md +27 -0
- data/docs/ResultListCustomer.md +27 -0
- data/docs/ResultListCustomerGroup.md +27 -0
- data/docs/ResultListCustomerOrder.md +27 -0
- data/docs/ResultListDayRating.md +27 -0
- data/docs/ResultListDeliveryNote.md +27 -0
- data/docs/ResultListEconomicZone.md +27 -0
- data/docs/ResultListEndOfDayStatement.md +27 -0
- data/docs/ResultListEntryGate.md +27 -0
- data/docs/ResultListEvent.md +27 -0
- data/docs/ResultListExternalSystemCall.md +27 -0
- data/docs/ResultListInfoText.md +27 -0
- data/docs/ResultListInventory.md +27 -0
- data/docs/ResultListInventoryList.md +27 -0
- data/docs/ResultListInventoryListItem.md +27 -0
- data/docs/ResultListOrganizationalUnit.md +27 -0
- data/docs/ResultListPaymentMethod.md +27 -0
- data/docs/ResultListPos.md +27 -0
- data/docs/ResultListPriceGroup.md +27 -0
- data/docs/ResultListProduct.md +27 -0
- data/docs/ResultListProductStock.md +27 -0
- data/docs/ResultListReceipt.md +27 -0
- data/docs/ResultListSalesTax.md +27 -0
- data/docs/ResultListSector.md +27 -0
- data/docs/ResultListStockReceipt.md +27 -0
- data/docs/ResultListStockReceiptItem.md +27 -0
- data/docs/ResultListSupplier.md +27 -0
- data/docs/ResultListTag.md +27 -0
- data/docs/ResultListTicket.md +27 -0
- data/docs/ResultListTicketDefinition.md +27 -0
- data/docs/ResultListTimeTrackingEntity.md +27 -0
- data/docs/ResultListTimeTrackingEntry.md +27 -0
- data/docs/RevenueData.md +25 -0
- data/docs/SalesTax.md +31 -0
- data/docs/SalesTaxRate.md +19 -0
- data/docs/SalesTaxesApi.md +128 -0
- data/docs/Sector.md +29 -0
- data/docs/SectorRevenueAccountItem.md +19 -0
- data/docs/SectorSalesTaxItem.md +19 -0
- data/docs/SectorsApi.md +240 -0
- data/docs/Signature.md +21 -0
- data/docs/Statistic.md +21 -0
- data/docs/StatisticListTopSeller.md +21 -0
- data/docs/StatisticMapStringRevenueData.md +21 -0
- data/docs/StatisticRevenueData.md +21 -0
- data/docs/StatisticsApi.md +242 -0
- data/docs/StockReceipt.md +59 -0
- data/docs/StockReceiptItem.md +29 -0
- data/docs/StockReceiptItemAmount.md +19 -0
- data/docs/StockReceiptItemIdentification.md +21 -0
- data/docs/StockReceiptItemPurchasePrice.md +19 -0
- data/docs/StockReceiptsApi.md +648 -0
- data/docs/Supplier.md +39 -0
- data/docs/SupplierContact.md +23 -0
- data/docs/SupplierContactPerson.md +29 -0
- data/docs/SupplierPaymentInformation.md +33 -0
- data/docs/SuppliersApi.md +128 -0
- data/docs/Tag.md +25 -0
- data/docs/TagsApi.md +400 -0
- data/docs/TaxPayment.md +23 -0
- data/docs/TaxSummary.md +21 -0
- data/docs/Ticket.md +29 -0
- data/docs/TicketCreationApi.md +122 -0
- data/docs/TicketData.md +37 -0
- data/docs/TicketDefinition.md +39 -0
- data/docs/TicketPersonalization.md +23 -0
- data/docs/TicketingApi.md +1217 -0
- data/docs/TimePeriod.md +29 -0
- data/docs/TimeTrackingApi.md +372 -0
- data/docs/TimeTrackingEntity.md +27 -0
- data/docs/TimeTrackingEntry.md +29 -0
- data/docs/TooManyRequestsError.md +19 -0
- data/docs/TopSeller.md +25 -0
- data/docs/TotalPeriod.md +19 -0
- data/docs/TotalPrice.md +25 -0
- data/docs/Validity.md +23 -0
- data/docs/Weather.md +21 -0
- data/git_push.sh +58 -0
- data/korona-cloud-client.gemspec +39 -0
- data/lib/korona-cloud-client.rb +228 -0
- data/lib/korona-cloud-client/api/accounts_api.rb +163 -0
- data/lib/korona-cloud-client/api/additional_receipt_info_types_api.rb +166 -0
- data/lib/korona-cloud-client/api/assortments_api.rb +513 -0
- data/lib/korona-cloud-client/api/cashiers_api.rb +166 -0
- data/lib/korona-cloud-client/api/commodity_groups_api.rb +513 -0
- data/lib/korona-cloud-client/api/currencies_api.rb +166 -0
- data/lib/korona-cloud-client/api/customer_groups_api.rb +166 -0
- data/lib/korona-cloud-client/api/customer_orders_api.rb +459 -0
- data/lib/korona-cloud-client/api/customers_api.rb +513 -0
- data/lib/korona-cloud-client/api/delivery_notes_api.rb +387 -0
- data/lib/korona-cloud-client/api/economic_zones_api.rb +166 -0
- data/lib/korona-cloud-client/api/external_system_calls_api.rb +513 -0
- data/lib/korona-cloud-client/api/images_api.rb +88 -0
- data/lib/korona-cloud-client/api/info_texts_api.rb +166 -0
- data/lib/korona-cloud-client/api/inventories_api.rb +1115 -0
- data/lib/korona-cloud-client/api/korona_account_api.rb +82 -0
- data/lib/korona-cloud-client/api/organizational_units_api.rb +897 -0
- data/lib/korona-cloud-client/api/payment_methods_api.rb +166 -0
- data/lib/korona-cloud-client/api/points_of_sale_api.rb +664 -0
- data/lib/korona-cloud-client/api/price_groups_api.rb +166 -0
- data/lib/korona-cloud-client/api/products_api.rb +607 -0
- data/lib/korona-cloud-client/api/receipts_api.rb +184 -0
- data/lib/korona-cloud-client/api/sales_taxes_api.rb +166 -0
- data/lib/korona-cloud-client/api/sectors_api.rb +305 -0
- data/lib/korona-cloud-client/api/statistics_api.rb +305 -0
- data/lib/korona-cloud-client/api/stock_receipts_api.rb +849 -0
- data/lib/korona-cloud-client/api/suppliers_api.rb +166 -0
- data/lib/korona-cloud-client/api/tags_api.rb +510 -0
- data/lib/korona-cloud-client/api/ticket_creation_api.rb +163 -0
- data/lib/korona-cloud-client/api/ticketing_api.rb +1516 -0
- data/lib/korona-cloud-client/api/time_tracking_api.rb +464 -0
- data/lib/korona-cloud-client/api_client.rb +386 -0
- data/lib/korona-cloud-client/api_error.rb +57 -0
- data/lib/korona-cloud-client/configuration.rb +248 -0
- data/lib/korona-cloud-client/models/account.rb +343 -0
- data/lib/korona-cloud-client/models/account_summary.rb +224 -0
- data/lib/korona-cloud-client/models/account_transaction.rb +255 -0
- data/lib/korona-cloud-client/models/add_or_update_result.rb +306 -0
- data/lib/korona-cloud-client/models/additional_info.rb +215 -0
- data/lib/korona-cloud-client/models/additional_receipt_info_type.rb +342 -0
- data/lib/korona-cloud-client/models/address_information.rb +260 -0
- data/lib/korona-cloud-client/models/admission.rb +215 -0
- data/lib/korona-cloud-client/models/amount.rb +242 -0
- data/lib/korona-cloud-client/models/amount_count_data.rb +215 -0
- data/lib/korona-cloud-client/models/assortment.rb +273 -0
- data/lib/korona-cloud-client/models/attendance.rb +291 -0
- data/lib/korona-cloud-client/models/bad_request_error.rb +251 -0
- data/lib/korona-cloud-client/models/capacity.rb +215 -0
- data/lib/korona-cloud-client/models/cashier.rb +365 -0
- data/lib/korona-cloud-client/models/cashier_summary.rb +251 -0
- data/lib/korona-cloud-client/models/category.rb +224 -0
- data/lib/korona-cloud-client/models/cloud_subscription.rb +249 -0
- data/lib/korona-cloud-client/models/commodity_group.rb +255 -0
- data/lib/korona-cloud-client/models/commodity_group_summary.rb +233 -0
- data/lib/korona-cloud-client/models/company_identification.rb +215 -0
- data/lib/korona-cloud-client/models/creation_task.rb +330 -0
- data/lib/korona-cloud-client/models/currency.rb +313 -0
- data/lib/korona-cloud-client/models/currency_denomination.rb +249 -0
- data/lib/korona-cloud-client/models/currency_exchange_rate.rb +215 -0
- data/lib/korona-cloud-client/models/customer.rb +410 -0
- data/lib/korona-cloud-client/models/customer_card.rb +249 -0
- data/lib/korona-cloud-client/models/customer_data.rb +215 -0
- data/lib/korona-cloud-client/models/customer_group.rb +255 -0
- data/lib/korona-cloud-client/models/customer_group_summary.rb +233 -0
- data/lib/korona-cloud-client/models/customer_information.rb +224 -0
- data/lib/korona-cloud-client/models/customer_order.rb +378 -0
- data/lib/korona-cloud-client/models/day_rating.rb +287 -0
- data/lib/korona-cloud-client/models/day_time_period.rb +215 -0
- data/lib/korona-cloud-client/models/delivery_note.rb +347 -0
- data/lib/korona-cloud-client/models/delivery_note_item.rb +273 -0
- data/lib/korona-cloud-client/models/deposit.rb +242 -0
- data/lib/korona-cloud-client/models/device_information.rb +215 -0
- data/lib/korona-cloud-client/models/discount.rb +224 -0
- data/lib/korona-cloud-client/models/economic_zone.rb +246 -0
- data/lib/korona-cloud-client/models/end_of_day_statement.rb +282 -0
- data/lib/korona-cloud-client/models/end_of_day_statement_summary.rb +263 -0
- data/lib/korona-cloud-client/models/entry_gate.rb +264 -0
- data/lib/korona-cloud-client/models/event.rb +313 -0
- data/lib/korona-cloud-client/models/external_system_call.rb +318 -0
- data/lib/korona-cloud-client/models/forbidden_error.rb +251 -0
- data/lib/korona-cloud-client/models/geo_location.rb +215 -0
- data/lib/korona-cloud-client/models/info_text.rb +289 -0
- data/lib/korona-cloud-client/models/interval.rb +215 -0
- data/lib/korona-cloud-client/models/inventory.rb +427 -0
- data/lib/korona-cloud-client/models/inventory_list.rb +370 -0
- data/lib/korona-cloud-client/models/inventory_list_item.rb +251 -0
- data/lib/korona-cloud-client/models/inventory_list_item_stock.rb +215 -0
- data/lib/korona-cloud-client/models/korona_account.rb +315 -0
- data/lib/korona-cloud-client/models/media_url.rb +206 -0
- data/lib/korona-cloud-client/models/method_not_allowed_error.rb +251 -0
- data/lib/korona-cloud-client/models/model_reference.rb +228 -0
- data/lib/korona-cloud-client/models/not_found_error.rb +251 -0
- data/lib/korona-cloud-client/models/opening_hours.rb +258 -0
- data/lib/korona-cloud-client/models/organizational_unit.rb +325 -0
- data/lib/korona-cloud-client/models/payment.rb +242 -0
- data/lib/korona-cloud-client/models/payment_method.rb +318 -0
- data/lib/korona-cloud-client/models/payment_summary.rb +224 -0
- data/lib/korona-cloud-client/models/period.rb +224 -0
- data/lib/korona-cloud-client/models/period_list_top_seller.rb +226 -0
- data/lib/korona-cloud-client/models/period_map_string_revenue_data.rb +226 -0
- data/lib/korona-cloud-client/models/period_object.rb +224 -0
- data/lib/korona-cloud-client/models/period_revenue_data.rb +224 -0
- data/lib/korona-cloud-client/models/pos.rb +389 -0
- data/lib/korona-cloud-client/models/price_group.rb +264 -0
- data/lib/korona-cloud-client/models/product.rb +659 -0
- data/lib/korona-cloud-client/models/product_code.rb +224 -0
- data/lib/korona-cloud-client/models/product_description.rb +258 -0
- data/lib/korona-cloud-client/models/product_price.rb +242 -0
- data/lib/korona-cloud-client/models/product_stock.rb +242 -0
- data/lib/korona-cloud-client/models/product_subproduct.rb +226 -0
- data/lib/korona-cloud-client/models/product_supplier_price.rb +242 -0
- data/lib/korona-cloud-client/models/product_transfer_involved_party_information.rb +251 -0
- data/lib/korona-cloud-client/models/product_transfer_involved_party_information_data.rb +224 -0
- data/lib/korona-cloud-client/models/rating.rb +224 -0
- data/lib/korona-cloud-client/models/receipt.rb +436 -0
- data/lib/korona-cloud-client/models/receipt_item.rb +320 -0
- data/lib/korona-cloud-client/models/result_list.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_account.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_additional_receipt_info_type.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_assortment.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_attendance.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_cashier.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_commodity_group.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_creation_task.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_currency.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_customer.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_customer_group.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_customer_order.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_day_rating.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_delivery_note.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_economic_zone.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_end_of_day_statement.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_entry_gate.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_event.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_external_system_call.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_info_text.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_inventory.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_inventory_list.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_inventory_list_item.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_organizational_unit.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_payment_method.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_pos.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_price_group.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_product.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_product_stock.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_receipt.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_sales_tax.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_sector.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_stock_receipt.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_stock_receipt_item.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_supplier.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_tag.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_ticket.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_ticket_definition.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_time_tracking_entity.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_time_tracking_entry.rb +291 -0
- data/lib/korona-cloud-client/models/revenue_data.rb +242 -0
- data/lib/korona-cloud-client/models/sales_tax.rb +275 -0
- data/lib/korona-cloud-client/models/sales_tax_rate.rb +215 -0
- data/lib/korona-cloud-client/models/sector.rb +268 -0
- data/lib/korona-cloud-client/models/sector_revenue_account_item.rb +215 -0
- data/lib/korona-cloud-client/models/sector_sales_tax_item.rb +215 -0
- data/lib/korona-cloud-client/models/signature.rb +241 -0
- data/lib/korona-cloud-client/models/statistic.rb +224 -0
- data/lib/korona-cloud-client/models/statistic_list_top_seller.rb +224 -0
- data/lib/korona-cloud-client/models/statistic_map_string_revenue_data.rb +224 -0
- data/lib/korona-cloud-client/models/statistic_revenue_data.rb +224 -0
- data/lib/korona-cloud-client/models/stock_receipt.rb +433 -0
- data/lib/korona-cloud-client/models/stock_receipt_item.rb +260 -0
- data/lib/korona-cloud-client/models/stock_receipt_item_amount.rb +215 -0
- data/lib/korona-cloud-client/models/stock_receipt_item_identification.rb +224 -0
- data/lib/korona-cloud-client/models/stock_receipt_item_purchase_price.rb +215 -0
- data/lib/korona-cloud-client/models/supplier.rb +309 -0
- data/lib/korona-cloud-client/models/supplier_contact.rb +233 -0
- data/lib/korona-cloud-client/models/supplier_contact_person.rb +260 -0
- data/lib/korona-cloud-client/models/supplier_payment_information.rb +312 -0
- data/lib/korona-cloud-client/models/tag.rb +246 -0
- data/lib/korona-cloud-client/models/tax_payment.rb +233 -0
- data/lib/korona-cloud-client/models/tax_summary.rb +224 -0
- data/lib/korona-cloud-client/models/ticket.rb +260 -0
- data/lib/korona-cloud-client/models/ticket_data.rb +298 -0
- data/lib/korona-cloud-client/models/ticket_definition.rb +311 -0
- data/lib/korona-cloud-client/models/ticket_personalization.rb +250 -0
- data/lib/korona-cloud-client/models/time_period.rb +260 -0
- data/lib/korona-cloud-client/models/time_tracking_entity.rb +255 -0
- data/lib/korona-cloud-client/models/time_tracking_entry.rb +263 -0
- data/lib/korona-cloud-client/models/too_many_requests_error.rb +251 -0
- data/lib/korona-cloud-client/models/top_seller.rb +245 -0
- data/lib/korona-cloud-client/models/total_period.rb +215 -0
- data/lib/korona-cloud-client/models/total_price.rb +260 -0
- data/lib/korona-cloud-client/models/validity.rb +259 -0
- data/lib/korona-cloud-client/models/weather.rb +258 -0
- data/lib/korona-cloud-client/version.rb +15 -0
- data/spec/api/accounts_api_spec.rb +63 -0
- data/spec/api/additional_receipt_info_types_api_spec.rb +64 -0
- data/spec/api/assortments_api_spec.rb +126 -0
- data/spec/api/cashiers_api_spec.rb +64 -0
- data/spec/api/commodity_groups_api_spec.rb +126 -0
- data/spec/api/currencies_api_spec.rb +64 -0
- data/spec/api/customer_groups_api_spec.rb +64 -0
- data/spec/api/customer_orders_api_spec.rb +119 -0
- data/spec/api/customers_api_spec.rb +126 -0
- data/spec/api/delivery_notes_api_spec.rb +107 -0
- data/spec/api/economic_zones_api_spec.rb +64 -0
- data/spec/api/external_system_calls_api_spec.rb +126 -0
- data/spec/api/images_api_spec.rb +47 -0
- data/spec/api/info_texts_api_spec.rb +64 -0
- data/spec/api/inventories_api_spec.rb +239 -0
- data/spec/api/korona_account_api_spec.rb +46 -0
- data/spec/api/organizational_units_api_spec.rb +207 -0
- data/spec/api/payment_methods_api_spec.rb +64 -0
- data/spec/api/points_of_sale_api_spec.rb +164 -0
- data/spec/api/price_groups_api_spec.rb +64 -0
- data/spec/api/products_api_spec.rb +148 -0
- data/spec/api/receipts_api_spec.rb +70 -0
- data/spec/api/sales_taxes_api_spec.rb +64 -0
- data/spec/api/sectors_api_spec.rb +89 -0
- data/spec/api/statistics_api_spec.rb +88 -0
- data/spec/api/stock_receipts_api_spec.rb +190 -0
- data/spec/api/suppliers_api_spec.rb +64 -0
- data/spec/api/tags_api_spec.rb +125 -0
- data/spec/api/ticket_creation_api_spec.rb +61 -0
- data/spec/api/ticketing_api_spec.rb +320 -0
- data/spec/api/time_tracking_api_spec.rb +123 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/account_spec.rb +111 -0
- data/spec/models/account_summary_spec.rb +53 -0
- data/spec/models/account_transaction_spec.rb +71 -0
- data/spec/models/add_or_update_result_spec.rb +85 -0
- data/spec/models/additional_info_spec.rb +47 -0
- data/spec/models/additional_receipt_info_type_spec.rb +125 -0
- data/spec/models/address_information_spec.rb +77 -0
- data/spec/models/admission_spec.rb +47 -0
- data/spec/models/amount_count_data_spec.rb +47 -0
- data/spec/models/amount_spec.rb +65 -0
- data/spec/models/assortment_spec.rb +83 -0
- data/spec/models/attendance_spec.rb +95 -0
- data/spec/models/bad_request_error_spec.rb +51 -0
- data/spec/models/capacity_spec.rb +47 -0
- data/spec/models/cashier_spec.rb +127 -0
- data/spec/models/cashier_summary_spec.rb +71 -0
- data/spec/models/category_spec.rb +53 -0
- data/spec/models/cloud_subscription_spec.rb +51 -0
- data/spec/models/commodity_group_spec.rb +71 -0
- data/spec/models/commodity_group_summary_spec.rb +59 -0
- data/spec/models/company_identification_spec.rb +47 -0
- data/spec/models/creation_task_spec.rb +105 -0
- data/spec/models/currency_denomination_spec.rb +51 -0
- data/spec/models/currency_exchange_rate_spec.rb +47 -0
- data/spec/models/currency_spec.rb +107 -0
- data/spec/models/customer_card_spec.rb +51 -0
- data/spec/models/customer_data_spec.rb +47 -0
- data/spec/models/customer_group_spec.rb +71 -0
- data/spec/models/customer_group_summary_spec.rb +59 -0
- data/spec/models/customer_information_spec.rb +53 -0
- data/spec/models/customer_order_spec.rb +149 -0
- data/spec/models/customer_spec.rb +153 -0
- data/spec/models/day_rating_spec.rb +95 -0
- data/spec/models/day_time_period_spec.rb +47 -0
- data/spec/models/delivery_note_item_spec.rb +83 -0
- data/spec/models/delivery_note_spec.rb +131 -0
- data/spec/models/deposit_spec.rb +65 -0
- data/spec/models/device_information_spec.rb +47 -0
- data/spec/models/discount_spec.rb +53 -0
- data/spec/models/economic_zone_spec.rb +65 -0
- data/spec/models/end_of_day_statement_spec.rb +89 -0
- data/spec/models/end_of_day_statement_summary_spec.rb +71 -0
- data/spec/models/entry_gate_spec.rb +77 -0
- data/spec/models/event_spec.rb +107 -0
- data/spec/models/external_system_call_spec.rb +113 -0
- data/spec/models/forbidden_error_spec.rb +51 -0
- data/spec/models/geo_location_spec.rb +47 -0
- data/spec/models/info_text_spec.rb +75 -0
- data/spec/models/interval_spec.rb +47 -0
- data/spec/models/inventory_list_item_spec.rb +71 -0
- data/spec/models/inventory_list_item_stock_spec.rb +47 -0
- data/spec/models/inventory_list_spec.rb +129 -0
- data/spec/models/inventory_spec.rb +161 -0
- data/spec/models/korona_account_spec.rb +99 -0
- data/spec/models/media_url_spec.rb +41 -0
- data/spec/models/method_not_allowed_error_spec.rb +51 -0
- data/spec/models/model_reference_spec.rb +53 -0
- data/spec/models/not_found_error_spec.rb +51 -0
- data/spec/models/opening_hours_spec.rb +57 -0
- data/spec/models/organizational_unit_spec.rb +113 -0
- data/spec/models/payment_method_spec.rb +113 -0
- data/spec/models/payment_spec.rb +65 -0
- data/spec/models/payment_summary_spec.rb +53 -0
- data/spec/models/period_list_top_seller_spec.rb +53 -0
- data/spec/models/period_map_string_revenue_data_spec.rb +53 -0
- data/spec/models/period_object_spec.rb +53 -0
- data/spec/models/period_revenue_data_spec.rb +53 -0
- data/spec/models/period_spec.rb +53 -0
- data/spec/models/pos_spec.rb +155 -0
- data/spec/models/price_group_spec.rb +77 -0
- data/spec/models/product_code_spec.rb +53 -0
- data/spec/models/product_description_spec.rb +57 -0
- data/spec/models/product_price_spec.rb +65 -0
- data/spec/models/product_spec.rb +307 -0
- data/spec/models/product_stock_spec.rb +65 -0
- data/spec/models/product_subproduct_spec.rb +53 -0
- data/spec/models/product_supplier_price_spec.rb +65 -0
- data/spec/models/product_transfer_involved_party_information_data_spec.rb +53 -0
- data/spec/models/product_transfer_involved_party_information_spec.rb +71 -0
- data/spec/models/rating_spec.rb +53 -0
- data/spec/models/receipt_item_spec.rb +113 -0
- data/spec/models/receipt_spec.rb +185 -0
- data/spec/models/result_list_account_spec.rb +71 -0
- data/spec/models/result_list_additional_receipt_info_type_spec.rb +71 -0
- data/spec/models/result_list_assortment_spec.rb +71 -0
- data/spec/models/result_list_attendance_spec.rb +71 -0
- data/spec/models/result_list_cashier_spec.rb +71 -0
- data/spec/models/result_list_commodity_group_spec.rb +71 -0
- data/spec/models/result_list_creation_task_spec.rb +71 -0
- data/spec/models/result_list_currency_spec.rb +71 -0
- data/spec/models/result_list_customer_group_spec.rb +71 -0
- data/spec/models/result_list_customer_order_spec.rb +71 -0
- data/spec/models/result_list_customer_spec.rb +71 -0
- data/spec/models/result_list_day_rating_spec.rb +71 -0
- data/spec/models/result_list_delivery_note_spec.rb +71 -0
- data/spec/models/result_list_economic_zone_spec.rb +71 -0
- data/spec/models/result_list_end_of_day_statement_spec.rb +71 -0
- data/spec/models/result_list_entry_gate_spec.rb +71 -0
- data/spec/models/result_list_event_spec.rb +71 -0
- data/spec/models/result_list_external_system_call_spec.rb +71 -0
- data/spec/models/result_list_info_text_spec.rb +71 -0
- data/spec/models/result_list_inventory_list_item_spec.rb +71 -0
- data/spec/models/result_list_inventory_list_spec.rb +71 -0
- data/spec/models/result_list_inventory_spec.rb +71 -0
- data/spec/models/result_list_organizational_unit_spec.rb +71 -0
- data/spec/models/result_list_payment_method_spec.rb +71 -0
- data/spec/models/result_list_pos_spec.rb +71 -0
- data/spec/models/result_list_price_group_spec.rb +71 -0
- data/spec/models/result_list_product_spec.rb +71 -0
- data/spec/models/result_list_product_stock_spec.rb +71 -0
- data/spec/models/result_list_receipt_spec.rb +71 -0
- data/spec/models/result_list_sales_tax_spec.rb +71 -0
- data/spec/models/result_list_sector_spec.rb +71 -0
- data/spec/models/result_list_spec.rb +71 -0
- data/spec/models/result_list_stock_receipt_item_spec.rb +71 -0
- data/spec/models/result_list_stock_receipt_spec.rb +71 -0
- data/spec/models/result_list_supplier_spec.rb +71 -0
- data/spec/models/result_list_tag_spec.rb +71 -0
- data/spec/models/result_list_ticket_definition_spec.rb +71 -0
- data/spec/models/result_list_ticket_spec.rb +71 -0
- data/spec/models/result_list_time_tracking_entity_spec.rb +71 -0
- data/spec/models/result_list_time_tracking_entry_spec.rb +71 -0
- data/spec/models/revenue_data_spec.rb +65 -0
- data/spec/models/sales_tax_rate_spec.rb +47 -0
- data/spec/models/sales_tax_spec.rb +83 -0
- data/spec/models/sector_revenue_account_item_spec.rb +47 -0
- data/spec/models/sector_sales_tax_item_spec.rb +47 -0
- data/spec/models/sector_spec.rb +77 -0
- data/spec/models/signature_spec.rb +53 -0
- data/spec/models/statistic_list_top_seller_spec.rb +53 -0
- data/spec/models/statistic_map_string_revenue_data_spec.rb +53 -0
- data/spec/models/statistic_revenue_data_spec.rb +53 -0
- data/spec/models/statistic_spec.rb +53 -0
- data/spec/models/stock_receipt_item_amount_spec.rb +47 -0
- data/spec/models/stock_receipt_item_identification_spec.rb +53 -0
- data/spec/models/stock_receipt_item_purchase_price_spec.rb +47 -0
- data/spec/models/stock_receipt_item_spec.rb +77 -0
- data/spec/models/stock_receipt_spec.rb +171 -0
- data/spec/models/supplier_contact_person_spec.rb +77 -0
- data/spec/models/supplier_contact_spec.rb +59 -0
- data/spec/models/supplier_payment_information_spec.rb +93 -0
- data/spec/models/supplier_spec.rb +107 -0
- data/spec/models/tag_spec.rb +65 -0
- data/spec/models/tax_payment_spec.rb +59 -0
- data/spec/models/tax_summary_spec.rb +53 -0
- data/spec/models/ticket_data_spec.rb +101 -0
- data/spec/models/ticket_definition_spec.rb +107 -0
- data/spec/models/ticket_personalization_spec.rb +59 -0
- data/spec/models/ticket_spec.rb +77 -0
- data/spec/models/time_period_spec.rb +77 -0
- data/spec/models/time_tracking_entity_spec.rb +71 -0
- data/spec/models/time_tracking_entry_spec.rb +77 -0
- data/spec/models/too_many_requests_error_spec.rb +51 -0
- data/spec/models/top_seller_spec.rb +65 -0
- data/spec/models/total_period_spec.rb +47 -0
- data/spec/models/total_price_spec.rb +65 -0
- data/spec/models/validity_spec.rb +63 -0
- data/spec/models/weather_spec.rb +57 -0
- data/spec/spec_helper.rb +111 -0
- metadata +875 -0
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#KORONA.cloud API v3
|
|
3
|
+
|
|
4
|
+
#Our api provides access to our cloud services
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.13.40
|
|
7
|
+
Contact: support@combase.net
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 4.3.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module KoronaCloudClient
|
|
16
|
+
class TicketCreationApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# adds a creation task
|
|
23
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
24
|
+
# @param body [CreationTask] a single ticket creation task
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [AddOrUpdateResult]
|
|
27
|
+
def add_creation_task(korona_account_id, body, opts = {})
|
|
28
|
+
data, _status_code, _headers = add_creation_task_with_http_info(korona_account_id, body, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# adds a creation task
|
|
33
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
34
|
+
# @param body [CreationTask] a single ticket creation task
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(AddOrUpdateResult, Integer, Hash)>] AddOrUpdateResult data, response status code and response headers
|
|
37
|
+
def add_creation_task_with_http_info(korona_account_id, body, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: TicketCreationApi.add_creation_task ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'korona_account_id' is set
|
|
42
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketCreationApi.add_creation_task"
|
|
44
|
+
end
|
|
45
|
+
# verify the required parameter 'body' is set
|
|
46
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling TicketCreationApi.add_creation_task"
|
|
48
|
+
end
|
|
49
|
+
# resource path
|
|
50
|
+
local_var_path = '/accounts/{koronaAccountId}/ticketCreation'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
|
51
|
+
|
|
52
|
+
# query parameters
|
|
53
|
+
query_params = opts[:query_params] || {}
|
|
54
|
+
|
|
55
|
+
# header parameters
|
|
56
|
+
header_params = opts[:header_params] || {}
|
|
57
|
+
# HTTP header 'Accept' (if needed)
|
|
58
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
59
|
+
# HTTP header 'Content-Type'
|
|
60
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
61
|
+
|
|
62
|
+
# form parameters
|
|
63
|
+
form_params = opts[:form_params] || {}
|
|
64
|
+
|
|
65
|
+
# http body (model)
|
|
66
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
67
|
+
|
|
68
|
+
# return_type
|
|
69
|
+
return_type = opts[:return_type] || 'AddOrUpdateResult'
|
|
70
|
+
|
|
71
|
+
# auth_names
|
|
72
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
73
|
+
|
|
74
|
+
new_options = opts.merge(
|
|
75
|
+
:header_params => header_params,
|
|
76
|
+
:query_params => query_params,
|
|
77
|
+
:form_params => form_params,
|
|
78
|
+
:body => post_body,
|
|
79
|
+
:auth_names => auth_names,
|
|
80
|
+
:return_type => return_type
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
84
|
+
if @api_client.config.debugging
|
|
85
|
+
@api_client.config.logger.debug "API called: TicketCreationApi#add_creation_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
86
|
+
end
|
|
87
|
+
return data, status_code, headers
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# creation tasks, personalization will always be empty for technical reasons
|
|
91
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
92
|
+
# @param [Hash] opts the optional parameters
|
|
93
|
+
# @option opts [DateTime] :creation_time_from creation time from
|
|
94
|
+
# @option opts [DateTime] :creation_time_to creation time to
|
|
95
|
+
# @option opts [Array<String>] :statuses creation task statuses
|
|
96
|
+
# @return [ResultListCreationTask]
|
|
97
|
+
def get_creation_tasks(korona_account_id, opts = {})
|
|
98
|
+
data, _status_code, _headers = get_creation_tasks_with_http_info(korona_account_id, opts)
|
|
99
|
+
data
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# creation tasks, personalization will always be empty for technical reasons
|
|
103
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
104
|
+
# @param [Hash] opts the optional parameters
|
|
105
|
+
# @option opts [DateTime] :creation_time_from creation time from
|
|
106
|
+
# @option opts [DateTime] :creation_time_to creation time to
|
|
107
|
+
# @option opts [Array<String>] :statuses creation task statuses
|
|
108
|
+
# @return [Array<(ResultListCreationTask, Integer, Hash)>] ResultListCreationTask data, response status code and response headers
|
|
109
|
+
def get_creation_tasks_with_http_info(korona_account_id, opts = {})
|
|
110
|
+
if @api_client.config.debugging
|
|
111
|
+
@api_client.config.logger.debug 'Calling API: TicketCreationApi.get_creation_tasks ...'
|
|
112
|
+
end
|
|
113
|
+
# verify the required parameter 'korona_account_id' is set
|
|
114
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
|
115
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketCreationApi.get_creation_tasks"
|
|
116
|
+
end
|
|
117
|
+
allowable_values = ["PREPARED", "RUNNING", "FINISHED", "FAILED"]
|
|
118
|
+
if @api_client.config.client_side_validation && opts[:'statuses'] && !opts[:'statuses'].all? { |item| allowable_values.include?(item) }
|
|
119
|
+
fail ArgumentError, "invalid value for \"statuses\", must include one of #{allowable_values}"
|
|
120
|
+
end
|
|
121
|
+
# resource path
|
|
122
|
+
local_var_path = '/accounts/{koronaAccountId}/ticketCreation'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
|
123
|
+
|
|
124
|
+
# query parameters
|
|
125
|
+
query_params = opts[:query_params] || {}
|
|
126
|
+
query_params[:'creationTimeFrom'] = opts[:'creation_time_from'] if !opts[:'creation_time_from'].nil?
|
|
127
|
+
query_params[:'creationTimeTo'] = opts[:'creation_time_to'] if !opts[:'creation_time_to'].nil?
|
|
128
|
+
query_params[:'statuses'] = @api_client.build_collection_param(opts[:'statuses'], :multi) if !opts[:'statuses'].nil?
|
|
129
|
+
|
|
130
|
+
# header parameters
|
|
131
|
+
header_params = opts[:header_params] || {}
|
|
132
|
+
# HTTP header 'Accept' (if needed)
|
|
133
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
134
|
+
|
|
135
|
+
# form parameters
|
|
136
|
+
form_params = opts[:form_params] || {}
|
|
137
|
+
|
|
138
|
+
# http body (model)
|
|
139
|
+
post_body = opts[:body]
|
|
140
|
+
|
|
141
|
+
# return_type
|
|
142
|
+
return_type = opts[:return_type] || 'ResultListCreationTask'
|
|
143
|
+
|
|
144
|
+
# auth_names
|
|
145
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
146
|
+
|
|
147
|
+
new_options = opts.merge(
|
|
148
|
+
:header_params => header_params,
|
|
149
|
+
:query_params => query_params,
|
|
150
|
+
:form_params => form_params,
|
|
151
|
+
:body => post_body,
|
|
152
|
+
:auth_names => auth_names,
|
|
153
|
+
:return_type => return_type
|
|
154
|
+
)
|
|
155
|
+
|
|
156
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
157
|
+
if @api_client.config.debugging
|
|
158
|
+
@api_client.config.logger.debug "API called: TicketCreationApi#get_creation_tasks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
159
|
+
end
|
|
160
|
+
return data, status_code, headers
|
|
161
|
+
end
|
|
162
|
+
end
|
|
163
|
+
end
|
|
@@ -0,0 +1,1516 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#KORONA.cloud API v3
|
|
3
|
+
|
|
4
|
+
#Our api provides access to our cloud services
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.13.40
|
|
7
|
+
Contact: support@combase.net
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 4.3.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module KoronaCloudClient
|
|
16
|
+
class TicketingApi
|
|
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 events
|
|
23
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
24
|
+
# @param body [Array<Event>] an array of new events
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @option opts [Boolean] :upsert when set to true, updates the object instead of generating a already-exists-error
|
|
27
|
+
# @return [Array<AddOrUpdateResult>]
|
|
28
|
+
def add_events(korona_account_id, body, opts = {})
|
|
29
|
+
data, _status_code, _headers = add_events_with_http_info(korona_account_id, body, opts)
|
|
30
|
+
data
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# adds a batch of new events
|
|
34
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
35
|
+
# @param body [Array<Event>] an array of new events
|
|
36
|
+
# @param [Hash] opts the optional parameters
|
|
37
|
+
# @option opts [Boolean] :upsert when set to true, updates the object instead of generating a already-exists-error
|
|
38
|
+
# @return [Array<(Array<AddOrUpdateResult>, Integer, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers
|
|
39
|
+
def add_events_with_http_info(korona_account_id, body, opts = {})
|
|
40
|
+
if @api_client.config.debugging
|
|
41
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.add_events ...'
|
|
42
|
+
end
|
|
43
|
+
# verify the required parameter 'korona_account_id' is set
|
|
44
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
|
45
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.add_events"
|
|
46
|
+
end
|
|
47
|
+
# verify the required parameter 'body' is set
|
|
48
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling TicketingApi.add_events"
|
|
50
|
+
end
|
|
51
|
+
# resource path
|
|
52
|
+
local_var_path = '/accounts/{koronaAccountId}/events'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
|
53
|
+
|
|
54
|
+
# query parameters
|
|
55
|
+
query_params = opts[:query_params] || {}
|
|
56
|
+
query_params[:'upsert'] = opts[:'upsert'] if !opts[:'upsert'].nil?
|
|
57
|
+
|
|
58
|
+
# header parameters
|
|
59
|
+
header_params = opts[:header_params] || {}
|
|
60
|
+
# HTTP header 'Accept' (if needed)
|
|
61
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
62
|
+
# HTTP header 'Content-Type'
|
|
63
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
64
|
+
|
|
65
|
+
# form parameters
|
|
66
|
+
form_params = opts[:form_params] || {}
|
|
67
|
+
|
|
68
|
+
# http body (model)
|
|
69
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
70
|
+
|
|
71
|
+
# return_type
|
|
72
|
+
return_type = opts[:return_type] || 'Array<AddOrUpdateResult>'
|
|
73
|
+
|
|
74
|
+
# auth_names
|
|
75
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
76
|
+
|
|
77
|
+
new_options = opts.merge(
|
|
78
|
+
:header_params => header_params,
|
|
79
|
+
:query_params => query_params,
|
|
80
|
+
:form_params => form_params,
|
|
81
|
+
:body => post_body,
|
|
82
|
+
:auth_names => auth_names,
|
|
83
|
+
:return_type => return_type
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
87
|
+
if @api_client.config.debugging
|
|
88
|
+
@api_client.config.logger.debug "API called: TicketingApi#add_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
89
|
+
end
|
|
90
|
+
return data, status_code, headers
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# updates/adds attendances
|
|
94
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
95
|
+
# @param body [Array<Attendance>] an array of attendances
|
|
96
|
+
# @param [Hash] opts the optional parameters
|
|
97
|
+
# @return [Array<AddOrUpdateResult>]
|
|
98
|
+
def add_or_update_attendances(korona_account_id, body, opts = {})
|
|
99
|
+
data, _status_code, _headers = add_or_update_attendances_with_http_info(korona_account_id, body, opts)
|
|
100
|
+
data
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# updates/adds attendances
|
|
104
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
105
|
+
# @param body [Array<Attendance>] an array of attendances
|
|
106
|
+
# @param [Hash] opts the optional parameters
|
|
107
|
+
# @return [Array<(Array<AddOrUpdateResult>, Integer, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers
|
|
108
|
+
def add_or_update_attendances_with_http_info(korona_account_id, body, opts = {})
|
|
109
|
+
if @api_client.config.debugging
|
|
110
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.add_or_update_attendances ...'
|
|
111
|
+
end
|
|
112
|
+
# verify the required parameter 'korona_account_id' is set
|
|
113
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
|
114
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.add_or_update_attendances"
|
|
115
|
+
end
|
|
116
|
+
# verify the required parameter 'body' is set
|
|
117
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
118
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling TicketingApi.add_or_update_attendances"
|
|
119
|
+
end
|
|
120
|
+
# resource path
|
|
121
|
+
local_var_path = '/accounts/{koronaAccountId}/attendance'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
|
122
|
+
|
|
123
|
+
# query parameters
|
|
124
|
+
query_params = opts[:query_params] || {}
|
|
125
|
+
|
|
126
|
+
# header parameters
|
|
127
|
+
header_params = opts[:header_params] || {}
|
|
128
|
+
# HTTP header 'Accept' (if needed)
|
|
129
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
130
|
+
# HTTP header 'Content-Type'
|
|
131
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
132
|
+
|
|
133
|
+
# form parameters
|
|
134
|
+
form_params = opts[:form_params] || {}
|
|
135
|
+
|
|
136
|
+
# http body (model)
|
|
137
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
138
|
+
|
|
139
|
+
# return_type
|
|
140
|
+
return_type = opts[:return_type] || 'Array<AddOrUpdateResult>'
|
|
141
|
+
|
|
142
|
+
# auth_names
|
|
143
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
144
|
+
|
|
145
|
+
new_options = opts.merge(
|
|
146
|
+
:header_params => header_params,
|
|
147
|
+
:query_params => query_params,
|
|
148
|
+
:form_params => form_params,
|
|
149
|
+
:body => post_body,
|
|
150
|
+
:auth_names => auth_names,
|
|
151
|
+
:return_type => return_type
|
|
152
|
+
)
|
|
153
|
+
|
|
154
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
155
|
+
if @api_client.config.debugging
|
|
156
|
+
@api_client.config.logger.debug "API called: TicketingApi#add_or_update_attendances\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
157
|
+
end
|
|
158
|
+
return data, status_code, headers
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# adds a batch of new ticket definitions
|
|
162
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
163
|
+
# @param body [Array<TicketDefinition>] array of new ticket definitions
|
|
164
|
+
# @param [Hash] opts the optional parameters
|
|
165
|
+
# @option opts [Boolean] :upsert when set to true, updates the object instead of generating a already-exists-error
|
|
166
|
+
# @return [Array<AddOrUpdateResult>]
|
|
167
|
+
def add_ticket_definitions(korona_account_id, body, opts = {})
|
|
168
|
+
data, _status_code, _headers = add_ticket_definitions_with_http_info(korona_account_id, body, opts)
|
|
169
|
+
data
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# adds a batch of new ticket definitions
|
|
173
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
174
|
+
# @param body [Array<TicketDefinition>] array of new ticket definitions
|
|
175
|
+
# @param [Hash] opts the optional parameters
|
|
176
|
+
# @option opts [Boolean] :upsert when set to true, updates the object instead of generating a already-exists-error
|
|
177
|
+
# @return [Array<(Array<AddOrUpdateResult>, Integer, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers
|
|
178
|
+
def add_ticket_definitions_with_http_info(korona_account_id, body, opts = {})
|
|
179
|
+
if @api_client.config.debugging
|
|
180
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.add_ticket_definitions ...'
|
|
181
|
+
end
|
|
182
|
+
# verify the required parameter 'korona_account_id' is set
|
|
183
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
|
184
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.add_ticket_definitions"
|
|
185
|
+
end
|
|
186
|
+
# verify the required parameter 'body' is set
|
|
187
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
188
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling TicketingApi.add_ticket_definitions"
|
|
189
|
+
end
|
|
190
|
+
# resource path
|
|
191
|
+
local_var_path = '/accounts/{koronaAccountId}/ticketDefinitions'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
|
192
|
+
|
|
193
|
+
# query parameters
|
|
194
|
+
query_params = opts[:query_params] || {}
|
|
195
|
+
query_params[:'upsert'] = opts[:'upsert'] if !opts[:'upsert'].nil?
|
|
196
|
+
|
|
197
|
+
# header parameters
|
|
198
|
+
header_params = opts[:header_params] || {}
|
|
199
|
+
# HTTP header 'Accept' (if needed)
|
|
200
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
201
|
+
# HTTP header 'Content-Type'
|
|
202
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
203
|
+
|
|
204
|
+
# form parameters
|
|
205
|
+
form_params = opts[:form_params] || {}
|
|
206
|
+
|
|
207
|
+
# http body (model)
|
|
208
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
209
|
+
|
|
210
|
+
# return_type
|
|
211
|
+
return_type = opts[:return_type] || 'Array<AddOrUpdateResult>'
|
|
212
|
+
|
|
213
|
+
# auth_names
|
|
214
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
215
|
+
|
|
216
|
+
new_options = opts.merge(
|
|
217
|
+
:header_params => header_params,
|
|
218
|
+
:query_params => query_params,
|
|
219
|
+
:form_params => form_params,
|
|
220
|
+
:body => post_body,
|
|
221
|
+
:auth_names => auth_names,
|
|
222
|
+
:return_type => return_type
|
|
223
|
+
)
|
|
224
|
+
|
|
225
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
226
|
+
if @api_client.config.debugging
|
|
227
|
+
@api_client.config.logger.debug "API called: TicketingApi#add_ticket_definitions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
228
|
+
end
|
|
229
|
+
return data, status_code, headers
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
# cancel the attendance
|
|
233
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
234
|
+
# @param attendance_id [String] id of the related object (important: id should match the uuid-format)
|
|
235
|
+
# @param [Hash] opts the optional parameters
|
|
236
|
+
# @return [nil]
|
|
237
|
+
def cancel_attendance(korona_account_id, attendance_id, opts = {})
|
|
238
|
+
cancel_attendance_with_http_info(korona_account_id, attendance_id, opts)
|
|
239
|
+
nil
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
# cancel the attendance
|
|
243
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
244
|
+
# @param attendance_id [String] id of the related object (important: id should match the uuid-format)
|
|
245
|
+
# @param [Hash] opts the optional parameters
|
|
246
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
247
|
+
def cancel_attendance_with_http_info(korona_account_id, attendance_id, opts = {})
|
|
248
|
+
if @api_client.config.debugging
|
|
249
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.cancel_attendance ...'
|
|
250
|
+
end
|
|
251
|
+
# verify the required parameter 'korona_account_id' is set
|
|
252
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
|
253
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.cancel_attendance"
|
|
254
|
+
end
|
|
255
|
+
# verify the required parameter 'attendance_id' is set
|
|
256
|
+
if @api_client.config.client_side_validation && attendance_id.nil?
|
|
257
|
+
fail ArgumentError, "Missing the required parameter 'attendance_id' when calling TicketingApi.cancel_attendance"
|
|
258
|
+
end
|
|
259
|
+
# resource path
|
|
260
|
+
local_var_path = '/accounts/{koronaAccountId}/attendance/{attendanceId}'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s)).sub('{' + 'attendanceId' + '}', CGI.escape(attendance_id.to_s))
|
|
261
|
+
|
|
262
|
+
# query parameters
|
|
263
|
+
query_params = opts[:query_params] || {}
|
|
264
|
+
|
|
265
|
+
# header parameters
|
|
266
|
+
header_params = opts[:header_params] || {}
|
|
267
|
+
# HTTP header 'Accept' (if needed)
|
|
268
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
269
|
+
|
|
270
|
+
# form parameters
|
|
271
|
+
form_params = opts[:form_params] || {}
|
|
272
|
+
|
|
273
|
+
# http body (model)
|
|
274
|
+
post_body = opts[:body]
|
|
275
|
+
|
|
276
|
+
# return_type
|
|
277
|
+
return_type = opts[:return_type]
|
|
278
|
+
|
|
279
|
+
# auth_names
|
|
280
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
281
|
+
|
|
282
|
+
new_options = opts.merge(
|
|
283
|
+
:header_params => header_params,
|
|
284
|
+
:query_params => query_params,
|
|
285
|
+
:form_params => form_params,
|
|
286
|
+
:body => post_body,
|
|
287
|
+
:auth_names => auth_names,
|
|
288
|
+
:return_type => return_type
|
|
289
|
+
)
|
|
290
|
+
|
|
291
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
292
|
+
if @api_client.config.debugging
|
|
293
|
+
@api_client.config.logger.debug "API called: TicketingApi#cancel_attendance\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
294
|
+
end
|
|
295
|
+
return data, status_code, headers
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
# deletes the single event
|
|
299
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
300
|
+
# @param event_id [String] id of the related object (important: id should match the uuid-format)
|
|
301
|
+
# @param [Hash] opts the optional parameters
|
|
302
|
+
# @return [nil]
|
|
303
|
+
def delete_event(korona_account_id, event_id, opts = {})
|
|
304
|
+
delete_event_with_http_info(korona_account_id, event_id, opts)
|
|
305
|
+
nil
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
# deletes the single event
|
|
309
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
310
|
+
# @param event_id [String] id of the related object (important: id should match the uuid-format)
|
|
311
|
+
# @param [Hash] opts the optional parameters
|
|
312
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
313
|
+
def delete_event_with_http_info(korona_account_id, event_id, opts = {})
|
|
314
|
+
if @api_client.config.debugging
|
|
315
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.delete_event ...'
|
|
316
|
+
end
|
|
317
|
+
# verify the required parameter 'korona_account_id' is set
|
|
318
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
|
319
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.delete_event"
|
|
320
|
+
end
|
|
321
|
+
# verify the required parameter 'event_id' is set
|
|
322
|
+
if @api_client.config.client_side_validation && event_id.nil?
|
|
323
|
+
fail ArgumentError, "Missing the required parameter 'event_id' when calling TicketingApi.delete_event"
|
|
324
|
+
end
|
|
325
|
+
# resource path
|
|
326
|
+
local_var_path = '/accounts/{koronaAccountId}/events/{eventId}'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s)).sub('{' + 'eventId' + '}', CGI.escape(event_id.to_s))
|
|
327
|
+
|
|
328
|
+
# query parameters
|
|
329
|
+
query_params = opts[:query_params] || {}
|
|
330
|
+
|
|
331
|
+
# header parameters
|
|
332
|
+
header_params = opts[:header_params] || {}
|
|
333
|
+
# HTTP header 'Accept' (if needed)
|
|
334
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
335
|
+
|
|
336
|
+
# form parameters
|
|
337
|
+
form_params = opts[:form_params] || {}
|
|
338
|
+
|
|
339
|
+
# http body (model)
|
|
340
|
+
post_body = opts[:body]
|
|
341
|
+
|
|
342
|
+
# return_type
|
|
343
|
+
return_type = opts[:return_type]
|
|
344
|
+
|
|
345
|
+
# auth_names
|
|
346
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
347
|
+
|
|
348
|
+
new_options = opts.merge(
|
|
349
|
+
:header_params => header_params,
|
|
350
|
+
:query_params => query_params,
|
|
351
|
+
:form_params => form_params,
|
|
352
|
+
:body => post_body,
|
|
353
|
+
:auth_names => auth_names,
|
|
354
|
+
:return_type => return_type
|
|
355
|
+
)
|
|
356
|
+
|
|
357
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
358
|
+
if @api_client.config.debugging
|
|
359
|
+
@api_client.config.logger.debug "API called: TicketingApi#delete_event\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
360
|
+
end
|
|
361
|
+
return data, status_code, headers
|
|
362
|
+
end
|
|
363
|
+
|
|
364
|
+
# deletes the single ticket definition
|
|
365
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
366
|
+
# @param ticket_definition_id [String] id of the related object (important: id should match the uuid-format)
|
|
367
|
+
# @param [Hash] opts the optional parameters
|
|
368
|
+
# @return [nil]
|
|
369
|
+
def delete_ticket_definition(korona_account_id, ticket_definition_id, opts = {})
|
|
370
|
+
delete_ticket_definition_with_http_info(korona_account_id, ticket_definition_id, opts)
|
|
371
|
+
nil
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
# deletes the single ticket definition
|
|
375
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
376
|
+
# @param ticket_definition_id [String] id of the related object (important: id should match the uuid-format)
|
|
377
|
+
# @param [Hash] opts the optional parameters
|
|
378
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
379
|
+
def delete_ticket_definition_with_http_info(korona_account_id, ticket_definition_id, opts = {})
|
|
380
|
+
if @api_client.config.debugging
|
|
381
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.delete_ticket_definition ...'
|
|
382
|
+
end
|
|
383
|
+
# verify the required parameter 'korona_account_id' is set
|
|
384
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
|
385
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.delete_ticket_definition"
|
|
386
|
+
end
|
|
387
|
+
# verify the required parameter 'ticket_definition_id' is set
|
|
388
|
+
if @api_client.config.client_side_validation && ticket_definition_id.nil?
|
|
389
|
+
fail ArgumentError, "Missing the required parameter 'ticket_definition_id' when calling TicketingApi.delete_ticket_definition"
|
|
390
|
+
end
|
|
391
|
+
# resource path
|
|
392
|
+
local_var_path = '/accounts/{koronaAccountId}/ticketDefinitions/{ticketDefinitionId}'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s)).sub('{' + 'ticketDefinitionId' + '}', CGI.escape(ticket_definition_id.to_s))
|
|
393
|
+
|
|
394
|
+
# query parameters
|
|
395
|
+
query_params = opts[:query_params] || {}
|
|
396
|
+
|
|
397
|
+
# header parameters
|
|
398
|
+
header_params = opts[:header_params] || {}
|
|
399
|
+
# HTTP header 'Accept' (if needed)
|
|
400
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
401
|
+
|
|
402
|
+
# form parameters
|
|
403
|
+
form_params = opts[:form_params] || {}
|
|
404
|
+
|
|
405
|
+
# http body (model)
|
|
406
|
+
post_body = opts[:body]
|
|
407
|
+
|
|
408
|
+
# return_type
|
|
409
|
+
return_type = opts[:return_type]
|
|
410
|
+
|
|
411
|
+
# auth_names
|
|
412
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
413
|
+
|
|
414
|
+
new_options = opts.merge(
|
|
415
|
+
:header_params => header_params,
|
|
416
|
+
:query_params => query_params,
|
|
417
|
+
:form_params => form_params,
|
|
418
|
+
:body => post_body,
|
|
419
|
+
:auth_names => auth_names,
|
|
420
|
+
:return_type => return_type
|
|
421
|
+
)
|
|
422
|
+
|
|
423
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
424
|
+
if @api_client.config.debugging
|
|
425
|
+
@api_client.config.logger.debug "API called: TicketingApi#delete_ticket_definition\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
426
|
+
end
|
|
427
|
+
return data, status_code, headers
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
# deletes a batch of ticket definitions
|
|
431
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
432
|
+
# @param body [Array<TicketDefinition>] array of existing ticket definitions (id or number required)
|
|
433
|
+
# @param [Hash] opts the optional parameters
|
|
434
|
+
# @return [Array<AddOrUpdateResult>]
|
|
435
|
+
def delete_ticket_definitions(korona_account_id, body, opts = {})
|
|
436
|
+
data, _status_code, _headers = delete_ticket_definitions_with_http_info(korona_account_id, body, opts)
|
|
437
|
+
data
|
|
438
|
+
end
|
|
439
|
+
|
|
440
|
+
# deletes a batch of ticket definitions
|
|
441
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
442
|
+
# @param body [Array<TicketDefinition>] array of existing ticket definitions (id or number required)
|
|
443
|
+
# @param [Hash] opts the optional parameters
|
|
444
|
+
# @return [Array<(Array<AddOrUpdateResult>, Integer, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers
|
|
445
|
+
def delete_ticket_definitions_with_http_info(korona_account_id, body, opts = {})
|
|
446
|
+
if @api_client.config.debugging
|
|
447
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.delete_ticket_definitions ...'
|
|
448
|
+
end
|
|
449
|
+
# verify the required parameter 'korona_account_id' is set
|
|
450
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
|
451
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.delete_ticket_definitions"
|
|
452
|
+
end
|
|
453
|
+
# verify the required parameter 'body' is set
|
|
454
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
455
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling TicketingApi.delete_ticket_definitions"
|
|
456
|
+
end
|
|
457
|
+
# resource path
|
|
458
|
+
local_var_path = '/accounts/{koronaAccountId}/ticketDefinitions'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
|
459
|
+
|
|
460
|
+
# query parameters
|
|
461
|
+
query_params = opts[:query_params] || {}
|
|
462
|
+
|
|
463
|
+
# header parameters
|
|
464
|
+
header_params = opts[:header_params] || {}
|
|
465
|
+
# HTTP header 'Accept' (if needed)
|
|
466
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
467
|
+
# HTTP header 'Content-Type'
|
|
468
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
469
|
+
|
|
470
|
+
# form parameters
|
|
471
|
+
form_params = opts[:form_params] || {}
|
|
472
|
+
|
|
473
|
+
# http body (model)
|
|
474
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
475
|
+
|
|
476
|
+
# return_type
|
|
477
|
+
return_type = opts[:return_type] || 'Array<AddOrUpdateResult>'
|
|
478
|
+
|
|
479
|
+
# auth_names
|
|
480
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
481
|
+
|
|
482
|
+
new_options = opts.merge(
|
|
483
|
+
:header_params => header_params,
|
|
484
|
+
:query_params => query_params,
|
|
485
|
+
:form_params => form_params,
|
|
486
|
+
:body => post_body,
|
|
487
|
+
:auth_names => auth_names,
|
|
488
|
+
:return_type => return_type
|
|
489
|
+
)
|
|
490
|
+
|
|
491
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
492
|
+
if @api_client.config.debugging
|
|
493
|
+
@api_client.config.logger.debug "API called: TicketingApi#delete_ticket_definitions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
494
|
+
end
|
|
495
|
+
return data, status_code, headers
|
|
496
|
+
end
|
|
497
|
+
|
|
498
|
+
# lists all attendances
|
|
499
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
500
|
+
# @param [Hash] opts the optional parameters
|
|
501
|
+
# @option opts [Integer] :page number of the page to fetch
|
|
502
|
+
# @option opts [Integer] :size amount of objects to return per page
|
|
503
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
|
504
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
|
505
|
+
# @option opts [Boolean] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
|
506
|
+
# @return [ResultListAttendance]
|
|
507
|
+
def get_attendances(korona_account_id, opts = {})
|
|
508
|
+
data, _status_code, _headers = get_attendances_with_http_info(korona_account_id, opts)
|
|
509
|
+
data
|
|
510
|
+
end
|
|
511
|
+
|
|
512
|
+
# lists all attendances
|
|
513
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
514
|
+
# @param [Hash] opts the optional parameters
|
|
515
|
+
# @option opts [Integer] :page number of the page to fetch
|
|
516
|
+
# @option opts [Integer] :size amount of objects to return per page
|
|
517
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
|
518
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
|
519
|
+
# @option opts [Boolean] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
|
520
|
+
# @return [Array<(ResultListAttendance, Integer, Hash)>] ResultListAttendance data, response status code and response headers
|
|
521
|
+
def get_attendances_with_http_info(korona_account_id, opts = {})
|
|
522
|
+
if @api_client.config.debugging
|
|
523
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.get_attendances ...'
|
|
524
|
+
end
|
|
525
|
+
# verify the required parameter 'korona_account_id' is set
|
|
526
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
|
527
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.get_attendances"
|
|
528
|
+
end
|
|
529
|
+
# resource path
|
|
530
|
+
local_var_path = '/accounts/{koronaAccountId}/attendance'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
|
531
|
+
|
|
532
|
+
# query parameters
|
|
533
|
+
query_params = opts[:query_params] || {}
|
|
534
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
535
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
|
536
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
537
|
+
query_params[:'revision'] = opts[:'revision'] if !opts[:'revision'].nil?
|
|
538
|
+
query_params[:'includeDeleted'] = opts[:'include_deleted'] if !opts[:'include_deleted'].nil?
|
|
539
|
+
|
|
540
|
+
# header parameters
|
|
541
|
+
header_params = opts[:header_params] || {}
|
|
542
|
+
# HTTP header 'Accept' (if needed)
|
|
543
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
544
|
+
|
|
545
|
+
# form parameters
|
|
546
|
+
form_params = opts[:form_params] || {}
|
|
547
|
+
|
|
548
|
+
# http body (model)
|
|
549
|
+
post_body = opts[:body]
|
|
550
|
+
|
|
551
|
+
# return_type
|
|
552
|
+
return_type = opts[:return_type] || 'ResultListAttendance'
|
|
553
|
+
|
|
554
|
+
# auth_names
|
|
555
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
556
|
+
|
|
557
|
+
new_options = opts.merge(
|
|
558
|
+
:header_params => header_params,
|
|
559
|
+
:query_params => query_params,
|
|
560
|
+
:form_params => form_params,
|
|
561
|
+
:body => post_body,
|
|
562
|
+
:auth_names => auth_names,
|
|
563
|
+
:return_type => return_type
|
|
564
|
+
)
|
|
565
|
+
|
|
566
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
567
|
+
if @api_client.config.debugging
|
|
568
|
+
@api_client.config.logger.debug "API called: TicketingApi#get_attendances\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
569
|
+
end
|
|
570
|
+
return data, status_code, headers
|
|
571
|
+
end
|
|
572
|
+
|
|
573
|
+
# returns the single entry gate
|
|
574
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
575
|
+
# @param entry_gate_id [String] id of the related object (important: id should match the uuid-format)
|
|
576
|
+
# @param [Hash] opts the optional parameters
|
|
577
|
+
# @return [EntryGate]
|
|
578
|
+
def get_entry_gate(korona_account_id, entry_gate_id, opts = {})
|
|
579
|
+
data, _status_code, _headers = get_entry_gate_with_http_info(korona_account_id, entry_gate_id, opts)
|
|
580
|
+
data
|
|
581
|
+
end
|
|
582
|
+
|
|
583
|
+
# returns the single entry gate
|
|
584
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
585
|
+
# @param entry_gate_id [String] id of the related object (important: id should match the uuid-format)
|
|
586
|
+
# @param [Hash] opts the optional parameters
|
|
587
|
+
# @return [Array<(EntryGate, Integer, Hash)>] EntryGate data, response status code and response headers
|
|
588
|
+
def get_entry_gate_with_http_info(korona_account_id, entry_gate_id, opts = {})
|
|
589
|
+
if @api_client.config.debugging
|
|
590
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.get_entry_gate ...'
|
|
591
|
+
end
|
|
592
|
+
# verify the required parameter 'korona_account_id' is set
|
|
593
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
|
594
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.get_entry_gate"
|
|
595
|
+
end
|
|
596
|
+
# verify the required parameter 'entry_gate_id' is set
|
|
597
|
+
if @api_client.config.client_side_validation && entry_gate_id.nil?
|
|
598
|
+
fail ArgumentError, "Missing the required parameter 'entry_gate_id' when calling TicketingApi.get_entry_gate"
|
|
599
|
+
end
|
|
600
|
+
# resource path
|
|
601
|
+
local_var_path = '/accounts/{koronaAccountId}/entryGates/{entryGateId}'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s)).sub('{' + 'entryGateId' + '}', CGI.escape(entry_gate_id.to_s))
|
|
602
|
+
|
|
603
|
+
# query parameters
|
|
604
|
+
query_params = opts[:query_params] || {}
|
|
605
|
+
|
|
606
|
+
# header parameters
|
|
607
|
+
header_params = opts[:header_params] || {}
|
|
608
|
+
# HTTP header 'Accept' (if needed)
|
|
609
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
610
|
+
|
|
611
|
+
# form parameters
|
|
612
|
+
form_params = opts[:form_params] || {}
|
|
613
|
+
|
|
614
|
+
# http body (model)
|
|
615
|
+
post_body = opts[:body]
|
|
616
|
+
|
|
617
|
+
# return_type
|
|
618
|
+
return_type = opts[:return_type] || 'EntryGate'
|
|
619
|
+
|
|
620
|
+
# auth_names
|
|
621
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
622
|
+
|
|
623
|
+
new_options = opts.merge(
|
|
624
|
+
:header_params => header_params,
|
|
625
|
+
:query_params => query_params,
|
|
626
|
+
:form_params => form_params,
|
|
627
|
+
:body => post_body,
|
|
628
|
+
:auth_names => auth_names,
|
|
629
|
+
:return_type => return_type
|
|
630
|
+
)
|
|
631
|
+
|
|
632
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
633
|
+
if @api_client.config.debugging
|
|
634
|
+
@api_client.config.logger.debug "API called: TicketingApi#get_entry_gate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
635
|
+
end
|
|
636
|
+
return data, status_code, headers
|
|
637
|
+
end
|
|
638
|
+
|
|
639
|
+
# lists all entry gates
|
|
640
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
641
|
+
# @param [Hash] opts the optional parameters
|
|
642
|
+
# @option opts [Integer] :page number of the page to fetch
|
|
643
|
+
# @option opts [Integer] :size amount of objects to return per page
|
|
644
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
|
645
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
|
646
|
+
# @option opts [Boolean] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
|
647
|
+
# @option opts [String] :number number of the related object
|
|
648
|
+
# @return [ResultListEntryGate]
|
|
649
|
+
def get_entry_gates(korona_account_id, opts = {})
|
|
650
|
+
data, _status_code, _headers = get_entry_gates_with_http_info(korona_account_id, opts)
|
|
651
|
+
data
|
|
652
|
+
end
|
|
653
|
+
|
|
654
|
+
# lists all entry gates
|
|
655
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
656
|
+
# @param [Hash] opts the optional parameters
|
|
657
|
+
# @option opts [Integer] :page number of the page to fetch
|
|
658
|
+
# @option opts [Integer] :size amount of objects to return per page
|
|
659
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
|
660
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
|
661
|
+
# @option opts [Boolean] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
|
662
|
+
# @option opts [String] :number number of the related object
|
|
663
|
+
# @return [Array<(ResultListEntryGate, Integer, Hash)>] ResultListEntryGate data, response status code and response headers
|
|
664
|
+
def get_entry_gates_with_http_info(korona_account_id, opts = {})
|
|
665
|
+
if @api_client.config.debugging
|
|
666
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.get_entry_gates ...'
|
|
667
|
+
end
|
|
668
|
+
# verify the required parameter 'korona_account_id' is set
|
|
669
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
|
670
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.get_entry_gates"
|
|
671
|
+
end
|
|
672
|
+
# resource path
|
|
673
|
+
local_var_path = '/accounts/{koronaAccountId}/entryGates'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
|
674
|
+
|
|
675
|
+
# query parameters
|
|
676
|
+
query_params = opts[:query_params] || {}
|
|
677
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
678
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
|
679
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
680
|
+
query_params[:'revision'] = opts[:'revision'] if !opts[:'revision'].nil?
|
|
681
|
+
query_params[:'includeDeleted'] = opts[:'include_deleted'] if !opts[:'include_deleted'].nil?
|
|
682
|
+
query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
|
|
683
|
+
|
|
684
|
+
# header parameters
|
|
685
|
+
header_params = opts[:header_params] || {}
|
|
686
|
+
# HTTP header 'Accept' (if needed)
|
|
687
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
688
|
+
|
|
689
|
+
# form parameters
|
|
690
|
+
form_params = opts[:form_params] || {}
|
|
691
|
+
|
|
692
|
+
# http body (model)
|
|
693
|
+
post_body = opts[:body]
|
|
694
|
+
|
|
695
|
+
# return_type
|
|
696
|
+
return_type = opts[:return_type] || 'ResultListEntryGate'
|
|
697
|
+
|
|
698
|
+
# auth_names
|
|
699
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
700
|
+
|
|
701
|
+
new_options = opts.merge(
|
|
702
|
+
:header_params => header_params,
|
|
703
|
+
:query_params => query_params,
|
|
704
|
+
:form_params => form_params,
|
|
705
|
+
:body => post_body,
|
|
706
|
+
:auth_names => auth_names,
|
|
707
|
+
:return_type => return_type
|
|
708
|
+
)
|
|
709
|
+
|
|
710
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
711
|
+
if @api_client.config.debugging
|
|
712
|
+
@api_client.config.logger.debug "API called: TicketingApi#get_entry_gates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
713
|
+
end
|
|
714
|
+
return data, status_code, headers
|
|
715
|
+
end
|
|
716
|
+
|
|
717
|
+
# returns the single event
|
|
718
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
719
|
+
# @param event_id [String] id of the related object (important: id should match the uuid-format)
|
|
720
|
+
# @param [Hash] opts the optional parameters
|
|
721
|
+
# @return [Event]
|
|
722
|
+
def get_event(korona_account_id, event_id, opts = {})
|
|
723
|
+
data, _status_code, _headers = get_event_with_http_info(korona_account_id, event_id, opts)
|
|
724
|
+
data
|
|
725
|
+
end
|
|
726
|
+
|
|
727
|
+
# returns the single event
|
|
728
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
729
|
+
# @param event_id [String] id of the related object (important: id should match the uuid-format)
|
|
730
|
+
# @param [Hash] opts the optional parameters
|
|
731
|
+
# @return [Array<(Event, Integer, Hash)>] Event data, response status code and response headers
|
|
732
|
+
def get_event_with_http_info(korona_account_id, event_id, opts = {})
|
|
733
|
+
if @api_client.config.debugging
|
|
734
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.get_event ...'
|
|
735
|
+
end
|
|
736
|
+
# verify the required parameter 'korona_account_id' is set
|
|
737
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
|
738
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.get_event"
|
|
739
|
+
end
|
|
740
|
+
# verify the required parameter 'event_id' is set
|
|
741
|
+
if @api_client.config.client_side_validation && event_id.nil?
|
|
742
|
+
fail ArgumentError, "Missing the required parameter 'event_id' when calling TicketingApi.get_event"
|
|
743
|
+
end
|
|
744
|
+
# resource path
|
|
745
|
+
local_var_path = '/accounts/{koronaAccountId}/events/{eventId}'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s)).sub('{' + 'eventId' + '}', CGI.escape(event_id.to_s))
|
|
746
|
+
|
|
747
|
+
# query parameters
|
|
748
|
+
query_params = opts[:query_params] || {}
|
|
749
|
+
|
|
750
|
+
# header parameters
|
|
751
|
+
header_params = opts[:header_params] || {}
|
|
752
|
+
# HTTP header 'Accept' (if needed)
|
|
753
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
754
|
+
|
|
755
|
+
# form parameters
|
|
756
|
+
form_params = opts[:form_params] || {}
|
|
757
|
+
|
|
758
|
+
# http body (model)
|
|
759
|
+
post_body = opts[:body]
|
|
760
|
+
|
|
761
|
+
# return_type
|
|
762
|
+
return_type = opts[:return_type] || 'Event'
|
|
763
|
+
|
|
764
|
+
# auth_names
|
|
765
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
766
|
+
|
|
767
|
+
new_options = opts.merge(
|
|
768
|
+
:header_params => header_params,
|
|
769
|
+
:query_params => query_params,
|
|
770
|
+
:form_params => form_params,
|
|
771
|
+
:body => post_body,
|
|
772
|
+
:auth_names => auth_names,
|
|
773
|
+
:return_type => return_type
|
|
774
|
+
)
|
|
775
|
+
|
|
776
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
777
|
+
if @api_client.config.debugging
|
|
778
|
+
@api_client.config.logger.debug "API called: TicketingApi#get_event\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
779
|
+
end
|
|
780
|
+
return data, status_code, headers
|
|
781
|
+
end
|
|
782
|
+
|
|
783
|
+
# lists all events
|
|
784
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
785
|
+
# @param [Hash] opts the optional parameters
|
|
786
|
+
# @option opts [Integer] :page number of the page to fetch
|
|
787
|
+
# @option opts [Integer] :size amount of objects to return per page
|
|
788
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
|
789
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
|
790
|
+
# @option opts [Boolean] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
|
791
|
+
# @return [ResultListEvent]
|
|
792
|
+
def get_events(korona_account_id, opts = {})
|
|
793
|
+
data, _status_code, _headers = get_events_with_http_info(korona_account_id, opts)
|
|
794
|
+
data
|
|
795
|
+
end
|
|
796
|
+
|
|
797
|
+
# lists all events
|
|
798
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
799
|
+
# @param [Hash] opts the optional parameters
|
|
800
|
+
# @option opts [Integer] :page number of the page to fetch
|
|
801
|
+
# @option opts [Integer] :size amount of objects to return per page
|
|
802
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
|
803
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
|
804
|
+
# @option opts [Boolean] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
|
805
|
+
# @return [Array<(ResultListEvent, Integer, Hash)>] ResultListEvent data, response status code and response headers
|
|
806
|
+
def get_events_with_http_info(korona_account_id, opts = {})
|
|
807
|
+
if @api_client.config.debugging
|
|
808
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.get_events ...'
|
|
809
|
+
end
|
|
810
|
+
# verify the required parameter 'korona_account_id' is set
|
|
811
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
|
812
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.get_events"
|
|
813
|
+
end
|
|
814
|
+
# resource path
|
|
815
|
+
local_var_path = '/accounts/{koronaAccountId}/events'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
|
816
|
+
|
|
817
|
+
# query parameters
|
|
818
|
+
query_params = opts[:query_params] || {}
|
|
819
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
820
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
|
821
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
822
|
+
query_params[:'revision'] = opts[:'revision'] if !opts[:'revision'].nil?
|
|
823
|
+
query_params[:'includeDeleted'] = opts[:'include_deleted'] if !opts[:'include_deleted'].nil?
|
|
824
|
+
|
|
825
|
+
# header parameters
|
|
826
|
+
header_params = opts[:header_params] || {}
|
|
827
|
+
# HTTP header 'Accept' (if needed)
|
|
828
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
829
|
+
|
|
830
|
+
# form parameters
|
|
831
|
+
form_params = opts[:form_params] || {}
|
|
832
|
+
|
|
833
|
+
# http body (model)
|
|
834
|
+
post_body = opts[:body]
|
|
835
|
+
|
|
836
|
+
# return_type
|
|
837
|
+
return_type = opts[:return_type] || 'ResultListEvent'
|
|
838
|
+
|
|
839
|
+
# auth_names
|
|
840
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
841
|
+
|
|
842
|
+
new_options = opts.merge(
|
|
843
|
+
:header_params => header_params,
|
|
844
|
+
:query_params => query_params,
|
|
845
|
+
:form_params => form_params,
|
|
846
|
+
:body => post_body,
|
|
847
|
+
:auth_names => auth_names,
|
|
848
|
+
:return_type => return_type
|
|
849
|
+
)
|
|
850
|
+
|
|
851
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
852
|
+
if @api_client.config.debugging
|
|
853
|
+
@api_client.config.logger.debug "API called: TicketingApi#get_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
854
|
+
end
|
|
855
|
+
return data, status_code, headers
|
|
856
|
+
end
|
|
857
|
+
|
|
858
|
+
# returns the single ticket definition
|
|
859
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
860
|
+
# @param ticket_definition_id [String] id of the related object (important: id should match the uuid-format)
|
|
861
|
+
# @param [Hash] opts the optional parameters
|
|
862
|
+
# @return [TicketDefinition]
|
|
863
|
+
def get_ticket_definition(korona_account_id, ticket_definition_id, opts = {})
|
|
864
|
+
data, _status_code, _headers = get_ticket_definition_with_http_info(korona_account_id, ticket_definition_id, opts)
|
|
865
|
+
data
|
|
866
|
+
end
|
|
867
|
+
|
|
868
|
+
# returns the single ticket definition
|
|
869
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
870
|
+
# @param ticket_definition_id [String] id of the related object (important: id should match the uuid-format)
|
|
871
|
+
# @param [Hash] opts the optional parameters
|
|
872
|
+
# @return [Array<(TicketDefinition, Integer, Hash)>] TicketDefinition data, response status code and response headers
|
|
873
|
+
def get_ticket_definition_with_http_info(korona_account_id, ticket_definition_id, opts = {})
|
|
874
|
+
if @api_client.config.debugging
|
|
875
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.get_ticket_definition ...'
|
|
876
|
+
end
|
|
877
|
+
# verify the required parameter 'korona_account_id' is set
|
|
878
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
|
879
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.get_ticket_definition"
|
|
880
|
+
end
|
|
881
|
+
# verify the required parameter 'ticket_definition_id' is set
|
|
882
|
+
if @api_client.config.client_side_validation && ticket_definition_id.nil?
|
|
883
|
+
fail ArgumentError, "Missing the required parameter 'ticket_definition_id' when calling TicketingApi.get_ticket_definition"
|
|
884
|
+
end
|
|
885
|
+
# resource path
|
|
886
|
+
local_var_path = '/accounts/{koronaAccountId}/ticketDefinitions/{ticketDefinitionId}'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s)).sub('{' + 'ticketDefinitionId' + '}', CGI.escape(ticket_definition_id.to_s))
|
|
887
|
+
|
|
888
|
+
# query parameters
|
|
889
|
+
query_params = opts[:query_params] || {}
|
|
890
|
+
|
|
891
|
+
# header parameters
|
|
892
|
+
header_params = opts[:header_params] || {}
|
|
893
|
+
# HTTP header 'Accept' (if needed)
|
|
894
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
895
|
+
|
|
896
|
+
# form parameters
|
|
897
|
+
form_params = opts[:form_params] || {}
|
|
898
|
+
|
|
899
|
+
# http body (model)
|
|
900
|
+
post_body = opts[:body]
|
|
901
|
+
|
|
902
|
+
# return_type
|
|
903
|
+
return_type = opts[:return_type] || 'TicketDefinition'
|
|
904
|
+
|
|
905
|
+
# auth_names
|
|
906
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
907
|
+
|
|
908
|
+
new_options = opts.merge(
|
|
909
|
+
:header_params => header_params,
|
|
910
|
+
:query_params => query_params,
|
|
911
|
+
:form_params => form_params,
|
|
912
|
+
:body => post_body,
|
|
913
|
+
:auth_names => auth_names,
|
|
914
|
+
:return_type => return_type
|
|
915
|
+
)
|
|
916
|
+
|
|
917
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
918
|
+
if @api_client.config.debugging
|
|
919
|
+
@api_client.config.logger.debug "API called: TicketingApi#get_ticket_definition\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
920
|
+
end
|
|
921
|
+
return data, status_code, headers
|
|
922
|
+
end
|
|
923
|
+
|
|
924
|
+
# lists all ticket definitions
|
|
925
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
926
|
+
# @param [Hash] opts the optional parameters
|
|
927
|
+
# @option opts [Integer] :page number of the page to fetch
|
|
928
|
+
# @option opts [Integer] :size amount of objects to return per page
|
|
929
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
|
930
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
|
931
|
+
# @option opts [Boolean] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
|
932
|
+
# @return [ResultListTicketDefinition]
|
|
933
|
+
def get_ticket_definitions(korona_account_id, opts = {})
|
|
934
|
+
data, _status_code, _headers = get_ticket_definitions_with_http_info(korona_account_id, opts)
|
|
935
|
+
data
|
|
936
|
+
end
|
|
937
|
+
|
|
938
|
+
# lists all ticket definitions
|
|
939
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
940
|
+
# @param [Hash] opts the optional parameters
|
|
941
|
+
# @option opts [Integer] :page number of the page to fetch
|
|
942
|
+
# @option opts [Integer] :size amount of objects to return per page
|
|
943
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
|
944
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
|
945
|
+
# @option opts [Boolean] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
|
946
|
+
# @return [Array<(ResultListTicketDefinition, Integer, Hash)>] ResultListTicketDefinition data, response status code and response headers
|
|
947
|
+
def get_ticket_definitions_with_http_info(korona_account_id, opts = {})
|
|
948
|
+
if @api_client.config.debugging
|
|
949
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.get_ticket_definitions ...'
|
|
950
|
+
end
|
|
951
|
+
# verify the required parameter 'korona_account_id' is set
|
|
952
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
|
953
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.get_ticket_definitions"
|
|
954
|
+
end
|
|
955
|
+
# resource path
|
|
956
|
+
local_var_path = '/accounts/{koronaAccountId}/ticketDefinitions'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
|
957
|
+
|
|
958
|
+
# query parameters
|
|
959
|
+
query_params = opts[:query_params] || {}
|
|
960
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
961
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
|
962
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
963
|
+
query_params[:'revision'] = opts[:'revision'] if !opts[:'revision'].nil?
|
|
964
|
+
query_params[:'includeDeleted'] = opts[:'include_deleted'] if !opts[:'include_deleted'].nil?
|
|
965
|
+
|
|
966
|
+
# header parameters
|
|
967
|
+
header_params = opts[:header_params] || {}
|
|
968
|
+
# HTTP header 'Accept' (if needed)
|
|
969
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
970
|
+
|
|
971
|
+
# form parameters
|
|
972
|
+
form_params = opts[:form_params] || {}
|
|
973
|
+
|
|
974
|
+
# http body (model)
|
|
975
|
+
post_body = opts[:body]
|
|
976
|
+
|
|
977
|
+
# return_type
|
|
978
|
+
return_type = opts[:return_type] || 'ResultListTicketDefinition'
|
|
979
|
+
|
|
980
|
+
# auth_names
|
|
981
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
982
|
+
|
|
983
|
+
new_options = opts.merge(
|
|
984
|
+
:header_params => header_params,
|
|
985
|
+
:query_params => query_params,
|
|
986
|
+
:form_params => form_params,
|
|
987
|
+
:body => post_body,
|
|
988
|
+
:auth_names => auth_names,
|
|
989
|
+
:return_type => return_type
|
|
990
|
+
)
|
|
991
|
+
|
|
992
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
993
|
+
if @api_client.config.debugging
|
|
994
|
+
@api_client.config.logger.debug "API called: TicketingApi#get_ticket_definitions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
995
|
+
end
|
|
996
|
+
return data, status_code, headers
|
|
997
|
+
end
|
|
998
|
+
|
|
999
|
+
# lists all tickets
|
|
1000
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
1001
|
+
# @param page [Integer] number of the page to fetch
|
|
1002
|
+
# @param size [Integer] amount of objects to return per page
|
|
1003
|
+
# @param [Hash] opts the optional parameters
|
|
1004
|
+
# @option opts [String] :ticket_number ticket number
|
|
1005
|
+
# @option opts [String] :customer_number customer number
|
|
1006
|
+
# @option opts [DateTime] :creation_date_from creation date from
|
|
1007
|
+
# @option opts [DateTime] :creation_date_to creation date to
|
|
1008
|
+
# @option opts [Boolean] :locked is ticket locked
|
|
1009
|
+
# @option opts [String] :owner_last_name last name of owner
|
|
1010
|
+
# @option opts [String] :owner_first_name first name of owner
|
|
1011
|
+
# @option opts [Boolean] :load_owner_image set true if you want to load the owner's image
|
|
1012
|
+
# @return [ResultListTicket]
|
|
1013
|
+
def get_tickets(korona_account_id, page, size, opts = {})
|
|
1014
|
+
data, _status_code, _headers = get_tickets_with_http_info(korona_account_id, page, size, opts)
|
|
1015
|
+
data
|
|
1016
|
+
end
|
|
1017
|
+
|
|
1018
|
+
# lists all tickets
|
|
1019
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
1020
|
+
# @param page [Integer] number of the page to fetch
|
|
1021
|
+
# @param size [Integer] amount of objects to return per page
|
|
1022
|
+
# @param [Hash] opts the optional parameters
|
|
1023
|
+
# @option opts [String] :ticket_number ticket number
|
|
1024
|
+
# @option opts [String] :customer_number customer number
|
|
1025
|
+
# @option opts [DateTime] :creation_date_from creation date from
|
|
1026
|
+
# @option opts [DateTime] :creation_date_to creation date to
|
|
1027
|
+
# @option opts [Boolean] :locked is ticket locked
|
|
1028
|
+
# @option opts [String] :owner_last_name last name of owner
|
|
1029
|
+
# @option opts [String] :owner_first_name first name of owner
|
|
1030
|
+
# @option opts [Boolean] :load_owner_image set true if you want to load the owner's image
|
|
1031
|
+
# @return [Array<(ResultListTicket, Integer, Hash)>] ResultListTicket data, response status code and response headers
|
|
1032
|
+
def get_tickets_with_http_info(korona_account_id, page, size, opts = {})
|
|
1033
|
+
if @api_client.config.debugging
|
|
1034
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.get_tickets ...'
|
|
1035
|
+
end
|
|
1036
|
+
# verify the required parameter 'korona_account_id' is set
|
|
1037
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
|
1038
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.get_tickets"
|
|
1039
|
+
end
|
|
1040
|
+
# verify the required parameter 'page' is set
|
|
1041
|
+
if @api_client.config.client_side_validation && page.nil?
|
|
1042
|
+
fail ArgumentError, "Missing the required parameter 'page' when calling TicketingApi.get_tickets"
|
|
1043
|
+
end
|
|
1044
|
+
# verify the required parameter 'size' is set
|
|
1045
|
+
if @api_client.config.client_side_validation && size.nil?
|
|
1046
|
+
fail ArgumentError, "Missing the required parameter 'size' when calling TicketingApi.get_tickets"
|
|
1047
|
+
end
|
|
1048
|
+
# resource path
|
|
1049
|
+
local_var_path = '/accounts/{koronaAccountId}/tickets'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
|
1050
|
+
|
|
1051
|
+
# query parameters
|
|
1052
|
+
query_params = opts[:query_params] || {}
|
|
1053
|
+
query_params[:'page'] = page
|
|
1054
|
+
query_params[:'size'] = size
|
|
1055
|
+
query_params[:'ticketNumber'] = opts[:'ticket_number'] if !opts[:'ticket_number'].nil?
|
|
1056
|
+
query_params[:'customerNumber'] = opts[:'customer_number'] if !opts[:'customer_number'].nil?
|
|
1057
|
+
query_params[:'creationDateFrom'] = opts[:'creation_date_from'] if !opts[:'creation_date_from'].nil?
|
|
1058
|
+
query_params[:'creationDateTo'] = opts[:'creation_date_to'] if !opts[:'creation_date_to'].nil?
|
|
1059
|
+
query_params[:'locked'] = opts[:'locked'] if !opts[:'locked'].nil?
|
|
1060
|
+
query_params[:'ownerLastName'] = opts[:'owner_last_name'] if !opts[:'owner_last_name'].nil?
|
|
1061
|
+
query_params[:'ownerFirstName'] = opts[:'owner_first_name'] if !opts[:'owner_first_name'].nil?
|
|
1062
|
+
query_params[:'loadOwnerImage'] = opts[:'load_owner_image'] if !opts[:'load_owner_image'].nil?
|
|
1063
|
+
|
|
1064
|
+
# header parameters
|
|
1065
|
+
header_params = opts[:header_params] || {}
|
|
1066
|
+
# HTTP header 'Accept' (if needed)
|
|
1067
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1068
|
+
|
|
1069
|
+
# form parameters
|
|
1070
|
+
form_params = opts[:form_params] || {}
|
|
1071
|
+
|
|
1072
|
+
# http body (model)
|
|
1073
|
+
post_body = opts[:body]
|
|
1074
|
+
|
|
1075
|
+
# return_type
|
|
1076
|
+
return_type = opts[:return_type] || 'ResultListTicket'
|
|
1077
|
+
|
|
1078
|
+
# auth_names
|
|
1079
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
1080
|
+
|
|
1081
|
+
new_options = opts.merge(
|
|
1082
|
+
:header_params => header_params,
|
|
1083
|
+
:query_params => query_params,
|
|
1084
|
+
:form_params => form_params,
|
|
1085
|
+
:body => post_body,
|
|
1086
|
+
:auth_names => auth_names,
|
|
1087
|
+
:return_type => return_type
|
|
1088
|
+
)
|
|
1089
|
+
|
|
1090
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1091
|
+
if @api_client.config.debugging
|
|
1092
|
+
@api_client.config.logger.debug "API called: TicketingApi#get_tickets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1093
|
+
end
|
|
1094
|
+
return data, status_code, headers
|
|
1095
|
+
end
|
|
1096
|
+
|
|
1097
|
+
# locks the single ticket
|
|
1098
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
1099
|
+
# @param ticket_number [String] id of the related object (important: id should match the uuid-format)
|
|
1100
|
+
# @param [Hash] opts the optional parameters
|
|
1101
|
+
# @return [nil]
|
|
1102
|
+
def lock_ticket(korona_account_id, ticket_number, opts = {})
|
|
1103
|
+
lock_ticket_with_http_info(korona_account_id, ticket_number, opts)
|
|
1104
|
+
nil
|
|
1105
|
+
end
|
|
1106
|
+
|
|
1107
|
+
# locks the single ticket
|
|
1108
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
1109
|
+
# @param ticket_number [String] id of the related object (important: id should match the uuid-format)
|
|
1110
|
+
# @param [Hash] opts the optional parameters
|
|
1111
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1112
|
+
def lock_ticket_with_http_info(korona_account_id, ticket_number, opts = {})
|
|
1113
|
+
if @api_client.config.debugging
|
|
1114
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.lock_ticket ...'
|
|
1115
|
+
end
|
|
1116
|
+
# verify the required parameter 'korona_account_id' is set
|
|
1117
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
|
1118
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.lock_ticket"
|
|
1119
|
+
end
|
|
1120
|
+
# verify the required parameter 'ticket_number' is set
|
|
1121
|
+
if @api_client.config.client_side_validation && ticket_number.nil?
|
|
1122
|
+
fail ArgumentError, "Missing the required parameter 'ticket_number' when calling TicketingApi.lock_ticket"
|
|
1123
|
+
end
|
|
1124
|
+
# resource path
|
|
1125
|
+
local_var_path = '/accounts/{koronaAccountId}/tickets/{ticketNumber}'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s)).sub('{' + 'ticketNumber' + '}', CGI.escape(ticket_number.to_s))
|
|
1126
|
+
|
|
1127
|
+
# query parameters
|
|
1128
|
+
query_params = opts[:query_params] || {}
|
|
1129
|
+
|
|
1130
|
+
# header parameters
|
|
1131
|
+
header_params = opts[:header_params] || {}
|
|
1132
|
+
# HTTP header 'Accept' (if needed)
|
|
1133
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1134
|
+
|
|
1135
|
+
# form parameters
|
|
1136
|
+
form_params = opts[:form_params] || {}
|
|
1137
|
+
|
|
1138
|
+
# http body (model)
|
|
1139
|
+
post_body = opts[:body]
|
|
1140
|
+
|
|
1141
|
+
# return_type
|
|
1142
|
+
return_type = opts[:return_type]
|
|
1143
|
+
|
|
1144
|
+
# auth_names
|
|
1145
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
1146
|
+
|
|
1147
|
+
new_options = opts.merge(
|
|
1148
|
+
:header_params => header_params,
|
|
1149
|
+
:query_params => query_params,
|
|
1150
|
+
:form_params => form_params,
|
|
1151
|
+
:body => post_body,
|
|
1152
|
+
:auth_names => auth_names,
|
|
1153
|
+
:return_type => return_type
|
|
1154
|
+
)
|
|
1155
|
+
|
|
1156
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
1157
|
+
if @api_client.config.debugging
|
|
1158
|
+
@api_client.config.logger.debug "API called: TicketingApi#lock_ticket\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1159
|
+
end
|
|
1160
|
+
return data, status_code, headers
|
|
1161
|
+
end
|
|
1162
|
+
|
|
1163
|
+
# unlocks the single ticket
|
|
1164
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
1165
|
+
# @param ticket_number [String] id of the related object (important: id should match the uuid-format)
|
|
1166
|
+
# @param [Hash] opts the optional parameters
|
|
1167
|
+
# @return [nil]
|
|
1168
|
+
def unlock_ticket(korona_account_id, ticket_number, opts = {})
|
|
1169
|
+
unlock_ticket_with_http_info(korona_account_id, ticket_number, opts)
|
|
1170
|
+
nil
|
|
1171
|
+
end
|
|
1172
|
+
|
|
1173
|
+
# unlocks the single ticket
|
|
1174
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
1175
|
+
# @param ticket_number [String] id of the related object (important: id should match the uuid-format)
|
|
1176
|
+
# @param [Hash] opts the optional parameters
|
|
1177
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1178
|
+
def unlock_ticket_with_http_info(korona_account_id, ticket_number, opts = {})
|
|
1179
|
+
if @api_client.config.debugging
|
|
1180
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.unlock_ticket ...'
|
|
1181
|
+
end
|
|
1182
|
+
# verify the required parameter 'korona_account_id' is set
|
|
1183
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
|
1184
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.unlock_ticket"
|
|
1185
|
+
end
|
|
1186
|
+
# verify the required parameter 'ticket_number' is set
|
|
1187
|
+
if @api_client.config.client_side_validation && ticket_number.nil?
|
|
1188
|
+
fail ArgumentError, "Missing the required parameter 'ticket_number' when calling TicketingApi.unlock_ticket"
|
|
1189
|
+
end
|
|
1190
|
+
# resource path
|
|
1191
|
+
local_var_path = '/accounts/{koronaAccountId}/tickets/{ticketNumber}'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s)).sub('{' + 'ticketNumber' + '}', CGI.escape(ticket_number.to_s))
|
|
1192
|
+
|
|
1193
|
+
# query parameters
|
|
1194
|
+
query_params = opts[:query_params] || {}
|
|
1195
|
+
|
|
1196
|
+
# header parameters
|
|
1197
|
+
header_params = opts[:header_params] || {}
|
|
1198
|
+
# HTTP header 'Accept' (if needed)
|
|
1199
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1200
|
+
|
|
1201
|
+
# form parameters
|
|
1202
|
+
form_params = opts[:form_params] || {}
|
|
1203
|
+
|
|
1204
|
+
# http body (model)
|
|
1205
|
+
post_body = opts[:body]
|
|
1206
|
+
|
|
1207
|
+
# return_type
|
|
1208
|
+
return_type = opts[:return_type]
|
|
1209
|
+
|
|
1210
|
+
# auth_names
|
|
1211
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
1212
|
+
|
|
1213
|
+
new_options = opts.merge(
|
|
1214
|
+
:header_params => header_params,
|
|
1215
|
+
:query_params => query_params,
|
|
1216
|
+
:form_params => form_params,
|
|
1217
|
+
:body => post_body,
|
|
1218
|
+
:auth_names => auth_names,
|
|
1219
|
+
:return_type => return_type
|
|
1220
|
+
)
|
|
1221
|
+
|
|
1222
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1223
|
+
if @api_client.config.debugging
|
|
1224
|
+
@api_client.config.logger.debug "API called: TicketingApi#unlock_ticket\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1225
|
+
end
|
|
1226
|
+
return data, status_code, headers
|
|
1227
|
+
end
|
|
1228
|
+
|
|
1229
|
+
# updates the single event
|
|
1230
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
1231
|
+
# @param event_id [String] id of the related object (important: id should match the uuid-format)
|
|
1232
|
+
# @param body [Event] the properties to update of the event
|
|
1233
|
+
# @param [Hash] opts the optional parameters
|
|
1234
|
+
# @return [nil]
|
|
1235
|
+
def update_event(korona_account_id, event_id, body, opts = {})
|
|
1236
|
+
update_event_with_http_info(korona_account_id, event_id, body, opts)
|
|
1237
|
+
nil
|
|
1238
|
+
end
|
|
1239
|
+
|
|
1240
|
+
# updates the single event
|
|
1241
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
1242
|
+
# @param event_id [String] id of the related object (important: id should match the uuid-format)
|
|
1243
|
+
# @param body [Event] the properties to update of the event
|
|
1244
|
+
# @param [Hash] opts the optional parameters
|
|
1245
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1246
|
+
def update_event_with_http_info(korona_account_id, event_id, body, opts = {})
|
|
1247
|
+
if @api_client.config.debugging
|
|
1248
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.update_event ...'
|
|
1249
|
+
end
|
|
1250
|
+
# verify the required parameter 'korona_account_id' is set
|
|
1251
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
|
1252
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.update_event"
|
|
1253
|
+
end
|
|
1254
|
+
# verify the required parameter 'event_id' is set
|
|
1255
|
+
if @api_client.config.client_side_validation && event_id.nil?
|
|
1256
|
+
fail ArgumentError, "Missing the required parameter 'event_id' when calling TicketingApi.update_event"
|
|
1257
|
+
end
|
|
1258
|
+
# verify the required parameter 'body' is set
|
|
1259
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
1260
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling TicketingApi.update_event"
|
|
1261
|
+
end
|
|
1262
|
+
# resource path
|
|
1263
|
+
local_var_path = '/accounts/{koronaAccountId}/events/{eventId}'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s)).sub('{' + 'eventId' + '}', CGI.escape(event_id.to_s))
|
|
1264
|
+
|
|
1265
|
+
# query parameters
|
|
1266
|
+
query_params = opts[:query_params] || {}
|
|
1267
|
+
|
|
1268
|
+
# header parameters
|
|
1269
|
+
header_params = opts[:header_params] || {}
|
|
1270
|
+
# HTTP header 'Accept' (if needed)
|
|
1271
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1272
|
+
# HTTP header 'Content-Type'
|
|
1273
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1274
|
+
|
|
1275
|
+
# form parameters
|
|
1276
|
+
form_params = opts[:form_params] || {}
|
|
1277
|
+
|
|
1278
|
+
# http body (model)
|
|
1279
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
1280
|
+
|
|
1281
|
+
# return_type
|
|
1282
|
+
return_type = opts[:return_type]
|
|
1283
|
+
|
|
1284
|
+
# auth_names
|
|
1285
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
1286
|
+
|
|
1287
|
+
new_options = opts.merge(
|
|
1288
|
+
:header_params => header_params,
|
|
1289
|
+
:query_params => query_params,
|
|
1290
|
+
:form_params => form_params,
|
|
1291
|
+
:body => post_body,
|
|
1292
|
+
:auth_names => auth_names,
|
|
1293
|
+
:return_type => return_type
|
|
1294
|
+
)
|
|
1295
|
+
|
|
1296
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1297
|
+
if @api_client.config.debugging
|
|
1298
|
+
@api_client.config.logger.debug "API called: TicketingApi#update_event\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1299
|
+
end
|
|
1300
|
+
return data, status_code, headers
|
|
1301
|
+
end
|
|
1302
|
+
|
|
1303
|
+
# updates a batch of events
|
|
1304
|
+
# [number] must be set in the objects, otherwise the object cannot be updated
|
|
1305
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
1306
|
+
# @param body [Array<Event>] an array of existing events
|
|
1307
|
+
# @param [Hash] opts the optional parameters
|
|
1308
|
+
# @return [Array<AddOrUpdateResult>]
|
|
1309
|
+
def update_events(korona_account_id, body, opts = {})
|
|
1310
|
+
data, _status_code, _headers = update_events_with_http_info(korona_account_id, body, opts)
|
|
1311
|
+
data
|
|
1312
|
+
end
|
|
1313
|
+
|
|
1314
|
+
# updates a batch of events
|
|
1315
|
+
# [number] must be set in the objects, otherwise the object cannot be updated
|
|
1316
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
1317
|
+
# @param body [Array<Event>] an array of existing events
|
|
1318
|
+
# @param [Hash] opts the optional parameters
|
|
1319
|
+
# @return [Array<(Array<AddOrUpdateResult>, Integer, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers
|
|
1320
|
+
def update_events_with_http_info(korona_account_id, body, opts = {})
|
|
1321
|
+
if @api_client.config.debugging
|
|
1322
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.update_events ...'
|
|
1323
|
+
end
|
|
1324
|
+
# verify the required parameter 'korona_account_id' is set
|
|
1325
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
|
1326
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.update_events"
|
|
1327
|
+
end
|
|
1328
|
+
# verify the required parameter 'body' is set
|
|
1329
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
1330
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling TicketingApi.update_events"
|
|
1331
|
+
end
|
|
1332
|
+
# resource path
|
|
1333
|
+
local_var_path = '/accounts/{koronaAccountId}/events'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
|
1334
|
+
|
|
1335
|
+
# query parameters
|
|
1336
|
+
query_params = opts[:query_params] || {}
|
|
1337
|
+
|
|
1338
|
+
# header parameters
|
|
1339
|
+
header_params = opts[:header_params] || {}
|
|
1340
|
+
# HTTP header 'Accept' (if needed)
|
|
1341
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1342
|
+
# HTTP header 'Content-Type'
|
|
1343
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1344
|
+
|
|
1345
|
+
# form parameters
|
|
1346
|
+
form_params = opts[:form_params] || {}
|
|
1347
|
+
|
|
1348
|
+
# http body (model)
|
|
1349
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
1350
|
+
|
|
1351
|
+
# return_type
|
|
1352
|
+
return_type = opts[:return_type] || 'Array<AddOrUpdateResult>'
|
|
1353
|
+
|
|
1354
|
+
# auth_names
|
|
1355
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
1356
|
+
|
|
1357
|
+
new_options = opts.merge(
|
|
1358
|
+
:header_params => header_params,
|
|
1359
|
+
:query_params => query_params,
|
|
1360
|
+
:form_params => form_params,
|
|
1361
|
+
:body => post_body,
|
|
1362
|
+
:auth_names => auth_names,
|
|
1363
|
+
:return_type => return_type
|
|
1364
|
+
)
|
|
1365
|
+
|
|
1366
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1367
|
+
if @api_client.config.debugging
|
|
1368
|
+
@api_client.config.logger.debug "API called: TicketingApi#update_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1369
|
+
end
|
|
1370
|
+
return data, status_code, headers
|
|
1371
|
+
end
|
|
1372
|
+
|
|
1373
|
+
# updates the single ticket
|
|
1374
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
1375
|
+
# @param ticket_number [String] old ticket number
|
|
1376
|
+
# @param [Hash] opts the optional parameters
|
|
1377
|
+
# @option opts [String] :new_ticket_number new ticket number
|
|
1378
|
+
# @option opts [String] :first_name ticket owner's first name
|
|
1379
|
+
# @option opts [String] :last_name ticket owner's last name
|
|
1380
|
+
# @return [nil]
|
|
1381
|
+
def update_ticket(korona_account_id, ticket_number, opts = {})
|
|
1382
|
+
update_ticket_with_http_info(korona_account_id, ticket_number, opts)
|
|
1383
|
+
nil
|
|
1384
|
+
end
|
|
1385
|
+
|
|
1386
|
+
# updates the single ticket
|
|
1387
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
1388
|
+
# @param ticket_number [String] old ticket number
|
|
1389
|
+
# @param [Hash] opts the optional parameters
|
|
1390
|
+
# @option opts [String] :new_ticket_number new ticket number
|
|
1391
|
+
# @option opts [String] :first_name ticket owner's first name
|
|
1392
|
+
# @option opts [String] :last_name ticket owner's last name
|
|
1393
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1394
|
+
def update_ticket_with_http_info(korona_account_id, ticket_number, opts = {})
|
|
1395
|
+
if @api_client.config.debugging
|
|
1396
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.update_ticket ...'
|
|
1397
|
+
end
|
|
1398
|
+
# verify the required parameter 'korona_account_id' is set
|
|
1399
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
|
1400
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.update_ticket"
|
|
1401
|
+
end
|
|
1402
|
+
# verify the required parameter 'ticket_number' is set
|
|
1403
|
+
if @api_client.config.client_side_validation && ticket_number.nil?
|
|
1404
|
+
fail ArgumentError, "Missing the required parameter 'ticket_number' when calling TicketingApi.update_ticket"
|
|
1405
|
+
end
|
|
1406
|
+
# resource path
|
|
1407
|
+
local_var_path = '/accounts/{koronaAccountId}/tickets/{ticketNumber}'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s)).sub('{' + 'ticketNumber' + '}', CGI.escape(ticket_number.to_s))
|
|
1408
|
+
|
|
1409
|
+
# query parameters
|
|
1410
|
+
query_params = opts[:query_params] || {}
|
|
1411
|
+
query_params[:'newTicketNumber'] = opts[:'new_ticket_number'] if !opts[:'new_ticket_number'].nil?
|
|
1412
|
+
query_params[:'firstName'] = opts[:'first_name'] if !opts[:'first_name'].nil?
|
|
1413
|
+
query_params[:'lastName'] = opts[:'last_name'] if !opts[:'last_name'].nil?
|
|
1414
|
+
|
|
1415
|
+
# header parameters
|
|
1416
|
+
header_params = opts[:header_params] || {}
|
|
1417
|
+
# HTTP header 'Accept' (if needed)
|
|
1418
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1419
|
+
|
|
1420
|
+
# form parameters
|
|
1421
|
+
form_params = opts[:form_params] || {}
|
|
1422
|
+
|
|
1423
|
+
# http body (model)
|
|
1424
|
+
post_body = opts[:body]
|
|
1425
|
+
|
|
1426
|
+
# return_type
|
|
1427
|
+
return_type = opts[:return_type]
|
|
1428
|
+
|
|
1429
|
+
# auth_names
|
|
1430
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
1431
|
+
|
|
1432
|
+
new_options = opts.merge(
|
|
1433
|
+
:header_params => header_params,
|
|
1434
|
+
:query_params => query_params,
|
|
1435
|
+
:form_params => form_params,
|
|
1436
|
+
:body => post_body,
|
|
1437
|
+
:auth_names => auth_names,
|
|
1438
|
+
:return_type => return_type
|
|
1439
|
+
)
|
|
1440
|
+
|
|
1441
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1442
|
+
if @api_client.config.debugging
|
|
1443
|
+
@api_client.config.logger.debug "API called: TicketingApi#update_ticket\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1444
|
+
end
|
|
1445
|
+
return data, status_code, headers
|
|
1446
|
+
end
|
|
1447
|
+
|
|
1448
|
+
# updates a batch of ticket definitions
|
|
1449
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
1450
|
+
# @param body [Array<TicketDefinition>] array of existing ticket definitions (id or number required)
|
|
1451
|
+
# @param [Hash] opts the optional parameters
|
|
1452
|
+
# @return [Array<AddOrUpdateResult>]
|
|
1453
|
+
def update_ticket_definitions(korona_account_id, body, opts = {})
|
|
1454
|
+
data, _status_code, _headers = update_ticket_definitions_with_http_info(korona_account_id, body, opts)
|
|
1455
|
+
data
|
|
1456
|
+
end
|
|
1457
|
+
|
|
1458
|
+
# updates a batch of ticket definitions
|
|
1459
|
+
# @param korona_account_id [String] account id of the KORONA.cloud account
|
|
1460
|
+
# @param body [Array<TicketDefinition>] array of existing ticket definitions (id or number required)
|
|
1461
|
+
# @param [Hash] opts the optional parameters
|
|
1462
|
+
# @return [Array<(Array<AddOrUpdateResult>, Integer, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers
|
|
1463
|
+
def update_ticket_definitions_with_http_info(korona_account_id, body, opts = {})
|
|
1464
|
+
if @api_client.config.debugging
|
|
1465
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.update_ticket_definitions ...'
|
|
1466
|
+
end
|
|
1467
|
+
# verify the required parameter 'korona_account_id' is set
|
|
1468
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
|
1469
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.update_ticket_definitions"
|
|
1470
|
+
end
|
|
1471
|
+
# verify the required parameter 'body' is set
|
|
1472
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
1473
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling TicketingApi.update_ticket_definitions"
|
|
1474
|
+
end
|
|
1475
|
+
# resource path
|
|
1476
|
+
local_var_path = '/accounts/{koronaAccountId}/ticketDefinitions'.sub('{' + 'koronaAccountId' + '}', CGI.escape(korona_account_id.to_s))
|
|
1477
|
+
|
|
1478
|
+
# query parameters
|
|
1479
|
+
query_params = opts[:query_params] || {}
|
|
1480
|
+
|
|
1481
|
+
# header parameters
|
|
1482
|
+
header_params = opts[:header_params] || {}
|
|
1483
|
+
# HTTP header 'Accept' (if needed)
|
|
1484
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1485
|
+
# HTTP header 'Content-Type'
|
|
1486
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1487
|
+
|
|
1488
|
+
# form parameters
|
|
1489
|
+
form_params = opts[:form_params] || {}
|
|
1490
|
+
|
|
1491
|
+
# http body (model)
|
|
1492
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
1493
|
+
|
|
1494
|
+
# return_type
|
|
1495
|
+
return_type = opts[:return_type] || 'Array<AddOrUpdateResult>'
|
|
1496
|
+
|
|
1497
|
+
# auth_names
|
|
1498
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
1499
|
+
|
|
1500
|
+
new_options = opts.merge(
|
|
1501
|
+
:header_params => header_params,
|
|
1502
|
+
:query_params => query_params,
|
|
1503
|
+
:form_params => form_params,
|
|
1504
|
+
:body => post_body,
|
|
1505
|
+
:auth_names => auth_names,
|
|
1506
|
+
:return_type => return_type
|
|
1507
|
+
)
|
|
1508
|
+
|
|
1509
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1510
|
+
if @api_client.config.debugging
|
|
1511
|
+
@api_client.config.logger.debug "API called: TicketingApi#update_ticket_definitions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1512
|
+
end
|
|
1513
|
+
return data, status_code, headers
|
|
1514
|
+
end
|
|
1515
|
+
end
|
|
1516
|
+
end
|