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 EndOfDayStatementSummary
|
18
17
|
attr_accessor :accounts
|
19
18
|
|
@@ -27,7 +26,6 @@ module KoronaClient
|
|
27
26
|
|
28
27
|
attr_accessor :taxes
|
29
28
|
|
30
|
-
|
31
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
32
30
|
def self.attribute_map
|
33
31
|
{
|
@@ -58,7 +56,7 @@ module KoronaClient
|
|
58
56
|
return unless attributes.is_a?(Hash)
|
59
57
|
|
60
58
|
# convert string to symbol for hash key
|
61
|
-
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 }
|
62
60
|
|
63
61
|
if attributes.has_key?(:'accounts')
|
64
62
|
if (value = attributes[:'accounts']).is_a?(Array)
|
@@ -95,20 +93,19 @@ module KoronaClient
|
|
95
93
|
self.taxes = value
|
96
94
|
end
|
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.
|
@@ -146,7 +143,7 @@ module KoronaClient
|
|
146
143
|
# check to ensure the input is an array given that the the attribute
|
147
144
|
# is documented as an array but the input is not
|
148
145
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
149
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
146
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
150
147
|
end
|
151
148
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
152
149
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -228,7 +225,7 @@ module KoronaClient
|
|
228
225
|
# @return [Hash] Returns the value in the form of hash
|
229
226
|
def _to_hash(value)
|
230
227
|
if value.is_a?(Array)
|
231
|
-
value.compact.map{ |v| _to_hash(v) }
|
228
|
+
value.compact.map { |v| _to_hash(v) }
|
232
229
|
elsif value.is_a?(Hash)
|
233
230
|
{}.tap do |hash|
|
234
231
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -239,7 +236,5 @@ module KoronaClient
|
|
239
236
|
value
|
240
237
|
end
|
241
238
|
end
|
242
|
-
|
243
239
|
end
|
244
|
-
|
245
240
|
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 EntryGate
|
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 :parent_entry_gate
|
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?(:'parentEntryGate')
|
96
94
|
self.parent_entry_gate = attributes[:'parentEntryGate']
|
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 Event
|
18
17
|
# indicates whether the object is active for use or not
|
19
18
|
attr_accessor :active
|
@@ -39,6 +38,9 @@ module KoronaClient
|
|
39
38
|
|
40
39
|
attr_accessor :start
|
41
40
|
|
41
|
+
attr_accessor :tags
|
42
|
+
|
43
|
+
attr_accessor :description
|
42
44
|
|
43
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
44
46
|
def self.attribute_map
|
@@ -52,7 +54,9 @@ module KoronaClient
|
|
52
54
|
:'duration' => :'duration',
|
53
55
|
:'location' => :'location',
|
54
56
|
:'name' => :'name',
|
55
|
-
:'start' => :'start'
|
57
|
+
:'start' => :'start',
|
58
|
+
:'tags' => :'tags',
|
59
|
+
:'description' => :'description'
|
56
60
|
}
|
57
61
|
end
|
58
62
|
|
@@ -68,7 +72,9 @@ module KoronaClient
|
|
68
72
|
:'duration' => :'TimePeriod',
|
69
73
|
:'location' => :'String',
|
70
74
|
:'name' => :'String',
|
71
|
-
:'start' => :'DateTime'
|
75
|
+
:'start' => :'DateTime',
|
76
|
+
:'tags' => :'Array<ModelReference>',
|
77
|
+
:'description' => :'String'
|
72
78
|
}
|
73
79
|
end
|
74
80
|
|
@@ -78,7 +84,7 @@ module KoronaClient
|
|
78
84
|
return unless attributes.is_a?(Hash)
|
79
85
|
|
80
86
|
# convert string to symbol for hash key
|
81
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
87
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
82
88
|
|
83
89
|
if attributes.has_key?(:'active')
|
84
90
|
self.active = attributes[:'active']
|
@@ -122,19 +128,28 @@ module KoronaClient
|
|
122
128
|
self.start = attributes[:'start']
|
123
129
|
end
|
124
130
|
|
131
|
+
if attributes.has_key?(:'tags')
|
132
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
133
|
+
self.tags = value
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
137
|
+
if attributes.has_key?(:'description')
|
138
|
+
self.description = attributes[:'description']
|
139
|
+
end
|
125
140
|
end
|
126
141
|
|
127
142
|
# Show invalid properties with the reasons. Usually used together with valid?
|
128
143
|
# @return Array for valid properties with the reasons
|
129
144
|
def list_invalid_properties
|
130
145
|
invalid_properties = Array.new
|
131
|
-
|
146
|
+
invalid_properties
|
132
147
|
end
|
133
148
|
|
134
149
|
# Check to see if the all the properties in the model are valid
|
135
150
|
# @return true if the model is valid
|
136
151
|
def valid?
|
137
|
-
|
152
|
+
true
|
138
153
|
end
|
139
154
|
|
140
155
|
# Checks equality by comparing each attribute.
|
@@ -151,7 +166,9 @@ module KoronaClient
|
|
151
166
|
duration == o.duration &&
|
152
167
|
location == o.location &&
|
153
168
|
name == o.name &&
|
154
|
-
start == o.start
|
169
|
+
start == o.start &&
|
170
|
+
tags == o.tags &&
|
171
|
+
description == o.description
|
155
172
|
end
|
156
173
|
|
157
174
|
# @see the `==` method
|
@@ -163,7 +180,7 @@ module KoronaClient
|
|
163
180
|
# Calculates hash code according to all attributes.
|
164
181
|
# @return [Fixnum] Hash code
|
165
182
|
def hash
|
166
|
-
[active, id, number, revision, capacity, categories, duration, location, name, start].hash
|
183
|
+
[active, id, number, revision, capacity, categories, duration, location, name, start, tags, description].hash
|
167
184
|
end
|
168
185
|
|
169
186
|
# Builds the object from hash
|
@@ -176,7 +193,7 @@ module KoronaClient
|
|
176
193
|
# check to ensure the input is an array given that the the attribute
|
177
194
|
# is documented as an array but the input is not
|
178
195
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
179
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
196
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
180
197
|
end
|
181
198
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
182
199
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -258,7 +275,7 @@ module KoronaClient
|
|
258
275
|
# @return [Hash] Returns the value in the form of hash
|
259
276
|
def _to_hash(value)
|
260
277
|
if value.is_a?(Array)
|
261
|
-
value.compact.map{ |v| _to_hash(v) }
|
278
|
+
value.compact.map { |v| _to_hash(v) }
|
262
279
|
elsif value.is_a?(Hash)
|
263
280
|
{}.tap do |hash|
|
264
281
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -269,7 +286,5 @@ module KoronaClient
|
|
269
286
|
value
|
270
287
|
end
|
271
288
|
end
|
272
|
-
|
273
289
|
end
|
274
|
-
|
275
290
|
end
|
@@ -0,0 +1,295 @@
|
|
1
|
+
=begin
|
2
|
+
#KORONA.cloud API v3
|
3
|
+
|
4
|
+
#Our api provides access to our cloud services
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.11.21
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.8
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module KoronaClient
|
16
|
+
class ExternalSystemCall
|
17
|
+
# indicates whether the object is active for use or not
|
18
|
+
attr_accessor :active
|
19
|
+
|
20
|
+
# global object uuid (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)
|
21
|
+
attr_accessor :id
|
22
|
+
|
23
|
+
# number of the object, like it is set in backoffice; will be removed when active=false
|
24
|
+
attr_accessor :number
|
25
|
+
|
26
|
+
# the revision number of the object. revision numbers are unique per object-type. there is is no object of the same type with identical revision numbers.
|
27
|
+
attr_accessor :revision
|
28
|
+
|
29
|
+
attr_accessor :name
|
30
|
+
|
31
|
+
attr_accessor :display_url
|
32
|
+
|
33
|
+
attr_accessor :display_url_post
|
34
|
+
|
35
|
+
attr_accessor :system_url
|
36
|
+
|
37
|
+
attr_accessor :login
|
38
|
+
|
39
|
+
attr_accessor :password
|
40
|
+
|
41
|
+
attr_accessor :connect_timeout_millis
|
42
|
+
|
43
|
+
attr_accessor :request_timeout_millis
|
44
|
+
|
45
|
+
attr_accessor :customer_display_url
|
46
|
+
|
47
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
48
|
+
def self.attribute_map
|
49
|
+
{
|
50
|
+
:'active' => :'active',
|
51
|
+
:'id' => :'id',
|
52
|
+
:'number' => :'number',
|
53
|
+
:'revision' => :'revision',
|
54
|
+
:'name' => :'name',
|
55
|
+
:'display_url' => :'displayUrl',
|
56
|
+
:'display_url_post' => :'displayUrlPost',
|
57
|
+
:'system_url' => :'systemUrl',
|
58
|
+
:'login' => :'login',
|
59
|
+
:'password' => :'password',
|
60
|
+
:'connect_timeout_millis' => :'connectTimeoutMillis',
|
61
|
+
:'request_timeout_millis' => :'requestTimeoutMillis',
|
62
|
+
:'customer_display_url' => :'customerDisplayUrl'
|
63
|
+
}
|
64
|
+
end
|
65
|
+
|
66
|
+
# Attribute type mapping.
|
67
|
+
def self.swagger_types
|
68
|
+
{
|
69
|
+
:'active' => :'BOOLEAN',
|
70
|
+
:'id' => :'String',
|
71
|
+
:'number' => :'String',
|
72
|
+
:'revision' => :'Integer',
|
73
|
+
:'name' => :'String',
|
74
|
+
:'display_url' => :'String',
|
75
|
+
:'display_url_post' => :'BOOLEAN',
|
76
|
+
:'system_url' => :'String',
|
77
|
+
:'login' => :'String',
|
78
|
+
:'password' => :'String',
|
79
|
+
:'connect_timeout_millis' => :'Integer',
|
80
|
+
:'request_timeout_millis' => :'Integer',
|
81
|
+
:'customer_display_url' => :'String'
|
82
|
+
}
|
83
|
+
end
|
84
|
+
|
85
|
+
# Initializes the object
|
86
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
87
|
+
def initialize(attributes = {})
|
88
|
+
return unless attributes.is_a?(Hash)
|
89
|
+
|
90
|
+
# convert string to symbol for hash key
|
91
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
92
|
+
|
93
|
+
if attributes.has_key?(:'active')
|
94
|
+
self.active = attributes[:'active']
|
95
|
+
end
|
96
|
+
|
97
|
+
if attributes.has_key?(:'id')
|
98
|
+
self.id = attributes[:'id']
|
99
|
+
end
|
100
|
+
|
101
|
+
if attributes.has_key?(:'number')
|
102
|
+
self.number = attributes[:'number']
|
103
|
+
end
|
104
|
+
|
105
|
+
if attributes.has_key?(:'revision')
|
106
|
+
self.revision = attributes[:'revision']
|
107
|
+
end
|
108
|
+
|
109
|
+
if attributes.has_key?(:'name')
|
110
|
+
self.name = attributes[:'name']
|
111
|
+
end
|
112
|
+
|
113
|
+
if attributes.has_key?(:'displayUrl')
|
114
|
+
self.display_url = attributes[:'displayUrl']
|
115
|
+
end
|
116
|
+
|
117
|
+
if attributes.has_key?(:'displayUrlPost')
|
118
|
+
self.display_url_post = attributes[:'displayUrlPost']
|
119
|
+
end
|
120
|
+
|
121
|
+
if attributes.has_key?(:'systemUrl')
|
122
|
+
self.system_url = attributes[:'systemUrl']
|
123
|
+
end
|
124
|
+
|
125
|
+
if attributes.has_key?(:'login')
|
126
|
+
self.login = attributes[:'login']
|
127
|
+
end
|
128
|
+
|
129
|
+
if attributes.has_key?(:'password')
|
130
|
+
self.password = attributes[:'password']
|
131
|
+
end
|
132
|
+
|
133
|
+
if attributes.has_key?(:'connectTimeoutMillis')
|
134
|
+
self.connect_timeout_millis = attributes[:'connectTimeoutMillis']
|
135
|
+
end
|
136
|
+
|
137
|
+
if attributes.has_key?(:'requestTimeoutMillis')
|
138
|
+
self.request_timeout_millis = attributes[:'requestTimeoutMillis']
|
139
|
+
end
|
140
|
+
|
141
|
+
if attributes.has_key?(:'customerDisplayUrl')
|
142
|
+
self.customer_display_url = attributes[:'customerDisplayUrl']
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
146
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
147
|
+
# @return Array for valid properties with the reasons
|
148
|
+
def list_invalid_properties
|
149
|
+
invalid_properties = Array.new
|
150
|
+
invalid_properties
|
151
|
+
end
|
152
|
+
|
153
|
+
# Check to see if the all the properties in the model are valid
|
154
|
+
# @return true if the model is valid
|
155
|
+
def valid?
|
156
|
+
true
|
157
|
+
end
|
158
|
+
|
159
|
+
# Checks equality by comparing each attribute.
|
160
|
+
# @param [Object] Object to be compared
|
161
|
+
def ==(o)
|
162
|
+
return true if self.equal?(o)
|
163
|
+
self.class == o.class &&
|
164
|
+
active == o.active &&
|
165
|
+
id == o.id &&
|
166
|
+
number == o.number &&
|
167
|
+
revision == o.revision &&
|
168
|
+
name == o.name &&
|
169
|
+
display_url == o.display_url &&
|
170
|
+
display_url_post == o.display_url_post &&
|
171
|
+
system_url == o.system_url &&
|
172
|
+
login == o.login &&
|
173
|
+
password == o.password &&
|
174
|
+
connect_timeout_millis == o.connect_timeout_millis &&
|
175
|
+
request_timeout_millis == o.request_timeout_millis &&
|
176
|
+
customer_display_url == o.customer_display_url
|
177
|
+
end
|
178
|
+
|
179
|
+
# @see the `==` method
|
180
|
+
# @param [Object] Object to be compared
|
181
|
+
def eql?(o)
|
182
|
+
self == o
|
183
|
+
end
|
184
|
+
|
185
|
+
# Calculates hash code according to all attributes.
|
186
|
+
# @return [Fixnum] Hash code
|
187
|
+
def hash
|
188
|
+
[active, id, number, revision, name, display_url, display_url_post, system_url, login, password, connect_timeout_millis, request_timeout_millis, customer_display_url].hash
|
189
|
+
end
|
190
|
+
|
191
|
+
# Builds the object from hash
|
192
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
193
|
+
# @return [Object] Returns the model itself
|
194
|
+
def build_from_hash(attributes)
|
195
|
+
return nil unless attributes.is_a?(Hash)
|
196
|
+
self.class.swagger_types.each_pair do |key, type|
|
197
|
+
if type =~ /\AArray<(.*)>/i
|
198
|
+
# check to ensure the input is an array given that the the attribute
|
199
|
+
# is documented as an array but the input is not
|
200
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
201
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
202
|
+
end
|
203
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
204
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
205
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
206
|
+
end
|
207
|
+
|
208
|
+
self
|
209
|
+
end
|
210
|
+
|
211
|
+
# Deserializes the data based on type
|
212
|
+
# @param string type Data type
|
213
|
+
# @param string value Value to be deserialized
|
214
|
+
# @return [Object] Deserialized data
|
215
|
+
def _deserialize(type, value)
|
216
|
+
case type.to_sym
|
217
|
+
when :DateTime
|
218
|
+
DateTime.parse(value)
|
219
|
+
when :Date
|
220
|
+
Date.parse(value)
|
221
|
+
when :String
|
222
|
+
value.to_s
|
223
|
+
when :Integer
|
224
|
+
value.to_i
|
225
|
+
when :Float
|
226
|
+
value.to_f
|
227
|
+
when :BOOLEAN
|
228
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
229
|
+
true
|
230
|
+
else
|
231
|
+
false
|
232
|
+
end
|
233
|
+
when :Object
|
234
|
+
# generic object (usually a Hash), return directly
|
235
|
+
value
|
236
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
237
|
+
inner_type = Regexp.last_match[:inner_type]
|
238
|
+
value.map { |v| _deserialize(inner_type, v) }
|
239
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
240
|
+
k_type = Regexp.last_match[:k_type]
|
241
|
+
v_type = Regexp.last_match[:v_type]
|
242
|
+
{}.tap do |hash|
|
243
|
+
value.each do |k, v|
|
244
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
245
|
+
end
|
246
|
+
end
|
247
|
+
else # model
|
248
|
+
temp_model = KoronaClient.const_get(type).new
|
249
|
+
temp_model.build_from_hash(value)
|
250
|
+
end
|
251
|
+
end
|
252
|
+
|
253
|
+
# Returns the string representation of the object
|
254
|
+
# @return [String] String presentation of the object
|
255
|
+
def to_s
|
256
|
+
to_hash.to_s
|
257
|
+
end
|
258
|
+
|
259
|
+
# to_body is an alias to to_hash (backward compatibility)
|
260
|
+
# @return [Hash] Returns the object in the form of hash
|
261
|
+
def to_body
|
262
|
+
to_hash
|
263
|
+
end
|
264
|
+
|
265
|
+
# Returns the object in the form of hash
|
266
|
+
# @return [Hash] Returns the object in the form of hash
|
267
|
+
def to_hash
|
268
|
+
hash = {}
|
269
|
+
self.class.attribute_map.each_pair do |attr, param|
|
270
|
+
value = self.send(attr)
|
271
|
+
next if value.nil?
|
272
|
+
hash[param] = _to_hash(value)
|
273
|
+
end
|
274
|
+
hash
|
275
|
+
end
|
276
|
+
|
277
|
+
# Outputs non-array value in the form of hash
|
278
|
+
# For object, use to_hash. Otherwise, just return the value
|
279
|
+
# @param [Object] value Any valid value
|
280
|
+
# @return [Hash] Returns the value in the form of hash
|
281
|
+
def _to_hash(value)
|
282
|
+
if value.is_a?(Array)
|
283
|
+
value.compact.map { |v| _to_hash(v) }
|
284
|
+
elsif value.is_a?(Hash)
|
285
|
+
{}.tap do |hash|
|
286
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
287
|
+
end
|
288
|
+
elsif value.respond_to? :to_hash
|
289
|
+
value.to_hash
|
290
|
+
else
|
291
|
+
value
|
292
|
+
end
|
293
|
+
end
|
294
|
+
end
|
295
|
+
end
|