korona_client 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +171 -89
- data/config.json +6 -0
- data/docs/AccountTransaction.md +2 -0
- data/docs/AccountsApi.md +12 -12
- data/docs/AddOrUpdateResult.md +1 -0
- data/docs/AdditionalInfo.md +9 -0
- data/docs/AdditionalReceiptInfoType.md +22 -0
- data/docs/AdditionalReceiptInfoTypesApi.md +133 -0
- data/docs/AssortmentsApi.md +217 -48
- data/docs/Attendance.md +17 -0
- data/docs/Cashier.md +1 -0
- data/docs/CashiersApi.md +15 -13
- data/docs/Category.md +1 -0
- data/docs/CommodityGroupsApi.md +423 -0
- data/docs/CreationTask.md +17 -0
- data/docs/CurrenciesApi.md +15 -13
- data/docs/CustomerGroupsApi.md +15 -13
- data/docs/CustomerOrder.md +2 -2
- data/docs/CustomerOrdersApi.md +52 -46
- data/docs/CustomersApi.md +108 -45
- data/docs/DayTimePeriod.md +9 -0
- data/docs/DeliveryNote.md +22 -0
- data/docs/DeliveryNoteItem.md +14 -0
- data/docs/DeliveryNotesApi.md +316 -0
- data/docs/Deposit.md +12 -0
- data/docs/Discount.md +10 -0
- data/docs/EconomicZonesApi.md +15 -13
- data/docs/EndOfDayStatement.md +1 -1
- data/docs/Event.md +2 -0
- data/docs/ExternalSystemCall.md +20 -0
- data/docs/ExternalSystemCallsApi.md +423 -0
- data/docs/ImagesApi.md +8 -7
- data/docs/InfoTextsApi.md +15 -13
- data/docs/InventoriesApi.md +894 -0
- data/docs/KoronaAccount.md +1 -0
- data/docs/KoronaAccountApi.md +5 -5
- data/docs/MediaUrl.md +8 -0
- data/docs/OrganizationalUnit.md +1 -0
- data/docs/OrganizationalUnitsApi.md +108 -104
- data/docs/PaymentMethod.md +3 -0
- data/docs/PaymentMethodsApi.md +15 -13
- data/docs/PointsOfSaleApi.md +85 -74
- data/docs/Pos.md +5 -3
- data/docs/PriceGroupsApi.md +15 -13
- data/docs/Product.md +2 -0
- data/docs/ProductsApi.md +121 -58
- data/docs/Receipt.md +5 -1
- data/docs/ReceiptItem.md +3 -0
- data/docs/ReceiptsApi.md +20 -14
- data/docs/ResultListAdditionalReceiptInfoType.md +13 -0
- data/docs/ResultListAttendance.md +13 -0
- data/docs/ResultListCreationTask.md +13 -0
- data/docs/ResultListDeliveryNote.md +13 -0
- data/docs/ResultListExternalSystemCall.md +13 -0
- data/docs/ResultListTicket.md +13 -0
- data/docs/ResultListTimeTrackingEntity.md +13 -0
- data/docs/ResultListTimeTrackingEntry.md +13 -0
- data/docs/SalesTaxesApi.md +15 -13
- data/docs/Sector.md +1 -0
- data/docs/SectorRevenueAccountItem.md +9 -0
- data/docs/SectorsApi.md +15 -13
- data/docs/Signature.md +10 -0
- data/docs/StatisticsApi.md +28 -28
- data/docs/StockReceipt.md +1 -0
- data/docs/StockReceiptsApi.md +687 -0
- data/docs/SuppliersApi.md +15 -13
- data/docs/TagsApi.md +303 -13
- data/docs/Ticket.md +14 -0
- data/docs/TicketCreationApi.md +127 -0
- data/docs/TicketPersonalization.md +11 -0
- data/docs/TicketingApi.md +975 -76
- data/docs/TimeTrackingApi.md +388 -0
- data/docs/TimeTrackingEntity.md +13 -0
- data/docs/TimeTrackingEntry.md +14 -0
- data/docs/TotalPeriod.md +9 -0
- data/docs/Validity.md +11 -0
- data/korona_client-1.0.0.gem +0 -0
- data/korona_client.gemspec +7 -8
- data/lib/korona_client.rb +38 -5
- data/lib/korona_client/api/accounts_api.rb +24 -26
- data/lib/korona_client/api/additional_receipt_info_types_api.rb +155 -0
- data/lib/korona_client/api/assortments_api.rb +259 -82
- data/lib/korona_client/api/cashiers_api.rb +27 -26
- data/lib/korona_client/api/commodity_groups_api.rb +462 -0
- data/lib/korona_client/api/currencies_api.rb +27 -26
- data/lib/korona_client/api/customer_groups_api.rb +27 -26
- data/lib/korona_client/api/customer_orders_api.rb +78 -78
- data/lib/korona_client/api/customers_api.rb +137 -77
- data/lib/korona_client/api/delivery_notes_api.rb +354 -0
- data/lib/korona_client/api/economic_zones_api.rb +27 -26
- data/lib/korona_client/api/external_system_calls_api.rb +462 -0
- data/lib/korona_client/api/images_api.rb +16 -16
- data/lib/korona_client/api/info_texts_api.rb +27 -26
- data/lib/korona_client/api/inventories_api.rb +1014 -0
- data/lib/korona_client/api/korona_account_api.rb +11 -12
- data/lib/korona_client/api/organizational_units_api.rb +157 -162
- data/lib/korona_client/api/payment_methods_api.rb +27 -26
- data/lib/korona_client/api/points_of_sale_api.rb +127 -121
- data/lib/korona_client/api/price_groups_api.rb +27 -26
- data/lib/korona_client/api/products_api.rb +154 -95
- data/lib/korona_client/api/receipts_api.rb +27 -20
- data/lib/korona_client/api/sales_taxes_api.rb +27 -26
- data/lib/korona_client/api/sectors_api.rb +27 -26
- data/lib/korona_client/api/statistics_api.rb +32 -36
- data/lib/korona_client/api/stock_receipts_api.rb +769 -0
- data/lib/korona_client/api/suppliers_api.rb +27 -26
- data/lib/korona_client/api/tags_api.rb +326 -21
- data/lib/korona_client/api/ticket_creation_api.rb +149 -0
- data/lib/korona_client/api/ticketing_api.rb +1084 -132
- data/lib/korona_client/api/time_tracking_api.rb +425 -0
- data/lib/korona_client/api_client.rb +11 -11
- data/lib/korona_client/api_error.rb +3 -3
- data/lib/korona_client/configuration.rb +4 -4
- data/lib/korona_client/models/account.rb +11 -15
- data/lib/korona_client/models/account_summary.rb +8 -13
- data/lib/korona_client/models/account_transaction.rb +32 -15
- data/lib/korona_client/models/add_or_update_result.rb +24 -19
- data/lib/korona_client/models/additional_info.rb +192 -0
- data/lib/korona_client/models/additional_receipt_info_type.rb +319 -0
- data/lib/korona_client/models/address_information.rb +8 -13
- data/lib/korona_client/models/admission.rb +8 -13
- data/lib/korona_client/models/amount.rb +8 -13
- data/lib/korona_client/models/amount_count_data.rb +8 -13
- data/lib/korona_client/models/assortment.rb +8 -13
- data/lib/korona_client/models/attendance.rb +268 -0
- data/lib/korona_client/models/bad_request_error.rb +11 -15
- data/lib/korona_client/models/capacity.rb +8 -13
- data/lib/korona_client/models/cashier.rb +21 -16
- data/lib/korona_client/models/cashier_summary.rb +8 -13
- data/lib/korona_client/models/category.rb +19 -15
- data/lib/korona_client/models/cloud_subscription.rb +11 -15
- data/lib/korona_client/models/commodity_group.rb +8 -13
- data/lib/korona_client/models/commodity_group_summary.rb +8 -13
- data/lib/korona_client/models/company_identification.rb +8 -13
- data/lib/korona_client/models/creation_task.rb +298 -0
- data/lib/korona_client/models/currency.rb +8 -13
- data/lib/korona_client/models/currency_denomination.rb +11 -15
- data/lib/korona_client/models/currency_exchange_rate.rb +8 -13
- data/lib/korona_client/models/customer.rb +11 -15
- data/lib/korona_client/models/customer_card.rb +11 -15
- data/lib/korona_client/models/customer_data.rb +8 -13
- data/lib/korona_client/models/customer_group.rb +8 -13
- data/lib/korona_client/models/customer_group_summary.rb +8 -13
- data/lib/korona_client/models/customer_information.rb +8 -13
- data/lib/korona_client/models/customer_order.rb +28 -29
- data/lib/korona_client/models/day_rating.rb +8 -13
- data/lib/korona_client/models/day_time_period.rb +192 -0
- data/lib/korona_client/models/delivery_note.rb +316 -0
- data/lib/korona_client/models/delivery_note_item.rb +239 -0
- data/lib/korona_client/models/deposit.rb +219 -0
- data/lib/korona_client/models/device_information.rb +8 -13
- data/lib/korona_client/models/discount.rb +201 -0
- data/lib/korona_client/models/economic_zone.rb +8 -13
- data/lib/korona_client/models/end_of_day_statement.rb +15 -20
- data/lib/korona_client/models/end_of_day_statement_summary.rb +8 -13
- data/lib/korona_client/models/entry_gate.rb +8 -13
- data/lib/korona_client/models/event.rb +30 -15
- data/lib/korona_client/models/external_system_call.rb +295 -0
- data/lib/korona_client/models/forbidden_error.rb +11 -15
- data/lib/korona_client/models/geo_location.rb +8 -13
- data/lib/korona_client/models/info_text.rb +11 -15
- data/lib/korona_client/models/interval.rb +8 -13
- data/lib/korona_client/models/inventory.rb +14 -18
- data/lib/korona_client/models/inventory_list.rb +11 -15
- data/lib/korona_client/models/inventory_list_item.rb +8 -13
- data/lib/korona_client/models/inventory_list_item_stock.rb +8 -13
- data/lib/korona_client/models/korona_account.rb +41 -13
- data/lib/korona_client/models/media_url.rb +183 -0
- data/lib/korona_client/models/method_not_allowed_error.rb +11 -15
- data/lib/korona_client/models/model_reference.rb +8 -12
- data/lib/korona_client/models/not_found_error.rb +11 -15
- data/lib/korona_client/models/organizational_unit.rb +20 -16
- data/lib/korona_client/models/payment.rb +8 -13
- data/lib/korona_client/models/payment_method.rb +37 -15
- data/lib/korona_client/models/payment_summary.rb +8 -13
- data/lib/korona_client/models/period.rb +8 -13
- data/lib/korona_client/models/period_list_top_seller.rb +8 -13
- data/lib/korona_client/models/period_map_string_revenue_data.rb +8 -13
- data/lib/korona_client/models/period_object.rb +8 -13
- data/lib/korona_client/models/period_revenue_data.rb +8 -13
- data/lib/korona_client/models/pos.rb +31 -15
- data/lib/korona_client/models/price_group.rb +8 -13
- data/lib/korona_client/models/product.rb +35 -19
- data/lib/korona_client/models/product_code.rb +8 -13
- data/lib/korona_client/models/product_description.rb +11 -15
- data/lib/korona_client/models/product_price.rb +8 -13
- data/lib/korona_client/models/product_stock.rb +8 -13
- data/lib/korona_client/models/product_subproduct.rb +8 -13
- data/lib/korona_client/models/product_supplier_price.rb +8 -13
- data/lib/korona_client/models/product_transfer_involved_party_information.rb +8 -13
- data/lib/korona_client/models/product_transfer_involved_party_information_data.rb +8 -13
- data/lib/korona_client/models/rating.rb +8 -13
- data/lib/korona_client/models/receipt.rb +55 -20
- data/lib/korona_client/models/receipt_item.rb +40 -14
- data/lib/korona_client/models/result_list.rb +14 -19
- data/lib/korona_client/models/result_list_account.rb +14 -19
- data/lib/korona_client/models/result_list_additional_receipt_info_type.rb +268 -0
- data/lib/korona_client/models/result_list_assortment.rb +14 -19
- data/lib/korona_client/models/result_list_attendance.rb +268 -0
- data/lib/korona_client/models/result_list_cashier.rb +14 -19
- data/lib/korona_client/models/result_list_commodity_group.rb +14 -19
- data/lib/korona_client/models/result_list_creation_task.rb +268 -0
- data/lib/korona_client/models/result_list_currency.rb +14 -19
- data/lib/korona_client/models/result_list_customer.rb +14 -19
- data/lib/korona_client/models/result_list_customer_group.rb +14 -19
- data/lib/korona_client/models/result_list_customer_order.rb +14 -19
- data/lib/korona_client/models/result_list_day_rating.rb +14 -19
- data/lib/korona_client/models/result_list_delivery_note.rb +268 -0
- data/lib/korona_client/models/result_list_economic_zone.rb +14 -19
- data/lib/korona_client/models/result_list_end_of_day_statement.rb +14 -19
- data/lib/korona_client/models/result_list_entry_gate.rb +14 -19
- data/lib/korona_client/models/result_list_event.rb +14 -19
- data/lib/korona_client/models/result_list_external_system_call.rb +268 -0
- data/lib/korona_client/models/result_list_info_text.rb +14 -19
- data/lib/korona_client/models/result_list_inventory.rb +14 -19
- data/lib/korona_client/models/result_list_inventory_list.rb +14 -19
- data/lib/korona_client/models/result_list_inventory_list_item.rb +14 -19
- data/lib/korona_client/models/result_list_organizational_unit.rb +14 -19
- data/lib/korona_client/models/result_list_payment_method.rb +14 -19
- data/lib/korona_client/models/result_list_pos.rb +14 -19
- data/lib/korona_client/models/result_list_price_group.rb +14 -19
- data/lib/korona_client/models/result_list_product.rb +14 -19
- data/lib/korona_client/models/result_list_product_stock.rb +14 -19
- data/lib/korona_client/models/result_list_receipt.rb +14 -19
- data/lib/korona_client/models/result_list_sales_tax.rb +14 -19
- data/lib/korona_client/models/result_list_sector.rb +14 -19
- data/lib/korona_client/models/result_list_stock_receipt.rb +14 -19
- data/lib/korona_client/models/result_list_stock_receipt_item.rb +14 -19
- data/lib/korona_client/models/result_list_supplier.rb +14 -19
- data/lib/korona_client/models/result_list_tag.rb +14 -19
- data/lib/korona_client/models/result_list_ticket.rb +268 -0
- data/lib/korona_client/models/result_list_ticket_definition.rb +14 -19
- data/lib/korona_client/models/result_list_time_tracking_entity.rb +268 -0
- data/lib/korona_client/models/result_list_time_tracking_entry.rb +268 -0
- data/lib/korona_client/models/revenue_data.rb +8 -13
- data/lib/korona_client/models/sales_tax.rb +8 -13
- data/lib/korona_client/models/sales_tax_rate.rb +8 -13
- data/lib/korona_client/models/sector.rb +21 -15
- data/lib/korona_client/models/sector_revenue_account_item.rb +192 -0
- data/lib/korona_client/models/sector_sales_tax_item.rb +8 -13
- data/lib/korona_client/models/signature.rb +216 -0
- data/lib/korona_client/models/statistic.rb +8 -13
- data/lib/korona_client/models/statistic_list_top_seller.rb +8 -13
- data/lib/korona_client/models/statistic_map_string_revenue_data.rb +8 -13
- data/lib/korona_client/models/statistic_revenue_data.rb +8 -13
- data/lib/korona_client/models/stock_receipt.rb +21 -16
- data/lib/korona_client/models/stock_receipt_item.rb +8 -13
- data/lib/korona_client/models/stock_receipt_item_amount.rb +8 -13
- data/lib/korona_client/models/stock_receipt_item_identification.rb +8 -13
- data/lib/korona_client/models/stock_receipt_item_purchase_price.rb +8 -13
- data/lib/korona_client/models/supplier.rb +8 -13
- data/lib/korona_client/models/supplier_contact.rb +8 -13
- data/lib/korona_client/models/supplier_contact_person.rb +8 -13
- data/lib/korona_client/models/supplier_payment_information.rb +11 -15
- data/lib/korona_client/models/tag.rb +8 -13
- data/lib/korona_client/models/tax_payment.rb +8 -13
- data/lib/korona_client/models/tax_summary.rb +8 -13
- data/lib/korona_client/models/ticket.rb +237 -0
- data/lib/korona_client/models/ticket_definition.rb +8 -13
- data/lib/korona_client/models/ticket_personalization.rb +225 -0
- data/lib/korona_client/models/time_period.rb +8 -13
- data/lib/korona_client/models/time_tracking_entity.rb +232 -0
- data/lib/korona_client/models/time_tracking_entry.rb +240 -0
- data/lib/korona_client/models/too_many_requests_error.rb +11 -15
- data/lib/korona_client/models/top_seller.rb +8 -13
- data/lib/korona_client/models/total_period.rb +192 -0
- data/lib/korona_client/models/total_price.rb +10 -14
- data/lib/korona_client/models/validity.rb +236 -0
- data/lib/korona_client/models/weather.rb +11 -15
- data/lib/korona_client/version.rb +4 -4
- data/node_modules/.yarn-integrity +12 -0
- data/spec/api/additional_receipt_info_types_api_spec.rb +66 -0
- data/spec/api/commodity_groups_api_spec.rb +133 -0
- data/spec/api/delivery_notes_api_spec.rb +112 -0
- data/spec/api/external_system_calls_api_spec.rb +133 -0
- data/spec/api/inventories_api_spec.rb +253 -0
- data/spec/api/stock_receipts_api_spec.rb +201 -0
- data/spec/api/ticket_creation_api_spec.rb +63 -0
- data/spec/api/time_tracking_api_spec.rb +129 -0
- data/spec/models/additional_info_spec.rb +47 -0
- data/spec/models/additional_receipt_info_type_spec.rb +125 -0
- data/spec/models/attendance_spec.rb +95 -0
- data/spec/models/creation_task_spec.rb +99 -0
- data/spec/models/day_time_period_spec.rb +47 -0
- data/spec/models/delivery_note_item_spec.rb +77 -0
- data/spec/models/delivery_note_spec.rb +125 -0
- data/spec/models/deposit_spec.rb +65 -0
- data/spec/models/discount_spec.rb +53 -0
- data/spec/models/external_system_call_spec.rb +113 -0
- data/spec/models/media_url_spec.rb +41 -0
- data/spec/models/result_list_additional_receipt_info_type_spec.rb +71 -0
- data/spec/models/result_list_attendance_spec.rb +71 -0
- data/spec/models/result_list_creation_task_spec.rb +71 -0
- data/spec/models/result_list_delivery_note_spec.rb +71 -0
- data/spec/models/result_list_external_system_call_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/sector_revenue_account_item_spec.rb +47 -0
- data/spec/models/signature_spec.rb +53 -0
- data/spec/models/ticket_personalization_spec.rb +59 -0
- data/spec/models/ticket_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/total_period_spec.rb +47 -0
- data/spec/models/validity_spec.rb +63 -0
- data/yarn.lock +4 -0
- metadata +162 -18
@@ -0,0 +1,149 @@
|
|
1
|
+
=begin
|
2
|
+
#KORONA.cloud API v3
|
3
|
+
|
4
|
+
#Our api provides access to our cloud services
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.11.21
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.8
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'uri'
|
14
|
+
|
15
|
+
module KoronaClient
|
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
|
+
#
|
24
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
25
|
+
# @param body a single ticket creation task
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [AddOrUpdateResult]
|
28
|
+
def add_creation_task(korona_account_id, body, opts = {})
|
29
|
+
data, _status_code, _headers = add_creation_task_with_http_info(korona_account_id, body, opts)
|
30
|
+
data
|
31
|
+
end
|
32
|
+
|
33
|
+
# adds a creation task
|
34
|
+
#
|
35
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
36
|
+
# @param body a single ticket creation task
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [Array<(AddOrUpdateResult, Fixnum, Hash)>] AddOrUpdateResult data, response status code and response headers
|
39
|
+
def add_creation_task_with_http_info(korona_account_id, body, opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: TicketCreationApi.add_creation_task ...'
|
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 TicketCreationApi.add_creation_task"
|
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 TicketCreationApi.add_creation_task"
|
50
|
+
end
|
51
|
+
# resource path
|
52
|
+
local_var_path = '/accounts/{koronaAccountId}/ticketCreation'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)
|
53
|
+
|
54
|
+
# query parameters
|
55
|
+
query_params = {}
|
56
|
+
|
57
|
+
# header parameters
|
58
|
+
header_params = {}
|
59
|
+
# HTTP header 'Accept' (if needed)
|
60
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
61
|
+
# HTTP header 'Content-Type'
|
62
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
63
|
+
|
64
|
+
# form parameters
|
65
|
+
form_params = {}
|
66
|
+
|
67
|
+
# http body (model)
|
68
|
+
post_body = @api_client.object_to_http_body(body)
|
69
|
+
auth_names = ['basicAuth']
|
70
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
71
|
+
:header_params => header_params,
|
72
|
+
:query_params => query_params,
|
73
|
+
:form_params => form_params,
|
74
|
+
:body => post_body,
|
75
|
+
:auth_names => auth_names,
|
76
|
+
:return_type => 'AddOrUpdateResult')
|
77
|
+
if @api_client.config.debugging
|
78
|
+
@api_client.config.logger.debug "API called: TicketCreationApi#add_creation_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
79
|
+
end
|
80
|
+
return data, status_code, headers
|
81
|
+
end
|
82
|
+
# creation tasks, personalization will always be empty for technical reasons
|
83
|
+
#
|
84
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
85
|
+
# @param [Hash] opts the optional parameters
|
86
|
+
# @option opts [DateTime] :creation_time_from creation time from
|
87
|
+
# @option opts [DateTime] :creation_time_to creation time to
|
88
|
+
# @option opts [Array<String>] :statuses creation task statuses
|
89
|
+
# @return [ResultListCreationTask]
|
90
|
+
def get_creation_tasks(korona_account_id, opts = {})
|
91
|
+
data, _status_code, _headers = get_creation_tasks_with_http_info(korona_account_id, opts)
|
92
|
+
data
|
93
|
+
end
|
94
|
+
|
95
|
+
# creation tasks, personalization will always be empty for technical reasons
|
96
|
+
#
|
97
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
98
|
+
# @param [Hash] opts the optional parameters
|
99
|
+
# @option opts [DateTime] :creation_time_from creation time from
|
100
|
+
# @option opts [DateTime] :creation_time_to creation time to
|
101
|
+
# @option opts [Array<String>] :statuses creation task statuses
|
102
|
+
# @return [Array<(ResultListCreationTask, Fixnum, Hash)>] ResultListCreationTask data, response status code and response headers
|
103
|
+
def get_creation_tasks_with_http_info(korona_account_id, opts = {})
|
104
|
+
if @api_client.config.debugging
|
105
|
+
@api_client.config.logger.debug 'Calling API: TicketCreationApi.get_creation_tasks ...'
|
106
|
+
end
|
107
|
+
# verify the required parameter 'korona_account_id' is set
|
108
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
109
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketCreationApi.get_creation_tasks"
|
110
|
+
end
|
111
|
+
if @api_client.config.client_side_validation && opts[:'statuses'] && !opts[:'statuses'].all? { |item| ['PREPARED', 'RUNNING', 'FINISHED', 'FAILED'].include?(item) }
|
112
|
+
fail ArgumentError, 'invalid value for "statuses", must include one of PREPARED, RUNNING, FINISHED, FAILED'
|
113
|
+
end
|
114
|
+
# resource path
|
115
|
+
local_var_path = '/accounts/{koronaAccountId}/ticketCreation'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)
|
116
|
+
|
117
|
+
# query parameters
|
118
|
+
query_params = {}
|
119
|
+
query_params[:'creationTimeFrom'] = opts[:'creation_time_from'] if !opts[:'creation_time_from'].nil?
|
120
|
+
query_params[:'creationTimeTo'] = opts[:'creation_time_to'] if !opts[:'creation_time_to'].nil?
|
121
|
+
query_params[:'statuses'] = @api_client.build_collection_param(opts[:'statuses'], :multi) if !opts[:'statuses'].nil?
|
122
|
+
|
123
|
+
# header parameters
|
124
|
+
header_params = {}
|
125
|
+
# HTTP header 'Accept' (if needed)
|
126
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
127
|
+
# HTTP header 'Content-Type'
|
128
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
129
|
+
|
130
|
+
# form parameters
|
131
|
+
form_params = {}
|
132
|
+
|
133
|
+
# http body (model)
|
134
|
+
post_body = nil
|
135
|
+
auth_names = ['basicAuth']
|
136
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
137
|
+
:header_params => header_params,
|
138
|
+
:query_params => query_params,
|
139
|
+
:form_params => form_params,
|
140
|
+
:body => post_body,
|
141
|
+
:auth_names => auth_names,
|
142
|
+
:return_type => 'ResultListCreationTask')
|
143
|
+
if @api_client.config.debugging
|
144
|
+
@api_client.config.logger.debug "API called: TicketCreationApi#get_creation_tasks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
145
|
+
end
|
146
|
+
return data, status_code, headers
|
147
|
+
end
|
148
|
+
end
|
149
|
+
end
|
@@ -3,14 +3,14 @@
|
|
3
3
|
|
4
4
|
#Our api provides access to our cloud services
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
7
|
-
|
6
|
+
OpenAPI spec version: 2.11.21
|
7
|
+
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.8
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require
|
13
|
+
require 'uri'
|
14
14
|
|
15
15
|
module KoronaClient
|
16
16
|
class TicketingApi
|
@@ -19,38 +19,100 @@ module KoronaClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# adds a batch of new events
|
23
|
+
#
|
24
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
25
|
+
# @param body an array of new events
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @option opts [BOOLEAN] :upsert when set to true, updates the object instead of generating a already-exists-error
|
28
|
+
# @return [Array<AddOrUpdateResult>]
|
29
|
+
def add_events(korona_account_id, body, opts = {})
|
30
|
+
data, _status_code, _headers = add_events_with_http_info(korona_account_id, body, opts)
|
31
|
+
data
|
32
|
+
end
|
22
33
|
|
23
|
-
#
|
34
|
+
# adds a batch of new events
|
24
35
|
#
|
25
|
-
# @param korona_account_id the account
|
26
|
-
# @param
|
36
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
37
|
+
# @param body an array of new events
|
27
38
|
# @param [Hash] opts the optional parameters
|
28
|
-
# @
|
29
|
-
|
30
|
-
|
31
|
-
|
39
|
+
# @option opts [BOOLEAN] :upsert when set to true, updates the object instead of generating a already-exists-error
|
40
|
+
# @return [Array<(Array<AddOrUpdateResult>, Fixnum, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers
|
41
|
+
def add_events_with_http_info(korona_account_id, body, opts = {})
|
42
|
+
if @api_client.config.debugging
|
43
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.add_events ...'
|
44
|
+
end
|
45
|
+
# verify the required parameter 'korona_account_id' is set
|
46
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
47
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.add_events"
|
48
|
+
end
|
49
|
+
# verify the required parameter 'body' is set
|
50
|
+
if @api_client.config.client_side_validation && body.nil?
|
51
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling TicketingApi.add_events"
|
52
|
+
end
|
53
|
+
# resource path
|
54
|
+
local_var_path = '/accounts/{koronaAccountId}/events'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)
|
55
|
+
|
56
|
+
# query parameters
|
57
|
+
query_params = {}
|
58
|
+
query_params[:'upsert'] = opts[:'upsert'] if !opts[:'upsert'].nil?
|
59
|
+
|
60
|
+
# header parameters
|
61
|
+
header_params = {}
|
62
|
+
# HTTP header 'Accept' (if needed)
|
63
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
64
|
+
# HTTP header 'Content-Type'
|
65
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
66
|
+
|
67
|
+
# form parameters
|
68
|
+
form_params = {}
|
69
|
+
|
70
|
+
# http body (model)
|
71
|
+
post_body = @api_client.object_to_http_body(body)
|
72
|
+
auth_names = ['basicAuth']
|
73
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
74
|
+
:header_params => header_params,
|
75
|
+
:query_params => query_params,
|
76
|
+
:form_params => form_params,
|
77
|
+
:body => post_body,
|
78
|
+
:auth_names => auth_names,
|
79
|
+
:return_type => 'Array<AddOrUpdateResult>')
|
80
|
+
if @api_client.config.debugging
|
81
|
+
@api_client.config.logger.debug "API called: TicketingApi#add_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
end
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
# updates/adds attendances
|
86
|
+
#
|
87
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
88
|
+
# @param body an array of attendances
|
89
|
+
# @param [Hash] opts the optional parameters
|
90
|
+
# @return [Array<AddOrUpdateResult>]
|
91
|
+
def add_or_update_attendances(korona_account_id, body, opts = {})
|
92
|
+
data, _status_code, _headers = add_or_update_attendances_with_http_info(korona_account_id, body, opts)
|
93
|
+
data
|
32
94
|
end
|
33
95
|
|
34
|
-
#
|
96
|
+
# updates/adds attendances
|
35
97
|
#
|
36
|
-
# @param korona_account_id the account
|
37
|
-
# @param
|
98
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
99
|
+
# @param body an array of attendances
|
38
100
|
# @param [Hash] opts the optional parameters
|
39
|
-
# @return [Array<(
|
40
|
-
def
|
101
|
+
# @return [Array<(Array<AddOrUpdateResult>, Fixnum, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers
|
102
|
+
def add_or_update_attendances_with_http_info(korona_account_id, body, opts = {})
|
41
103
|
if @api_client.config.debugging
|
42
|
-
@api_client.config.logger.debug
|
104
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.add_or_update_attendances ...'
|
43
105
|
end
|
44
106
|
# verify the required parameter 'korona_account_id' is set
|
45
107
|
if @api_client.config.client_side_validation && korona_account_id.nil?
|
46
|
-
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.
|
108
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.add_or_update_attendances"
|
47
109
|
end
|
48
|
-
# verify the required parameter '
|
49
|
-
if @api_client.config.client_side_validation &&
|
50
|
-
fail ArgumentError, "Missing the required parameter '
|
110
|
+
# verify the required parameter 'body' is set
|
111
|
+
if @api_client.config.client_side_validation && body.nil?
|
112
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling TicketingApi.add_or_update_attendances"
|
51
113
|
end
|
52
114
|
# resource path
|
53
|
-
local_var_path =
|
115
|
+
local_var_path = '/accounts/{koronaAccountId}/attendance'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)
|
54
116
|
|
55
117
|
# query parameters
|
56
118
|
query_params = {}
|
@@ -66,64 +128,117 @@ module KoronaClient
|
|
66
128
|
form_params = {}
|
67
129
|
|
68
130
|
# http body (model)
|
69
|
-
post_body =
|
131
|
+
post_body = @api_client.object_to_http_body(body)
|
70
132
|
auth_names = ['basicAuth']
|
71
|
-
data, status_code, headers = @api_client.call_api(:
|
133
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
72
134
|
:header_params => header_params,
|
73
135
|
:query_params => query_params,
|
74
136
|
:form_params => form_params,
|
75
137
|
:body => post_body,
|
76
138
|
:auth_names => auth_names,
|
77
|
-
:return_type => '
|
139
|
+
:return_type => 'Array<AddOrUpdateResult>')
|
78
140
|
if @api_client.config.debugging
|
79
|
-
@api_client.config.logger.debug "API called: TicketingApi#
|
141
|
+
@api_client.config.logger.debug "API called: TicketingApi#add_or_update_attendances\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
80
142
|
end
|
81
143
|
return data, status_code, headers
|
82
144
|
end
|
145
|
+
# adds a batch of new ticket definitions
|
146
|
+
#
|
147
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
148
|
+
# @param body array of new ticket definitions
|
149
|
+
# @param [Hash] opts the optional parameters
|
150
|
+
# @option opts [BOOLEAN] :upsert when set to true, updates the object instead of generating a already-exists-error
|
151
|
+
# @return [Array<AddOrUpdateResult>]
|
152
|
+
def add_ticket_definitions(korona_account_id, body, opts = {})
|
153
|
+
data, _status_code, _headers = add_ticket_definitions_with_http_info(korona_account_id, body, opts)
|
154
|
+
data
|
155
|
+
end
|
83
156
|
|
84
|
-
#
|
157
|
+
# adds a batch of new ticket definitions
|
85
158
|
#
|
86
|
-
# @param korona_account_id the account
|
159
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
160
|
+
# @param body array of new ticket definitions
|
87
161
|
# @param [Hash] opts the optional parameters
|
88
|
-
# @option opts [
|
89
|
-
# @
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
162
|
+
# @option opts [BOOLEAN] :upsert when set to true, updates the object instead of generating a already-exists-error
|
163
|
+
# @return [Array<(Array<AddOrUpdateResult>, Fixnum, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers
|
164
|
+
def add_ticket_definitions_with_http_info(korona_account_id, body, opts = {})
|
165
|
+
if @api_client.config.debugging
|
166
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.add_ticket_definitions ...'
|
167
|
+
end
|
168
|
+
# verify the required parameter 'korona_account_id' is set
|
169
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
170
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.add_ticket_definitions"
|
171
|
+
end
|
172
|
+
# verify the required parameter 'body' is set
|
173
|
+
if @api_client.config.client_side_validation && body.nil?
|
174
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling TicketingApi.add_ticket_definitions"
|
175
|
+
end
|
176
|
+
# resource path
|
177
|
+
local_var_path = '/accounts/{koronaAccountId}/ticketDefinitions'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)
|
178
|
+
|
179
|
+
# query parameters
|
180
|
+
query_params = {}
|
181
|
+
query_params[:'upsert'] = opts[:'upsert'] if !opts[:'upsert'].nil?
|
182
|
+
|
183
|
+
# header parameters
|
184
|
+
header_params = {}
|
185
|
+
# HTTP header 'Accept' (if needed)
|
186
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
187
|
+
# HTTP header 'Content-Type'
|
188
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
189
|
+
|
190
|
+
# form parameters
|
191
|
+
form_params = {}
|
192
|
+
|
193
|
+
# http body (model)
|
194
|
+
post_body = @api_client.object_to_http_body(body)
|
195
|
+
auth_names = ['basicAuth']
|
196
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
197
|
+
:header_params => header_params,
|
198
|
+
:query_params => query_params,
|
199
|
+
:form_params => form_params,
|
200
|
+
:body => post_body,
|
201
|
+
:auth_names => auth_names,
|
202
|
+
:return_type => 'Array<AddOrUpdateResult>')
|
203
|
+
if @api_client.config.debugging
|
204
|
+
@api_client.config.logger.debug "API called: TicketingApi#add_ticket_definitions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
205
|
+
end
|
206
|
+
return data, status_code, headers
|
207
|
+
end
|
208
|
+
# cancel the attendance
|
209
|
+
#
|
210
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
211
|
+
# @param attendance_id id of the related object (important: id should match the uuid-format)
|
212
|
+
# @param [Hash] opts the optional parameters
|
213
|
+
# @return [nil]
|
214
|
+
def cancel_attendance(korona_account_id, attendance_id, opts = {})
|
215
|
+
cancel_attendance_with_http_info(korona_account_id, attendance_id, opts)
|
216
|
+
nil
|
97
217
|
end
|
98
218
|
|
99
|
-
#
|
219
|
+
# cancel the attendance
|
100
220
|
#
|
101
|
-
# @param korona_account_id the account
|
221
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
222
|
+
# @param attendance_id id of the related object (important: id should match the uuid-format)
|
102
223
|
# @param [Hash] opts the optional parameters
|
103
|
-
# @
|
104
|
-
|
105
|
-
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
106
|
-
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
107
|
-
# @option opts [BOOLEAN] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
108
|
-
# @return [Array<(ResultListEntryGate, Fixnum, Hash)>] ResultListEntryGate data, response status code and response headers
|
109
|
-
def get_entry_gates_with_http_info(korona_account_id, opts = {})
|
224
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
225
|
+
def cancel_attendance_with_http_info(korona_account_id, attendance_id, opts = {})
|
110
226
|
if @api_client.config.debugging
|
111
|
-
@api_client.config.logger.debug
|
227
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.cancel_attendance ...'
|
112
228
|
end
|
113
229
|
# verify the required parameter 'korona_account_id' is set
|
114
230
|
if @api_client.config.client_side_validation && korona_account_id.nil?
|
115
|
-
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.
|
231
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.cancel_attendance"
|
232
|
+
end
|
233
|
+
# verify the required parameter 'attendance_id' is set
|
234
|
+
if @api_client.config.client_side_validation && attendance_id.nil?
|
235
|
+
fail ArgumentError, "Missing the required parameter 'attendance_id' when calling TicketingApi.cancel_attendance"
|
116
236
|
end
|
117
237
|
# resource path
|
118
|
-
local_var_path =
|
238
|
+
local_var_path = '/accounts/{koronaAccountId}/attendance/{attendanceId}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'attendanceId' + '}', attendance_id.to_s)
|
119
239
|
|
120
240
|
# query parameters
|
121
241
|
query_params = {}
|
122
|
-
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
123
|
-
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
124
|
-
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
125
|
-
query_params[:'revision'] = opts[:'revision'] if !opts[:'revision'].nil?
|
126
|
-
query_params[:'includeDeleted'] = opts[:'include_deleted'] if !opts[:'include_deleted'].nil?
|
127
242
|
|
128
243
|
# header parameters
|
129
244
|
header_params = {}
|
@@ -138,50 +253,107 @@ module KoronaClient
|
|
138
253
|
# http body (model)
|
139
254
|
post_body = nil
|
140
255
|
auth_names = ['basicAuth']
|
141
|
-
data, status_code, headers = @api_client.call_api(:
|
256
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
142
257
|
:header_params => header_params,
|
143
258
|
:query_params => query_params,
|
144
259
|
:form_params => form_params,
|
145
260
|
:body => post_body,
|
146
|
-
:auth_names => auth_names
|
147
|
-
:return_type => 'ResultListEntryGate')
|
261
|
+
:auth_names => auth_names)
|
148
262
|
if @api_client.config.debugging
|
149
|
-
@api_client.config.logger.debug "API called: TicketingApi#
|
263
|
+
@api_client.config.logger.debug "API called: TicketingApi#cancel_attendance\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
150
264
|
end
|
151
265
|
return data, status_code, headers
|
152
266
|
end
|
267
|
+
# deletes the single event
|
268
|
+
#
|
269
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
270
|
+
# @param event_id id of the related object (important: id should match the uuid-format)
|
271
|
+
# @param [Hash] opts the optional parameters
|
272
|
+
# @return [nil]
|
273
|
+
def delete_event(korona_account_id, event_id, opts = {})
|
274
|
+
delete_event_with_http_info(korona_account_id, event_id, opts)
|
275
|
+
nil
|
276
|
+
end
|
153
277
|
|
154
|
-
#
|
278
|
+
# deletes the single event
|
155
279
|
#
|
156
|
-
# @param korona_account_id the account
|
157
|
-
# @param
|
280
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
281
|
+
# @param event_id id of the related object (important: id should match the uuid-format)
|
158
282
|
# @param [Hash] opts the optional parameters
|
159
|
-
# @return [
|
160
|
-
def
|
161
|
-
|
162
|
-
|
283
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
284
|
+
def delete_event_with_http_info(korona_account_id, event_id, opts = {})
|
285
|
+
if @api_client.config.debugging
|
286
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.delete_event ...'
|
287
|
+
end
|
288
|
+
# verify the required parameter 'korona_account_id' is set
|
289
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
290
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.delete_event"
|
291
|
+
end
|
292
|
+
# verify the required parameter 'event_id' is set
|
293
|
+
if @api_client.config.client_side_validation && event_id.nil?
|
294
|
+
fail ArgumentError, "Missing the required parameter 'event_id' when calling TicketingApi.delete_event"
|
295
|
+
end
|
296
|
+
# resource path
|
297
|
+
local_var_path = '/accounts/{koronaAccountId}/events/{eventId}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'eventId' + '}', event_id.to_s)
|
298
|
+
|
299
|
+
# query parameters
|
300
|
+
query_params = {}
|
301
|
+
|
302
|
+
# header parameters
|
303
|
+
header_params = {}
|
304
|
+
# HTTP header 'Accept' (if needed)
|
305
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
306
|
+
# HTTP header 'Content-Type'
|
307
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
308
|
+
|
309
|
+
# form parameters
|
310
|
+
form_params = {}
|
311
|
+
|
312
|
+
# http body (model)
|
313
|
+
post_body = nil
|
314
|
+
auth_names = ['basicAuth']
|
315
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
316
|
+
:header_params => header_params,
|
317
|
+
:query_params => query_params,
|
318
|
+
:form_params => form_params,
|
319
|
+
:body => post_body,
|
320
|
+
:auth_names => auth_names)
|
321
|
+
if @api_client.config.debugging
|
322
|
+
@api_client.config.logger.debug "API called: TicketingApi#delete_event\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
323
|
+
end
|
324
|
+
return data, status_code, headers
|
325
|
+
end
|
326
|
+
# deletes the single ticket definition
|
327
|
+
#
|
328
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
329
|
+
# @param ticket_definition_id id of the related object (important: id should match the uuid-format)
|
330
|
+
# @param [Hash] opts the optional parameters
|
331
|
+
# @return [nil]
|
332
|
+
def delete_ticket_definition(korona_account_id, ticket_definition_id, opts = {})
|
333
|
+
delete_ticket_definition_with_http_info(korona_account_id, ticket_definition_id, opts)
|
334
|
+
nil
|
163
335
|
end
|
164
336
|
|
165
|
-
#
|
337
|
+
# deletes the single ticket definition
|
166
338
|
#
|
167
|
-
# @param korona_account_id the account
|
168
|
-
# @param
|
339
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
340
|
+
# @param ticket_definition_id id of the related object (important: id should match the uuid-format)
|
169
341
|
# @param [Hash] opts the optional parameters
|
170
|
-
# @return [Array<(
|
171
|
-
def
|
342
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
343
|
+
def delete_ticket_definition_with_http_info(korona_account_id, ticket_definition_id, opts = {})
|
172
344
|
if @api_client.config.debugging
|
173
|
-
@api_client.config.logger.debug
|
345
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.delete_ticket_definition ...'
|
174
346
|
end
|
175
347
|
# verify the required parameter 'korona_account_id' is set
|
176
348
|
if @api_client.config.client_side_validation && korona_account_id.nil?
|
177
|
-
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.
|
349
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.delete_ticket_definition"
|
178
350
|
end
|
179
|
-
# verify the required parameter '
|
180
|
-
if @api_client.config.client_side_validation &&
|
181
|
-
fail ArgumentError, "Missing the required parameter '
|
351
|
+
# verify the required parameter 'ticket_definition_id' is set
|
352
|
+
if @api_client.config.client_side_validation && ticket_definition_id.nil?
|
353
|
+
fail ArgumentError, "Missing the required parameter 'ticket_definition_id' when calling TicketingApi.delete_ticket_definition"
|
182
354
|
end
|
183
355
|
# resource path
|
184
|
-
local_var_path =
|
356
|
+
local_var_path = '/accounts/{koronaAccountId}/ticketDefinitions/{ticketDefinitionId}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'ticketDefinitionId' + '}', ticket_definition_id.to_s)
|
185
357
|
|
186
358
|
# query parameters
|
187
359
|
query_params = {}
|
@@ -199,54 +371,112 @@ module KoronaClient
|
|
199
371
|
# http body (model)
|
200
372
|
post_body = nil
|
201
373
|
auth_names = ['basicAuth']
|
202
|
-
data, status_code, headers = @api_client.call_api(:
|
374
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
203
375
|
:header_params => header_params,
|
204
376
|
:query_params => query_params,
|
205
377
|
:form_params => form_params,
|
206
378
|
:body => post_body,
|
207
|
-
:auth_names => auth_names
|
208
|
-
:return_type => 'Event')
|
379
|
+
:auth_names => auth_names)
|
209
380
|
if @api_client.config.debugging
|
210
|
-
@api_client.config.logger.debug "API called: TicketingApi#
|
381
|
+
@api_client.config.logger.debug "API called: TicketingApi#delete_ticket_definition\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
211
382
|
end
|
212
383
|
return data, status_code, headers
|
213
384
|
end
|
385
|
+
# deletes a batch of ticket definitions
|
386
|
+
#
|
387
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
388
|
+
# @param body array of existing ticket definitions (id or number required)
|
389
|
+
# @param [Hash] opts the optional parameters
|
390
|
+
# @return [Array<AddOrUpdateResult>]
|
391
|
+
def delete_ticket_definitions(korona_account_id, body, opts = {})
|
392
|
+
data, _status_code, _headers = delete_ticket_definitions_with_http_info(korona_account_id, body, opts)
|
393
|
+
data
|
394
|
+
end
|
214
395
|
|
215
|
-
#
|
396
|
+
# deletes a batch of ticket definitions
|
397
|
+
#
|
398
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
399
|
+
# @param body array of existing ticket definitions (id or number required)
|
400
|
+
# @param [Hash] opts the optional parameters
|
401
|
+
# @return [Array<(Array<AddOrUpdateResult>, Fixnum, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers
|
402
|
+
def delete_ticket_definitions_with_http_info(korona_account_id, body, opts = {})
|
403
|
+
if @api_client.config.debugging
|
404
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.delete_ticket_definitions ...'
|
405
|
+
end
|
406
|
+
# verify the required parameter 'korona_account_id' is set
|
407
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
408
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.delete_ticket_definitions"
|
409
|
+
end
|
410
|
+
# verify the required parameter 'body' is set
|
411
|
+
if @api_client.config.client_side_validation && body.nil?
|
412
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling TicketingApi.delete_ticket_definitions"
|
413
|
+
end
|
414
|
+
# resource path
|
415
|
+
local_var_path = '/accounts/{koronaAccountId}/ticketDefinitions'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)
|
416
|
+
|
417
|
+
# query parameters
|
418
|
+
query_params = {}
|
419
|
+
|
420
|
+
# header parameters
|
421
|
+
header_params = {}
|
422
|
+
# HTTP header 'Accept' (if needed)
|
423
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
424
|
+
# HTTP header 'Content-Type'
|
425
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
426
|
+
|
427
|
+
# form parameters
|
428
|
+
form_params = {}
|
429
|
+
|
430
|
+
# http body (model)
|
431
|
+
post_body = @api_client.object_to_http_body(body)
|
432
|
+
auth_names = ['basicAuth']
|
433
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
434
|
+
:header_params => header_params,
|
435
|
+
:query_params => query_params,
|
436
|
+
:form_params => form_params,
|
437
|
+
:body => post_body,
|
438
|
+
:auth_names => auth_names,
|
439
|
+
:return_type => 'Array<AddOrUpdateResult>')
|
440
|
+
if @api_client.config.debugging
|
441
|
+
@api_client.config.logger.debug "API called: TicketingApi#delete_ticket_definitions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
442
|
+
end
|
443
|
+
return data, status_code, headers
|
444
|
+
end
|
445
|
+
# lists all attendances
|
216
446
|
#
|
217
|
-
# @param korona_account_id the account
|
447
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
218
448
|
# @param [Hash] opts the optional parameters
|
219
449
|
# @option opts [Integer] :page number of the page to fetch
|
220
450
|
# @option opts [Integer] :size amount of objects to return per page
|
221
451
|
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
222
452
|
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
223
453
|
# @option opts [BOOLEAN] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
224
|
-
# @return [
|
225
|
-
def
|
226
|
-
data, _status_code, _headers =
|
227
|
-
|
454
|
+
# @return [ResultListAttendance]
|
455
|
+
def get_attendances(korona_account_id, opts = {})
|
456
|
+
data, _status_code, _headers = get_attendances_with_http_info(korona_account_id, opts)
|
457
|
+
data
|
228
458
|
end
|
229
459
|
|
230
|
-
# lists all
|
460
|
+
# lists all attendances
|
231
461
|
#
|
232
|
-
# @param korona_account_id the account
|
462
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
233
463
|
# @param [Hash] opts the optional parameters
|
234
464
|
# @option opts [Integer] :page number of the page to fetch
|
235
465
|
# @option opts [Integer] :size amount of objects to return per page
|
236
466
|
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
237
467
|
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
238
468
|
# @option opts [BOOLEAN] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
239
|
-
# @return [Array<(
|
240
|
-
def
|
469
|
+
# @return [Array<(ResultListAttendance, Fixnum, Hash)>] ResultListAttendance data, response status code and response headers
|
470
|
+
def get_attendances_with_http_info(korona_account_id, opts = {})
|
241
471
|
if @api_client.config.debugging
|
242
|
-
@api_client.config.logger.debug
|
472
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.get_attendances ...'
|
243
473
|
end
|
244
474
|
# verify the required parameter 'korona_account_id' is set
|
245
475
|
if @api_client.config.client_side_validation && korona_account_id.nil?
|
246
|
-
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.
|
476
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.get_attendances"
|
247
477
|
end
|
248
478
|
# resource path
|
249
|
-
local_var_path =
|
479
|
+
local_var_path = '/accounts/{koronaAccountId}/attendance'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)
|
250
480
|
|
251
481
|
# query parameters
|
252
482
|
query_params = {}
|
@@ -275,44 +505,43 @@ module KoronaClient
|
|
275
505
|
:form_params => form_params,
|
276
506
|
:body => post_body,
|
277
507
|
:auth_names => auth_names,
|
278
|
-
:return_type => '
|
508
|
+
:return_type => 'ResultListAttendance')
|
279
509
|
if @api_client.config.debugging
|
280
|
-
@api_client.config.logger.debug "API called: TicketingApi#
|
510
|
+
@api_client.config.logger.debug "API called: TicketingApi#get_attendances\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
281
511
|
end
|
282
512
|
return data, status_code, headers
|
283
513
|
end
|
284
|
-
|
285
|
-
# lists the ticket definition
|
514
|
+
# returns the single entry gate
|
286
515
|
#
|
287
|
-
# @param korona_account_id the account
|
288
|
-
# @param
|
516
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
517
|
+
# @param entry_gate_id id of the related object (important: id should match the uuid-format)
|
289
518
|
# @param [Hash] opts the optional parameters
|
290
|
-
# @return [
|
291
|
-
def
|
292
|
-
data, _status_code, _headers =
|
293
|
-
|
519
|
+
# @return [EntryGate]
|
520
|
+
def get_entry_gate(korona_account_id, entry_gate_id, opts = {})
|
521
|
+
data, _status_code, _headers = get_entry_gate_with_http_info(korona_account_id, entry_gate_id, opts)
|
522
|
+
data
|
294
523
|
end
|
295
524
|
|
296
|
-
#
|
525
|
+
# returns the single entry gate
|
297
526
|
#
|
298
|
-
# @param korona_account_id the account
|
299
|
-
# @param
|
527
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
528
|
+
# @param entry_gate_id id of the related object (important: id should match the uuid-format)
|
300
529
|
# @param [Hash] opts the optional parameters
|
301
|
-
# @return [Array<(
|
302
|
-
def
|
530
|
+
# @return [Array<(EntryGate, Fixnum, Hash)>] EntryGate data, response status code and response headers
|
531
|
+
def get_entry_gate_with_http_info(korona_account_id, entry_gate_id, opts = {})
|
303
532
|
if @api_client.config.debugging
|
304
|
-
@api_client.config.logger.debug
|
533
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.get_entry_gate ...'
|
305
534
|
end
|
306
535
|
# verify the required parameter 'korona_account_id' is set
|
307
536
|
if @api_client.config.client_side_validation && korona_account_id.nil?
|
308
|
-
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.
|
537
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.get_entry_gate"
|
309
538
|
end
|
310
|
-
# verify the required parameter '
|
311
|
-
if @api_client.config.client_side_validation &&
|
312
|
-
fail ArgumentError, "Missing the required parameter '
|
539
|
+
# verify the required parameter 'entry_gate_id' is set
|
540
|
+
if @api_client.config.client_side_validation && entry_gate_id.nil?
|
541
|
+
fail ArgumentError, "Missing the required parameter 'entry_gate_id' when calling TicketingApi.get_entry_gate"
|
313
542
|
end
|
314
543
|
# resource path
|
315
|
-
local_var_path =
|
544
|
+
local_var_path = '/accounts/{koronaAccountId}/entryGates/{entryGateId}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'entryGateId' + '}', entry_gate_id.to_s)
|
316
545
|
|
317
546
|
# query parameters
|
318
547
|
query_params = {}
|
@@ -336,48 +565,49 @@ module KoronaClient
|
|
336
565
|
:form_params => form_params,
|
337
566
|
:body => post_body,
|
338
567
|
:auth_names => auth_names,
|
339
|
-
:return_type => '
|
568
|
+
:return_type => 'EntryGate')
|
340
569
|
if @api_client.config.debugging
|
341
|
-
@api_client.config.logger.debug "API called: TicketingApi#
|
570
|
+
@api_client.config.logger.debug "API called: TicketingApi#get_entry_gate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
342
571
|
end
|
343
572
|
return data, status_code, headers
|
344
573
|
end
|
345
|
-
|
346
|
-
# lists all ticket definitions
|
574
|
+
# lists all entry gates
|
347
575
|
#
|
348
|
-
# @param korona_account_id the account
|
576
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
349
577
|
# @param [Hash] opts the optional parameters
|
350
578
|
# @option opts [Integer] :page number of the page to fetch
|
351
579
|
# @option opts [Integer] :size amount of objects to return per page
|
352
580
|
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
353
581
|
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
354
582
|
# @option opts [BOOLEAN] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
355
|
-
# @
|
356
|
-
|
357
|
-
|
358
|
-
|
583
|
+
# @option opts [String] :number number of the related object
|
584
|
+
# @return [ResultListEntryGate]
|
585
|
+
def get_entry_gates(korona_account_id, opts = {})
|
586
|
+
data, _status_code, _headers = get_entry_gates_with_http_info(korona_account_id, opts)
|
587
|
+
data
|
359
588
|
end
|
360
589
|
|
361
|
-
# lists all
|
590
|
+
# lists all entry gates
|
362
591
|
#
|
363
|
-
# @param korona_account_id the account
|
592
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
364
593
|
# @param [Hash] opts the optional parameters
|
365
594
|
# @option opts [Integer] :page number of the page to fetch
|
366
595
|
# @option opts [Integer] :size amount of objects to return per page
|
367
596
|
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
368
597
|
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
369
598
|
# @option opts [BOOLEAN] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
370
|
-
# @
|
371
|
-
|
599
|
+
# @option opts [String] :number number of the related object
|
600
|
+
# @return [Array<(ResultListEntryGate, Fixnum, Hash)>] ResultListEntryGate data, response status code and response headers
|
601
|
+
def get_entry_gates_with_http_info(korona_account_id, opts = {})
|
372
602
|
if @api_client.config.debugging
|
373
|
-
@api_client.config.logger.debug
|
603
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.get_entry_gates ...'
|
374
604
|
end
|
375
605
|
# verify the required parameter 'korona_account_id' is set
|
376
606
|
if @api_client.config.client_side_validation && korona_account_id.nil?
|
377
|
-
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.
|
607
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.get_entry_gates"
|
378
608
|
end
|
379
609
|
# resource path
|
380
|
-
local_var_path =
|
610
|
+
local_var_path = '/accounts/{koronaAccountId}/entryGates'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)
|
381
611
|
|
382
612
|
# query parameters
|
383
613
|
query_params = {}
|
@@ -386,6 +616,7 @@ module KoronaClient
|
|
386
616
|
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
387
617
|
query_params[:'revision'] = opts[:'revision'] if !opts[:'revision'].nil?
|
388
618
|
query_params[:'includeDeleted'] = opts[:'include_deleted'] if !opts[:'include_deleted'].nil?
|
619
|
+
query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
|
389
620
|
|
390
621
|
# header parameters
|
391
622
|
header_params = {}
|
@@ -406,9 +637,730 @@ module KoronaClient
|
|
406
637
|
:form_params => form_params,
|
407
638
|
:body => post_body,
|
408
639
|
:auth_names => auth_names,
|
409
|
-
:return_type => '
|
640
|
+
:return_type => 'ResultListEntryGate')
|
410
641
|
if @api_client.config.debugging
|
411
|
-
@api_client.config.logger.debug "API called: TicketingApi#
|
642
|
+
@api_client.config.logger.debug "API called: TicketingApi#get_entry_gates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
643
|
+
end
|
644
|
+
return data, status_code, headers
|
645
|
+
end
|
646
|
+
# returns the single event
|
647
|
+
#
|
648
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
649
|
+
# @param event_id id of the related object (important: id should match the uuid-format)
|
650
|
+
# @param [Hash] opts the optional parameters
|
651
|
+
# @return [Event]
|
652
|
+
def get_event(korona_account_id, event_id, opts = {})
|
653
|
+
data, _status_code, _headers = get_event_with_http_info(korona_account_id, event_id, opts)
|
654
|
+
data
|
655
|
+
end
|
656
|
+
|
657
|
+
# returns the single event
|
658
|
+
#
|
659
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
660
|
+
# @param event_id id of the related object (important: id should match the uuid-format)
|
661
|
+
# @param [Hash] opts the optional parameters
|
662
|
+
# @return [Array<(Event, Fixnum, Hash)>] Event data, response status code and response headers
|
663
|
+
def get_event_with_http_info(korona_account_id, event_id, opts = {})
|
664
|
+
if @api_client.config.debugging
|
665
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.get_event ...'
|
666
|
+
end
|
667
|
+
# verify the required parameter 'korona_account_id' is set
|
668
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
669
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.get_event"
|
670
|
+
end
|
671
|
+
# verify the required parameter 'event_id' is set
|
672
|
+
if @api_client.config.client_side_validation && event_id.nil?
|
673
|
+
fail ArgumentError, "Missing the required parameter 'event_id' when calling TicketingApi.get_event"
|
674
|
+
end
|
675
|
+
# resource path
|
676
|
+
local_var_path = '/accounts/{koronaAccountId}/events/{eventId}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'eventId' + '}', event_id.to_s)
|
677
|
+
|
678
|
+
# query parameters
|
679
|
+
query_params = {}
|
680
|
+
|
681
|
+
# header parameters
|
682
|
+
header_params = {}
|
683
|
+
# HTTP header 'Accept' (if needed)
|
684
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
685
|
+
# HTTP header 'Content-Type'
|
686
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
687
|
+
|
688
|
+
# form parameters
|
689
|
+
form_params = {}
|
690
|
+
|
691
|
+
# http body (model)
|
692
|
+
post_body = nil
|
693
|
+
auth_names = ['basicAuth']
|
694
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
695
|
+
:header_params => header_params,
|
696
|
+
:query_params => query_params,
|
697
|
+
:form_params => form_params,
|
698
|
+
:body => post_body,
|
699
|
+
:auth_names => auth_names,
|
700
|
+
:return_type => 'Event')
|
701
|
+
if @api_client.config.debugging
|
702
|
+
@api_client.config.logger.debug "API called: TicketingApi#get_event\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
703
|
+
end
|
704
|
+
return data, status_code, headers
|
705
|
+
end
|
706
|
+
# lists all events
|
707
|
+
#
|
708
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
709
|
+
# @param [Hash] opts the optional parameters
|
710
|
+
# @option opts [Integer] :page number of the page to fetch
|
711
|
+
# @option opts [Integer] :size amount of objects to return per page
|
712
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
713
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
714
|
+
# @option opts [BOOLEAN] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
715
|
+
# @return [ResultListEvent]
|
716
|
+
def get_events(korona_account_id, opts = {})
|
717
|
+
data, _status_code, _headers = get_events_with_http_info(korona_account_id, opts)
|
718
|
+
data
|
719
|
+
end
|
720
|
+
|
721
|
+
# lists all events
|
722
|
+
#
|
723
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
724
|
+
# @param [Hash] opts the optional parameters
|
725
|
+
# @option opts [Integer] :page number of the page to fetch
|
726
|
+
# @option opts [Integer] :size amount of objects to return per page
|
727
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
728
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
729
|
+
# @option opts [BOOLEAN] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
730
|
+
# @return [Array<(ResultListEvent, Fixnum, Hash)>] ResultListEvent data, response status code and response headers
|
731
|
+
def get_events_with_http_info(korona_account_id, opts = {})
|
732
|
+
if @api_client.config.debugging
|
733
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.get_events ...'
|
734
|
+
end
|
735
|
+
# verify the required parameter 'korona_account_id' is set
|
736
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
737
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.get_events"
|
738
|
+
end
|
739
|
+
# resource path
|
740
|
+
local_var_path = '/accounts/{koronaAccountId}/events'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)
|
741
|
+
|
742
|
+
# query parameters
|
743
|
+
query_params = {}
|
744
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
745
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
746
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
747
|
+
query_params[:'revision'] = opts[:'revision'] if !opts[:'revision'].nil?
|
748
|
+
query_params[:'includeDeleted'] = opts[:'include_deleted'] if !opts[:'include_deleted'].nil?
|
749
|
+
|
750
|
+
# header parameters
|
751
|
+
header_params = {}
|
752
|
+
# HTTP header 'Accept' (if needed)
|
753
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
754
|
+
# HTTP header 'Content-Type'
|
755
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
756
|
+
|
757
|
+
# form parameters
|
758
|
+
form_params = {}
|
759
|
+
|
760
|
+
# http body (model)
|
761
|
+
post_body = nil
|
762
|
+
auth_names = ['basicAuth']
|
763
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
764
|
+
:header_params => header_params,
|
765
|
+
:query_params => query_params,
|
766
|
+
:form_params => form_params,
|
767
|
+
:body => post_body,
|
768
|
+
:auth_names => auth_names,
|
769
|
+
:return_type => 'ResultListEvent')
|
770
|
+
if @api_client.config.debugging
|
771
|
+
@api_client.config.logger.debug "API called: TicketingApi#get_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
772
|
+
end
|
773
|
+
return data, status_code, headers
|
774
|
+
end
|
775
|
+
# returns the single ticket definition
|
776
|
+
#
|
777
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
778
|
+
# @param ticket_definition_id id of the related object (important: id should match the uuid-format)
|
779
|
+
# @param [Hash] opts the optional parameters
|
780
|
+
# @return [TicketDefinition]
|
781
|
+
def get_ticket_definition(korona_account_id, ticket_definition_id, opts = {})
|
782
|
+
data, _status_code, _headers = get_ticket_definition_with_http_info(korona_account_id, ticket_definition_id, opts)
|
783
|
+
data
|
784
|
+
end
|
785
|
+
|
786
|
+
# returns the single ticket definition
|
787
|
+
#
|
788
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
789
|
+
# @param ticket_definition_id id of the related object (important: id should match the uuid-format)
|
790
|
+
# @param [Hash] opts the optional parameters
|
791
|
+
# @return [Array<(TicketDefinition, Fixnum, Hash)>] TicketDefinition data, response status code and response headers
|
792
|
+
def get_ticket_definition_with_http_info(korona_account_id, ticket_definition_id, opts = {})
|
793
|
+
if @api_client.config.debugging
|
794
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.get_ticket_definition ...'
|
795
|
+
end
|
796
|
+
# verify the required parameter 'korona_account_id' is set
|
797
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
798
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.get_ticket_definition"
|
799
|
+
end
|
800
|
+
# verify the required parameter 'ticket_definition_id' is set
|
801
|
+
if @api_client.config.client_side_validation && ticket_definition_id.nil?
|
802
|
+
fail ArgumentError, "Missing the required parameter 'ticket_definition_id' when calling TicketingApi.get_ticket_definition"
|
803
|
+
end
|
804
|
+
# resource path
|
805
|
+
local_var_path = '/accounts/{koronaAccountId}/ticketDefinitions/{ticketDefinitionId}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'ticketDefinitionId' + '}', ticket_definition_id.to_s)
|
806
|
+
|
807
|
+
# query parameters
|
808
|
+
query_params = {}
|
809
|
+
|
810
|
+
# header parameters
|
811
|
+
header_params = {}
|
812
|
+
# HTTP header 'Accept' (if needed)
|
813
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
814
|
+
# HTTP header 'Content-Type'
|
815
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
816
|
+
|
817
|
+
# form parameters
|
818
|
+
form_params = {}
|
819
|
+
|
820
|
+
# http body (model)
|
821
|
+
post_body = nil
|
822
|
+
auth_names = ['basicAuth']
|
823
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
824
|
+
:header_params => header_params,
|
825
|
+
:query_params => query_params,
|
826
|
+
:form_params => form_params,
|
827
|
+
:body => post_body,
|
828
|
+
:auth_names => auth_names,
|
829
|
+
:return_type => 'TicketDefinition')
|
830
|
+
if @api_client.config.debugging
|
831
|
+
@api_client.config.logger.debug "API called: TicketingApi#get_ticket_definition\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
832
|
+
end
|
833
|
+
return data, status_code, headers
|
834
|
+
end
|
835
|
+
# lists all ticket definitions
|
836
|
+
#
|
837
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
838
|
+
# @param [Hash] opts the optional parameters
|
839
|
+
# @option opts [Integer] :page number of the page to fetch
|
840
|
+
# @option opts [Integer] :size amount of objects to return per page
|
841
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
842
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
843
|
+
# @option opts [BOOLEAN] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
844
|
+
# @return [ResultListTicketDefinition]
|
845
|
+
def get_ticket_definitions(korona_account_id, opts = {})
|
846
|
+
data, _status_code, _headers = get_ticket_definitions_with_http_info(korona_account_id, opts)
|
847
|
+
data
|
848
|
+
end
|
849
|
+
|
850
|
+
# lists all ticket definitions
|
851
|
+
#
|
852
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
853
|
+
# @param [Hash] opts the optional parameters
|
854
|
+
# @option opts [Integer] :page number of the page to fetch
|
855
|
+
# @option opts [Integer] :size amount of objects to return per page
|
856
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
857
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
858
|
+
# @option opts [BOOLEAN] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
859
|
+
# @return [Array<(ResultListTicketDefinition, Fixnum, Hash)>] ResultListTicketDefinition data, response status code and response headers
|
860
|
+
def get_ticket_definitions_with_http_info(korona_account_id, opts = {})
|
861
|
+
if @api_client.config.debugging
|
862
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.get_ticket_definitions ...'
|
863
|
+
end
|
864
|
+
# verify the required parameter 'korona_account_id' is set
|
865
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
866
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.get_ticket_definitions"
|
867
|
+
end
|
868
|
+
# resource path
|
869
|
+
local_var_path = '/accounts/{koronaAccountId}/ticketDefinitions'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)
|
870
|
+
|
871
|
+
# query parameters
|
872
|
+
query_params = {}
|
873
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
874
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
875
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
876
|
+
query_params[:'revision'] = opts[:'revision'] if !opts[:'revision'].nil?
|
877
|
+
query_params[:'includeDeleted'] = opts[:'include_deleted'] if !opts[:'include_deleted'].nil?
|
878
|
+
|
879
|
+
# header parameters
|
880
|
+
header_params = {}
|
881
|
+
# HTTP header 'Accept' (if needed)
|
882
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
883
|
+
# HTTP header 'Content-Type'
|
884
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
885
|
+
|
886
|
+
# form parameters
|
887
|
+
form_params = {}
|
888
|
+
|
889
|
+
# http body (model)
|
890
|
+
post_body = nil
|
891
|
+
auth_names = ['basicAuth']
|
892
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
893
|
+
:header_params => header_params,
|
894
|
+
:query_params => query_params,
|
895
|
+
:form_params => form_params,
|
896
|
+
:body => post_body,
|
897
|
+
:auth_names => auth_names,
|
898
|
+
:return_type => 'ResultListTicketDefinition')
|
899
|
+
if @api_client.config.debugging
|
900
|
+
@api_client.config.logger.debug "API called: TicketingApi#get_ticket_definitions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
901
|
+
end
|
902
|
+
return data, status_code, headers
|
903
|
+
end
|
904
|
+
# lists all tickets
|
905
|
+
#
|
906
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
907
|
+
# @param page number of the page to fetch
|
908
|
+
# @param size amount of objects to return per page
|
909
|
+
# @param [Hash] opts the optional parameters
|
910
|
+
# @option opts [String] :ticket_number ticket number
|
911
|
+
# @option opts [String] :customer_number customer number
|
912
|
+
# @option opts [DateTime] :creation_date_from creation date from
|
913
|
+
# @option opts [DateTime] :creation_date_to creation date to
|
914
|
+
# @option opts [BOOLEAN] :locked is ticket locked
|
915
|
+
# @option opts [String] :owner_last_name last name of owner
|
916
|
+
# @option opts [String] :owner_first_name first name of owner
|
917
|
+
# @option opts [BOOLEAN] :load_owner_image set true if you want to load the owner's image
|
918
|
+
# @return [ResultListTicket]
|
919
|
+
def get_tickets(korona_account_id, page, size, opts = {})
|
920
|
+
data, _status_code, _headers = get_tickets_with_http_info(korona_account_id, page, size, opts)
|
921
|
+
data
|
922
|
+
end
|
923
|
+
|
924
|
+
# lists all tickets
|
925
|
+
#
|
926
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
927
|
+
# @param page number of the page to fetch
|
928
|
+
# @param size amount of objects to return per page
|
929
|
+
# @param [Hash] opts the optional parameters
|
930
|
+
# @option opts [String] :ticket_number ticket number
|
931
|
+
# @option opts [String] :customer_number customer number
|
932
|
+
# @option opts [DateTime] :creation_date_from creation date from
|
933
|
+
# @option opts [DateTime] :creation_date_to creation date to
|
934
|
+
# @option opts [BOOLEAN] :locked is ticket locked
|
935
|
+
# @option opts [String] :owner_last_name last name of owner
|
936
|
+
# @option opts [String] :owner_first_name first name of owner
|
937
|
+
# @option opts [BOOLEAN] :load_owner_image set true if you want to load the owner's image
|
938
|
+
# @return [Array<(ResultListTicket, Fixnum, Hash)>] ResultListTicket data, response status code and response headers
|
939
|
+
def get_tickets_with_http_info(korona_account_id, page, size, opts = {})
|
940
|
+
if @api_client.config.debugging
|
941
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.get_tickets ...'
|
942
|
+
end
|
943
|
+
# verify the required parameter 'korona_account_id' is set
|
944
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
945
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.get_tickets"
|
946
|
+
end
|
947
|
+
# verify the required parameter 'page' is set
|
948
|
+
if @api_client.config.client_side_validation && page.nil?
|
949
|
+
fail ArgumentError, "Missing the required parameter 'page' when calling TicketingApi.get_tickets"
|
950
|
+
end
|
951
|
+
# verify the required parameter 'size' is set
|
952
|
+
if @api_client.config.client_side_validation && size.nil?
|
953
|
+
fail ArgumentError, "Missing the required parameter 'size' when calling TicketingApi.get_tickets"
|
954
|
+
end
|
955
|
+
# resource path
|
956
|
+
local_var_path = '/accounts/{koronaAccountId}/tickets'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)
|
957
|
+
|
958
|
+
# query parameters
|
959
|
+
query_params = {}
|
960
|
+
query_params[:'page'] = page
|
961
|
+
query_params[:'size'] = size
|
962
|
+
query_params[:'ticketNumber'] = opts[:'ticket_number'] if !opts[:'ticket_number'].nil?
|
963
|
+
query_params[:'customerNumber'] = opts[:'customer_number'] if !opts[:'customer_number'].nil?
|
964
|
+
query_params[:'creationDateFrom'] = opts[:'creation_date_from'] if !opts[:'creation_date_from'].nil?
|
965
|
+
query_params[:'creationDateTo'] = opts[:'creation_date_to'] if !opts[:'creation_date_to'].nil?
|
966
|
+
query_params[:'locked'] = opts[:'locked'] if !opts[:'locked'].nil?
|
967
|
+
query_params[:'ownerLastName'] = opts[:'owner_last_name'] if !opts[:'owner_last_name'].nil?
|
968
|
+
query_params[:'ownerFirstName'] = opts[:'owner_first_name'] if !opts[:'owner_first_name'].nil?
|
969
|
+
query_params[:'loadOwnerImage'] = opts[:'load_owner_image'] if !opts[:'load_owner_image'].nil?
|
970
|
+
|
971
|
+
# header parameters
|
972
|
+
header_params = {}
|
973
|
+
# HTTP header 'Accept' (if needed)
|
974
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
975
|
+
# HTTP header 'Content-Type'
|
976
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
977
|
+
|
978
|
+
# form parameters
|
979
|
+
form_params = {}
|
980
|
+
|
981
|
+
# http body (model)
|
982
|
+
post_body = nil
|
983
|
+
auth_names = ['basicAuth']
|
984
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
985
|
+
:header_params => header_params,
|
986
|
+
:query_params => query_params,
|
987
|
+
:form_params => form_params,
|
988
|
+
:body => post_body,
|
989
|
+
:auth_names => auth_names,
|
990
|
+
:return_type => 'ResultListTicket')
|
991
|
+
if @api_client.config.debugging
|
992
|
+
@api_client.config.logger.debug "API called: TicketingApi#get_tickets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
993
|
+
end
|
994
|
+
return data, status_code, headers
|
995
|
+
end
|
996
|
+
# locks the single ticket
|
997
|
+
#
|
998
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
999
|
+
# @param ticket_number id of the related object (important: id should match the uuid-format)
|
1000
|
+
# @param [Hash] opts the optional parameters
|
1001
|
+
# @return [nil]
|
1002
|
+
def lock_ticket(korona_account_id, ticket_number, opts = {})
|
1003
|
+
lock_ticket_with_http_info(korona_account_id, ticket_number, opts)
|
1004
|
+
nil
|
1005
|
+
end
|
1006
|
+
|
1007
|
+
# locks the single ticket
|
1008
|
+
#
|
1009
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
1010
|
+
# @param ticket_number id of the related object (important: id should match the uuid-format)
|
1011
|
+
# @param [Hash] opts the optional parameters
|
1012
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
1013
|
+
def lock_ticket_with_http_info(korona_account_id, ticket_number, opts = {})
|
1014
|
+
if @api_client.config.debugging
|
1015
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.lock_ticket ...'
|
1016
|
+
end
|
1017
|
+
# verify the required parameter 'korona_account_id' is set
|
1018
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
1019
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.lock_ticket"
|
1020
|
+
end
|
1021
|
+
# verify the required parameter 'ticket_number' is set
|
1022
|
+
if @api_client.config.client_side_validation && ticket_number.nil?
|
1023
|
+
fail ArgumentError, "Missing the required parameter 'ticket_number' when calling TicketingApi.lock_ticket"
|
1024
|
+
end
|
1025
|
+
# resource path
|
1026
|
+
local_var_path = '/accounts/{koronaAccountId}/tickets/{ticketNumber}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'ticketNumber' + '}', ticket_number.to_s)
|
1027
|
+
|
1028
|
+
# query parameters
|
1029
|
+
query_params = {}
|
1030
|
+
|
1031
|
+
# header parameters
|
1032
|
+
header_params = {}
|
1033
|
+
# HTTP header 'Accept' (if needed)
|
1034
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1035
|
+
# HTTP header 'Content-Type'
|
1036
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1037
|
+
|
1038
|
+
# form parameters
|
1039
|
+
form_params = {}
|
1040
|
+
|
1041
|
+
# http body (model)
|
1042
|
+
post_body = nil
|
1043
|
+
auth_names = ['basicAuth']
|
1044
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
1045
|
+
:header_params => header_params,
|
1046
|
+
:query_params => query_params,
|
1047
|
+
:form_params => form_params,
|
1048
|
+
:body => post_body,
|
1049
|
+
:auth_names => auth_names)
|
1050
|
+
if @api_client.config.debugging
|
1051
|
+
@api_client.config.logger.debug "API called: TicketingApi#lock_ticket\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1052
|
+
end
|
1053
|
+
return data, status_code, headers
|
1054
|
+
end
|
1055
|
+
# unlocks the single ticket
|
1056
|
+
#
|
1057
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
1058
|
+
# @param ticket_number id of the related object (important: id should match the uuid-format)
|
1059
|
+
# @param [Hash] opts the optional parameters
|
1060
|
+
# @return [nil]
|
1061
|
+
def unlock_ticket(korona_account_id, ticket_number, opts = {})
|
1062
|
+
unlock_ticket_with_http_info(korona_account_id, ticket_number, opts)
|
1063
|
+
nil
|
1064
|
+
end
|
1065
|
+
|
1066
|
+
# unlocks the single ticket
|
1067
|
+
#
|
1068
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
1069
|
+
# @param ticket_number id of the related object (important: id should match the uuid-format)
|
1070
|
+
# @param [Hash] opts the optional parameters
|
1071
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
1072
|
+
def unlock_ticket_with_http_info(korona_account_id, ticket_number, opts = {})
|
1073
|
+
if @api_client.config.debugging
|
1074
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.unlock_ticket ...'
|
1075
|
+
end
|
1076
|
+
# verify the required parameter 'korona_account_id' is set
|
1077
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
1078
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.unlock_ticket"
|
1079
|
+
end
|
1080
|
+
# verify the required parameter 'ticket_number' is set
|
1081
|
+
if @api_client.config.client_side_validation && ticket_number.nil?
|
1082
|
+
fail ArgumentError, "Missing the required parameter 'ticket_number' when calling TicketingApi.unlock_ticket"
|
1083
|
+
end
|
1084
|
+
# resource path
|
1085
|
+
local_var_path = '/accounts/{koronaAccountId}/tickets/{ticketNumber}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'ticketNumber' + '}', ticket_number.to_s)
|
1086
|
+
|
1087
|
+
# query parameters
|
1088
|
+
query_params = {}
|
1089
|
+
|
1090
|
+
# header parameters
|
1091
|
+
header_params = {}
|
1092
|
+
# HTTP header 'Accept' (if needed)
|
1093
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1094
|
+
# HTTP header 'Content-Type'
|
1095
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1096
|
+
|
1097
|
+
# form parameters
|
1098
|
+
form_params = {}
|
1099
|
+
|
1100
|
+
# http body (model)
|
1101
|
+
post_body = nil
|
1102
|
+
auth_names = ['basicAuth']
|
1103
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1104
|
+
:header_params => header_params,
|
1105
|
+
:query_params => query_params,
|
1106
|
+
:form_params => form_params,
|
1107
|
+
:body => post_body,
|
1108
|
+
:auth_names => auth_names)
|
1109
|
+
if @api_client.config.debugging
|
1110
|
+
@api_client.config.logger.debug "API called: TicketingApi#unlock_ticket\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1111
|
+
end
|
1112
|
+
return data, status_code, headers
|
1113
|
+
end
|
1114
|
+
# updates the single event
|
1115
|
+
#
|
1116
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
1117
|
+
# @param event_id id of the related object (important: id should match the uuid-format)
|
1118
|
+
# @param body the properties to update of the event
|
1119
|
+
# @param [Hash] opts the optional parameters
|
1120
|
+
# @return [nil]
|
1121
|
+
def update_event(korona_account_id, event_id, body, opts = {})
|
1122
|
+
update_event_with_http_info(korona_account_id, event_id, body, opts)
|
1123
|
+
nil
|
1124
|
+
end
|
1125
|
+
|
1126
|
+
# updates the single event
|
1127
|
+
#
|
1128
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
1129
|
+
# @param event_id id of the related object (important: id should match the uuid-format)
|
1130
|
+
# @param body the properties to update of the event
|
1131
|
+
# @param [Hash] opts the optional parameters
|
1132
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
1133
|
+
def update_event_with_http_info(korona_account_id, event_id, body, opts = {})
|
1134
|
+
if @api_client.config.debugging
|
1135
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.update_event ...'
|
1136
|
+
end
|
1137
|
+
# verify the required parameter 'korona_account_id' is set
|
1138
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
1139
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.update_event"
|
1140
|
+
end
|
1141
|
+
# verify the required parameter 'event_id' is set
|
1142
|
+
if @api_client.config.client_side_validation && event_id.nil?
|
1143
|
+
fail ArgumentError, "Missing the required parameter 'event_id' when calling TicketingApi.update_event"
|
1144
|
+
end
|
1145
|
+
# verify the required parameter 'body' is set
|
1146
|
+
if @api_client.config.client_side_validation && body.nil?
|
1147
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling TicketingApi.update_event"
|
1148
|
+
end
|
1149
|
+
# resource path
|
1150
|
+
local_var_path = '/accounts/{koronaAccountId}/events/{eventId}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'eventId' + '}', event_id.to_s)
|
1151
|
+
|
1152
|
+
# query parameters
|
1153
|
+
query_params = {}
|
1154
|
+
|
1155
|
+
# header parameters
|
1156
|
+
header_params = {}
|
1157
|
+
# HTTP header 'Accept' (if needed)
|
1158
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1159
|
+
# HTTP header 'Content-Type'
|
1160
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1161
|
+
|
1162
|
+
# form parameters
|
1163
|
+
form_params = {}
|
1164
|
+
|
1165
|
+
# http body (model)
|
1166
|
+
post_body = @api_client.object_to_http_body(body)
|
1167
|
+
auth_names = ['basicAuth']
|
1168
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
1169
|
+
:header_params => header_params,
|
1170
|
+
:query_params => query_params,
|
1171
|
+
:form_params => form_params,
|
1172
|
+
:body => post_body,
|
1173
|
+
:auth_names => auth_names)
|
1174
|
+
if @api_client.config.debugging
|
1175
|
+
@api_client.config.logger.debug "API called: TicketingApi#update_event\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1176
|
+
end
|
1177
|
+
return data, status_code, headers
|
1178
|
+
end
|
1179
|
+
# updates a batch of events
|
1180
|
+
# [number] must be set in the objects, otherwise the object cannot be updated
|
1181
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
1182
|
+
# @param body an array of existing events
|
1183
|
+
# @param [Hash] opts the optional parameters
|
1184
|
+
# @return [Array<AddOrUpdateResult>]
|
1185
|
+
def update_events(korona_account_id, body, opts = {})
|
1186
|
+
data, _status_code, _headers = update_events_with_http_info(korona_account_id, body, opts)
|
1187
|
+
data
|
1188
|
+
end
|
1189
|
+
|
1190
|
+
# updates a batch of events
|
1191
|
+
# [number] must be set in the objects, otherwise the object cannot be updated
|
1192
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
1193
|
+
# @param body an array of existing events
|
1194
|
+
# @param [Hash] opts the optional parameters
|
1195
|
+
# @return [Array<(Array<AddOrUpdateResult>, Fixnum, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers
|
1196
|
+
def update_events_with_http_info(korona_account_id, body, opts = {})
|
1197
|
+
if @api_client.config.debugging
|
1198
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.update_events ...'
|
1199
|
+
end
|
1200
|
+
# verify the required parameter 'korona_account_id' is set
|
1201
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
1202
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.update_events"
|
1203
|
+
end
|
1204
|
+
# verify the required parameter 'body' is set
|
1205
|
+
if @api_client.config.client_side_validation && body.nil?
|
1206
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling TicketingApi.update_events"
|
1207
|
+
end
|
1208
|
+
# resource path
|
1209
|
+
local_var_path = '/accounts/{koronaAccountId}/events'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)
|
1210
|
+
|
1211
|
+
# query parameters
|
1212
|
+
query_params = {}
|
1213
|
+
|
1214
|
+
# header parameters
|
1215
|
+
header_params = {}
|
1216
|
+
# HTTP header 'Accept' (if needed)
|
1217
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1218
|
+
# HTTP header 'Content-Type'
|
1219
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1220
|
+
|
1221
|
+
# form parameters
|
1222
|
+
form_params = {}
|
1223
|
+
|
1224
|
+
# http body (model)
|
1225
|
+
post_body = @api_client.object_to_http_body(body)
|
1226
|
+
auth_names = ['basicAuth']
|
1227
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
1228
|
+
:header_params => header_params,
|
1229
|
+
:query_params => query_params,
|
1230
|
+
:form_params => form_params,
|
1231
|
+
:body => post_body,
|
1232
|
+
:auth_names => auth_names,
|
1233
|
+
:return_type => 'Array<AddOrUpdateResult>')
|
1234
|
+
if @api_client.config.debugging
|
1235
|
+
@api_client.config.logger.debug "API called: TicketingApi#update_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1236
|
+
end
|
1237
|
+
return data, status_code, headers
|
1238
|
+
end
|
1239
|
+
# updates the single ticket
|
1240
|
+
#
|
1241
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
1242
|
+
# @param ticket_number old ticket number
|
1243
|
+
# @param [Hash] opts the optional parameters
|
1244
|
+
# @option opts [String] :new_ticket_number new ticket number
|
1245
|
+
# @option opts [String] :first_name ticket owner's first name
|
1246
|
+
# @option opts [String] :last_name ticket owner's last name
|
1247
|
+
# @return [nil]
|
1248
|
+
def update_ticket(korona_account_id, ticket_number, opts = {})
|
1249
|
+
update_ticket_with_http_info(korona_account_id, ticket_number, opts)
|
1250
|
+
nil
|
1251
|
+
end
|
1252
|
+
|
1253
|
+
# updates the single ticket
|
1254
|
+
#
|
1255
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
1256
|
+
# @param ticket_number old ticket number
|
1257
|
+
# @param [Hash] opts the optional parameters
|
1258
|
+
# @option opts [String] :new_ticket_number new ticket number
|
1259
|
+
# @option opts [String] :first_name ticket owner's first name
|
1260
|
+
# @option opts [String] :last_name ticket owner's last name
|
1261
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
1262
|
+
def update_ticket_with_http_info(korona_account_id, ticket_number, opts = {})
|
1263
|
+
if @api_client.config.debugging
|
1264
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.update_ticket ...'
|
1265
|
+
end
|
1266
|
+
# verify the required parameter 'korona_account_id' is set
|
1267
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
1268
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.update_ticket"
|
1269
|
+
end
|
1270
|
+
# verify the required parameter 'ticket_number' is set
|
1271
|
+
if @api_client.config.client_side_validation && ticket_number.nil?
|
1272
|
+
fail ArgumentError, "Missing the required parameter 'ticket_number' when calling TicketingApi.update_ticket"
|
1273
|
+
end
|
1274
|
+
# resource path
|
1275
|
+
local_var_path = '/accounts/{koronaAccountId}/tickets/{ticketNumber}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'ticketNumber' + '}', ticket_number.to_s)
|
1276
|
+
|
1277
|
+
# query parameters
|
1278
|
+
query_params = {}
|
1279
|
+
query_params[:'newTicketNumber'] = opts[:'new_ticket_number'] if !opts[:'new_ticket_number'].nil?
|
1280
|
+
query_params[:'firstName'] = opts[:'first_name'] if !opts[:'first_name'].nil?
|
1281
|
+
query_params[:'lastName'] = opts[:'last_name'] if !opts[:'last_name'].nil?
|
1282
|
+
|
1283
|
+
# header parameters
|
1284
|
+
header_params = {}
|
1285
|
+
# HTTP header 'Accept' (if needed)
|
1286
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1287
|
+
# HTTP header 'Content-Type'
|
1288
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1289
|
+
|
1290
|
+
# form parameters
|
1291
|
+
form_params = {}
|
1292
|
+
|
1293
|
+
# http body (model)
|
1294
|
+
post_body = nil
|
1295
|
+
auth_names = ['basicAuth']
|
1296
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
1297
|
+
:header_params => header_params,
|
1298
|
+
:query_params => query_params,
|
1299
|
+
:form_params => form_params,
|
1300
|
+
:body => post_body,
|
1301
|
+
:auth_names => auth_names)
|
1302
|
+
if @api_client.config.debugging
|
1303
|
+
@api_client.config.logger.debug "API called: TicketingApi#update_ticket\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1304
|
+
end
|
1305
|
+
return data, status_code, headers
|
1306
|
+
end
|
1307
|
+
# updates a batch of ticket definitions
|
1308
|
+
#
|
1309
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
1310
|
+
# @param body array of existing ticket definitions (id or number required)
|
1311
|
+
# @param [Hash] opts the optional parameters
|
1312
|
+
# @return [Array<AddOrUpdateResult>]
|
1313
|
+
def update_ticket_definitions(korona_account_id, body, opts = {})
|
1314
|
+
data, _status_code, _headers = update_ticket_definitions_with_http_info(korona_account_id, body, opts)
|
1315
|
+
data
|
1316
|
+
end
|
1317
|
+
|
1318
|
+
# updates a batch of ticket definitions
|
1319
|
+
#
|
1320
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
1321
|
+
# @param body array of existing ticket definitions (id or number required)
|
1322
|
+
# @param [Hash] opts the optional parameters
|
1323
|
+
# @return [Array<(Array<AddOrUpdateResult>, Fixnum, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers
|
1324
|
+
def update_ticket_definitions_with_http_info(korona_account_id, body, opts = {})
|
1325
|
+
if @api_client.config.debugging
|
1326
|
+
@api_client.config.logger.debug 'Calling API: TicketingApi.update_ticket_definitions ...'
|
1327
|
+
end
|
1328
|
+
# verify the required parameter 'korona_account_id' is set
|
1329
|
+
if @api_client.config.client_side_validation && korona_account_id.nil?
|
1330
|
+
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.update_ticket_definitions"
|
1331
|
+
end
|
1332
|
+
# verify the required parameter 'body' is set
|
1333
|
+
if @api_client.config.client_side_validation && body.nil?
|
1334
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling TicketingApi.update_ticket_definitions"
|
1335
|
+
end
|
1336
|
+
# resource path
|
1337
|
+
local_var_path = '/accounts/{koronaAccountId}/ticketDefinitions'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)
|
1338
|
+
|
1339
|
+
# query parameters
|
1340
|
+
query_params = {}
|
1341
|
+
|
1342
|
+
# header parameters
|
1343
|
+
header_params = {}
|
1344
|
+
# HTTP header 'Accept' (if needed)
|
1345
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1346
|
+
# HTTP header 'Content-Type'
|
1347
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1348
|
+
|
1349
|
+
# form parameters
|
1350
|
+
form_params = {}
|
1351
|
+
|
1352
|
+
# http body (model)
|
1353
|
+
post_body = @api_client.object_to_http_body(body)
|
1354
|
+
auth_names = ['basicAuth']
|
1355
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
1356
|
+
:header_params => header_params,
|
1357
|
+
:query_params => query_params,
|
1358
|
+
:form_params => form_params,
|
1359
|
+
:body => post_body,
|
1360
|
+
:auth_names => auth_names,
|
1361
|
+
:return_type => 'Array<AddOrUpdateResult>')
|
1362
|
+
if @api_client.config.debugging
|
1363
|
+
@api_client.config.logger.debug "API called: TicketingApi#update_ticket_definitions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
412
1364
|
end
|
413
1365
|
return data, status_code, headers
|
414
1366
|
end
|