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
@@ -3,14 +3,14 @@
|
|
3
3
|
|
4
4
|
#Our api provides access to our cloud services
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
7
|
-
|
6
|
+
OpenAPI spec version: 2.11.21
|
7
|
+
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.8
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require
|
13
|
+
require 'uri'
|
14
14
|
|
15
15
|
module KoronaClient
|
16
16
|
class CurrenciesApi
|
@@ -19,42 +19,43 @@ module KoronaClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
|
23
22
|
# lists all currencies
|
24
23
|
#
|
25
|
-
# @param korona_account_id the account
|
24
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
26
25
|
# @param [Hash] opts the optional parameters
|
27
26
|
# @option opts [Integer] :page number of the page to fetch
|
28
27
|
# @option opts [Integer] :size amount of objects to return per page
|
29
28
|
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
30
29
|
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
31
30
|
# @option opts [BOOLEAN] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
31
|
+
# @option opts [String] :number number of the related object
|
32
32
|
# @return [ResultListCurrency]
|
33
33
|
def get_currencies(korona_account_id, opts = {})
|
34
34
|
data, _status_code, _headers = get_currencies_with_http_info(korona_account_id, opts)
|
35
|
-
|
35
|
+
data
|
36
36
|
end
|
37
37
|
|
38
38
|
# lists all currencies
|
39
39
|
#
|
40
|
-
# @param korona_account_id the account
|
40
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
41
41
|
# @param [Hash] opts the optional parameters
|
42
42
|
# @option opts [Integer] :page number of the page to fetch
|
43
43
|
# @option opts [Integer] :size amount of objects to return per page
|
44
44
|
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
45
45
|
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
46
46
|
# @option opts [BOOLEAN] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
47
|
+
# @option opts [String] :number number of the related object
|
47
48
|
# @return [Array<(ResultListCurrency, Fixnum, Hash)>] ResultListCurrency data, response status code and response headers
|
48
49
|
def get_currencies_with_http_info(korona_account_id, opts = {})
|
49
50
|
if @api_client.config.debugging
|
50
|
-
@api_client.config.logger.debug
|
51
|
+
@api_client.config.logger.debug 'Calling API: CurrenciesApi.get_currencies ...'
|
51
52
|
end
|
52
53
|
# verify the required parameter 'korona_account_id' is set
|
53
54
|
if @api_client.config.client_side_validation && korona_account_id.nil?
|
54
55
|
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling CurrenciesApi.get_currencies"
|
55
56
|
end
|
56
57
|
# resource path
|
57
|
-
local_var_path =
|
58
|
+
local_var_path = '/accounts/{koronaAccountId}/currencies'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)
|
58
59
|
|
59
60
|
# query parameters
|
60
61
|
query_params = {}
|
@@ -63,6 +64,7 @@ module KoronaClient
|
|
63
64
|
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
64
65
|
query_params[:'revision'] = opts[:'revision'] if !opts[:'revision'].nil?
|
65
66
|
query_params[:'includeDeleted'] = opts[:'include_deleted'] if !opts[:'include_deleted'].nil?
|
67
|
+
query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
|
66
68
|
|
67
69
|
# header parameters
|
68
70
|
header_params = {}
|
@@ -89,38 +91,37 @@ module KoronaClient
|
|
89
91
|
end
|
90
92
|
return data, status_code, headers
|
91
93
|
end
|
92
|
-
|
93
|
-
# lists the currency
|
94
|
+
# returns the single currency
|
94
95
|
#
|
95
|
-
# @param korona_account_id the account
|
96
|
-
# @param
|
96
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
97
|
+
# @param currency_id id of the related object (important: id should match the uuid-format)
|
97
98
|
# @param [Hash] opts the optional parameters
|
98
99
|
# @return [Currency]
|
99
|
-
def get_currency(korona_account_id,
|
100
|
-
data, _status_code, _headers = get_currency_with_http_info(korona_account_id,
|
101
|
-
|
100
|
+
def get_currency(korona_account_id, currency_id, opts = {})
|
101
|
+
data, _status_code, _headers = get_currency_with_http_info(korona_account_id, currency_id, opts)
|
102
|
+
data
|
102
103
|
end
|
103
104
|
|
104
|
-
#
|
105
|
+
# returns the single currency
|
105
106
|
#
|
106
|
-
# @param korona_account_id the account
|
107
|
-
# @param
|
107
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
108
|
+
# @param currency_id id of the related object (important: id should match the uuid-format)
|
108
109
|
# @param [Hash] opts the optional parameters
|
109
110
|
# @return [Array<(Currency, Fixnum, Hash)>] Currency data, response status code and response headers
|
110
|
-
def get_currency_with_http_info(korona_account_id,
|
111
|
+
def get_currency_with_http_info(korona_account_id, currency_id, opts = {})
|
111
112
|
if @api_client.config.debugging
|
112
|
-
@api_client.config.logger.debug
|
113
|
+
@api_client.config.logger.debug 'Calling API: CurrenciesApi.get_currency ...'
|
113
114
|
end
|
114
115
|
# verify the required parameter 'korona_account_id' is set
|
115
116
|
if @api_client.config.client_side_validation && korona_account_id.nil?
|
116
117
|
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling CurrenciesApi.get_currency"
|
117
118
|
end
|
118
|
-
# verify the required parameter '
|
119
|
-
if @api_client.config.client_side_validation &&
|
120
|
-
fail ArgumentError, "Missing the required parameter '
|
119
|
+
# verify the required parameter 'currency_id' is set
|
120
|
+
if @api_client.config.client_side_validation && currency_id.nil?
|
121
|
+
fail ArgumentError, "Missing the required parameter 'currency_id' when calling CurrenciesApi.get_currency"
|
121
122
|
end
|
122
123
|
# resource path
|
123
|
-
local_var_path =
|
124
|
+
local_var_path = '/accounts/{koronaAccountId}/currencies/{currencyId}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'currencyId' + '}', currency_id.to_s)
|
124
125
|
|
125
126
|
# query parameters
|
126
127
|
query_params = {}
|
@@ -3,14 +3,14 @@
|
|
3
3
|
|
4
4
|
#Our api provides access to our cloud services
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
7
|
-
|
6
|
+
OpenAPI spec version: 2.11.21
|
7
|
+
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.8
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require
|
13
|
+
require 'uri'
|
14
14
|
|
15
15
|
module KoronaClient
|
16
16
|
class CustomerGroupsApi
|
@@ -19,38 +19,37 @@ module KoronaClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
|
23
|
-
# lists the customer group
|
22
|
+
# returns the single customer group
|
24
23
|
#
|
25
|
-
# @param korona_account_id the account
|
26
|
-
# @param
|
24
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
25
|
+
# @param customer_group_id id of the related object (important: id should match the uuid-format)
|
27
26
|
# @param [Hash] opts the optional parameters
|
28
27
|
# @return [CustomerGroup]
|
29
|
-
def get_customer_group(korona_account_id,
|
30
|
-
data, _status_code, _headers = get_customer_group_with_http_info(korona_account_id,
|
31
|
-
|
28
|
+
def get_customer_group(korona_account_id, customer_group_id, opts = {})
|
29
|
+
data, _status_code, _headers = get_customer_group_with_http_info(korona_account_id, customer_group_id, opts)
|
30
|
+
data
|
32
31
|
end
|
33
32
|
|
34
|
-
#
|
33
|
+
# returns the single customer group
|
35
34
|
#
|
36
|
-
# @param korona_account_id the account
|
37
|
-
# @param
|
35
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
36
|
+
# @param customer_group_id id of the related object (important: id should match the uuid-format)
|
38
37
|
# @param [Hash] opts the optional parameters
|
39
38
|
# @return [Array<(CustomerGroup, Fixnum, Hash)>] CustomerGroup data, response status code and response headers
|
40
|
-
def get_customer_group_with_http_info(korona_account_id,
|
39
|
+
def get_customer_group_with_http_info(korona_account_id, customer_group_id, opts = {})
|
41
40
|
if @api_client.config.debugging
|
42
|
-
@api_client.config.logger.debug
|
41
|
+
@api_client.config.logger.debug 'Calling API: CustomerGroupsApi.get_customer_group ...'
|
43
42
|
end
|
44
43
|
# verify the required parameter 'korona_account_id' is set
|
45
44
|
if @api_client.config.client_side_validation && korona_account_id.nil?
|
46
45
|
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling CustomerGroupsApi.get_customer_group"
|
47
46
|
end
|
48
|
-
# verify the required parameter '
|
49
|
-
if @api_client.config.client_side_validation &&
|
50
|
-
fail ArgumentError, "Missing the required parameter '
|
47
|
+
# verify the required parameter 'customer_group_id' is set
|
48
|
+
if @api_client.config.client_side_validation && customer_group_id.nil?
|
49
|
+
fail ArgumentError, "Missing the required parameter 'customer_group_id' when calling CustomerGroupsApi.get_customer_group"
|
51
50
|
end
|
52
51
|
# resource path
|
53
|
-
local_var_path =
|
52
|
+
local_var_path = '/accounts/{koronaAccountId}/customerGroups/{customerGroupId}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'customerGroupId' + '}', customer_group_id.to_s)
|
54
53
|
|
55
54
|
# query parameters
|
56
55
|
query_params = {}
|
@@ -80,42 +79,43 @@ module KoronaClient
|
|
80
79
|
end
|
81
80
|
return data, status_code, headers
|
82
81
|
end
|
83
|
-
|
84
82
|
# lists all customer groups
|
85
83
|
#
|
86
|
-
# @param korona_account_id the account
|
84
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
87
85
|
# @param [Hash] opts the optional parameters
|
88
86
|
# @option opts [Integer] :page number of the page to fetch
|
89
87
|
# @option opts [Integer] :size amount of objects to return per page
|
90
88
|
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
91
89
|
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
92
90
|
# @option opts [BOOLEAN] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
91
|
+
# @option opts [String] :number number of the related object
|
93
92
|
# @return [ResultListCustomerGroup]
|
94
93
|
def get_customer_groups(korona_account_id, opts = {})
|
95
94
|
data, _status_code, _headers = get_customer_groups_with_http_info(korona_account_id, opts)
|
96
|
-
|
95
|
+
data
|
97
96
|
end
|
98
97
|
|
99
98
|
# lists all customer groups
|
100
99
|
#
|
101
|
-
# @param korona_account_id the account
|
100
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
102
101
|
# @param [Hash] opts the optional parameters
|
103
102
|
# @option opts [Integer] :page number of the page to fetch
|
104
103
|
# @option opts [Integer] :size amount of objects to return per page
|
105
104
|
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
106
105
|
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
107
106
|
# @option opts [BOOLEAN] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
107
|
+
# @option opts [String] :number number of the related object
|
108
108
|
# @return [Array<(ResultListCustomerGroup, Fixnum, Hash)>] ResultListCustomerGroup data, response status code and response headers
|
109
109
|
def get_customer_groups_with_http_info(korona_account_id, opts = {})
|
110
110
|
if @api_client.config.debugging
|
111
|
-
@api_client.config.logger.debug
|
111
|
+
@api_client.config.logger.debug 'Calling API: CustomerGroupsApi.get_customer_groups ...'
|
112
112
|
end
|
113
113
|
# verify the required parameter 'korona_account_id' is set
|
114
114
|
if @api_client.config.client_side_validation && korona_account_id.nil?
|
115
115
|
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling CustomerGroupsApi.get_customer_groups"
|
116
116
|
end
|
117
117
|
# resource path
|
118
|
-
local_var_path =
|
118
|
+
local_var_path = '/accounts/{koronaAccountId}/customerGroups'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)
|
119
119
|
|
120
120
|
# query parameters
|
121
121
|
query_params = {}
|
@@ -124,6 +124,7 @@ module KoronaClient
|
|
124
124
|
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
125
125
|
query_params[:'revision'] = opts[:'revision'] if !opts[:'revision'].nil?
|
126
126
|
query_params[:'includeDeleted'] = opts[:'include_deleted'] if !opts[:'include_deleted'].nil?
|
127
|
+
query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
|
127
128
|
|
128
129
|
# header parameters
|
129
130
|
header_params = {}
|
@@ -3,14 +3,14 @@
|
|
3
3
|
|
4
4
|
#Our api provides access to our cloud services
|
5
5
|
|
6
|
-
OpenAPI spec version:
|
7
|
-
|
6
|
+
OpenAPI spec version: 2.11.21
|
7
|
+
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.8
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require
|
13
|
+
require 'uri'
|
14
14
|
|
15
15
|
module KoronaClient
|
16
16
|
class CustomerOrdersApi
|
@@ -19,27 +19,26 @@ module KoronaClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
|
23
22
|
# adds a batch of new customer orders
|
24
23
|
#
|
25
|
-
# @param korona_account_id the account
|
26
|
-
# @param body
|
24
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
25
|
+
# @param body array of new customer orders
|
27
26
|
# @param [Hash] opts the optional parameters
|
28
27
|
# @return [Array<AddOrUpdateResult>]
|
29
28
|
def add_customer_orders(korona_account_id, body, opts = {})
|
30
29
|
data, _status_code, _headers = add_customer_orders_with_http_info(korona_account_id, body, opts)
|
31
|
-
|
30
|
+
data
|
32
31
|
end
|
33
32
|
|
34
33
|
# adds a batch of new customer orders
|
35
34
|
#
|
36
|
-
# @param korona_account_id the account
|
37
|
-
# @param body
|
35
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
36
|
+
# @param body array of new customer orders
|
38
37
|
# @param [Hash] opts the optional parameters
|
39
38
|
# @return [Array<(Array<AddOrUpdateResult>, Fixnum, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers
|
40
39
|
def add_customer_orders_with_http_info(korona_account_id, body, opts = {})
|
41
40
|
if @api_client.config.debugging
|
42
|
-
@api_client.config.logger.debug
|
41
|
+
@api_client.config.logger.debug 'Calling API: CustomerOrdersApi.add_customer_orders ...'
|
43
42
|
end
|
44
43
|
# verify the required parameter 'korona_account_id' is set
|
45
44
|
if @api_client.config.client_side_validation && korona_account_id.nil?
|
@@ -50,7 +49,7 @@ module KoronaClient
|
|
50
49
|
fail ArgumentError, "Missing the required parameter 'body' when calling CustomerOrdersApi.add_customer_orders"
|
51
50
|
end
|
52
51
|
# resource path
|
53
|
-
local_var_path =
|
52
|
+
local_var_path = '/accounts/{koronaAccountId}/customerOrders'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)
|
54
53
|
|
55
54
|
# query parameters
|
56
55
|
query_params = {}
|
@@ -80,41 +79,43 @@ module KoronaClient
|
|
80
79
|
end
|
81
80
|
return data, status_code, headers
|
82
81
|
end
|
83
|
-
|
84
|
-
# deletes the customer order
|
82
|
+
# deletes the single customer order
|
85
83
|
#
|
86
|
-
# @param korona_account_id the account
|
87
|
-
# @param
|
84
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
85
|
+
# @param customer_order_id id of the related object (important: id should match the uuid-format)
|
88
86
|
# @param [Hash] opts the optional parameters
|
87
|
+
# @option opts [String] :number number of the related object
|
89
88
|
# @return [nil]
|
90
|
-
def delete_customer_order(korona_account_id,
|
91
|
-
delete_customer_order_with_http_info(korona_account_id,
|
92
|
-
|
89
|
+
def delete_customer_order(korona_account_id, customer_order_id, opts = {})
|
90
|
+
delete_customer_order_with_http_info(korona_account_id, customer_order_id, opts)
|
91
|
+
nil
|
93
92
|
end
|
94
93
|
|
95
|
-
# deletes the customer order
|
94
|
+
# deletes the single customer order
|
96
95
|
#
|
97
|
-
# @param korona_account_id the account
|
98
|
-
# @param
|
96
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
97
|
+
# @param customer_order_id id of the related object (important: id should match the uuid-format)
|
99
98
|
# @param [Hash] opts the optional parameters
|
99
|
+
# @option opts [String] :number number of the related object
|
100
100
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
101
|
-
def delete_customer_order_with_http_info(korona_account_id,
|
101
|
+
def delete_customer_order_with_http_info(korona_account_id, customer_order_id, opts = {})
|
102
102
|
if @api_client.config.debugging
|
103
|
-
@api_client.config.logger.debug
|
103
|
+
@api_client.config.logger.debug 'Calling API: CustomerOrdersApi.delete_customer_order ...'
|
104
104
|
end
|
105
105
|
# verify the required parameter 'korona_account_id' is set
|
106
106
|
if @api_client.config.client_side_validation && korona_account_id.nil?
|
107
107
|
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling CustomerOrdersApi.delete_customer_order"
|
108
108
|
end
|
109
|
-
# verify the required parameter '
|
110
|
-
if @api_client.config.client_side_validation &&
|
111
|
-
fail ArgumentError, "Missing the required parameter '
|
109
|
+
# verify the required parameter 'customer_order_id' is set
|
110
|
+
if @api_client.config.client_side_validation && customer_order_id.nil?
|
111
|
+
fail ArgumentError, "Missing the required parameter 'customer_order_id' when calling CustomerOrdersApi.delete_customer_order"
|
112
112
|
end
|
113
113
|
# resource path
|
114
|
-
local_var_path =
|
114
|
+
local_var_path = '/accounts/{koronaAccountId}/customerOrders/{customerOrderId}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'customerOrderId' + '}', customer_order_id.to_s)
|
115
115
|
|
116
116
|
# query parameters
|
117
117
|
query_params = {}
|
118
|
+
query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
|
118
119
|
|
119
120
|
# header parameters
|
120
121
|
header_params = {}
|
@@ -140,38 +141,37 @@ module KoronaClient
|
|
140
141
|
end
|
141
142
|
return data, status_code, headers
|
142
143
|
end
|
143
|
-
|
144
|
-
# lists the customer order
|
144
|
+
# returns the single customer order
|
145
145
|
#
|
146
|
-
# @param korona_account_id the account
|
147
|
-
# @param
|
146
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
147
|
+
# @param customer_order_id id of the related object (important: id should match the uuid-format)
|
148
148
|
# @param [Hash] opts the optional parameters
|
149
149
|
# @return [CustomerOrder]
|
150
|
-
def get_customer_order(korona_account_id,
|
151
|
-
data, _status_code, _headers = get_customer_order_with_http_info(korona_account_id,
|
152
|
-
|
150
|
+
def get_customer_order(korona_account_id, customer_order_id, opts = {})
|
151
|
+
data, _status_code, _headers = get_customer_order_with_http_info(korona_account_id, customer_order_id, opts)
|
152
|
+
data
|
153
153
|
end
|
154
154
|
|
155
|
-
#
|
155
|
+
# returns the single customer order
|
156
156
|
#
|
157
|
-
# @param korona_account_id the account
|
158
|
-
# @param
|
157
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
158
|
+
# @param customer_order_id id of the related object (important: id should match the uuid-format)
|
159
159
|
# @param [Hash] opts the optional parameters
|
160
160
|
# @return [Array<(CustomerOrder, Fixnum, Hash)>] CustomerOrder data, response status code and response headers
|
161
|
-
def get_customer_order_with_http_info(korona_account_id,
|
161
|
+
def get_customer_order_with_http_info(korona_account_id, customer_order_id, opts = {})
|
162
162
|
if @api_client.config.debugging
|
163
|
-
@api_client.config.logger.debug
|
163
|
+
@api_client.config.logger.debug 'Calling API: CustomerOrdersApi.get_customer_order ...'
|
164
164
|
end
|
165
165
|
# verify the required parameter 'korona_account_id' is set
|
166
166
|
if @api_client.config.client_side_validation && korona_account_id.nil?
|
167
167
|
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling CustomerOrdersApi.get_customer_order"
|
168
168
|
end
|
169
|
-
# verify the required parameter '
|
170
|
-
if @api_client.config.client_side_validation &&
|
171
|
-
fail ArgumentError, "Missing the required parameter '
|
169
|
+
# verify the required parameter 'customer_order_id' is set
|
170
|
+
if @api_client.config.client_side_validation && customer_order_id.nil?
|
171
|
+
fail ArgumentError, "Missing the required parameter 'customer_order_id' when calling CustomerOrdersApi.get_customer_order"
|
172
172
|
end
|
173
173
|
# resource path
|
174
|
-
local_var_path =
|
174
|
+
local_var_path = '/accounts/{koronaAccountId}/customerOrders/{customerOrderId}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'customerOrderId' + '}', customer_order_id.to_s)
|
175
175
|
|
176
176
|
# query parameters
|
177
177
|
query_params = {}
|
@@ -201,10 +201,9 @@ module KoronaClient
|
|
201
201
|
end
|
202
202
|
return data, status_code, headers
|
203
203
|
end
|
204
|
-
|
205
204
|
# lists all customer orders
|
206
205
|
#
|
207
|
-
# @param korona_account_id the account
|
206
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
208
207
|
# @param [Hash] opts the optional parameters
|
209
208
|
# @option opts [Integer] :page number of the page to fetch
|
210
209
|
# @option opts [Integer] :size amount of objects to return per page
|
@@ -215,15 +214,16 @@ module KoronaClient
|
|
215
214
|
# @option opts [DateTime] :max_create_time max (inclusive) create time of the receipt (ISO 8601; date, time and timezone)
|
216
215
|
# @option opts [DateTime] :min_pick_up_time min (inclusive) pick up time of the receipt (ISO 8601; date, time and timezone)
|
217
216
|
# @option opts [DateTime] :max_pick_up_time max (inclusive) pick up time of the receipt (ISO 8601; date, time and timezone)
|
217
|
+
# @option opts [String] :number number of the related object
|
218
218
|
# @return [ResultListCustomerOrder]
|
219
219
|
def get_customer_orders(korona_account_id, opts = {})
|
220
220
|
data, _status_code, _headers = get_customer_orders_with_http_info(korona_account_id, opts)
|
221
|
-
|
221
|
+
data
|
222
222
|
end
|
223
223
|
|
224
224
|
# lists all customer orders
|
225
225
|
#
|
226
|
-
# @param korona_account_id the account
|
226
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
227
227
|
# @param [Hash] opts the optional parameters
|
228
228
|
# @option opts [Integer] :page number of the page to fetch
|
229
229
|
# @option opts [Integer] :size amount of objects to return per page
|
@@ -234,17 +234,18 @@ module KoronaClient
|
|
234
234
|
# @option opts [DateTime] :max_create_time max (inclusive) create time of the receipt (ISO 8601; date, time and timezone)
|
235
235
|
# @option opts [DateTime] :min_pick_up_time min (inclusive) pick up time of the receipt (ISO 8601; date, time and timezone)
|
236
236
|
# @option opts [DateTime] :max_pick_up_time max (inclusive) pick up time of the receipt (ISO 8601; date, time and timezone)
|
237
|
+
# @option opts [String] :number number of the related object
|
237
238
|
# @return [Array<(ResultListCustomerOrder, Fixnum, Hash)>] ResultListCustomerOrder data, response status code and response headers
|
238
239
|
def get_customer_orders_with_http_info(korona_account_id, opts = {})
|
239
240
|
if @api_client.config.debugging
|
240
|
-
@api_client.config.logger.debug
|
241
|
+
@api_client.config.logger.debug 'Calling API: CustomerOrdersApi.get_customer_orders ...'
|
241
242
|
end
|
242
243
|
# verify the required parameter 'korona_account_id' is set
|
243
244
|
if @api_client.config.client_side_validation && korona_account_id.nil?
|
244
245
|
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling CustomerOrdersApi.get_customer_orders"
|
245
246
|
end
|
246
247
|
# resource path
|
247
|
-
local_var_path =
|
248
|
+
local_var_path = '/accounts/{koronaAccountId}/customerOrders'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)
|
248
249
|
|
249
250
|
# query parameters
|
250
251
|
query_params = {}
|
@@ -257,6 +258,7 @@ module KoronaClient
|
|
257
258
|
query_params[:'maxCreateTime'] = opts[:'max_create_time'] if !opts[:'max_create_time'].nil?
|
258
259
|
query_params[:'minPickUpTime'] = opts[:'min_pick_up_time'] if !opts[:'min_pick_up_time'].nil?
|
259
260
|
query_params[:'maxPickUpTime'] = opts[:'max_pick_up_time'] if !opts[:'max_pick_up_time'].nil?
|
261
|
+
query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
|
260
262
|
|
261
263
|
# header parameters
|
262
264
|
header_params = {}
|
@@ -283,44 +285,43 @@ module KoronaClient
|
|
283
285
|
end
|
284
286
|
return data, status_code, headers
|
285
287
|
end
|
286
|
-
|
287
|
-
#
|
288
|
-
#
|
289
|
-
# @param
|
290
|
-
# @param customer_order_id_or_number id or number of the related object (important: if a number should match the uuid-format, the system will lookup for an id instead of a number)
|
288
|
+
# updates the single customer order
|
289
|
+
#
|
290
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
291
|
+
# @param customer_order_id id of the related object (important: id should match the uuid-format)
|
291
292
|
# @param body the properties to update of the customer order
|
292
293
|
# @param [Hash] opts the optional parameters
|
293
294
|
# @return [nil]
|
294
|
-
def update_customer_order(korona_account_id,
|
295
|
-
update_customer_order_with_http_info(korona_account_id,
|
296
|
-
|
295
|
+
def update_customer_order(korona_account_id, customer_order_id, body, opts = {})
|
296
|
+
update_customer_order_with_http_info(korona_account_id, customer_order_id, body, opts)
|
297
|
+
nil
|
297
298
|
end
|
298
299
|
|
299
|
-
#
|
300
|
-
#
|
301
|
-
# @param korona_account_id the account
|
302
|
-
# @param
|
300
|
+
# updates the single customer order
|
301
|
+
#
|
302
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
303
|
+
# @param customer_order_id id of the related object (important: id should match the uuid-format)
|
303
304
|
# @param body the properties to update of the customer order
|
304
305
|
# @param [Hash] opts the optional parameters
|
305
306
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
306
|
-
def update_customer_order_with_http_info(korona_account_id,
|
307
|
+
def update_customer_order_with_http_info(korona_account_id, customer_order_id, body, opts = {})
|
307
308
|
if @api_client.config.debugging
|
308
|
-
@api_client.config.logger.debug
|
309
|
+
@api_client.config.logger.debug 'Calling API: CustomerOrdersApi.update_customer_order ...'
|
309
310
|
end
|
310
311
|
# verify the required parameter 'korona_account_id' is set
|
311
312
|
if @api_client.config.client_side_validation && korona_account_id.nil?
|
312
313
|
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling CustomerOrdersApi.update_customer_order"
|
313
314
|
end
|
314
|
-
# verify the required parameter '
|
315
|
-
if @api_client.config.client_side_validation &&
|
316
|
-
fail ArgumentError, "Missing the required parameter '
|
315
|
+
# verify the required parameter 'customer_order_id' is set
|
316
|
+
if @api_client.config.client_side_validation && customer_order_id.nil?
|
317
|
+
fail ArgumentError, "Missing the required parameter 'customer_order_id' when calling CustomerOrdersApi.update_customer_order"
|
317
318
|
end
|
318
319
|
# verify the required parameter 'body' is set
|
319
320
|
if @api_client.config.client_side_validation && body.nil?
|
320
321
|
fail ArgumentError, "Missing the required parameter 'body' when calling CustomerOrdersApi.update_customer_order"
|
321
322
|
end
|
322
323
|
# resource path
|
323
|
-
local_var_path =
|
324
|
+
local_var_path = '/accounts/{koronaAccountId}/customerOrders/{customerOrderId}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'customerOrderId' + '}', customer_order_id.to_s)
|
324
325
|
|
325
326
|
# query parameters
|
326
327
|
query_params = {}
|
@@ -349,27 +350,26 @@ module KoronaClient
|
|
349
350
|
end
|
350
351
|
return data, status_code, headers
|
351
352
|
end
|
352
|
-
|
353
|
-
# changes a batch of customer orders
|
353
|
+
# updates a batch of customer orders
|
354
354
|
# [number] must be set in the objects, otherwise the object cannot be updated
|
355
|
-
# @param korona_account_id the account
|
356
|
-
# @param body
|
355
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
356
|
+
# @param body an array of existing customer orders
|
357
357
|
# @param [Hash] opts the optional parameters
|
358
358
|
# @return [Array<AddOrUpdateResult>]
|
359
359
|
def update_customer_orders(korona_account_id, body, opts = {})
|
360
360
|
data, _status_code, _headers = update_customer_orders_with_http_info(korona_account_id, body, opts)
|
361
|
-
|
361
|
+
data
|
362
362
|
end
|
363
363
|
|
364
|
-
#
|
364
|
+
# updates a batch of customer orders
|
365
365
|
# [number] must be set in the objects, otherwise the object cannot be updated
|
366
|
-
# @param korona_account_id the account
|
367
|
-
# @param body
|
366
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
367
|
+
# @param body an array of existing customer orders
|
368
368
|
# @param [Hash] opts the optional parameters
|
369
369
|
# @return [Array<(Array<AddOrUpdateResult>, Fixnum, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers
|
370
370
|
def update_customer_orders_with_http_info(korona_account_id, body, opts = {})
|
371
371
|
if @api_client.config.debugging
|
372
|
-
@api_client.config.logger.debug
|
372
|
+
@api_client.config.logger.debug 'Calling API: CustomerOrdersApi.update_customer_orders ...'
|
373
373
|
end
|
374
374
|
# verify the required parameter 'korona_account_id' is set
|
375
375
|
if @api_client.config.client_side_validation && korona_account_id.nil?
|
@@ -380,7 +380,7 @@ module KoronaClient
|
|
380
380
|
fail ArgumentError, "Missing the required parameter 'body' when calling CustomerOrdersApi.update_customer_orders"
|
381
381
|
end
|
382
382
|
# resource path
|
383
|
-
local_var_path =
|
383
|
+
local_var_path = '/accounts/{koronaAccountId}/customerOrders'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)
|
384
384
|
|
385
385
|
# query parameters
|
386
386
|
query_params = {}
|