osuny_api 0.2.6 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (433) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +6 -7
  3. data/Gemfile.lock +55 -31
  4. data/README.md +1080 -17
  5. data/Rakefile +1 -1
  6. data/config.json +10 -0
  7. data/docs/AgendaCategoriesBody.md +7 -0
  8. data/docs/AgendaEventsBody.md +7 -0
  9. data/docs/CategoriesIdBody.md +7 -0
  10. data/docs/CategoriesIdBody1.md +7 -0
  11. data/docs/CategoriesIdBody2.md +7 -0
  12. data/docs/CategoriesUpsertBody.md +7 -0
  13. data/docs/CategoriesUpsertBody1.md +7 -0
  14. data/docs/CategoriesUpsertBody2.md +7 -0
  15. data/docs/CommunicationBlockAgenda.md +14 -0
  16. data/docs/CommunicationBlockAgendaData.md +20 -0
  17. data/docs/CommunicationBlockAgendaDataElements.md +7 -0
  18. data/docs/CommunicationBlockCallToAction.md +14 -0
  19. data/docs/CommunicationBlockCallToActionData.md +12 -0
  20. data/docs/CommunicationBlockCallToActionDataElements.md +9 -0
  21. data/docs/CommunicationBlockCallToActionDataImage.md +9 -0
  22. data/docs/CommunicationBlockCategories.md +14 -0
  23. data/docs/CommunicationBlockCategoriesData.md +13 -0
  24. data/docs/CommunicationBlockChapter.md +14 -0
  25. data/docs/CommunicationBlockChapterData.md +12 -0
  26. data/docs/CommunicationBlockContact.md +14 -0
  27. data/docs/CommunicationBlockContactData.md +27 -0
  28. data/docs/CommunicationBlockContactDataElements.md +9 -0
  29. data/docs/CommunicationBlockContactDataTimeSlotMorning.md +8 -0
  30. data/docs/CommunicationBlockDatatable.md +14 -0
  31. data/docs/CommunicationBlockDatatableData.md +11 -0
  32. data/docs/CommunicationBlockDatatableDataElements.md +7 -0
  33. data/docs/CommunicationBlockDefinitions.md +14 -0
  34. data/docs/CommunicationBlockDefinitionsData.md +8 -0
  35. data/docs/CommunicationBlockDefinitionsDataElements.md +8 -0
  36. data/docs/CommunicationBlockEmbed.md +14 -0
  37. data/docs/CommunicationBlockEmbedData.md +9 -0
  38. data/docs/CommunicationBlockFeatures.md +14 -0
  39. data/docs/CommunicationBlockFeaturesData.md +8 -0
  40. data/docs/CommunicationBlockFeaturesDataElements.md +11 -0
  41. data/docs/CommunicationBlockFiles.md +14 -0
  42. data/docs/CommunicationBlockFilesData.md +8 -0
  43. data/docs/CommunicationBlockFilesDataElements.md +9 -0
  44. data/docs/CommunicationBlockGallery.md +14 -0
  45. data/docs/CommunicationBlockGalleryData.md +9 -0
  46. data/docs/CommunicationBlockGalleryDataElements.md +10 -0
  47. data/docs/CommunicationBlockImage.md +14 -0
  48. data/docs/CommunicationBlockImageData.md +10 -0
  49. data/docs/CommunicationBlockKeyFigures.md +14 -0
  50. data/docs/CommunicationBlockKeyFiguresData.md +8 -0
  51. data/docs/CommunicationBlockKeyFiguresDataElements.md +10 -0
  52. data/docs/CommunicationBlockLicense.md +14 -0
  53. data/docs/CommunicationBlockLicenseData.md +12 -0
  54. data/docs/CommunicationBlockLinks.md +14 -0
  55. data/docs/CommunicationBlockLinksData.md +8 -0
  56. data/docs/CommunicationBlockLinksDataElements.md +11 -0
  57. data/docs/CommunicationBlockLocations.md +14 -0
  58. data/docs/CommunicationBlockLocationsData.md +10 -0
  59. data/docs/CommunicationBlockLocationsDataElements.md +7 -0
  60. data/docs/CommunicationBlockOrganizations.md +14 -0
  61. data/docs/CommunicationBlockOrganizationsData.md +15 -0
  62. data/docs/CommunicationBlockOrganizationsDataElements.md +10 -0
  63. data/docs/CommunicationBlockPages.md +14 -0
  64. data/docs/CommunicationBlockPagesData.md +15 -0
  65. data/docs/CommunicationBlockPapers.md +14 -0
  66. data/docs/CommunicationBlockPapersData.md +9 -0
  67. data/docs/CommunicationBlockPersons.md +14 -0
  68. data/docs/CommunicationBlockPersonsData.md +16 -0
  69. data/docs/CommunicationBlockPersonsDataElements.md +8 -0
  70. data/docs/CommunicationBlockPosts.md +14 -0
  71. data/docs/CommunicationBlockPostsData.md +18 -0
  72. data/docs/CommunicationBlockPrograms.md +14 -0
  73. data/docs/CommunicationBlockProgramsData.md +11 -0
  74. data/docs/CommunicationBlockProjects.md +14 -0
  75. data/docs/CommunicationBlockProjectsData.md +16 -0
  76. data/docs/CommunicationBlockSound.md +14 -0
  77. data/docs/CommunicationBlockSoundData.md +9 -0
  78. data/docs/CommunicationBlockTestimonials.md +14 -0
  79. data/docs/CommunicationBlockTestimonialsData.md +7 -0
  80. data/docs/CommunicationBlockTestimonialsDataElements.md +10 -0
  81. data/docs/CommunicationBlockTimeline.md +14 -0
  82. data/docs/CommunicationBlockTimelineData.md +8 -0
  83. data/docs/CommunicationBlockTimelineDataElements.md +8 -0
  84. data/docs/CommunicationBlockTitle.md +14 -0
  85. data/docs/CommunicationBlockTitleData.md +7 -0
  86. data/docs/CommunicationBlockVideo.md +14 -0
  87. data/docs/CommunicationBlockVideoData.md +11 -0
  88. data/docs/CommunicationBlockVolumes.md +14 -0
  89. data/docs/CommunicationWebsite.md +15 -0
  90. data/docs/CommunicationWebsiteAgendaCategory.md +14 -0
  91. data/docs/CommunicationWebsiteAgendaCategoryApi.md +329 -0
  92. data/docs/CommunicationWebsiteAgendaCategoryLocalization.md +17 -0
  93. data/docs/CommunicationWebsiteAgendaCategoryLocalizationFeaturedImage.md +10 -0
  94. data/docs/CommunicationWebsiteAgendaEvent.md +18 -0
  95. data/docs/CommunicationWebsiteAgendaEventApi.md +329 -0
  96. data/docs/CommunicationWebsiteAgendaEventLocalization.md +25 -0
  97. data/docs/CommunicationWebsiteAgendaEventLocalizationAddToCalendarUrls.md +11 -0
  98. data/docs/CommunicationWebsiteAgendaEventTimeSlot.md +13 -0
  99. data/docs/CommunicationWebsiteAgendaEventTimeSlotLocalization.md +13 -0
  100. data/docs/CommunicationWebsiteApi.md +106 -0
  101. data/docs/CommunicationWebsiteDeuxfleurs.md +8 -0
  102. data/docs/CommunicationWebsiteFeatures.md +9 -0
  103. data/docs/CommunicationWebsiteGit.md +10 -0
  104. data/docs/CommunicationWebsiteLocalization.md +23 -0
  105. data/docs/CommunicationWebsitePage.md +17 -0
  106. data/docs/CommunicationWebsitePageApi.md +329 -0
  107. data/docs/CommunicationWebsitePageCategory.md +14 -0
  108. data/docs/CommunicationWebsitePageCategoryApi.md +329 -0
  109. data/docs/CommunicationWebsitePageCategoryLocalization.md +17 -0
  110. data/docs/CommunicationWebsitePageLocalization.md +24 -0
  111. data/docs/CommunicationWebsitePost.md +12 -0
  112. data/docs/CommunicationWebsitePostApi.md +329 -0
  113. data/docs/CommunicationWebsitePostLocalization.md +21 -0
  114. data/docs/CommunicationWebsiteShowcase.md +9 -0
  115. data/docs/CommunicationWebsiteShowcaseTags.md +9 -0
  116. data/docs/EventsIdBody.md +7 -0
  117. data/docs/EventsUpsertBody.md +7 -0
  118. data/docs/OneOfcommunicationWebsiteAgendaCategoryLocalizationBlocksItems.md +6 -0
  119. data/docs/OneOfcommunicationWebsiteAgendaEventLocalizationBlocksItems.md +6 -0
  120. data/docs/OneOfcommunicationWebsitePageCategoryLocalizationBlocksItems.md +6 -0
  121. data/docs/OneOfcommunicationWebsitePageLocalizationBlocksItems.md +6 -0
  122. data/docs/OneOfcommunicationWebsitePostLocalizationBlocksItems.md +6 -0
  123. data/docs/OneOfuniversityOrganizationCategoryLocalizationBlocksItems.md +6 -0
  124. data/docs/OneOfuniversityOrganizationLocalizationBlocksItems.md +6 -0
  125. data/docs/OrganizationsCategoriesBody.md +7 -0
  126. data/docs/OrganizationsIdBody.md +7 -0
  127. data/docs/OrganizationsUpsertBody.md +7 -0
  128. data/docs/PagesCategoriesBody.md +7 -0
  129. data/docs/PagesIdBody.md +7 -0
  130. data/docs/PagesUpsertBody.md +7 -0
  131. data/docs/PostsIdBody.md +7 -0
  132. data/docs/PostsUpsertBody.md +7 -0
  133. data/docs/UniversityOrganization.md +24 -0
  134. data/docs/UniversityOrganizationApi.md +314 -0
  135. data/docs/UniversityOrganizationCategory.md +14 -0
  136. data/docs/UniversityOrganizationCategoryApi.md +314 -0
  137. data/docs/UniversityOrganizationCategoryLocalization.md +16 -0
  138. data/docs/UniversityOrganizationLocalization.md +24 -0
  139. data/docs/UniversityOrganizationsBody.md +7 -0
  140. data/docs/WebsiteIdPagesBody.md +7 -0
  141. data/docs/WebsiteIdPostsBody.md +7 -0
  142. data/generate.sh +2 -0
  143. data/git_push.sh +55 -0
  144. data/lib/osuny_api/api/communication_website_agenda_category_api.rb +374 -0
  145. data/lib/osuny_api/api/communication_website_agenda_event_api.rb +374 -0
  146. data/lib/osuny_api/api/communication_website_api.rb +122 -0
  147. data/lib/osuny_api/api/communication_website_page_api.rb +374 -0
  148. data/lib/osuny_api/api/communication_website_page_category_api.rb +374 -0
  149. data/lib/osuny_api/api/communication_website_post_api.rb +374 -0
  150. data/lib/osuny_api/api/university_organization_api.rb +338 -0
  151. data/lib/osuny_api/api/university_organization_category_api.rb +338 -0
  152. data/lib/osuny_api/api_client.rb +388 -0
  153. data/lib/osuny_api/api_error.rb +57 -0
  154. data/lib/osuny_api/configuration.rb +205 -0
  155. data/lib/osuny_api/models/agenda_categories_body.rb +211 -0
  156. data/lib/osuny_api/models/agenda_events_body.rb +211 -0
  157. data/lib/osuny_api/models/categories_id_body.rb +211 -0
  158. data/lib/osuny_api/models/categories_id_body_1.rb +211 -0
  159. data/lib/osuny_api/models/categories_id_body_2.rb +211 -0
  160. data/lib/osuny_api/models/categories_upsert_body.rb +213 -0
  161. data/lib/osuny_api/models/categories_upsert_body_1.rb +213 -0
  162. data/lib/osuny_api/models/categories_upsert_body_2.rb +213 -0
  163. data/lib/osuny_api/models/communication_block_agenda.rb +312 -0
  164. data/lib/osuny_api/models/communication_block_agenda_data.rb +384 -0
  165. data/lib/osuny_api/models/communication_block_agenda_data_elements.rb +206 -0
  166. data/lib/osuny_api/models/communication_block_call_to_action.rb +312 -0
  167. data/lib/osuny_api/models/communication_block_call_to_action_data.rb +288 -0
  168. data/lib/osuny_api/models/communication_block_call_to_action_data_elements.rb +224 -0
  169. data/lib/osuny_api/models/communication_block_call_to_action_data_image.rb +227 -0
  170. data/lib/osuny_api/models/communication_block_categories.rb +312 -0
  171. data/lib/osuny_api/models/communication_block_categories_data.rb +307 -0
  172. data/lib/osuny_api/models/communication_block_chapter.rb +312 -0
  173. data/lib/osuny_api/models/communication_block_chapter_data.rb +286 -0
  174. data/lib/osuny_api/models/communication_block_contact.rb +312 -0
  175. data/lib/osuny_api/models/communication_block_contact_data.rb +393 -0
  176. data/lib/osuny_api/models/communication_block_contact_data_elements.rb +224 -0
  177. data/lib/osuny_api/models/communication_block_contact_data_time_slot_morning.rb +215 -0
  178. data/lib/osuny_api/models/communication_block_datatable.rb +312 -0
  179. data/lib/osuny_api/models/communication_block_datatable_data.rb +247 -0
  180. data/lib/osuny_api/models/communication_block_datatable_data_elements.rb +208 -0
  181. data/lib/osuny_api/models/communication_block_definitions.rb +312 -0
  182. data/lib/osuny_api/models/communication_block_definitions_data.rb +218 -0
  183. data/lib/osuny_api/models/communication_block_definitions_data_elements.rb +215 -0
  184. data/lib/osuny_api/models/communication_block_embed.rb +312 -0
  185. data/lib/osuny_api/models/communication_block_embed_data.rb +225 -0
  186. data/lib/osuny_api/models/communication_block_features.rb +312 -0
  187. data/lib/osuny_api/models/communication_block_features_data.rb +218 -0
  188. data/lib/osuny_api/models/communication_block_features_data_elements.rb +242 -0
  189. data/lib/osuny_api/models/communication_block_files.rb +312 -0
  190. data/lib/osuny_api/models/communication_block_files_data.rb +218 -0
  191. data/lib/osuny_api/models/communication_block_files_data_elements.rb +224 -0
  192. data/lib/osuny_api/models/communication_block_gallery.rb +312 -0
  193. data/lib/osuny_api/models/communication_block_gallery_data.rb +261 -0
  194. data/lib/osuny_api/models/communication_block_gallery_data_elements.rb +233 -0
  195. data/lib/osuny_api/models/communication_block_image.rb +312 -0
  196. data/lib/osuny_api/models/communication_block_image_data.rb +234 -0
  197. data/lib/osuny_api/models/communication_block_key_figures.rb +312 -0
  198. data/lib/osuny_api/models/communication_block_key_figures_data.rb +218 -0
  199. data/lib/osuny_api/models/communication_block_key_figures_data_elements.rb +233 -0
  200. data/lib/osuny_api/models/communication_block_license.rb +312 -0
  201. data/lib/osuny_api/models/communication_block_license_data.rb +334 -0
  202. data/lib/osuny_api/models/communication_block_links.rb +312 -0
  203. data/lib/osuny_api/models/communication_block_links_data.rb +218 -0
  204. data/lib/osuny_api/models/communication_block_links_data_elements.rb +242 -0
  205. data/lib/osuny_api/models/communication_block_locations.rb +312 -0
  206. data/lib/osuny_api/models/communication_block_locations_data.rb +270 -0
  207. data/lib/osuny_api/models/communication_block_locations_data_elements.rb +206 -0
  208. data/lib/osuny_api/models/communication_block_organizations.rb +312 -0
  209. data/lib/osuny_api/models/communication_block_organizations_data.rb +327 -0
  210. data/lib/osuny_api/models/communication_block_organizations_data_elements.rb +233 -0
  211. data/lib/osuny_api/models/communication_block_pages.rb +312 -0
  212. data/lib/osuny_api/models/communication_block_pages_data.rb +327 -0
  213. data/lib/osuny_api/models/communication_block_papers.rb +312 -0
  214. data/lib/osuny_api/models/communication_block_papers_data.rb +261 -0
  215. data/lib/osuny_api/models/communication_block_persons.rb +312 -0
  216. data/lib/osuny_api/models/communication_block_persons_data.rb +336 -0
  217. data/lib/osuny_api/models/communication_block_persons_data_elements.rb +215 -0
  218. data/lib/osuny_api/models/communication_block_posts.rb +312 -0
  219. data/lib/osuny_api/models/communication_block_posts_data.rb +354 -0
  220. data/lib/osuny_api/models/communication_block_programs.rb +312 -0
  221. data/lib/osuny_api/models/communication_block_programs_data.rb +279 -0
  222. data/lib/osuny_api/models/communication_block_projects.rb +312 -0
  223. data/lib/osuny_api/models/communication_block_projects_data.rb +336 -0
  224. data/lib/osuny_api/models/communication_block_sound.rb +312 -0
  225. data/lib/osuny_api/models/communication_block_sound_data.rb +225 -0
  226. data/lib/osuny_api/models/communication_block_testimonials.rb +312 -0
  227. data/lib/osuny_api/models/communication_block_testimonials_data.rb +209 -0
  228. data/lib/osuny_api/models/communication_block_testimonials_data_elements.rb +233 -0
  229. data/lib/osuny_api/models/communication_block_timeline.rb +312 -0
  230. data/lib/osuny_api/models/communication_block_timeline_data.rb +252 -0
  231. data/lib/osuny_api/models/communication_block_timeline_data_elements.rb +215 -0
  232. data/lib/osuny_api/models/communication_block_title.rb +312 -0
  233. data/lib/osuny_api/models/communication_block_title_data.rb +241 -0
  234. data/lib/osuny_api/models/communication_block_video.rb +312 -0
  235. data/lib/osuny_api/models/communication_block_video_data.rb +277 -0
  236. data/lib/osuny_api/models/communication_block_volumes.rb +312 -0
  237. data/lib/osuny_api/models/communication_website.rb +282 -0
  238. data/lib/osuny_api/models/communication_website_agenda_category.rb +274 -0
  239. data/lib/osuny_api/models/communication_website_agenda_category_localization.rb +302 -0
  240. data/lib/osuny_api/models/communication_website_agenda_category_localization_featured_image.rb +237 -0
  241. data/lib/osuny_api/models/communication_website_agenda_event.rb +315 -0
  242. data/lib/osuny_api/models/communication_website_agenda_event_localization.rb +380 -0
  243. data/lib/osuny_api/models/communication_website_agenda_event_localization_add_to_calendar_urls.rb +242 -0
  244. data/lib/osuny_api/models/communication_website_agenda_event_time_slot.rb +265 -0
  245. data/lib/osuny_api/models/communication_website_agenda_event_time_slot_localization.rb +263 -0
  246. data/lib/osuny_api/models/communication_website_deuxfleurs.rb +216 -0
  247. data/lib/osuny_api/models/communication_website_features.rb +224 -0
  248. data/lib/osuny_api/models/communication_website_git.rb +237 -0
  249. data/lib/osuny_api/models/communication_website_localization.rb +362 -0
  250. data/lib/osuny_api/models/communication_website_page.rb +306 -0
  251. data/lib/osuny_api/models/communication_website_page_category.rb +274 -0
  252. data/lib/osuny_api/models/communication_website_page_category_localization.rb +302 -0
  253. data/lib/osuny_api/models/communication_website_page_localization.rb +371 -0
  254. data/lib/osuny_api/models/communication_website_post.rb +255 -0
  255. data/lib/osuny_api/models/communication_website_post_localization.rb +341 -0
  256. data/lib/osuny_api/models/communication_website_showcase.rb +226 -0
  257. data/lib/osuny_api/models/communication_website_showcase_tags.rb +224 -0
  258. data/lib/osuny_api/models/events_id_body.rb +211 -0
  259. data/lib/osuny_api/models/events_upsert_body.rb +213 -0
  260. data/lib/osuny_api/models/one_ofcommunication_website_agenda_category_localization_blocks_items.rb +197 -0
  261. data/lib/osuny_api/models/one_ofcommunication_website_agenda_event_localization_blocks_items.rb +197 -0
  262. data/lib/osuny_api/models/one_ofcommunication_website_page_category_localization_blocks_items.rb +197 -0
  263. data/lib/osuny_api/models/one_ofcommunication_website_page_localization_blocks_items.rb +197 -0
  264. data/lib/osuny_api/models/one_ofcommunication_website_post_localization_blocks_items.rb +197 -0
  265. data/lib/osuny_api/models/one_ofuniversity_organization_category_localization_blocks_items.rb +197 -0
  266. data/lib/osuny_api/models/one_ofuniversity_organization_localization_blocks_items.rb +197 -0
  267. data/lib/osuny_api/models/organizations_categories_body.rb +211 -0
  268. data/lib/osuny_api/models/organizations_id_body.rb +211 -0
  269. data/lib/osuny_api/models/organizations_upsert_body.rb +213 -0
  270. data/lib/osuny_api/models/pages_categories_body.rb +211 -0
  271. data/lib/osuny_api/models/pages_id_body.rb +211 -0
  272. data/lib/osuny_api/models/pages_upsert_body.rb +213 -0
  273. data/lib/osuny_api/models/posts_id_body.rb +211 -0
  274. data/lib/osuny_api/models/posts_upsert_body.rb +213 -0
  275. data/lib/osuny_api/models/university_organization.rb +409 -0
  276. data/lib/osuny_api/models/university_organization_category.rb +274 -0
  277. data/lib/osuny_api/models/university_organization_category_localization.rb +292 -0
  278. data/lib/osuny_api/models/university_organization_localization.rb +373 -0
  279. data/lib/osuny_api/models/university_organizations_body.rb +211 -0
  280. data/lib/osuny_api/models/website_id_pages_body.rb +211 -0
  281. data/lib/osuny_api/models/website_id_posts_body.rb +211 -0
  282. data/lib/osuny_api/version.rb +11 -2
  283. data/lib/osuny_api.rb +165 -11
  284. data/osuny_api.gemspec +37 -30
  285. data/pkg/osuny_api-0.2.6.gem +0 -0
  286. data/pkg/osuny_api-1.0.0.gem +0 -0
  287. data/spec/api/communication_website_agenda_category_api_spec.rb +106 -0
  288. data/spec/api/communication_website_agenda_event_api_spec.rb +106 -0
  289. data/spec/api/communication_website_api_spec.rb +55 -0
  290. data/spec/api/communication_website_page_api_spec.rb +106 -0
  291. data/spec/api/communication_website_page_category_api_spec.rb +106 -0
  292. data/spec/api/communication_website_post_api_spec.rb +106 -0
  293. data/spec/api/university_organization_api_spec.rb +100 -0
  294. data/spec/api/university_organization_category_api_spec.rb +100 -0
  295. data/spec/api_client_spec.rb +225 -0
  296. data/spec/base_object_spec.rb +109 -0
  297. data/spec/configuration_spec.rb +41 -0
  298. data/spec/models/agenda_categories_body_spec.rb +40 -0
  299. data/spec/models/agenda_events_body_spec.rb +40 -0
  300. data/spec/models/categories_id_body_1_spec.rb +40 -0
  301. data/spec/models/categories_id_body_2_spec.rb +40 -0
  302. data/spec/models/categories_id_body_spec.rb +40 -0
  303. data/spec/models/categories_upsert_body_1_spec.rb +40 -0
  304. data/spec/models/categories_upsert_body_2_spec.rb +40 -0
  305. data/spec/models/categories_upsert_body_spec.rb +40 -0
  306. data/spec/models/communication_block_agenda_data_elements_spec.rb +40 -0
  307. data/spec/models/communication_block_agenda_data_spec.rb +130 -0
  308. data/spec/models/communication_block_agenda_spec.rb +86 -0
  309. data/spec/models/communication_block_call_to_action_data_elements_spec.rb +52 -0
  310. data/spec/models/communication_block_call_to_action_data_image_spec.rb +52 -0
  311. data/spec/models/communication_block_call_to_action_data_spec.rb +74 -0
  312. data/spec/models/communication_block_call_to_action_spec.rb +86 -0
  313. data/spec/models/communication_block_categories_data_spec.rb +84 -0
  314. data/spec/models/communication_block_categories_spec.rb +86 -0
  315. data/spec/models/communication_block_chapter_data_spec.rb +74 -0
  316. data/spec/models/communication_block_chapter_spec.rb +86 -0
  317. data/spec/models/communication_block_contact_data_elements_spec.rb +52 -0
  318. data/spec/models/communication_block_contact_data_spec.rb +160 -0
  319. data/spec/models/communication_block_contact_data_time_slot_morning_spec.rb +46 -0
  320. data/spec/models/communication_block_contact_spec.rb +86 -0
  321. data/spec/models/communication_block_datatable_data_elements_spec.rb +40 -0
  322. data/spec/models/communication_block_datatable_data_spec.rb +64 -0
  323. data/spec/models/communication_block_datatable_spec.rb +86 -0
  324. data/spec/models/communication_block_definitions_data_elements_spec.rb +46 -0
  325. data/spec/models/communication_block_definitions_data_spec.rb +46 -0
  326. data/spec/models/communication_block_definitions_spec.rb +86 -0
  327. data/spec/models/communication_block_embed_data_spec.rb +52 -0
  328. data/spec/models/communication_block_embed_spec.rb +86 -0
  329. data/spec/models/communication_block_features_data_elements_spec.rb +64 -0
  330. data/spec/models/communication_block_features_data_spec.rb +46 -0
  331. data/spec/models/communication_block_features_spec.rb +86 -0
  332. data/spec/models/communication_block_files_data_elements_spec.rb +52 -0
  333. data/spec/models/communication_block_files_data_spec.rb +46 -0
  334. data/spec/models/communication_block_files_spec.rb +86 -0
  335. data/spec/models/communication_block_gallery_data_elements_spec.rb +58 -0
  336. data/spec/models/communication_block_gallery_data_spec.rb +56 -0
  337. data/spec/models/communication_block_gallery_spec.rb +86 -0
  338. data/spec/models/communication_block_image_data_spec.rb +58 -0
  339. data/spec/models/communication_block_image_spec.rb +86 -0
  340. data/spec/models/communication_block_key_figures_data_elements_spec.rb +58 -0
  341. data/spec/models/communication_block_key_figures_data_spec.rb +46 -0
  342. data/spec/models/communication_block_key_figures_spec.rb +86 -0
  343. data/spec/models/communication_block_license_data_spec.rb +90 -0
  344. data/spec/models/communication_block_license_spec.rb +86 -0
  345. data/spec/models/communication_block_links_data_elements_spec.rb +64 -0
  346. data/spec/models/communication_block_links_data_spec.rb +46 -0
  347. data/spec/models/communication_block_links_spec.rb +86 -0
  348. data/spec/models/communication_block_locations_data_elements_spec.rb +40 -0
  349. data/spec/models/communication_block_locations_data_spec.rb +62 -0
  350. data/spec/models/communication_block_locations_spec.rb +86 -0
  351. data/spec/models/communication_block_organizations_data_elements_spec.rb +58 -0
  352. data/spec/models/communication_block_organizations_data_spec.rb +96 -0
  353. data/spec/models/communication_block_organizations_spec.rb +86 -0
  354. data/spec/models/communication_block_pages_data_spec.rb +96 -0
  355. data/spec/models/communication_block_pages_spec.rb +86 -0
  356. data/spec/models/communication_block_papers_data_spec.rb +56 -0
  357. data/spec/models/communication_block_papers_spec.rb +86 -0
  358. data/spec/models/communication_block_persons_data_elements_spec.rb +46 -0
  359. data/spec/models/communication_block_persons_data_spec.rb +102 -0
  360. data/spec/models/communication_block_persons_spec.rb +86 -0
  361. data/spec/models/communication_block_posts_data_spec.rb +114 -0
  362. data/spec/models/communication_block_posts_spec.rb +86 -0
  363. data/spec/models/communication_block_programs_data_spec.rb +68 -0
  364. data/spec/models/communication_block_programs_spec.rb +86 -0
  365. data/spec/models/communication_block_projects_data_spec.rb +102 -0
  366. data/spec/models/communication_block_projects_spec.rb +86 -0
  367. data/spec/models/communication_block_sound_data_spec.rb +52 -0
  368. data/spec/models/communication_block_sound_spec.rb +86 -0
  369. data/spec/models/communication_block_testimonials_data_elements_spec.rb +58 -0
  370. data/spec/models/communication_block_testimonials_data_spec.rb +40 -0
  371. data/spec/models/communication_block_testimonials_spec.rb +86 -0
  372. data/spec/models/communication_block_timeline_data_elements_spec.rb +46 -0
  373. data/spec/models/communication_block_timeline_data_spec.rb +50 -0
  374. data/spec/models/communication_block_timeline_spec.rb +86 -0
  375. data/spec/models/communication_block_title_data_spec.rb +44 -0
  376. data/spec/models/communication_block_title_spec.rb +86 -0
  377. data/spec/models/communication_block_video_data_spec.rb +68 -0
  378. data/spec/models/communication_block_video_spec.rb +86 -0
  379. data/spec/models/communication_block_volumes_spec.rb +86 -0
  380. data/spec/models/communication_website_agenda_category_localization_featured_image_spec.rb +58 -0
  381. data/spec/models/communication_website_agenda_category_localization_spec.rb +100 -0
  382. data/spec/models/communication_website_agenda_category_spec.rb +82 -0
  383. data/spec/models/communication_website_agenda_event_localization_add_to_calendar_urls_spec.rb +64 -0
  384. data/spec/models/communication_website_agenda_event_localization_spec.rb +148 -0
  385. data/spec/models/communication_website_agenda_event_spec.rb +106 -0
  386. data/spec/models/communication_website_agenda_event_time_slot_localization_spec.rb +76 -0
  387. data/spec/models/communication_website_agenda_event_time_slot_spec.rb +76 -0
  388. data/spec/models/communication_website_deuxfleurs_spec.rb +46 -0
  389. data/spec/models/communication_website_features_spec.rb +52 -0
  390. data/spec/models/communication_website_git_spec.rb +58 -0
  391. data/spec/models/communication_website_localization_spec.rb +136 -0
  392. data/spec/models/communication_website_page_category_localization_spec.rb +100 -0
  393. data/spec/models/communication_website_page_category_spec.rb +82 -0
  394. data/spec/models/communication_website_page_localization_spec.rb +142 -0
  395. data/spec/models/communication_website_page_spec.rb +100 -0
  396. data/spec/models/communication_website_post_localization_spec.rb +124 -0
  397. data/spec/models/communication_website_post_spec.rb +70 -0
  398. data/spec/models/communication_website_showcase_spec.rb +52 -0
  399. data/spec/models/communication_website_showcase_tags_spec.rb +52 -0
  400. data/spec/models/communication_website_spec.rb +88 -0
  401. data/spec/models/events_id_body_spec.rb +40 -0
  402. data/spec/models/events_upsert_body_spec.rb +40 -0
  403. data/spec/models/one_ofcommunication_website_agenda_category_localization_blocks_items_spec.rb +34 -0
  404. data/spec/models/one_ofcommunication_website_agenda_event_localization_blocks_items_spec.rb +34 -0
  405. data/spec/models/one_ofcommunication_website_page_category_localization_blocks_items_spec.rb +34 -0
  406. data/spec/models/one_ofcommunication_website_page_localization_blocks_items_spec.rb +34 -0
  407. data/spec/models/one_ofcommunication_website_post_localization_blocks_items_spec.rb +34 -0
  408. data/spec/models/one_ofuniversity_organization_category_localization_blocks_items_spec.rb +34 -0
  409. data/spec/models/one_ofuniversity_organization_localization_blocks_items_spec.rb +34 -0
  410. data/spec/models/organizations_categories_body_spec.rb +40 -0
  411. data/spec/models/organizations_id_body_spec.rb +40 -0
  412. data/spec/models/organizations_upsert_body_spec.rb +40 -0
  413. data/spec/models/pages_categories_body_spec.rb +40 -0
  414. data/spec/models/pages_id_body_spec.rb +40 -0
  415. data/spec/models/pages_upsert_body_spec.rb +40 -0
  416. data/spec/models/posts_id_body_spec.rb +40 -0
  417. data/spec/models/posts_upsert_body_spec.rb +40 -0
  418. data/spec/models/university_organization_category_localization_spec.rb +94 -0
  419. data/spec/models/university_organization_category_spec.rb +82 -0
  420. data/spec/models/university_organization_localization_spec.rb +142 -0
  421. data/spec/models/university_organization_spec.rb +146 -0
  422. data/spec/models/university_organizations_body_spec.rb +40 -0
  423. data/spec/models/website_id_pages_body_spec.rb +40 -0
  424. data/spec/models/website_id_posts_body_spec.rb +40 -0
  425. data/spec/spec_helper.rb +110 -0
  426. metadata +614 -24
  427. data/lib/osuny_api/client.rb +0 -41
  428. data/lib/osuny_api/communication/website/page.rb +0 -12
  429. data/lib/osuny_api/communication/website/post.rb +0 -12
  430. data/lib/osuny_api/communication/website.rb +0 -18
  431. data/lib/osuny_api/communication.rb +0 -13
  432. data/lib/osuny_api/error.rb +0 -4
  433. data/lib/osuny_api/resource.rb +0 -20
