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,17 +3,16 @@
|
|
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
13
|
require 'date'
|
14
14
|
|
15
15
|
module KoronaClient
|
16
|
-
|
17
16
|
class PeriodObject
|
18
17
|
attr_accessor :start
|
19
18
|
|
@@ -21,7 +20,6 @@ module KoronaClient
|
|
21
20
|
|
22
21
|
attr_accessor :results
|
23
22
|
|
24
|
-
|
25
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
24
|
def self.attribute_map
|
27
25
|
{
|
@@ -46,7 +44,7 @@ module KoronaClient
|
|
46
44
|
return unless attributes.is_a?(Hash)
|
47
45
|
|
48
46
|
# convert string to symbol for hash key
|
49
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
47
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
50
48
|
|
51
49
|
if attributes.has_key?(:'start')
|
52
50
|
self.start = attributes[:'start']
|
@@ -59,20 +57,19 @@ module KoronaClient
|
|
59
57
|
if attributes.has_key?(:'results')
|
60
58
|
self.results = attributes[:'results']
|
61
59
|
end
|
62
|
-
|
63
60
|
end
|
64
61
|
|
65
62
|
# Show invalid properties with the reasons. Usually used together with valid?
|
66
63
|
# @return Array for valid properties with the reasons
|
67
64
|
def list_invalid_properties
|
68
65
|
invalid_properties = Array.new
|
69
|
-
|
66
|
+
invalid_properties
|
70
67
|
end
|
71
68
|
|
72
69
|
# Check to see if the all the properties in the model are valid
|
73
70
|
# @return true if the model is valid
|
74
71
|
def valid?
|
75
|
-
|
72
|
+
true
|
76
73
|
end
|
77
74
|
|
78
75
|
# Checks equality by comparing each attribute.
|
@@ -107,7 +104,7 @@ module KoronaClient
|
|
107
104
|
# check to ensure the input is an array given that the the attribute
|
108
105
|
# is documented as an array but the input is not
|
109
106
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
110
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
107
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
111
108
|
end
|
112
109
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
113
110
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -189,7 +186,7 @@ module KoronaClient
|
|
189
186
|
# @return [Hash] Returns the value in the form of hash
|
190
187
|
def _to_hash(value)
|
191
188
|
if value.is_a?(Array)
|
192
|
-
value.compact.map{ |v| _to_hash(v) }
|
189
|
+
value.compact.map { |v| _to_hash(v) }
|
193
190
|
elsif value.is_a?(Hash)
|
194
191
|
{}.tap do |hash|
|
195
192
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -200,7 +197,5 @@ module KoronaClient
|
|
200
197
|
value
|
201
198
|
end
|
202
199
|
end
|
203
|
-
|
204
200
|
end
|
205
|
-
|
206
201
|
end
|
@@ -3,17 +3,16 @@
|
|
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
13
|
require 'date'
|
14
14
|
|
15
15
|
module KoronaClient
|
16
|
-
|
17
16
|
class PeriodRevenueData
|
18
17
|
attr_accessor :start
|
19
18
|
|
@@ -21,7 +20,6 @@ module KoronaClient
|
|
21
20
|
|
22
21
|
attr_accessor :results
|
23
22
|
|
24
|
-
|
25
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
24
|
def self.attribute_map
|
27
25
|
{
|
@@ -46,7 +44,7 @@ module KoronaClient
|
|
46
44
|
return unless attributes.is_a?(Hash)
|
47
45
|
|
48
46
|
# convert string to symbol for hash key
|
49
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
47
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
50
48
|
|
51
49
|
if attributes.has_key?(:'start')
|
52
50
|
self.start = attributes[:'start']
|
@@ -59,20 +57,19 @@ module KoronaClient
|
|
59
57
|
if attributes.has_key?(:'results')
|
60
58
|
self.results = attributes[:'results']
|
61
59
|
end
|
62
|
-
|
63
60
|
end
|
64
61
|
|
65
62
|
# Show invalid properties with the reasons. Usually used together with valid?
|
66
63
|
# @return Array for valid properties with the reasons
|
67
64
|
def list_invalid_properties
|
68
65
|
invalid_properties = Array.new
|
69
|
-
|
66
|
+
invalid_properties
|
70
67
|
end
|
71
68
|
|
72
69
|
# Check to see if the all the properties in the model are valid
|
73
70
|
# @return true if the model is valid
|
74
71
|
def valid?
|
75
|
-
|
72
|
+
true
|
76
73
|
end
|
77
74
|
|
78
75
|
# Checks equality by comparing each attribute.
|
@@ -107,7 +104,7 @@ module KoronaClient
|
|
107
104
|
# check to ensure the input is an array given that the the attribute
|
108
105
|
# is documented as an array but the input is not
|
109
106
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
110
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
107
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
111
108
|
end
|
112
109
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
113
110
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -189,7 +186,7 @@ module KoronaClient
|
|
189
186
|
# @return [Hash] Returns the value in the form of hash
|
190
187
|
def _to_hash(value)
|
191
188
|
if value.is_a?(Array)
|
192
|
-
value.compact.map{ |v| _to_hash(v) }
|
189
|
+
value.compact.map { |v| _to_hash(v) }
|
193
190
|
elsif value.is_a?(Hash)
|
194
191
|
{}.tap do |hash|
|
195
192
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -200,7 +197,5 @@ module KoronaClient
|
|
200
197
|
value
|
201
198
|
end
|
202
199
|
end
|
203
|
-
|
204
200
|
end
|
205
|
-
|
206
201
|
end
|
@@ -3,17 +3,16 @@
|
|
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
13
|
require 'date'
|
14
14
|
|
15
15
|
module KoronaClient
|
16
|
-
|
17
16
|
class Pos
|
18
17
|
# indicates whether the object is active for use or not
|
19
18
|
attr_accessor :active
|
@@ -35,12 +34,15 @@ module KoronaClient
|
|
35
34
|
|
36
35
|
attr_accessor :default_payment_method
|
37
36
|
|
37
|
+
# only for updating-purposes through PATCH, not shown on GET requests.
|
38
38
|
attr_accessor :device_information
|
39
39
|
|
40
40
|
attr_accessor :external
|
41
41
|
|
42
|
+
# last receipt number - only shown if external=true and coupled=false; usable for client-side receipt counter.
|
42
43
|
attr_accessor :last_receipt_number
|
43
44
|
|
45
|
+
# last zcount property - only shown if external=true and coupled=false; usable for client-side zcount.
|
44
46
|
attr_accessor :last_z_count
|
45
47
|
|
46
48
|
attr_accessor :name
|
@@ -55,6 +57,9 @@ module KoronaClient
|
|
55
57
|
|
56
58
|
attr_accessor :use_alternative_sector
|
57
59
|
|
60
|
+
attr_accessor :contra_account
|
61
|
+
|
62
|
+
attr_accessor :revenue_account
|
58
63
|
|
59
64
|
# Attribute mapping from ruby-style variable name to JSON key.
|
60
65
|
def self.attribute_map
|
@@ -76,7 +81,9 @@ module KoronaClient
|
|
76
81
|
:'print_footer_lines' => :'printFooterLines',
|
77
82
|
:'print_header_lines' => :'printHeaderLines',
|
78
83
|
:'receipt_info_texts' => :'receiptInfoTexts',
|
79
|
-
:'use_alternative_sector' => :'useAlternativeSector'
|
84
|
+
:'use_alternative_sector' => :'useAlternativeSector',
|
85
|
+
:'contra_account' => :'contraAccount',
|
86
|
+
:'revenue_account' => :'revenueAccount'
|
80
87
|
}
|
81
88
|
end
|
82
89
|
|
@@ -100,7 +107,9 @@ module KoronaClient
|
|
100
107
|
:'print_footer_lines' => :'Hash<String, String>',
|
101
108
|
:'print_header_lines' => :'Hash<String, String>',
|
102
109
|
:'receipt_info_texts' => :'Array<ModelReference>',
|
103
|
-
:'use_alternative_sector' => :'BOOLEAN'
|
110
|
+
:'use_alternative_sector' => :'BOOLEAN',
|
111
|
+
:'contra_account' => :'ModelReference',
|
112
|
+
:'revenue_account' => :'ModelReference'
|
104
113
|
}
|
105
114
|
end
|
106
115
|
|
@@ -110,7 +119,7 @@ module KoronaClient
|
|
110
119
|
return unless attributes.is_a?(Hash)
|
111
120
|
|
112
121
|
# convert string to symbol for hash key
|
113
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
122
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
114
123
|
|
115
124
|
if attributes.has_key?(:'active')
|
116
125
|
self.active = attributes[:'active']
|
@@ -190,19 +199,26 @@ module KoronaClient
|
|
190
199
|
self.use_alternative_sector = attributes[:'useAlternativeSector']
|
191
200
|
end
|
192
201
|
|
202
|
+
if attributes.has_key?(:'contraAccount')
|
203
|
+
self.contra_account = attributes[:'contraAccount']
|
204
|
+
end
|
205
|
+
|
206
|
+
if attributes.has_key?(:'revenueAccount')
|
207
|
+
self.revenue_account = attributes[:'revenueAccount']
|
208
|
+
end
|
193
209
|
end
|
194
210
|
|
195
211
|
# Show invalid properties with the reasons. Usually used together with valid?
|
196
212
|
# @return Array for valid properties with the reasons
|
197
213
|
def list_invalid_properties
|
198
214
|
invalid_properties = Array.new
|
199
|
-
|
215
|
+
invalid_properties
|
200
216
|
end
|
201
217
|
|
202
218
|
# Check to see if the all the properties in the model are valid
|
203
219
|
# @return true if the model is valid
|
204
220
|
def valid?
|
205
|
-
|
221
|
+
true
|
206
222
|
end
|
207
223
|
|
208
224
|
# Checks equality by comparing each attribute.
|
@@ -227,7 +243,9 @@ module KoronaClient
|
|
227
243
|
print_footer_lines == o.print_footer_lines &&
|
228
244
|
print_header_lines == o.print_header_lines &&
|
229
245
|
receipt_info_texts == o.receipt_info_texts &&
|
230
|
-
use_alternative_sector == o.use_alternative_sector
|
246
|
+
use_alternative_sector == o.use_alternative_sector &&
|
247
|
+
contra_account == o.contra_account &&
|
248
|
+
revenue_account == o.revenue_account
|
231
249
|
end
|
232
250
|
|
233
251
|
# @see the `==` method
|
@@ -239,7 +257,7 @@ module KoronaClient
|
|
239
257
|
# Calculates hash code according to all attributes.
|
240
258
|
# @return [Fixnum] Hash code
|
241
259
|
def hash
|
242
|
-
[active, id, number, revision, coupled, coupling_id, default_customer_group, default_payment_method, device_information, external, last_receipt_number, last_z_count, name, organizational_unit, print_footer_lines, print_header_lines, receipt_info_texts, use_alternative_sector].hash
|
260
|
+
[active, id, number, revision, coupled, coupling_id, default_customer_group, default_payment_method, device_information, external, last_receipt_number, last_z_count, name, organizational_unit, print_footer_lines, print_header_lines, receipt_info_texts, use_alternative_sector, contra_account, revenue_account].hash
|
243
261
|
end
|
244
262
|
|
245
263
|
# Builds the object from hash
|
@@ -252,7 +270,7 @@ module KoronaClient
|
|
252
270
|
# check to ensure the input is an array given that the the attribute
|
253
271
|
# is documented as an array but the input is not
|
254
272
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
255
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
273
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
256
274
|
end
|
257
275
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
258
276
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -334,7 +352,7 @@ module KoronaClient
|
|
334
352
|
# @return [Hash] Returns the value in the form of hash
|
335
353
|
def _to_hash(value)
|
336
354
|
if value.is_a?(Array)
|
337
|
-
value.compact.map{ |v| _to_hash(v) }
|
355
|
+
value.compact.map { |v| _to_hash(v) }
|
338
356
|
elsif value.is_a?(Hash)
|
339
357
|
{}.tap do |hash|
|
340
358
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -345,7 +363,5 @@ module KoronaClient
|
|
345
363
|
value
|
346
364
|
end
|
347
365
|
end
|
348
|
-
|
349
366
|
end
|
350
|
-
|
351
367
|
end
|
@@ -3,17 +3,16 @@
|
|
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
13
|
require 'date'
|
14
14
|
|
15
15
|
module KoronaClient
|
16
|
-
|
17
16
|
class PriceGroup
|
18
17
|
# indicates whether the object is active for use or not
|
19
18
|
attr_accessor :active
|
@@ -33,7 +32,6 @@ module KoronaClient
|
|
33
32
|
|
34
33
|
attr_accessor :net_prices
|
35
34
|
|
36
|
-
|
37
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
38
36
|
def self.attribute_map
|
39
37
|
{
|
@@ -66,7 +64,7 @@ module KoronaClient
|
|
66
64
|
return unless attributes.is_a?(Hash)
|
67
65
|
|
68
66
|
# convert string to symbol for hash key
|
69
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
67
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
70
68
|
|
71
69
|
if attributes.has_key?(:'active')
|
72
70
|
self.active = attributes[:'active']
|
@@ -95,20 +93,19 @@ module KoronaClient
|
|
95
93
|
if attributes.has_key?(:'netPrices')
|
96
94
|
self.net_prices = attributes[:'netPrices']
|
97
95
|
end
|
98
|
-
|
99
96
|
end
|
100
97
|
|
101
98
|
# Show invalid properties with the reasons. Usually used together with valid?
|
102
99
|
# @return Array for valid properties with the reasons
|
103
100
|
def list_invalid_properties
|
104
101
|
invalid_properties = Array.new
|
105
|
-
|
102
|
+
invalid_properties
|
106
103
|
end
|
107
104
|
|
108
105
|
# Check to see if the all the properties in the model are valid
|
109
106
|
# @return true if the model is valid
|
110
107
|
def valid?
|
111
|
-
|
108
|
+
true
|
112
109
|
end
|
113
110
|
|
114
111
|
# Checks equality by comparing each attribute.
|
@@ -147,7 +144,7 @@ module KoronaClient
|
|
147
144
|
# check to ensure the input is an array given that the the attribute
|
148
145
|
# is documented as an array but the input is not
|
149
146
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
150
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
147
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
151
148
|
end
|
152
149
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
153
150
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -229,7 +226,7 @@ module KoronaClient
|
|
229
226
|
# @return [Hash] Returns the value in the form of hash
|
230
227
|
def _to_hash(value)
|
231
228
|
if value.is_a?(Array)
|
232
|
-
value.compact.map{ |v| _to_hash(v) }
|
229
|
+
value.compact.map { |v| _to_hash(v) }
|
233
230
|
elsif value.is_a?(Hash)
|
234
231
|
{}.tap do |hash|
|
235
232
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -240,7 +237,5 @@ module KoronaClient
|
|
240
237
|
value
|
241
238
|
end
|
242
239
|
end
|
243
|
-
|
244
240
|
end
|
245
|
-
|
246
241
|
end
|
@@ -3,17 +3,16 @@
|
|
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
13
|
require 'date'
|
14
14
|
|
15
15
|
module KoronaClient
|
16
|
-
|
17
16
|
class Product
|
18
17
|
# indicates whether the object is active for use or not
|
19
18
|
attr_accessor :active
|
@@ -101,6 +100,10 @@ module KoronaClient
|
|
101
100
|
|
102
101
|
attr_accessor :track_inventory
|
103
102
|
|
103
|
+
attr_accessor :media_urls
|
104
|
+
|
105
|
+
attr_accessor :quantity_denomination
|
106
|
+
|
104
107
|
attr_accessor :stock_return_unsellable
|
105
108
|
|
106
109
|
class EnumAttributeValidator
|
@@ -169,6 +172,8 @@ module KoronaClient
|
|
169
172
|
:'tags' => :'tags',
|
170
173
|
:'ticket_definition' => :'ticketDefinition',
|
171
174
|
:'track_inventory' => :'trackInventory',
|
175
|
+
:'media_urls' => :'mediaUrls',
|
176
|
+
:'quantity_denomination' => :'quantityDenomination',
|
172
177
|
:'stock_return_unsellable' => :'stockReturnUnsellable'
|
173
178
|
}
|
174
179
|
end
|
@@ -217,6 +222,8 @@ module KoronaClient
|
|
217
222
|
:'tags' => :'Array<ModelReference>',
|
218
223
|
:'ticket_definition' => :'ModelReference',
|
219
224
|
:'track_inventory' => :'BOOLEAN',
|
225
|
+
:'media_urls' => :'Array<MediaUrl>',
|
226
|
+
:'quantity_denomination' => :'Float',
|
220
227
|
:'stock_return_unsellable' => :'BOOLEAN'
|
221
228
|
}
|
222
229
|
end
|
@@ -227,7 +234,7 @@ module KoronaClient
|
|
227
234
|
return unless attributes.is_a?(Hash)
|
228
235
|
|
229
236
|
# convert string to symbol for hash key
|
230
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
237
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
231
238
|
|
232
239
|
if attributes.has_key?(:'active')
|
233
240
|
self.active = attributes[:'active']
|
@@ -407,35 +414,44 @@ module KoronaClient
|
|
407
414
|
self.track_inventory = attributes[:'trackInventory']
|
408
415
|
end
|
409
416
|
|
417
|
+
if attributes.has_key?(:'mediaUrls')
|
418
|
+
if (value = attributes[:'mediaUrls']).is_a?(Array)
|
419
|
+
self.media_urls = value
|
420
|
+
end
|
421
|
+
end
|
422
|
+
|
423
|
+
if attributes.has_key?(:'quantityDenomination')
|
424
|
+
self.quantity_denomination = attributes[:'quantityDenomination']
|
425
|
+
end
|
426
|
+
|
410
427
|
if attributes.has_key?(:'stockReturnUnsellable')
|
411
428
|
self.stock_return_unsellable = attributes[:'stockReturnUnsellable']
|
412
429
|
end
|
413
|
-
|
414
430
|
end
|
415
431
|
|
416
432
|
# Show invalid properties with the reasons. Usually used together with valid?
|
417
433
|
# @return Array for valid properties with the reasons
|
418
434
|
def list_invalid_properties
|
419
435
|
invalid_properties = Array.new
|
420
|
-
|
436
|
+
invalid_properties
|
421
437
|
end
|
422
438
|
|
423
439
|
# Check to see if the all the properties in the model are valid
|
424
440
|
# @return true if the model is valid
|
425
441
|
def valid?
|
426
|
-
packaging_unit_validator = EnumAttributeValidator.new('String', [
|
442
|
+
packaging_unit_validator = EnumAttributeValidator.new('String', ['CUBIC_INCH', 'CUBIC_METER', 'FLUID_OUNCE', 'GALLON_FL', 'GRAM', 'INCH', 'KILOGRAM', 'LITER', 'METER', 'MILLILITER', 'OUNCE', 'POUND', 'SQUARE_INCH', 'SQUARE_METER'])
|
427
443
|
return false unless packaging_unit_validator.valid?(@packaging_unit)
|
428
|
-
subproduct_presentation_validator = EnumAttributeValidator.new('String', [
|
444
|
+
subproduct_presentation_validator = EnumAttributeValidator.new('String', ['DEFAULT', 'HIDE_ALL', 'HIDE_PRICES', 'HIDE_QUANTITIES'])
|
429
445
|
return false unless subproduct_presentation_validator.valid?(@subproduct_presentation)
|
430
|
-
|
446
|
+
true
|
431
447
|
end
|
432
448
|
|
433
449
|
# Custom attribute writer method checking allowed values (enum).
|
434
450
|
# @param [Object] packaging_unit Object to be assigned
|
435
451
|
def packaging_unit=(packaging_unit)
|
436
|
-
validator = EnumAttributeValidator.new('String', [
|
452
|
+
validator = EnumAttributeValidator.new('String', ['CUBIC_INCH', 'CUBIC_METER', 'FLUID_OUNCE', 'GALLON_FL', 'GRAM', 'INCH', 'KILOGRAM', 'LITER', 'METER', 'MILLILITER', 'OUNCE', 'POUND', 'SQUARE_INCH', 'SQUARE_METER'])
|
437
453
|
unless validator.valid?(packaging_unit)
|
438
|
-
fail ArgumentError,
|
454
|
+
fail ArgumentError, 'invalid value for "packaging_unit", must be one of #{validator.allowable_values}.'
|
439
455
|
end
|
440
456
|
@packaging_unit = packaging_unit
|
441
457
|
end
|
@@ -443,9 +459,9 @@ module KoronaClient
|
|
443
459
|
# Custom attribute writer method checking allowed values (enum).
|
444
460
|
# @param [Object] subproduct_presentation Object to be assigned
|
445
461
|
def subproduct_presentation=(subproduct_presentation)
|
446
|
-
validator = EnumAttributeValidator.new('String', [
|
462
|
+
validator = EnumAttributeValidator.new('String', ['DEFAULT', 'HIDE_ALL', 'HIDE_PRICES', 'HIDE_QUANTITIES'])
|
447
463
|
unless validator.valid?(subproduct_presentation)
|
448
|
-
fail ArgumentError,
|
464
|
+
fail ArgumentError, 'invalid value for "subproduct_presentation", must be one of #{validator.allowable_values}.'
|
449
465
|
end
|
450
466
|
@subproduct_presentation = subproduct_presentation
|
451
467
|
end
|
@@ -496,6 +512,8 @@ module KoronaClient
|
|
496
512
|
tags == o.tags &&
|
497
513
|
ticket_definition == o.ticket_definition &&
|
498
514
|
track_inventory == o.track_inventory &&
|
515
|
+
media_urls == o.media_urls &&
|
516
|
+
quantity_denomination == o.quantity_denomination &&
|
499
517
|
stock_return_unsellable == o.stock_return_unsellable
|
500
518
|
end
|
501
519
|
|
@@ -508,7 +526,7 @@ module KoronaClient
|
|
508
526
|
# Calculates hash code according to all attributes.
|
509
527
|
# @return [Fixnum] Hash code
|
510
528
|
def hash
|
511
|
-
[active, id, number, revision, alternative_sector, assortment, codes, commodity_group, conversion, costs, deactivated, deposit, descriptions, discountable, image, info_texts, item_sequence, last_purchase_price, listed, listed_since, max_price, min_price, name, packaging_quantity, packaging_required, packaging_unit, personalization_required, price_changable, prices, print_tickets_separately, production_type, recommended_retail_price, related_products, sector, serial_number_required, subproduct_presentation, subproducts, supplier_prices, tags, ticket_definition, track_inventory, stock_return_unsellable].hash
|
529
|
+
[active, id, number, revision, alternative_sector, assortment, codes, commodity_group, conversion, costs, deactivated, deposit, descriptions, discountable, image, info_texts, item_sequence, last_purchase_price, listed, listed_since, max_price, min_price, name, packaging_quantity, packaging_required, packaging_unit, personalization_required, price_changable, prices, print_tickets_separately, production_type, recommended_retail_price, related_products, sector, serial_number_required, subproduct_presentation, subproducts, supplier_prices, tags, ticket_definition, track_inventory, media_urls, quantity_denomination, stock_return_unsellable].hash
|
512
530
|
end
|
513
531
|
|
514
532
|
# Builds the object from hash
|
@@ -521,7 +539,7 @@ module KoronaClient
|
|
521
539
|
# check to ensure the input is an array given that the the attribute
|
522
540
|
# is documented as an array but the input is not
|
523
541
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
524
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
542
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
525
543
|
end
|
526
544
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
527
545
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -603,7 +621,7 @@ module KoronaClient
|
|
603
621
|
# @return [Hash] Returns the value in the form of hash
|
604
622
|
def _to_hash(value)
|
605
623
|
if value.is_a?(Array)
|
606
|
-
value.compact.map{ |v| _to_hash(v) }
|
624
|
+
value.compact.map { |v| _to_hash(v) }
|
607
625
|
elsif value.is_a?(Hash)
|
608
626
|
{}.tap do |hash|
|
609
627
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -614,7 +632,5 @@ module KoronaClient
|
|
614
632
|
value
|
615
633
|
end
|
616
634
|
end
|
617
|
-
|
618
635
|
end
|
619
|
-
|
620
636
|
end
|