korona_client 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +171 -89
- data/config.json +6 -0
- data/docs/AccountTransaction.md +2 -0
- data/docs/AccountsApi.md +12 -12
- data/docs/AddOrUpdateResult.md +1 -0
- data/docs/AdditionalInfo.md +9 -0
- data/docs/AdditionalReceiptInfoType.md +22 -0
- data/docs/AdditionalReceiptInfoTypesApi.md +133 -0
- data/docs/AssortmentsApi.md +217 -48
- data/docs/Attendance.md +17 -0
- data/docs/Cashier.md +1 -0
- data/docs/CashiersApi.md +15 -13
- data/docs/Category.md +1 -0
- data/docs/CommodityGroupsApi.md +423 -0
- data/docs/CreationTask.md +17 -0
- data/docs/CurrenciesApi.md +15 -13
- data/docs/CustomerGroupsApi.md +15 -13
- data/docs/CustomerOrder.md +2 -2
- data/docs/CustomerOrdersApi.md +52 -46
- data/docs/CustomersApi.md +108 -45
- data/docs/DayTimePeriod.md +9 -0
- data/docs/DeliveryNote.md +22 -0
- data/docs/DeliveryNoteItem.md +14 -0
- data/docs/DeliveryNotesApi.md +316 -0
- data/docs/Deposit.md +12 -0
- data/docs/Discount.md +10 -0
- data/docs/EconomicZonesApi.md +15 -13
- data/docs/EndOfDayStatement.md +1 -1
- data/docs/Event.md +2 -0
- data/docs/ExternalSystemCall.md +20 -0
- data/docs/ExternalSystemCallsApi.md +423 -0
- data/docs/ImagesApi.md +8 -7
- data/docs/InfoTextsApi.md +15 -13
- data/docs/InventoriesApi.md +894 -0
- data/docs/KoronaAccount.md +1 -0
- data/docs/KoronaAccountApi.md +5 -5
- data/docs/MediaUrl.md +8 -0
- data/docs/OrganizationalUnit.md +1 -0
- data/docs/OrganizationalUnitsApi.md +108 -104
- data/docs/PaymentMethod.md +3 -0
- data/docs/PaymentMethodsApi.md +15 -13
- data/docs/PointsOfSaleApi.md +85 -74
- data/docs/Pos.md +5 -3
- data/docs/PriceGroupsApi.md +15 -13
- data/docs/Product.md +2 -0
- data/docs/ProductsApi.md +121 -58
- data/docs/Receipt.md +5 -1
- data/docs/ReceiptItem.md +3 -0
- data/docs/ReceiptsApi.md +20 -14
- data/docs/ResultListAdditionalReceiptInfoType.md +13 -0
- data/docs/ResultListAttendance.md +13 -0
- data/docs/ResultListCreationTask.md +13 -0
- data/docs/ResultListDeliveryNote.md +13 -0
- data/docs/ResultListExternalSystemCall.md +13 -0
- data/docs/ResultListTicket.md +13 -0
- data/docs/ResultListTimeTrackingEntity.md +13 -0
- data/docs/ResultListTimeTrackingEntry.md +13 -0
- data/docs/SalesTaxesApi.md +15 -13
- data/docs/Sector.md +1 -0
- data/docs/SectorRevenueAccountItem.md +9 -0
- data/docs/SectorsApi.md +15 -13
- data/docs/Signature.md +10 -0
- data/docs/StatisticsApi.md +28 -28
- data/docs/StockReceipt.md +1 -0
- data/docs/StockReceiptsApi.md +687 -0
- data/docs/SuppliersApi.md +15 -13
- data/docs/TagsApi.md +303 -13
- data/docs/Ticket.md +14 -0
- data/docs/TicketCreationApi.md +127 -0
- data/docs/TicketPersonalization.md +11 -0
- data/docs/TicketingApi.md +975 -76
- data/docs/TimeTrackingApi.md +388 -0
- data/docs/TimeTrackingEntity.md +13 -0
- data/docs/TimeTrackingEntry.md +14 -0
- data/docs/TotalPeriod.md +9 -0
- data/docs/Validity.md +11 -0
- data/korona_client-1.0.0.gem +0 -0
- data/korona_client.gemspec +7 -8
- data/lib/korona_client.rb +38 -5
- data/lib/korona_client/api/accounts_api.rb +24 -26
- data/lib/korona_client/api/additional_receipt_info_types_api.rb +155 -0
- data/lib/korona_client/api/assortments_api.rb +259 -82
- data/lib/korona_client/api/cashiers_api.rb +27 -26
- data/lib/korona_client/api/commodity_groups_api.rb +462 -0
- data/lib/korona_client/api/currencies_api.rb +27 -26
- data/lib/korona_client/api/customer_groups_api.rb +27 -26
- data/lib/korona_client/api/customer_orders_api.rb +78 -78
- data/lib/korona_client/api/customers_api.rb +137 -77
- data/lib/korona_client/api/delivery_notes_api.rb +354 -0
- data/lib/korona_client/api/economic_zones_api.rb +27 -26
- data/lib/korona_client/api/external_system_calls_api.rb +462 -0
- data/lib/korona_client/api/images_api.rb +16 -16
- data/lib/korona_client/api/info_texts_api.rb +27 -26
- data/lib/korona_client/api/inventories_api.rb +1014 -0
- data/lib/korona_client/api/korona_account_api.rb +11 -12
- data/lib/korona_client/api/organizational_units_api.rb +157 -162
- data/lib/korona_client/api/payment_methods_api.rb +27 -26
- data/lib/korona_client/api/points_of_sale_api.rb +127 -121
- data/lib/korona_client/api/price_groups_api.rb +27 -26
- data/lib/korona_client/api/products_api.rb +154 -95
- data/lib/korona_client/api/receipts_api.rb +27 -20
- data/lib/korona_client/api/sales_taxes_api.rb +27 -26
- data/lib/korona_client/api/sectors_api.rb +27 -26
- data/lib/korona_client/api/statistics_api.rb +32 -36
- data/lib/korona_client/api/stock_receipts_api.rb +769 -0
- data/lib/korona_client/api/suppliers_api.rb +27 -26
- data/lib/korona_client/api/tags_api.rb +326 -21
- data/lib/korona_client/api/ticket_creation_api.rb +149 -0
- data/lib/korona_client/api/ticketing_api.rb +1084 -132
- data/lib/korona_client/api/time_tracking_api.rb +425 -0
- data/lib/korona_client/api_client.rb +11 -11
- data/lib/korona_client/api_error.rb +3 -3
- data/lib/korona_client/configuration.rb +4 -4
- data/lib/korona_client/models/account.rb +11 -15
- data/lib/korona_client/models/account_summary.rb +8 -13
- data/lib/korona_client/models/account_transaction.rb +32 -15
- data/lib/korona_client/models/add_or_update_result.rb +24 -19
- data/lib/korona_client/models/additional_info.rb +192 -0
- data/lib/korona_client/models/additional_receipt_info_type.rb +319 -0
- data/lib/korona_client/models/address_information.rb +8 -13
- data/lib/korona_client/models/admission.rb +8 -13
- data/lib/korona_client/models/amount.rb +8 -13
- data/lib/korona_client/models/amount_count_data.rb +8 -13
- data/lib/korona_client/models/assortment.rb +8 -13
- data/lib/korona_client/models/attendance.rb +268 -0
- data/lib/korona_client/models/bad_request_error.rb +11 -15
- data/lib/korona_client/models/capacity.rb +8 -13
- data/lib/korona_client/models/cashier.rb +21 -16
- data/lib/korona_client/models/cashier_summary.rb +8 -13
- data/lib/korona_client/models/category.rb +19 -15
- data/lib/korona_client/models/cloud_subscription.rb +11 -15
- data/lib/korona_client/models/commodity_group.rb +8 -13
- data/lib/korona_client/models/commodity_group_summary.rb +8 -13
- data/lib/korona_client/models/company_identification.rb +8 -13
- data/lib/korona_client/models/creation_task.rb +298 -0
- data/lib/korona_client/models/currency.rb +8 -13
- data/lib/korona_client/models/currency_denomination.rb +11 -15
- data/lib/korona_client/models/currency_exchange_rate.rb +8 -13
- data/lib/korona_client/models/customer.rb +11 -15
- data/lib/korona_client/models/customer_card.rb +11 -15
- data/lib/korona_client/models/customer_data.rb +8 -13
- data/lib/korona_client/models/customer_group.rb +8 -13
- data/lib/korona_client/models/customer_group_summary.rb +8 -13
- data/lib/korona_client/models/customer_information.rb +8 -13
- data/lib/korona_client/models/customer_order.rb +28 -29
- data/lib/korona_client/models/day_rating.rb +8 -13
- data/lib/korona_client/models/day_time_period.rb +192 -0
- data/lib/korona_client/models/delivery_note.rb +316 -0
- data/lib/korona_client/models/delivery_note_item.rb +239 -0
- data/lib/korona_client/models/deposit.rb +219 -0
- data/lib/korona_client/models/device_information.rb +8 -13
- data/lib/korona_client/models/discount.rb +201 -0
- data/lib/korona_client/models/economic_zone.rb +8 -13
- data/lib/korona_client/models/end_of_day_statement.rb +15 -20
- data/lib/korona_client/models/end_of_day_statement_summary.rb +8 -13
- data/lib/korona_client/models/entry_gate.rb +8 -13
- data/lib/korona_client/models/event.rb +30 -15
- data/lib/korona_client/models/external_system_call.rb +295 -0
- data/lib/korona_client/models/forbidden_error.rb +11 -15
- data/lib/korona_client/models/geo_location.rb +8 -13
- data/lib/korona_client/models/info_text.rb +11 -15
- data/lib/korona_client/models/interval.rb +8 -13
- data/lib/korona_client/models/inventory.rb +14 -18
- data/lib/korona_client/models/inventory_list.rb +11 -15
- data/lib/korona_client/models/inventory_list_item.rb +8 -13
- data/lib/korona_client/models/inventory_list_item_stock.rb +8 -13
- data/lib/korona_client/models/korona_account.rb +41 -13
- data/lib/korona_client/models/media_url.rb +183 -0
- data/lib/korona_client/models/method_not_allowed_error.rb +11 -15
- data/lib/korona_client/models/model_reference.rb +8 -12
- data/lib/korona_client/models/not_found_error.rb +11 -15
- data/lib/korona_client/models/organizational_unit.rb +20 -16
- data/lib/korona_client/models/payment.rb +8 -13
- data/lib/korona_client/models/payment_method.rb +37 -15
- data/lib/korona_client/models/payment_summary.rb +8 -13
- data/lib/korona_client/models/period.rb +8 -13
- data/lib/korona_client/models/period_list_top_seller.rb +8 -13
- data/lib/korona_client/models/period_map_string_revenue_data.rb +8 -13
- data/lib/korona_client/models/period_object.rb +8 -13
- data/lib/korona_client/models/period_revenue_data.rb +8 -13
- data/lib/korona_client/models/pos.rb +31 -15
- data/lib/korona_client/models/price_group.rb +8 -13
- data/lib/korona_client/models/product.rb +35 -19
- data/lib/korona_client/models/product_code.rb +8 -13
- data/lib/korona_client/models/product_description.rb +11 -15
- data/lib/korona_client/models/product_price.rb +8 -13
- data/lib/korona_client/models/product_stock.rb +8 -13
- data/lib/korona_client/models/product_subproduct.rb +8 -13
- data/lib/korona_client/models/product_supplier_price.rb +8 -13
- data/lib/korona_client/models/product_transfer_involved_party_information.rb +8 -13
- data/lib/korona_client/models/product_transfer_involved_party_information_data.rb +8 -13
- data/lib/korona_client/models/rating.rb +8 -13
- data/lib/korona_client/models/receipt.rb +55 -20
- data/lib/korona_client/models/receipt_item.rb +40 -14
- data/lib/korona_client/models/result_list.rb +14 -19
- data/lib/korona_client/models/result_list_account.rb +14 -19
- data/lib/korona_client/models/result_list_additional_receipt_info_type.rb +268 -0
- data/lib/korona_client/models/result_list_assortment.rb +14 -19
- data/lib/korona_client/models/result_list_attendance.rb +268 -0
- data/lib/korona_client/models/result_list_cashier.rb +14 -19
- data/lib/korona_client/models/result_list_commodity_group.rb +14 -19
- data/lib/korona_client/models/result_list_creation_task.rb +268 -0
- data/lib/korona_client/models/result_list_currency.rb +14 -19
- data/lib/korona_client/models/result_list_customer.rb +14 -19
- data/lib/korona_client/models/result_list_customer_group.rb +14 -19
- data/lib/korona_client/models/result_list_customer_order.rb +14 -19
- data/lib/korona_client/models/result_list_day_rating.rb +14 -19
- data/lib/korona_client/models/result_list_delivery_note.rb +268 -0
- data/lib/korona_client/models/result_list_economic_zone.rb +14 -19
- data/lib/korona_client/models/result_list_end_of_day_statement.rb +14 -19
- data/lib/korona_client/models/result_list_entry_gate.rb +14 -19
- data/lib/korona_client/models/result_list_event.rb +14 -19
- data/lib/korona_client/models/result_list_external_system_call.rb +268 -0
- data/lib/korona_client/models/result_list_info_text.rb +14 -19
- data/lib/korona_client/models/result_list_inventory.rb +14 -19
- data/lib/korona_client/models/result_list_inventory_list.rb +14 -19
- data/lib/korona_client/models/result_list_inventory_list_item.rb +14 -19
- data/lib/korona_client/models/result_list_organizational_unit.rb +14 -19
- data/lib/korona_client/models/result_list_payment_method.rb +14 -19
- data/lib/korona_client/models/result_list_pos.rb +14 -19
- data/lib/korona_client/models/result_list_price_group.rb +14 -19
- data/lib/korona_client/models/result_list_product.rb +14 -19
- data/lib/korona_client/models/result_list_product_stock.rb +14 -19
- data/lib/korona_client/models/result_list_receipt.rb +14 -19
- data/lib/korona_client/models/result_list_sales_tax.rb +14 -19
- data/lib/korona_client/models/result_list_sector.rb +14 -19
- data/lib/korona_client/models/result_list_stock_receipt.rb +14 -19
- data/lib/korona_client/models/result_list_stock_receipt_item.rb +14 -19
- data/lib/korona_client/models/result_list_supplier.rb +14 -19
- data/lib/korona_client/models/result_list_tag.rb +14 -19
- data/lib/korona_client/models/result_list_ticket.rb +268 -0
- data/lib/korona_client/models/result_list_ticket_definition.rb +14 -19
- data/lib/korona_client/models/result_list_time_tracking_entity.rb +268 -0
- data/lib/korona_client/models/result_list_time_tracking_entry.rb +268 -0
- data/lib/korona_client/models/revenue_data.rb +8 -13
- data/lib/korona_client/models/sales_tax.rb +8 -13
- data/lib/korona_client/models/sales_tax_rate.rb +8 -13
- data/lib/korona_client/models/sector.rb +21 -15
- data/lib/korona_client/models/sector_revenue_account_item.rb +192 -0
- data/lib/korona_client/models/sector_sales_tax_item.rb +8 -13
- data/lib/korona_client/models/signature.rb +216 -0
- data/lib/korona_client/models/statistic.rb +8 -13
- data/lib/korona_client/models/statistic_list_top_seller.rb +8 -13
- data/lib/korona_client/models/statistic_map_string_revenue_data.rb +8 -13
- data/lib/korona_client/models/statistic_revenue_data.rb +8 -13
- data/lib/korona_client/models/stock_receipt.rb +21 -16
- data/lib/korona_client/models/stock_receipt_item.rb +8 -13
- data/lib/korona_client/models/stock_receipt_item_amount.rb +8 -13
- data/lib/korona_client/models/stock_receipt_item_identification.rb +8 -13
- data/lib/korona_client/models/stock_receipt_item_purchase_price.rb +8 -13
- data/lib/korona_client/models/supplier.rb +8 -13
- data/lib/korona_client/models/supplier_contact.rb +8 -13
- data/lib/korona_client/models/supplier_contact_person.rb +8 -13
- data/lib/korona_client/models/supplier_payment_information.rb +11 -15
- data/lib/korona_client/models/tag.rb +8 -13
- data/lib/korona_client/models/tax_payment.rb +8 -13
- data/lib/korona_client/models/tax_summary.rb +8 -13
- data/lib/korona_client/models/ticket.rb +237 -0
- data/lib/korona_client/models/ticket_definition.rb +8 -13
- data/lib/korona_client/models/ticket_personalization.rb +225 -0
- data/lib/korona_client/models/time_period.rb +8 -13
- data/lib/korona_client/models/time_tracking_entity.rb +232 -0
- data/lib/korona_client/models/time_tracking_entry.rb +240 -0
- data/lib/korona_client/models/too_many_requests_error.rb +11 -15
- data/lib/korona_client/models/top_seller.rb +8 -13
- data/lib/korona_client/models/total_period.rb +192 -0
- data/lib/korona_client/models/total_price.rb +10 -14
- data/lib/korona_client/models/validity.rb +236 -0
- data/lib/korona_client/models/weather.rb +11 -15
- data/lib/korona_client/version.rb +4 -4
- data/node_modules/.yarn-integrity +12 -0
- data/spec/api/additional_receipt_info_types_api_spec.rb +66 -0
- data/spec/api/commodity_groups_api_spec.rb +133 -0
- data/spec/api/delivery_notes_api_spec.rb +112 -0
- data/spec/api/external_system_calls_api_spec.rb +133 -0
- data/spec/api/inventories_api_spec.rb +253 -0
- data/spec/api/stock_receipts_api_spec.rb +201 -0
- data/spec/api/ticket_creation_api_spec.rb +63 -0
- data/spec/api/time_tracking_api_spec.rb +129 -0
- data/spec/models/additional_info_spec.rb +47 -0
- data/spec/models/additional_receipt_info_type_spec.rb +125 -0
- data/spec/models/attendance_spec.rb +95 -0
- data/spec/models/creation_task_spec.rb +99 -0
- data/spec/models/day_time_period_spec.rb +47 -0
- data/spec/models/delivery_note_item_spec.rb +77 -0
- data/spec/models/delivery_note_spec.rb +125 -0
- data/spec/models/deposit_spec.rb +65 -0
- data/spec/models/discount_spec.rb +53 -0
- data/spec/models/external_system_call_spec.rb +113 -0
- data/spec/models/media_url_spec.rb +41 -0
- data/spec/models/result_list_additional_receipt_info_type_spec.rb +71 -0
- data/spec/models/result_list_attendance_spec.rb +71 -0
- data/spec/models/result_list_creation_task_spec.rb +71 -0
- data/spec/models/result_list_delivery_note_spec.rb +71 -0
- data/spec/models/result_list_external_system_call_spec.rb +71 -0
- data/spec/models/result_list_ticket_spec.rb +71 -0
- data/spec/models/result_list_time_tracking_entity_spec.rb +71 -0
- data/spec/models/result_list_time_tracking_entry_spec.rb +71 -0
- data/spec/models/sector_revenue_account_item_spec.rb +47 -0
- data/spec/models/signature_spec.rb +53 -0
- data/spec/models/ticket_personalization_spec.rb +59 -0
- data/spec/models/ticket_spec.rb +77 -0
- data/spec/models/time_tracking_entity_spec.rb +71 -0
- data/spec/models/time_tracking_entry_spec.rb +77 -0
- data/spec/models/total_period_spec.rb +47 -0
- data/spec/models/validity_spec.rb +63 -0
- data/yarn.lock +4 -0
- metadata +162 -18
@@ -0,0 +1,17 @@
|
|
1
|
+
# KoronaClient::CreationTask
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**entry_id** | **Integer** | | [optional]
|
7
|
+
**description** | **String** | | [optional]
|
8
|
+
**user** | **String** | | [optional]
|
9
|
+
**creation_time** | **DateTime** | | [optional]
|
10
|
+
**ticket_number_start** | **String** | | [optional]
|
11
|
+
**quantity** | **Integer** | | [optional]
|
12
|
+
**created** | **Integer** | | [optional]
|
13
|
+
**status** | **String** | | [optional]
|
14
|
+
**article_number** | **String** | | [optional]
|
15
|
+
**personalization** | [**TicketPersonalization**](TicketPersonalization.md) | | [optional]
|
16
|
+
|
17
|
+
|
data/docs/CurrenciesApi.md
CHANGED
@@ -5,7 +5,7 @@ All URIs are relative to *https://www.koronacloud.com/web/api/v3*
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
7
|
[**get_currencies**](CurrenciesApi.md#get_currencies) | **GET** /accounts/{koronaAccountId}/currencies | lists all currencies
|
8
|
-
[**get_currency**](CurrenciesApi.md#get_currency) | **GET** /accounts/{koronaAccountId}/currencies/{
|
8
|
+
[**get_currency**](CurrenciesApi.md#get_currency) | **GET** /accounts/{koronaAccountId}/currencies/{currencyId} | returns the single currency
|
9
9
|
|
10
10
|
|
11
11
|
# **get_currencies**
|
@@ -28,14 +28,15 @@ end
|
|
28
28
|
|
29
29
|
api_instance = KoronaClient::CurrenciesApi.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
|
opts = {
|
34
34
|
page: 56, # Integer | number of the page to fetch
|
35
35
|
size: 56, # Integer | amount of objects to return per page
|
36
|
-
sort:
|
36
|
+
sort: 'sort_example', # String | attribute to sort by (multiple separated by comma; max. 5)
|
37
37
|
revision: 789, # Integer | last revision number, objects with a greater revision than this will be returned
|
38
|
-
include_deleted: true # BOOLEAN | indicates deleted objects should be loaded or not (default: false)
|
38
|
+
include_deleted: true, # BOOLEAN | indicates deleted objects should be loaded or not (default: false)
|
39
|
+
number: 'number_example' # String | number of the related object
|
39
40
|
}
|
40
41
|
|
41
42
|
begin
|
@@ -51,12 +52,13 @@ end
|
|
51
52
|
|
52
53
|
Name | Type | Description | Notes
|
53
54
|
------------- | ------------- | ------------- | -------------
|
54
|
-
**korona_account_id** | **String**| the account
|
55
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
55
56
|
**page** | **Integer**| number of the page to fetch | [optional]
|
56
57
|
**size** | **Integer**| amount of objects to return per page | [optional]
|
57
58
|
**sort** | **String**| attribute to sort by (multiple separated by comma; max. 5) | [optional]
|
58
59
|
**revision** | **Integer**| last revision number, objects with a greater revision than this will be returned | [optional]
|
59
60
|
**include_deleted** | **BOOLEAN**| indicates deleted objects should be loaded or not (default: false) | [optional]
|
61
|
+
**number** | **String**| number of the related object | [optional]
|
60
62
|
|
61
63
|
### Return type
|
62
64
|
|
@@ -74,9 +76,9 @@ Name | Type | Description | Notes
|
|
74
76
|
|
75
77
|
|
76
78
|
# **get_currency**
|
77
|
-
> Currency get_currency(korona_account_id,
|
79
|
+
> Currency get_currency(korona_account_id, currency_id)
|
78
80
|
|
79
|
-
|
81
|
+
returns the single currency
|
80
82
|
|
81
83
|
|
82
84
|
|
@@ -93,14 +95,14 @@ end
|
|
93
95
|
|
94
96
|
api_instance = KoronaClient::CurrenciesApi.new
|
95
97
|
|
96
|
-
korona_account_id =
|
98
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
97
99
|
|
98
|
-
|
100
|
+
currency_id = 'currency_id_example' # String | id of the related object (important: id should match the uuid-format)
|
99
101
|
|
100
102
|
|
101
103
|
begin
|
102
|
-
#
|
103
|
-
result = api_instance.get_currency(korona_account_id,
|
104
|
+
#returns the single currency
|
105
|
+
result = api_instance.get_currency(korona_account_id, currency_id)
|
104
106
|
p result
|
105
107
|
rescue KoronaClient::ApiError => e
|
106
108
|
puts "Exception when calling CurrenciesApi->get_currency: #{e}"
|
@@ -111,8 +113,8 @@ end
|
|
111
113
|
|
112
114
|
Name | Type | Description | Notes
|
113
115
|
------------- | ------------- | ------------- | -------------
|
114
|
-
**korona_account_id** | **String**| the account
|
115
|
-
**
|
116
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
117
|
+
**currency_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
116
118
|
|
117
119
|
### Return type
|
118
120
|
|
data/docs/CustomerGroupsApi.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_customer_group**](CustomerGroupsApi.md#get_customer_group) | **GET** /accounts/{koronaAccountId}/customerGroups/{
|
7
|
+
[**get_customer_group**](CustomerGroupsApi.md#get_customer_group) | **GET** /accounts/{koronaAccountId}/customerGroups/{customerGroupId} | returns the single customer group
|
8
8
|
[**get_customer_groups**](CustomerGroupsApi.md#get_customer_groups) | **GET** /accounts/{koronaAccountId}/customerGroups | lists all customer groups
|
9
9
|
|
10
10
|
|
11
11
|
# **get_customer_group**
|
12
|
-
> CustomerGroup get_customer_group(korona_account_id,
|
12
|
+
> CustomerGroup get_customer_group(korona_account_id, customer_group_id)
|
13
13
|
|
14
|
-
|
14
|
+
returns the single customer group
|
15
15
|
|
16
16
|
|
17
17
|
|
@@ -28,14 +28,14 @@ end
|
|
28
28
|
|
29
29
|
api_instance = KoronaClient::CustomerGroupsApi.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
|
+
customer_group_id = 'customer_group_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_customer_group(korona_account_id,
|
37
|
+
#returns the single customer group
|
38
|
+
result = api_instance.get_customer_group(korona_account_id, customer_group_id)
|
39
39
|
p result
|
40
40
|
rescue KoronaClient::ApiError => e
|
41
41
|
puts "Exception when calling CustomerGroupsApi->get_customer_group: #{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
|
+
**customer_group_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::CustomerGroupsApi.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
|
|
data/docs/CustomerOrder.md
CHANGED
@@ -13,9 +13,9 @@ Name | Type | Description | Notes
|
|
13
13
|
**create_time** | **DateTime** | | [optional]
|
14
14
|
**customer** | [**ModelReference**](ModelReference.md) | | [optional]
|
15
15
|
**customer_data** | [**CustomerData**](CustomerData.md) | | [optional]
|
16
|
-
**
|
17
|
-
**deposit_account** | [**ModelReference**](ModelReference.md) | | [optional]
|
16
|
+
**deposits** | [**Array<Deposit>**](Deposit.md) | | [optional]
|
18
17
|
**finish_time** | **DateTime** | | [optional]
|
18
|
+
**info_texts** | **Array<String>** | | [optional]
|
19
19
|
**items** | [**Array<ReceiptItem>**](ReceiptItem.md) | | [optional]
|
20
20
|
**organizational_unit** | [**ModelReference**](ModelReference.md) | | [optional]
|
21
21
|
**pick_up_time** | **DateTime** | | [optional]
|
data/docs/CustomerOrdersApi.md
CHANGED
@@ -5,11 +5,11 @@ All URIs are relative to *https://www.koronacloud.com/web/api/v3*
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
7
|
[**add_customer_orders**](CustomerOrdersApi.md#add_customer_orders) | **POST** /accounts/{koronaAccountId}/customerOrders | adds a batch of new customer orders
|
8
|
-
[**delete_customer_order**](CustomerOrdersApi.md#delete_customer_order) | **DELETE** /accounts/{koronaAccountId}/customerOrders/{
|
9
|
-
[**get_customer_order**](CustomerOrdersApi.md#get_customer_order) | **GET** /accounts/{koronaAccountId}/customerOrders/{
|
8
|
+
[**delete_customer_order**](CustomerOrdersApi.md#delete_customer_order) | **DELETE** /accounts/{koronaAccountId}/customerOrders/{customerOrderId} | deletes the single customer order
|
9
|
+
[**get_customer_order**](CustomerOrdersApi.md#get_customer_order) | **GET** /accounts/{koronaAccountId}/customerOrders/{customerOrderId} | returns the single customer order
|
10
10
|
[**get_customer_orders**](CustomerOrdersApi.md#get_customer_orders) | **GET** /accounts/{koronaAccountId}/customerOrders | lists all customer orders
|
11
|
-
[**update_customer_order**](CustomerOrdersApi.md#update_customer_order) | **PATCH** /accounts/{koronaAccountId}/customerOrders/{
|
12
|
-
[**update_customer_orders**](CustomerOrdersApi.md#update_customer_orders) | **PATCH** /accounts/{koronaAccountId}/customerOrders |
|
11
|
+
[**update_customer_order**](CustomerOrdersApi.md#update_customer_order) | **PATCH** /accounts/{koronaAccountId}/customerOrders/{customerOrderId} | updates the single customer order
|
12
|
+
[**update_customer_orders**](CustomerOrdersApi.md#update_customer_orders) | **PATCH** /accounts/{koronaAccountId}/customerOrders | updates a batch of customer orders
|
13
13
|
|
14
14
|
|
15
15
|
# **add_customer_orders**
|
@@ -32,9 +32,9 @@ end
|
|
32
32
|
|
33
33
|
api_instance = KoronaClient::CustomerOrdersApi.new
|
34
34
|
|
35
|
-
korona_account_id =
|
35
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
36
36
|
|
37
|
-
body = [KoronaClient::CustomerOrder.new] # Array<CustomerOrder> |
|
37
|
+
body = [KoronaClient::CustomerOrder.new] # Array<CustomerOrder> | array of new customer orders
|
38
38
|
|
39
39
|
|
40
40
|
begin
|
@@ -50,8 +50,8 @@ end
|
|
50
50
|
|
51
51
|
Name | Type | Description | Notes
|
52
52
|
------------- | ------------- | ------------- | -------------
|
53
|
-
**korona_account_id** | **String**| the account
|
54
|
-
**body** | [**Array<CustomerOrder>**](CustomerOrder.md)|
|
53
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
54
|
+
**body** | [**Array<CustomerOrder>**](CustomerOrder.md)| array of new customer orders |
|
55
55
|
|
56
56
|
### Return type
|
57
57
|
|
@@ -69,9 +69,9 @@ Name | Type | Description | Notes
|
|
69
69
|
|
70
70
|
|
71
71
|
# **delete_customer_order**
|
72
|
-
> delete_customer_order(korona_account_id,
|
72
|
+
> delete_customer_order(korona_account_id, customer_order_id, opts)
|
73
73
|
|
74
|
-
deletes the customer order
|
74
|
+
deletes the single customer order
|
75
75
|
|
76
76
|
|
77
77
|
|
@@ -88,14 +88,17 @@ end
|
|
88
88
|
|
89
89
|
api_instance = KoronaClient::CustomerOrdersApi.new
|
90
90
|
|
91
|
-
korona_account_id =
|
91
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
92
92
|
|
93
|
-
|
93
|
+
customer_order_id = 'customer_order_id_example' # String | id of the related object (important: id should match the uuid-format)
|
94
94
|
|
95
|
+
opts = {
|
96
|
+
number: 'number_example' # String | number of the related object
|
97
|
+
}
|
95
98
|
|
96
99
|
begin
|
97
|
-
#deletes the customer order
|
98
|
-
api_instance.delete_customer_order(korona_account_id,
|
100
|
+
#deletes the single customer order
|
101
|
+
api_instance.delete_customer_order(korona_account_id, customer_order_id, opts)
|
99
102
|
rescue KoronaClient::ApiError => e
|
100
103
|
puts "Exception when calling CustomerOrdersApi->delete_customer_order: #{e}"
|
101
104
|
end
|
@@ -105,8 +108,9 @@ end
|
|
105
108
|
|
106
109
|
Name | Type | Description | Notes
|
107
110
|
------------- | ------------- | ------------- | -------------
|
108
|
-
**korona_account_id** | **String**| the account
|
109
|
-
**
|
111
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
112
|
+
**customer_order_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
113
|
+
**number** | **String**| number of the related object | [optional]
|
110
114
|
|
111
115
|
### Return type
|
112
116
|
|
@@ -124,9 +128,9 @@ nil (empty response body)
|
|
124
128
|
|
125
129
|
|
126
130
|
# **get_customer_order**
|
127
|
-
> CustomerOrder get_customer_order(korona_account_id,
|
131
|
+
> CustomerOrder get_customer_order(korona_account_id, customer_order_id)
|
128
132
|
|
129
|
-
|
133
|
+
returns the single customer order
|
130
134
|
|
131
135
|
|
132
136
|
|
@@ -143,14 +147,14 @@ end
|
|
143
147
|
|
144
148
|
api_instance = KoronaClient::CustomerOrdersApi.new
|
145
149
|
|
146
|
-
korona_account_id =
|
150
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
147
151
|
|
148
|
-
|
152
|
+
customer_order_id = 'customer_order_id_example' # String | id of the related object (important: id should match the uuid-format)
|
149
153
|
|
150
154
|
|
151
155
|
begin
|
152
|
-
#
|
153
|
-
result = api_instance.get_customer_order(korona_account_id,
|
156
|
+
#returns the single customer order
|
157
|
+
result = api_instance.get_customer_order(korona_account_id, customer_order_id)
|
154
158
|
p result
|
155
159
|
rescue KoronaClient::ApiError => e
|
156
160
|
puts "Exception when calling CustomerOrdersApi->get_customer_order: #{e}"
|
@@ -161,8 +165,8 @@ end
|
|
161
165
|
|
162
166
|
Name | Type | Description | Notes
|
163
167
|
------------- | ------------- | ------------- | -------------
|
164
|
-
**korona_account_id** | **String**| the account
|
165
|
-
**
|
168
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
169
|
+
**customer_order_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
166
170
|
|
167
171
|
### Return type
|
168
172
|
|
@@ -199,18 +203,19 @@ end
|
|
199
203
|
|
200
204
|
api_instance = KoronaClient::CustomerOrdersApi.new
|
201
205
|
|
202
|
-
korona_account_id =
|
206
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
203
207
|
|
204
208
|
opts = {
|
205
209
|
page: 56, # Integer | number of the page to fetch
|
206
210
|
size: 56, # Integer | amount of objects to return per page
|
207
|
-
sort:
|
211
|
+
sort: 'sort_example', # String | attribute to sort by (multiple separated by comma; max. 5)
|
208
212
|
revision: 789, # Integer | last revision number, objects with a greater revision than this will be returned
|
209
213
|
include_deleted: true, # BOOLEAN | indicates deleted objects should be loaded or not (default: false)
|
210
|
-
min_create_time: DateTime.parse(
|
211
|
-
max_create_time: DateTime.parse(
|
212
|
-
min_pick_up_time: DateTime.parse(
|
213
|
-
max_pick_up_time: DateTime.parse(
|
214
|
+
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)
|
215
|
+
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)
|
216
|
+
min_pick_up_time: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | min (inclusive) pick up time of the receipt (ISO 8601; date, time and timezone)
|
217
|
+
max_pick_up_time: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | max (inclusive) pick up time of the receipt (ISO 8601; date, time and timezone)
|
218
|
+
number: 'number_example' # String | number of the related object
|
214
219
|
}
|
215
220
|
|
216
221
|
begin
|
@@ -226,7 +231,7 @@ end
|
|
226
231
|
|
227
232
|
Name | Type | Description | Notes
|
228
233
|
------------- | ------------- | ------------- | -------------
|
229
|
-
**korona_account_id** | **String**| the account
|
234
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
230
235
|
**page** | **Integer**| number of the page to fetch | [optional]
|
231
236
|
**size** | **Integer**| amount of objects to return per page | [optional]
|
232
237
|
**sort** | **String**| attribute to sort by (multiple separated by comma; max. 5) | [optional]
|
@@ -236,6 +241,7 @@ Name | Type | Description | Notes
|
|
236
241
|
**max_create_time** | **DateTime**| max (inclusive) create time of the receipt (ISO 8601; date, time and timezone) | [optional]
|
237
242
|
**min_pick_up_time** | **DateTime**| min (inclusive) pick up time of the receipt (ISO 8601; date, time and timezone) | [optional]
|
238
243
|
**max_pick_up_time** | **DateTime**| max (inclusive) pick up time of the receipt (ISO 8601; date, time and timezone) | [optional]
|
244
|
+
**number** | **String**| number of the related object | [optional]
|
239
245
|
|
240
246
|
### Return type
|
241
247
|
|
@@ -253,11 +259,11 @@ Name | Type | Description | Notes
|
|
253
259
|
|
254
260
|
|
255
261
|
# **update_customer_order**
|
256
|
-
> update_customer_order(korona_account_id,
|
262
|
+
> update_customer_order(korona_account_id, customer_order_id, body)
|
263
|
+
|
264
|
+
updates the single customer order
|
257
265
|
|
258
|
-
changes the customer order
|
259
266
|
|
260
|
-
if [number] is set, the number of the object will change and the resource location as well
|
261
267
|
|
262
268
|
### Example
|
263
269
|
```ruby
|
@@ -272,16 +278,16 @@ end
|
|
272
278
|
|
273
279
|
api_instance = KoronaClient::CustomerOrdersApi.new
|
274
280
|
|
275
|
-
korona_account_id =
|
281
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
276
282
|
|
277
|
-
|
283
|
+
customer_order_id = 'customer_order_id_example' # String | id of the related object (important: id should match the uuid-format)
|
278
284
|
|
279
285
|
body = KoronaClient::CustomerOrder.new # CustomerOrder | the properties to update of the customer order
|
280
286
|
|
281
287
|
|
282
288
|
begin
|
283
|
-
#
|
284
|
-
api_instance.update_customer_order(korona_account_id,
|
289
|
+
#updates the single customer order
|
290
|
+
api_instance.update_customer_order(korona_account_id, customer_order_id, body)
|
285
291
|
rescue KoronaClient::ApiError => e
|
286
292
|
puts "Exception when calling CustomerOrdersApi->update_customer_order: #{e}"
|
287
293
|
end
|
@@ -291,8 +297,8 @@ end
|
|
291
297
|
|
292
298
|
Name | Type | Description | Notes
|
293
299
|
------------- | ------------- | ------------- | -------------
|
294
|
-
**korona_account_id** | **String**| the account
|
295
|
-
**
|
300
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
301
|
+
**customer_order_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
296
302
|
**body** | [**CustomerOrder**](CustomerOrder.md)| the properties to update of the customer order |
|
297
303
|
|
298
304
|
### Return type
|
@@ -313,7 +319,7 @@ nil (empty response body)
|
|
313
319
|
# **update_customer_orders**
|
314
320
|
> Array<AddOrUpdateResult> update_customer_orders(korona_account_id, body)
|
315
321
|
|
316
|
-
|
322
|
+
updates a batch of customer orders
|
317
323
|
|
318
324
|
[number] must be set in the objects, otherwise the object cannot be updated
|
319
325
|
|
@@ -330,13 +336,13 @@ end
|
|
330
336
|
|
331
337
|
api_instance = KoronaClient::CustomerOrdersApi.new
|
332
338
|
|
333
|
-
korona_account_id =
|
339
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
334
340
|
|
335
|
-
body = [KoronaClient::CustomerOrder.new] # Array<CustomerOrder> |
|
341
|
+
body = [KoronaClient::CustomerOrder.new] # Array<CustomerOrder> | an array of existing customer orders
|
336
342
|
|
337
343
|
|
338
344
|
begin
|
339
|
-
#
|
345
|
+
#updates a batch of customer orders
|
340
346
|
result = api_instance.update_customer_orders(korona_account_id, body)
|
341
347
|
p result
|
342
348
|
rescue KoronaClient::ApiError => e
|
@@ -348,8 +354,8 @@ end
|
|
348
354
|
|
349
355
|
Name | Type | Description | Notes
|
350
356
|
------------- | ------------- | ------------- | -------------
|
351
|
-
**korona_account_id** | **String**| the account
|
352
|
-
**body** | [**Array<CustomerOrder>**](CustomerOrder.md)|
|
357
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
358
|
+
**body** | [**Array<CustomerOrder>**](CustomerOrder.md)| an array of existing customer orders |
|
353
359
|
|
354
360
|
### Return type
|
355
361
|
|
data/docs/CustomersApi.md
CHANGED
@@ -5,15 +5,16 @@ All URIs are relative to *https://www.koronacloud.com/web/api/v3*
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
7
|
[**add_customers**](CustomersApi.md#add_customers) | **POST** /accounts/{koronaAccountId}/customers | adds a batch of new customers
|
8
|
-
[**delete_customer**](CustomersApi.md#delete_customer) | **DELETE** /accounts/{koronaAccountId}/customers/{
|
9
|
-
[**
|
8
|
+
[**delete_customer**](CustomersApi.md#delete_customer) | **DELETE** /accounts/{koronaAccountId}/customers/{customerId} | deletes the single customer
|
9
|
+
[**delete_customers**](CustomersApi.md#delete_customers) | **DELETE** /accounts/{koronaAccountId}/customers | deletes a batch of customers
|
10
|
+
[**get_customer**](CustomersApi.md#get_customer) | **GET** /accounts/{koronaAccountId}/customers/{customerId} | returns the single customer
|
10
11
|
[**get_customers**](CustomersApi.md#get_customers) | **GET** /accounts/{koronaAccountId}/customers | lists all customers
|
11
|
-
[**update_customer**](CustomersApi.md#update_customer) | **PATCH** /accounts/{koronaAccountId}/customers/{
|
12
|
-
[**update_customers**](CustomersApi.md#update_customers) | **PATCH** /accounts/{koronaAccountId}/customers |
|
12
|
+
[**update_customer**](CustomersApi.md#update_customer) | **PATCH** /accounts/{koronaAccountId}/customers/{customerId} | updates the single customer
|
13
|
+
[**update_customers**](CustomersApi.md#update_customers) | **PATCH** /accounts/{koronaAccountId}/customers | updates a batch of customers
|
13
14
|
|
14
15
|
|
15
16
|
# **add_customers**
|
16
|
-
> Array<AddOrUpdateResult> add_customers(korona_account_id, body)
|
17
|
+
> Array<AddOrUpdateResult> add_customers(korona_account_id, body, opts)
|
17
18
|
|
18
19
|
adds a batch of new customers
|
19
20
|
|
@@ -32,14 +33,17 @@ end
|
|
32
33
|
|
33
34
|
api_instance = KoronaClient::CustomersApi.new
|
34
35
|
|
35
|
-
korona_account_id =
|
36
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
36
37
|
|
37
|
-
body = [KoronaClient::Customer.new] # Array<Customer> |
|
38
|
+
body = [KoronaClient::Customer.new] # Array<Customer> | array of new customers
|
38
39
|
|
40
|
+
opts = {
|
41
|
+
upsert: true # BOOLEAN | when set to true, updates the object instead of generating a already-exists-error
|
42
|
+
}
|
39
43
|
|
40
44
|
begin
|
41
45
|
#adds a batch of new customers
|
42
|
-
result = api_instance.add_customers(korona_account_id, body)
|
46
|
+
result = api_instance.add_customers(korona_account_id, body, opts)
|
43
47
|
p result
|
44
48
|
rescue KoronaClient::ApiError => e
|
45
49
|
puts "Exception when calling CustomersApi->add_customers: #{e}"
|
@@ -50,8 +54,9 @@ end
|
|
50
54
|
|
51
55
|
Name | Type | Description | Notes
|
52
56
|
------------- | ------------- | ------------- | -------------
|
53
|
-
**korona_account_id** | **String**| the account
|
54
|
-
**body** | [**Array<Customer>**](Customer.md)|
|
57
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
58
|
+
**body** | [**Array<Customer>**](Customer.md)| array of new customers |
|
59
|
+
**upsert** | **BOOLEAN**| when set to true, updates the object instead of generating a already-exists-error | [optional]
|
55
60
|
|
56
61
|
### Return type
|
57
62
|
|
@@ -69,9 +74,9 @@ Name | Type | Description | Notes
|
|
69
74
|
|
70
75
|
|
71
76
|
# **delete_customer**
|
72
|
-
> delete_customer(korona_account_id,
|
77
|
+
> delete_customer(korona_account_id, customer_id)
|
73
78
|
|
74
|
-
deletes the customer
|
79
|
+
deletes the single customer
|
75
80
|
|
76
81
|
|
77
82
|
|
@@ -88,14 +93,14 @@ end
|
|
88
93
|
|
89
94
|
api_instance = KoronaClient::CustomersApi.new
|
90
95
|
|
91
|
-
korona_account_id =
|
96
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
92
97
|
|
93
|
-
|
98
|
+
customer_id = 'customer_id_example' # String | id of the related object (important: id should match the uuid-format)
|
94
99
|
|
95
100
|
|
96
101
|
begin
|
97
|
-
#deletes the customer
|
98
|
-
api_instance.delete_customer(korona_account_id,
|
102
|
+
#deletes the single customer
|
103
|
+
api_instance.delete_customer(korona_account_id, customer_id)
|
99
104
|
rescue KoronaClient::ApiError => e
|
100
105
|
puts "Exception when calling CustomersApi->delete_customer: #{e}"
|
101
106
|
end
|
@@ -105,8 +110,8 @@ end
|
|
105
110
|
|
106
111
|
Name | Type | Description | Notes
|
107
112
|
------------- | ------------- | ------------- | -------------
|
108
|
-
**korona_account_id** | **String**| the account
|
109
|
-
**
|
113
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
114
|
+
**customer_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
110
115
|
|
111
116
|
### Return type
|
112
117
|
|
@@ -123,10 +128,66 @@ nil (empty response body)
|
|
123
128
|
|
124
129
|
|
125
130
|
|
131
|
+
# **delete_customers**
|
132
|
+
> Array<AddOrUpdateResult> delete_customers(korona_account_id, body)
|
133
|
+
|
134
|
+
deletes a batch of customers
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
### Example
|
139
|
+
```ruby
|
140
|
+
# load the gem
|
141
|
+
require 'korona_client'
|
142
|
+
# setup authorization
|
143
|
+
KoronaClient.configure do |config|
|
144
|
+
# Configure HTTP basic authorization: basicAuth
|
145
|
+
config.username = 'YOUR USERNAME'
|
146
|
+
config.password = 'YOUR PASSWORD'
|
147
|
+
end
|
148
|
+
|
149
|
+
api_instance = KoronaClient::CustomersApi.new
|
150
|
+
|
151
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
152
|
+
|
153
|
+
body = [KoronaClient::Customer.new] # Array<Customer> | array of existing customers (id or number required)
|
154
|
+
|
155
|
+
|
156
|
+
begin
|
157
|
+
#deletes a batch of customers
|
158
|
+
result = api_instance.delete_customers(korona_account_id, body)
|
159
|
+
p result
|
160
|
+
rescue KoronaClient::ApiError => e
|
161
|
+
puts "Exception when calling CustomersApi->delete_customers: #{e}"
|
162
|
+
end
|
163
|
+
```
|
164
|
+
|
165
|
+
### Parameters
|
166
|
+
|
167
|
+
Name | Type | Description | Notes
|
168
|
+
------------- | ------------- | ------------- | -------------
|
169
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
170
|
+
**body** | [**Array<Customer>**](Customer.md)| array of existing customers (id or number required) |
|
171
|
+
|
172
|
+
### Return type
|
173
|
+
|
174
|
+
[**Array<AddOrUpdateResult>**](AddOrUpdateResult.md)
|
175
|
+
|
176
|
+
### Authorization
|
177
|
+
|
178
|
+
[basicAuth](../README.md#basicAuth)
|
179
|
+
|
180
|
+
### HTTP request headers
|
181
|
+
|
182
|
+
- **Content-Type**: application/json
|
183
|
+
- **Accept**: application/json
|
184
|
+
|
185
|
+
|
186
|
+
|
126
187
|
# **get_customer**
|
127
|
-
> Customer get_customer(korona_account_id,
|
188
|
+
> Customer get_customer(korona_account_id, customer_id)
|
128
189
|
|
129
|
-
|
190
|
+
returns the single customer
|
130
191
|
|
131
192
|
|
132
193
|
|
@@ -143,14 +204,14 @@ end
|
|
143
204
|
|
144
205
|
api_instance = KoronaClient::CustomersApi.new
|
145
206
|
|
146
|
-
korona_account_id =
|
207
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
147
208
|
|
148
|
-
|
209
|
+
customer_id = 'customer_id_example' # String | id of the related object (important: id should match the uuid-format)
|
149
210
|
|
150
211
|
|
151
212
|
begin
|
152
|
-
#
|
153
|
-
result = api_instance.get_customer(korona_account_id,
|
213
|
+
#returns the single customer
|
214
|
+
result = api_instance.get_customer(korona_account_id, customer_id)
|
154
215
|
p result
|
155
216
|
rescue KoronaClient::ApiError => e
|
156
217
|
puts "Exception when calling CustomersApi->get_customer: #{e}"
|
@@ -161,8 +222,8 @@ end
|
|
161
222
|
|
162
223
|
Name | Type | Description | Notes
|
163
224
|
------------- | ------------- | ------------- | -------------
|
164
|
-
**korona_account_id** | **String**| the account
|
165
|
-
**
|
225
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
226
|
+
**customer_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
166
227
|
|
167
228
|
### Return type
|
168
229
|
|
@@ -199,14 +260,15 @@ end
|
|
199
260
|
|
200
261
|
api_instance = KoronaClient::CustomersApi.new
|
201
262
|
|
202
|
-
korona_account_id =
|
263
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
203
264
|
|
204
265
|
opts = {
|
205
266
|
page: 56, # Integer | number of the page to fetch
|
206
267
|
size: 56, # Integer | amount of objects to return per page
|
207
|
-
sort:
|
268
|
+
sort: 'sort_example', # String | attribute to sort by (multiple separated by comma; max. 5)
|
208
269
|
revision: 789, # Integer | last revision number, objects with a greater revision than this will be returned
|
209
|
-
include_deleted: true # BOOLEAN | indicates deleted objects should be loaded or not (default: false)
|
270
|
+
include_deleted: true, # BOOLEAN | indicates deleted objects should be loaded or not (default: false)
|
271
|
+
number: 'number_example' # String | number of the related object
|
210
272
|
}
|
211
273
|
|
212
274
|
begin
|
@@ -222,12 +284,13 @@ end
|
|
222
284
|
|
223
285
|
Name | Type | Description | Notes
|
224
286
|
------------- | ------------- | ------------- | -------------
|
225
|
-
**korona_account_id** | **String**| the account
|
287
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
226
288
|
**page** | **Integer**| number of the page to fetch | [optional]
|
227
289
|
**size** | **Integer**| amount of objects to return per page | [optional]
|
228
290
|
**sort** | **String**| attribute to sort by (multiple separated by comma; max. 5) | [optional]
|
229
291
|
**revision** | **Integer**| last revision number, objects with a greater revision than this will be returned | [optional]
|
230
292
|
**include_deleted** | **BOOLEAN**| indicates deleted objects should be loaded or not (default: false) | [optional]
|
293
|
+
**number** | **String**| number of the related object | [optional]
|
231
294
|
|
232
295
|
### Return type
|
233
296
|
|
@@ -245,9 +308,9 @@ Name | Type | Description | Notes
|
|
245
308
|
|
246
309
|
|
247
310
|
# **update_customer**
|
248
|
-
> update_customer(korona_account_id,
|
311
|
+
> update_customer(korona_account_id, customer_id, body)
|
249
312
|
|
250
|
-
updates the customer
|
313
|
+
updates the single customer
|
251
314
|
|
252
315
|
|
253
316
|
|
@@ -264,16 +327,16 @@ end
|
|
264
327
|
|
265
328
|
api_instance = KoronaClient::CustomersApi.new
|
266
329
|
|
267
|
-
korona_account_id =
|
330
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
268
331
|
|
269
|
-
|
332
|
+
customer_id = 'customer_id_example' # String | id of the related object (important: id should match the uuid-format)
|
270
333
|
|
271
334
|
body = KoronaClient::Customer.new # Customer | the properties to update of the customer
|
272
335
|
|
273
336
|
|
274
337
|
begin
|
275
|
-
#updates the customer
|
276
|
-
api_instance.update_customer(korona_account_id,
|
338
|
+
#updates the single customer
|
339
|
+
api_instance.update_customer(korona_account_id, customer_id, body)
|
277
340
|
rescue KoronaClient::ApiError => e
|
278
341
|
puts "Exception when calling CustomersApi->update_customer: #{e}"
|
279
342
|
end
|
@@ -283,8 +346,8 @@ end
|
|
283
346
|
|
284
347
|
Name | Type | Description | Notes
|
285
348
|
------------- | ------------- | ------------- | -------------
|
286
|
-
**korona_account_id** | **String**| the account
|
287
|
-
**
|
349
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
350
|
+
**customer_id** | **String**| id of the related object (important: id should match the uuid-format) |
|
288
351
|
**body** | [**Customer**](Customer.md)| the properties to update of the customer |
|
289
352
|
|
290
353
|
### Return type
|
@@ -305,9 +368,9 @@ nil (empty response body)
|
|
305
368
|
# **update_customers**
|
306
369
|
> Array<AddOrUpdateResult> update_customers(korona_account_id, body)
|
307
370
|
|
308
|
-
|
371
|
+
updates a batch of customers
|
372
|
+
|
309
373
|
|
310
|
-
[number] must be set in the objects, otherwise the object cannot be updated
|
311
374
|
|
312
375
|
### Example
|
313
376
|
```ruby
|
@@ -322,13 +385,13 @@ end
|
|
322
385
|
|
323
386
|
api_instance = KoronaClient::CustomersApi.new
|
324
387
|
|
325
|
-
korona_account_id =
|
388
|
+
korona_account_id = 'korona_account_id_example' # String | account id of the KORONA.cloud account
|
326
389
|
|
327
|
-
body = [KoronaClient::Customer.new] # Array<Customer> |
|
390
|
+
body = [KoronaClient::Customer.new] # Array<Customer> | array of existing customers (id or number required)
|
328
391
|
|
329
392
|
|
330
393
|
begin
|
331
|
-
#
|
394
|
+
#updates a batch of customers
|
332
395
|
result = api_instance.update_customers(korona_account_id, body)
|
333
396
|
p result
|
334
397
|
rescue KoronaClient::ApiError => e
|
@@ -340,8 +403,8 @@ end
|
|
340
403
|
|
341
404
|
Name | Type | Description | Notes
|
342
405
|
------------- | ------------- | ------------- | -------------
|
343
|
-
**korona_account_id** | **String**| the account
|
344
|
-
**body** | [**Array<Customer>**](Customer.md)|
|
406
|
+
**korona_account_id** | **String**| account id of the KORONA.cloud account |
|
407
|
+
**body** | [**Array<Customer>**](Customer.md)| array of existing customers (id or number required) |
|
345
408
|
|
346
409
|
### Return type
|
347
410
|
|