korona-cloud-client 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +71 -4
- data/docs/AddressInformation.md +2 -0
- data/docs/Cashier.md +16 -6
- data/docs/CashierRole.md +27 -0
- data/docs/CashierRolesApi.md +402 -0
- data/docs/CashiersApi.md +286 -2
- data/docs/CloudSubscriptionDetails.md +19 -0
- data/docs/CurrenciesApi.md +166 -0
- data/docs/Customer.md +5 -1
- data/docs/EconomicZonesApi.md +166 -0
- data/docs/FiscalTransaction.md +43 -0
- data/docs/FiscalUnit.md +51 -0
- data/docs/FiscalUnitCertificateInfo.md +19 -0
- data/docs/FiscalUnitState.md +27 -0
- data/docs/FiscalUnitStateUsageLevel.md +23 -0
- data/docs/FiscalUnitStateUsageLevelValue.md +19 -0
- data/docs/FiscalUnitStateVersionInfo.md +21 -0
- data/docs/FiscalUnitsApi.md +299 -0
- data/docs/InfoTextsApi.md +166 -0
- data/docs/KoronaAccount.md +2 -0
- data/docs/OrganizationalUnit.md +9 -7
- data/docs/PaymentMethod.md +2 -0
- data/docs/PointsOfSaleApi.md +6 -2
- data/docs/Pos.md +10 -4
- data/docs/PriceGroupsApi.md +166 -0
- data/docs/ProductionType.md +33 -0
- data/docs/ProductionTypesApi.md +294 -0
- data/docs/Receipt.md +18 -8
- data/docs/ReceiptItem.md +3 -1
- data/docs/ReceiptMaxRevisions.md +27 -0
- data/docs/ReceiptsApi.md +9 -3
- data/docs/ResultListCashierRole.md +27 -0
- data/docs/ResultListFiscalUnit.md +27 -0
- data/docs/ResultListProductionType.md +27 -0
- data/docs/ResultListStockOrder.md +27 -0
- data/docs/SalesTax.md +2 -0
- data/docs/SalesTaxesApi.md +166 -0
- data/docs/SectorsApi.md +54 -0
- data/docs/Service.md +19 -0
- data/docs/StockOrder.md +73 -0
- data/docs/StockOrderItem.md +39 -0
- data/docs/StockOrdersApi.md +195 -0
- data/docs/StockReceipt.md +4 -0
- data/docs/SuppliersApi.md +166 -0
- data/docs/TicketingApi.md +223 -3
- data/docs/VoidedReceiptItem.md +25 -0
- data/korona-cloud-client-1.0.1.gem +0 -0
- data/korona-cloud-client.gemspec +2 -2
- data/lib/korona-cloud-client.rb +24 -1
- data/lib/korona-cloud-client/api/accounts_api.rb +1 -1
- data/lib/korona-cloud-client/api/additional_receipt_info_types_api.rb +1 -1
- data/lib/korona-cloud-client/api/assortments_api.rb +1 -1
- data/lib/korona-cloud-client/api/cashier_roles_api.rb +513 -0
- data/lib/korona-cloud-client/api/cashiers_api.rb +366 -1
- data/lib/korona-cloud-client/api/commodity_groups_api.rb +1 -1
- data/lib/korona-cloud-client/api/currencies_api.rb +208 -1
- data/lib/korona-cloud-client/api/customer_groups_api.rb +1 -1
- data/lib/korona-cloud-client/api/customer_orders_api.rb +1 -1
- data/lib/korona-cloud-client/api/customers_api.rb +1 -1
- data/lib/korona-cloud-client/api/delivery_notes_api.rb +1 -1
- data/lib/korona-cloud-client/api/economic_zones_api.rb +208 -1
- data/lib/korona-cloud-client/api/external_system_calls_api.rb +1 -1
- data/lib/korona-cloud-client/api/fiscal_units_api.rb +389 -0
- data/lib/korona-cloud-client/api/images_api.rb +1 -1
- data/lib/korona-cloud-client/api/info_texts_api.rb +208 -1
- data/lib/korona-cloud-client/api/inventories_api.rb +1 -1
- data/lib/korona-cloud-client/api/korona_account_api.rb +1 -1
- data/lib/korona-cloud-client/api/organizational_units_api.rb +1 -1
- data/lib/korona-cloud-client/api/payment_methods_api.rb +1 -1
- data/lib/korona-cloud-client/api/points_of_sale_api.rb +7 -1
- data/lib/korona-cloud-client/api/price_groups_api.rb +208 -1
- data/lib/korona-cloud-client/api/production_types_api.rb +373 -0
- data/lib/korona-cloud-client/api/products_api.rb +1 -1
- data/lib/korona-cloud-client/api/receipts_api.rb +7 -1
- data/lib/korona-cloud-client/api/sales_taxes_api.rb +208 -1
- data/lib/korona-cloud-client/api/sectors_api.rb +69 -1
- data/lib/korona-cloud-client/api/statistics_api.rb +1 -1
- data/lib/korona-cloud-client/api/stock_orders_api.rb +257 -0
- data/lib/korona-cloud-client/api/stock_receipts_api.rb +1 -1
- data/lib/korona-cloud-client/api/suppliers_api.rb +208 -1
- data/lib/korona-cloud-client/api/tags_api.rb +1 -1
- data/lib/korona-cloud-client/api/ticket_creation_api.rb +1 -1
- data/lib/korona-cloud-client/api/ticketing_api.rb +277 -4
- data/lib/korona-cloud-client/api/time_tracking_api.rb +1 -1
- data/lib/korona-cloud-client/api_client.rb +1 -1
- data/lib/korona-cloud-client/api_error.rb +1 -1
- data/lib/korona-cloud-client/configuration.rb +1 -1
- data/lib/korona-cloud-client/models/account.rb +1 -1
- data/lib/korona-cloud-client/models/account_summary.rb +1 -1
- data/lib/korona-cloud-client/models/account_transaction.rb +1 -1
- data/lib/korona-cloud-client/models/add_or_update_result.rb +1 -1
- data/lib/korona-cloud-client/models/additional_info.rb +1 -1
- data/lib/korona-cloud-client/models/additional_receipt_info_type.rb +1 -1
- data/lib/korona-cloud-client/models/address_information.rb +11 -2
- data/lib/korona-cloud-client/models/admission.rb +1 -1
- data/lib/korona-cloud-client/models/amount.rb +1 -1
- data/lib/korona-cloud-client/models/amount_count_data.rb +1 -1
- data/lib/korona-cloud-client/models/assortment.rb +1 -1
- data/lib/korona-cloud-client/models/attendance.rb +1 -1
- data/lib/korona-cloud-client/models/bad_request_error.rb +1 -1
- data/lib/korona-cloud-client/models/capacity.rb +1 -1
- data/lib/korona-cloud-client/models/cashier.rb +55 -10
- data/lib/korona-cloud-client/models/cashier_role.rb +279 -0
- data/lib/korona-cloud-client/models/cashier_summary.rb +1 -1
- data/lib/korona-cloud-client/models/category.rb +1 -1
- data/lib/korona-cloud-client/models/cloud_subscription.rb +1 -1
- data/lib/korona-cloud-client/models/cloud_subscription_details.rb +249 -0
- data/lib/korona-cloud-client/models/commodity_group.rb +1 -1
- data/lib/korona-cloud-client/models/commodity_group_summary.rb +1 -1
- data/lib/korona-cloud-client/models/company_identification.rb +1 -1
- data/lib/korona-cloud-client/models/creation_task.rb +1 -1
- data/lib/korona-cloud-client/models/currency.rb +1 -1
- data/lib/korona-cloud-client/models/currency_denomination.rb +1 -1
- data/lib/korona-cloud-client/models/currency_exchange_rate.rb +1 -1
- data/lib/korona-cloud-client/models/customer.rb +23 -5
- data/lib/korona-cloud-client/models/customer_card.rb +1 -1
- data/lib/korona-cloud-client/models/customer_data.rb +1 -1
- data/lib/korona-cloud-client/models/customer_group.rb +1 -1
- data/lib/korona-cloud-client/models/customer_group_summary.rb +1 -1
- data/lib/korona-cloud-client/models/customer_information.rb +1 -1
- data/lib/korona-cloud-client/models/customer_order.rb +1 -1
- data/lib/korona-cloud-client/models/day_rating.rb +1 -1
- data/lib/korona-cloud-client/models/day_time_period.rb +1 -1
- data/lib/korona-cloud-client/models/delivery_note.rb +1 -1
- data/lib/korona-cloud-client/models/delivery_note_item.rb +1 -1
- data/lib/korona-cloud-client/models/deposit.rb +1 -1
- data/lib/korona-cloud-client/models/device_information.rb +1 -1
- data/lib/korona-cloud-client/models/discount.rb +1 -1
- data/lib/korona-cloud-client/models/economic_zone.rb +1 -1
- data/lib/korona-cloud-client/models/end_of_day_statement.rb +1 -1
- data/lib/korona-cloud-client/models/end_of_day_statement_summary.rb +1 -1
- data/lib/korona-cloud-client/models/entry_gate.rb +1 -1
- data/lib/korona-cloud-client/models/event.rb +1 -1
- data/lib/korona-cloud-client/models/external_system_call.rb +1 -1
- data/lib/korona-cloud-client/models/fiscal_transaction.rb +342 -0
- data/lib/korona-cloud-client/models/fiscal_unit.rb +415 -0
- data/lib/korona-cloud-client/models/fiscal_unit_certificate_info.rb +233 -0
- data/lib/korona-cloud-client/models/fiscal_unit_state.rb +287 -0
- data/lib/korona-cloud-client/models/fiscal_unit_state_usage_level.rb +233 -0
- data/lib/korona-cloud-client/models/fiscal_unit_state_usage_level_value.rb +215 -0
- data/lib/korona-cloud-client/models/fiscal_unit_state_version_info.rb +224 -0
- data/lib/korona-cloud-client/models/forbidden_error.rb +1 -1
- data/lib/korona-cloud-client/models/geo_location.rb +1 -1
- data/lib/korona-cloud-client/models/info_text.rb +1 -1
- data/lib/korona-cloud-client/models/interval.rb +1 -1
- data/lib/korona-cloud-client/models/inventory.rb +1 -1
- data/lib/korona-cloud-client/models/inventory_list.rb +1 -1
- data/lib/korona-cloud-client/models/inventory_list_item.rb +1 -1
- data/lib/korona-cloud-client/models/inventory_list_item_stock.rb +1 -1
- data/lib/korona-cloud-client/models/korona_account.rb +13 -2
- data/lib/korona-cloud-client/models/media_url.rb +1 -1
- data/lib/korona-cloud-client/models/method_not_allowed_error.rb +1 -1
- data/lib/korona-cloud-client/models/model_reference.rb +1 -1
- data/lib/korona-cloud-client/models/not_found_error.rb +1 -1
- data/lib/korona-cloud-client/models/opening_hours.rb +1 -1
- data/lib/korona-cloud-client/models/organizational_unit.rb +43 -34
- data/lib/korona-cloud-client/models/payment.rb +1 -1
- data/lib/korona-cloud-client/models/payment_method.rb +11 -2
- data/lib/korona-cloud-client/models/payment_summary.rb +1 -1
- data/lib/korona-cloud-client/models/period.rb +1 -1
- data/lib/korona-cloud-client/models/period_list_top_seller.rb +1 -1
- data/lib/korona-cloud-client/models/period_map_string_revenue_data.rb +1 -1
- data/lib/korona-cloud-client/models/period_object.rb +1 -1
- data/lib/korona-cloud-client/models/period_revenue_data.rb +1 -1
- data/lib/korona-cloud-client/models/pos.rb +44 -17
- data/lib/korona-cloud-client/models/price_group.rb +1 -1
- data/lib/korona-cloud-client/models/product.rb +1 -1
- data/lib/korona-cloud-client/models/product_code.rb +1 -1
- data/lib/korona-cloud-client/models/product_description.rb +1 -1
- data/lib/korona-cloud-client/models/product_price.rb +1 -1
- data/lib/korona-cloud-client/models/product_stock.rb +1 -1
- data/lib/korona-cloud-client/models/product_subproduct.rb +1 -1
- data/lib/korona-cloud-client/models/product_supplier_price.rb +1 -1
- data/lib/korona-cloud-client/models/product_transfer_involved_party_information.rb +1 -1
- data/lib/korona-cloud-client/models/product_transfer_involved_party_information_data.rb +1 -1
- data/lib/korona-cloud-client/models/production_type.rb +328 -0
- data/lib/korona-cloud-client/models/rating.rb +1 -1
- data/lib/korona-cloud-client/models/receipt.rb +82 -31
- data/lib/korona-cloud-client/models/receipt_item.rb +14 -5
- data/lib/korona-cloud-client/models/receipt_max_revisions.rb +251 -0
- data/lib/korona-cloud-client/models/result_list.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_account.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_additional_receipt_info_type.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_assortment.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_attendance.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_cashier.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_cashier_role.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_commodity_group.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_creation_task.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_currency.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_customer.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_customer_group.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_customer_order.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_day_rating.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_delivery_note.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_economic_zone.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_end_of_day_statement.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_entry_gate.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_event.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_external_system_call.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_fiscal_unit.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_info_text.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_inventory.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_inventory_list.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_inventory_list_item.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_organizational_unit.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_payment_method.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_pos.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_price_group.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_product.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_product_stock.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_production_type.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_receipt.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_sales_tax.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_sector.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_stock_order.rb +291 -0
- data/lib/korona-cloud-client/models/result_list_stock_receipt.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_stock_receipt_item.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_supplier.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_tag.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_ticket.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_ticket_definition.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_time_tracking_entity.rb +1 -1
- data/lib/korona-cloud-client/models/result_list_time_tracking_entry.rb +1 -1
- data/lib/korona-cloud-client/models/revenue_data.rb +1 -1
- data/lib/korona-cloud-client/models/sales_tax.rb +45 -2
- data/lib/korona-cloud-client/models/sales_tax_rate.rb +1 -1
- data/lib/korona-cloud-client/models/sector.rb +1 -1
- data/lib/korona-cloud-client/models/sector_revenue_account_item.rb +1 -1
- data/lib/korona-cloud-client/models/sector_sales_tax_item.rb +1 -1
- data/lib/korona-cloud-client/models/service.rb +249 -0
- data/lib/korona-cloud-client/models/signature.rb +1 -1
- data/lib/korona-cloud-client/models/statistic.rb +1 -1
- data/lib/korona-cloud-client/models/statistic_list_top_seller.rb +1 -1
- data/lib/korona-cloud-client/models/statistic_map_string_revenue_data.rb +1 -1
- data/lib/korona-cloud-client/models/statistic_revenue_data.rb +1 -1
- data/lib/korona-cloud-client/models/stock_order.rb +498 -0
- data/lib/korona-cloud-client/models/stock_order_item.rb +305 -0
- data/lib/korona-cloud-client/models/stock_receipt.rb +20 -2
- data/lib/korona-cloud-client/models/stock_receipt_item.rb +1 -1
- data/lib/korona-cloud-client/models/stock_receipt_item_amount.rb +1 -1
- data/lib/korona-cloud-client/models/stock_receipt_item_identification.rb +1 -1
- data/lib/korona-cloud-client/models/stock_receipt_item_purchase_price.rb +1 -1
- data/lib/korona-cloud-client/models/supplier.rb +1 -1
- data/lib/korona-cloud-client/models/supplier_contact.rb +1 -1
- data/lib/korona-cloud-client/models/supplier_contact_person.rb +1 -1
- data/lib/korona-cloud-client/models/supplier_payment_information.rb +1 -1
- data/lib/korona-cloud-client/models/tag.rb +1 -1
- data/lib/korona-cloud-client/models/tax_payment.rb +1 -1
- data/lib/korona-cloud-client/models/tax_summary.rb +1 -1
- data/lib/korona-cloud-client/models/ticket.rb +1 -1
- data/lib/korona-cloud-client/models/ticket_data.rb +1 -1
- data/lib/korona-cloud-client/models/ticket_definition.rb +1 -1
- data/lib/korona-cloud-client/models/ticket_personalization.rb +1 -1
- data/lib/korona-cloud-client/models/time_period.rb +1 -1
- data/lib/korona-cloud-client/models/time_tracking_entity.rb +1 -1
- data/lib/korona-cloud-client/models/time_tracking_entry.rb +1 -1
- data/lib/korona-cloud-client/models/too_many_requests_error.rb +1 -1
- data/lib/korona-cloud-client/models/top_seller.rb +1 -1
- data/lib/korona-cloud-client/models/total_period.rb +1 -1
- data/lib/korona-cloud-client/models/total_price.rb +1 -1
- data/lib/korona-cloud-client/models/validity.rb +1 -1
- data/lib/korona-cloud-client/models/voided_receipt_item.rb +242 -0
- data/lib/korona-cloud-client/models/weather.rb +1 -1
- data/lib/korona-cloud-client/version.rb +2 -2
- data/spec/api/cashier_roles_api_spec.rb +126 -0
- data/spec/api/fiscal_units_api_spec.rb +104 -0
- data/spec/api/production_types_api_spec.rb +101 -0
- data/spec/api/stock_orders_api_spec.rb +83 -0
- data/spec/models/cashier_role_spec.rb +75 -0
- data/spec/models/cloud_subscription_details_spec.rb +51 -0
- data/spec/models/fiscal_transaction_spec.rb +119 -0
- data/spec/models/fiscal_unit_certificate_info_spec.rb +47 -0
- data/spec/models/fiscal_unit_spec.rb +147 -0
- data/spec/models/fiscal_unit_state_spec.rb +75 -0
- data/spec/models/fiscal_unit_state_usage_level_spec.rb +59 -0
- data/spec/models/fiscal_unit_state_usage_level_value_spec.rb +47 -0
- data/spec/models/fiscal_unit_state_version_info_spec.rb +53 -0
- data/spec/models/production_type_spec.rb +97 -0
- data/spec/models/receipt_max_revisions_spec.rb +71 -0
- data/spec/models/result_list_cashier_role_spec.rb +71 -0
- data/spec/models/result_list_fiscal_unit_spec.rb +71 -0
- data/spec/models/result_list_production_type_spec.rb +71 -0
- data/spec/models/result_list_stock_order_spec.rb +71 -0
- data/spec/models/service_spec.rb +51 -0
- data/spec/models/stock_order_item_spec.rb +107 -0
- data/spec/models/stock_order_spec.rb +213 -0
- data/spec/models/voided_receipt_item_spec.rb +65 -0
- metadata +96 -3
@@ -0,0 +1,104 @@
|
|
1
|
+
=begin
|
2
|
+
#KORONA.cloud API v3
|
3
|
+
|
4
|
+
#Our api provides access to our cloud services
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.14.7
|
7
|
+
Contact: support@combase.net
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for KoronaCloudClient::FiscalUnitsApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'FiscalUnitsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = KoronaCloudClient::FiscalUnitsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of FiscalUnitsApi' do
|
30
|
+
it 'should create an instance of FiscalUnitsApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(KoronaCloudClient::FiscalUnitsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for add_fiscal_units
|
36
|
+
# adds a batch of fiscal units
|
37
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
38
|
+
# @param body array of new fiscal units
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [Boolean] :upsert when set to true, updates the object instead of generating a already-exists-error
|
41
|
+
# @return [Array<AddOrUpdateResult>]
|
42
|
+
describe 'add_fiscal_units test' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# unit tests for get_fiscal_unit
|
49
|
+
# returns the single fiscal unit
|
50
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
51
|
+
# @param fiscal_unit_id id of the related object (important: id should match the uuid-format)
|
52
|
+
# @param [Hash] opts the optional parameters
|
53
|
+
# @return [FiscalUnit]
|
54
|
+
describe 'get_fiscal_unit test' do
|
55
|
+
it 'should work' do
|
56
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
# unit tests for get_fiscal_units
|
61
|
+
# lists all fiscal units
|
62
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
63
|
+
# @param [Hash] opts the optional parameters
|
64
|
+
# @option opts [Integer] :page number of the page to fetch
|
65
|
+
# @option opts [Integer] :size amount of objects to return per page
|
66
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
67
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
68
|
+
# @option opts [Boolean] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
69
|
+
# @option opts [String] :number number of the related object
|
70
|
+
# @option opts [String] :type type of fiscal unit
|
71
|
+
# @option opts [String] :api_key api key of fiscal unit
|
72
|
+
# @return [ResultListFiscalUnit]
|
73
|
+
describe 'get_fiscal_units test' do
|
74
|
+
it 'should work' do
|
75
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
# unit tests for update_fiscal_unit
|
80
|
+
# updates the fiscal unit
|
81
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
82
|
+
# @param fiscal_unit_id id of the related object (important: id should match the uuid-format)
|
83
|
+
# @param body the properties to update of the fiscal unit
|
84
|
+
# @param [Hash] opts the optional parameters
|
85
|
+
# @return [nil]
|
86
|
+
describe 'update_fiscal_unit test' do
|
87
|
+
it 'should work' do
|
88
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
# unit tests for update_fiscal_units
|
93
|
+
# updates a batch of fiscal units
|
94
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
95
|
+
# @param body array of existing fiscal units (id or number required)
|
96
|
+
# @param [Hash] opts the optional parameters
|
97
|
+
# @return [Array<AddOrUpdateResult>]
|
98
|
+
describe 'update_fiscal_units test' do
|
99
|
+
it 'should work' do
|
100
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
end
|
@@ -0,0 +1,101 @@
|
|
1
|
+
=begin
|
2
|
+
#KORONA.cloud API v3
|
3
|
+
|
4
|
+
#Our api provides access to our cloud services
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.14.7
|
7
|
+
Contact: support@combase.net
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for KoronaCloudClient::ProductionTypesApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'ProductionTypesApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = KoronaCloudClient::ProductionTypesApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of ProductionTypesApi' do
|
30
|
+
it 'should create an instance of ProductionTypesApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(KoronaCloudClient::ProductionTypesApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for add_production_types
|
36
|
+
# adds a batch of new production types
|
37
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
38
|
+
# @param body array of new production types
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [Boolean] :upsert when set to true, updates the object instead of generating a already-exists-error
|
41
|
+
# @return [Array<AddOrUpdateResult>]
|
42
|
+
describe 'add_production_types test' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# unit tests for delete_production_types
|
49
|
+
# deletes a batch of production types
|
50
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
51
|
+
# @param body array of existing production types (id or number required)
|
52
|
+
# @param [Hash] opts the optional parameters
|
53
|
+
# @return [Array<AddOrUpdateResult>]
|
54
|
+
describe 'delete_production_types test' do
|
55
|
+
it 'should work' do
|
56
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
# unit tests for get_production_type
|
61
|
+
# returns the single production type
|
62
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
63
|
+
# @param production_type_id id of the related object (important: id should match the uuid-format)
|
64
|
+
# @param [Hash] opts the optional parameters
|
65
|
+
# @return [ProductionType]
|
66
|
+
describe 'get_production_type test' do
|
67
|
+
it 'should work' do
|
68
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
# unit tests for get_production_types
|
73
|
+
# lists all production types
|
74
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
75
|
+
# @param [Hash] opts the optional parameters
|
76
|
+
# @option opts [Integer] :page number of the page to fetch
|
77
|
+
# @option opts [Integer] :size amount of objects to return per page
|
78
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
79
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
80
|
+
# @option opts [Boolean] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
81
|
+
# @option opts [String] :number number of the related object
|
82
|
+
# @return [ResultListProductionType]
|
83
|
+
describe 'get_production_types test' do
|
84
|
+
it 'should work' do
|
85
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
# unit tests for update_production_types
|
90
|
+
# updates a batch of production types
|
91
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
92
|
+
# @param body array of existing production types (id or number required)
|
93
|
+
# @param [Hash] opts the optional parameters
|
94
|
+
# @return [Array<AddOrUpdateResult>]
|
95
|
+
describe 'update_production_types test' do
|
96
|
+
it 'should work' do
|
97
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
end
|
@@ -0,0 +1,83 @@
|
|
1
|
+
=begin
|
2
|
+
#KORONA.cloud API v3
|
3
|
+
|
4
|
+
#Our api provides access to our cloud services
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.14.7
|
7
|
+
Contact: support@combase.net
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for KoronaCloudClient::StockOrdersApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'StockOrdersApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = KoronaCloudClient::StockOrdersApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of StockOrdersApi' do
|
30
|
+
it 'should create an instance of StockOrdersApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(KoronaCloudClient::StockOrdersApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for book_stock_order
|
36
|
+
# book the single stock order
|
37
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
38
|
+
# @param stock_order_id id of the related object (important: id should match the uuid-format)
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [nil]
|
41
|
+
describe 'book_stock_order test' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# unit tests for get_stock_order
|
48
|
+
# returns a single stock order
|
49
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
50
|
+
# @param stock_order_id id of the related object (important: id should match the uuid-format)
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @return [StockOrder]
|
53
|
+
describe 'get_stock_order test' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
# unit tests for get_stock_orders
|
60
|
+
# lists all stock orders
|
61
|
+
# @param korona_account_id account id of the KORONA.cloud account
|
62
|
+
# @param [Hash] opts the optional parameters
|
63
|
+
# @option opts [Integer] :page number of the page to fetch
|
64
|
+
# @option opts [Integer] :size amount of objects to return per page
|
65
|
+
# @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5)
|
66
|
+
# @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned
|
67
|
+
# @option opts [Boolean] :include_deleted indicates deleted objects should be loaded or not (default: false)
|
68
|
+
# @option opts [DateTime] :min_create_time min (inclusive) create time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
69
|
+
# @option opts [DateTime] :max_create_time max (inclusive) create time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
70
|
+
# @option opts [DateTime] :min_booking_time min (inclusive) booking time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
71
|
+
# @option opts [DateTime] :max_booking_time max (inclusive) booking time of the receipt (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)
|
72
|
+
# @option opts [String] :organizational_unit organizational unit
|
73
|
+
# @option opts [String] :source_organizational_unit source organizational unit
|
74
|
+
# @option opts [String] :booking_status booking status (possible values: BOOKED, IN_PROGRESS)
|
75
|
+
# @option opts [String] :number number of the related object
|
76
|
+
# @return [ResultListStockOrder]
|
77
|
+
describe 'get_stock_orders test' do
|
78
|
+
it 'should work' do
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
end
|
@@ -0,0 +1,75 @@
|
|
1
|
+
=begin
|
2
|
+
#KORONA.cloud API v3
|
3
|
+
|
4
|
+
#Our api provides access to our cloud services
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.14.7
|
7
|
+
Contact: support@combase.net
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for KoronaCloudClient::CashierRole
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'CashierRole' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = KoronaCloudClient::CashierRole.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of CashierRole' do
|
31
|
+
it 'should create an instance of CashierRole' do
|
32
|
+
expect(@instance).to be_instance_of(KoronaCloudClient::CashierRole)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "active"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "id"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "number"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe 'test attribute "revision"' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
describe 'test attribute "name"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
describe 'test attribute "permissions"' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('Array<String>', ["BLANK_RECEIPT", "CASH_DRAWER", "CANCEL_ITEM", "CANCEL_RECEIPT", "DELETE_RECEIPT", "FOREIGN_RECEIPT", "PRICE", "REPORTS", "REVISION", "CANCEL_LAST_RECEIPT_ITEM", "RETURN", "TERMINATE_BREAK_LOCK", "EXTERNAL_POINT_OF_SALE", "MDE_ADMIN"])
|
69
|
+
# validator.allowable_values.each do |value|
|
70
|
+
# expect { @instance.permissions = value }.not_to raise_error
|
71
|
+
# end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
=begin
|
2
|
+
#KORONA.cloud API v3
|
3
|
+
|
4
|
+
#Our api provides access to our cloud services
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.14.7
|
7
|
+
Contact: support@combase.net
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for KoronaCloudClient::CloudSubscriptionDetails
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'CloudSubscriptionDetails' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = KoronaCloudClient::CloudSubscriptionDetails.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of CloudSubscriptionDetails' do
|
31
|
+
it 'should create an instance of CloudSubscriptionDetails' do
|
32
|
+
expect(@instance).to be_instance_of(KoronaCloudClient::CloudSubscriptionDetails)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "amount"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "package_type"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["FOOD", "FRANCHISE", "INTEGRATION", "INVOICING", "PLUS", "RETAIL", "SUPPORT", "TICKET", "VOUCHER"])
|
45
|
+
# validator.allowable_values.each do |value|
|
46
|
+
# expect { @instance.package_type = value }.not_to raise_error
|
47
|
+
# end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
end
|
@@ -0,0 +1,119 @@
|
|
1
|
+
=begin
|
2
|
+
#KORONA.cloud API v3
|
3
|
+
|
4
|
+
#Our api provides access to our cloud services
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.14.7
|
7
|
+
Contact: support@combase.net
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for KoronaCloudClient::FiscalTransaction
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'FiscalTransaction' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = KoronaCloudClient::FiscalTransaction.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of FiscalTransaction' do
|
31
|
+
it 'should create an instance of FiscalTransaction' do
|
32
|
+
expect(@instance).to be_instance_of(KoronaCloudClient::FiscalTransaction)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "error_description"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "failed"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "finish_time"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe 'test attribute "first_process_time"' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
describe 'test attribute "fiscal_unit"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
describe 'test attribute "number"' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
describe 'test attribute "print_link"' do
|
72
|
+
it 'should work' do
|
73
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
describe 'test attribute "print_qr_code"' do
|
78
|
+
it 'should work' do
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
describe 'test attribute "print_texts"' do
|
84
|
+
it 'should work' do
|
85
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
describe 'test attribute "process_data"' do
|
90
|
+
it 'should work' do
|
91
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
describe 'test attribute "process_type"' do
|
96
|
+
it 'should work' do
|
97
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
describe 'test attribute "signature"' do
|
102
|
+
it 'should work' do
|
103
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
describe 'test attribute "signature_counter"' do
|
108
|
+
it 'should work' do
|
109
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
describe 'test attribute "start_time"' do
|
114
|
+
it 'should work' do
|
115
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
end
|