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 PaymentMethodsApi
|
@@ -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 payment method
|
22
|
+
# returns the single payment method
|
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 payment_method_id id of the related object (important: id should match the uuid-format)
|
27
26
|
# @param [Hash] opts the optional parameters
|
28
27
|
# @return [PaymentMethod]
|
29
|
-
def get_payment_method(korona_account_id,
|
30
|
-
data, _status_code, _headers = get_payment_method_with_http_info(korona_account_id,
|
31
|
-
|
28
|
+
def get_payment_method(korona_account_id, payment_method_id, opts = {})
|
29
|
+
data, _status_code, _headers = get_payment_method_with_http_info(korona_account_id, payment_method_id, opts)
|
30
|
+
data
|
32
31
|
end
|
33
32
|
|
34
|
-
#
|
33
|
+
# returns the single payment method
|
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 payment_method_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<(PaymentMethod, Fixnum, Hash)>] PaymentMethod data, response status code and response headers
|
40
|
-
def get_payment_method_with_http_info(korona_account_id,
|
39
|
+
def get_payment_method_with_http_info(korona_account_id, payment_method_id, opts = {})
|
41
40
|
if @api_client.config.debugging
|
42
|
-
@api_client.config.logger.debug
|
41
|
+
@api_client.config.logger.debug 'Calling API: PaymentMethodsApi.get_payment_method ...'
|
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 PaymentMethodsApi.get_payment_method"
|
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 'payment_method_id' is set
|
48
|
+
if @api_client.config.client_side_validation && payment_method_id.nil?
|
49
|
+
fail ArgumentError, "Missing the required parameter 'payment_method_id' when calling PaymentMethodsApi.get_payment_method"
|
51
50
|
end
|
52
51
|
# resource path
|
53
|
-
local_var_path =
|
52
|
+
local_var_path = '/accounts/{koronaAccountId}/paymentMethods/{paymentMethodId}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'paymentMethodId' + '}', payment_method_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 payment methods
|
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 [ResultListPaymentMethod]
|
94
93
|
def get_payment_methods(korona_account_id, opts = {})
|
95
94
|
data, _status_code, _headers = get_payment_methods_with_http_info(korona_account_id, opts)
|
96
|
-
|
95
|
+
data
|
97
96
|
end
|
98
97
|
|
99
98
|
# lists all payment methods
|
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<(ResultListPaymentMethod, Fixnum, Hash)>] ResultListPaymentMethod data, response status code and response headers
|
109
109
|
def get_payment_methods_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: PaymentMethodsApi.get_payment_methods ...'
|
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 PaymentMethodsApi.get_payment_methods"
|
116
116
|
end
|
117
117
|
# resource path
|
118
|
-
local_var_path =
|
118
|
+
local_var_path = '/accounts/{koronaAccountId}/paymentMethods'.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 PointsOfSaleApi
|
@@ -19,46 +19,45 @@ 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 point of sale-related end-of-day-statements
|
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 point_of_sale_id id of the related object (important: id should match the uuid-format)
|
27
26
|
# @param coupling_id the coupling-id of the device
|
28
27
|
# @param [Hash] opts the optional parameters
|
29
28
|
# @option opts [Array<EndOfDayStatement>] :body the end-of-day-statements to add
|
30
29
|
# @return [Array<AddOrUpdateResult>]
|
31
|
-
def add_point_of_sale_end_of_day_statements(korona_account_id,
|
32
|
-
data, _status_code, _headers = add_point_of_sale_end_of_day_statements_with_http_info(korona_account_id,
|
33
|
-
|
30
|
+
def add_point_of_sale_end_of_day_statements(korona_account_id, point_of_sale_id, coupling_id, opts = {})
|
31
|
+
data, _status_code, _headers = add_point_of_sale_end_of_day_statements_with_http_info(korona_account_id, point_of_sale_id, coupling_id, opts)
|
32
|
+
data
|
34
33
|
end
|
35
34
|
|
36
35
|
# adds a batch of point of sale-related end-of-day-statements
|
37
36
|
#
|
38
|
-
# @param korona_account_id the account
|
39
|
-
# @param
|
37
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
38
|
+
# @param point_of_sale_id id of the related object (important: id should match the uuid-format)
|
40
39
|
# @param coupling_id the coupling-id of the device
|
41
40
|
# @param [Hash] opts the optional parameters
|
42
41
|
# @option opts [Array<EndOfDayStatement>] :body the end-of-day-statements to add
|
43
42
|
# @return [Array<(Array<AddOrUpdateResult>, Fixnum, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers
|
44
|
-
def add_point_of_sale_end_of_day_statements_with_http_info(korona_account_id,
|
43
|
+
def add_point_of_sale_end_of_day_statements_with_http_info(korona_account_id, point_of_sale_id, coupling_id, opts = {})
|
45
44
|
if @api_client.config.debugging
|
46
|
-
@api_client.config.logger.debug
|
45
|
+
@api_client.config.logger.debug 'Calling API: PointsOfSaleApi.add_point_of_sale_end_of_day_statements ...'
|
47
46
|
end
|
48
47
|
# verify the required parameter 'korona_account_id' is set
|
49
48
|
if @api_client.config.client_side_validation && korona_account_id.nil?
|
50
49
|
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling PointsOfSaleApi.add_point_of_sale_end_of_day_statements"
|
51
50
|
end
|
52
|
-
# verify the required parameter '
|
53
|
-
if @api_client.config.client_side_validation &&
|
54
|
-
fail ArgumentError, "Missing the required parameter '
|
51
|
+
# verify the required parameter 'point_of_sale_id' is set
|
52
|
+
if @api_client.config.client_side_validation && point_of_sale_id.nil?
|
53
|
+
fail ArgumentError, "Missing the required parameter 'point_of_sale_id' when calling PointsOfSaleApi.add_point_of_sale_end_of_day_statements"
|
55
54
|
end
|
56
55
|
# verify the required parameter 'coupling_id' is set
|
57
56
|
if @api_client.config.client_side_validation && coupling_id.nil?
|
58
57
|
fail ArgumentError, "Missing the required parameter 'coupling_id' when calling PointsOfSaleApi.add_point_of_sale_end_of_day_statements"
|
59
58
|
end
|
60
59
|
# resource path
|
61
|
-
local_var_path =
|
60
|
+
local_var_path = '/accounts/{koronaAccountId}/pointsOfSale/{pointOfSaleId}/endOfDayStatements'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'pointOfSaleId' + '}', point_of_sale_id.to_s)
|
62
61
|
|
63
62
|
# query parameters
|
64
63
|
query_params = {}
|
@@ -89,46 +88,45 @@ module KoronaClient
|
|
89
88
|
end
|
90
89
|
return data, status_code, headers
|
91
90
|
end
|
92
|
-
|
93
91
|
# adds a batch of point of sale-related receipts
|
94
92
|
#
|
95
|
-
# @param korona_account_id the account
|
96
|
-
# @param
|
93
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
94
|
+
# @param point_of_sale_id id of the related object (important: id should match the uuid-format)
|
97
95
|
# @param coupling_id the coupling-id of the device
|
98
96
|
# @param [Hash] opts the optional parameters
|
99
97
|
# @option opts [Array<Receipt>] :body the receipts to add
|
100
98
|
# @return [Array<AddOrUpdateResult>]
|
101
|
-
def add_point_of_sale_receipts(korona_account_id,
|
102
|
-
data, _status_code, _headers = add_point_of_sale_receipts_with_http_info(korona_account_id,
|
103
|
-
|
99
|
+
def add_point_of_sale_receipts(korona_account_id, point_of_sale_id, coupling_id, opts = {})
|
100
|
+
data, _status_code, _headers = add_point_of_sale_receipts_with_http_info(korona_account_id, point_of_sale_id, coupling_id, opts)
|
101
|
+
data
|
104
102
|
end
|
105
103
|
|
106
104
|
# adds a batch of point of sale-related receipts
|
107
105
|
#
|
108
|
-
# @param korona_account_id the account
|
109
|
-
# @param
|
106
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
107
|
+
# @param point_of_sale_id id of the related object (important: id should match the uuid-format)
|
110
108
|
# @param coupling_id the coupling-id of the device
|
111
109
|
# @param [Hash] opts the optional parameters
|
112
110
|
# @option opts [Array<Receipt>] :body the receipts to add
|
113
111
|
# @return [Array<(Array<AddOrUpdateResult>, Fixnum, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers
|
114
|
-
def add_point_of_sale_receipts_with_http_info(korona_account_id,
|
112
|
+
def add_point_of_sale_receipts_with_http_info(korona_account_id, point_of_sale_id, coupling_id, opts = {})
|
115
113
|
if @api_client.config.debugging
|
116
|
-
@api_client.config.logger.debug
|
114
|
+
@api_client.config.logger.debug 'Calling API: PointsOfSaleApi.add_point_of_sale_receipts ...'
|
117
115
|
end
|
118
116
|
# verify the required parameter 'korona_account_id' is set
|
119
117
|
if @api_client.config.client_side_validation && korona_account_id.nil?
|
120
118
|
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling PointsOfSaleApi.add_point_of_sale_receipts"
|
121
119
|
end
|
122
|
-
# verify the required parameter '
|
123
|
-
if @api_client.config.client_side_validation &&
|
124
|
-
fail ArgumentError, "Missing the required parameter '
|
120
|
+
# verify the required parameter 'point_of_sale_id' is set
|
121
|
+
if @api_client.config.client_side_validation && point_of_sale_id.nil?
|
122
|
+
fail ArgumentError, "Missing the required parameter 'point_of_sale_id' when calling PointsOfSaleApi.add_point_of_sale_receipts"
|
125
123
|
end
|
126
124
|
# verify the required parameter 'coupling_id' is set
|
127
125
|
if @api_client.config.client_side_validation && coupling_id.nil?
|
128
126
|
fail ArgumentError, "Missing the required parameter 'coupling_id' when calling PointsOfSaleApi.add_point_of_sale_receipts"
|
129
127
|
end
|
130
128
|
# resource path
|
131
|
-
local_var_path =
|
129
|
+
local_var_path = '/accounts/{koronaAccountId}/pointsOfSale/{pointOfSaleId}/receipts'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'pointOfSaleId' + '}', point_of_sale_id.to_s)
|
132
130
|
|
133
131
|
# query parameters
|
134
132
|
query_params = {}
|
@@ -159,40 +157,39 @@ module KoronaClient
|
|
159
157
|
end
|
160
158
|
return data, status_code, headers
|
161
159
|
end
|
162
|
-
|
163
|
-
# lists the point of sale
|
160
|
+
# returns the single point of sale
|
164
161
|
#
|
165
|
-
# @param korona_account_id the account
|
166
|
-
# @param
|
162
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
163
|
+
# @param point_of_sale_id the number of the point of sale
|
167
164
|
# @param [Hash] opts the optional parameters
|
168
165
|
# @option opts [String] :coupling_id the coupling-id of the device. It can be set to check whether your coupling-id is correct or not (works only, if point of sale is external).
|
169
166
|
# @return [Pos]
|
170
|
-
def get_point_of_sale(korona_account_id,
|
171
|
-
data, _status_code, _headers = get_point_of_sale_with_http_info(korona_account_id,
|
172
|
-
|
167
|
+
def get_point_of_sale(korona_account_id, point_of_sale_id, opts = {})
|
168
|
+
data, _status_code, _headers = get_point_of_sale_with_http_info(korona_account_id, point_of_sale_id, opts)
|
169
|
+
data
|
173
170
|
end
|
174
171
|
|
175
|
-
#
|
172
|
+
# returns the single point of sale
|
176
173
|
#
|
177
|
-
# @param korona_account_id the account
|
178
|
-
# @param
|
174
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
175
|
+
# @param point_of_sale_id the number of the point of sale
|
179
176
|
# @param [Hash] opts the optional parameters
|
180
177
|
# @option opts [String] :coupling_id the coupling-id of the device. It can be set to check whether your coupling-id is correct or not (works only, if point of sale is external).
|
181
178
|
# @return [Array<(Pos, Fixnum, Hash)>] Pos data, response status code and response headers
|
182
|
-
def get_point_of_sale_with_http_info(korona_account_id,
|
179
|
+
def get_point_of_sale_with_http_info(korona_account_id, point_of_sale_id, opts = {})
|
183
180
|
if @api_client.config.debugging
|
184
|
-
@api_client.config.logger.debug
|
181
|
+
@api_client.config.logger.debug 'Calling API: PointsOfSaleApi.get_point_of_sale ...'
|
185
182
|
end
|
186
183
|
# verify the required parameter 'korona_account_id' is set
|
187
184
|
if @api_client.config.client_side_validation && korona_account_id.nil?
|
188
185
|
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling PointsOfSaleApi.get_point_of_sale"
|
189
186
|
end
|
190
|
-
# verify the required parameter '
|
191
|
-
if @api_client.config.client_side_validation &&
|
192
|
-
fail ArgumentError, "Missing the required parameter '
|
187
|
+
# verify the required parameter 'point_of_sale_id' is set
|
188
|
+
if @api_client.config.client_side_validation && point_of_sale_id.nil?
|
189
|
+
fail ArgumentError, "Missing the required parameter 'point_of_sale_id' when calling PointsOfSaleApi.get_point_of_sale"
|
193
190
|
end
|
194
191
|
# resource path
|
195
|
-
local_var_path =
|
192
|
+
local_var_path = '/accounts/{koronaAccountId}/pointsOfSale/{pointOfSaleId}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'pointOfSaleId' + '}', point_of_sale_id.to_s)
|
196
193
|
|
197
194
|
# query parameters
|
198
195
|
query_params = {}
|
@@ -223,56 +220,51 @@ module KoronaClient
|
|
223
220
|
end
|
224
221
|
return data, status_code, headers
|
225
222
|
end
|
226
|
-
|
227
223
|
# lists all point of sale-related end-of-day-statements
|
228
224
|
#
|
229
|
-
# @param korona_account_id the account
|
230
|
-
# @param
|
231
|
-
# @param coupling_id the coupling-id of the device
|
225
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
226
|
+
# @param point_of_sale_id id of the related object (important: id should match the uuid-format)
|
232
227
|
# @param [Hash] opts the optional parameters
|
228
|
+
# @option opts [String] :coupling_id the coupling-id of the device. It can be set to check whether your coupling-id is correct or not (works only, if point of sale is external).
|
233
229
|
# @option opts [Integer] :page number of the page to fetch
|
234
230
|
# @option opts [Integer] :size amount of objects to return per page
|
235
231
|
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
236
232
|
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
237
233
|
# @return [ResultListEndOfDayStatement]
|
238
|
-
def get_point_of_sale_end_of_day_statements(korona_account_id,
|
239
|
-
data, _status_code, _headers = get_point_of_sale_end_of_day_statements_with_http_info(korona_account_id,
|
240
|
-
|
234
|
+
def get_point_of_sale_end_of_day_statements(korona_account_id, point_of_sale_id, opts = {})
|
235
|
+
data, _status_code, _headers = get_point_of_sale_end_of_day_statements_with_http_info(korona_account_id, point_of_sale_id, opts)
|
236
|
+
data
|
241
237
|
end
|
242
238
|
|
243
239
|
# lists all point of sale-related end-of-day-statements
|
244
240
|
#
|
245
|
-
# @param korona_account_id the account
|
246
|
-
# @param
|
247
|
-
# @param coupling_id the coupling-id of the device
|
241
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
242
|
+
# @param point_of_sale_id id of the related object (important: id should match the uuid-format)
|
248
243
|
# @param [Hash] opts the optional parameters
|
244
|
+
# @option opts [String] :coupling_id the coupling-id of the device. It can be set to check whether your coupling-id is correct or not (works only, if point of sale is external).
|
249
245
|
# @option opts [Integer] :page number of the page to fetch
|
250
246
|
# @option opts [Integer] :size amount of objects to return per page
|
251
247
|
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
252
248
|
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
253
249
|
# @return [Array<(ResultListEndOfDayStatement, Fixnum, Hash)>] ResultListEndOfDayStatement data, response status code and response headers
|
254
|
-
def get_point_of_sale_end_of_day_statements_with_http_info(korona_account_id,
|
250
|
+
def get_point_of_sale_end_of_day_statements_with_http_info(korona_account_id, point_of_sale_id, opts = {})
|
255
251
|
if @api_client.config.debugging
|
256
|
-
@api_client.config.logger.debug
|
252
|
+
@api_client.config.logger.debug 'Calling API: PointsOfSaleApi.get_point_of_sale_end_of_day_statements ...'
|
257
253
|
end
|
258
254
|
# verify the required parameter 'korona_account_id' is set
|
259
255
|
if @api_client.config.client_side_validation && korona_account_id.nil?
|
260
256
|
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling PointsOfSaleApi.get_point_of_sale_end_of_day_statements"
|
261
257
|
end
|
262
|
-
# verify the required parameter '
|
263
|
-
if @api_client.config.client_side_validation &&
|
264
|
-
fail ArgumentError, "Missing the required parameter '
|
265
|
-
end
|
266
|
-
# verify the required parameter 'coupling_id' is set
|
267
|
-
if @api_client.config.client_side_validation && coupling_id.nil?
|
268
|
-
fail ArgumentError, "Missing the required parameter 'coupling_id' when calling PointsOfSaleApi.get_point_of_sale_end_of_day_statements"
|
258
|
+
# verify the required parameter 'point_of_sale_id' is set
|
259
|
+
if @api_client.config.client_side_validation && point_of_sale_id.nil?
|
260
|
+
fail ArgumentError, "Missing the required parameter 'point_of_sale_id' when calling PointsOfSaleApi.get_point_of_sale_end_of_day_statements"
|
269
261
|
end
|
270
262
|
# resource path
|
271
|
-
local_var_path =
|
263
|
+
local_var_path = '/accounts/{koronaAccountId}/pointsOfSale/{pointOfSaleId}/endOfDayStatements'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'pointOfSaleId' + '}', point_of_sale_id.to_s)
|
272
264
|
|
273
265
|
# query parameters
|
274
266
|
query_params = {}
|
275
|
-
query_params[:'couplingId'] = coupling_id
|
267
|
+
query_params[:'couplingId'] = opts[:'coupling_id'] if !opts[:'coupling_id'].nil?
|
276
268
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
277
269
|
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
278
270
|
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
@@ -303,46 +295,45 @@ module KoronaClient
|
|
303
295
|
end
|
304
296
|
return data, status_code, headers
|
305
297
|
end
|
306
|
-
|
307
|
-
# lists a single point of sale-related receipt
|
298
|
+
# returns the single point of sale-related receipt
|
308
299
|
#
|
309
|
-
# @param korona_account_id the account
|
310
|
-
# @param
|
300
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
301
|
+
# @param point_of_sale_id id of the related object (important: id should match the uuid-format)
|
311
302
|
# @param receipt_id the id of the receipt
|
312
303
|
# @param [Hash] opts the optional parameters
|
313
304
|
# @option opts [String] :coupling_id the coupling-id of the device. It can be set to check whether your coupling-id is correct or not (works only, if point of sale is external).
|
314
305
|
# @return [Receipt]
|
315
|
-
def get_point_of_sale_receipt(korona_account_id,
|
316
|
-
data, _status_code, _headers = get_point_of_sale_receipt_with_http_info(korona_account_id,
|
317
|
-
|
306
|
+
def get_point_of_sale_receipt(korona_account_id, point_of_sale_id, receipt_id, opts = {})
|
307
|
+
data, _status_code, _headers = get_point_of_sale_receipt_with_http_info(korona_account_id, point_of_sale_id, receipt_id, opts)
|
308
|
+
data
|
318
309
|
end
|
319
310
|
|
320
|
-
#
|
311
|
+
# returns the single point of sale-related receipt
|
321
312
|
#
|
322
|
-
# @param korona_account_id the account
|
323
|
-
# @param
|
313
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
314
|
+
# @param point_of_sale_id id of the related object (important: id should match the uuid-format)
|
324
315
|
# @param receipt_id the id of the receipt
|
325
316
|
# @param [Hash] opts the optional parameters
|
326
317
|
# @option opts [String] :coupling_id the coupling-id of the device. It can be set to check whether your coupling-id is correct or not (works only, if point of sale is external).
|
327
318
|
# @return [Array<(Receipt, Fixnum, Hash)>] Receipt data, response status code and response headers
|
328
|
-
def get_point_of_sale_receipt_with_http_info(korona_account_id,
|
319
|
+
def get_point_of_sale_receipt_with_http_info(korona_account_id, point_of_sale_id, receipt_id, opts = {})
|
329
320
|
if @api_client.config.debugging
|
330
|
-
@api_client.config.logger.debug
|
321
|
+
@api_client.config.logger.debug 'Calling API: PointsOfSaleApi.get_point_of_sale_receipt ...'
|
331
322
|
end
|
332
323
|
# verify the required parameter 'korona_account_id' is set
|
333
324
|
if @api_client.config.client_side_validation && korona_account_id.nil?
|
334
325
|
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling PointsOfSaleApi.get_point_of_sale_receipt"
|
335
326
|
end
|
336
|
-
# verify the required parameter '
|
337
|
-
if @api_client.config.client_side_validation &&
|
338
|
-
fail ArgumentError, "Missing the required parameter '
|
327
|
+
# verify the required parameter 'point_of_sale_id' is set
|
328
|
+
if @api_client.config.client_side_validation && point_of_sale_id.nil?
|
329
|
+
fail ArgumentError, "Missing the required parameter 'point_of_sale_id' when calling PointsOfSaleApi.get_point_of_sale_receipt"
|
339
330
|
end
|
340
331
|
# verify the required parameter 'receipt_id' is set
|
341
332
|
if @api_client.config.client_side_validation && receipt_id.nil?
|
342
333
|
fail ArgumentError, "Missing the required parameter 'receipt_id' when calling PointsOfSaleApi.get_point_of_sale_receipt"
|
343
334
|
end
|
344
335
|
# resource path
|
345
|
-
local_var_path =
|
336
|
+
local_var_path = '/accounts/{koronaAccountId}/pointsOfSale/{pointOfSaleId}/receipts/{receiptId}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'pointOfSaleId' + '}', point_of_sale_id.to_s).sub('{' + 'receiptId' + '}', receipt_id.to_s)
|
346
337
|
|
347
338
|
# query parameters
|
348
339
|
query_params = {}
|
@@ -373,11 +364,10 @@ module KoronaClient
|
|
373
364
|
end
|
374
365
|
return data, status_code, headers
|
375
366
|
end
|
376
|
-
|
377
367
|
# lists all point of sale-related receipts
|
378
368
|
#
|
379
|
-
# @param korona_account_id the account
|
380
|
-
# @param
|
369
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
370
|
+
# @param point_of_sale_id id of the related object (important: id should match the uuid-format)
|
381
371
|
# @param [Hash] opts the optional parameters
|
382
372
|
# @option opts [String] :coupling_id the coupling-id of the device. It can be set to check whether your coupling-id is correct or not (works only, if point of sale is external).
|
383
373
|
# @option opts [Integer] :page number of the page to fetch
|
@@ -387,16 +377,19 @@ module KoronaClient
|
|
387
377
|
# @option opts [Integer] :z_count z-count of the receipt
|
388
378
|
# @option opts [DateTime] :min_create_time min (inclusive) create time of the receipt (ISO 8601; date, time and timezone)
|
389
379
|
# @option opts [DateTime] :max_create_time max (inclusive) create time of the receipt (ISO 8601; date, time and timezone)
|
380
|
+
# @option opts [String] :number number of the related object
|
381
|
+
# @option opts [DateTime] :min_booking_time min (inclusive) booking time of the receipt (ISO 8601; date, time and timezone)
|
382
|
+
# @option opts [DateTime] :max_booking_time max (inclusive) booking time of the receipt (ISO 8601; date, time and timezone)
|
390
383
|
# @return [ResultListReceipt]
|
391
|
-
def get_point_of_sale_receipts(korona_account_id,
|
392
|
-
data, _status_code, _headers = get_point_of_sale_receipts_with_http_info(korona_account_id,
|
393
|
-
|
384
|
+
def get_point_of_sale_receipts(korona_account_id, point_of_sale_id, opts = {})
|
385
|
+
data, _status_code, _headers = get_point_of_sale_receipts_with_http_info(korona_account_id, point_of_sale_id, opts)
|
386
|
+
data
|
394
387
|
end
|
395
388
|
|
396
389
|
# lists all point of sale-related receipts
|
397
390
|
#
|
398
|
-
# @param korona_account_id the account
|
399
|
-
# @param
|
391
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
392
|
+
# @param point_of_sale_id id of the related object (important: id should match the uuid-format)
|
400
393
|
# @param [Hash] opts the optional parameters
|
401
394
|
# @option opts [String] :coupling_id the coupling-id of the device. It can be set to check whether your coupling-id is correct or not (works only, if point of sale is external).
|
402
395
|
# @option opts [Integer] :page number of the page to fetch
|
@@ -406,21 +399,24 @@ module KoronaClient
|
|
406
399
|
# @option opts [Integer] :z_count z-count of the receipt
|
407
400
|
# @option opts [DateTime] :min_create_time min (inclusive) create time of the receipt (ISO 8601; date, time and timezone)
|
408
401
|
# @option opts [DateTime] :max_create_time max (inclusive) create time of the receipt (ISO 8601; date, time and timezone)
|
402
|
+
# @option opts [String] :number number of the related object
|
403
|
+
# @option opts [DateTime] :min_booking_time min (inclusive) booking time of the receipt (ISO 8601; date, time and timezone)
|
404
|
+
# @option opts [DateTime] :max_booking_time max (inclusive) booking time of the receipt (ISO 8601; date, time and timezone)
|
409
405
|
# @return [Array<(ResultListReceipt, Fixnum, Hash)>] ResultListReceipt data, response status code and response headers
|
410
|
-
def get_point_of_sale_receipts_with_http_info(korona_account_id,
|
406
|
+
def get_point_of_sale_receipts_with_http_info(korona_account_id, point_of_sale_id, opts = {})
|
411
407
|
if @api_client.config.debugging
|
412
|
-
@api_client.config.logger.debug
|
408
|
+
@api_client.config.logger.debug 'Calling API: PointsOfSaleApi.get_point_of_sale_receipts ...'
|
413
409
|
end
|
414
410
|
# verify the required parameter 'korona_account_id' is set
|
415
411
|
if @api_client.config.client_side_validation && korona_account_id.nil?
|
416
412
|
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling PointsOfSaleApi.get_point_of_sale_receipts"
|
417
413
|
end
|
418
|
-
# verify the required parameter '
|
419
|
-
if @api_client.config.client_side_validation &&
|
420
|
-
fail ArgumentError, "Missing the required parameter '
|
414
|
+
# verify the required parameter 'point_of_sale_id' is set
|
415
|
+
if @api_client.config.client_side_validation && point_of_sale_id.nil?
|
416
|
+
fail ArgumentError, "Missing the required parameter 'point_of_sale_id' when calling PointsOfSaleApi.get_point_of_sale_receipts"
|
421
417
|
end
|
422
418
|
# resource path
|
423
|
-
local_var_path =
|
419
|
+
local_var_path = '/accounts/{koronaAccountId}/pointsOfSale/{pointOfSaleId}/receipts'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'pointOfSaleId' + '}', point_of_sale_id.to_s)
|
424
420
|
|
425
421
|
# query parameters
|
426
422
|
query_params = {}
|
@@ -432,6 +428,9 @@ module KoronaClient
|
|
432
428
|
query_params[:'zCount'] = opts[:'z_count'] if !opts[:'z_count'].nil?
|
433
429
|
query_params[:'minCreateTime'] = opts[:'min_create_time'] if !opts[:'min_create_time'].nil?
|
434
430
|
query_params[:'maxCreateTime'] = opts[:'max_create_time'] if !opts[:'max_create_time'].nil?
|
431
|
+
query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
|
432
|
+
query_params[:'minBookingTime'] = opts[:'min_booking_time'] if !opts[:'min_booking_time'].nil?
|
433
|
+
query_params[:'maxBookingTime'] = opts[:'max_booking_time'] if !opts[:'max_booking_time'].nil?
|
435
434
|
|
436
435
|
# header parameters
|
437
436
|
header_params = {}
|
@@ -458,42 +457,47 @@ module KoronaClient
|
|
458
457
|
end
|
459
458
|
return data, status_code, headers
|
460
459
|
end
|
461
|
-
|
462
|
-
# lists all point of sales
|
460
|
+
# lists all points of sale
|
463
461
|
#
|
464
|
-
# @param korona_account_id the account
|
462
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
465
463
|
# @param [Hash] opts the optional parameters
|
466
464
|
# @option opts [Integer] :page number of the page to fetch
|
467
465
|
# @option opts [Integer] :size amount of objects to return per page
|
468
466
|
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
469
467
|
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
470
468
|
# @option opts [BOOLEAN] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
469
|
+
# @option opts [String] :number number of the related object
|
470
|
+
# @option opts [BOOLEAN] :external indicates external/internal devices should be loaded (default: null (load all))
|
471
|
+
# @option opts [BOOLEAN] :coupled indicates coupled/not coupled devices should be loaded (default: null (load all))
|
471
472
|
# @return [ResultListPos]
|
472
473
|
def get_points_of_sale(korona_account_id, opts = {})
|
473
474
|
data, _status_code, _headers = get_points_of_sale_with_http_info(korona_account_id, opts)
|
474
|
-
|
475
|
+
data
|
475
476
|
end
|
476
477
|
|
477
|
-
# lists all
|
478
|
+
# lists all points of sale
|
478
479
|
#
|
479
|
-
# @param korona_account_id the account
|
480
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
480
481
|
# @param [Hash] opts the optional parameters
|
481
482
|
# @option opts [Integer] :page number of the page to fetch
|
482
483
|
# @option opts [Integer] :size amount of objects to return per page
|
483
484
|
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
484
485
|
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
485
486
|
# @option opts [BOOLEAN] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
487
|
+
# @option opts [String] :number number of the related object
|
488
|
+
# @option opts [BOOLEAN] :external indicates external/internal devices should be loaded (default: null (load all))
|
489
|
+
# @option opts [BOOLEAN] :coupled indicates coupled/not coupled devices should be loaded (default: null (load all))
|
486
490
|
# @return [Array<(ResultListPos, Fixnum, Hash)>] ResultListPos data, response status code and response headers
|
487
491
|
def get_points_of_sale_with_http_info(korona_account_id, opts = {})
|
488
492
|
if @api_client.config.debugging
|
489
|
-
@api_client.config.logger.debug
|
493
|
+
@api_client.config.logger.debug 'Calling API: PointsOfSaleApi.get_points_of_sale ...'
|
490
494
|
end
|
491
495
|
# verify the required parameter 'korona_account_id' is set
|
492
496
|
if @api_client.config.client_side_validation && korona_account_id.nil?
|
493
497
|
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling PointsOfSaleApi.get_points_of_sale"
|
494
498
|
end
|
495
499
|
# resource path
|
496
|
-
local_var_path =
|
500
|
+
local_var_path = '/accounts/{koronaAccountId}/pointsOfSale'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)
|
497
501
|
|
498
502
|
# query parameters
|
499
503
|
query_params = {}
|
@@ -502,6 +506,9 @@ module KoronaClient
|
|
502
506
|
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
503
507
|
query_params[:'revision'] = opts[:'revision'] if !opts[:'revision'].nil?
|
504
508
|
query_params[:'includeDeleted'] = opts[:'include_deleted'] if !opts[:'include_deleted'].nil?
|
509
|
+
query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
|
510
|
+
query_params[:'external'] = opts[:'external'] if !opts[:'external'].nil?
|
511
|
+
query_params[:'coupled'] = opts[:'coupled'] if !opts[:'coupled'].nil?
|
505
512
|
|
506
513
|
# header parameters
|
507
514
|
header_params = {}
|
@@ -528,48 +535,47 @@ module KoronaClient
|
|
528
535
|
end
|
529
536
|
return data, status_code, headers
|
530
537
|
end
|
531
|
-
|
532
538
|
# updates a point of sale (works only for coupling (attribute 'couplingId') or updating device information (attribute 'deviceInformation'))
|
533
539
|
#
|
534
|
-
# @param korona_account_id the account
|
535
|
-
# @param
|
540
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
541
|
+
# @param point_of_sale_id id of the related object (important: id should match the uuid-format)
|
536
542
|
# @param body the properties to update of the point of sale ('couplingId' only)
|
537
543
|
# @param [Hash] opts the optional parameters
|
538
544
|
# @option opts [String] :coupling_id the coupling-id of the device (required if already coupled)
|
539
545
|
# @option opts [BOOLEAN] :decouple executes uncoupling, if set to true, device will be uncoupled if point of sale is already coupled
|
540
546
|
# @return [nil]
|
541
|
-
def update_point_of_sale(korona_account_id,
|
542
|
-
update_point_of_sale_with_http_info(korona_account_id,
|
543
|
-
|
547
|
+
def update_point_of_sale(korona_account_id, point_of_sale_id, body, opts = {})
|
548
|
+
update_point_of_sale_with_http_info(korona_account_id, point_of_sale_id, body, opts)
|
549
|
+
nil
|
544
550
|
end
|
545
551
|
|
546
552
|
# updates a point of sale (works only for coupling (attribute 'couplingId') or updating device information (attribute 'deviceInformation'))
|
547
553
|
#
|
548
|
-
# @param korona_account_id the account
|
549
|
-
# @param
|
554
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
555
|
+
# @param point_of_sale_id id of the related object (important: id should match the uuid-format)
|
550
556
|
# @param body the properties to update of the point of sale ('couplingId' only)
|
551
557
|
# @param [Hash] opts the optional parameters
|
552
558
|
# @option opts [String] :coupling_id the coupling-id of the device (required if already coupled)
|
553
559
|
# @option opts [BOOLEAN] :decouple executes uncoupling, if set to true, device will be uncoupled if point of sale is already coupled
|
554
560
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
555
|
-
def update_point_of_sale_with_http_info(korona_account_id,
|
561
|
+
def update_point_of_sale_with_http_info(korona_account_id, point_of_sale_id, body, opts = {})
|
556
562
|
if @api_client.config.debugging
|
557
|
-
@api_client.config.logger.debug
|
563
|
+
@api_client.config.logger.debug 'Calling API: PointsOfSaleApi.update_point_of_sale ...'
|
558
564
|
end
|
559
565
|
# verify the required parameter 'korona_account_id' is set
|
560
566
|
if @api_client.config.client_side_validation && korona_account_id.nil?
|
561
567
|
fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling PointsOfSaleApi.update_point_of_sale"
|
562
568
|
end
|
563
|
-
# verify the required parameter '
|
564
|
-
if @api_client.config.client_side_validation &&
|
565
|
-
fail ArgumentError, "Missing the required parameter '
|
569
|
+
# verify the required parameter 'point_of_sale_id' is set
|
570
|
+
if @api_client.config.client_side_validation && point_of_sale_id.nil?
|
571
|
+
fail ArgumentError, "Missing the required parameter 'point_of_sale_id' when calling PointsOfSaleApi.update_point_of_sale"
|
566
572
|
end
|
567
573
|
# verify the required parameter 'body' is set
|
568
574
|
if @api_client.config.client_side_validation && body.nil?
|
569
575
|
fail ArgumentError, "Missing the required parameter 'body' when calling PointsOfSaleApi.update_point_of_sale"
|
570
576
|
end
|
571
577
|
# resource path
|
572
|
-
local_var_path =
|
578
|
+
local_var_path = '/accounts/{koronaAccountId}/pointsOfSale/{pointOfSaleId}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'pointOfSaleId' + '}', point_of_sale_id.to_s)
|
573
579
|
|
574
580
|
# query parameters
|
575
581
|
query_params = {}
|