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 InventoryList
|
18
17
|
# indicates whether the object is active for use or not
|
19
18
|
attr_accessor :active
|
@@ -119,7 +118,7 @@ module KoronaClient
|
|
119
118
|
return unless attributes.is_a?(Hash)
|
120
119
|
|
121
120
|
# convert string to symbol for hash key
|
122
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
121
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
123
122
|
|
124
123
|
if attributes.has_key?(:'active')
|
125
124
|
self.active = attributes[:'active']
|
@@ -180,30 +179,29 @@ module KoronaClient
|
|
180
179
|
if attributes.has_key?(:'status')
|
181
180
|
self.status = attributes[:'status']
|
182
181
|
end
|
183
|
-
|
184
182
|
end
|
185
183
|
|
186
184
|
# Show invalid properties with the reasons. Usually used together with valid?
|
187
185
|
# @return Array for valid properties with the reasons
|
188
186
|
def list_invalid_properties
|
189
187
|
invalid_properties = Array.new
|
190
|
-
|
188
|
+
invalid_properties
|
191
189
|
end
|
192
190
|
|
193
191
|
# Check to see if the all the properties in the model are valid
|
194
192
|
# @return true if the model is valid
|
195
193
|
def valid?
|
196
|
-
status_validator = EnumAttributeValidator.new('String', [
|
194
|
+
status_validator = EnumAttributeValidator.new('String', ['BOOKED', 'IN_PROGRESS'])
|
197
195
|
return false unless status_validator.valid?(@status)
|
198
|
-
|
196
|
+
true
|
199
197
|
end
|
200
198
|
|
201
199
|
# Custom attribute writer method checking allowed values (enum).
|
202
200
|
# @param [Object] status Object to be assigned
|
203
201
|
def status=(status)
|
204
|
-
validator = EnumAttributeValidator.new('String', [
|
202
|
+
validator = EnumAttributeValidator.new('String', ['BOOKED', 'IN_PROGRESS'])
|
205
203
|
unless validator.valid?(status)
|
206
|
-
fail ArgumentError,
|
204
|
+
fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
|
207
205
|
end
|
208
206
|
@status = status
|
209
207
|
end
|
@@ -252,7 +250,7 @@ module KoronaClient
|
|
252
250
|
# check to ensure the input is an array given that the the attribute
|
253
251
|
# is documented as an array but the input is not
|
254
252
|
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) }
|
253
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
256
254
|
end
|
257
255
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
258
256
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -334,7 +332,7 @@ module KoronaClient
|
|
334
332
|
# @return [Hash] Returns the value in the form of hash
|
335
333
|
def _to_hash(value)
|
336
334
|
if value.is_a?(Array)
|
337
|
-
value.compact.map{ |v| _to_hash(v) }
|
335
|
+
value.compact.map { |v| _to_hash(v) }
|
338
336
|
elsif value.is_a?(Hash)
|
339
337
|
{}.tap do |hash|
|
340
338
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -345,7 +343,5 @@ module KoronaClient
|
|
345
343
|
value
|
346
344
|
end
|
347
345
|
end
|
348
|
-
|
349
346
|
end
|
350
|
-
|
351
347
|
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 InventoryListItem
|
18
17
|
attr_accessor :average_purchase_price
|
19
18
|
|
@@ -27,7 +26,6 @@ module KoronaClient
|
|
27
26
|
|
28
27
|
attr_accessor :stock_difference_reason
|
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?(:'averagePurchasePrice')
|
64
62
|
self.average_purchase_price = attributes[:'averagePurchasePrice']
|
@@ -83,20 +81,19 @@ module KoronaClient
|
|
83
81
|
if attributes.has_key?(:'stockDifferenceReason')
|
84
82
|
self.stock_difference_reason = attributes[:'stockDifferenceReason']
|
85
83
|
end
|
86
|
-
|
87
84
|
end
|
88
85
|
|
89
86
|
# Show invalid properties with the reasons. Usually used together with valid?
|
90
87
|
# @return Array for valid properties with the reasons
|
91
88
|
def list_invalid_properties
|
92
89
|
invalid_properties = Array.new
|
93
|
-
|
90
|
+
invalid_properties
|
94
91
|
end
|
95
92
|
|
96
93
|
# Check to see if the all the properties in the model are valid
|
97
94
|
# @return true if the model is valid
|
98
95
|
def valid?
|
99
|
-
|
96
|
+
true
|
100
97
|
end
|
101
98
|
|
102
99
|
# Checks equality by comparing each attribute.
|
@@ -134,7 +131,7 @@ module KoronaClient
|
|
134
131
|
# check to ensure the input is an array given that the the attribute
|
135
132
|
# is documented as an array but the input is not
|
136
133
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
137
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
134
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
138
135
|
end
|
139
136
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
140
137
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -216,7 +213,7 @@ module KoronaClient
|
|
216
213
|
# @return [Hash] Returns the value in the form of hash
|
217
214
|
def _to_hash(value)
|
218
215
|
if value.is_a?(Array)
|
219
|
-
value.compact.map{ |v| _to_hash(v) }
|
216
|
+
value.compact.map { |v| _to_hash(v) }
|
220
217
|
elsif value.is_a?(Hash)
|
221
218
|
{}.tap do |hash|
|
222
219
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -227,7 +224,5 @@ module KoronaClient
|
|
227
224
|
value
|
228
225
|
end
|
229
226
|
end
|
230
|
-
|
231
227
|
end
|
232
|
-
|
233
228
|
end
|
@@ -3,23 +3,21 @@
|
|
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 InventoryListItemStock
|
18
17
|
attr_accessor :actual
|
19
18
|
|
20
19
|
attr_accessor :nominal
|
21
20
|
|
22
|
-
|
23
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
22
|
def self.attribute_map
|
25
23
|
{
|
@@ -42,7 +40,7 @@ module KoronaClient
|
|
42
40
|
return unless attributes.is_a?(Hash)
|
43
41
|
|
44
42
|
# convert string to symbol for hash key
|
45
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
43
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
46
44
|
|
47
45
|
if attributes.has_key?(:'actual')
|
48
46
|
self.actual = attributes[:'actual']
|
@@ -51,20 +49,19 @@ module KoronaClient
|
|
51
49
|
if attributes.has_key?(:'nominal')
|
52
50
|
self.nominal = attributes[:'nominal']
|
53
51
|
end
|
54
|
-
|
55
52
|
end
|
56
53
|
|
57
54
|
# Show invalid properties with the reasons. Usually used together with valid?
|
58
55
|
# @return Array for valid properties with the reasons
|
59
56
|
def list_invalid_properties
|
60
57
|
invalid_properties = Array.new
|
61
|
-
|
58
|
+
invalid_properties
|
62
59
|
end
|
63
60
|
|
64
61
|
# Check to see if the all the properties in the model are valid
|
65
62
|
# @return true if the model is valid
|
66
63
|
def valid?
|
67
|
-
|
64
|
+
true
|
68
65
|
end
|
69
66
|
|
70
67
|
# Checks equality by comparing each attribute.
|
@@ -98,7 +95,7 @@ module KoronaClient
|
|
98
95
|
# check to ensure the input is an array given that the the attribute
|
99
96
|
# is documented as an array but the input is not
|
100
97
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
101
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
98
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
102
99
|
end
|
103
100
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
104
101
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -180,7 +177,7 @@ module KoronaClient
|
|
180
177
|
# @return [Hash] Returns the value in the form of hash
|
181
178
|
def _to_hash(value)
|
182
179
|
if value.is_a?(Array)
|
183
|
-
value.compact.map{ |v| _to_hash(v) }
|
180
|
+
value.compact.map { |v| _to_hash(v) }
|
184
181
|
elsif value.is_a?(Hash)
|
185
182
|
{}.tap do |hash|
|
186
183
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -191,7 +188,5 @@ module KoronaClient
|
|
191
188
|
value
|
192
189
|
end
|
193
190
|
end
|
194
|
-
|
195
191
|
end
|
196
|
-
|
197
192
|
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 KoronaAccount
|
18
17
|
# indicates whether the object is active for use or not
|
19
18
|
attr_accessor :active
|
@@ -27,6 +26,8 @@ module KoronaClient
|
|
27
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.
|
28
27
|
attr_accessor :revision
|
29
28
|
|
29
|
+
attr_accessor :active_packages
|
30
|
+
|
30
31
|
attr_accessor :address
|
31
32
|
|
32
33
|
attr_accessor :cloud_subscription
|
@@ -37,6 +38,27 @@ module KoronaClient
|
|
37
38
|
|
38
39
|
attr_accessor :test_mode
|
39
40
|
|
41
|
+
class EnumAttributeValidator
|
42
|
+
attr_reader :datatype
|
43
|
+
attr_reader :allowable_values
|
44
|
+
|
45
|
+
def initialize(datatype, allowable_values)
|
46
|
+
@allowable_values = allowable_values.map do |value|
|
47
|
+
case datatype.to_s
|
48
|
+
when /Integer/i
|
49
|
+
value.to_i
|
50
|
+
when /Float/i
|
51
|
+
value.to_f
|
52
|
+
else
|
53
|
+
value
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
def valid?(value)
|
59
|
+
!value || allowable_values.include?(value)
|
60
|
+
end
|
61
|
+
end
|
40
62
|
|
41
63
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
64
|
def self.attribute_map
|
@@ -45,6 +67,7 @@ module KoronaClient
|
|
45
67
|
:'id' => :'id',
|
46
68
|
:'number' => :'number',
|
47
69
|
:'revision' => :'revision',
|
70
|
+
:'active_packages' => :'activePackages',
|
48
71
|
:'address' => :'address',
|
49
72
|
:'cloud_subscription' => :'cloudSubscription',
|
50
73
|
:'company' => :'company',
|
@@ -60,6 +83,7 @@ module KoronaClient
|
|
60
83
|
:'id' => :'String',
|
61
84
|
:'number' => :'String',
|
62
85
|
:'revision' => :'Integer',
|
86
|
+
:'active_packages' => :'Array<String>',
|
63
87
|
:'address' => :'AddressInformation',
|
64
88
|
:'cloud_subscription' => :'CloudSubscription',
|
65
89
|
:'company' => :'String',
|
@@ -74,7 +98,7 @@ module KoronaClient
|
|
74
98
|
return unless attributes.is_a?(Hash)
|
75
99
|
|
76
100
|
# convert string to symbol for hash key
|
77
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
101
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
78
102
|
|
79
103
|
if attributes.has_key?(:'active')
|
80
104
|
self.active = attributes[:'active']
|
@@ -92,6 +116,12 @@ module KoronaClient
|
|
92
116
|
self.revision = attributes[:'revision']
|
93
117
|
end
|
94
118
|
|
119
|
+
if attributes.has_key?(:'activePackages')
|
120
|
+
if (value = attributes[:'activePackages']).is_a?(Array)
|
121
|
+
self.active_packages = value
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
95
125
|
if attributes.has_key?(:'address')
|
96
126
|
self.address = attributes[:'address']
|
97
127
|
end
|
@@ -111,20 +141,19 @@ module KoronaClient
|
|
111
141
|
if attributes.has_key?(:'testMode')
|
112
142
|
self.test_mode = attributes[:'testMode']
|
113
143
|
end
|
114
|
-
|
115
144
|
end
|
116
145
|
|
117
146
|
# Show invalid properties with the reasons. Usually used together with valid?
|
118
147
|
# @return Array for valid properties with the reasons
|
119
148
|
def list_invalid_properties
|
120
149
|
invalid_properties = Array.new
|
121
|
-
|
150
|
+
invalid_properties
|
122
151
|
end
|
123
152
|
|
124
153
|
# Check to see if the all the properties in the model are valid
|
125
154
|
# @return true if the model is valid
|
126
155
|
def valid?
|
127
|
-
|
156
|
+
true
|
128
157
|
end
|
129
158
|
|
130
159
|
# Checks equality by comparing each attribute.
|
@@ -136,6 +165,7 @@ module KoronaClient
|
|
136
165
|
id == o.id &&
|
137
166
|
number == o.number &&
|
138
167
|
revision == o.revision &&
|
168
|
+
active_packages == o.active_packages &&
|
139
169
|
address == o.address &&
|
140
170
|
cloud_subscription == o.cloud_subscription &&
|
141
171
|
company == o.company &&
|
@@ -152,7 +182,7 @@ module KoronaClient
|
|
152
182
|
# Calculates hash code according to all attributes.
|
153
183
|
# @return [Fixnum] Hash code
|
154
184
|
def hash
|
155
|
-
[active, id, number, revision, address, cloud_subscription, company, identification, test_mode].hash
|
185
|
+
[active, id, number, revision, active_packages, address, cloud_subscription, company, identification, test_mode].hash
|
156
186
|
end
|
157
187
|
|
158
188
|
# Builds the object from hash
|
@@ -165,7 +195,7 @@ module KoronaClient
|
|
165
195
|
# check to ensure the input is an array given that the the attribute
|
166
196
|
# is documented as an array but the input is not
|
167
197
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
168
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
198
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
169
199
|
end
|
170
200
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
171
201
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -247,7 +277,7 @@ module KoronaClient
|
|
247
277
|
# @return [Hash] Returns the value in the form of hash
|
248
278
|
def _to_hash(value)
|
249
279
|
if value.is_a?(Array)
|
250
|
-
value.compact.map{ |v| _to_hash(v) }
|
280
|
+
value.compact.map { |v| _to_hash(v) }
|
251
281
|
elsif value.is_a?(Hash)
|
252
282
|
{}.tap do |hash|
|
253
283
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -258,7 +288,5 @@ module KoronaClient
|
|
258
288
|
value
|
259
289
|
end
|
260
290
|
end
|
261
|
-
|
262
291
|
end
|
263
|
-
|
264
292
|
end
|
@@ -0,0 +1,183 @@
|
|
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 MediaUrl
|
17
|
+
attr_accessor :url
|
18
|
+
|
19
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
20
|
+
def self.attribute_map
|
21
|
+
{
|
22
|
+
:'url' => :'url'
|
23
|
+
}
|
24
|
+
end
|
25
|
+
|
26
|
+
# Attribute type mapping.
|
27
|
+
def self.swagger_types
|
28
|
+
{
|
29
|
+
:'url' => :'String'
|
30
|
+
}
|
31
|
+
end
|
32
|
+
|
33
|
+
# Initializes the object
|
34
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
35
|
+
def initialize(attributes = {})
|
36
|
+
return unless attributes.is_a?(Hash)
|
37
|
+
|
38
|
+
# convert string to symbol for hash key
|
39
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
40
|
+
|
41
|
+
if attributes.has_key?(:'url')
|
42
|
+
self.url = attributes[:'url']
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
47
|
+
# @return Array for valid properties with the reasons
|
48
|
+
def list_invalid_properties
|
49
|
+
invalid_properties = Array.new
|
50
|
+
invalid_properties
|
51
|
+
end
|
52
|
+
|
53
|
+
# Check to see if the all the properties in the model are valid
|
54
|
+
# @return true if the model is valid
|
55
|
+
def valid?
|
56
|
+
true
|
57
|
+
end
|
58
|
+
|
59
|
+
# Checks equality by comparing each attribute.
|
60
|
+
# @param [Object] Object to be compared
|
61
|
+
def ==(o)
|
62
|
+
return true if self.equal?(o)
|
63
|
+
self.class == o.class &&
|
64
|
+
url == o.url
|
65
|
+
end
|
66
|
+
|
67
|
+
# @see the `==` method
|
68
|
+
# @param [Object] Object to be compared
|
69
|
+
def eql?(o)
|
70
|
+
self == o
|
71
|
+
end
|
72
|
+
|
73
|
+
# Calculates hash code according to all attributes.
|
74
|
+
# @return [Fixnum] Hash code
|
75
|
+
def hash
|
76
|
+
[url].hash
|
77
|
+
end
|
78
|
+
|
79
|
+
# Builds the object from hash
|
80
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
81
|
+
# @return [Object] Returns the model itself
|
82
|
+
def build_from_hash(attributes)
|
83
|
+
return nil unless attributes.is_a?(Hash)
|
84
|
+
self.class.swagger_types.each_pair do |key, type|
|
85
|
+
if type =~ /\AArray<(.*)>/i
|
86
|
+
# check to ensure the input is an array given that the the attribute
|
87
|
+
# is documented as an array but the input is not
|
88
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
89
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
90
|
+
end
|
91
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
92
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
93
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
94
|
+
end
|
95
|
+
|
96
|
+
self
|
97
|
+
end
|
98
|
+
|
99
|
+
# Deserializes the data based on type
|
100
|
+
# @param string type Data type
|
101
|
+
# @param string value Value to be deserialized
|
102
|
+
# @return [Object] Deserialized data
|
103
|
+
def _deserialize(type, value)
|
104
|
+
case type.to_sym
|
105
|
+
when :DateTime
|
106
|
+
DateTime.parse(value)
|
107
|
+
when :Date
|
108
|
+
Date.parse(value)
|
109
|
+
when :String
|
110
|
+
value.to_s
|
111
|
+
when :Integer
|
112
|
+
value.to_i
|
113
|
+
when :Float
|
114
|
+
value.to_f
|
115
|
+
when :BOOLEAN
|
116
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
117
|
+
true
|
118
|
+
else
|
119
|
+
false
|
120
|
+
end
|
121
|
+
when :Object
|
122
|
+
# generic object (usually a Hash), return directly
|
123
|
+
value
|
124
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
125
|
+
inner_type = Regexp.last_match[:inner_type]
|
126
|
+
value.map { |v| _deserialize(inner_type, v) }
|
127
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
128
|
+
k_type = Regexp.last_match[:k_type]
|
129
|
+
v_type = Regexp.last_match[:v_type]
|
130
|
+
{}.tap do |hash|
|
131
|
+
value.each do |k, v|
|
132
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
133
|
+
end
|
134
|
+
end
|
135
|
+
else # model
|
136
|
+
temp_model = KoronaClient.const_get(type).new
|
137
|
+
temp_model.build_from_hash(value)
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
141
|
+
# Returns the string representation of the object
|
142
|
+
# @return [String] String presentation of the object
|
143
|
+
def to_s
|
144
|
+
to_hash.to_s
|
145
|
+
end
|
146
|
+
|
147
|
+
# to_body is an alias to to_hash (backward compatibility)
|
148
|
+
# @return [Hash] Returns the object in the form of hash
|
149
|
+
def to_body
|
150
|
+
to_hash
|
151
|
+
end
|
152
|
+
|
153
|
+
# Returns the object in the form of hash
|
154
|
+
# @return [Hash] Returns the object in the form of hash
|
155
|
+
def to_hash
|
156
|
+
hash = {}
|
157
|
+
self.class.attribute_map.each_pair do |attr, param|
|
158
|
+
value = self.send(attr)
|
159
|
+
next if value.nil?
|
160
|
+
hash[param] = _to_hash(value)
|
161
|
+
end
|
162
|
+
hash
|
163
|
+
end
|
164
|
+
|
165
|
+
# Outputs non-array value in the form of hash
|
166
|
+
# For object, use to_hash. Otherwise, just return the value
|
167
|
+
# @param [Object] value Any valid value
|
168
|
+
# @return [Hash] Returns the value in the form of hash
|
169
|
+
def _to_hash(value)
|
170
|
+
if value.is_a?(Array)
|
171
|
+
value.compact.map { |v| _to_hash(v) }
|
172
|
+
elsif value.is_a?(Hash)
|
173
|
+
{}.tap do |hash|
|
174
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
175
|
+
end
|
176
|
+
elsif value.respond_to? :to_hash
|
177
|
+
value.to_hash
|
178
|
+
else
|
179
|
+
value
|
180
|
+
end
|
181
|
+
end
|
182
|
+
end
|
183
|
+
end
|