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.
Files changed (309) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +171 -89
  3. data/config.json +6 -0
  4. data/docs/AccountTransaction.md +2 -0
  5. data/docs/AccountsApi.md +12 -12
  6. data/docs/AddOrUpdateResult.md +1 -0
  7. data/docs/AdditionalInfo.md +9 -0
  8. data/docs/AdditionalReceiptInfoType.md +22 -0
  9. data/docs/AdditionalReceiptInfoTypesApi.md +133 -0
  10. data/docs/AssortmentsApi.md +217 -48
  11. data/docs/Attendance.md +17 -0
  12. data/docs/Cashier.md +1 -0
  13. data/docs/CashiersApi.md +15 -13
  14. data/docs/Category.md +1 -0
  15. data/docs/CommodityGroupsApi.md +423 -0
  16. data/docs/CreationTask.md +17 -0
  17. data/docs/CurrenciesApi.md +15 -13
  18. data/docs/CustomerGroupsApi.md +15 -13
  19. data/docs/CustomerOrder.md +2 -2
  20. data/docs/CustomerOrdersApi.md +52 -46
  21. data/docs/CustomersApi.md +108 -45
  22. data/docs/DayTimePeriod.md +9 -0
  23. data/docs/DeliveryNote.md +22 -0
  24. data/docs/DeliveryNoteItem.md +14 -0
  25. data/docs/DeliveryNotesApi.md +316 -0
  26. data/docs/Deposit.md +12 -0
  27. data/docs/Discount.md +10 -0
  28. data/docs/EconomicZonesApi.md +15 -13
  29. data/docs/EndOfDayStatement.md +1 -1
  30. data/docs/Event.md +2 -0
  31. data/docs/ExternalSystemCall.md +20 -0
  32. data/docs/ExternalSystemCallsApi.md +423 -0
  33. data/docs/ImagesApi.md +8 -7
  34. data/docs/InfoTextsApi.md +15 -13
  35. data/docs/InventoriesApi.md +894 -0
  36. data/docs/KoronaAccount.md +1 -0
  37. data/docs/KoronaAccountApi.md +5 -5
  38. data/docs/MediaUrl.md +8 -0
  39. data/docs/OrganizationalUnit.md +1 -0
  40. data/docs/OrganizationalUnitsApi.md +108 -104
  41. data/docs/PaymentMethod.md +3 -0
  42. data/docs/PaymentMethodsApi.md +15 -13
  43. data/docs/PointsOfSaleApi.md +85 -74
  44. data/docs/Pos.md +5 -3
  45. data/docs/PriceGroupsApi.md +15 -13
  46. data/docs/Product.md +2 -0
  47. data/docs/ProductsApi.md +121 -58
  48. data/docs/Receipt.md +5 -1
  49. data/docs/ReceiptItem.md +3 -0
  50. data/docs/ReceiptsApi.md +20 -14
  51. data/docs/ResultListAdditionalReceiptInfoType.md +13 -0
  52. data/docs/ResultListAttendance.md +13 -0
  53. data/docs/ResultListCreationTask.md +13 -0
  54. data/docs/ResultListDeliveryNote.md +13 -0
  55. data/docs/ResultListExternalSystemCall.md +13 -0
  56. data/docs/ResultListTicket.md +13 -0
  57. data/docs/ResultListTimeTrackingEntity.md +13 -0
  58. data/docs/ResultListTimeTrackingEntry.md +13 -0
  59. data/docs/SalesTaxesApi.md +15 -13
  60. data/docs/Sector.md +1 -0
  61. data/docs/SectorRevenueAccountItem.md +9 -0
  62. data/docs/SectorsApi.md +15 -13
  63. data/docs/Signature.md +10 -0
  64. data/docs/StatisticsApi.md +28 -28
  65. data/docs/StockReceipt.md +1 -0
  66. data/docs/StockReceiptsApi.md +687 -0
  67. data/docs/SuppliersApi.md +15 -13
  68. data/docs/TagsApi.md +303 -13
  69. data/docs/Ticket.md +14 -0
  70. data/docs/TicketCreationApi.md +127 -0
  71. data/docs/TicketPersonalization.md +11 -0
  72. data/docs/TicketingApi.md +975 -76
  73. data/docs/TimeTrackingApi.md +388 -0
  74. data/docs/TimeTrackingEntity.md +13 -0
  75. data/docs/TimeTrackingEntry.md +14 -0
  76. data/docs/TotalPeriod.md +9 -0
  77. data/docs/Validity.md +11 -0
  78. data/korona_client-1.0.0.gem +0 -0
  79. data/korona_client.gemspec +7 -8
  80. data/lib/korona_client.rb +38 -5
  81. data/lib/korona_client/api/accounts_api.rb +24 -26
  82. data/lib/korona_client/api/additional_receipt_info_types_api.rb +155 -0
  83. data/lib/korona_client/api/assortments_api.rb +259 -82
  84. data/lib/korona_client/api/cashiers_api.rb +27 -26
  85. data/lib/korona_client/api/commodity_groups_api.rb +462 -0
  86. data/lib/korona_client/api/currencies_api.rb +27 -26
  87. data/lib/korona_client/api/customer_groups_api.rb +27 -26
  88. data/lib/korona_client/api/customer_orders_api.rb +78 -78
  89. data/lib/korona_client/api/customers_api.rb +137 -77
  90. data/lib/korona_client/api/delivery_notes_api.rb +354 -0
  91. data/lib/korona_client/api/economic_zones_api.rb +27 -26
  92. data/lib/korona_client/api/external_system_calls_api.rb +462 -0
  93. data/lib/korona_client/api/images_api.rb +16 -16
  94. data/lib/korona_client/api/info_texts_api.rb +27 -26
  95. data/lib/korona_client/api/inventories_api.rb +1014 -0
  96. data/lib/korona_client/api/korona_account_api.rb +11 -12
  97. data/lib/korona_client/api/organizational_units_api.rb +157 -162
  98. data/lib/korona_client/api/payment_methods_api.rb +27 -26
  99. data/lib/korona_client/api/points_of_sale_api.rb +127 -121
  100. data/lib/korona_client/api/price_groups_api.rb +27 -26
  101. data/lib/korona_client/api/products_api.rb +154 -95
  102. data/lib/korona_client/api/receipts_api.rb +27 -20
  103. data/lib/korona_client/api/sales_taxes_api.rb +27 -26
  104. data/lib/korona_client/api/sectors_api.rb +27 -26
  105. data/lib/korona_client/api/statistics_api.rb +32 -36
  106. data/lib/korona_client/api/stock_receipts_api.rb +769 -0
  107. data/lib/korona_client/api/suppliers_api.rb +27 -26
  108. data/lib/korona_client/api/tags_api.rb +326 -21
  109. data/lib/korona_client/api/ticket_creation_api.rb +149 -0
  110. data/lib/korona_client/api/ticketing_api.rb +1084 -132
  111. data/lib/korona_client/api/time_tracking_api.rb +425 -0
  112. data/lib/korona_client/api_client.rb +11 -11
  113. data/lib/korona_client/api_error.rb +3 -3
  114. data/lib/korona_client/configuration.rb +4 -4
  115. data/lib/korona_client/models/account.rb +11 -15
  116. data/lib/korona_client/models/account_summary.rb +8 -13
  117. data/lib/korona_client/models/account_transaction.rb +32 -15
  118. data/lib/korona_client/models/add_or_update_result.rb +24 -19
  119. data/lib/korona_client/models/additional_info.rb +192 -0
  120. data/lib/korona_client/models/additional_receipt_info_type.rb +319 -0
  121. data/lib/korona_client/models/address_information.rb +8 -13
  122. data/lib/korona_client/models/admission.rb +8 -13
  123. data/lib/korona_client/models/amount.rb +8 -13
  124. data/lib/korona_client/models/amount_count_data.rb +8 -13
  125. data/lib/korona_client/models/assortment.rb +8 -13
  126. data/lib/korona_client/models/attendance.rb +268 -0
  127. data/lib/korona_client/models/bad_request_error.rb +11 -15
  128. data/lib/korona_client/models/capacity.rb +8 -13
  129. data/lib/korona_client/models/cashier.rb +21 -16
  130. data/lib/korona_client/models/cashier_summary.rb +8 -13
  131. data/lib/korona_client/models/category.rb +19 -15
  132. data/lib/korona_client/models/cloud_subscription.rb +11 -15
  133. data/lib/korona_client/models/commodity_group.rb +8 -13
  134. data/lib/korona_client/models/commodity_group_summary.rb +8 -13
  135. data/lib/korona_client/models/company_identification.rb +8 -13
  136. data/lib/korona_client/models/creation_task.rb +298 -0
  137. data/lib/korona_client/models/currency.rb +8 -13
  138. data/lib/korona_client/models/currency_denomination.rb +11 -15
  139. data/lib/korona_client/models/currency_exchange_rate.rb +8 -13
  140. data/lib/korona_client/models/customer.rb +11 -15
  141. data/lib/korona_client/models/customer_card.rb +11 -15
  142. data/lib/korona_client/models/customer_data.rb +8 -13
  143. data/lib/korona_client/models/customer_group.rb +8 -13
  144. data/lib/korona_client/models/customer_group_summary.rb +8 -13
  145. data/lib/korona_client/models/customer_information.rb +8 -13
  146. data/lib/korona_client/models/customer_order.rb +28 -29
  147. data/lib/korona_client/models/day_rating.rb +8 -13
  148. data/lib/korona_client/models/day_time_period.rb +192 -0
  149. data/lib/korona_client/models/delivery_note.rb +316 -0
  150. data/lib/korona_client/models/delivery_note_item.rb +239 -0
  151. data/lib/korona_client/models/deposit.rb +219 -0
  152. data/lib/korona_client/models/device_information.rb +8 -13
  153. data/lib/korona_client/models/discount.rb +201 -0
  154. data/lib/korona_client/models/economic_zone.rb +8 -13
  155. data/lib/korona_client/models/end_of_day_statement.rb +15 -20
  156. data/lib/korona_client/models/end_of_day_statement_summary.rb +8 -13
  157. data/lib/korona_client/models/entry_gate.rb +8 -13
  158. data/lib/korona_client/models/event.rb +30 -15
  159. data/lib/korona_client/models/external_system_call.rb +295 -0
  160. data/lib/korona_client/models/forbidden_error.rb +11 -15
  161. data/lib/korona_client/models/geo_location.rb +8 -13
  162. data/lib/korona_client/models/info_text.rb +11 -15
  163. data/lib/korona_client/models/interval.rb +8 -13
  164. data/lib/korona_client/models/inventory.rb +14 -18
  165. data/lib/korona_client/models/inventory_list.rb +11 -15
  166. data/lib/korona_client/models/inventory_list_item.rb +8 -13
  167. data/lib/korona_client/models/inventory_list_item_stock.rb +8 -13
  168. data/lib/korona_client/models/korona_account.rb +41 -13
  169. data/lib/korona_client/models/media_url.rb +183 -0
  170. data/lib/korona_client/models/method_not_allowed_error.rb +11 -15
  171. data/lib/korona_client/models/model_reference.rb +8 -12
  172. data/lib/korona_client/models/not_found_error.rb +11 -15
  173. data/lib/korona_client/models/organizational_unit.rb +20 -16
  174. data/lib/korona_client/models/payment.rb +8 -13
  175. data/lib/korona_client/models/payment_method.rb +37 -15
  176. data/lib/korona_client/models/payment_summary.rb +8 -13
  177. data/lib/korona_client/models/period.rb +8 -13
  178. data/lib/korona_client/models/period_list_top_seller.rb +8 -13
  179. data/lib/korona_client/models/period_map_string_revenue_data.rb +8 -13
  180. data/lib/korona_client/models/period_object.rb +8 -13
  181. data/lib/korona_client/models/period_revenue_data.rb +8 -13
  182. data/lib/korona_client/models/pos.rb +31 -15
  183. data/lib/korona_client/models/price_group.rb +8 -13
  184. data/lib/korona_client/models/product.rb +35 -19
  185. data/lib/korona_client/models/product_code.rb +8 -13
  186. data/lib/korona_client/models/product_description.rb +11 -15
  187. data/lib/korona_client/models/product_price.rb +8 -13
  188. data/lib/korona_client/models/product_stock.rb +8 -13
  189. data/lib/korona_client/models/product_subproduct.rb +8 -13
  190. data/lib/korona_client/models/product_supplier_price.rb +8 -13
  191. data/lib/korona_client/models/product_transfer_involved_party_information.rb +8 -13
  192. data/lib/korona_client/models/product_transfer_involved_party_information_data.rb +8 -13
  193. data/lib/korona_client/models/rating.rb +8 -13
  194. data/lib/korona_client/models/receipt.rb +55 -20
  195. data/lib/korona_client/models/receipt_item.rb +40 -14
  196. data/lib/korona_client/models/result_list.rb +14 -19
  197. data/lib/korona_client/models/result_list_account.rb +14 -19
  198. data/lib/korona_client/models/result_list_additional_receipt_info_type.rb +268 -0
  199. data/lib/korona_client/models/result_list_assortment.rb +14 -19
  200. data/lib/korona_client/models/result_list_attendance.rb +268 -0
  201. data/lib/korona_client/models/result_list_cashier.rb +14 -19
  202. data/lib/korona_client/models/result_list_commodity_group.rb +14 -19
  203. data/lib/korona_client/models/result_list_creation_task.rb +268 -0
  204. data/lib/korona_client/models/result_list_currency.rb +14 -19
  205. data/lib/korona_client/models/result_list_customer.rb +14 -19
  206. data/lib/korona_client/models/result_list_customer_group.rb +14 -19
  207. data/lib/korona_client/models/result_list_customer_order.rb +14 -19
  208. data/lib/korona_client/models/result_list_day_rating.rb +14 -19
  209. data/lib/korona_client/models/result_list_delivery_note.rb +268 -0
  210. data/lib/korona_client/models/result_list_economic_zone.rb +14 -19
  211. data/lib/korona_client/models/result_list_end_of_day_statement.rb +14 -19
  212. data/lib/korona_client/models/result_list_entry_gate.rb +14 -19
  213. data/lib/korona_client/models/result_list_event.rb +14 -19
  214. data/lib/korona_client/models/result_list_external_system_call.rb +268 -0
  215. data/lib/korona_client/models/result_list_info_text.rb +14 -19
  216. data/lib/korona_client/models/result_list_inventory.rb +14 -19
  217. data/lib/korona_client/models/result_list_inventory_list.rb +14 -19
  218. data/lib/korona_client/models/result_list_inventory_list_item.rb +14 -19
  219. data/lib/korona_client/models/result_list_organizational_unit.rb +14 -19
  220. data/lib/korona_client/models/result_list_payment_method.rb +14 -19
  221. data/lib/korona_client/models/result_list_pos.rb +14 -19
  222. data/lib/korona_client/models/result_list_price_group.rb +14 -19
  223. data/lib/korona_client/models/result_list_product.rb +14 -19
  224. data/lib/korona_client/models/result_list_product_stock.rb +14 -19
  225. data/lib/korona_client/models/result_list_receipt.rb +14 -19
  226. data/lib/korona_client/models/result_list_sales_tax.rb +14 -19
  227. data/lib/korona_client/models/result_list_sector.rb +14 -19
  228. data/lib/korona_client/models/result_list_stock_receipt.rb +14 -19
  229. data/lib/korona_client/models/result_list_stock_receipt_item.rb +14 -19
  230. data/lib/korona_client/models/result_list_supplier.rb +14 -19
  231. data/lib/korona_client/models/result_list_tag.rb +14 -19
  232. data/lib/korona_client/models/result_list_ticket.rb +268 -0
  233. data/lib/korona_client/models/result_list_ticket_definition.rb +14 -19
  234. data/lib/korona_client/models/result_list_time_tracking_entity.rb +268 -0
  235. data/lib/korona_client/models/result_list_time_tracking_entry.rb +268 -0
  236. data/lib/korona_client/models/revenue_data.rb +8 -13
  237. data/lib/korona_client/models/sales_tax.rb +8 -13
  238. data/lib/korona_client/models/sales_tax_rate.rb +8 -13
  239. data/lib/korona_client/models/sector.rb +21 -15
  240. data/lib/korona_client/models/sector_revenue_account_item.rb +192 -0
  241. data/lib/korona_client/models/sector_sales_tax_item.rb +8 -13
  242. data/lib/korona_client/models/signature.rb +216 -0
  243. data/lib/korona_client/models/statistic.rb +8 -13
  244. data/lib/korona_client/models/statistic_list_top_seller.rb +8 -13
  245. data/lib/korona_client/models/statistic_map_string_revenue_data.rb +8 -13
  246. data/lib/korona_client/models/statistic_revenue_data.rb +8 -13
  247. data/lib/korona_client/models/stock_receipt.rb +21 -16
  248. data/lib/korona_client/models/stock_receipt_item.rb +8 -13
  249. data/lib/korona_client/models/stock_receipt_item_amount.rb +8 -13
  250. data/lib/korona_client/models/stock_receipt_item_identification.rb +8 -13
  251. data/lib/korona_client/models/stock_receipt_item_purchase_price.rb +8 -13
  252. data/lib/korona_client/models/supplier.rb +8 -13
  253. data/lib/korona_client/models/supplier_contact.rb +8 -13
  254. data/lib/korona_client/models/supplier_contact_person.rb +8 -13
  255. data/lib/korona_client/models/supplier_payment_information.rb +11 -15
  256. data/lib/korona_client/models/tag.rb +8 -13
  257. data/lib/korona_client/models/tax_payment.rb +8 -13
  258. data/lib/korona_client/models/tax_summary.rb +8 -13
  259. data/lib/korona_client/models/ticket.rb +237 -0
  260. data/lib/korona_client/models/ticket_definition.rb +8 -13
  261. data/lib/korona_client/models/ticket_personalization.rb +225 -0
  262. data/lib/korona_client/models/time_period.rb +8 -13
  263. data/lib/korona_client/models/time_tracking_entity.rb +232 -0
  264. data/lib/korona_client/models/time_tracking_entry.rb +240 -0
  265. data/lib/korona_client/models/too_many_requests_error.rb +11 -15
  266. data/lib/korona_client/models/top_seller.rb +8 -13
  267. data/lib/korona_client/models/total_period.rb +192 -0
  268. data/lib/korona_client/models/total_price.rb +10 -14
  269. data/lib/korona_client/models/validity.rb +236 -0
  270. data/lib/korona_client/models/weather.rb +11 -15
  271. data/lib/korona_client/version.rb +4 -4
  272. data/node_modules/.yarn-integrity +12 -0
  273. data/spec/api/additional_receipt_info_types_api_spec.rb +66 -0
  274. data/spec/api/commodity_groups_api_spec.rb +133 -0
  275. data/spec/api/delivery_notes_api_spec.rb +112 -0
  276. data/spec/api/external_system_calls_api_spec.rb +133 -0
  277. data/spec/api/inventories_api_spec.rb +253 -0
  278. data/spec/api/stock_receipts_api_spec.rb +201 -0
  279. data/spec/api/ticket_creation_api_spec.rb +63 -0
  280. data/spec/api/time_tracking_api_spec.rb +129 -0
  281. data/spec/models/additional_info_spec.rb +47 -0
  282. data/spec/models/additional_receipt_info_type_spec.rb +125 -0
  283. data/spec/models/attendance_spec.rb +95 -0
  284. data/spec/models/creation_task_spec.rb +99 -0
  285. data/spec/models/day_time_period_spec.rb +47 -0
  286. data/spec/models/delivery_note_item_spec.rb +77 -0
  287. data/spec/models/delivery_note_spec.rb +125 -0
  288. data/spec/models/deposit_spec.rb +65 -0
  289. data/spec/models/discount_spec.rb +53 -0
  290. data/spec/models/external_system_call_spec.rb +113 -0
  291. data/spec/models/media_url_spec.rb +41 -0
  292. data/spec/models/result_list_additional_receipt_info_type_spec.rb +71 -0
  293. data/spec/models/result_list_attendance_spec.rb +71 -0
  294. data/spec/models/result_list_creation_task_spec.rb +71 -0
  295. data/spec/models/result_list_delivery_note_spec.rb +71 -0
  296. data/spec/models/result_list_external_system_call_spec.rb +71 -0
  297. data/spec/models/result_list_ticket_spec.rb +71 -0
  298. data/spec/models/result_list_time_tracking_entity_spec.rb +71 -0
  299. data/spec/models/result_list_time_tracking_entry_spec.rb +71 -0
  300. data/spec/models/sector_revenue_account_item_spec.rb +47 -0
  301. data/spec/models/signature_spec.rb +53 -0
  302. data/spec/models/ticket_personalization_spec.rb +59 -0
  303. data/spec/models/ticket_spec.rb +77 -0
  304. data/spec/models/time_tracking_entity_spec.rb +71 -0
  305. data/spec/models/time_tracking_entry_spec.rb +77 -0
  306. data/spec/models/total_period_spec.rb +47 -0
  307. data/spec/models/validity_spec.rb +63 -0
  308. data/yarn.lock +4 -0
  309. 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: 3
