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,388 @@
|
|
1
|
+
# KoronaClient::TimeTrackingApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://www.koronacloud.com/web/api/v3*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**add_entities**](TimeTrackingApi.md#add_entities) | **POST** /accounts/{koronaAccountId}/timeTrackingEntities | adds a batch of new time tracking entities
|
8
|
+
[**add_entries**](TimeTrackingApi.md#add_entries) | **POST** /accounts/{koronaAccountId}/timeTrackingEntries | adds a batch of new time tracking entries
|
9
|
+
[**get_entities**](TimeTrackingApi.md#get_entities) | **GET** /accounts/{koronaAccountId}/timeTrackingEntities | lists time tracking entities
|
10
|
+
[**get_entries**](TimeTrackingApi.md#get_entries) | **GET** /accounts/{koronaAccountId}/timeTrackingEntries | lists time tracking entries
|
11
|
+
[**get_time_tracking_entity**](TimeTrackingApi.md#get_time_tracking_entity) | **GET** /accounts/{koronaAccountId}/timeTrackingEntities/{timeTrackingEntityId} | returns a single time tracking entity
|
12
|
+
[**get_time_tracking_entry**](TimeTrackingApi.md#get_time_tracking_entry) | **GET** /accounts/{koronaAccountId}/timeTrackingEntries/{timeTrackingEntryId} | returns a single time tracking entry
|
13
|
+
|
14
|
+
|
15
|
+
# **add_entities**
|
16
|
+
> Array<AddOrUpdateResult> add_entities(korona_account_id, body, opts)
|
17
|
+
|
18
|
+
adds a batch of new time tracking entities
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
### Example
|
23
|
+
```ruby
|
24
|
+
# load the gem
|
25
|
+
require 'korona_client'
|
26
|
+
# setup authorization
|
27
|
+
KoronaClient.configure do |config|
|
28
|
+
# Configure HTTP basic authorization: basicAuth
|
29
|
+
config.username = 'YOUR USERNAME'
|
30
|
+
config.password = 'YOUR PASSWORD'
|
31
|
+
end
|
32
|
+
|
33
|
+
api_instance = KoronaClient::TimeTrackingApi.new
|
34
|
+
|
35
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
36
|
+
|
37
|
+
body = [KoronaClient::TimeTrackingEntity.new] # Array<TimeTrackingEntity> | array of new time tracking entities
|
38
|
+
|
39
|
+
opts = {
|
40
|
+
upsert: true # BOOLEAN | when set to true, updates the object instead of generating a already-exists-error
|
41
|
+
}
|
42
|
+
|
43
|
+
begin
|
44
|
+
#adds a batch of new time tracking entities
|
45
|
+
result = api_instance.add_entities(korona_account_id, body, opts)
|
46
|
+
p result
|
47
|
+
rescue KoronaClient::ApiError => e
|
48
|
+
puts "Exception when calling TimeTrackingApi->add_entities: #{e}"
|
49
|
+
end
|
50
|
+
```
|
51
|
+
|
52
|
+
### Parameters
|
53
|
+
|
54
|
+
Name | Type | Description | Notes
|
55
|
+
------------- | ------------- | ------------- | -------------
|
56
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
57
|
+
**body** | [**Array<TimeTrackingEntity>**](TimeTrackingEntity.md)| array of new time tracking entities |
|
58
|
+
**upsert** | **BOOLEAN**| when set to true, updates the object instead of generating a already-exists-error | [optional]
|
59
|
+
|
60
|
+
### Return type
|
61
|
+
|
62
|
+
[**Array<AddOrUpdateResult>**](AddOrUpdateResult.md)
|
63
|
+
|
64
|
+
### Authorization
|
65
|
+
|
66
|
+
[basicAuth](../README.md#basicAuth)
|
67
|
+
|
68
|
+
### HTTP request headers
|
69
|
+
|
70
|
+
- **Content-Type**: application/json
|
71
|
+
- **Accept**: application/json
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
# **add_entries**
|
76
|
+
> Array<AddOrUpdateResult> add_entries(korona_account_id, body, opts)
|
77
|
+
|
78
|
+
adds a batch of new time tracking entries
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
### Example
|
83
|
+
```ruby
|
84
|
+
# load the gem
|
85
|
+
require 'korona_client'
|
86
|
+
# setup authorization
|
87
|
+
KoronaClient.configure do |config|
|
88
|
+
# Configure HTTP basic authorization: basicAuth
|
89
|
+
config.username = 'YOUR USERNAME'
|
90
|
+
config.password = 'YOUR PASSWORD'
|
91
|
+
end
|
92
|
+
|
93
|
+
api_instance = KoronaClient::TimeTrackingApi.new
|
94
|
+
|
95
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
96
|
+
|
97
|
+
body = [KoronaClient::TimeTrackingEntry.new] # Array<TimeTrackingEntry> | array of new time tracking entries
|
98
|
+
|
99
|
+
opts = {
|
100
|
+
upsert: true # BOOLEAN | when set to true, updates the object instead of generating a already-exists-error
|
101
|
+
}
|
102
|
+
|
103
|
+
begin
|
104
|
+
#adds a batch of new time tracking entries
|
105
|
+
result = api_instance.add_entries(korona_account_id, body, opts)
|
106
|
+
p result
|
107
|
+
rescue KoronaClient::ApiError => e
|
108
|
+
puts "Exception when calling TimeTrackingApi->add_entries: #{e}"
|
109
|
+
end
|
110
|
+
```
|
111
|
+
|
112
|
+
### Parameters
|
113
|
+
|
114
|
+
Name | Type | Description | Notes
|
115
|
+
------------- | ------------- | ------------- | -------------
|
116
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
117
|
+
**body** | [**Array<TimeTrackingEntry>**](TimeTrackingEntry.md)| array of new time tracking entries |
|
118
|
+
**upsert** | **BOOLEAN**| when set to true, updates the object instead of generating a already-exists-error | [optional]
|
119
|
+
|
120
|
+
### Return type
|
121
|
+
|
122
|
+
[**Array<AddOrUpdateResult>**](AddOrUpdateResult.md)
|
123
|
+
|
124
|
+
### Authorization
|
125
|
+
|
126
|
+
[basicAuth](../README.md#basicAuth)
|
127
|
+
|
128
|
+
### HTTP request headers
|
129
|
+
|
130
|
+
- **Content-Type**: application/json
|
131
|
+
- **Accept**: application/json
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
# **get_entities**
|
136
|
+
> ResultListTimeTrackingEntity get_entities(korona_account_id, opts)
|
137
|
+
|
138
|
+
lists time tracking entities
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
### Example
|
143
|
+
```ruby
|
144
|
+
# load the gem
|
145
|
+
require 'korona_client'
|
146
|
+
# setup authorization
|
147
|
+
KoronaClient.configure do |config|
|
148
|
+
# Configure HTTP basic authorization: basicAuth
|
149
|
+
config.username = 'YOUR USERNAME'
|
150
|
+
config.password = 'YOUR PASSWORD'
|
151
|
+
end
|
152
|
+
|
153
|
+
api_instance = KoronaClient::TimeTrackingApi.new
|
154
|
+
|
155
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
156
|
+
|
157
|
+
opts = {
|
158
|
+
page: 56, # Integer | number of the page to fetch
|
159
|
+
size: 56, # Integer | amount of objects to return per page
|
160
|
+
sort: 'sort_example', # String | attribute to sort by (multiple separated by comma; max. 5)
|
161
|
+
revision: 789, # Integer | last revision number, objects with a greater revision than this will be returned
|
162
|
+
include_deleted: true, # BOOLEAN | indicates deleted objects should be loaded or not (default: false)
|
163
|
+
number: 'number_example' # String | number of the related object
|
164
|
+
}
|
165
|
+
|
166
|
+
begin
|
167
|
+
#lists time tracking entities
|
168
|
+
result = api_instance.get_entities(korona_account_id, opts)
|
169
|
+
p result
|
170
|
+
rescue KoronaClient::ApiError => e
|
171
|
+
puts "Exception when calling TimeTrackingApi->get_entities: #{e}"
|
172
|
+
end
|
173
|
+
```
|
174
|
+
|
175
|
+
### Parameters
|
176
|
+
|
177
|
+
Name | Type | Description | Notes
|
178
|
+
------------- | ------------- | ------------- | -------------
|
179
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
180
|
+
**page** | **Integer**| number of the page to fetch | [optional]
|
181
|
+
**size** | **Integer**| amount of objects to return per page | [optional]
|
182
|
+
**sort** | **String**| attribute to sort by (multiple separated by comma; max. 5) | [optional]
|
183
|
+
**revision** | **Integer**| last revision number, objects with a greater revision than this will be returned | [optional]
|
184
|
+
**include_deleted** | **BOOLEAN**| indicates deleted objects should be loaded or not (default: false) | [optional]
|
185
|
+
**number** | **String**| number of the related object | [optional]
|
186
|
+
|
187
|
+
### Return type
|
188
|
+
|
189
|
+
[**ResultListTimeTrackingEntity**](ResultListTimeTrackingEntity.md)
|
190
|
+
|
191
|
+
### Authorization
|
192
|
+
|
193
|
+
[basicAuth](../README.md#basicAuth)
|
194
|
+
|
195
|
+
### HTTP request headers
|
196
|
+
|
197
|
+
- **Content-Type**: application/json
|
198
|
+
- **Accept**: application/json
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
# **get_entries**
|
203
|
+
> ResultListTimeTrackingEntry get_entries(korona_account_id, opts)
|
204
|
+
|
205
|
+
lists time tracking entries
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
### Example
|
210
|
+
```ruby
|
211
|
+
# load the gem
|
212
|
+
require 'korona_client'
|
213
|
+
# setup authorization
|
214
|
+
KoronaClient.configure do |config|
|
215
|
+
# Configure HTTP basic authorization: basicAuth
|
216
|
+
config.username = 'YOUR USERNAME'
|
217
|
+
config.password = 'YOUR PASSWORD'
|
218
|
+
end
|
219
|
+
|
220
|
+
api_instance = KoronaClient::TimeTrackingApi.new
|
221
|
+
|
222
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
223
|
+
|
224
|
+
opts = {
|
225
|
+
page: 56, # Integer | number of the page to fetch
|
226
|
+
size: 56, # Integer | amount of objects to return per page
|
227
|
+
sort: 'sort_example', # String | attribute to sort by (multiple separated by comma; max. 5)
|
228
|
+
revision: 789, # Integer | last revision number, objects with a greater revision than this will be returned
|
229
|
+
time_tracking_entity: 'time_tracking_entity_example', # String | time tracking entity id to filter by
|
230
|
+
cashier: 'cashier_example', # String | cashier id to filter by
|
231
|
+
organizational_unit: 'organizational_unit_example', # String | organizational unit
|
232
|
+
min_timestamp: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | min (inclusive) timestamp (ISO 8601; date, time and timezone)
|
233
|
+
max_timestamp: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | max (inclusive) timestamp (ISO 8601; date, time and timezone)
|
234
|
+
include_deleted: true # BOOLEAN | indicates deleted objects should be loaded or not (default: false)
|
235
|
+
}
|
236
|
+
|
237
|
+
begin
|
238
|
+
#lists time tracking entries
|
239
|
+
result = api_instance.get_entries(korona_account_id, opts)
|
240
|
+
p result
|
241
|
+
rescue KoronaClient::ApiError => e
|
242
|
+
puts "Exception when calling TimeTrackingApi->get_entries: #{e}"
|
243
|
+
end
|
244
|
+
```
|
245
|
+
|
246
|
+
### Parameters
|
247
|
+
|
248
|
+
Name | Type | Description | Notes
|
249
|
+
------------- | ------------- | ------------- | -------------
|
250
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
251
|
+
**page** | **Integer**| number of the page to fetch | [optional]
|
252
|
+
**size** | **Integer**| amount of objects to return per page | [optional]
|
253
|
+
**sort** | **String**| attribute to sort by (multiple separated by comma; max. 5) | [optional]
|
254
|
+
**revision** | **Integer**| last revision number, objects with a greater revision than this will be returned | [optional]
|
255
|
+
**time_tracking_entity** | **String**| time tracking entity id to filter by | [optional]
|
256
|
+
**cashier** | **String**| cashier id to filter by | [optional]
|
257
|
+
**organizational_unit** | **String**| organizational unit | [optional]
|
258
|
+
**min_timestamp** | **DateTime**| min (inclusive) timestamp (ISO 8601; date, time and timezone) | [optional]
|
259
|
+
**max_timestamp** | **DateTime**| max (inclusive) timestamp (ISO 8601; date, time and timezone) | [optional]
|
260
|
+
**include_deleted** | **BOOLEAN**| indicates deleted objects should be loaded or not (default: false) | [optional]
|
261
|
+
|
262
|
+
### Return type
|
263
|
+
|
264
|
+
[**ResultListTimeTrackingEntry**](ResultListTimeTrackingEntry.md)
|
265
|
+
|
266
|
+
### Authorization
|
267
|
+
|
268
|
+
[basicAuth](../README.md#basicAuth)
|
269
|
+
|
270
|
+
### HTTP request headers
|
271
|
+
|
272
|
+
- **Content-Type**: application/json
|
273
|
+
- **Accept**: application/json
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
# **get_time_tracking_entity**
|
278
|
+
> TimeTrackingEntity get_time_tracking_entity(korona_account_id, time_tracking_entity_id)
|
279
|
+
|
280
|
+
returns a single time tracking entity
|
281
|
+
|
282
|
+
|
283
|
+
|
284
|
+
### Example
|
285
|
+
```ruby
|
286
|
+
# load the gem
|
287
|
+
require 'korona_client'
|
288
|
+
# setup authorization
|
289
|
+
KoronaClient.configure do |config|
|
290
|
+
# Configure HTTP basic authorization: basicAuth
|
291
|
+
config.username = 'YOUR USERNAME'
|
292
|
+
config.password = 'YOUR PASSWORD'
|
293
|
+
end
|
294
|
+
|
295
|
+
api_instance = KoronaClient::TimeTrackingApi.new
|
296
|
+
|
297
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
298
|
+
|
299
|
+
time_tracking_entity_id = 'time_tracking_entity_id_example' # String | id of the related object (important: id should match the uuid-format)
|
300
|
+
|
301
|
+
|
302
|
+
begin
|
303
|
+
#returns a single time tracking entity
|
304
|
+
result = api_instance.get_time_tracking_entity(korona_account_id, time_tracking_entity_id)
|
305
|
+
p result
|
306
|
+
rescue KoronaClient::ApiError => e
|
307
|
+
puts "Exception when calling TimeTrackingApi->get_time_tracking_entity: #{e}"
|
308
|
+
end
|
309
|
+
```
|
310
|
+
|
311
|
+
### Parameters
|
312
|
+
|
313
|
+
Name | Type | Description | Notes
|
314
|
+
------------- | ------------- | ------------- | -------------
|
315
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
316
|
+
**time_tracking_entity_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
317
|
+
|
318
|
+
### Return type
|
319
|
+
|
320
|
+
[**TimeTrackingEntity**](TimeTrackingEntity.md)
|
321
|
+
|
322
|
+
### Authorization
|
323
|
+
|
324
|
+
[basicAuth](../README.md#basicAuth)
|
325
|
+
|
326
|
+
### HTTP request headers
|
327
|
+
|
328
|
+
- **Content-Type**: application/json
|
329
|
+
- **Accept**: application/json
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
# **get_time_tracking_entry**
|
334
|
+
> TimeTrackingEntry get_time_tracking_entry(korona_account_id, time_tracking_entry_id)
|
335
|
+
|
336
|
+
returns a single time tracking entry
|
337
|
+
|
338
|
+
|
339
|
+
|
340
|
+
### Example
|
341
|
+
```ruby
|
342
|
+
# load the gem
|
343
|
+
require 'korona_client'
|
344
|
+
# setup authorization
|
345
|
+
KoronaClient.configure do |config|
|
346
|
+
# Configure HTTP basic authorization: basicAuth
|
347
|
+
config.username = 'YOUR USERNAME'
|
348
|
+
config.password = 'YOUR PASSWORD'
|
349
|
+
end
|
350
|
+
|
351
|
+
api_instance = KoronaClient::TimeTrackingApi.new
|
352
|
+
|
353
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
354
|
+
|
355
|
+
time_tracking_entry_id = 'time_tracking_entry_id_example' # String | id of the related object (important: id should match the uuid-format)
|
356
|
+
|
357
|
+
|
358
|
+
begin
|
359
|
+
#returns a single time tracking entry
|
360
|
+
result = api_instance.get_time_tracking_entry(korona_account_id, time_tracking_entry_id)
|
361
|
+
p result
|
362
|
+
rescue KoronaClient::ApiError => e
|
363
|
+
puts "Exception when calling TimeTrackingApi->get_time_tracking_entry: #{e}"
|
364
|
+
end
|
365
|
+
```
|
366
|
+
|
367
|
+
### Parameters
|
368
|
+
|
369
|
+
Name | Type | Description | Notes
|
370
|
+
------------- | ------------- | ------------- | -------------
|
371
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
372
|
+
**time_tracking_entry_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
373
|
+
|
374
|
+
### Return type
|
375
|
+
|
376
|
+
[**TimeTrackingEntry**](TimeTrackingEntry.md)
|
377
|
+
|
378
|
+
### Authorization
|
379
|
+
|
380
|
+
[basicAuth](../README.md#basicAuth)
|
381
|
+
|
382
|
+
### HTTP request headers
|
383
|
+
|
384
|
+
- **Content-Type**: application/json
|
385
|
+
- **Accept**: application/json
|
386
|
+
|
387
|
+
|
388
|
+
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# KoronaClient::TimeTrackingEntity
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**active** | **BOOLEAN** | indicates whether the object is active for use or not | [optional]
|
7
|
+
**id** | **String** | global object uuid (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) | [optional]
|
8
|
+
**number** | **String** | number of the object, like it is set in backoffice; will be removed when active=false | [optional]
|
9
|
+
**revision** | **Integer** | the revision number of the object. revision numbers are unique per object-type. there is is no object of the same type with identical revision numbers. | [optional]
|
10
|
+
**name** | **String** | | [optional]
|
11
|
+
**paid_time** | **BOOLEAN** | | [optional]
|
12
|
+
|
13
|
+
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# KoronaClient::TimeTrackingEntry
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | global object uuid (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) | [optional]
|
7
|
+
**active** | **BOOLEAN** | indicates whether the object is active for use or not | [optional]
|
8
|
+
**revision** | **Integer** | the revision number of the object. revision numbers are unique per object-type. there is is no object of the same type with identical revision numbers. | [optional]
|
9
|
+
**time_stamp** | **DateTime** | | [optional]
|
10
|
+
**cashier** | [**ModelReference**](ModelReference.md) | | [optional]
|
11
|
+
**organizational_unit** | [**ModelReference**](ModelReference.md) | | [optional]
|
12
|
+
**time_tracking_entity** | [**ModelReference**](ModelReference.md) | | [optional]
|
13
|
+
|
14
|
+
|
data/docs/TotalPeriod.md
ADDED
data/docs/Validity.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# KoronaClient::Validity
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**daily** | [**DayTimePeriod**](DayTimePeriod.md) | | [optional]
|
7
|
+
**days_of_month** | **Array<Integer>** | | [optional]
|
8
|
+
**days_of_week** | **Array<String>** | | [optional]
|
9
|
+
**total** | [**TotalPeriod**](TotalPeriod.md) | | [optional]
|
10
|
+
|
11
|
+
|
Binary file
|
data/korona_client.gemspec
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
|
2
|
+
|
3
3
|
=begin
|
4
4
|
#KORONA.cloud API v3
|
5
5
|
|
6
6
|
#Our api provides access to our cloud services
|
7
7
|
|
8
|
-
OpenAPI spec version:
|
9
|
-
|
8
|
+
OpenAPI spec version: 2.11.21
|
9
|
+
|
10
10
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
11
|
-
Swagger Codegen version: 2.
|
11
|
+
Swagger Codegen version: 2.4.8
|
12
12
|
|
13
13
|
=end
|
14
14
|
|
@@ -20,12 +20,11 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.version = KoronaClient::VERSION
|
21
21
|
s.platform = Gem::Platform::RUBY
|
22
22
|
s.authors = ["Swagger-Codegen"]
|
23
|
-
s.email = ["
|
23
|
+
s.email = [""]
|
24
24
|
s.homepage = "https://github.com/swagger-api/swagger-codegen"
|
25
25
|
s.summary = "KORONA.cloud API v3 Ruby Gem"
|
26
26
|
s.description = "Our api provides access to our cloud services"
|
27
|
-
|
28
|
-
#s.license = "Apache 2.0"
|
27
|
+
s.license = "Unlicense"
|
29
28
|
s.required_ruby_version = ">= 1.9"
|
30
29
|
|
31
30
|
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
@@ -39,7 +38,7 @@ Gem::Specification.new do |s|
|
|
39
38
|
s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
|
40
39
|
s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
|
41
40
|
|
42
|
-
s.files = `find *`.split("\n").uniq.sort.select{|f| !f.empty? }
|
41
|
+
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
43
42
|
s.test_files = `find spec/*`.split("\n")
|
44
43
|
s.executables = []
|
45
44
|
s.require_paths = ["lib"]
|