@@ -0,0 +1,213 @@
1
+ =begin
2
+ #Osuny
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 3.0.68
10
+ =end
11
+
12
+ require 'date'
13
+
14
+ module OsunyApi
15
+ class PostsUpsertBody
16
+ attr_accessor :posts
17
+
18
+ # Attribute mapping from ruby-style variable name to JSON key.
19
+ def self.attribute_map
20
+ {
21
+ :'posts' => :'posts'
22
+ }
23
+ end
24
+
25
+ # Attribute type mapping.
26
+ def self.openapi_types
27
+ {
28
+ :'posts' => :'Object'
29
+ }
30
+ end
31
+
32
+ # List of attributes with nullable: true
33
+ def self.openapi_nullable
34
+ Set.new([
35
+ ])
36
+ end
37
+
38
+ # Initializes the object
39
+ # @param [Hash] attributes Model attributes in the form of hash
40
+ def initialize(attributes = {})
41
+ if (!attributes.is_a?(Hash))
42
+ fail ArgumentError, "The input argument (attributes) must be a hash in `OsunyApi::PostsUpsertBody` initialize method"
43
+ end
44
+
45
+ # check to see if the attribute exists and convert string to symbol for hash key
46
+ attributes = attributes.each_with_object({}) { |(k, v), h|
47
+ if (!self.class.attribute_map.key?(k.to_sym))
48
+ fail ArgumentError, "`#{k}` is not a valid attribute in `OsunyApi::PostsUpsertBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
49
+ end
50
+ h[k.to_sym] = v
51
+ }
52
+
53
+ if attributes.key?(:'posts')
54
+ if (value = attributes[:'posts']).is_a?(Array)
55
+ self.posts = value
56
+ end
57
+ end
58
+ end
59
+
60
+ # Show invalid properties with the reasons. Usually used together with valid?
61
+ # @return Array for valid properties with the reasons
62
+ def list_invalid_properties
63
+ invalid_properties = Array.new
64
+ if @posts.nil?
65
+ invalid_properties.push('invalid value for "posts", posts cannot be nil.')
66
+ end
67
+
68
+ invalid_properties
69
+ end
70
+
71
+ # Check to see if the all the properties in the model are valid
72
+ # @return true if the model is valid
73
+ def valid?
74
+ return false if @posts.nil?
75
+ true
76
+ end
77
+
78
+ # Checks equality by comparing each attribute.
79
+ # @param [Object] Object to be compared
80
+ def ==(o)
81
+ return true if self.equal?(o)
82
+ self.class == o.class &&
83
+ posts == o.posts
84
+ end
85
+
86
+ # @see the `==` method
87
+ # @param [Object] Object to be compared
88
+ def eql?(o)
89
+ self == o
90
+ end
91
+
92
+ # Calculates hash code according to all attributes.
93
+ # @return [Integer] Hash code
94
+ def hash
95
+ [posts].hash
96
+ end
97
+
98
+ # Builds the object from hash
99
+ # @param [Hash] attributes Model attributes in the form of hash
100
+ # @return [Object] Returns the model itself
101
+ def self.build_from_hash(attributes)
102
+ new.build_from_hash(attributes)
103
+ end
104
+
105
+ # Builds the object from hash
106
+ # @param [Hash] attributes Model attributes in the form of hash
107
+ # @return [Object] Returns the model itself
108
+ def build_from_hash(attributes)
109
+ return nil unless attributes.is_a?(Hash)
110
+ self.class.openapi_types.each_pair do |key, type|
111
+ if type =~ /\AArray<(.*)>/i
112
+ # check to ensure the input is an array given that the attribute
113
+ # is documented as an array but the input is not
114
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
115
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
116
+ end
117
+ elsif !attributes[self.class.attribute_map[key]].nil?
118
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
119
+ elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
120
+ self.send("#{key}=", nil)
121
+ end
122
+ end
123
+
124
+ self
125
+ end
126
+
127
+ # Deserializes the data based on type
128
+ # @param string type Data type
129
+ # @param string value Value to be deserialized
130
+ # @return [Object] Deserialized data
131
+ def _deserialize(type, value)
132
+ case type.to_sym
133
+ when :DateTime
134
+ DateTime.parse(value)
135
+ when :Date
136
+ Date.parse(value)
137
+ when :String
138
+ value.to_s
139
+ when :Integer
140
+ value.to_i
141
+ when :Float
142
+ value.to_f
143
+ when :Boolean
144
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
145
+ true
146
+ else
147
+ false
148
+ end
149
+ when :Object
150
+ # generic object (usually a Hash), return directly
151
+ value
152
+ when /\AArray<(?<inner_type>.+)>\z/
153
+ inner_type = Regexp.last_match[:inner_type]
154
+ value.map { |v| _deserialize(inner_type, v) }
155
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
156
+ k_type = Regexp.last_match[:k_type]
157
+ v_type = Regexp.last_match[:v_type]
158
+ {}.tap do |hash|
159
+ value.each do |k, v|
160
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
161
+ end
162
+ end
163
+ else # model
164
+ OsunyApi.const_get(type).build_from_hash(value)
165
+ end
166
+ end
167
+
168
+ # Returns the string representation of the object
169
+ # @return [String] String presentation of the object
170
+ def to_s
171
+ to_hash.to_s
172
+ end
173
+
174
+ # to_body is an alias to to_hash (backward compatibility)
175
+ # @return [Hash] Returns the object in the form of hash
176
+ def to_body
177
+ to_hash
178
+ end
179
+
180
+ # Returns the object in the form of hash
181
+ # @return [Hash] Returns the object in the form of hash
182
+ def to_hash
183
+ hash = {}
184
+ self.class.attribute_map.each_pair do |attr, param|
185
+ value = self.send(attr)
186
+ if value.nil?
187
+ is_nullable = self.class.openapi_nullable.include?(attr)
188
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
189
+ end
190
+
191
+ hash[param] = _to_hash(value)
192
+ end
193
+ hash
194
+ end
195
+
196
+ # Outputs non-array value in the form of hash
197
+ # For object, use to_hash. Otherwise, just return the value
198
+ # @param [Object] value Any valid value
199
+ # @return [Hash] Returns the value in the form of hash
200
+ def _to_hash(value)
201
+ if value.is_a?(Array)
202
+ value.compact.map { |v| _to_hash(v) }
203
+ elsif value.is_a?(Hash)
204
+ {}.tap do |hash|
205
+ value.each { |k, v| hash[k] = _to_hash(v) }
206
+ end
207
+ elsif value.respond_to? :to_hash
208
+ value.to_hash
209
+ else
210
+ value
211
+ end
212
+ end end
213
+ end
@@ -0,0 +1,409 @@
1
+ =begin
2
+ #Osuny
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 3.0.68
10
+ =end
11
+
12
+ require 'date'
13
+
14
+ module OsunyApi
15
+ class UniversityOrganization
16
+ attr_accessor :id
17
+
18
+ attr_accessor :migration_identifier
19
+
20
+ attr_accessor :kind
21
+
22
+ attr_accessor :active
23
+
24
+ attr_accessor :email
25
+
26
+ attr_accessor :phone
27
+
28
+ attr_accessor :address
29
+
30
+ attr_accessor :zipcode
31
+
32
+ attr_accessor :city
33
+
34
+ attr_accessor :country
35
+
36
+ attr_accessor :latitude
37
+
38
+ attr_accessor :longitude
39
+
40
+ attr_accessor :nic
41
+
42
+ attr_accessor :siren
43
+
44
+ # Localizations of the organization. The key is the language's ISO 639-1 code.
45
+ attr_accessor :localizations
46
+
47
+ attr_accessor :category_ids
48
+
49
+ attr_accessor :created_at
50
+
51
+ attr_accessor :updated_at
52
+
53
+ class EnumAttributeValidator
54
+ attr_reader :datatype
55
+ attr_reader :allowable_values
56
+
57
+ def initialize(datatype, allowable_values)
58
+ @allowable_values = allowable_values.map do |value|
59
+ case datatype.to_s
60
+ when /Integer/i
61
+ value.to_i
62
+ when /Float/i
63
+ value.to_f
64
+ else
65
+ value
66
+ end
67
+ end
68
+ end
69
+
70
+ def valid?(value)
71
+ !value || allowable_values.include?(value)
72
+ end
73
+ end
74
+
75
+ # Attribute mapping from ruby-style variable name to JSON key.
76
+ def self.attribute_map
77
+ {
78
+ :'id' => :'id',
79
+ :'migration_identifier' => :'migration_identifier',
80
+ :'kind' => :'kind',
81
+ :'active' => :'active',
82
+ :'email' => :'email',
83
+ :'phone' => :'phone',
84
+ :'address' => :'address',
85
+ :'zipcode' => :'zipcode',
86
+ :'city' => :'city',
87
+ :'country' => :'country',
88
+ :'latitude' => :'latitude',
89
+ :'longitude' => :'longitude',
90
+ :'nic' => :'nic',
91
+ :'siren' => :'siren',
92
+ :'localizations' => :'localizations',
93
+ :'category_ids' => :'category_ids',
94
+ :'created_at' => :'created_at',
95
+ :'updated_at' => :'updated_at'
96
+ }
97
+ end
98
+
99
+ # Attribute type mapping.
100
+ def self.openapi_types
101
+ {
102
+ :'id' => :'Object',
103
+ :'migration_identifier' => :'Object',
104
+ :'kind' => :'Object',
105
+ :'active' => :'Object',
106
+ :'email' => :'Object',
107
+ :'phone' => :'Object',
108
+ :'address' => :'Object',
109
+ :'zipcode' => :'Object',
110
+ :'city' => :'Object',
111
+ :'country' => :'Object',
112
+ :'latitude' => :'Object',
113
+ :'longitude' => :'Object',
114
+ :'nic' => :'Object',
115
+ :'siren' => :'Object',
116
+ :'localizations' => :'Object',
117
+ :'category_ids' => :'Object',
118
+ :'created_at' => :'Object',
119
+ :'updated_at' => :'Object'
120
+ }
121
+ end
122
+
123
+ # List of attributes with nullable: true
124
+ def self.openapi_nullable
125
+ Set.new([
126
+ :'migration_identifier',
127
+ :'email',
128
+ :'phone',
129
+ :'address',
130
+ :'zipcode',
131
+ :'city',
132
+ :'country',
133
+ :'latitude',
134
+ :'longitude',
135
+ :'nic',
136
+ :'siren',
137
+ ])
138
+ end
139
+
140
+ # Initializes the object
141
+ # @param [Hash] attributes Model attributes in the form of hash
142
+ def initialize(attributes = {})
143
+ if (!attributes.is_a?(Hash))
144
+ fail ArgumentError, "The input argument (attributes) must be a hash in `OsunyApi::UniversityOrganization` initialize method"
145
+ end
146
+
147
+ # check to see if the attribute exists and convert string to symbol for hash key
148
+ attributes = attributes.each_with_object({}) { |(k, v), h|
149
+ if (!self.class.attribute_map.key?(k.to_sym))
150
+ fail ArgumentError, "`#{k}` is not a valid attribute in `OsunyApi::UniversityOrganization`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
151
+ end
152
+ h[k.to_sym] = v
153
+ }
154
+
155
+ if attributes.key?(:'id')
156
+ self.id = attributes[:'id']
157
+ end
158
+
159
+ if attributes.key?(:'migration_identifier')
160
+ self.migration_identifier = attributes[:'migration_identifier']
161
+ end
162
+
163
+ if attributes.key?(:'kind')
164
+ self.kind = attributes[:'kind']
165
+ end
166
+
167
+ if attributes.key?(:'active')
168
+ self.active = attributes[:'active']
169
+ end
170
+
171
+ if attributes.key?(:'email')
172
+ self.email = attributes[:'email']
173
+ end
174
+
175
+ if attributes.key?(:'phone')
176
+ self.phone = attributes[:'phone']
177
+ end
178
+
179
+ if attributes.key?(:'address')
180
+ self.address = attributes[:'address']
181
+ end
182
+
183
+ if attributes.key?(:'zipcode')
184
+ self.zipcode = attributes[:'zipcode']
185
+ end
186
+
187
+ if attributes.key?(:'city')
188
+ self.city = attributes[:'city']
189
+ end
190
+
191
+ if attributes.key?(:'country')
192
+ self.country = attributes[:'country']
193
+ end
194
+
195
+ if attributes.key?(:'latitude')
196
+ self.latitude = attributes[:'latitude']
197
+ end
198
+
199
+ if attributes.key?(:'longitude')
200
+ self.longitude = attributes[:'longitude']
201
+ end
202
+
203
+ if attributes.key?(:'nic')
204
+ self.nic = attributes[:'nic']
205
+ end
206
+
207
+ if attributes.key?(:'siren')
208
+ self.siren = attributes[:'siren']
209
+ end
210
+
211
+ if attributes.key?(:'localizations')
212
+ if (value = attributes[:'localizations']).is_a?(Hash)
213
+ self.localizations = value
214
+ end
215
+ end
216
+
217
+ if attributes.key?(:'category_ids')
218
+ if (value = attributes[:'category_ids']).is_a?(Array)
219
+ self.category_ids = value
220
+ end
221
+ end
222
+
223
+ if attributes.key?(:'created_at')
224
+ self.created_at = attributes[:'created_at']
225
+ end
226
+
227
+ if attributes.key?(:'updated_at')
228
+ self.updated_at = attributes[:'updated_at']
229
+ end
230
+ end
231
+
232
+ # Show invalid properties with the reasons. Usually used together with valid?
233
+ # @return Array for valid properties with the reasons
234
+ def list_invalid_properties
235
+ invalid_properties = Array.new
236
+ invalid_properties
237
+ end
238
+
239
+ # Check to see if the all the properties in the model are valid
240
+ # @return true if the model is valid
241
+ def valid?
242
+ kind_validator = EnumAttributeValidator.new('Object', ['company', 'non_profit', 'government'])
243
+ return false unless kind_validator.valid?(@kind)
244
+ true
245
+ end
246
+
247
+ # Custom attribute writer method checking allowed values (enum).
248
+ # @param [Object] kind Object to be assigned
249
+ def kind=(kind)
250
+ validator = EnumAttributeValidator.new('Object', ['company', 'non_profit', 'government'])
251
+ unless validator.valid?(kind)
252
+ fail ArgumentError, "invalid value for \"kind\", must be one of #{validator.allowable_values}."
253
+ end
254
+ @kind = kind
255
+ end
256
+
257
+ # Checks equality by comparing each attribute.
258
+ # @param [Object] Object to be compared
259
+ def ==(o)
260
+ return true if self.equal?(o)
261
+ self.class == o.class &&
262
+ id == o.id &&
263
+ migration_identifier == o.migration_identifier &&
264
+ kind == o.kind &&
265
+ active == o.active &&
266
+ email == o.email &&
267
+ phone == o.phone &&
268
+ address == o.address &&
269
+ zipcode == o.zipcode &&
270
+ city == o.city &&
271
+ country == o.country &&
272
+ latitude == o.latitude &&
273
+ longitude == o.longitude &&
274
+ nic == o.nic &&
275
+ siren == o.siren &&
276
+ localizations == o.localizations &&
277
+ category_ids == o.category_ids &&
278
+ created_at == o.created_at &&
279
+ updated_at == o.updated_at
280
+ end
281
+
282
+ # @see the `==` method
283
+ # @param [Object] Object to be compared
284
+ def eql?(o)
285
+ self == o
286
+ end
287
+
288
+ # Calculates hash code according to all attributes.
289
+ # @return [Integer] Hash code
290
+ def hash
291
+ [id, migration_identifier, kind, active, email, phone, address, zipcode, city, country, latitude, longitude, nic, siren, localizations, category_ids, created_at, updated_at].hash
292
+ end
293
+
294
+ # Builds the object from hash
295
+ # @param [Hash] attributes Model attributes in the form of hash
296
+ # @return [Object] Returns the model itself
297
+ def self.build_from_hash(attributes)
298
+ new.build_from_hash(attributes)
299
+ end
300
+
301
+ # Builds the object from hash
302
+ # @param [Hash] attributes Model attributes in the form of hash
303
+ # @return [Object] Returns the model itself
304
+ def build_from_hash(attributes)
305
+ return nil unless attributes.is_a?(Hash)
306
+ self.class.openapi_types.each_pair do |key, type|
307
+ if type =~ /\AArray<(.*)>/i
308
+ # check to ensure the input is an array given that the attribute
309
+ # is documented as an array but the input is not
310
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
311
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
312
+ end
313
+ elsif !attributes[self.class.attribute_map[key]].nil?
314
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
315
+ elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
316
+ self.send("#{key}=", nil)
317
+ end
318
+ end
319
+
320
+ self
321
+ end
322
+
323
+ # Deserializes the data based on type
324
+ # @param string type Data type
325
+ # @param string value Value to be deserialized
326
+ # @return [Object] Deserialized data
327
+ def _deserialize(type, value)
328
+ case type.to_sym
329
+ when :DateTime
330
+ DateTime.parse(value)
331
+ when :Date
332
+ Date.parse(value)
333
+ when :String
334
+ value.to_s
335
+ when :Integer
336
+ value.to_i
337
+ when :Float
338
+ value.to_f
339
+ when :Boolean
340
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
341
+ true
342
+ else
343
+ false
344
+ end
345
+ when :Object
346
+ # generic object (usually a Hash), return directly
347
+ value
348
+ when /\AArray<(?<inner_type>.+)>\z/
349
+ inner_type = Regexp.last_match[:inner_type]
350
+ value.map { |v| _deserialize(inner_type, v) }
351
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
352
+ k_type = Regexp.last_match[:k_type]
353
+ v_type = Regexp.last_match[:v_type]
354
+ {}.tap do |hash|
355
+ value.each do |k, v|
356
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
357
+ end
358
+ end
359
+ else # model
360
+ OsunyApi.const_get(type).build_from_hash(value)
361
+ end
362
+ end
363
+
364
+ # Returns the string representation of the object
365
+ # @return [String] String presentation of the object
366
+ def to_s
367
+ to_hash.to_s
368
+ end
369
+
370
+ # to_body is an alias to to_hash (backward compatibility)
371
+ # @return [Hash] Returns the object in the form of hash
372
+ def to_body
373
+ to_hash
374
+ end
375
+
376
+ # Returns the object in the form of hash
377
+ # @return [Hash] Returns the object in the form of hash
378
+ def to_hash
379
+ hash = {}
380
+ self.class.attribute_map.each_pair do |attr, param|
381
+ value = self.send(attr)
382
+ if value.nil?
383
+ is_nullable = self.class.openapi_nullable.include?(attr)
384
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
385
+ end
386
+
387
+ hash[param] = _to_hash(value)
388
+ end
389
+ hash
390
+ end
391
+
392
+ # Outputs non-array value in the form of hash
393
+ # For object, use to_hash. Otherwise, just return the value
394
+ # @param [Object] value Any valid value
395
+ # @return [Hash] Returns the value in the form of hash
396
+ def _to_hash(value)
397
+ if value.is_a?(Array)
398
+ value.compact.map { |v| _to_hash(v) }
399
+ elsif value.is_a?(Hash)
400
+ {}.tap do |hash|
401
+ value.each { |k, v| hash[k] = _to_hash(v) }
402
+ end
403
+ elsif value.respond_to? :to_hash
404
+ value.to_hash
405
+ else
406
+ value
407
+ end
408
+ end end
409
+ end