esi_client 1.2.0 → 1.3.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.
- checksums.yaml +4 -4
- data/README.md +157 -232
- data/docs/AllianceApi.md +3 -3
- data/docs/AssetsApi.md +336 -5
- data/docs/BookmarksApi.md +135 -5
- data/docs/CalendarApi.md +84 -18
- data/docs/CharacterApi.md +225 -34
- data/docs/ClonesApi.md +66 -3
- data/docs/ContactsApi.md +94 -29
- data/docs/ContractsApi.md +400 -0
- data/docs/CorporationApi.md +536 -24
- data/docs/DogmaApi.md +2 -2
- data/docs/FactionWarfareApi.md +326 -0
- data/docs/FittingsApi.md +15 -15
- data/docs/FleetsApi.md +91 -28
- data/docs/Forbidden.md +9 -0
- data/docs/GetCharactersCharacterIdAttributesOk.md +15 -0
- data/docs/GetCharactersCharacterIdBlueprints200Ok.md +6 -6
- data/docs/GetCharactersCharacterIdCalendarEventIdAttendees200Ok.md +9 -0
- data/docs/GetCharactersCharacterIdChatChannels200Ok.md +1 -1
- data/docs/GetCharactersCharacterIdContracts200Ok.md +29 -0
- data/docs/GetCharactersCharacterIdContractsContractIdBids200Ok.md +11 -0
- data/docs/GetCharactersCharacterIdContractsContractIdItems200Ok.md +13 -0
- data/docs/GetCharactersCharacterIdCorporationhistory200Ok.md +3 -3
- data/docs/GetCharactersCharacterIdFatigueOk.md +10 -0
- data/docs/GetCharactersCharacterIdFleetNotFound.md +8 -0
- data/docs/GetCharactersCharacterIdFleetOk.md +11 -0
- data/docs/GetCharactersCharacterIdNotifications200Ok.md +14 -0
- data/docs/GetCharactersCharacterIdNotificationsContacts200Ok.md +12 -0
- data/docs/GetCharactersCharacterIdPlanetsPlanetIdContent.md +9 -0
- data/docs/GetCharactersCharacterIdPlanetsPlanetIdPin.md +1 -0
- data/docs/GetCharactersCharacterIdPlanetsPlanetIdRoute.md +1 -1
- data/docs/GetCharactersCharacterIdWalletJournal200Ok.md +20 -0
- data/docs/GetCharactersCharacterIdWalletJournalExtraInfo.md +19 -0
- data/docs/GetCharactersCharacterIdWalletTransactions200Ok.md +17 -0
- data/docs/GetCorporationsCorporationIdAlliancehistory200Ok.md +2 -1
- data/docs/GetCorporationsCorporationIdAssets200Ok.md +14 -0
- data/docs/GetCorporationsCorporationIdBlueprints200Ok.md +15 -0
- data/docs/GetCorporationsCorporationIdBookmarks200Ok.md +16 -0
- data/docs/GetCorporationsCorporationIdBookmarksCoordinates.md +10 -0
- data/docs/GetCorporationsCorporationIdBookmarksFolders200Ok.md +10 -0
- data/docs/GetCorporationsCorporationIdBookmarksItem.md +9 -0
- data/docs/GetCorporationsCorporationIdContacts200Ok.md +12 -0
- data/docs/GetCorporationsCorporationIdContainersLogs200Ok.md +19 -0
- data/docs/GetCorporationsCorporationIdContracts200Ok.md +29 -0
- data/docs/GetCorporationsCorporationIdContractsContractIdBids200Ok.md +11 -0
- data/docs/GetCorporationsCorporationIdContractsContractIdItems200Ok.md +13 -0
- data/docs/GetCorporationsCorporationIdDivisionsHangar.md +9 -0
- data/docs/GetCorporationsCorporationIdDivisionsOk.md +9 -0
- data/docs/GetCorporationsCorporationIdDivisionsWallet.md +9 -0
- data/docs/GetCorporationsCorporationIdIndustryJobs200Ok.md +29 -0
- data/docs/GetCorporationsCorporationIdKillmailsRecent200Ok.md +9 -0
- data/docs/GetCorporationsCorporationIdMembertracking200Ok.md +14 -0
- data/docs/GetCorporationsCorporationIdOrders200Ok.md +22 -0
- data/docs/GetCorporationsCorporationIdShareholders200Ok.md +10 -0
- data/docs/GetCorporationsCorporationIdStandings200Ok.md +10 -0
- data/docs/GetCorporationsCorporationIdTitles200Ok.md +17 -0
- data/docs/GetCorporationsCorporationIdWallets200Ok.md +9 -0
- data/docs/GetCorporationsCorporationIdWalletsDivisionJournal200Ok.md +20 -0
- data/docs/GetCorporationsCorporationIdWalletsDivisionJournalExtraInfo.md +19 -0
- data/docs/GetCorporationsCorporationIdWalletsDivisionTransactions200Ok.md +16 -0
- data/docs/GetDogmaEffectsEffectIdModifier.md +5 -4
- data/docs/GetFwLeaderboardsActiveTotal.md +9 -0
- data/docs/GetFwLeaderboardsActiveTotal1.md +9 -0
- data/docs/GetFwLeaderboardsCharactersActiveTotal.md +9 -0
- data/docs/GetFwLeaderboardsCharactersActiveTotal1.md +9 -0
- data/docs/GetFwLeaderboardsCharactersKills.md +10 -0
- data/docs/GetFwLeaderboardsCharactersLastWeek.md +9 -0
- data/docs/GetFwLeaderboardsCharactersLastWeek1.md +9 -0
- data/docs/GetFwLeaderboardsCharactersOk.md +9 -0
- data/docs/GetFwLeaderboardsCharactersVictoryPoints.md +10 -0
- data/docs/GetFwLeaderboardsCharactersYesterday.md +9 -0
- data/docs/GetFwLeaderboardsCharactersYesterday1.md +9 -0
- data/docs/GetFwLeaderboardsCorporationsActiveTotal.md +9 -0
- data/docs/GetFwLeaderboardsCorporationsActiveTotal1.md +9 -0
- data/docs/GetFwLeaderboardsCorporationsKills.md +10 -0
- data/docs/GetFwLeaderboardsCorporationsLastWeek.md +9 -0
- data/docs/GetFwLeaderboardsCorporationsLastWeek1.md +9 -0
- data/docs/GetFwLeaderboardsCorporationsOk.md +9 -0
- data/docs/GetFwLeaderboardsCorporationsVictoryPoints.md +10 -0
- data/docs/GetFwLeaderboardsCorporationsYesterday.md +9 -0
- data/docs/GetFwLeaderboardsCorporationsYesterday1.md +9 -0
- data/docs/GetFwLeaderboardsKills.md +10 -0
- data/docs/GetFwLeaderboardsLastWeek.md +9 -0
- data/docs/GetFwLeaderboardsLastWeek1.md +9 -0
- data/docs/GetFwLeaderboardsOk.md +9 -0
- data/docs/GetFwLeaderboardsVictoryPoints.md +10 -0
- data/docs/GetFwLeaderboardsYesterday.md +9 -0
- data/docs/GetFwLeaderboardsYesterday1.md +9 -0
- data/docs/GetFwStats200Ok.md +12 -0
- data/docs/GetFwStatsKills.md +10 -0
- data/docs/GetFwStatsVictoryPoints.md +10 -0
- data/docs/GetFwSystems200Ok.md +13 -0
- data/docs/GetFwWars200Ok.md +9 -0
- data/docs/GetUniverseStarsStarIdOk.md +15 -0
- data/docs/GetUniverseSystemKills200Ok.md +1 -1
- data/docs/GetUniverseSystemsSystemIdOk.md +3 -1
- data/docs/GetUniverseTypesTypeIdOk.md +2 -0
- data/docs/IncursionsApi.md +1 -1
- data/docs/IndustryApi.md +70 -3
- data/docs/InsuranceApi.md +1 -1
- data/docs/InternalServerError.md +8 -0
- data/docs/KillmailsApi.md +71 -6
- data/docs/LocationApi.md +7 -7
- data/docs/LoyaltyApi.md +8 -8
- data/docs/MailApi.md +31 -31
- data/docs/MarketApi.md +134 -11
- data/docs/OpportunitiesApi.md +5 -5
- data/docs/PlanetaryInteractionApi.md +12 -12
- data/docs/PostCharactersAffiliationNotFound.md +8 -0
- data/docs/PostCharactersCharacterIdAssetsLocations200Ok.md +11 -0
- data/docs/PostCharactersCharacterIdAssetsNames200Ok.md +9 -0
- data/docs/PostCharactersCharacterIdMailLabelsLabel.md +1 -1
- data/docs/PostCorporationsCorporationIdAssetsLocations200Ok.md +11 -0
- data/docs/PostCorporationsCorporationIdAssetsNames200Ok.md +9 -0
- data/docs/PostFleetsFleetIdMembersInvitation.md +1 -1
- data/docs/PutFleetsFleetIdMembersMemberIdMovement.md +1 -1
- data/docs/RoutesApi.md +1 -1
- data/docs/SearchApi.md +9 -9
- data/docs/SkillsApi.md +70 -7
- data/docs/SovereigntyApi.md +1 -1
- data/docs/StatusApi.md +1 -1
- data/docs/UniverseApi.md +66 -10
- data/docs/UserInterfaceApi.md +11 -11
- data/docs/WalletApi.md +341 -12
- data/docs/WarsApi.md +3 -3
- data/esi_client-1.2.0.gem +0 -0
- data/lib/esi_client.rb +83 -212
- data/lib/esi_client/api/alliance_api.rb +28 -19
- data/lib/esi_client/api/assets_api.rb +381 -8
- data/lib/esi_client/api/bookmarks_api.rb +158 -11
- data/lib/esi_client/api/calendar_api.rb +114 -27
- data/lib/esi_client/api/character_api.rb +306 -72
- data/lib/esi_client/api/clones_api.rb +77 -6
- data/lib/esi_client/api/contacts_api.rb +139 -51
- data/lib/esi_client/api/contracts_api.rb +458 -0
- data/lib/esi_client/api/corporation_api.rb +629 -56
- data/lib/esi_client/api/dogma_api.rb +16 -11
- data/lib/esi_client/api/faction_warfare_api.rb +377 -0
- data/lib/esi_client/api/fittings_api.rb +32 -23
- data/lib/esi_client/api/fleets_api.rb +201 -82
- data/lib/esi_client/api/incursions_api.rb +4 -3
- data/lib/esi_client/api/industry_api.rb +87 -10
- data/lib/esi_client/api/insurance_api.rb +5 -4
- data/lib/esi_client/api/killmails_api.rb +91 -13
- data/lib/esi_client/api/location_api.rb +23 -16
- data/lib/esi_client/api/loyalty_api.rb +20 -15
- data/lib/esi_client/api/mail_api.rb +87 -56
- data/lib/esi_client/api/market_api.rb +188 -34
- data/lib/esi_client/api/opportunities_api.rb +26 -19
- data/lib/esi_client/api/planetary_interaction_api.rb +28 -19
- data/lib/esi_client/api/routes_api.rb +13 -8
- data/lib/esi_client/api/search_api.rb +37 -26
- data/lib/esi_client/api/skills_api.rb +86 -13
- data/lib/esi_client/api/sovereignty_api.rb +8 -7
- data/lib/esi_client/api/status_api.rb +4 -3
- data/lib/esi_client/api/universe_api.rb +173 -89
- data/lib/esi_client/api/user_interface_api.rb +43 -28
- data/lib/esi_client/api/wallet_api.rb +401 -18
- data/lib/esi_client/api/wars_api.rb +16 -11
- data/lib/esi_client/api_client.rb +40 -27
- data/lib/esi_client/api_error.rb +2 -1
- data/lib/esi_client/configuration.rb +9 -2
- data/lib/esi_client/models/delete_characters_character_id_mail_labels_label_id_unprocessable_entity.rb +2 -1
- data/lib/esi_client/models/delete_fleets_fleet_id_members_member_id_not_found.rb +2 -1
- data/lib/esi_client/models/delete_fleets_fleet_id_squads_squad_id_not_found.rb +2 -1
- data/lib/esi_client/models/delete_fleets_fleet_id_wings_wing_id_not_found.rb +2 -1
- data/lib/esi_client/models/forbidden.rb +204 -0
- data/lib/esi_client/models/get_alliances_alliance_id_icons_not_found.rb +2 -1
- data/lib/esi_client/models/get_alliances_alliance_id_icons_ok.rb +2 -1
- data/lib/esi_client/models/get_alliances_alliance_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_alliances_alliance_id_ok.rb +2 -1
- data/lib/esi_client/models/get_alliances_names_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_agents_research_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_assets_200_ok.rb +4 -3
- data/lib/esi_client/models/get_characters_character_id_attributes_ok.rb +284 -0
- data/lib/esi_client/models/get_characters_character_id_blueprints_200_ok.rb +102 -7
- data/lib/esi_client/models/get_characters_character_id_bookmarks_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_bookmarks_coordinates.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_bookmarks_folders_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_bookmarks_item.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_bookmarks_target.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_calendar_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_calendar_event_id_attendees_200_ok.rb +232 -0
- data/lib/esi_client/models/get_characters_character_id_calendar_event_id_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_chat_channels_200_ok.rb +3 -2
- data/lib/esi_client/models/get_characters_character_id_chat_channels_allowed.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_chat_channels_blocked.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_chat_channels_muted.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_chat_channels_operator.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_clones_home_location.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_clones_jump_clone.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_clones_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_contacts_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_contacts_labels_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_contracts_200_ok.rb +511 -0
- data/lib/esi_client/models/get_characters_character_id_contracts_contract_id_bids_200_ok.rb +239 -0
- data/lib/esi_client/models/get_characters_character_id_contracts_contract_id_items_200_ok.rb +264 -0
- data/lib/esi_client/models/get_characters_character_id_corporationhistory_200_ok.rb +17 -1
- data/lib/esi_client/models/get_characters_character_id_fatigue_ok.rb +209 -0
- data/lib/esi_client/models/get_characters_character_id_fittings_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_fittings_item.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_fleet_not_found.rb +189 -0
- data/lib/esi_client/models/get_characters_character_id_fleet_ok.rb +272 -0
- data/lib/esi_client/models/get_characters_character_id_industry_jobs_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_killmails_recent_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_location_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_loyalty_points_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_mail_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_mail_labels_label.rb +4 -3
- data/lib/esi_client/models/get_characters_character_id_mail_labels_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_mail_lists_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_mail_mail_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_mail_mail_id_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_mail_mail_id_recipient.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_mail_recipient.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_medals_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_medals_graphic.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_notifications_200_ok.rb +319 -0
- data/lib/esi_client/models/get_characters_character_id_notifications_contacts_200_ok.rb +254 -0
- data/lib/esi_client/models/get_characters_character_id_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_opportunities_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_orders_200_ok.rb +6 -5
- data/lib/esi_client/models/get_characters_character_id_planets_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_planets_planet_id_content.rb +209 -0
- data/lib/esi_client/models/get_characters_character_id_planets_planet_id_extractor_details.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_planets_planet_id_factory_details.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_planets_planet_id_head.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_planets_planet_id_link.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_planets_planet_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_planets_planet_id_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_planets_planet_id_pin.rb +15 -2
- data/lib/esi_client/models/get_characters_character_id_planets_planet_id_route.rb +4 -3
- data/lib/esi_client/models/get_characters_character_id_portrait_not_found.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_portrait_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_search_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_ship_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_skillqueue_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_skills_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_skills_skill.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_standings_200_ok.rb +2 -1
- data/lib/esi_client/models/get_characters_character_id_wallet_journal_200_ok.rb +380 -0
- data/lib/esi_client/models/get_characters_character_id_wallet_journal_extra_info.rb +299 -0
- data/lib/esi_client/models/get_characters_character_id_wallet_transactions_200_ok.rb +329 -0
- data/lib/esi_client/models/get_characters_names_200_ok.rb +2 -1
- data/lib/esi_client/models/get_corporations_corporation_id_alliancehistory_200_ok.rb +20 -8
- data/lib/esi_client/models/get_corporations_corporation_id_assets_200_ok.rb +324 -0
- data/lib/esi_client/models/get_corporations_corporation_id_blueprints_200_ok.rb +426 -0
- data/lib/esi_client/models/get_corporations_corporation_id_bookmarks_200_ok.rb +297 -0
- data/lib/esi_client/models/get_corporations_corporation_id_bookmarks_coordinates.rb +224 -0
- data/lib/esi_client/models/get_corporations_corporation_id_bookmarks_folders_200_ok.rb +219 -0
- data/lib/esi_client/models/get_corporations_corporation_id_bookmarks_item.rb +209 -0
- data/lib/esi_client/models/get_corporations_corporation_id_contacts_200_ok.rb +277 -0
- data/lib/esi_client/models/get_corporations_corporation_id_containers_logs_200_ok.rb +391 -0
- data/lib/esi_client/models/get_corporations_corporation_id_contracts_200_ok.rb +511 -0
- data/lib/esi_client/models/get_corporations_corporation_id_contracts_contract_id_bids_200_ok.rb +239 -0
- data/lib/esi_client/models/get_corporations_corporation_id_contracts_contract_id_items_200_ok.rb +264 -0
- data/lib/esi_client/models/get_corporations_corporation_id_divisions_hangar.rb +240 -0
- data/lib/esi_client/models/get_corporations_corporation_id_divisions_ok.rb +203 -0
- data/lib/esi_client/models/get_corporations_corporation_id_divisions_wallet.rb +240 -0
- data/lib/esi_client/models/get_corporations_corporation_id_icons_not_found.rb +2 -1
- data/lib/esi_client/models/get_corporations_corporation_id_icons_ok.rb +2 -1
- data/lib/esi_client/models/get_corporations_corporation_id_industry_jobs_200_ok.rb +502 -0
- data/lib/esi_client/models/get_corporations_corporation_id_killmails_recent_200_ok.rb +209 -0
- data/lib/esi_client/models/get_corporations_corporation_id_members_200_ok.rb +2 -1
- data/lib/esi_client/models/get_corporations_corporation_id_membertracking_200_ok.rb +254 -0
- data/lib/esi_client/models/get_corporations_corporation_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_corporations_corporation_id_ok.rb +2 -1
- data/lib/esi_client/models/get_corporations_corporation_id_orders_200_ok.rb +477 -0
- data/lib/esi_client/models/get_corporations_corporation_id_roles_200_ok.rb +2 -1
- data/lib/esi_client/models/get_corporations_corporation_id_shareholders_200_ok.rb +257 -0
- data/lib/esi_client/models/get_corporations_corporation_id_standings_200_ok.rb +285 -0
- data/lib/esi_client/models/get_corporations_corporation_id_structures_200_ok.rb +2 -1
- data/lib/esi_client/models/get_corporations_corporation_id_structures_current_vul.rb +2 -1
- data/lib/esi_client/models/get_corporations_corporation_id_structures_next_vul.rb +2 -1
- data/lib/esi_client/models/get_corporations_corporation_id_structures_service.rb +2 -1
- data/lib/esi_client/models/get_corporations_corporation_id_titles_200_ok.rb +316 -0
- data/lib/esi_client/models/get_corporations_corporation_id_wallets_200_ok.rb +237 -0
- data/lib/esi_client/models/get_corporations_corporation_id_wallets_division_journal_200_ok.rb +380 -0
- data/lib/esi_client/models/get_corporations_corporation_id_wallets_division_journal_extra_info.rb +299 -0
- data/lib/esi_client/models/get_corporations_corporation_id_wallets_division_transactions_200_ok.rb +314 -0
- data/lib/esi_client/models/get_corporations_names_200_ok.rb +2 -1
- data/lib/esi_client/models/get_dogma_attributes_attribute_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_dogma_attributes_attribute_id_ok.rb +2 -1
- data/lib/esi_client/models/get_dogma_effects_effect_id_modifier.rb +13 -22
- data/lib/esi_client/models/get_dogma_effects_effect_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_dogma_effects_effect_id_ok.rb +2 -1
- data/lib/esi_client/models/get_fleets_fleet_id_members_200_ok.rb +2 -1
- data/lib/esi_client/models/get_fleets_fleet_id_members_not_found.rb +2 -1
- data/lib/esi_client/models/get_fleets_fleet_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_fleets_fleet_id_ok.rb +2 -1
- data/lib/esi_client/models/get_fleets_fleet_id_wings_200_ok.rb +2 -1
- data/lib/esi_client/models/get_fleets_fleet_id_wings_not_found.rb +2 -1
- data/lib/esi_client/models/get_fleets_fleet_id_wings_squad.rb +2 -1
- data/lib/esi_client/models/get_fw_leaderboards_active_total.rb +199 -0
- data/lib/esi_client/models/get_fw_leaderboards_active_total_1.rb +199 -0
- data/lib/esi_client/models/get_fw_leaderboards_characters_active_total.rb +199 -0
- data/lib/esi_client/models/get_fw_leaderboards_characters_active_total_1.rb +199 -0
- data/lib/esi_client/models/get_fw_leaderboards_characters_kills.rb +230 -0
- data/lib/esi_client/models/get_fw_leaderboards_characters_last_week.rb +199 -0
- data/lib/esi_client/models/get_fw_leaderboards_characters_last_week_1.rb +199 -0
- data/lib/esi_client/models/get_fw_leaderboards_characters_ok.rb +197 -0
- data/lib/esi_client/models/get_fw_leaderboards_characters_victory_points.rb +230 -0
- data/lib/esi_client/models/get_fw_leaderboards_characters_yesterday.rb +199 -0
- data/lib/esi_client/models/get_fw_leaderboards_characters_yesterday_1.rb +199 -0
- data/lib/esi_client/models/get_fw_leaderboards_corporations_active_total.rb +199 -0
- data/lib/esi_client/models/get_fw_leaderboards_corporations_active_total_1.rb +199 -0
- data/lib/esi_client/models/get_fw_leaderboards_corporations_kills.rb +230 -0
- data/lib/esi_client/models/get_fw_leaderboards_corporations_last_week.rb +199 -0
- data/lib/esi_client/models/get_fw_leaderboards_corporations_last_week_1.rb +199 -0
- data/lib/esi_client/models/get_fw_leaderboards_corporations_ok.rb +197 -0
- data/lib/esi_client/models/get_fw_leaderboards_corporations_victory_points.rb +230 -0
- data/lib/esi_client/models/get_fw_leaderboards_corporations_yesterday.rb +199 -0
- data/lib/esi_client/models/get_fw_leaderboards_corporations_yesterday_1.rb +199 -0
- data/lib/esi_client/models/get_fw_leaderboards_kills.rb +230 -0
- data/lib/esi_client/models/get_fw_leaderboards_last_week.rb +199 -0
- data/lib/esi_client/models/get_fw_leaderboards_last_week_1.rb +199 -0
- data/lib/esi_client/models/get_fw_leaderboards_ok.rb +197 -0
- data/lib/esi_client/models/get_fw_leaderboards_victory_points.rb +230 -0
- data/lib/esi_client/models/get_fw_leaderboards_yesterday.rb +199 -0
- data/lib/esi_client/models/get_fw_leaderboards_yesterday_1.rb +199 -0
- data/lib/esi_client/models/get_fw_stats_200_ok.rb +242 -0
- data/lib/esi_client/models/get_fw_stats_kills.rb +224 -0
- data/lib/esi_client/models/get_fw_stats_victory_points.rb +224 -0
- data/lib/esi_client/models/get_fw_systems_200_ok.rb +269 -0
- data/lib/esi_client/models/get_fw_wars_200_ok.rb +209 -0
- data/lib/esi_client/models/get_incursions_200_ok.rb +2 -1
- data/lib/esi_client/models/get_industry_facilities_200_ok.rb +2 -1
- data/lib/esi_client/models/get_industry_systems_200_ok.rb +2 -1
- data/lib/esi_client/models/get_industry_systems_cost_indice.rb +2 -1
- data/lib/esi_client/models/get_insurance_prices_200_ok.rb +2 -1
- data/lib/esi_client/models/get_insurance_prices_level.rb +2 -1
- data/lib/esi_client/models/get_killmails_killmail_id_killmail_hash_attacker.rb +2 -1
- data/lib/esi_client/models/get_killmails_killmail_id_killmail_hash_item.rb +2 -1
- data/lib/esi_client/models/get_killmails_killmail_id_killmail_hash_item_1.rb +2 -1
- data/lib/esi_client/models/get_killmails_killmail_id_killmail_hash_ok.rb +2 -1
- data/lib/esi_client/models/get_killmails_killmail_id_killmail_hash_position.rb +2 -1
- data/lib/esi_client/models/get_killmails_killmail_id_killmail_hash_unprocessable_entity.rb +2 -1
- data/lib/esi_client/models/get_killmails_killmail_id_killmail_hash_victim.rb +2 -1
- data/lib/esi_client/models/get_loyalty_stores_corporation_id_offers_200_ok.rb +2 -1
- data/lib/esi_client/models/get_loyalty_stores_corporation_id_offers_required_item.rb +2 -1
- data/lib/esi_client/models/get_markets_groups_market_group_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_markets_groups_market_group_id_ok.rb +2 -1
- data/lib/esi_client/models/get_markets_prices_200_ok.rb +2 -1
- data/lib/esi_client/models/get_markets_region_id_history_200_ok.rb +2 -1
- data/lib/esi_client/models/get_markets_region_id_history_unprocessable_entity.rb +2 -1
- data/lib/esi_client/models/get_markets_region_id_orders_200_ok.rb +2 -1
- data/lib/esi_client/models/get_markets_region_id_orders_unprocessable_entity.rb +2 -1
- data/lib/esi_client/models/get_markets_structures_structure_id_200_ok.rb +2 -1
- data/lib/esi_client/models/get_opportunities_groups_group_id_ok.rb +2 -1
- data/lib/esi_client/models/get_opportunities_tasks_task_id_ok.rb +2 -1
- data/lib/esi_client/models/get_route_origin_destination_not_found.rb +2 -1
- data/lib/esi_client/models/get_search_ok.rb +2 -1
- data/lib/esi_client/models/get_sovereignty_campaigns_200_ok.rb +2 -1
- data/lib/esi_client/models/get_sovereignty_campaigns_participant.rb +2 -1
- data/lib/esi_client/models/get_sovereignty_map_200_ok.rb +2 -1
- data/lib/esi_client/models/get_sovereignty_structures_200_ok.rb +2 -1
- data/lib/esi_client/models/get_status_ok.rb +2 -1
- data/lib/esi_client/models/get_universe_bloodlines_200_ok.rb +2 -1
- data/lib/esi_client/models/get_universe_categories_category_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_universe_categories_category_id_ok.rb +2 -1
- data/lib/esi_client/models/get_universe_constellations_constellation_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_universe_constellations_constellation_id_ok.rb +2 -1
- data/lib/esi_client/models/get_universe_constellations_constellation_id_position.rb +2 -1
- data/lib/esi_client/models/get_universe_factions_200_ok.rb +2 -1
- data/lib/esi_client/models/get_universe_graphics_graphic_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_universe_graphics_graphic_id_ok.rb +2 -1
- data/lib/esi_client/models/get_universe_groups_group_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_universe_groups_group_id_ok.rb +2 -1
- data/lib/esi_client/models/get_universe_moons_moon_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_universe_moons_moon_id_ok.rb +2 -1
- data/lib/esi_client/models/get_universe_moons_moon_id_position.rb +2 -1
- data/lib/esi_client/models/get_universe_planets_planet_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_universe_planets_planet_id_ok.rb +2 -1
- data/lib/esi_client/models/get_universe_planets_planet_id_position.rb +2 -1
- data/lib/esi_client/models/get_universe_races_200_ok.rb +2 -1
- data/lib/esi_client/models/get_universe_regions_region_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_universe_regions_region_id_ok.rb +2 -1
- data/lib/esi_client/models/get_universe_schematics_schematic_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_universe_schematics_schematic_id_ok.rb +2 -1
- data/lib/esi_client/models/get_universe_stargates_stargate_id_destination.rb +2 -1
- data/lib/esi_client/models/get_universe_stargates_stargate_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_universe_stargates_stargate_id_ok.rb +2 -1
- data/lib/esi_client/models/get_universe_stargates_stargate_id_position.rb +2 -1
- data/lib/esi_client/models/get_universe_stars_star_id_ok.rb +332 -0
- data/lib/esi_client/models/get_universe_stations_station_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_universe_stations_station_id_ok.rb +2 -1
- data/lib/esi_client/models/get_universe_stations_station_id_position.rb +2 -1
- data/lib/esi_client/models/get_universe_structures_structure_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_universe_structures_structure_id_ok.rb +2 -1
- data/lib/esi_client/models/get_universe_structures_structure_id_position.rb +2 -1
- data/lib/esi_client/models/get_universe_system_jumps_200_ok.rb +2 -1
- data/lib/esi_client/models/get_universe_system_kills_200_ok.rb +3 -2
- data/lib/esi_client/models/get_universe_systems_system_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_universe_systems_system_id_ok.rb +28 -5
- data/lib/esi_client/models/get_universe_systems_system_id_planet.rb +2 -1
- data/lib/esi_client/models/get_universe_systems_system_id_position.rb +2 -1
- data/lib/esi_client/models/get_universe_types_type_id_dogma_attribute.rb +2 -1
- data/lib/esi_client/models/get_universe_types_type_id_dogma_effect.rb +2 -1
- data/lib/esi_client/models/get_universe_types_type_id_not_found.rb +2 -1
- data/lib/esi_client/models/get_universe_types_type_id_ok.rb +23 -2
- data/lib/esi_client/models/get_wars_war_id_aggressor.rb +2 -1
- data/lib/esi_client/models/get_wars_war_id_ally.rb +2 -1
- data/lib/esi_client/models/get_wars_war_id_defender.rb +2 -1
- data/lib/esi_client/models/get_wars_war_id_killmails_200_ok.rb +2 -1
- data/lib/esi_client/models/get_wars_war_id_killmails_unprocessable_entity.rb +2 -1
- data/lib/esi_client/models/get_wars_war_id_ok.rb +2 -1
- data/lib/esi_client/models/get_wars_war_id_unprocessable_entity.rb +2 -1
- data/lib/esi_client/models/internal_server_error.rb +194 -0
- data/lib/esi_client/models/post_characters_affiliation_200_ok.rb +2 -1
- data/lib/esi_client/models/post_characters_affiliation_not_found.rb +189 -0
- data/lib/esi_client/models/post_characters_character_id_assets_locations_200_ok.rb +239 -0
- data/lib/esi_client/models/post_characters_character_id_assets_names_200_ok.rb +209 -0
- data/lib/esi_client/models/post_characters_character_id_cspa_characters.rb +2 -1
- data/lib/esi_client/models/post_characters_character_id_cspa_created.rb +2 -1
- data/lib/esi_client/models/post_characters_character_id_fittings_created.rb +2 -1
- data/lib/esi_client/models/post_characters_character_id_fittings_fitting.rb +2 -1
- data/lib/esi_client/models/post_characters_character_id_fittings_item.rb +2 -1
- data/lib/esi_client/models/post_characters_character_id_mail_bad_request.rb +2 -1
- data/lib/esi_client/models/post_characters_character_id_mail_labels_label.rb +5 -4
- data/lib/esi_client/models/post_characters_character_id_mail_mail.rb +2 -1
- data/lib/esi_client/models/post_characters_character_id_mail_recipient.rb +2 -1
- data/lib/esi_client/models/post_corporations_corporation_id_assets_locations_200_ok.rb +239 -0
- data/lib/esi_client/models/post_corporations_corporation_id_assets_names_200_ok.rb +209 -0
- data/lib/esi_client/models/post_fleets_fleet_id_members_invitation.rb +3 -2
- data/lib/esi_client/models/post_fleets_fleet_id_members_not_found.rb +2 -1
- data/lib/esi_client/models/post_fleets_fleet_id_members_unprocessable_entity.rb +2 -1
- data/lib/esi_client/models/post_fleets_fleet_id_wings_created.rb +2 -1
- data/lib/esi_client/models/post_fleets_fleet_id_wings_not_found.rb +2 -1
- data/lib/esi_client/models/post_fleets_fleet_id_wings_wing_id_squads_created.rb +2 -1
- data/lib/esi_client/models/post_fleets_fleet_id_wings_wing_id_squads_not_found.rb +2 -1
- data/lib/esi_client/models/post_ui_openwindow_newmail_new_mail.rb +2 -1
- data/lib/esi_client/models/post_ui_openwindow_newmail_unprocessable_entity.rb +2 -1
- data/lib/esi_client/models/post_universe_names_200_ok.rb +2 -1
- data/lib/esi_client/models/post_universe_names_not_found.rb +2 -1
- data/lib/esi_client/models/put_characters_character_id_calendar_event_id_response.rb +2 -1
- data/lib/esi_client/models/put_characters_character_id_mail_mail_id_bad_request.rb +2 -1
- data/lib/esi_client/models/put_characters_character_id_mail_mail_id_contents.rb +2 -1
- data/lib/esi_client/models/put_corporations_corporation_id_structures_structure_id_new_schedule.rb +2 -1
- data/lib/esi_client/models/put_fleets_fleet_id_bad_request.rb +2 -1
- data/lib/esi_client/models/put_fleets_fleet_id_members_member_id_movement.rb +3 -2
- data/lib/esi_client/models/put_fleets_fleet_id_members_member_id_not_found.rb +2 -1
- data/lib/esi_client/models/put_fleets_fleet_id_members_member_id_unprocessable_entity.rb +2 -1
- data/lib/esi_client/models/put_fleets_fleet_id_new_settings.rb +2 -1
- data/lib/esi_client/models/put_fleets_fleet_id_not_found.rb +2 -1
- data/lib/esi_client/models/put_fleets_fleet_id_squads_squad_id_naming.rb +2 -1
- data/lib/esi_client/models/put_fleets_fleet_id_squads_squad_id_not_found.rb +2 -1
- data/lib/esi_client/models/put_fleets_fleet_id_wings_wing_id_naming.rb +2 -1
- data/lib/esi_client/models/put_fleets_fleet_id_wings_wing_id_not_found.rb +2 -1
- data/lib/esi_client/version.rb +3 -2
- data/spec/api/contracts_api_spec.rb +136 -0
- data/spec/api/faction_warfare_api_spec.rb +119 -0
- data/spec/models/forbidden_spec.rb +48 -0
- data/spec/models/get_characters_character_id_attributes_ok_spec.rb +84 -0
- data/spec/models/get_characters_character_id_calendar_event_id_attendees_200_ok_spec.rb +52 -0
- data/spec/models/get_characters_character_id_contracts_200_ok_spec.rb +180 -0
- data/spec/models/get_characters_character_id_contracts_contract_id_bids_200_ok_spec.rb +60 -0
- data/spec/models/get_characters_character_id_contracts_contract_id_items_200_ok_spec.rb +72 -0
- data/spec/models/get_characters_character_id_fatigue_ok_spec.rb +54 -0
- data/spec/models/get_characters_character_id_fleet_not_found_spec.rb +42 -0
- data/spec/models/get_characters_character_id_fleet_ok_spec.rb +64 -0
- data/spec/models/get_characters_character_id_notifications_200_ok_spec.rb +86 -0
- data/spec/models/get_characters_character_id_notifications_contacts_200_ok_spec.rb +66 -0
- data/spec/models/get_characters_character_id_planets_planet_id_content_spec.rb +48 -0
- data/spec/models/get_characters_character_id_wallet_journal_200_ok_spec.rb +126 -0
- data/spec/models/get_characters_character_id_wallet_journal_extra_info_spec.rb +108 -0
- data/spec/models/get_characters_character_id_wallet_transactions_200_ok_spec.rb +96 -0
- data/spec/models/get_corporations_corporation_id_assets_200_ok_spec.rb +86 -0
- data/spec/models/get_corporations_corporation_id_blueprints_200_ok_spec.rb +88 -0
- data/spec/models/get_corporations_corporation_id_bookmarks_200_ok_spec.rb +90 -0
- data/spec/models/get_corporations_corporation_id_bookmarks_coordinates_spec.rb +54 -0
- data/spec/models/get_corporations_corporation_id_bookmarks_folders_200_ok_spec.rb +54 -0
- data/spec/models/get_corporations_corporation_id_bookmarks_item_spec.rb +48 -0
- data/spec/models/get_corporations_corporation_id_contacts_200_ok_spec.rb +70 -0
- data/spec/models/get_corporations_corporation_id_containers_logs_200_ok_spec.rb +120 -0
- data/spec/models/get_corporations_corporation_id_contracts_200_ok_spec.rb +180 -0
- data/spec/models/get_corporations_corporation_id_contracts_contract_id_bids_200_ok_spec.rb +60 -0
- data/spec/models/get_corporations_corporation_id_contracts_contract_id_items_200_ok_spec.rb +72 -0
- data/spec/models/get_corporations_corporation_id_divisions_hangar_spec.rb +48 -0
- data/spec/models/get_corporations_corporation_id_divisions_ok_spec.rb +48 -0
- data/spec/models/get_corporations_corporation_id_divisions_wallet_spec.rb +48 -0
- data/spec/models/get_corporations_corporation_id_industry_jobs_200_ok_spec.rb +172 -0
- data/spec/models/get_corporations_corporation_id_killmails_recent_200_ok_spec.rb +48 -0
- data/spec/models/get_corporations_corporation_id_membertracking_200_ok_spec.rb +78 -0
- data/spec/models/get_corporations_corporation_id_orders_200_ok_spec.rb +134 -0
- data/spec/models/get_corporations_corporation_id_shareholders_200_ok_spec.rb +58 -0
- data/spec/models/get_corporations_corporation_id_standings_200_ok_spec.rb +58 -0
- data/spec/models/get_corporations_corporation_id_titles_200_ok_spec.rb +128 -0
- data/spec/models/get_corporations_corporation_id_wallets_200_ok_spec.rb +48 -0
- data/spec/models/get_corporations_corporation_id_wallets_division_journal_200_ok_spec.rb +126 -0
- data/spec/models/get_corporations_corporation_id_wallets_division_journal_extra_info_spec.rb +108 -0
- data/spec/models/get_corporations_corporation_id_wallets_division_transactions_200_ok_spec.rb +90 -0
- data/spec/models/get_fw_leaderboards_active_total_1_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_active_total_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_characters_active_total_1_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_characters_active_total_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_characters_kills_spec.rb +54 -0
- data/spec/models/get_fw_leaderboards_characters_last_week_1_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_characters_last_week_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_characters_ok_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_characters_victory_points_spec.rb +54 -0
- data/spec/models/get_fw_leaderboards_characters_yesterday_1_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_characters_yesterday_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_corporations_active_total_1_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_corporations_active_total_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_corporations_kills_spec.rb +54 -0
- data/spec/models/get_fw_leaderboards_corporations_last_week_1_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_corporations_last_week_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_corporations_ok_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_corporations_victory_points_spec.rb +54 -0
- data/spec/models/get_fw_leaderboards_corporations_yesterday_1_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_corporations_yesterday_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_kills_spec.rb +54 -0
- data/spec/models/get_fw_leaderboards_last_week_1_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_last_week_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_ok_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_victory_points_spec.rb +54 -0
- data/spec/models/get_fw_leaderboards_yesterday_1_spec.rb +48 -0
- data/spec/models/get_fw_leaderboards_yesterday_spec.rb +48 -0
- data/spec/models/get_fw_stats_200_ok_spec.rb +66 -0
- data/spec/models/get_fw_stats_kills_spec.rb +54 -0
- data/spec/models/get_fw_stats_victory_points_spec.rb +54 -0
- data/spec/models/get_fw_systems_200_ok_spec.rb +72 -0
- data/spec/models/get_fw_wars_200_ok_spec.rb +48 -0
- data/spec/models/get_universe_stars_star_id_ok_spec.rb +88 -0
- data/spec/models/internal_server_error_spec.rb +42 -0
- data/spec/models/post_characters_affiliation_not_found_spec.rb +42 -0
- data/spec/models/post_characters_character_id_assets_locations_200_ok_spec.rb +60 -0
- data/spec/models/post_characters_character_id_assets_names_200_ok_spec.rb +48 -0
- data/spec/models/post_corporations_corporation_id_assets_locations_200_ok_spec.rb +60 -0
- data/spec/models/post_corporations_corporation_id_assets_names_200_ok_spec.rb +48 -0
- metadata +327 -2
@@ -0,0 +1,391 @@
|
|
1
|
+
=begin
|
2
|
+
#EVE Swagger Interface
|
3
|
+
|
4
|
+
#An OpenAPI for EVE Online
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.6.2
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module ESIClient
|
16
|
+
# 200 ok object
|
17
|
+
class GetCorporationsCorporationIdContainersLogs200Ok
|
18
|
+
# action string
|
19
|
+
attr_accessor :action
|
20
|
+
|
21
|
+
# ID of the character who performed the action.
|
22
|
+
attr_accessor :character_id
|
23
|
+
|
24
|
+
# ID of the container
|
25
|
+
attr_accessor :container_id
|
26
|
+
|
27
|
+
# Type ID of the container
|
28
|
+
attr_accessor :container_type_id
|
29
|
+
|
30
|
+
# location_flag string
|
31
|
+
attr_accessor :location_flag
|
32
|
+
|
33
|
+
# location_id integer
|
34
|
+
attr_accessor :location_id
|
35
|
+
|
36
|
+
# Timestamp when this log was created
|
37
|
+
attr_accessor :logged_at
|
38
|
+
|
39
|
+
# new_config_bitmask integer
|
40
|
+
attr_accessor :new_config_bitmask
|
41
|
+
|
42
|
+
# old_config_bitmask integer
|
43
|
+
attr_accessor :old_config_bitmask
|
44
|
+
|
45
|
+
# Type of password set if action is of type SetPassword or EnterPassword
|
46
|
+
attr_accessor :password_type
|
47
|
+
|
48
|
+
# Quantity of the item being acted upon
|
49
|
+
attr_accessor :quantity
|
50
|
+
|
51
|
+
# Type ID of the item being acted upon
|
52
|
+
attr_accessor :type_id
|
53
|
+
|
54
|
+
class EnumAttributeValidator
|
55
|
+
attr_reader :datatype
|
56
|
+
attr_reader :allowable_values
|
57
|
+
|
58
|
+
def initialize(datatype, allowable_values)
|
59
|
+
@allowable_values = allowable_values.map do |value|
|
60
|
+
case datatype.to_s
|
61
|
+
when /Integer/i
|
62
|
+
value.to_i
|
63
|
+
when /Float/i
|
64
|
+
value.to_f
|
65
|
+
else
|
66
|
+
value
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
def valid?(value)
|
72
|
+
!value || allowable_values.include?(value)
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
77
|
+
def self.attribute_map
|
78
|
+
{
|
79
|
+
:'action' => :'action',
|
80
|
+
:'character_id' => :'character_id',
|
81
|
+
:'container_id' => :'container_id',
|
82
|
+
:'container_type_id' => :'container_type_id',
|
83
|
+
:'location_flag' => :'location_flag',
|
84
|
+
:'location_id' => :'location_id',
|
85
|
+
:'logged_at' => :'logged_at',
|
86
|
+
:'new_config_bitmask' => :'new_config_bitmask',
|
87
|
+
:'old_config_bitmask' => :'old_config_bitmask',
|
88
|
+
:'password_type' => :'password_type',
|
89
|
+
:'quantity' => :'quantity',
|
90
|
+
:'type_id' => :'type_id'
|
91
|
+
}
|
92
|
+
end
|
93
|
+
|
94
|
+
# Attribute type mapping.
|
95
|
+
def self.swagger_types
|
96
|
+
{
|
97
|
+
:'action' => :'String',
|
98
|
+
:'character_id' => :'Integer',
|
99
|
+
:'container_id' => :'Integer',
|
100
|
+
:'container_type_id' => :'Integer',
|
101
|
+
:'location_flag' => :'String',
|
102
|
+
:'location_id' => :'Integer',
|
103
|
+
:'logged_at' => :'DateTime',
|
104
|
+
:'new_config_bitmask' => :'Integer',
|
105
|
+
:'old_config_bitmask' => :'Integer',
|
106
|
+
:'password_type' => :'String',
|
107
|
+
:'quantity' => :'Integer',
|
108
|
+
:'type_id' => :'Integer'
|
109
|
+
}
|
110
|
+
end
|
111
|
+
|
112
|
+
# Initializes the object
|
113
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
114
|
+
def initialize(attributes = {})
|
115
|
+
return unless attributes.is_a?(Hash)
|
116
|
+
|
117
|
+
# convert string to symbol for hash key
|
118
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
119
|
+
|
120
|
+
if attributes.has_key?(:'action')
|
121
|
+
self.action = attributes[:'action']
|
122
|
+
end
|
123
|
+
|
124
|
+
if attributes.has_key?(:'character_id')
|
125
|
+
self.character_id = attributes[:'character_id']
|
126
|
+
end
|
127
|
+
|
128
|
+
if attributes.has_key?(:'container_id')
|
129
|
+
self.container_id = attributes[:'container_id']
|
130
|
+
end
|
131
|
+
|
132
|
+
if attributes.has_key?(:'container_type_id')
|
133
|
+
self.container_type_id = attributes[:'container_type_id']
|
134
|
+
end
|
135
|
+
|
136
|
+
if attributes.has_key?(:'location_flag')
|
137
|
+
self.location_flag = attributes[:'location_flag']
|
138
|
+
end
|
139
|
+
|
140
|
+
if attributes.has_key?(:'location_id')
|
141
|
+
self.location_id = attributes[:'location_id']
|
142
|
+
end
|
143
|
+
|
144
|
+
if attributes.has_key?(:'logged_at')
|
145
|
+
self.logged_at = attributes[:'logged_at']
|
146
|
+
end
|
147
|
+
|
148
|
+
if attributes.has_key?(:'new_config_bitmask')
|
149
|
+
self.new_config_bitmask = attributes[:'new_config_bitmask']
|
150
|
+
end
|
151
|
+
|
152
|
+
if attributes.has_key?(:'old_config_bitmask')
|
153
|
+
self.old_config_bitmask = attributes[:'old_config_bitmask']
|
154
|
+
end
|
155
|
+
|
156
|
+
if attributes.has_key?(:'password_type')
|
157
|
+
self.password_type = attributes[:'password_type']
|
158
|
+
end
|
159
|
+
|
160
|
+
if attributes.has_key?(:'quantity')
|
161
|
+
self.quantity = attributes[:'quantity']
|
162
|
+
end
|
163
|
+
|
164
|
+
if attributes.has_key?(:'type_id')
|
165
|
+
self.type_id = attributes[:'type_id']
|
166
|
+
end
|
167
|
+
|
168
|
+
end
|
169
|
+
|
170
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
171
|
+
# @return Array for valid properies with the reasons
|
172
|
+
def list_invalid_properties
|
173
|
+
invalid_properties = Array.new
|
174
|
+
if @action.nil?
|
175
|
+
invalid_properties.push("invalid value for 'action', action cannot be nil.")
|
176
|
+
end
|
177
|
+
|
178
|
+
if @character_id.nil?
|
179
|
+
invalid_properties.push("invalid value for 'character_id', character_id cannot be nil.")
|
180
|
+
end
|
181
|
+
|
182
|
+
if @container_id.nil?
|
183
|
+
invalid_properties.push("invalid value for 'container_id', container_id cannot be nil.")
|
184
|
+
end
|
185
|
+
|
186
|
+
if @container_type_id.nil?
|
187
|
+
invalid_properties.push("invalid value for 'container_type_id', container_type_id cannot be nil.")
|
188
|
+
end
|
189
|
+
|
190
|
+
if @location_flag.nil?
|
191
|
+
invalid_properties.push("invalid value for 'location_flag', location_flag cannot be nil.")
|
192
|
+
end
|
193
|
+
|
194
|
+
if @location_id.nil?
|
195
|
+
invalid_properties.push("invalid value for 'location_id', location_id cannot be nil.")
|
196
|
+
end
|
197
|
+
|
198
|
+
if @logged_at.nil?
|
199
|
+
invalid_properties.push("invalid value for 'logged_at', logged_at cannot be nil.")
|
200
|
+
end
|
201
|
+
|
202
|
+
return invalid_properties
|
203
|
+
end
|
204
|
+
|
205
|
+
# Check to see if the all the properties in the model are valid
|
206
|
+
# @return true if the model is valid
|
207
|
+
def valid?
|
208
|
+
return false if @action.nil?
|
209
|
+
action_validator = EnumAttributeValidator.new('String', ["add", "assemble", "configure", "enter_password", "lock", "move", "repackage", "set_name", "set_password", "unlock"])
|
210
|
+
return false unless action_validator.valid?(@action)
|
211
|
+
return false if @character_id.nil?
|
212
|
+
return false if @container_id.nil?
|
213
|
+
return false if @container_type_id.nil?
|
214
|
+
return false if @location_flag.nil?
|
215
|
+
location_flag_validator = EnumAttributeValidator.new('String', ["AssetSafety", "AutoFit", "Bonus", "Booster", "BoosterBay", "Capsule", "Cargo", "CorpDeliveries", "CorpSAG1", "CorpSAG2", "CorpSAG3", "CorpSAG4", "CorpSAG5", "CorpSAG6", "CorpSAG7", "CrateLoot", "Deliveries", "DroneBay", "DustBattle", "DustDatabank", "FighterBay", "FighterTube0", "FighterTube1", "FighterTube2", "FighterTube3", "FighterTube4", "FleetHangar", "Hangar", "HangarAll", "HiSlot0", "HiSlot1", "HiSlot2", "HiSlot3", "HiSlot4", "HiSlot5", "HiSlot6", "HiSlot7", "HiddenModifers", "Implant", "Impounded", "JunkyardReprocessed", "JunkyardTrashed", "LoSlot0", "LoSlot1", "LoSlot2", "LoSlot3", "LoSlot4", "LoSlot5", "LoSlot6", "LoSlot7", "Locked", "MedSlot0", "MedSlot1", "MedSlot2", "MedSlot3", "MedSlot4", "MedSlot5", "MedSlot6", "MedSlot7", "OfficeFolder", "Pilot", "PlanetSurface", "QuafeBay", "Reward", "RigSlot0", "RigSlot1", "RigSlot2", "RigSlot3", "RigSlot4", "RigSlot5", "RigSlot6", "RigSlot7", "SecondaryStorage", "ServiceSlot0", "ServiceSlot1", "ServiceSlot2", "ServiceSlot3", "ServiceSlot4", "ServiceSlot5", "ServiceSlot6", "ServiceSlot7", "ShipHangar", "ShipOffline", "Skill", "SkillInTraining", "SpecializedAmmoHold", "SpecializedCommandCenterHold", "SpecializedFuelBay", "SpecializedGasHold", "SpecializedIndustrialShipHold", "SpecializedLargeShipHold", "SpecializedMaterialBay", "SpecializedMediumShipHold", "SpecializedMineralHold", "SpecializedOreHold", "SpecializedPlanetaryCommoditiesHold", "SpecializedSalvageHold", "SpecializedShipHold", "SpecializedSmallShipHold", "StructureActive", "StructureFuel", "StructureInactive", "StructureOffline", "SubSystemSlot0", "SubSystemSlot1", "SubSystemSlot2", "SubSystemSlot3", "SubSystemSlot4", "SubSystemSlot5", "SubSystemSlot6", "SubSystemSlot7", "SubsystemBay", "Unlocked", "Wallet", "Wardrobe"])
|
216
|
+
return false unless location_flag_validator.valid?(@location_flag)
|
217
|
+
return false if @location_id.nil?
|
218
|
+
return false if @logged_at.nil?
|
219
|
+
password_type_validator = EnumAttributeValidator.new('String', ["config", "general"])
|
220
|
+
return false unless password_type_validator.valid?(@password_type)
|
221
|
+
return true
|
222
|
+
end
|
223
|
+
|
224
|
+
# Custom attribute writer method checking allowed values (enum).
|
225
|
+
# @param [Object] action Object to be assigned
|
226
|
+
def action=(action)
|
227
|
+
validator = EnumAttributeValidator.new('String', ["add", "assemble", "configure", "enter_password", "lock", "move", "repackage", "set_name", "set_password", "unlock"])
|
228
|
+
unless validator.valid?(action)
|
229
|
+
fail ArgumentError, "invalid value for 'action', must be one of #{validator.allowable_values}."
|
230
|
+
end
|
231
|
+
@action = action
|
232
|
+
end
|
233
|
+
|
234
|
+
# Custom attribute writer method checking allowed values (enum).
|
235
|
+
# @param [Object] location_flag Object to be assigned
|
236
|
+
def location_flag=(location_flag)
|
237
|
+
validator = EnumAttributeValidator.new('String', ["AssetSafety", "AutoFit", "Bonus", "Booster", "BoosterBay", "Capsule", "Cargo", "CorpDeliveries", "CorpSAG1", "CorpSAG2", "CorpSAG3", "CorpSAG4", "CorpSAG5", "CorpSAG6", "CorpSAG7", "CrateLoot", "Deliveries", "DroneBay", "DustBattle", "DustDatabank", "FighterBay", "FighterTube0", "FighterTube1", "FighterTube2", "FighterTube3", "FighterTube4", "FleetHangar", "Hangar", "HangarAll", "HiSlot0", "HiSlot1", "HiSlot2", "HiSlot3", "HiSlot4", "HiSlot5", "HiSlot6", "HiSlot7", "HiddenModifers", "Implant", "Impounded", "JunkyardReprocessed", "JunkyardTrashed", "LoSlot0", "LoSlot1", "LoSlot2", "LoSlot3", "LoSlot4", "LoSlot5", "LoSlot6", "LoSlot7", "Locked", "MedSlot0", "MedSlot1", "MedSlot2", "MedSlot3", "MedSlot4", "MedSlot5", "MedSlot6", "MedSlot7", "OfficeFolder", "Pilot", "PlanetSurface", "QuafeBay", "Reward", "RigSlot0", "RigSlot1", "RigSlot2", "RigSlot3", "RigSlot4", "RigSlot5", "RigSlot6", "RigSlot7", "SecondaryStorage", "ServiceSlot0", "ServiceSlot1", "ServiceSlot2", "ServiceSlot3", "ServiceSlot4", "ServiceSlot5", "ServiceSlot6", "ServiceSlot7", "ShipHangar", "ShipOffline", "Skill", "SkillInTraining", "SpecializedAmmoHold", "SpecializedCommandCenterHold", "SpecializedFuelBay", "SpecializedGasHold", "SpecializedIndustrialShipHold", "SpecializedLargeShipHold", "SpecializedMaterialBay", "SpecializedMediumShipHold", "SpecializedMineralHold", "SpecializedOreHold", "SpecializedPlanetaryCommoditiesHold", "SpecializedSalvageHold", "SpecializedShipHold", "SpecializedSmallShipHold", "StructureActive", "StructureFuel", "StructureInactive", "StructureOffline", "SubSystemSlot0", "SubSystemSlot1", "SubSystemSlot2", "SubSystemSlot3", "SubSystemSlot4", "SubSystemSlot5", "SubSystemSlot6", "SubSystemSlot7", "SubsystemBay", "Unlocked", "Wallet", "Wardrobe"])
|
238
|
+
unless validator.valid?(location_flag)
|
239
|
+
fail ArgumentError, "invalid value for 'location_flag', must be one of #{validator.allowable_values}."
|
240
|
+
end
|
241
|
+
@location_flag = location_flag
|
242
|
+
end
|
243
|
+
|
244
|
+
# Custom attribute writer method checking allowed values (enum).
|
245
|
+
# @param [Object] password_type Object to be assigned
|
246
|
+
def password_type=(password_type)
|
247
|
+
validator = EnumAttributeValidator.new('String', ["config", "general"])
|
248
|
+
unless validator.valid?(password_type)
|
249
|
+
fail ArgumentError, "invalid value for 'password_type', must be one of #{validator.allowable_values}."
|
250
|
+
end
|
251
|
+
@password_type = password_type
|
252
|
+
end
|
253
|
+
|
254
|
+
# Checks equality by comparing each attribute.
|
255
|
+
# @param [Object] Object to be compared
|
256
|
+
def ==(o)
|
257
|
+
return true if self.equal?(o)
|
258
|
+
self.class == o.class &&
|
259
|
+
action == o.action &&
|
260
|
+
character_id == o.character_id &&
|
261
|
+
container_id == o.container_id &&
|
262
|
+
container_type_id == o.container_type_id &&
|
263
|
+
location_flag == o.location_flag &&
|
264
|
+
location_id == o.location_id &&
|
265
|
+
logged_at == o.logged_at &&
|
266
|
+
new_config_bitmask == o.new_config_bitmask &&
|
267
|
+
old_config_bitmask == o.old_config_bitmask &&
|
268
|
+
password_type == o.password_type &&
|
269
|
+
quantity == o.quantity &&
|
270
|
+
type_id == o.type_id
|
271
|
+
end
|
272
|
+
|
273
|
+
# @see the `==` method
|
274
|
+
# @param [Object] Object to be compared
|
275
|
+
def eql?(o)
|
276
|
+
self == o
|
277
|
+
end
|
278
|
+
|
279
|
+
# Calculates hash code according to all attributes.
|
280
|
+
# @return [Fixnum] Hash code
|
281
|
+
def hash
|
282
|
+
[action, character_id, container_id, container_type_id, location_flag, location_id, logged_at, new_config_bitmask, old_config_bitmask, password_type, quantity, type_id].hash
|
283
|
+
end
|
284
|
+
|
285
|
+
# Builds the object from hash
|
286
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
287
|
+
# @return [Object] Returns the model itself
|
288
|
+
def build_from_hash(attributes)
|
289
|
+
return nil unless attributes.is_a?(Hash)
|
290
|
+
self.class.swagger_types.each_pair do |key, type|
|
291
|
+
if type =~ /\AArray<(.*)>/i
|
292
|
+
# check to ensure the input is an array given that the the attribute
|
293
|
+
# is documented as an array but the input is not
|
294
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
295
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
296
|
+
end
|
297
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
298
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
299
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
300
|
+
end
|
301
|
+
|
302
|
+
self
|
303
|
+
end
|
304
|
+
|
305
|
+
# Deserializes the data based on type
|
306
|
+
# @param string type Data type
|
307
|
+
# @param string value Value to be deserialized
|
308
|
+
# @return [Object] Deserialized data
|
309
|
+
def _deserialize(type, value)
|
310
|
+
case type.to_sym
|
311
|
+
when :DateTime
|
312
|
+
DateTime.parse(value)
|
313
|
+
when :Date
|
314
|
+
Date.parse(value)
|
315
|
+
when :String
|
316
|
+
value.to_s
|
317
|
+
when :Integer
|
318
|
+
value.to_i
|
319
|
+
when :Float
|
320
|
+
value.to_f
|
321
|
+
when :BOOLEAN
|
322
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
323
|
+
true
|
324
|
+
else
|
325
|
+
false
|
326
|
+
end
|
327
|
+
when :Object
|
328
|
+
# generic object (usually a Hash), return directly
|
329
|
+
value
|
330
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
331
|
+
inner_type = Regexp.last_match[:inner_type]
|
332
|
+
value.map { |v| _deserialize(inner_type, v) }
|
333
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
334
|
+
k_type = Regexp.last_match[:k_type]
|
335
|
+
v_type = Regexp.last_match[:v_type]
|
336
|
+
{}.tap do |hash|
|
337
|
+
value.each do |k, v|
|
338
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
339
|
+
end
|
340
|
+
end
|
341
|
+
else # model
|
342
|
+
temp_model = ESIClient.const_get(type).new
|
343
|
+
temp_model.build_from_hash(value)
|
344
|
+
end
|
345
|
+
end
|
346
|
+
|
347
|
+
# Returns the string representation of the object
|
348
|
+
# @return [String] String presentation of the object
|
349
|
+
def to_s
|
350
|
+
to_hash.to_s
|
351
|
+
end
|
352
|
+
|
353
|
+
# to_body is an alias to to_hash (backward compatibility)
|
354
|
+
# @return [Hash] Returns the object in the form of hash
|
355
|
+
def to_body
|
356
|
+
to_hash
|
357
|
+
end
|
358
|
+
|
359
|
+
# Returns the object in the form of hash
|
360
|
+
# @return [Hash] Returns the object in the form of hash
|
361
|
+
def to_hash
|
362
|
+
hash = {}
|
363
|
+
self.class.attribute_map.each_pair do |attr, param|
|
364
|
+
value = self.send(attr)
|
365
|
+
next if value.nil?
|
366
|
+
hash[param] = _to_hash(value)
|
367
|
+
end
|
368
|
+
hash
|
369
|
+
end
|
370
|
+
|
371
|
+
# Outputs non-array value in the form of hash
|
372
|
+
# For object, use to_hash. Otherwise, just return the value
|
373
|
+
# @param [Object] value Any valid value
|
374
|
+
# @return [Hash] Returns the value in the form of hash
|
375
|
+
def _to_hash(value)
|
376
|
+
if value.is_a?(Array)
|
377
|
+
value.compact.map{ |v| _to_hash(v) }
|
378
|
+
elsif value.is_a?(Hash)
|
379
|
+
{}.tap do |hash|
|
380
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
381
|
+
end
|
382
|
+
elsif value.respond_to? :to_hash
|
383
|
+
value.to_hash
|
384
|
+
else
|
385
|
+
value
|
386
|
+
end
|
387
|
+
end
|
388
|
+
|
389
|
+
end
|
390
|
+
|
391
|
+
end
|
@@ -0,0 +1,511 @@
|
|
1
|
+
=begin
|
2
|
+
#EVE Swagger Interface
|
3
|
+
|
4
|
+
#An OpenAPI for EVE Online
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.6.2
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module ESIClient
|
16
|
+
# 200 ok object
|
17
|
+
class GetCorporationsCorporationIdContracts200Ok
|
18
|
+
# Who will accept the contract
|
19
|
+
attr_accessor :acceptor_id
|
20
|
+
|
21
|
+
# ID to whom the contract is assigned, can be corporation or character ID
|
22
|
+
attr_accessor :assignee_id
|
23
|
+
|
24
|
+
# To whom the contract is available
|
25
|
+
attr_accessor :availability
|
26
|
+
|
27
|
+
# Buyout price (for Auctions only)
|
28
|
+
attr_accessor :buyout
|
29
|
+
|
30
|
+
# Collateral price (for Couriers only)
|
31
|
+
attr_accessor :collateral
|
32
|
+
|
33
|
+
# contract_id integer
|
34
|
+
attr_accessor :contract_id
|
35
|
+
|
36
|
+
# Date of confirmation of contract
|
37
|
+
attr_accessor :date_accepted
|
38
|
+
|
39
|
+
# Date of completed of contract
|
40
|
+
attr_accessor :date_completed
|
41
|
+
|
42
|
+
# Expiration date of the contract
|
43
|
+
attr_accessor :date_expired
|
44
|
+
|
45
|
+
# Сreation date of the contract
|
46
|
+
attr_accessor :date_issued
|
47
|
+
|
48
|
+
# Number of days to perform the contract
|
49
|
+
attr_accessor :days_to_complete
|
50
|
+
|
51
|
+
# End location ID (for Couriers contract)
|
52
|
+
attr_accessor :end_location_id
|
53
|
+
|
54
|
+
# true if the contract was issued on behalf of the issuer's corporation
|
55
|
+
attr_accessor :for_corporation
|
56
|
+
|
57
|
+
# Character's corporation ID for the issuer
|
58
|
+
attr_accessor :issuer_corporation_id
|
59
|
+
|
60
|
+
# Character ID for the issuer
|
61
|
+
attr_accessor :issuer_id
|
62
|
+
|
63
|
+
# Price of contract (for ItemsExchange and Auctions)
|
64
|
+
attr_accessor :price
|
65
|
+
|
66
|
+
# Remuneration for contract (for Couriers only)
|
67
|
+
attr_accessor :reward
|
68
|
+
|
69
|
+
# Start location ID (for Couriers contract)
|
70
|
+
attr_accessor :start_location_id
|
71
|
+
|
72
|
+
# Status of the the contract
|
73
|
+
attr_accessor :status
|
74
|
+
|
75
|
+
# Title of the contract
|
76
|
+
attr_accessor :title
|
77
|
+
|
78
|
+
# Type of the contract
|
79
|
+
attr_accessor :type
|
80
|
+
|
81
|
+
# Volume of items in the contract
|
82
|
+
attr_accessor :volume
|
83
|
+
|
84
|
+
class EnumAttributeValidator
|
85
|
+
attr_reader :datatype
|
86
|
+
attr_reader :allowable_values
|
87
|
+
|
88
|
+
def initialize(datatype, allowable_values)
|
89
|
+
@allowable_values = allowable_values.map do |value|
|
90
|
+
case datatype.to_s
|
91
|
+
when /Integer/i
|
92
|
+
value.to_i
|
93
|
+
when /Float/i
|
94
|
+
value.to_f
|
95
|
+
else
|
96
|
+
value
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
def valid?(value)
|
102
|
+
!value || allowable_values.include?(value)
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
107
|
+
def self.attribute_map
|
108
|
+
{
|
109
|
+
:'acceptor_id' => :'acceptor_id',
|
110
|
+
:'assignee_id' => :'assignee_id',
|
111
|
+
:'availability' => :'availability',
|
112
|
+
:'buyout' => :'buyout',
|
113
|
+
:'collateral' => :'collateral',
|
114
|
+
:'contract_id' => :'contract_id',
|
115
|
+
:'date_accepted' => :'date_accepted',
|
116
|
+
:'date_completed' => :'date_completed',
|
117
|
+
:'date_expired' => :'date_expired',
|
118
|
+
:'date_issued' => :'date_issued',
|
119
|
+
:'days_to_complete' => :'days_to_complete',
|
120
|
+
:'end_location_id' => :'end_location_id',
|
121
|
+
:'for_corporation' => :'for_corporation',
|
122
|
+
:'issuer_corporation_id' => :'issuer_corporation_id',
|
123
|
+
:'issuer_id' => :'issuer_id',
|
124
|
+
:'price' => :'price',
|
125
|
+
:'reward' => :'reward',
|
126
|
+
:'start_location_id' => :'start_location_id',
|
127
|
+
:'status' => :'status',
|
128
|
+
:'title' => :'title',
|
129
|
+
:'type' => :'type',
|
130
|
+
:'volume' => :'volume'
|
131
|
+
}
|
132
|
+
end
|
133
|
+
|
134
|
+
# Attribute type mapping.
|
135
|
+
def self.swagger_types
|
136
|
+
{
|
137
|
+
:'acceptor_id' => :'Integer',
|
138
|
+
:'assignee_id' => :'Integer',
|
139
|
+
:'availability' => :'String',
|
140
|
+
:'buyout' => :'Float',
|
141
|
+
:'collateral' => :'Float',
|
142
|
+
:'contract_id' => :'Integer',
|
143
|
+
:'date_accepted' => :'DateTime',
|
144
|
+
:'date_completed' => :'DateTime',
|
145
|
+
:'date_expired' => :'DateTime',
|
146
|
+
:'date_issued' => :'DateTime',
|
147
|
+
:'days_to_complete' => :'Integer',
|
148
|
+
:'end_location_id' => :'Integer',
|
149
|
+
:'for_corporation' => :'BOOLEAN',
|
150
|
+
:'issuer_corporation_id' => :'Integer',
|
151
|
+
:'issuer_id' => :'Integer',
|
152
|
+
:'price' => :'Float',
|
153
|
+
:'reward' => :'Float',
|
154
|
+
:'start_location_id' => :'Integer',
|
155
|
+
:'status' => :'String',
|
156
|
+
:'title' => :'String',
|
157
|
+
:'type' => :'String',
|
158
|
+
:'volume' => :'Float'
|
159
|
+
}
|
160
|
+
end
|
161
|
+
|
162
|
+
# Initializes the object
|
163
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
164
|
+
def initialize(attributes = {})
|
165
|
+
return unless attributes.is_a?(Hash)
|
166
|
+
|
167
|
+
# convert string to symbol for hash key
|
168
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
169
|
+
|
170
|
+
if attributes.has_key?(:'acceptor_id')
|
171
|
+
self.acceptor_id = attributes[:'acceptor_id']
|
172
|
+
end
|
173
|
+
|
174
|
+
if attributes.has_key?(:'assignee_id')
|
175
|
+
self.assignee_id = attributes[:'assignee_id']
|
176
|
+
end
|
177
|
+
|
178
|
+
if attributes.has_key?(:'availability')
|
179
|
+
self.availability = attributes[:'availability']
|
180
|
+
end
|
181
|
+
|
182
|
+
if attributes.has_key?(:'buyout')
|
183
|
+
self.buyout = attributes[:'buyout']
|
184
|
+
end
|
185
|
+
|
186
|
+
if attributes.has_key?(:'collateral')
|
187
|
+
self.collateral = attributes[:'collateral']
|
188
|
+
end
|
189
|
+
|
190
|
+
if attributes.has_key?(:'contract_id')
|
191
|
+
self.contract_id = attributes[:'contract_id']
|
192
|
+
end
|
193
|
+
|
194
|
+
if attributes.has_key?(:'date_accepted')
|
195
|
+
self.date_accepted = attributes[:'date_accepted']
|
196
|
+
end
|
197
|
+
|
198
|
+
if attributes.has_key?(:'date_completed')
|
199
|
+
self.date_completed = attributes[:'date_completed']
|
200
|
+
end
|
201
|
+
|
202
|
+
if attributes.has_key?(:'date_expired')
|
203
|
+
self.date_expired = attributes[:'date_expired']
|
204
|
+
end
|
205
|
+
|
206
|
+
if attributes.has_key?(:'date_issued')
|
207
|
+
self.date_issued = attributes[:'date_issued']
|
208
|
+
end
|
209
|
+
|
210
|
+
if attributes.has_key?(:'days_to_complete')
|
211
|
+
self.days_to_complete = attributes[:'days_to_complete']
|
212
|
+
end
|
213
|
+
|
214
|
+
if attributes.has_key?(:'end_location_id')
|
215
|
+
self.end_location_id = attributes[:'end_location_id']
|
216
|
+
end
|
217
|
+
|
218
|
+
if attributes.has_key?(:'for_corporation')
|
219
|
+
self.for_corporation = attributes[:'for_corporation']
|
220
|
+
end
|
221
|
+
|
222
|
+
if attributes.has_key?(:'issuer_corporation_id')
|
223
|
+
self.issuer_corporation_id = attributes[:'issuer_corporation_id']
|
224
|
+
end
|
225
|
+
|
226
|
+
if attributes.has_key?(:'issuer_id')
|
227
|
+
self.issuer_id = attributes[:'issuer_id']
|
228
|
+
end
|
229
|
+
|
230
|
+
if attributes.has_key?(:'price')
|
231
|
+
self.price = attributes[:'price']
|
232
|
+
end
|
233
|
+
|
234
|
+
if attributes.has_key?(:'reward')
|
235
|
+
self.reward = attributes[:'reward']
|
236
|
+
end
|
237
|
+
|
238
|
+
if attributes.has_key?(:'start_location_id')
|
239
|
+
self.start_location_id = attributes[:'start_location_id']
|
240
|
+
end
|
241
|
+
|
242
|
+
if attributes.has_key?(:'status')
|
243
|
+
self.status = attributes[:'status']
|
244
|
+
end
|
245
|
+
|
246
|
+
if attributes.has_key?(:'title')
|
247
|
+
self.title = attributes[:'title']
|
248
|
+
end
|
249
|
+
|
250
|
+
if attributes.has_key?(:'type')
|
251
|
+
self.type = attributes[:'type']
|
252
|
+
end
|
253
|
+
|
254
|
+
if attributes.has_key?(:'volume')
|
255
|
+
self.volume = attributes[:'volume']
|
256
|
+
end
|
257
|
+
|
258
|
+
end
|
259
|
+
|
260
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
261
|
+
# @return Array for valid properies with the reasons
|
262
|
+
def list_invalid_properties
|
263
|
+
invalid_properties = Array.new
|
264
|
+
if @acceptor_id.nil?
|
265
|
+
invalid_properties.push("invalid value for 'acceptor_id', acceptor_id cannot be nil.")
|
266
|
+
end
|
267
|
+
|
268
|
+
if @assignee_id.nil?
|
269
|
+
invalid_properties.push("invalid value for 'assignee_id', assignee_id cannot be nil.")
|
270
|
+
end
|
271
|
+
|
272
|
+
if @availability.nil?
|
273
|
+
invalid_properties.push("invalid value for 'availability', availability cannot be nil.")
|
274
|
+
end
|
275
|
+
|
276
|
+
if @contract_id.nil?
|
277
|
+
invalid_properties.push("invalid value for 'contract_id', contract_id cannot be nil.")
|
278
|
+
end
|
279
|
+
|
280
|
+
if @date_expired.nil?
|
281
|
+
invalid_properties.push("invalid value for 'date_expired', date_expired cannot be nil.")
|
282
|
+
end
|
283
|
+
|
284
|
+
if @date_issued.nil?
|
285
|
+
invalid_properties.push("invalid value for 'date_issued', date_issued cannot be nil.")
|
286
|
+
end
|
287
|
+
|
288
|
+
if @for_corporation.nil?
|
289
|
+
invalid_properties.push("invalid value for 'for_corporation', for_corporation cannot be nil.")
|
290
|
+
end
|
291
|
+
|
292
|
+
if @issuer_corporation_id.nil?
|
293
|
+
invalid_properties.push("invalid value for 'issuer_corporation_id', issuer_corporation_id cannot be nil.")
|
294
|
+
end
|
295
|
+
|
296
|
+
if @issuer_id.nil?
|
297
|
+
invalid_properties.push("invalid value for 'issuer_id', issuer_id cannot be nil.")
|
298
|
+
end
|
299
|
+
|
300
|
+
if @status.nil?
|
301
|
+
invalid_properties.push("invalid value for 'status', status cannot be nil.")
|
302
|
+
end
|
303
|
+
|
304
|
+
if @type.nil?
|
305
|
+
invalid_properties.push("invalid value for 'type', type cannot be nil.")
|
306
|
+
end
|
307
|
+
|
308
|
+
return invalid_properties
|
309
|
+
end
|
310
|
+
|
311
|
+
# Check to see if the all the properties in the model are valid
|
312
|
+
# @return true if the model is valid
|
313
|
+
def valid?
|
314
|
+
return false if @acceptor_id.nil?
|
315
|
+
return false if @assignee_id.nil?
|
316
|
+
return false if @availability.nil?
|
317
|
+
availability_validator = EnumAttributeValidator.new('String', ["public", "personal", "corporation", "alliance"])
|
318
|
+
return false unless availability_validator.valid?(@availability)
|
319
|
+
return false if @contract_id.nil?
|
320
|
+
return false if @date_expired.nil?
|
321
|
+
return false if @date_issued.nil?
|
322
|
+
return false if @for_corporation.nil?
|
323
|
+
return false if @issuer_corporation_id.nil?
|
324
|
+
return false if @issuer_id.nil?
|
325
|
+
return false if @status.nil?
|
326
|
+
status_validator = EnumAttributeValidator.new('String', ["outstanding", "in_progress", "finished_issuer", "finished_contractor", "finished", "cancelled", "rejected", "failed", "deleted", "reversed"])
|
327
|
+
return false unless status_validator.valid?(@status)
|
328
|
+
return false if @type.nil?
|
329
|
+
type_validator = EnumAttributeValidator.new('String', ["unknown", "item_exchange", "auction", "courier", "loan"])
|
330
|
+
return false unless type_validator.valid?(@type)
|
331
|
+
return true
|
332
|
+
end
|
333
|
+
|
334
|
+
# Custom attribute writer method checking allowed values (enum).
|
335
|
+
# @param [Object] availability Object to be assigned
|
336
|
+
def availability=(availability)
|
337
|
+
validator = EnumAttributeValidator.new('String', ["public", "personal", "corporation", "alliance"])
|
338
|
+
unless validator.valid?(availability)
|
339
|
+
fail ArgumentError, "invalid value for 'availability', must be one of #{validator.allowable_values}."
|
340
|
+
end
|
341
|
+
@availability = availability
|
342
|
+
end
|
343
|
+
|
344
|
+
# Custom attribute writer method checking allowed values (enum).
|
345
|
+
# @param [Object] status Object to be assigned
|
346
|
+
def status=(status)
|
347
|
+
validator = EnumAttributeValidator.new('String', ["outstanding", "in_progress", "finished_issuer", "finished_contractor", "finished", "cancelled", "rejected", "failed", "deleted", "reversed"])
|
348
|
+
unless validator.valid?(status)
|
349
|
+
fail ArgumentError, "invalid value for 'status', must be one of #{validator.allowable_values}."
|
350
|
+
end
|
351
|
+
@status = status
|
352
|
+
end
|
353
|
+
|
354
|
+
# Custom attribute writer method checking allowed values (enum).
|
355
|
+
# @param [Object] type Object to be assigned
|
356
|
+
def type=(type)
|
357
|
+
validator = EnumAttributeValidator.new('String', ["unknown", "item_exchange", "auction", "courier", "loan"])
|
358
|
+
unless validator.valid?(type)
|
359
|
+
fail ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}."
|
360
|
+
end
|
361
|
+
@type = type
|
362
|
+
end
|
363
|
+
|
364
|
+
# Checks equality by comparing each attribute.
|
365
|
+
# @param [Object] Object to be compared
|
366
|
+
def ==(o)
|
367
|
+
return true if self.equal?(o)
|
368
|
+
self.class == o.class &&
|
369
|
+
acceptor_id == o.acceptor_id &&
|
370
|
+
assignee_id == o.assignee_id &&
|
371
|
+
availability == o.availability &&
|
372
|
+
buyout == o.buyout &&
|
373
|
+
collateral == o.collateral &&
|
374
|
+
contract_id == o.contract_id &&
|
375
|
+
date_accepted == o.date_accepted &&
|
376
|
+
date_completed == o.date_completed &&
|
377
|
+
date_expired == o.date_expired &&
|
378
|
+
date_issued == o.date_issued &&
|
379
|
+
days_to_complete == o.days_to_complete &&
|
380
|
+
end_location_id == o.end_location_id &&
|
381
|
+
for_corporation == o.for_corporation &&
|
382
|
+
issuer_corporation_id == o.issuer_corporation_id &&
|
383
|
+
issuer_id == o.issuer_id &&
|
384
|
+
price == o.price &&
|
385
|
+
reward == o.reward &&
|
386
|
+
start_location_id == o.start_location_id &&
|
387
|
+
status == o.status &&
|
388
|
+
title == o.title &&
|
389
|
+
type == o.type &&
|
390
|
+
volume == o.volume
|
391
|
+
end
|
392
|
+
|
393
|
+
# @see the `==` method
|
394
|
+
# @param [Object] Object to be compared
|
395
|
+
def eql?(o)
|
396
|
+
self == o
|
397
|
+
end
|
398
|
+
|
399
|
+
# Calculates hash code according to all attributes.
|
400
|
+
# @return [Fixnum] Hash code
|
401
|
+
def hash
|
402
|
+
[acceptor_id, assignee_id, availability, buyout, collateral, contract_id, date_accepted, date_completed, date_expired, date_issued, days_to_complete, end_location_id, for_corporation, issuer_corporation_id, issuer_id, price, reward, start_location_id, status, title, type, volume].hash
|
403
|
+
end
|
404
|
+
|
405
|
+
# Builds the object from hash
|
406
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
407
|
+
# @return [Object] Returns the model itself
|
408
|
+
def build_from_hash(attributes)
|
409
|
+
return nil unless attributes.is_a?(Hash)
|
410
|
+
self.class.swagger_types.each_pair do |key, type|
|
411
|
+
if type =~ /\AArray<(.*)>/i
|
412
|
+
# check to ensure the input is an array given that the the attribute
|
413
|
+
# is documented as an array but the input is not
|
414
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
415
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
416
|
+
end
|
417
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
418
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
419
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
420
|
+
end
|
421
|
+
|
422
|
+
self
|
423
|
+
end
|
424
|
+
|
425
|
+
# Deserializes the data based on type
|
426
|
+
# @param string type Data type
|
427
|
+
# @param string value Value to be deserialized
|
428
|
+
# @return [Object] Deserialized data
|
429
|
+
def _deserialize(type, value)
|
430
|
+
case type.to_sym
|
431
|
+
when :DateTime
|
432
|
+
DateTime.parse(value)
|
433
|
+
when :Date
|
434
|
+
Date.parse(value)
|
435
|
+
when :String
|
436
|
+
value.to_s
|
437
|
+
when :Integer
|
438
|
+
value.to_i
|
439
|
+
when :Float
|
440
|
+
value.to_f
|
441
|
+
when :BOOLEAN
|
442
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
443
|
+
true
|
444
|
+
else
|
445
|
+
false
|
446
|
+
end
|
447
|
+
when :Object
|
448
|
+
# generic object (usually a Hash), return directly
|
449
|
+
value
|
450
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
451
|
+
inner_type = Regexp.last_match[:inner_type]
|
452
|
+
value.map { |v| _deserialize(inner_type, v) }
|
453
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
454
|
+
k_type = Regexp.last_match[:k_type]
|
455
|
+
v_type = Regexp.last_match[:v_type]
|
456
|
+
{}.tap do |hash|
|
457
|
+
value.each do |k, v|
|
458
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
459
|
+
end
|
460
|
+
end
|
461
|
+
else # model
|
462
|
+
temp_model = ESIClient.const_get(type).new
|
463
|
+
temp_model.build_from_hash(value)
|
464
|
+
end
|
465
|
+
end
|
466
|
+
|
467
|
+
# Returns the string representation of the object
|
468
|
+
# @return [String] String presentation of the object
|
469
|
+
def to_s
|
470
|
+
to_hash.to_s
|
471
|
+
end
|
472
|
+
|
473
|
+
# to_body is an alias to to_hash (backward compatibility)
|
474
|
+
# @return [Hash] Returns the object in the form of hash
|
475
|
+
def to_body
|
476
|
+
to_hash
|
477
|
+
end
|
478
|
+
|
479
|
+
# Returns the object in the form of hash
|
480
|
+
# @return [Hash] Returns the object in the form of hash
|
481
|
+
def to_hash
|
482
|
+
hash = {}
|
483
|
+
self.class.attribute_map.each_pair do |attr, param|
|
484
|
+
value = self.send(attr)
|
485
|
+
next if value.nil?
|
486
|
+
hash[param] = _to_hash(value)
|
487
|
+
end
|
488
|
+
hash
|
489
|
+
end
|
490
|
+
|
491
|
+
# Outputs non-array value in the form of hash
|
492
|
+
# For object, use to_hash. Otherwise, just return the value
|
493
|
+
# @param [Object] value Any valid value
|
494
|
+
# @return [Hash] Returns the value in the form of hash
|
495
|
+
def _to_hash(value)
|
496
|
+
if value.is_a?(Array)
|
497
|
+
value.compact.map{ |v| _to_hash(v) }
|
498
|
+
elsif value.is_a?(Hash)
|
499
|
+
{}.tap do |hash|
|
500
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
501
|
+
end
|
502
|
+
elsif value.respond_to? :to_hash
|
503
|
+
value.to_hash
|
504
|
+
else
|
505
|
+
value
|
506
|
+
end
|
507
|
+
end
|
508
|
+
|
509
|
+
end
|
510
|
+
|
511
|
+
end
|