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
data/docs/ImagesApi.md
CHANGED
@@ -8,7 +8,7 @@ Method | HTTP request | Description
|
|
8
8
|
|
9
9
|
|
10
10
|
# **get_image**
|
11
|
-
> get_image(korona_account_id, image_id)
|
11
|
+
> String get_image(korona_account_id, image_id)
|
12
12
|
|
13
13
|
displays the image
|
14
14
|
|
@@ -27,14 +27,15 @@ end
|
|
27
27
|
|
28
28
|
api_instance = KoronaClient::ImagesApi.new
|
29
29
|
|
30
|
-
korona_account_id =
|
30
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
31
31
|
|
32
|
-
image_id =
|
32
|
+
image_id = 'image_id_example' # String | id of the related object (important: id should match the uuid-format)
|
33
33
|
|
34
34
|
|
35
35
|
begin
|
36
36
|
#displays the image
|
37
|
-
api_instance.get_image(korona_account_id, image_id)
|
37
|
+
result = api_instance.get_image(korona_account_id, image_id)
|
38
|
+
p result
|
38
39
|
rescue KoronaClient::ApiError => e
|
39
40
|
puts "Exception when calling ImagesApi->get_image: #{e}"
|
40
41
|
end
|
@@ -44,12 +45,12 @@ end
|
|
44
45
|
|
45
46
|
Name | Type | Description | Notes
|
46
47
|
------------- | ------------- | ------------- | -------------
|
47
|
-
**korona_account_id** | **String**| the account
|
48
|
-
**image_id** | **String**| id
|
48
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
49
|
+
**image_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
49
50
|
|
50
51
|
### Return type
|
51
52
|
|
52
|
-
|
53
|
+
**String**
|
53
54
|
|
54
55
|
### Authorization
|
55
56
|
|
data/docs/InfoTextsApi.md
CHANGED
@@ -4,14 +4,14 @@ All URIs are relative to *https://www.koronacloud.com/web/api/v3*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**get_info_text**](InfoTextsApi.md#get_info_text) | **GET** /accounts/{koronaAccountId}/infoTexts/{
|
7
|
+
[**get_info_text**](InfoTextsApi.md#get_info_text) | **GET** /accounts/{koronaAccountId}/infoTexts/{infoTextId} | returns the single info text
|
8
8
|
[**get_info_texts**](InfoTextsApi.md#get_info_texts) | **GET** /accounts/{koronaAccountId}/infoTexts | lists all info texts
|
9
9
|
|
10
10
|
|
11
11
|
# **get_info_text**
|
12
|
-
> InfoText get_info_text(korona_account_id,
|
12
|
+
> InfoText get_info_text(korona_account_id, info_text_id)
|
13
13
|
|
14
|
-
|
14
|
+
returns the single info text
|
15
15
|
|
16
16
|
|
17
17
|
|
@@ -28,14 +28,14 @@ end
|
|
28
28
|
|
29
29
|
api_instance = KoronaClient::InfoTextsApi.new
|
30
30
|
|
31
|
-
korona_account_id =
|
31
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
32
32
|
|
33
|
-
|
33
|
+
info_text_id = 'info_text_id_example' # String | id of the related object (important: id should match the uuid-format)
|
34
34
|
|
35
35
|
|
36
36
|
begin
|
37
|
-
#
|
38
|
-
result = api_instance.get_info_text(korona_account_id,
|
37
|
+
#returns the single info text
|
38
|
+
result = api_instance.get_info_text(korona_account_id, info_text_id)
|
39
39
|
p result
|
40
40
|
rescue KoronaClient::ApiError => e
|
41
41
|
puts "Exception when calling InfoTextsApi->get_info_text: #{e}"
|
@@ -46,8 +46,8 @@ end
|
|
46
46
|
|
47
47
|
Name | Type | Description | Notes
|
48
48
|
------------- | ------------- | ------------- | -------------
|
49
|
-
**korona_account_id** | **String**| the account
|
50
|
-
**
|
49
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
50
|
+
**info_text_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
51
51
|
|
52
52
|
### Return type
|
53
53
|
|
@@ -84,14 +84,15 @@ end
|
|
84
84
|
|
85
85
|
api_instance = KoronaClient::InfoTextsApi.new
|
86
86
|
|
87
|
-
korona_account_id =
|
87
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
88
88
|
|
89
89
|
opts = {
|
90
90
|
page: 56, # Integer | number of the page to fetch
|
91
91
|
size: 56, # Integer | amount of objects to return per page
|
92
|
-
sort:
|
92
|
+
sort: 'sort_example', # String | attribute to sort by (multiple separated by comma; max. 5)
|
93
93
|
revision: 789, # Integer | last revision number, objects with a greater revision than this will be returned
|
94
|
-
include_deleted: true # BOOLEAN | indicates deleted objects should be loaded or not (default: false)
|
94
|
+
include_deleted: true, # BOOLEAN | indicates deleted objects should be loaded or not (default: false)
|
95
|
+
number: 'number_example' # String | number of the related object
|
95
96
|
}
|
96
97
|
|
97
98
|
begin
|
@@ -107,12 +108,13 @@ end
|
|
107
108
|
|
108
109
|
Name | Type | Description | Notes
|
109
110
|
------------- | ------------- | ------------- | -------------
|
110
|
-
**korona_account_id** | **String**| the account
|
111
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
111
112
|
**page** | **Integer**| number of the page to fetch | [optional]
|
112
113
|
**size** | **Integer**| amount of objects to return per page | [optional]
|
113
114
|
**sort** | **String**| attribute to sort by (multiple separated by comma; max. 5) | [optional]
|
114
115
|
**revision** | **Integer**| last revision number, objects with a greater revision than this will be returned | [optional]
|
115
116
|
**include_deleted** | **BOOLEAN**| indicates deleted objects should be loaded or not (default: false) | [optional]
|
117
|
+
**number** | **String**| number of the related object | [optional]
|
116
118
|
|
117
119
|
### Return type
|
118
120
|
|
@@ -0,0 +1,894 @@
|
|
1
|
+
# KoronaClient::InventoriesApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://www.koronacloud.com/web/api/v3*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**add_inventories**](InventoriesApi.md#add_inventories) | **POST** /accounts/{koronaAccountId}/inventories | adds a batch of new inventories
|
8
|
+
[**add_inventory_inventory_list_items**](InventoriesApi.md#add_inventory_inventory_list_items) | **POST** /accounts/{koronaAccountId}/inventories/{inventoryId}/inventoryLists/{inventoryListId}/items | adds inventory list items
|
9
|
+
[**delete_inventory**](InventoriesApi.md#delete_inventory) | **DELETE** /accounts/{koronaAccountId}/inventories/{inventoryId} | deletes the single inventory (only allowed if hasBookedReceipts=false)
|
10
|
+
[**delete_inventory_inventory_list_item**](InventoriesApi.md#delete_inventory_inventory_list_item) | **DELETE** /accounts/{koronaAccountId}/inventories/{inventoryId}/inventoryLists/{inventoryListId}/items/{productId} | deletes the single inventory list item
|
11
|
+
[**get_inventories**](InventoriesApi.md#get_inventories) | **GET** /accounts/{koronaAccountId}/inventories | lists all inventories
|
12
|
+
[**get_inventory**](InventoriesApi.md#get_inventory) | **GET** /accounts/{koronaAccountId}/inventories/{inventoryId} | returns the single inventory
|
13
|
+
[**get_inventory_inventory_list**](InventoriesApi.md#get_inventory_inventory_list) | **GET** /accounts/{koronaAccountId}/inventories/{inventoryId}/inventoryLists/{inventoryListId} | returns the single inventory list
|
14
|
+
[**get_inventory_inventory_list_item**](InventoriesApi.md#get_inventory_inventory_list_item) | **GET** /accounts/{koronaAccountId}/inventories/{inventoryId}/inventoryLists/{inventoryListId}/items/{productId} | returns the single inventory list item
|
15
|
+
[**get_inventory_inventory_list_items**](InventoriesApi.md#get_inventory_inventory_list_items) | **GET** /accounts/{koronaAccountId}/inventories/{inventoryId}/inventoryLists/{inventoryListId}/items | lists all inventory list items
|
16
|
+
[**get_inventory_inventory_lists**](InventoriesApi.md#get_inventory_inventory_lists) | **GET** /accounts/{koronaAccountId}/inventories/{inventoryId}/inventoryLists | lists all inventory lists
|
17
|
+
[**update_inventory**](InventoriesApi.md#update_inventory) | **PATCH** /accounts/{koronaAccountId}/inventories/{inventoryId} | updates the single inventory
|
18
|
+
[**update_inventory_inventory_list**](InventoriesApi.md#update_inventory_inventory_list) | **PATCH** /accounts/{koronaAccountId}/inventories/{inventoryId}/inventoryLists/{inventoryListId} | updates the single inventory list
|
19
|
+
[**update_inventory_inventory_list_item**](InventoriesApi.md#update_inventory_inventory_list_item) | **PATCH** /accounts/{koronaAccountId}/inventories/{inventoryId}/inventoryLists/{inventoryListId}/items/{productId} | updates the single inventory list item
|
20
|
+
[**update_inventory_inventory_list_items**](InventoriesApi.md#update_inventory_inventory_list_items) | **PATCH** /accounts/{koronaAccountId}/inventories/{inventoryId}/inventoryLists/{inventoryListId}/items | updates inventory list items (property [product] required))
|
21
|
+
|
22
|
+
|
23
|
+
# **add_inventories**
|
24
|
+
> Array<AddOrUpdateResult> add_inventories(korona_account_id, body)
|
25
|
+
|
26
|
+
adds a batch of new inventories
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
### Example
|
31
|
+
```ruby
|
32
|
+
# load the gem
|
33
|
+
require 'korona_client'
|
34
|
+
# setup authorization
|
35
|
+
KoronaClient.configure do |config|
|
36
|
+
# Configure HTTP basic authorization: basicAuth
|
37
|
+
config.username = 'YOUR USERNAME'
|
38
|
+
config.password = 'YOUR PASSWORD'
|
39
|
+
end
|
40
|
+
|
41
|
+
api_instance = KoronaClient::InventoriesApi.new
|
42
|
+
|
43
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
44
|
+
|
45
|
+
body = [KoronaClient::Inventory.new] # Array<Inventory> | an array of new inventories
|
46
|
+
|
47
|
+
|
48
|
+
begin
|
49
|
+
#adds a batch of new inventories
|
50
|
+
result = api_instance.add_inventories(korona_account_id, body)
|
51
|
+
p result
|
52
|
+
rescue KoronaClient::ApiError => e
|
53
|
+
puts "Exception when calling InventoriesApi->add_inventories: #{e}"
|
54
|
+
end
|
55
|
+
```
|
56
|
+
|
57
|
+
### Parameters
|
58
|
+
|
59
|
+
Name | Type | Description | Notes
|
60
|
+
------------- | ------------- | ------------- | -------------
|
61
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
62
|
+
**body** | [**Array<Inventory>**](Inventory.md)| an array of new inventories |
|
63
|
+
|
64
|
+
### Return type
|
65
|
+
|
66
|
+
[**Array<AddOrUpdateResult>**](AddOrUpdateResult.md)
|
67
|
+
|
68
|
+
### Authorization
|
69
|
+
|
70
|
+
[basicAuth](../README.md#basicAuth)
|
71
|
+
|
72
|
+
### HTTP request headers
|
73
|
+
|
74
|
+
- **Content-Type**: application/json
|
75
|
+
- **Accept**: application/json
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
# **add_inventory_inventory_list_items**
|
80
|
+
> Array<AddOrUpdateResult> add_inventory_inventory_list_items(korona_account_id, inventory_id, inventory_list_id, body)
|
81
|
+
|
82
|
+
adds inventory list items
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
### Example
|
87
|
+
```ruby
|
88
|
+
# load the gem
|
89
|
+
require 'korona_client'
|
90
|
+
# setup authorization
|
91
|
+
KoronaClient.configure do |config|
|
92
|
+
# Configure HTTP basic authorization: basicAuth
|
93
|
+
config.username = 'YOUR USERNAME'
|
94
|
+
config.password = 'YOUR PASSWORD'
|
95
|
+
end
|
96
|
+
|
97
|
+
api_instance = KoronaClient::InventoriesApi.new
|
98
|
+
|
99
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
100
|
+
|
101
|
+
inventory_id = 'inventory_id_example' # String | id of the related object (important: id should match the uuid-format)
|
102
|
+
|
103
|
+
inventory_list_id = 'inventory_list_id_example' # String | id of the related object (important: id should match the uuid-format)
|
104
|
+
|
105
|
+
body = [KoronaClient::InventoryListItem.new] # Array<InventoryListItem> | data to update
|
106
|
+
|
107
|
+
|
108
|
+
begin
|
109
|
+
#adds inventory list items
|
110
|
+
result = api_instance.add_inventory_inventory_list_items(korona_account_id, inventory_id, inventory_list_id, body)
|
111
|
+
p result
|
112
|
+
rescue KoronaClient::ApiError => e
|
113
|
+
puts "Exception when calling InventoriesApi->add_inventory_inventory_list_items: #{e}"
|
114
|
+
end
|
115
|
+
```
|
116
|
+
|
117
|
+
### Parameters
|
118
|
+
|
119
|
+
Name | Type | Description | Notes
|
120
|
+
------------- | ------------- | ------------- | -------------
|
121
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
122
|
+
**inventory_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
123
|
+
**inventory_list_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
124
|
+
**body** | [**Array<InventoryListItem>**](InventoryListItem.md)| data to update |
|
125
|
+
|
126
|
+
### Return type
|
127
|
+
|
128
|
+
[**Array<AddOrUpdateResult>**](AddOrUpdateResult.md)
|
129
|
+
|
130
|
+
### Authorization
|
131
|
+
|
132
|
+
[basicAuth](../README.md#basicAuth)
|
133
|
+
|
134
|
+
### HTTP request headers
|
135
|
+
|
136
|
+
- **Content-Type**: application/json
|
137
|
+
- **Accept**: application/json
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
# **delete_inventory**
|
142
|
+
> delete_inventory(korona_account_id, inventory_id)
|
143
|
+
|
144
|
+
deletes the single inventory (only allowed if hasBookedReceipts=false)
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
### Example
|
149
|
+
```ruby
|
150
|
+
# load the gem
|
151
|
+
require 'korona_client'
|
152
|
+
# setup authorization
|
153
|
+
KoronaClient.configure do |config|
|
154
|
+
# Configure HTTP basic authorization: basicAuth
|
155
|
+
config.username = 'YOUR USERNAME'
|
156
|
+
config.password = 'YOUR PASSWORD'
|
157
|
+
end
|
158
|
+
|
159
|
+
api_instance = KoronaClient::InventoriesApi.new
|
160
|
+
|
161
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
162
|
+
|
163
|
+
inventory_id = 'inventory_id_example' # String | id of the related object (important: id should match the uuid-format)
|
164
|
+
|
165
|
+
|
166
|
+
begin
|
167
|
+
#deletes the single inventory (only allowed if hasBookedReceipts=false)
|
168
|
+
api_instance.delete_inventory(korona_account_id, inventory_id)
|
169
|
+
rescue KoronaClient::ApiError => e
|
170
|
+
puts "Exception when calling InventoriesApi->delete_inventory: #{e}"
|
171
|
+
end
|
172
|
+
```
|
173
|
+
|
174
|
+
### Parameters
|
175
|
+
|
176
|
+
Name | Type | Description | Notes
|
177
|
+
------------- | ------------- | ------------- | -------------
|
178
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
179
|
+
**inventory_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
180
|
+
|
181
|
+
### Return type
|
182
|
+
|
183
|
+
nil (empty response body)
|
184
|
+
|
185
|
+
### Authorization
|
186
|
+
|
187
|
+
[basicAuth](../README.md#basicAuth)
|
188
|
+
|
189
|
+
### HTTP request headers
|
190
|
+
|
191
|
+
- **Content-Type**: application/json
|
192
|
+
- **Accept**: application/json
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
# **delete_inventory_inventory_list_item**
|
197
|
+
> delete_inventory_inventory_list_item(korona_account_id, inventory_id, inventory_list_id, product_id)
|
198
|
+
|
199
|
+
deletes the single inventory list item
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
### Example
|
204
|
+
```ruby
|
205
|
+
# load the gem
|
206
|
+
require 'korona_client'
|
207
|
+
# setup authorization
|
208
|
+
KoronaClient.configure do |config|
|
209
|
+
# Configure HTTP basic authorization: basicAuth
|
210
|
+
config.username = 'YOUR USERNAME'
|
211
|
+
config.password = 'YOUR PASSWORD'
|
212
|
+
end
|
213
|
+
|
214
|
+
api_instance = KoronaClient::InventoriesApi.new
|
215
|
+
|
216
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
217
|
+
|
218
|
+
inventory_id = 'inventory_id_example' # String | id of the related object (important: id should match the uuid-format)
|
219
|
+
|
220
|
+
inventory_list_id = 'inventory_list_id_example' # String | id of the related object (important: id should match the uuid-format)
|
221
|
+
|
222
|
+
product_id = 'product_id_example' # String | id of the related object (important: id should match the uuid-format)
|
223
|
+
|
224
|
+
|
225
|
+
begin
|
226
|
+
#deletes the single inventory list item
|
227
|
+
api_instance.delete_inventory_inventory_list_item(korona_account_id, inventory_id, inventory_list_id, product_id)
|
228
|
+
rescue KoronaClient::ApiError => e
|
229
|
+
puts "Exception when calling InventoriesApi->delete_inventory_inventory_list_item: #{e}"
|
230
|
+
end
|
231
|
+
```
|
232
|
+
|
233
|
+
### Parameters
|
234
|
+
|
235
|
+
Name | Type | Description | Notes
|
236
|
+
------------- | ------------- | ------------- | -------------
|
237
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
238
|
+
**inventory_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
239
|
+
**inventory_list_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
240
|
+
**product_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
241
|
+
|
242
|
+
### Return type
|
243
|
+
|
244
|
+
nil (empty response body)
|
245
|
+
|
246
|
+
### Authorization
|
247
|
+
|
248
|
+
[basicAuth](../README.md#basicAuth)
|
249
|
+
|
250
|
+
### HTTP request headers
|
251
|
+
|
252
|
+
- **Content-Type**: application/json
|
253
|
+
- **Accept**: application/json
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
# **get_inventories**
|
258
|
+
> ResultListInventory get_inventories(korona_account_id, opts)
|
259
|
+
|
260
|
+
lists all inventories
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
### Example
|
265
|
+
```ruby
|
266
|
+
# load the gem
|
267
|
+
require 'korona_client'
|
268
|
+
# setup authorization
|
269
|
+
KoronaClient.configure do |config|
|
270
|
+
# Configure HTTP basic authorization: basicAuth
|
271
|
+
config.username = 'YOUR USERNAME'
|
272
|
+
config.password = 'YOUR PASSWORD'
|
273
|
+
end
|
274
|
+
|
275
|
+
api_instance = KoronaClient::InventoriesApi.new
|
276
|
+
|
277
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
278
|
+
|
279
|
+
opts = {
|
280
|
+
page: 56, # Integer | number of the page to fetch
|
281
|
+
size: 56, # Integer | amount of objects to return per page
|
282
|
+
sort: 'sort_example', # String | attribute to sort by (multiple separated by comma; max. 5)
|
283
|
+
revision: 789, # Integer | last revision number, objects with a greater revision than this will be returned
|
284
|
+
include_deleted: true, # BOOLEAN | indicates deleted objects should be loaded or not (default: false)
|
285
|
+
number: 'number_example' # String | number of the related object
|
286
|
+
}
|
287
|
+
|
288
|
+
begin
|
289
|
+
#lists all inventories
|
290
|
+
result = api_instance.get_inventories(korona_account_id, opts)
|
291
|
+
p result
|
292
|
+
rescue KoronaClient::ApiError => e
|
293
|
+
puts "Exception when calling InventoriesApi->get_inventories: #{e}"
|
294
|
+
end
|
295
|
+
```
|
296
|
+
|
297
|
+
### Parameters
|
298
|
+
|
299
|
+
Name | Type | Description | Notes
|
300
|
+
------------- | ------------- | ------------- | -------------
|
301
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
302
|
+
**page** | **Integer**| number of the page to fetch | [optional]
|
303
|
+
**size** | **Integer**| amount of objects to return per page | [optional]
|
304
|
+
**sort** | **String**| attribute to sort by (multiple separated by comma; max. 5) | [optional]
|
305
|
+
**revision** | **Integer**| last revision number, objects with a greater revision than this will be returned | [optional]
|
306
|
+
**include_deleted** | **BOOLEAN**| indicates deleted objects should be loaded or not (default: false) | [optional]
|
307
|
+
**number** | **String**| number of the related object | [optional]
|
308
|
+
|
309
|
+
### Return type
|
310
|
+
|
311
|
+
[**ResultListInventory**](ResultListInventory.md)
|
312
|
+
|
313
|
+
### Authorization
|
314
|
+
|
315
|
+
[basicAuth](../README.md#basicAuth)
|
316
|
+
|
317
|
+
### HTTP request headers
|
318
|
+
|
319
|
+
- **Content-Type**: application/json
|
320
|
+
- **Accept**: application/json
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
# **get_inventory**
|
325
|
+
> Inventory get_inventory(korona_account_id, inventory_id)
|
326
|
+
|
327
|
+
returns the single inventory
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
### Example
|
332
|
+
```ruby
|
333
|
+
# load the gem
|
334
|
+
require 'korona_client'
|
335
|
+
# setup authorization
|
336
|
+
KoronaClient.configure do |config|
|
337
|
+
# Configure HTTP basic authorization: basicAuth
|
338
|
+
config.username = 'YOUR USERNAME'
|
339
|
+
config.password = 'YOUR PASSWORD'
|
340
|
+
end
|
341
|
+
|
342
|
+
api_instance = KoronaClient::InventoriesApi.new
|
343
|
+
|
344
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
345
|
+
|
346
|
+
inventory_id = 'inventory_id_example' # String | id of the related object (important: id should match the uuid-format)
|
347
|
+
|
348
|
+
|
349
|
+
begin
|
350
|
+
#returns the single inventory
|
351
|
+
result = api_instance.get_inventory(korona_account_id, inventory_id)
|
352
|
+
p result
|
353
|
+
rescue KoronaClient::ApiError => e
|
354
|
+
puts "Exception when calling InventoriesApi->get_inventory: #{e}"
|
355
|
+
end
|
356
|
+
```
|
357
|
+
|
358
|
+
### Parameters
|
359
|
+
|
360
|
+
Name | Type | Description | Notes
|
361
|
+
------------- | ------------- | ------------- | -------------
|
362
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
363
|
+
**inventory_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
364
|
+
|
365
|
+
### Return type
|
366
|
+
|
367
|
+
[**Inventory**](Inventory.md)
|
368
|
+
|
369
|
+
### Authorization
|
370
|
+
|
371
|
+
[basicAuth](../README.md#basicAuth)
|
372
|
+
|
373
|
+
### HTTP request headers
|
374
|
+
|
375
|
+
- **Content-Type**: application/json
|
376
|
+
- **Accept**: application/json
|
377
|
+
|
378
|
+
|
379
|
+
|
380
|
+
# **get_inventory_inventory_list**
|
381
|
+
> InventoryList get_inventory_inventory_list(korona_account_id, inventory_id, inventory_list_id)
|
382
|
+
|
383
|
+
returns the single inventory list
|
384
|
+
|
385
|
+
|
386
|
+
|
387
|
+
### Example
|
388
|
+
```ruby
|
389
|
+
# load the gem
|
390
|
+
require 'korona_client'
|
391
|
+
# setup authorization
|
392
|
+
KoronaClient.configure do |config|
|
393
|
+
# Configure HTTP basic authorization: basicAuth
|
394
|
+
config.username = 'YOUR USERNAME'
|
395
|
+
config.password = 'YOUR PASSWORD'
|
396
|
+
end
|
397
|
+
|
398
|
+
api_instance = KoronaClient::InventoriesApi.new
|
399
|
+
|
400
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
401
|
+
|
402
|
+
inventory_id = 'inventory_id_example' # String | id of the related object (important: id should match the uuid-format)
|
403
|
+
|
404
|
+
inventory_list_id = 'inventory_list_id_example' # String | id of the related object (important: id should match the uuid-format)
|
405
|
+
|
406
|
+
|
407
|
+
begin
|
408
|
+
#returns the single inventory list
|
409
|
+
result = api_instance.get_inventory_inventory_list(korona_account_id, inventory_id, inventory_list_id)
|
410
|
+
p result
|
411
|
+
rescue KoronaClient::ApiError => e
|
412
|
+
puts "Exception when calling InventoriesApi->get_inventory_inventory_list: #{e}"
|
413
|
+
end
|
414
|
+
```
|
415
|
+
|
416
|
+
### Parameters
|
417
|
+
|
418
|
+
Name | Type | Description | Notes
|
419
|
+
------------- | ------------- | ------------- | -------------
|
420
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
421
|
+
**inventory_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
422
|
+
**inventory_list_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
423
|
+
|
424
|
+
### Return type
|
425
|
+
|
426
|
+
[**InventoryList**](InventoryList.md)
|
427
|
+
|
428
|
+
### Authorization
|
429
|
+
|
430
|
+
[basicAuth](../README.md#basicAuth)
|
431
|
+
|
432
|
+
### HTTP request headers
|
433
|
+
|
434
|
+
- **Content-Type**: application/json
|
435
|
+
- **Accept**: application/json
|
436
|
+
|
437
|
+
|
438
|
+
|
439
|
+
# **get_inventory_inventory_list_item**
|
440
|
+
> InventoryListItem get_inventory_inventory_list_item(korona_account_id, inventory_id, inventory_list_id, product_id)
|
441
|
+
|
442
|
+
returns the single inventory list item
|
443
|
+
|
444
|
+
|
445
|
+
|
446
|
+
### Example
|
447
|
+
```ruby
|
448
|
+
# load the gem
|
449
|
+
require 'korona_client'
|
450
|
+
# setup authorization
|
451
|
+
KoronaClient.configure do |config|
|
452
|
+
# Configure HTTP basic authorization: basicAuth
|
453
|
+
config.username = 'YOUR USERNAME'
|
454
|
+
config.password = 'YOUR PASSWORD'
|
455
|
+
end
|
456
|
+
|
457
|
+
api_instance = KoronaClient::InventoriesApi.new
|
458
|
+
|
459
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
460
|
+
|
461
|
+
inventory_id = 'inventory_id_example' # String | id of the related object (important: id should match the uuid-format)
|
462
|
+
|
463
|
+
inventory_list_id = 'inventory_list_id_example' # String | id of the related object (important: id should match the uuid-format)
|
464
|
+
|
465
|
+
product_id = 'product_id_example' # String | id of the related object (important: id should match the uuid-format)
|
466
|
+
|
467
|
+
|
468
|
+
begin
|
469
|
+
#returns the single inventory list item
|
470
|
+
result = api_instance.get_inventory_inventory_list_item(korona_account_id, inventory_id, inventory_list_id, product_id)
|
471
|
+
p result
|
472
|
+
rescue KoronaClient::ApiError => e
|
473
|
+
puts "Exception when calling InventoriesApi->get_inventory_inventory_list_item: #{e}"
|
474
|
+
end
|
475
|
+
```
|
476
|
+
|
477
|
+
### Parameters
|
478
|
+
|
479
|
+
Name | Type | Description | Notes
|
480
|
+
------------- | ------------- | ------------- | -------------
|
481
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
482
|
+
**inventory_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
483
|
+
**inventory_list_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
484
|
+
**product_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
485
|
+
|
486
|
+
### Return type
|
487
|
+
|
488
|
+
[**InventoryListItem**](InventoryListItem.md)
|
489
|
+
|
490
|
+
### Authorization
|
491
|
+
|
492
|
+
[basicAuth](../README.md#basicAuth)
|
493
|
+
|
494
|
+
### HTTP request headers
|
495
|
+
|
496
|
+
- **Content-Type**: application/json
|
497
|
+
- **Accept**: application/json
|
498
|
+
|
499
|
+
|
500
|
+
|
501
|
+
# **get_inventory_inventory_list_items**
|
502
|
+
> ResultListInventoryListItem get_inventory_inventory_list_items(korona_account_id, inventory_id, inventory_list_id, opts)
|
503
|
+
|
504
|
+
lists all inventory list items
|
505
|
+
|
506
|
+
|
507
|
+
|
508
|
+
### Example
|
509
|
+
```ruby
|
510
|
+
# load the gem
|
511
|
+
require 'korona_client'
|
512
|
+
# setup authorization
|
513
|
+
KoronaClient.configure do |config|
|
514
|
+
# Configure HTTP basic authorization: basicAuth
|
515
|
+
config.username = 'YOUR USERNAME'
|
516
|
+
config.password = 'YOUR PASSWORD'
|
517
|
+
end
|
518
|
+
|
519
|
+
api_instance = KoronaClient::InventoriesApi.new
|
520
|
+
|
521
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
522
|
+
|
523
|
+
inventory_id = 'inventory_id_example' # String | id of the related object (important: id should match the uuid-format)
|
524
|
+
|
525
|
+
inventory_list_id = 'inventory_list_id_example' # String | id of the related object (important: id should match the uuid-format)
|
526
|
+
|
527
|
+
opts = {
|
528
|
+
page: 56, # Integer | number of the page to fetch
|
529
|
+
size: 56, # Integer | amount of objects to return per page
|
530
|
+
sort: 'sort_example', # String | attribute to sort by (multiple separated by comma; max. 5)
|
531
|
+
revision: 789 # Integer | last revision number, objects with a greater revision than this will be returned
|
532
|
+
}
|
533
|
+
|
534
|
+
begin
|
535
|
+
#lists all inventory list items
|
536
|
+
result = api_instance.get_inventory_inventory_list_items(korona_account_id, inventory_id, inventory_list_id, opts)
|
537
|
+
p result
|
538
|
+
rescue KoronaClient::ApiError => e
|
539
|
+
puts "Exception when calling InventoriesApi->get_inventory_inventory_list_items: #{e}"
|
540
|
+
end
|
541
|
+
```
|
542
|
+
|
543
|
+
### Parameters
|
544
|
+
|
545
|
+
Name | Type | Description | Notes
|
546
|
+
------------- | ------------- | ------------- | -------------
|
547
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
548
|
+
**inventory_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
549
|
+
**inventory_list_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
550
|
+
**page** | **Integer**| number of the page to fetch | [optional]
|
551
|
+
**size** | **Integer**| amount of objects to return per page | [optional]
|
552
|
+
**sort** | **String**| attribute to sort by (multiple separated by comma; max. 5) | [optional]
|
553
|
+
**revision** | **Integer**| last revision number, objects with a greater revision than this will be returned | [optional]
|
554
|
+
|
555
|
+
### Return type
|
556
|
+
|
557
|
+
[**ResultListInventoryListItem**](ResultListInventoryListItem.md)
|
558
|
+
|
559
|
+
### Authorization
|
560
|
+
|
561
|
+
[basicAuth](../README.md#basicAuth)
|
562
|
+
|
563
|
+
### HTTP request headers
|
564
|
+
|
565
|
+
- **Content-Type**: application/json
|
566
|
+
- **Accept**: application/json
|
567
|
+
|
568
|
+
|
569
|
+
|
570
|
+
# **get_inventory_inventory_lists**
|
571
|
+
> ResultListInventoryList get_inventory_inventory_lists(korona_account_id, inventory_id, opts)
|
572
|
+
|
573
|
+
lists all inventory lists
|
574
|
+
|
575
|
+
|
576
|
+
|
577
|
+
### Example
|
578
|
+
```ruby
|
579
|
+
# load the gem
|
580
|
+
require 'korona_client'
|
581
|
+
# setup authorization
|
582
|
+
KoronaClient.configure do |config|
|
583
|
+
# Configure HTTP basic authorization: basicAuth
|
584
|
+
config.username = 'YOUR USERNAME'
|
585
|
+
config.password = 'YOUR PASSWORD'
|
586
|
+
end
|
587
|
+
|
588
|
+
api_instance = KoronaClient::InventoriesApi.new
|
589
|
+
|
590
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
591
|
+
|
592
|
+
inventory_id = 'inventory_id_example' # String | id of the related object (important: id should match the uuid-format)
|
593
|
+
|
594
|
+
opts = {
|
595
|
+
page: 56, # Integer | number of the page to fetch
|
596
|
+
size: 56, # Integer | amount of objects to return per page
|
597
|
+
sort: 'sort_example', # String | attribute to sort by (multiple separated by comma; max. 5)
|
598
|
+
revision: 789, # Integer | last revision number, objects with a greater revision than this will be returned
|
599
|
+
include_deleted: true, # BOOLEAN | indicates deleted objects should be loaded or not (default: false)
|
600
|
+
min_create_time: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | min (inclusive) create time of the receipt (ISO 8601; date, time and timezone)
|
601
|
+
max_create_time: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | max (inclusive) create time of the receipt (ISO 8601; date, time and timezone)
|
602
|
+
min_booking_time: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | min (inclusive) booking time of the receipt (ISO 8601; date, time and timezone)
|
603
|
+
max_booking_time: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | max (inclusive) booking time of the receipt (ISO 8601; date, time and timezone)
|
604
|
+
booking_status: 'booking_status_example', # String | booking status (possible values: BOOKED, IN_PROGRESS)
|
605
|
+
number: 'number_example' # String | number of the related object
|
606
|
+
}
|
607
|
+
|
608
|
+
begin
|
609
|
+
#lists all inventory lists
|
610
|
+
result = api_instance.get_inventory_inventory_lists(korona_account_id, inventory_id, opts)
|
611
|
+
p result
|
612
|
+
rescue KoronaClient::ApiError => e
|
613
|
+
puts "Exception when calling InventoriesApi->get_inventory_inventory_lists: #{e}"
|
614
|
+
end
|
615
|
+
```
|
616
|
+
|
617
|
+
### Parameters
|
618
|
+
|
619
|
+
Name | Type | Description | Notes
|
620
|
+
------------- | ------------- | ------------- | -------------
|
621
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
622
|
+
**inventory_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
623
|
+
**page** | **Integer**| number of the page to fetch | [optional]
|
624
|
+
**size** | **Integer**| amount of objects to return per page | [optional]
|
625
|
+
**sort** | **String**| attribute to sort by (multiple separated by comma; max. 5) | [optional]
|
626
|
+
**revision** | **Integer**| last revision number, objects with a greater revision than this will be returned | [optional]
|
627
|
+
**include_deleted** | **BOOLEAN**| indicates deleted objects should be loaded or not (default: false) | [optional]
|
628
|
+
**min_create_time** | **DateTime**| min (inclusive) create time of the receipt (ISO 8601; date, time and timezone) | [optional]
|
629
|
+
**max_create_time** | **DateTime**| max (inclusive) create time of the receipt (ISO 8601; date, time and timezone) | [optional]
|
630
|
+
**min_booking_time** | **DateTime**| min (inclusive) booking time of the receipt (ISO 8601; date, time and timezone) | [optional]
|
631
|
+
**max_booking_time** | **DateTime**| max (inclusive) booking time of the receipt (ISO 8601; date, time and timezone) | [optional]
|
632
|
+
**booking_status** | **String**| booking status (possible values: BOOKED, IN_PROGRESS) | [optional]
|
633
|
+
**number** | **String**| number of the related object | [optional]
|
634
|
+
|
635
|
+
### Return type
|
636
|
+
|
637
|
+
[**ResultListInventoryList**](ResultListInventoryList.md)
|
638
|
+
|
639
|
+
### Authorization
|
640
|
+
|
641
|
+
[basicAuth](../README.md#basicAuth)
|
642
|
+
|
643
|
+
### HTTP request headers
|
644
|
+
|
645
|
+
- **Content-Type**: application/json
|
646
|
+
- **Accept**: application/json
|
647
|
+
|
648
|
+
|
649
|
+
|
650
|
+
# **update_inventory**
|
651
|
+
> update_inventory(korona_account_id, inventory_id, body)
|
652
|
+
|
653
|
+
updates the single inventory
|
654
|
+
|
655
|
+
|
656
|
+
|
657
|
+
### Example
|
658
|
+
```ruby
|
659
|
+
# load the gem
|
660
|
+
require 'korona_client'
|
661
|
+
# setup authorization
|
662
|
+
KoronaClient.configure do |config|
|
663
|
+
# Configure HTTP basic authorization: basicAuth
|
664
|
+
config.username = 'YOUR USERNAME'
|
665
|
+
config.password = 'YOUR PASSWORD'
|
666
|
+
end
|
667
|
+
|
668
|
+
api_instance = KoronaClient::InventoriesApi.new
|
669
|
+
|
670
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
671
|
+
|
672
|
+
inventory_id = 'inventory_id_example' # String | id of the related object (important: id should match the uuid-format)
|
673
|
+
|
674
|
+
body = KoronaClient::Inventory.new # Inventory | the properties to update of the inventory
|
675
|
+
|
676
|
+
|
677
|
+
begin
|
678
|
+
#updates the single inventory
|
679
|
+
api_instance.update_inventory(korona_account_id, inventory_id, body)
|
680
|
+
rescue KoronaClient::ApiError => e
|
681
|
+
puts "Exception when calling InventoriesApi->update_inventory: #{e}"
|
682
|
+
end
|
683
|
+
```
|
684
|
+
|
685
|
+
### Parameters
|
686
|
+
|
687
|
+
Name | Type | Description | Notes
|
688
|
+
------------- | ------------- | ------------- | -------------
|
689
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
690
|
+
**inventory_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
691
|
+
**body** | [**Inventory**](Inventory.md)| the properties to update of the inventory |
|
692
|
+
|
693
|
+
### Return type
|
694
|
+
|
695
|
+
nil (empty response body)
|
696
|
+
|
697
|
+
### Authorization
|
698
|
+
|
699
|
+
[basicAuth](../README.md#basicAuth)
|
700
|
+
|
701
|
+
### HTTP request headers
|
702
|
+
|
703
|
+
- **Content-Type**: application/json
|
704
|
+
- **Accept**: application/json
|
705
|
+
|
706
|
+
|
707
|
+
|
708
|
+
# **update_inventory_inventory_list**
|
709
|
+
> update_inventory_inventory_list(korona_account_id, inventory_id, inventory_list_id, body)
|
710
|
+
|
711
|
+
updates the single inventory list
|
712
|
+
|
713
|
+
|
714
|
+
|
715
|
+
### Example
|
716
|
+
```ruby
|
717
|
+
# load the gem
|
718
|
+
require 'korona_client'
|
719
|
+
# setup authorization
|
720
|
+
KoronaClient.configure do |config|
|
721
|
+
# Configure HTTP basic authorization: basicAuth
|
722
|
+
config.username = 'YOUR USERNAME'
|
723
|
+
config.password = 'YOUR PASSWORD'
|
724
|
+
end
|
725
|
+
|
726
|
+
api_instance = KoronaClient::InventoriesApi.new
|
727
|
+
|
728
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
729
|
+
|
730
|
+
inventory_id = 'inventory_id_example' # String | id of the related object (important: id should match the uuid-format)
|
731
|
+
|
732
|
+
inventory_list_id = 'inventory_list_id_example' # String | id of the related object (important: id should match the uuid-format)
|
733
|
+
|
734
|
+
body = KoronaClient::InventoryList.new # InventoryList | data to update
|
735
|
+
|
736
|
+
|
737
|
+
begin
|
738
|
+
#updates the single inventory list
|
739
|
+
api_instance.update_inventory_inventory_list(korona_account_id, inventory_id, inventory_list_id, body)
|
740
|
+
rescue KoronaClient::ApiError => e
|
741
|
+
puts "Exception when calling InventoriesApi->update_inventory_inventory_list: #{e}"
|
742
|
+
end
|
743
|
+
```
|
744
|
+
|
745
|
+
### Parameters
|
746
|
+
|
747
|
+
Name | Type | Description | Notes
|
748
|
+
------------- | ------------- | ------------- | -------------
|
749
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
750
|
+
**inventory_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
751
|
+
**inventory_list_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
752
|
+
**body** | [**InventoryList**](InventoryList.md)| data to update |
|
753
|
+
|
754
|
+
### Return type
|
755
|
+
|
756
|
+
nil (empty response body)
|
757
|
+
|
758
|
+
### Authorization
|
759
|
+
|
760
|
+
[basicAuth](../README.md#basicAuth)
|
761
|
+
|
762
|
+
### HTTP request headers
|
763
|
+
|
764
|
+
- **Content-Type**: application/json
|
765
|
+
- **Accept**: application/json
|
766
|
+
|
767
|
+
|
768
|
+
|
769
|
+
# **update_inventory_inventory_list_item**
|
770
|
+
> update_inventory_inventory_list_item(korona_account_id, inventory_id, inventory_list_id, product_id, body)
|
771
|
+
|
772
|
+
updates the single inventory list item
|
773
|
+
|
774
|
+
|
775
|
+
|
776
|
+
### Example
|
777
|
+
```ruby
|
778
|
+
# load the gem
|
779
|
+
require 'korona_client'
|
780
|
+
# setup authorization
|
781
|
+
KoronaClient.configure do |config|
|
782
|
+
# Configure HTTP basic authorization: basicAuth
|
783
|
+
config.username = 'YOUR USERNAME'
|
784
|
+
config.password = 'YOUR PASSWORD'
|
785
|
+
end
|
786
|
+
|
787
|
+
api_instance = KoronaClient::InventoriesApi.new
|
788
|
+
|
789
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
790
|
+
|
791
|
+
inventory_id = 'inventory_id_example' # String | id of the related object (important: id should match the uuid-format)
|
792
|
+
|
793
|
+
inventory_list_id = 'inventory_list_id_example' # String | id of the related object (important: id should match the uuid-format)
|
794
|
+
|
795
|
+
product_id = 'product_id_example' # String | id of the related object (important: id should match the uuid-format)
|
796
|
+
|
797
|
+
body = KoronaClient::InventoryListItem.new # InventoryListItem | data to update
|
798
|
+
|
799
|
+
|
800
|
+
begin
|
801
|
+
#updates the single inventory list item
|
802
|
+
api_instance.update_inventory_inventory_list_item(korona_account_id, inventory_id, inventory_list_id, product_id, body)
|
803
|
+
rescue KoronaClient::ApiError => e
|
804
|
+
puts "Exception when calling InventoriesApi->update_inventory_inventory_list_item: #{e}"
|
805
|
+
end
|
806
|
+
```
|
807
|
+
|
808
|
+
### Parameters
|
809
|
+
|
810
|
+
Name | Type | Description | Notes
|
811
|
+
------------- | ------------- | ------------- | -------------
|
812
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
813
|
+
**inventory_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
814
|
+
**inventory_list_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
815
|
+
**product_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
816
|
+
**body** | [**InventoryListItem**](InventoryListItem.md)| data to update |
|
817
|
+
|
818
|
+
### Return type
|
819
|
+
|
820
|
+
nil (empty response body)
|
821
|
+
|
822
|
+
### Authorization
|
823
|
+
|
824
|
+
[basicAuth](../README.md#basicAuth)
|
825
|
+
|
826
|
+
### HTTP request headers
|
827
|
+
|
828
|
+
- **Content-Type**: application/json
|
829
|
+
- **Accept**: application/json
|
830
|
+
|
831
|
+
|
832
|
+
|
833
|
+
# **update_inventory_inventory_list_items**
|
834
|
+
> Array<AddOrUpdateResult> update_inventory_inventory_list_items(korona_account_id, inventory_id, inventory_list_id, body)
|
835
|
+
|
836
|
+
updates inventory list items (property [product] required))
|
837
|
+
|
838
|
+
|
839
|
+
|
840
|
+
### Example
|
841
|
+
```ruby
|
842
|
+
# load the gem
|
843
|
+
require 'korona_client'
|
844
|
+
# setup authorization
|
845
|
+
KoronaClient.configure do |config|
|
846
|
+
# Configure HTTP basic authorization: basicAuth
|
847
|
+
config.username = 'YOUR USERNAME'
|
848
|
+
config.password = 'YOUR PASSWORD'
|
849
|
+
end
|
850
|
+
|
851
|
+
api_instance = KoronaClient::InventoriesApi.new
|
852
|
+
|
853
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
854
|
+
|
855
|
+
inventory_id = 'inventory_id_example' # String | id of the related object (important: id should match the uuid-format)
|
856
|
+
|
857
|
+
inventory_list_id = 'inventory_list_id_example' # String | id of the related object (important: id should match the uuid-format)
|
858
|
+
|
859
|
+
body = [KoronaClient::InventoryListItem.new] # Array<InventoryListItem> | an array of inventory list items to update
|
860
|
+
|
861
|
+
|
862
|
+
begin
|
863
|
+
#updates inventory list items (property [product] required))
|
864
|
+
result = api_instance.update_inventory_inventory_list_items(korona_account_id, inventory_id, inventory_list_id, body)
|
865
|
+
p result
|
866
|
+
rescue KoronaClient::ApiError => e
|
867
|
+
puts "Exception when calling InventoriesApi->update_inventory_inventory_list_items: #{e}"
|
868
|
+
end
|
869
|
+
```
|
870
|
+
|
871
|
+
### Parameters
|
872
|
+
|
873
|
+
Name | Type | Description | Notes
|
874
|
+
------------- | ------------- | ------------- | -------------
|
875
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
876
|
+
**inventory_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
877
|
+
**inventory_list_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
878
|
+
**body** | [**Array<InventoryListItem>**](InventoryListItem.md)| an array of inventory list items to update |
|
879
|
+
|
880
|
+
### Return type
|
881
|
+
|
882
|
+
[**Array<AddOrUpdateResult>**](AddOrUpdateResult.md)
|
883
|
+
|
884
|
+
### Authorization
|
885
|
+
|
886
|
+
[basicAuth](../README.md#basicAuth)
|
887
|
+
|
888
|
+
### HTTP request headers
|
889
|
+
|
890
|
+
- **Content-Type**: application/json
|
891
|
+
- **Accept**: application/json
|
892
|
+
|
893
|
+
|
894
|
+
|