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/StockReceipt.md
CHANGED
@@ -23,6 +23,7 @@ Name | Type | Description | Notes
|
|
23
23
|
**product_stock_order** | [**ModelReference**](ModelReference.md) | | [optional]
|
24
24
|
**source_organizational_unit** | [**ModelReference**](ModelReference.md) | | [optional]
|
25
25
|
**supplier** | [**ModelReference**](ModelReference.md) | | [optional]
|
26
|
+
**comment** | **String** | | [optional]
|
26
27
|
**status** | **String** | | [optional]
|
27
28
|
|
28
29
|
|
@@ -0,0 +1,687 @@
|
|
1
|
+
# KoronaClient::StockReceiptsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://www.koronacloud.com/web/api/v3*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**add_stock_receipt_items**](StockReceiptsApi.md#add_stock_receipt_items) | **POST** /accounts/{koronaAccountId}/stockReceipts/{stockReceiptId}/items | adds stock-receipt items
|
8
|
+
[**add_stock_receipts**](StockReceiptsApi.md#add_stock_receipts) | **POST** /accounts/{koronaAccountId}/stockReceipts | adds stock-receipts
|
9
|
+
[**book_stock_receipt**](StockReceiptsApi.md#book_stock_receipt) | **PATCH** /accounts/{koronaAccountId}/stockReceipts/{stockReceiptId}/book | book the single stock-receipt
|
10
|
+
[**delete_stock_receipt_item**](StockReceiptsApi.md#delete_stock_receipt_item) | **DELETE** /accounts/{koronaAccountId}/stockReceipts/{stockReceiptId}/items/{productId} | deletes the single stock-receipt item
|
11
|
+
[**get_stock_receipt**](StockReceiptsApi.md#get_stock_receipt) | **GET** /accounts/{koronaAccountId}/stockReceipts/{stockReceiptId} | returns the single stock-receipt
|
12
|
+
[**get_stock_receipt_item**](StockReceiptsApi.md#get_stock_receipt_item) | **GET** /accounts/{koronaAccountId}/stockReceipts/{stockReceiptId}/items/{productId} | returns the single stock-receipt item
|
13
|
+
[**get_stock_receipt_items**](StockReceiptsApi.md#get_stock_receipt_items) | **GET** /accounts/{koronaAccountId}/stockReceipts/{stockReceiptId}/items | lists all stock-receipt items
|
14
|
+
[**get_stock_receipts**](StockReceiptsApi.md#get_stock_receipts) | **GET** /accounts/{koronaAccountId}/stockReceipts | lists all stock-receipts
|
15
|
+
[**update_stock_receipt**](StockReceiptsApi.md#update_stock_receipt) | **PATCH** /accounts/{koronaAccountId}/stockReceipts/{stockReceiptId} | updates the single stock-receipt
|
16
|
+
[**update_stock_receipt_item**](StockReceiptsApi.md#update_stock_receipt_item) | **PATCH** /accounts/{koronaAccountId}/stockReceipts/{stockReceiptId}/items/{productId} | updates the single stock-receipt item
|
17
|
+
[**update_stock_receipt_items**](StockReceiptsApi.md#update_stock_receipt_items) | **PATCH** /accounts/{koronaAccountId}/stockReceipts/{stockReceiptId}/items | updates stock-receipt items
|
18
|
+
|
19
|
+
|
20
|
+
# **add_stock_receipt_items**
|
21
|
+
> Array<AddOrUpdateResult> add_stock_receipt_items(korona_account_id, stock_receipt_id, body)
|
22
|
+
|
23
|
+
adds stock-receipt items
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
### Example
|
28
|
+
```ruby
|
29
|
+
# load the gem
|
30
|
+
require 'korona_client'
|
31
|
+
# setup authorization
|
32
|
+
KoronaClient.configure do |config|
|
33
|
+
# Configure HTTP basic authorization: basicAuth
|
34
|
+
config.username = 'YOUR USERNAME'
|
35
|
+
config.password = 'YOUR PASSWORD'
|
36
|
+
end
|
37
|
+
|
38
|
+
api_instance = KoronaClient::StockReceiptsApi.new
|
39
|
+
|
40
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
41
|
+
|
42
|
+
stock_receipt_id = 'stock_receipt_id_example' # String | id of the related object (important: id should match the uuid-format)
|
43
|
+
|
44
|
+
body = [KoronaClient::StockReceiptItem.new] # Array<StockReceiptItem> | data to add
|
45
|
+
|
46
|
+
|
47
|
+
begin
|
48
|
+
#adds stock-receipt items
|
49
|
+
result = api_instance.add_stock_receipt_items(korona_account_id, stock_receipt_id, body)
|
50
|
+
p result
|
51
|
+
rescue KoronaClient::ApiError => e
|
52
|
+
puts "Exception when calling StockReceiptsApi->add_stock_receipt_items: #{e}"
|
53
|
+
end
|
54
|
+
```
|
55
|
+
|
56
|
+
### Parameters
|
57
|
+
|
58
|
+
Name | Type | Description | Notes
|
59
|
+
------------- | ------------- | ------------- | -------------
|
60
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
61
|
+
**stock_receipt_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
62
|
+
**body** | [**Array<StockReceiptItem>**](StockReceiptItem.md)| data to add |
|
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_stock_receipts**
|
80
|
+
> Array<AddOrUpdateResult> add_stock_receipts(korona_account_id, body)
|
81
|
+
|
82
|
+
adds stock-receipts
|
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::StockReceiptsApi.new
|
98
|
+
|
99
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
100
|
+
|
101
|
+
body = [KoronaClient::StockReceipt.new] # Array<StockReceipt> | data to add
|
102
|
+
|
103
|
+
|
104
|
+
begin
|
105
|
+
#adds stock-receipts
|
106
|
+
result = api_instance.add_stock_receipts(korona_account_id, body)
|
107
|
+
p result
|
108
|
+
rescue KoronaClient::ApiError => e
|
109
|
+
puts "Exception when calling StockReceiptsApi->add_stock_receipts: #{e}"
|
110
|
+
end
|
111
|
+
```
|
112
|
+
|
113
|
+
### Parameters
|
114
|
+
|
115
|
+
Name | Type | Description | Notes
|
116
|
+
------------- | ------------- | ------------- | -------------
|
117
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
118
|
+
**body** | [**Array<StockReceipt>**](StockReceipt.md)| data to add |
|
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
|
+
# **book_stock_receipt**
|
136
|
+
> book_stock_receipt(korona_account_id, stock_receipt_id)
|
137
|
+
|
138
|
+
book the single stock-receipt
|
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::StockReceiptsApi.new
|
154
|
+
|
155
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
156
|
+
|
157
|
+
stock_receipt_id = 'stock_receipt_id_example' # String | id of the related object (important: id should match the uuid-format)
|
158
|
+
|
159
|
+
|
160
|
+
begin
|
161
|
+
#book the single stock-receipt
|
162
|
+
api_instance.book_stock_receipt(korona_account_id, stock_receipt_id)
|
163
|
+
rescue KoronaClient::ApiError => e
|
164
|
+
puts "Exception when calling StockReceiptsApi->book_stock_receipt: #{e}"
|
165
|
+
end
|
166
|
+
```
|
167
|
+
|
168
|
+
### Parameters
|
169
|
+
|
170
|
+
Name | Type | Description | Notes
|
171
|
+
------------- | ------------- | ------------- | -------------
|
172
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
173
|
+
**stock_receipt_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
174
|
+
|
175
|
+
### Return type
|
176
|
+
|
177
|
+
nil (empty response body)
|
178
|
+
|
179
|
+
### Authorization
|
180
|
+
|
181
|
+
[basicAuth](../README.md#basicAuth)
|
182
|
+
|
183
|
+
### HTTP request headers
|
184
|
+
|
185
|
+
- **Content-Type**: application/json
|
186
|
+
- **Accept**: application/json
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
# **delete_stock_receipt_item**
|
191
|
+
> delete_stock_receipt_item(korona_account_id, stock_receipt_id, product_id)
|
192
|
+
|
193
|
+
deletes the single stock-receipt item
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
### Example
|
198
|
+
```ruby
|
199
|
+
# load the gem
|
200
|
+
require 'korona_client'
|
201
|
+
# setup authorization
|
202
|
+
KoronaClient.configure do |config|
|
203
|
+
# Configure HTTP basic authorization: basicAuth
|
204
|
+
config.username = 'YOUR USERNAME'
|
205
|
+
config.password = 'YOUR PASSWORD'
|
206
|
+
end
|
207
|
+
|
208
|
+
api_instance = KoronaClient::StockReceiptsApi.new
|
209
|
+
|
210
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
211
|
+
|
212
|
+
stock_receipt_id = 'stock_receipt_id_example' # String | id of the related object (important: id should match the uuid-format)
|
213
|
+
|
214
|
+
product_id = 'product_id_example' # String | id of the related object (important: id should match the uuid-format)
|
215
|
+
|
216
|
+
|
217
|
+
begin
|
218
|
+
#deletes the single stock-receipt item
|
219
|
+
api_instance.delete_stock_receipt_item(korona_account_id, stock_receipt_id, product_id)
|
220
|
+
rescue KoronaClient::ApiError => e
|
221
|
+
puts "Exception when calling StockReceiptsApi->delete_stock_receipt_item: #{e}"
|
222
|
+
end
|
223
|
+
```
|
224
|
+
|
225
|
+
### Parameters
|
226
|
+
|
227
|
+
Name | Type | Description | Notes
|
228
|
+
------------- | ------------- | ------------- | -------------
|
229
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
230
|
+
**stock_receipt_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
231
|
+
**product_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
232
|
+
|
233
|
+
### Return type
|
234
|
+
|
235
|
+
nil (empty response body)
|
236
|
+
|
237
|
+
### Authorization
|
238
|
+
|
239
|
+
[basicAuth](../README.md#basicAuth)
|
240
|
+
|
241
|
+
### HTTP request headers
|
242
|
+
|
243
|
+
- **Content-Type**: application/json
|
244
|
+
- **Accept**: application/json
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
# **get_stock_receipt**
|
249
|
+
> StockReceipt get_stock_receipt(korona_account_id, stock_receipt_id)
|
250
|
+
|
251
|
+
returns the single stock-receipt
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
### Example
|
256
|
+
```ruby
|
257
|
+
# load the gem
|
258
|
+
require 'korona_client'
|
259
|
+
# setup authorization
|
260
|
+
KoronaClient.configure do |config|
|
261
|
+
# Configure HTTP basic authorization: basicAuth
|
262
|
+
config.username = 'YOUR USERNAME'
|
263
|
+
config.password = 'YOUR PASSWORD'
|
264
|
+
end
|
265
|
+
|
266
|
+
api_instance = KoronaClient::StockReceiptsApi.new
|
267
|
+
|
268
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
269
|
+
|
270
|
+
stock_receipt_id = 'stock_receipt_id_example' # String | id of the related object (important: id should match the uuid-format)
|
271
|
+
|
272
|
+
|
273
|
+
begin
|
274
|
+
#returns the single stock-receipt
|
275
|
+
result = api_instance.get_stock_receipt(korona_account_id, stock_receipt_id)
|
276
|
+
p result
|
277
|
+
rescue KoronaClient::ApiError => e
|
278
|
+
puts "Exception when calling StockReceiptsApi->get_stock_receipt: #{e}"
|
279
|
+
end
|
280
|
+
```
|
281
|
+
|
282
|
+
### Parameters
|
283
|
+
|
284
|
+
Name | Type | Description | Notes
|
285
|
+
------------- | ------------- | ------------- | -------------
|
286
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
287
|
+
**stock_receipt_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
288
|
+
|
289
|
+
### Return type
|
290
|
+
|
291
|
+
[**StockReceipt**](StockReceipt.md)
|
292
|
+
|
293
|
+
### Authorization
|
294
|
+
|
295
|
+
[basicAuth](../README.md#basicAuth)
|
296
|
+
|
297
|
+
### HTTP request headers
|
298
|
+
|
299
|
+
- **Content-Type**: application/json
|
300
|
+
- **Accept**: application/json
|
301
|
+
|
302
|
+
|
303
|
+
|
304
|
+
# **get_stock_receipt_item**
|
305
|
+
> StockReceiptItem get_stock_receipt_item(korona_account_id, stock_receipt_id, product_id)
|
306
|
+
|
307
|
+
returns the single stock-receipt item
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
### Example
|
312
|
+
```ruby
|
313
|
+
# load the gem
|
314
|
+
require 'korona_client'
|
315
|
+
# setup authorization
|
316
|
+
KoronaClient.configure do |config|
|
317
|
+
# Configure HTTP basic authorization: basicAuth
|
318
|
+
config.username = 'YOUR USERNAME'
|
319
|
+
config.password = 'YOUR PASSWORD'
|
320
|
+
end
|
321
|
+
|
322
|
+
api_instance = KoronaClient::StockReceiptsApi.new
|
323
|
+
|
324
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
325
|
+
|
326
|
+
stock_receipt_id = 'stock_receipt_id_example' # String | id of the related object (important: id should match the uuid-format)
|
327
|
+
|
328
|
+
product_id = 'product_id_example' # String | id of the related object (important: id should match the uuid-format)
|
329
|
+
|
330
|
+
|
331
|
+
begin
|
332
|
+
#returns the single stock-receipt item
|
333
|
+
result = api_instance.get_stock_receipt_item(korona_account_id, stock_receipt_id, product_id)
|
334
|
+
p result
|
335
|
+
rescue KoronaClient::ApiError => e
|
336
|
+
puts "Exception when calling StockReceiptsApi->get_stock_receipt_item: #{e}"
|
337
|
+
end
|
338
|
+
```
|
339
|
+
|
340
|
+
### Parameters
|
341
|
+
|
342
|
+
Name | Type | Description | Notes
|
343
|
+
------------- | ------------- | ------------- | -------------
|
344
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
345
|
+
**stock_receipt_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
346
|
+
**product_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
347
|
+
|
348
|
+
### Return type
|
349
|
+
|
350
|
+
[**StockReceiptItem**](StockReceiptItem.md)
|
351
|
+
|
352
|
+
### Authorization
|
353
|
+
|
354
|
+
[basicAuth](../README.md#basicAuth)
|
355
|
+
|
356
|
+
### HTTP request headers
|
357
|
+
|
358
|
+
- **Content-Type**: application/json
|
359
|
+
- **Accept**: application/json
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
# **get_stock_receipt_items**
|
364
|
+
> ResultListStockReceiptItem get_stock_receipt_items(korona_account_id, stock_receipt_id, opts)
|
365
|
+
|
366
|
+
lists all stock-receipt items
|
367
|
+
|
368
|
+
|
369
|
+
|
370
|
+
### Example
|
371
|
+
```ruby
|
372
|
+
# load the gem
|
373
|
+
require 'korona_client'
|
374
|
+
# setup authorization
|
375
|
+
KoronaClient.configure do |config|
|
376
|
+
# Configure HTTP basic authorization: basicAuth
|
377
|
+
config.username = 'YOUR USERNAME'
|
378
|
+
config.password = 'YOUR PASSWORD'
|
379
|
+
end
|
380
|
+
|
381
|
+
api_instance = KoronaClient::StockReceiptsApi.new
|
382
|
+
|
383
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
384
|
+
|
385
|
+
stock_receipt_id = 'stock_receipt_id_example' # String | id of the related object (important: id should match the uuid-format)
|
386
|
+
|
387
|
+
opts = {
|
388
|
+
page: 56, # Integer | number of the page to fetch
|
389
|
+
size: 56, # Integer | amount of objects to return per page
|
390
|
+
sort: 'sort_example', # String | attribute to sort by (multiple separated by comma; max. 5)
|
391
|
+
revision: 789 # Integer | last revision number, objects with a greater revision than this will be returned
|
392
|
+
}
|
393
|
+
|
394
|
+
begin
|
395
|
+
#lists all stock-receipt items
|
396
|
+
result = api_instance.get_stock_receipt_items(korona_account_id, stock_receipt_id, opts)
|
397
|
+
p result
|
398
|
+
rescue KoronaClient::ApiError => e
|
399
|
+
puts "Exception when calling StockReceiptsApi->get_stock_receipt_items: #{e}"
|
400
|
+
end
|
401
|
+
```
|
402
|
+
|
403
|
+
### Parameters
|
404
|
+
|
405
|
+
Name | Type | Description | Notes
|
406
|
+
------------- | ------------- | ------------- | -------------
|
407
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
408
|
+
**stock_receipt_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
409
|
+
**page** | **Integer**| number of the page to fetch | [optional]
|
410
|
+
**size** | **Integer**| amount of objects to return per page | [optional]
|
411
|
+
**sort** | **String**| attribute to sort by (multiple separated by comma; max. 5) | [optional]
|
412
|
+
**revision** | **Integer**| last revision number, objects with a greater revision than this will be returned | [optional]
|
413
|
+
|
414
|
+
### Return type
|
415
|
+
|
416
|
+
[**ResultListStockReceiptItem**](ResultListStockReceiptItem.md)
|
417
|
+
|
418
|
+
### Authorization
|
419
|
+
|
420
|
+
[basicAuth](../README.md#basicAuth)
|
421
|
+
|
422
|
+
### HTTP request headers
|
423
|
+
|
424
|
+
- **Content-Type**: application/json
|
425
|
+
- **Accept**: application/json
|
426
|
+
|
427
|
+
|
428
|
+
|
429
|
+
# **get_stock_receipts**
|
430
|
+
> ResultListStockReceipt get_stock_receipts(korona_account_id, opts)
|
431
|
+
|
432
|
+
lists all stock-receipts
|
433
|
+
|
434
|
+
|
435
|
+
|
436
|
+
### Example
|
437
|
+
```ruby
|
438
|
+
# load the gem
|
439
|
+
require 'korona_client'
|
440
|
+
# setup authorization
|
441
|
+
KoronaClient.configure do |config|
|
442
|
+
# Configure HTTP basic authorization: basicAuth
|
443
|
+
config.username = 'YOUR USERNAME'
|
444
|
+
config.password = 'YOUR PASSWORD'
|
445
|
+
end
|
446
|
+
|
447
|
+
api_instance = KoronaClient::StockReceiptsApi.new
|
448
|
+
|
449
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
450
|
+
|
451
|
+
opts = {
|
452
|
+
page: 56, # Integer | number of the page to fetch
|
453
|
+
size: 56, # Integer | amount of objects to return per page
|
454
|
+
sort: 'sort_example', # String | attribute to sort by (multiple separated by comma; max. 5)
|
455
|
+
revision: 789, # Integer | last revision number, objects with a greater revision than this will be returned
|
456
|
+
include_deleted: true, # BOOLEAN | indicates deleted objects should be loaded or not (default: false)
|
457
|
+
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)
|
458
|
+
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)
|
459
|
+
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)
|
460
|
+
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)
|
461
|
+
organizational_unit: 'organizational_unit_example', # String | organizational unit
|
462
|
+
source_organizational_unit: 'source_organizational_unit_example', # String | source organizational unit
|
463
|
+
booking_status: 'booking_status_example', # String | booking status (possible values: BOOKED, IN_PROGRESS)
|
464
|
+
number: 'number_example' # String | number of the related object
|
465
|
+
}
|
466
|
+
|
467
|
+
begin
|
468
|
+
#lists all stock-receipts
|
469
|
+
result = api_instance.get_stock_receipts(korona_account_id, opts)
|
470
|
+
p result
|
471
|
+
rescue KoronaClient::ApiError => e
|
472
|
+
puts "Exception when calling StockReceiptsApi->get_stock_receipts: #{e}"
|
473
|
+
end
|
474
|
+
```
|
475
|
+
|
476
|
+
### Parameters
|
477
|
+
|
478
|
+
Name | Type | Description | Notes
|
479
|
+
------------- | ------------- | ------------- | -------------
|
480
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
481
|
+
**page** | **Integer**| number of the page to fetch | [optional]
|
482
|
+
**size** | **Integer**| amount of objects to return per page | [optional]
|
483
|
+
**sort** | **String**| attribute to sort by (multiple separated by comma; max. 5) | [optional]
|
484
|
+
**revision** | **Integer**| last revision number, objects with a greater revision than this will be returned | [optional]
|
485
|
+
**include_deleted** | **BOOLEAN**| indicates deleted objects should be loaded or not (default: false) | [optional]
|
486
|
+
**min_create_time** | **DateTime**| min (inclusive) create time of the receipt (ISO 8601; date, time and timezone) | [optional]
|
487
|
+
**max_create_time** | **DateTime**| max (inclusive) create time of the receipt (ISO 8601; date, time and timezone) | [optional]
|
488
|
+
**min_booking_time** | **DateTime**| min (inclusive) booking time of the receipt (ISO 8601; date, time and timezone) | [optional]
|
489
|
+
**max_booking_time** | **DateTime**| max (inclusive) booking time of the receipt (ISO 8601; date, time and timezone) | [optional]
|
490
|
+
**organizational_unit** | **String**| organizational unit | [optional]
|
491
|
+
**source_organizational_unit** | **String**| source organizational unit | [optional]
|
492
|
+
**booking_status** | **String**| booking status (possible values: BOOKED, IN_PROGRESS) | [optional]
|
493
|
+
**number** | **String**| number of the related object | [optional]
|
494
|
+
|
495
|
+
### Return type
|
496
|
+
|
497
|
+
[**ResultListStockReceipt**](ResultListStockReceipt.md)
|
498
|
+
|
499
|
+
### Authorization
|
500
|
+
|
501
|
+
[basicAuth](../README.md#basicAuth)
|
502
|
+
|
503
|
+
### HTTP request headers
|
504
|
+
|
505
|
+
- **Content-Type**: application/json
|
506
|
+
- **Accept**: application/json
|
507
|
+
|
508
|
+
|
509
|
+
|
510
|
+
# **update_stock_receipt**
|
511
|
+
> update_stock_receipt(korona_account_id, stock_receipt_id, body)
|
512
|
+
|
513
|
+
updates the single stock-receipt
|
514
|
+
|
515
|
+
|
516
|
+
|
517
|
+
### Example
|
518
|
+
```ruby
|
519
|
+
# load the gem
|
520
|
+
require 'korona_client'
|
521
|
+
# setup authorization
|
522
|
+
KoronaClient.configure do |config|
|
523
|
+
# Configure HTTP basic authorization: basicAuth
|
524
|
+
config.username = 'YOUR USERNAME'
|
525
|
+
config.password = 'YOUR PASSWORD'
|
526
|
+
end
|
527
|
+
|
528
|
+
api_instance = KoronaClient::StockReceiptsApi.new
|
529
|
+
|
530
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
531
|
+
|
532
|
+
stock_receipt_id = 'stock_receipt_id_example' # String | id of the related object (important: id should match the uuid-format)
|
533
|
+
|
534
|
+
body = KoronaClient::StockReceipt.new # StockReceipt | data to update
|
535
|
+
|
536
|
+
|
537
|
+
begin
|
538
|
+
#updates the single stock-receipt
|
539
|
+
api_instance.update_stock_receipt(korona_account_id, stock_receipt_id, body)
|
540
|
+
rescue KoronaClient::ApiError => e
|
541
|
+
puts "Exception when calling StockReceiptsApi->update_stock_receipt: #{e}"
|
542
|
+
end
|
543
|
+
```
|
544
|
+
|
545
|
+
### Parameters
|
546
|
+
|
547
|
+
Name | Type | Description | Notes
|
548
|
+
------------- | ------------- | ------------- | -------------
|
549
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
550
|
+
**stock_receipt_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
551
|
+
**body** | [**StockReceipt**](StockReceipt.md)| data to update |
|
552
|
+
|
553
|
+
### Return type
|
554
|
+
|
555
|
+
nil (empty response body)
|
556
|
+
|
557
|
+
### Authorization
|
558
|
+
|
559
|
+
[basicAuth](../README.md#basicAuth)
|
560
|
+
|
561
|
+
### HTTP request headers
|
562
|
+
|
563
|
+
- **Content-Type**: application/json
|
564
|
+
- **Accept**: application/json
|
565
|
+
|
566
|
+
|
567
|
+
|
568
|
+
# **update_stock_receipt_item**
|
569
|
+
> update_stock_receipt_item(korona_account_id, stock_receipt_id, product_id, body)
|
570
|
+
|
571
|
+
updates the single stock-receipt item
|
572
|
+
|
573
|
+
|
574
|
+
|
575
|
+
### Example
|
576
|
+
```ruby
|
577
|
+
# load the gem
|
578
|
+
require 'korona_client'
|
579
|
+
# setup authorization
|
580
|
+
KoronaClient.configure do |config|
|
581
|
+
# Configure HTTP basic authorization: basicAuth
|
582
|
+
config.username = 'YOUR USERNAME'
|
583
|
+
config.password = 'YOUR PASSWORD'
|
584
|
+
end
|
585
|
+
|
586
|
+
api_instance = KoronaClient::StockReceiptsApi.new
|
587
|
+
|
588
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
589
|
+
|
590
|
+
stock_receipt_id = 'stock_receipt_id_example' # String | id of the related object (important: id should match the uuid-format)
|
591
|
+
|
592
|
+
product_id = 'product_id_example' # String | id of the related object (important: id should match the uuid-format)
|
593
|
+
|
594
|
+
body = KoronaClient::StockReceiptItem.new # StockReceiptItem | data to update
|
595
|
+
|
596
|
+
|
597
|
+
begin
|
598
|
+
#updates the single stock-receipt item
|
599
|
+
api_instance.update_stock_receipt_item(korona_account_id, stock_receipt_id, product_id, body)
|
600
|
+
rescue KoronaClient::ApiError => e
|
601
|
+
puts "Exception when calling StockReceiptsApi->update_stock_receipt_item: #{e}"
|
602
|
+
end
|
603
|
+
```
|
604
|
+
|
605
|
+
### Parameters
|
606
|
+
|
607
|
+
Name | Type | Description | Notes
|
608
|
+
------------- | ------------- | ------------- | -------------
|
609
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
610
|
+
**stock_receipt_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
611
|
+
**product_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
612
|
+
**body** | [**StockReceiptItem**](StockReceiptItem.md)| data to update |
|
613
|
+
|
614
|
+
### Return type
|
615
|
+
|
616
|
+
nil (empty response body)
|
617
|
+
|
618
|
+
### Authorization
|
619
|
+
|
620
|
+
[basicAuth](../README.md#basicAuth)
|
621
|
+
|
622
|
+
### HTTP request headers
|
623
|
+
|
624
|
+
- **Content-Type**: application/json
|
625
|
+
- **Accept**: application/json
|
626
|
+
|
627
|
+
|
628
|
+
|
629
|
+
# **update_stock_receipt_items**
|
630
|
+
> Array<AddOrUpdateResult> update_stock_receipt_items(korona_account_id, stock_receipt_id, body)
|
631
|
+
|
632
|
+
updates stock-receipt items
|
633
|
+
|
634
|
+
|
635
|
+
|
636
|
+
### Example
|
637
|
+
```ruby
|
638
|
+
# load the gem
|
639
|
+
require 'korona_client'
|
640
|
+
# setup authorization
|
641
|
+
KoronaClient.configure do |config|
|
642
|
+
# Configure HTTP basic authorization: basicAuth
|
643
|
+
config.username = 'YOUR USERNAME'
|
644
|
+
config.password = 'YOUR PASSWORD'
|
645
|
+
end
|
646
|
+
|
647
|
+
api_instance = KoronaClient::StockReceiptsApi.new
|
648
|
+
|
649
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
650
|
+
|
651
|
+
stock_receipt_id = 'stock_receipt_id_example' # String | id of the related object (important: id should match the uuid-format)
|
652
|
+
|
653
|
+
body = [KoronaClient::StockReceiptItem.new] # Array<StockReceiptItem> | data to update
|
654
|
+
|
655
|
+
|
656
|
+
begin
|
657
|
+
#updates stock-receipt items
|
658
|
+
result = api_instance.update_stock_receipt_items(korona_account_id, stock_receipt_id, body)
|
659
|
+
p result
|
660
|
+
rescue KoronaClient::ApiError => e
|
661
|
+
puts "Exception when calling StockReceiptsApi->update_stock_receipt_items: #{e}"
|
662
|
+
end
|
663
|
+
```
|
664
|
+
|
665
|
+
### Parameters
|
666
|
+
|
667
|
+
Name | Type | Description | Notes
|
668
|
+
------------- | ------------- | ------------- | -------------
|
669
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
670
|
+
**stock_receipt_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
671
|
+
**body** | [**Array<StockReceiptItem>**](StockReceiptItem.md)| data to update |
|
672
|
+
|
673
|
+
### Return type
|
674
|
+
|
675
|
+
[**Array<AddOrUpdateResult>**](AddOrUpdateResult.md)
|
676
|
+
|
677
|
+
### Authorization
|
678
|
+
|
679
|
+
[basicAuth](../README.md#basicAuth)
|
680
|
+
|
681
|
+
### HTTP request headers
|
682
|
+
|
683
|
+
- **Content-Type**: application/json
|
684
|
+
- **Accept**: application/json
|
685
|
+
|
686
|
+
|
687
|
+
|