7
- Contact: support@combase.net
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.3.1
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 AddressInformation
18
17
  attr_accessor :address_line1
19
18
 
@@ -29,7 +28,6 @@ module KoronaClient
29
28
 
30
29
  attr_accessor :zip_code
31
30
 
32
-
33
31
  # Attribute mapping from ruby-style variable name to JSON key.
34
32
  def self.attribute_map
35
33
  {
@@ -62,7 +60,7 @@ module KoronaClient
62
60
  return unless attributes.is_a?(Hash)
63
61
 
64
62
  # convert string to symbol for hash key
65
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
63
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
66
64
 
67
65
  if attributes.has_key?(:'addressLine1')
68
66
  self.address_line1 = attributes[:'addressLine1']
@@ -91,20 +89,19 @@ module KoronaClient
91
89
  if attributes.has_key?(:'zipCode')
92
90
  self.zip_code = attributes[:'zipCode']
93
91
  end
94
-
95
92
  end
96
93
 
97
94
  # Show invalid properties with the reasons. Usually used together with valid?
98
95
  # @return Array for valid properties with the reasons
99
96
  def list_invalid_properties
100
97
  invalid_properties = Array.new
101
- return invalid_properties
98
+ invalid_properties
102
99
  end
103
100
 
104
101
  # Check to see if the all the properties in the model are valid
105
102
  # @return true if the model is valid
106
103
  def valid?
107
- return true
104
+ true
108
105
  end
109
106
 
110
107
  # Checks equality by comparing each attribute.
@@ -143,7 +140,7 @@ module KoronaClient
143
140
  # check to ensure the input is an array given that the the attribute
144
141
  # is documented as an array but the input is not
145
142
  if attributes[self.class.attribute_map[key]].is_a?(Array)
146
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
143
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
147
144
  end
148
145
  elsif !attributes[self.class.attribute_map[key]].nil?
149
146
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -225,7 +222,7 @@ module KoronaClient
225
222
  # @return [Hash] Returns the value in the form of hash
226
223
  def _to_hash(value)
227
224
  if value.is_a?(Array)
228
- value.compact.map{ |v| _to_hash(v) }
225
+ value.compact.map { |v| _to_hash(v) }
229
226
  elsif value.is_a?(Hash)
230
227
  {}.tap do |hash|
231
228
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -236,7 +233,5 @@ module KoronaClient
236
233
  value
237
234
  end
238
235
  end
239
-
240
236
  end
241
-
242
237
  end
@@ -3,23 +3,21 @@
3
3
 
4
4
  #Our api provides access to our cloud services
5
5
 
6
- OpenAPI spec version: 3
7
- Contact: support@combase.net
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.3.1
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 Admission
18
17
  attr_accessor :daily
19
18
 
20
19
  attr_accessor :total
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?(:'daily')
48
46
  self.daily = attributes[:'daily']
@@ -51,20 +49,19 @@ module KoronaClient
51
49
  if attributes.has_key?(:'total')
52
50
  self.total = attributes[:'total']
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
- return invalid_properties
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
- return true
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: 3
7
- Contact: support@combase.net
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.3.1
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 Amount
18
17
  attr_accessor :actual
19
18
 
@@ -25,7 +24,6 @@ module KoronaClient
25
24
 
26
25
  attr_accessor :reorder_level
27
26
 
28
-
29
27
  # Attribute mapping from ruby-style variable name to JSON key.
30
28
  def self.attribute_map
31
29
  {
@@ -54,7 +52,7 @@ module KoronaClient
54
52
  return unless attributes.is_a?(Hash)
55
53
 
56
54
  # convert string to symbol for hash key
57
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
55
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
58
56
 
59
57
  if attributes.has_key?(:'actual')
60
58
  self.actual = attributes[:'actual']
@@ -75,20 +73,19 @@ module KoronaClient
75
73
  if attributes.has_key?(:'reorderLevel')
76
74
  self.reorder_level = attributes[:'reorderLevel']
77
75
  end
78
-
79
76
  end
80
77
 
81
78
  # Show invalid properties with the reasons. Usually used together with valid?
82
79
  # @return Array for valid properties with the reasons
83
80
  def list_invalid_properties
84
81
  invalid_properties = Array.new
85
- return invalid_properties
82
+ invalid_properties
86
83
  end
87
84
 
88
85
  # Check to see if the all the properties in the model are valid
89
86
  # @return true if the model is valid
90
87
  def valid?
91
- return true
88
+ true
92
89
  end
93
90
 
94
91
  # Checks equality by comparing each attribute.
@@ -125,7 +122,7 @@ module KoronaClient
125
122
  # check to ensure the input is an array given that the the attribute
126
123
  # is documented as an array but the input is not
127
124
  if attributes[self.class.attribute_map[key]].is_a?(Array)
128
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
125
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
129
126
  end
130
127
  elsif !attributes[self.class.attribute_map[key]].nil?
131
128
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -207,7 +204,7 @@ module KoronaClient
207
204
  # @return [Hash] Returns the value in the form of hash
208
205
  def _to_hash(value)
209
206
  if value.is_a?(Array)
210
- value.compact.map{ |v| _to_hash(v) }
207
+ value.compact.map { |v| _to_hash(v) }
211
208
  elsif value.is_a?(Hash)
212
209
  {}.tap do |hash|
213
210
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -218,7 +215,5 @@ module KoronaClient
218
215
  value
219
216
  end
220
217
  end
221
-
222
218
  end
223
-
224
219
  end
@@ -3,23 +3,21 @@
3
3
 
4
4
  #Our api provides access to our cloud services
5
5
 
6
- OpenAPI spec version: 3
7
- Contact: support@combase.net
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.3.1
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 AmountCountData
18
17
  attr_accessor :amount
19
18
 
20
19
  attr_accessor :count
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?(:'amount')
48
46
  self.amount = attributes[:'amount']
@@ -51,20 +49,19 @@ module KoronaClient
51
49
  if attributes.has_key?(:'count')
52
50
  self.count = attributes[:'count']
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
- return invalid_properties
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
- return true
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: 3
7
- Contact: support@combase.net
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.3.1
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 Assortment
18
17
  # indicates whether the object is active for use or not
19
18
  attr_accessor :active
@@ -35,7 +34,6 @@ module KoronaClient
35
34
 
36
35
  attr_accessor :name
37
36
 
38
-
39
37
  # Attribute mapping from ruby-style variable name to JSON key.
40
38
  def self.attribute_map
41
39
  {
@@ -70,7 +68,7 @@ module KoronaClient
70
68
  return unless attributes.is_a?(Hash)
71
69
 
72
70
  # convert string to symbol for hash key
73
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
71
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
74
72
 
75
73
  if attributes.has_key?(:'active')
76
74
  self.active = attributes[:'active']
@@ -103,20 +101,19 @@ module KoronaClient
103
101
  if attributes.has_key?(:'name')
104
102
  self.name = attributes[:'name']
105
103
  end
106
-
107
104
  end
108
105
 
109
106
  # Show invalid properties with the reasons. Usually used together with valid?
110
107
  # @return Array for valid properties with the reasons
111
108
  def list_invalid_properties
112
109
  invalid_properties = Array.new
113
- return invalid_properties
110
+ invalid_properties
114
111
  end
115
112
 
116
113
  # Check to see if the all the properties in the model are valid
117
114
  # @return true if the model is valid
118
115
  def valid?
119
- return true
116
+ true
120
117
  end
121
118
 
122
119
  # Checks equality by comparing each attribute.
@@ -156,7 +153,7 @@ module KoronaClient
156
153
  # check to ensure the input is an array given that the the attribute
157
154
  # is documented as an array but the input is not
158
155
  if attributes[self.class.attribute_map[key]].is_a?(Array)
159
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
156
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
160
157
  end
161
158
  elsif !attributes[self.class.attribute_map[key]].nil?
162
159
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -238,7 +235,7 @@ module KoronaClient
238
235
  # @return [Hash] Returns the value in the form of hash
239
236
  def _to_hash(value)
240
237
  if value.is_a?(Array)
241
- value.compact.map{ |v| _to_hash(v) }
238
+ value.compact.map { |v| _to_hash(v) }
242
239
  elsif value.is_a?(Hash)
243
240
  {}.tap do |hash|
244
241
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -249,7 +246,5 @@ module KoronaClient
249
246
  value
250
247
  end
251
248
  end
252
-
253
249
  end
254
-
255
250
  end
@@ -0,0 +1,268 @@
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 Attendance
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 :category_name
30
+
31
+ attr_accessor :category_id
32
+
33
+ attr_accessor :creation_time
34
+
35
+ attr_accessor :event
36
+
37
+ attr_accessor :expiration_time
38
+
39
+ attr_accessor :seats
40
+
41
+ # Attribute mapping from ruby-style variable name to JSON key.
42
+ def self.attribute_map
43
+ {
44
+ :'active' => :'active',
45
+ :'id' => :'id',
46
+ :'number' => :'number',
47
+ :'revision' => :'revision',
48
+ :'category_name' => :'categoryName',
49
+ :'category_id' => :'categoryId',
50
+ :'creation_time' => :'creationTime',
51
+ :'event' => :'event',
52
+ :'expiration_time' => :'expirationTime',
53
+ :'seats' => :'seats'
54
+ }
55
+ end
56
+
57
+ # Attribute type mapping.
58
+ def self.swagger_types
59
+ {
60
+ :'active' => :'BOOLEAN',
61
+ :'id' => :'String',
62
+ :'number' => :'String',
63
+ :'revision' => :'Integer',
64
+ :'category_name' => :'String',
65
+ :'category_id' => :'String',
66
+ :'creation_time' => :'DateTime',
67
+ :'event' => :'ModelReference',
68
+ :'expiration_time' => :'DateTime',
69
+ :'seats' => :'Integer'
70
+ }
71
+ end
72
+
73
+ # Initializes the object
74
+ # @param [Hash] attributes Model attributes in the form of hash
75
+ def initialize(attributes = {})
76
+ return unless attributes.is_a?(Hash)
77
+
78
+ # convert string to symbol for hash key
79
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
80
+
81
+ if attributes.has_key?(:'active')
82
+ self.active = attributes[:'active']
83
+ end
84
+
85
+ if attributes.has_key?(:'id')
86
+ self.id = attributes[:'id']
87
+ end
88
+
89
+ if attributes.has_key?(:'number')
90
+ self.number = attributes[:'number']
91
+ end
92
+
93
+ if attributes.has_key?(:'revision')
94
+ self.revision = attributes[:'revision']
95
+ end
96
+
97
+ if attributes.has_key?(:'categoryName')
98
+ self.category_name = attributes[:'categoryName']
99
+ end
100
+
101
+ if attributes.has_key?(:'categoryId')
102
+ self.category_id = attributes[:'categoryId']
103
+ end
104
+
105
+ if attributes.has_key?(:'creationTime')
106
+ self.creation_time = attributes[:'creationTime']
107
+ end
108
+
109
+ if attributes.has_key?(:'event')
110
+ self.event = attributes[:'event']
111
+ end
112
+
113
+ if attributes.has_key?(:'expirationTime')
114
+ self.expiration_time = attributes[:'expirationTime']
115
+ end
116
+
117
+ if attributes.has_key?(:'seats')
118
+ self.seats = attributes[:'seats']
119
+ end
120
+ end
121
+
122
+ # Show invalid properties with the reasons. Usually used together with valid?
123
+ # @return Array for valid properties with the reasons
124
+ def list_invalid_properties
125
+ invalid_properties = Array.new
126
+ invalid_properties
127
+ end
128
+
129
+ # Check to see if the all the properties in the model are valid
130
+ # @return true if the model is valid
131
+ def valid?
132
+ true
133
+ end
134
+
135
+ # Checks equality by comparing each attribute.
136
+ # @param [Object] Object to be compared
137
+ def ==(o)
138
+ return true if self.equal?(o)
139
+ self.class == o.class &&
140
+ active == o.active &&
141
+ id == o.id &&
142
+ number == o.number &&
143
+ revision == o.revision &&
144
+ category_name == o.category_name &&
145
+ category_id == o.category_id &&
146
+ creation_time == o.creation_time &&
147
+ event == o.event &&
148
+ expiration_time == o.expiration_time &&
149
+ seats == o.seats
150
+ end
151
+
152
+ # @see the `==` method
153
+ # @param [Object] Object to be compared
154
+ def eql?(o)
155
+ self == o
156
+ end
157
+
158
+ # Calculates hash code according to all attributes.
159
+ # @return [Fixnum] Hash code
160
+ def hash
161
+ [active, id, number, revision, category_name, category_id, creation_time, event, expiration_time, seats].hash
162
+ end
163
+
164
+ # Builds the object from hash
165
+ # @param [Hash] attributes Model attributes in the form of hash
166
+ # @return [Object] Returns the model itself
167
+ def build_from_hash(attributes)
168
+ return nil unless attributes.is_a?(Hash)
169
+ self.class.swagger_types.each_pair do |key, type|
170
+ if type =~ /\AArray<(.*)>/i
171
+ # check to ensure the input is an array given that the the attribute
172
+ # is documented as an array but the input is not
173
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
174
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
175
+ end
176
+ elsif !attributes[self.class.attribute_map[key]].nil?
177
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
178
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
179
+ end
180
+
181
+ self
182
+ end
183
+
184
+ # Deserializes the data based on type
185
+ # @param string type Data type
186
+ # @param string value Value to be deserialized
187
+ # @return [Object] Deserialized data
188
+ def _deserialize(type, value)
189
+ case type.to_sym
190
+ when :DateTime
191
+ DateTime.parse(value)
192
+ when :Date
193
+ Date.parse(value)
194
+ when :String
195
+ value.to_s
196
+ when :Integer
197
+ value.to_i
198
+ when :Float
199
+ value.to_f
200
+ when :BOOLEAN
201
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
202
+ true
203
+ else
204
+ false
205
+ end
206
+ when :Object
207
+ # generic object (usually a Hash), return directly
208
+ value
209
+ when /\AArray<(?<inner_type>.+)>\z/
210
+ inner_type = Regexp.last_match[:inner_type]
211
+ value.map { |v| _deserialize(inner_type, v) }
212
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
213
+ k_type = Regexp.last_match[:k_type]
214
+ v_type = Regexp.last_match[:v_type]
215
+ {}.tap do |hash|
216
+ value.each do |k, v|
217
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
218
+ end
219
+ end
220
+ else # model
221
+ temp_model = KoronaClient.const_get(type).new
222
+ temp_model.build_from_hash(value)
223
+ end
224
+ end
225
+
226
+ # Returns the string representation of the object
227
+ # @return [String] String presentation of the object
228
+ def to_s
229
+ to_hash.to_s
230
+ end
231
+
232
+ # to_body is an alias to to_hash (backward compatibility)
233
+ # @return [Hash] Returns the object in the form of hash
234
+ def to_body
235
+ to_hash
236
+ end
237
+
238
+ # Returns the object in the form of hash
239
+ # @return [Hash] Returns the object in the form of hash
240
+ def to_hash
241
+ hash = {}
242
+ self.class.attribute_map.each_pair do |attr, param|
243
+ value = self.send(attr)
244
+ next if value.nil?
245
+ hash[param] = _to_hash(value)
246
+ end
247
+ hash
248
+ end
249
+
250
+ # Outputs non-array value in the form of hash
251
+ # For object, use to_hash. Otherwise, just return the value
252
+ # @param [Object] value Any valid value
253
+ # @return [Hash] Returns the value in the form of hash
254
+ def _to_hash(value)
255
+ if value.is_a?(Array)
256
+ value.compact.map { |v| _to_hash(v) }
257
+ elsif value.is_a?(Hash)
258
+ {}.tap do |hash|
259
+ value.each { |k, v| hash[k] = _to_hash(v) }
260
+ end
261
+ elsif value.respond_to? :to_hash
262
+ value.to_hash
263
+ else
264
+ value
265
+ end
266
+ end
267
+ end
268
+ end