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,10 +3,10 @@
|
|
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
|
|
@@ -3,10 +3,10 @@
|
|
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
|
|
@@ -170,7 +170,7 @@ module KoronaClient
|
|
170
170
|
def base_path=(base_path)
|
171
171
|
# Add leading and trailing slashes to base_path
|
172
172
|
@base_path = "/#{base_path}".gsub(/\/+/, '/')
|
173
|
-
@base_path =
|
173
|
+
@base_path = '' if @base_path == '/'
|
174
174
|
end
|
175
175
|
|
176
176
|
def base_url
|
@@ -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 Account
|
18
17
|
# indicates whether the object is active for use or not
|
19
18
|
attr_accessor :active
|
@@ -107,7 +106,7 @@ module KoronaClient
|
|
107
106
|
return unless attributes.is_a?(Hash)
|
108
107
|
|
109
108
|
# convert string to symbol for hash key
|
110
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
109
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
111
110
|
|
112
111
|
if attributes.has_key?(:'active')
|
113
112
|
self.active = attributes[:'active']
|
@@ -156,30 +155,29 @@ module KoronaClient
|
|
156
155
|
if attributes.has_key?(:'type')
|
157
156
|
self.type = attributes[:'type']
|
158
157
|
end
|
159
|
-
|
160
158
|
end
|
161
159
|
|
162
160
|
# Show invalid properties with the reasons. Usually used together with valid?
|
163
161
|
# @return Array for valid properties with the reasons
|
164
162
|
def list_invalid_properties
|
165
163
|
invalid_properties = Array.new
|
166
|
-
|
164
|
+
invalid_properties
|
167
165
|
end
|
168
166
|
|
169
167
|
# Check to see if the all the properties in the model are valid
|
170
168
|
# @return true if the model is valid
|
171
169
|
def valid?
|
172
|
-
type_validator = EnumAttributeValidator.new('String', [
|
170
|
+
type_validator = EnumAttributeValidator.new('String', ['DEPOSIT', 'WITHDRAWAL'])
|
173
171
|
return false unless type_validator.valid?(@type)
|
174
|
-
|
172
|
+
true
|
175
173
|
end
|
176
174
|
|
177
175
|
# Custom attribute writer method checking allowed values (enum).
|
178
176
|
# @param [Object] type Object to be assigned
|
179
177
|
def type=(type)
|
180
|
-
validator = EnumAttributeValidator.new('String', [
|
178
|
+
validator = EnumAttributeValidator.new('String', ['DEPOSIT', 'WITHDRAWAL'])
|
181
179
|
unless validator.valid?(type)
|
182
|
-
fail ArgumentError,
|
180
|
+
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
183
181
|
end
|
184
182
|
@type = type
|
185
183
|
end
|
@@ -225,7 +223,7 @@ module KoronaClient
|
|
225
223
|
# check to ensure the input is an array given that the the attribute
|
226
224
|
# is documented as an array but the input is not
|
227
225
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
228
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
226
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
229
227
|
end
|
230
228
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
231
229
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -307,7 +305,7 @@ module KoronaClient
|
|
307
305
|
# @return [Hash] Returns the value in the form of hash
|
308
306
|
def _to_hash(value)
|
309
307
|
if value.is_a?(Array)
|
310
|
-
value.compact.map{ |v| _to_hash(v) }
|
308
|
+
value.compact.map { |v| _to_hash(v) }
|
311
309
|
elsif value.is_a?(Hash)
|
312
310
|
{}.tap do |hash|
|
313
311
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -318,7 +316,5 @@ module KoronaClient
|
|
318
316
|
value
|
319
317
|
end
|
320
318
|
end
|
321
|
-
|
322
319
|
end
|
323
|
-
|
324
320
|
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 AccountSummary
|
18
17
|
attr_accessor :account
|
19
18
|
|
@@ -21,7 +20,6 @@ module KoronaClient
|
|
21
20
|
|
22
21
|
attr_accessor :transactions
|
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?(:'account')
|
52
50
|
self.account = attributes[:'account']
|
@@ -59,20 +57,19 @@ module KoronaClient
|
|
59
57
|
if attributes.has_key?(:'transactions')
|
60
58
|
self.transactions = attributes[:'transactions']
|
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 AccountTransaction
|
18
17
|
attr_accessor :account
|
19
18
|
|
@@ -23,6 +22,9 @@ module KoronaClient
|
|
23
22
|
|
24
23
|
attr_accessor :description
|
25
24
|
|
25
|
+
attr_accessor :info_texts
|
26
|
+
|
27
|
+
attr_accessor :serial_numbers
|
26
28
|
|
27
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
30
|
def self.attribute_map
|
@@ -30,7 +32,9 @@ module KoronaClient
|
|
30
32
|
:'account' => :'account',
|
31
33
|
:'amount' => :'amount',
|
32
34
|
:'booking_time' => :'bookingTime',
|
33
|
-
:'description' => :'description'
|
35
|
+
:'description' => :'description',
|
36
|
+
:'info_texts' => :'infoTexts',
|
37
|
+
:'serial_numbers' => :'serialNumbers'
|
34
38
|
}
|
35
39
|
end
|
36
40
|
|
@@ -40,7 +44,9 @@ module KoronaClient
|
|
40
44
|
:'account' => :'ModelReference',
|
41
45
|
:'amount' => :'Float',
|
42
46
|
:'booking_time' => :'DateTime',
|
43
|
-
:'description' => :'String'
|
47
|
+
:'description' => :'String',
|
48
|
+
:'info_texts' => :'Array<String>',
|
49
|
+
:'serial_numbers' => :'Array<String>'
|
44
50
|
}
|
45
51
|
end
|
46
52
|
|
@@ -50,7 +56,7 @@ module KoronaClient
|
|
50
56
|
return unless attributes.is_a?(Hash)
|
51
57
|
|
52
58
|
# convert string to symbol for hash key
|
53
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
59
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
54
60
|
|
55
61
|
if attributes.has_key?(:'account')
|
56
62
|
self.account = attributes[:'account']
|
@@ -68,19 +74,30 @@ module KoronaClient
|
|
68
74
|
self.description = attributes[:'description']
|
69
75
|
end
|
70
76
|
|
77
|
+
if attributes.has_key?(:'infoTexts')
|
78
|
+
if (value = attributes[:'infoTexts']).is_a?(Array)
|
79
|
+
self.info_texts = value
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
if attributes.has_key?(:'serialNumbers')
|
84
|
+
if (value = attributes[:'serialNumbers']).is_a?(Array)
|
85
|
+
self.serial_numbers = value
|
86
|
+
end
|
87
|
+
end
|
71
88
|
end
|
72
89
|
|
73
90
|
# Show invalid properties with the reasons. Usually used together with valid?
|
74
91
|
# @return Array for valid properties with the reasons
|
75
92
|
def list_invalid_properties
|
76
93
|
invalid_properties = Array.new
|
77
|
-
|
94
|
+
invalid_properties
|
78
95
|
end
|
79
96
|
|
80
97
|
# Check to see if the all the properties in the model are valid
|
81
98
|
# @return true if the model is valid
|
82
99
|
def valid?
|
83
|
-
|
100
|
+
true
|
84
101
|
end
|
85
102
|
|
86
103
|
# Checks equality by comparing each attribute.
|
@@ -91,7 +108,9 @@ module KoronaClient
|
|
91
108
|
account == o.account &&
|
92
109
|
amount == o.amount &&
|
93
110
|
booking_time == o.booking_time &&
|
94
|
-
description == o.description
|
111
|
+
description == o.description &&
|
112
|
+
info_texts == o.info_texts &&
|
113
|
+
serial_numbers == o.serial_numbers
|
95
114
|
end
|
96
115
|
|
97
116
|
# @see the `==` method
|
@@ -103,7 +122,7 @@ module KoronaClient
|
|
103
122
|
# Calculates hash code according to all attributes.
|
104
123
|
# @return [Fixnum] Hash code
|
105
124
|
def hash
|
106
|
-
[account, amount, booking_time, description].hash
|
125
|
+
[account, amount, booking_time, description, info_texts, serial_numbers].hash
|
107
126
|
end
|
108
127
|
|
109
128
|
# Builds the object from hash
|
@@ -116,7 +135,7 @@ module KoronaClient
|
|
116
135
|
# check to ensure the input is an array given that the the attribute
|
117
136
|
# is documented as an array but the input is not
|
118
137
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
119
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
138
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
120
139
|
end
|
121
140
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
122
141
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -198,7 +217,7 @@ module KoronaClient
|
|
198
217
|
# @return [Hash] Returns the value in the form of hash
|
199
218
|
def _to_hash(value)
|
200
219
|
if value.is_a?(Array)
|
201
|
-
value.compact.map{ |v| _to_hash(v) }
|
220
|
+
value.compact.map { |v| _to_hash(v) }
|
202
221
|
elsif value.is_a?(Hash)
|
203
222
|
{}.tap do |hash|
|
204
223
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -209,7 +228,5 @@ module KoronaClient
|
|
209
228
|
value
|
210
229
|
end
|
211
230
|
end
|
212
|
-
|
213
231
|
end
|
214
|
-
|
215
232
|
end
|
@@ -3,22 +3,23 @@
|
|
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 AddOrUpdateResult
|
18
17
|
attr_accessor :action
|
19
18
|
|
20
19
|
attr_accessor :href
|
21
20
|
|
21
|
+
attr_accessor :revision
|
22
|
+
|
22
23
|
attr_accessor :message
|
23
24
|
|
24
25
|
attr_accessor :number
|
@@ -54,6 +55,7 @@ module KoronaClient
|
|
54
55
|
{
|
55
56
|
:'action' => :'action',
|
56
57
|
:'href' => :'href',
|
58
|
+
:'revision' => :'revision',
|
57
59
|
:'message' => :'message',
|
58
60
|
:'number' => :'number',
|
59
61
|
:'status' => :'status',
|
@@ -66,6 +68,7 @@ module KoronaClient
|
|
66
68
|
{
|
67
69
|
:'action' => :'String',
|
68
70
|
:'href' => :'String',
|
71
|
+
:'revision' => :'Integer',
|
69
72
|
:'message' => :'String',
|
70
73
|
:'number' => :'String',
|
71
74
|
:'status' => :'String',
|
@@ -79,7 +82,7 @@ module KoronaClient
|
|
79
82
|
return unless attributes.is_a?(Hash)
|
80
83
|
|
81
84
|
# convert string to symbol for hash key
|
82
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
85
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
83
86
|
|
84
87
|
if attributes.has_key?(:'action')
|
85
88
|
self.action = attributes[:'action']
|
@@ -89,6 +92,10 @@ module KoronaClient
|
|
89
92
|
self.href = attributes[:'href']
|
90
93
|
end
|
91
94
|
|
95
|
+
if attributes.has_key?(:'revision')
|
96
|
+
self.revision = attributes[:'revision']
|
97
|
+
end
|
98
|
+
|
92
99
|
if attributes.has_key?(:'message')
|
93
100
|
self.message = attributes[:'message']
|
94
101
|
end
|
@@ -104,32 +111,31 @@ module KoronaClient
|
|
104
111
|
if attributes.has_key?(:'id')
|
105
112
|
self.id = attributes[:'id']
|
106
113
|
end
|
107
|
-
|
108
114
|
end
|
109
115
|
|
110
116
|
# Show invalid properties with the reasons. Usually used together with valid?
|
111
117
|
# @return Array for valid properties with the reasons
|
112
118
|
def list_invalid_properties
|
113
119
|
invalid_properties = Array.new
|
114
|
-
|
120
|
+
invalid_properties
|
115
121
|
end
|
116
122
|
|
117
123
|
# Check to see if the all the properties in the model are valid
|
118
124
|
# @return true if the model is valid
|
119
125
|
def valid?
|
120
|
-
action_validator = EnumAttributeValidator.new('String', [
|
126
|
+
action_validator = EnumAttributeValidator.new('String', ['ADDED', 'DELETED', 'QUEUED', 'UPDATED'])
|
121
127
|
return false unless action_validator.valid?(@action)
|
122
|
-
status_validator = EnumAttributeValidator.new('String', [
|
128
|
+
status_validator = EnumAttributeValidator.new('String', ['ERROR', 'OK'])
|
123
129
|
return false unless status_validator.valid?(@status)
|
124
|
-
|
130
|
+
true
|
125
131
|
end
|
126
132
|
|
127
133
|
# Custom attribute writer method checking allowed values (enum).
|
128
134
|
# @param [Object] action Object to be assigned
|
129
135
|
def action=(action)
|
130
|
-
validator = EnumAttributeValidator.new('String', [
|
136
|
+
validator = EnumAttributeValidator.new('String', ['ADDED', 'DELETED', 'QUEUED', 'UPDATED'])
|
131
137
|
unless validator.valid?(action)
|
132
|
-
fail ArgumentError,
|
138
|
+
fail ArgumentError, 'invalid value for "action", must be one of #{validator.allowable_values}.'
|
133
139
|
end
|
134
140
|
@action = action
|
135
141
|
end
|
@@ -137,9 +143,9 @@ module KoronaClient
|
|
137
143
|
# Custom attribute writer method checking allowed values (enum).
|
138
144
|
# @param [Object] status Object to be assigned
|
139
145
|
def status=(status)
|
140
|
-
validator = EnumAttributeValidator.new('String', [
|
146
|
+
validator = EnumAttributeValidator.new('String', ['ERROR', 'OK'])
|
141
147
|
unless validator.valid?(status)
|
142
|
-
fail ArgumentError,
|
148
|
+
fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
|
143
149
|
end
|
144
150
|
@status = status
|
145
151
|
end
|
@@ -151,6 +157,7 @@ module KoronaClient
|
|
151
157
|
self.class == o.class &&
|
152
158
|
action == o.action &&
|
153
159
|
href == o.href &&
|
160
|
+
revision == o.revision &&
|
154
161
|
message == o.message &&
|
155
162
|
number == o.number &&
|
156
163
|
status == o.status &&
|
@@ -166,7 +173,7 @@ module KoronaClient
|
|
166
173
|
# Calculates hash code according to all attributes.
|
167
174
|
# @return [Fixnum] Hash code
|
168
175
|
def hash
|
169
|
-
[action, href, message, number, status, id].hash
|
176
|
+
[action, href, revision, message, number, status, id].hash
|
170
177
|
end
|
171
178
|
|
172
179
|
# Builds the object from hash
|
@@ -179,7 +186,7 @@ module KoronaClient
|
|
179
186
|
# check to ensure the input is an array given that the the attribute
|
180
187
|
# is documented as an array but the input is not
|
181
188
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
182
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
189
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
183
190
|
end
|
184
191
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
185
192
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -261,7 +268,7 @@ module KoronaClient
|
|
261
268
|
# @return [Hash] Returns the value in the form of hash
|
262
269
|
def _to_hash(value)
|
263
270
|
if value.is_a?(Array)
|
264
|
-
value.compact.map{ |v| _to_hash(v) }
|
271
|
+
value.compact.map { |v| _to_hash(v) }
|
265
272
|
elsif value.is_a?(Hash)
|
266
273
|
{}.tap do |hash|
|
267
274
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -272,7 +279,5 @@ module KoronaClient
|
|
272
279
|
value
|
273
280
|
end
|
274
281
|
end
|
275
|
-
|
276
282
|
end
|
277
|
-
|
278
283
|
end
|