esi-sdk 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +7 -0
  2. data/.editorconfig +9 -0
  3. data/.github/ISSUE_TEMPLATE/bug_report.md +36 -0
  4. data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  5. data/.github/ISSUE_TEMPLATE/support.md +7 -0
  6. data/.github/PULL_REQUEST_TEMPLATE.md +37 -0
  7. data/.github/dependabot.yml +17 -0
  8. data/.github/workflows/cicd.yml +181 -0
  9. data/.gitignore +11 -0
  10. data/.rspec +2 -0
  11. data/.rubocop.yml +36 -0
  12. data/.ruby-version +1 -0
  13. data/.yardext.rb +18 -0
  14. data/.yardopts +17 -0
  15. data/CHANGELOG.md +17 -0
  16. data/CODE_OF_CONDUCT.md +84 -0
  17. data/CONTRIBUTING.md +69 -0
  18. data/Gemfile +24 -0
  19. data/Gemfile.lock +141 -0
  20. data/LICENSE.txt +21 -0
  21. data/README.md +87 -0
  22. data/Rakefile +349 -0
  23. data/SECURITY.md +13 -0
  24. data/bin/console +15 -0
  25. data/bin/setup +8 -0
  26. data/esi-sdk.gemspec +32 -0
  27. data/exe/esi-sdk +4 -0
  28. data/lib/esi/client/alliance.rb +104 -0
  29. data/lib/esi/client/assets.rb +179 -0
  30. data/lib/esi/client/bookmarks.rb +126 -0
  31. data/lib/esi/client/calendar.rb +139 -0
  32. data/lib/esi/client/character.rb +389 -0
  33. data/lib/esi/client/clones.rb +69 -0
  34. data/lib/esi/client/contacts.rb +277 -0
  35. data/lib/esi/client/contracts.rb +274 -0
  36. data/lib/esi/client/corporation.rb +626 -0
  37. data/lib/esi/client/dogma.rb +117 -0
  38. data/lib/esi/client/faction_warfare.rb +196 -0
  39. data/lib/esi/client/fittings.rb +93 -0
  40. data/lib/esi/client/fleets.rb +428 -0
  41. data/lib/esi/client/incursions.rb +30 -0
  42. data/lib/esi/client/industry.rb +237 -0
  43. data/lib/esi/client/insurance.rb +30 -0
  44. data/lib/esi/client/killmails.rb +95 -0
  45. data/lib/esi/client/location.rb +100 -0
  46. data/lib/esi/client/loyalty.rb +61 -0
  47. data/lib/esi/client/mail.rb +244 -0
  48. data/lib/esi/client/market.rb +302 -0
  49. data/lib/esi/client/opportunities.rb +124 -0
  50. data/lib/esi/client/planetary_interaction.rb +122 -0
  51. data/lib/esi/client/routes.rb +37 -0
  52. data/lib/esi/client/search.rb +68 -0
  53. data/lib/esi/client/skills.rb +97 -0
  54. data/lib/esi/client/sovereignty.rb +74 -0
  55. data/lib/esi/client/status.rb +31 -0
  56. data/lib/esi/client/universe.rb +640 -0
  57. data/lib/esi/client/user_interface.rb +145 -0
  58. data/lib/esi/client/wallet.rb +191 -0
  59. data/lib/esi/client/wars.rb +82 -0
  60. data/lib/esi/client.rb +225 -0
  61. data/lib/esi/errors.rb +51 -0
  62. data/lib/esi/version.rb +5 -0
  63. data/lib/esi-sdk.rb +8 -0
  64. data/release.config.js +32 -0
  65. data/yard/fulldoc/html/css/pygments-default.css +69 -0
  66. data/yard/fulldoc/html/setup.rb +6 -0
  67. data/yard/layout/html/setup.rb +6 -0
  68. metadata +156 -0
@@ -0,0 +1,237 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ESI
4
+ class Client
5
+ # ESI industry operations.
6
+ module Industry
7
+ # List industry jobs placed by a character.
8
+ #
9
+ # This endpoint is cached for up to 300 seconds.
10
+ #
11
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
12
+ #
13
+ # @esi_scope esi-industry.read_character_jobs.v1
14
+ #
15
+ # @esi_version dev
16
+ # @esi_version legacy
17
+ # @esi_version v1
18
+ #
19
+ # @param character_id [Integer,String] An EVE character ID
20
+ # @param include_completed [Boolean] Whether to retrieve completed character industry jobs. Only includes jobs from the past 90 days
21
+ # @param params [Hash] Additional query string parameters
22
+ # @param headers [Hash] Additional headers
23
+ #
24
+ # @raise [ESI::Errors::BadRequestError] Bad request
25
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
26
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
27
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
28
+ # @raise [ESI::Errors::InternalServerError] Internal server error
29
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
30
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
31
+ #
32
+ # @see https://esi.evetech.net/ui/#/Industry/get_characters_character_id_industry_jobs
33
+ def get_character_industry_jobs(character_id:, include_completed:, params: {}, headers: {})
34
+ query_string = URI.encode_www_form([["include_completed", include_completed]])
35
+ get("/characters/#{character_id}/industry/jobs/?#{query_string}", headers: headers, params: params)
36
+ end
37
+ alias get_characters_character_id_industry_jobs get_character_industry_jobs
38
+
39
+ # Paginated record of all mining done by a character for the past 30 days.
40
+ #
41
+ # This endpoint is cached for up to 600 seconds.
42
+ #
43
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
44
+ #
45
+ # @esi_scope esi-industry.read_character_mining.v1
46
+ #
47
+ # @esi_version dev
48
+ # @esi_version legacy
49
+ # @esi_version v1
50
+ #
51
+ # @param character_id [Integer,String] An EVE character ID
52
+ # @param params [Hash] Additional query string parameters
53
+ # @param headers [Hash] Additional headers
54
+ #
55
+ # @raise [ESI::Errors::BadRequestError] Bad request
56
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
57
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
58
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
59
+ # @raise [ESI::Errors::InternalServerError] Internal server error
60
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
61
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
62
+ #
63
+ # @see https://esi.evetech.net/ui/#/Industry/get_characters_character_id_mining
64
+ def get_character_mining(character_id:, params: {}, headers: {})
65
+ get("/characters/#{character_id}/mining/", headers: headers, params: params)
66
+ end
67
+ alias get_characters_character_id_mining get_character_mining
68
+
69
+ # List industry jobs run by a corporation.
70
+ #
71
+ # This endpoint is cached for up to 300 seconds.
72
+ #
73
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
74
+ #
75
+ # @esi_scope esi-industry.read_corporation_jobs.v1
76
+ #
77
+ # @esi_version dev
78
+ # @esi_version legacy
79
+ # @esi_version v1
80
+ #
81
+ # @param corporation_id [Integer,String] An EVE corporation ID
82
+ # @param include_completed [Boolean] Whether to retrieve completed corporation industry jobs. Only includes jobs from the past 90 days
83
+ # @param params [Hash] Additional query string parameters
84
+ # @param headers [Hash] Additional headers
85
+ #
86
+ # @raise [ESI::Errors::BadRequestError] Bad request
87
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
88
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
89
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
90
+ # @raise [ESI::Errors::InternalServerError] Internal server error
91
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
92
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
93
+ #
94
+ # @see https://esi.evetech.net/ui/#/Industry/get_corporations_corporation_id_industry_jobs
95
+ def get_corporation_industry_jobs(corporation_id:, include_completed:, params: {}, headers: {})
96
+ query_string = URI.encode_www_form([["include_completed", include_completed]])
97
+ get("/corporations/#{corporation_id}/industry/jobs/?#{query_string}", headers: headers, params: params)
98
+ end
99
+ alias get_corporations_corporation_id_industry_jobs get_corporation_industry_jobs
100
+
101
+ # Extraction timers for all moon chunks being extracted by refineries belonging to a corporation.
102
+ #
103
+ # This endpoint is cached for up to 1800 seconds.
104
+ #
105
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
106
+ #
107
+ # @esi_scope esi-industry.read_corporation_mining.v1
108
+ #
109
+ # @esi_version dev
110
+ # @esi_version legacy
111
+ # @esi_version v1
112
+ #
113
+ # @param corporation_id [Integer,String] An EVE corporation ID
114
+ # @param params [Hash] Additional query string parameters
115
+ # @param headers [Hash] Additional headers
116
+ #
117
+ # @raise [ESI::Errors::BadRequestError] Bad request
118
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
119
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
120
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
121
+ # @raise [ESI::Errors::InternalServerError] Internal server error
122
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
123
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
124
+ #
125
+ # @see https://esi.evetech.net/ui/#/Industry/get_corporation_corporation_id_mining_extractions
126
+ def get_corporation_mining_extractions(corporation_id:, params: {}, headers: {})
127
+ get("/corporation/#{corporation_id}/mining/extractions/", headers: headers, params: params)
128
+ end
129
+ alias get_corporation_corporation_id_mining_extractions get_corporation_mining_extractions
130
+
131
+ # Paginated record of all mining seen by an observer.
132
+ #
133
+ # This endpoint is cached for up to 3600 seconds.
134
+ #
135
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
136
+ #
137
+ # @esi_scope esi-industry.read_corporation_mining.v1
138
+ #
139
+ # @esi_version dev
140
+ # @esi_version legacy
141
+ # @esi_version v1
142
+ #
143
+ # @param corporation_id [Integer,String] An EVE corporation ID
144
+ # @param observer_id [Integer,String] A mining observer id
145
+ # @param params [Hash] Additional query string parameters
146
+ # @param headers [Hash] Additional headers
147
+ #
148
+ # @raise [ESI::Errors::BadRequestError] Bad request
149
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
150
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
151
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
152
+ # @raise [ESI::Errors::InternalServerError] Internal server error
153
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
154
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
155
+ #
156
+ # @see https://esi.evetech.net/ui/#/Industry/get_corporation_corporation_id_mining_observers_observer_id
157
+ def get_corporation_mining_observer(corporation_id:, observer_id:, params: {}, headers: {})
158
+ get("/corporation/#{corporation_id}/mining/observers/#{observer_id}/", headers: headers, params: params)
159
+ end
160
+ alias get_corporation_corporation_id_mining_observers_observer_id get_corporation_mining_observer
161
+
162
+ # Paginated list of all entities capable of observing and recording mining for a corporation.
163
+ #
164
+ # This endpoint is cached for up to 3600 seconds.
165
+ #
166
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
167
+ #
168
+ # @esi_scope esi-industry.read_corporation_mining.v1
169
+ #
170
+ # @esi_version dev
171
+ # @esi_version legacy
172
+ # @esi_version v1
173
+ #
174
+ # @param corporation_id [Integer,String] An EVE corporation ID
175
+ # @param params [Hash] Additional query string parameters
176
+ # @param headers [Hash] Additional headers
177
+ #
178
+ # @raise [ESI::Errors::BadRequestError] Bad request
179
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
180
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
181
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
182
+ # @raise [ESI::Errors::InternalServerError] Internal server error
183
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
184
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
185
+ #
186
+ # @see https://esi.evetech.net/ui/#/Industry/get_corporation_corporation_id_mining_observers
187
+ def get_corporation_mining_observers(corporation_id:, params: {}, headers: {})
188
+ get("/corporation/#{corporation_id}/mining/observers/", headers: headers, params: params)
189
+ end
190
+ alias get_corporation_corporation_id_mining_observers get_corporation_mining_observers
191
+
192
+ # Return a list of industry facilities.
193
+ #
194
+ # This endpoint is cached for up to 3600 seconds.
195
+ #
196
+ # @esi_version dev
197
+ # @esi_version legacy
198
+ # @esi_version v1
199
+ #
200
+ # @param params [Hash] Additional query string parameters
201
+ # @param headers [Hash] Additional headers
202
+ #
203
+ # @raise [ESI::Errors::BadRequestError] Bad request
204
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
205
+ # @raise [ESI::Errors::InternalServerError] Internal server error
206
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
207
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
208
+ #
209
+ # @see https://esi.evetech.net/ui/#/Industry/get_industry_facilities
210
+ def get_industry_facilities(params: {}, headers: {})
211
+ get("/industry/facilities/", headers: headers, params: params)
212
+ end
213
+
214
+ # Return cost indices for solar systems.
215
+ #
216
+ # This endpoint is cached for up to 3600 seconds.
217
+ #
218
+ # @esi_version dev
219
+ # @esi_version legacy
220
+ # @esi_version v1
221
+ #
222
+ # @param params [Hash] Additional query string parameters
223
+ # @param headers [Hash] Additional headers
224
+ #
225
+ # @raise [ESI::Errors::BadRequestError] Bad request
226
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
227
+ # @raise [ESI::Errors::InternalServerError] Internal server error
228
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
229
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
230
+ #
231
+ # @see https://esi.evetech.net/ui/#/Industry/get_industry_systems
232
+ def get_industry_systems(params: {}, headers: {})
233
+ get("/industry/systems/", headers: headers, params: params)
234
+ end
235
+ end
236
+ end
237
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ESI
4
+ class Client
5
+ # ESI insurance operations.
6
+ module Insurance
7
+ # Return available insurance levels for all ship types.
8
+ #
9
+ # This endpoint is cached for up to 3600 seconds.
10
+ #
11
+ # @esi_version dev
12
+ # @esi_version legacy
13
+ # @esi_version v1
14
+ #
15
+ # @param params [Hash] Additional query string parameters
16
+ # @param headers [Hash] Additional headers
17
+ #
18
+ # @raise [ESI::Errors::BadRequestError] Bad request
19
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
20
+ # @raise [ESI::Errors::InternalServerError] Internal server error
21
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
22
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
23
+ #
24
+ # @see https://esi.evetech.net/ui/#/Insurance/get_insurance_prices
25
+ def get_insurance_prices(params: {}, headers: {})
26
+ get("/insurance/prices/", headers: headers, params: params)
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,95 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ESI
4
+ class Client
5
+ # ESI killmails operations.
6
+ module Killmail
7
+ # Return a list of a character's kills and losses going back 90 days.
8
+ #
9
+ # This endpoint is cached for up to 300 seconds.
10
+ #
11
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
12
+ #
13
+ # @esi_scope esi-killmails.read_killmails.v1
14
+ #
15
+ # @esi_version dev
16
+ # @esi_version legacy
17
+ # @esi_version v1
18
+ #
19
+ # @param character_id [Integer,String] An EVE character ID
20
+ # @param params [Hash] Additional query string parameters
21
+ # @param headers [Hash] Additional headers
22
+ #
23
+ # @raise [ESI::Errors::BadRequestError] Bad request
24
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
25
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
26
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
27
+ # @raise [ESI::Errors::InternalServerError] Internal server error
28
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
29
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
30
+ #
31
+ # @see https://esi.evetech.net/ui/#/Killmails/get_characters_character_id_killmails_recent
32
+ def get_character_killmails_recent(character_id:, params: {}, headers: {})
33
+ get("/characters/#{character_id}/killmails/recent/", headers: headers, params: params)
34
+ end
35
+ alias get_characters_character_id_killmails_recent get_character_killmails_recent
36
+
37
+ # Get a list of a corporation's kills and losses going back 90 days.
38
+ #
39
+ # This endpoint is cached for up to 300 seconds.
40
+ #
41
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
42
+ #
43
+ # @esi_scope esi-killmails.read_corporation_killmails.v1
44
+ #
45
+ # @esi_version dev
46
+ # @esi_version legacy
47
+ # @esi_version v1
48
+ #
49
+ # @param corporation_id [Integer,String] An EVE corporation ID
50
+ # @param params [Hash] Additional query string parameters
51
+ # @param headers [Hash] Additional headers
52
+ #
53
+ # @raise [ESI::Errors::BadRequestError] Bad request
54
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
55
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
56
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
57
+ # @raise [ESI::Errors::InternalServerError] Internal server error
58
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
59
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
60
+ #
61
+ # @see https://esi.evetech.net/ui/#/Killmails/get_corporations_corporation_id_killmails_recent
62
+ def get_corporation_killmails_recent(corporation_id:, params: {}, headers: {})
63
+ get("/corporations/#{corporation_id}/killmails/recent/", headers: headers, params: params)
64
+ end
65
+ alias get_corporations_corporation_id_killmails_recent get_corporation_killmails_recent
66
+
67
+ # Return a single killmail from its ID and hash.
68
+ #
69
+ # This endpoint is cached for up to 30758400 seconds.
70
+ #
71
+ # @esi_version dev
72
+ # @esi_version legacy
73
+ # @esi_version v1
74
+ #
75
+ # @param killmail_hash [Integer,String] The killmail hash for verification
76
+ # @param killmail_id [Integer,String] The killmail ID to be queried
77
+ # @param params [Hash] Additional query string parameters
78
+ # @param headers [Hash] Additional headers
79
+ #
80
+ # @raise [ESI::Errors::BadRequestError] Bad request
81
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
82
+ # @raise [ESI::Errors::UnprocessableEntityError] Invalid killmail_id and/or killmail_hash
83
+ # @raise [ESI::Errors::InternalServerError] Internal server error
84
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
85
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
86
+ #
87
+ # @see https://esi.evetech.net/ui/#/Killmails/get_killmails_killmail_id_killmail_hash
88
+ def get_killmail_killmail_hash(killmail_hash:, killmail_id:, params: {}, headers: {})
89
+ get("/killmails/#{killmail_id}/#{killmail_hash}/", headers: headers, params: params)
90
+ end
91
+ alias get_killmail get_killmail_killmail_hash
92
+ alias get_killmails_killmail_id_killmail_hash get_killmail_killmail_hash
93
+ end
94
+ end
95
+ end
@@ -0,0 +1,100 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ESI
4
+ class Client
5
+ # ESI location operations.
6
+ module Location
7
+ # Information about the characters current location. Returns the current solar system id, and also the current station or structure ID if applicable.
8
+ #
9
+ # This endpoint is cached for up to 5 seconds.
10
+ #
11
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
12
+ #
13
+ # @esi_scope esi-location.read_location.v1
14
+ #
15
+ # @esi_version dev
16
+ # @esi_version legacy
17
+ # @esi_version v1
18
+ # @esi_version v2
19
+ #
20
+ # @param character_id [Integer,String] An EVE character ID
21
+ # @param params [Hash] Additional query string parameters
22
+ # @param headers [Hash] Additional headers
23
+ #
24
+ # @raise [ESI::Errors::BadRequestError] Bad request
25
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
26
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
27
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
28
+ # @raise [ESI::Errors::InternalServerError] Internal server error
29
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
30
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
31
+ #
32
+ # @see https://esi.evetech.net/ui/#/Location/get_characters_character_id_location
33
+ def get_character_location(character_id:, params: {}, headers: {})
34
+ get("/characters/#{character_id}/location/", headers: headers, params: params)
35
+ end
36
+ alias get_characters_character_id_location get_character_location
37
+
38
+ # Checks if the character is currently online.
39
+ #
40
+ # This endpoint is cached for up to 60 seconds.
41
+ #
42
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
43
+ #
44
+ # @esi_scope esi-location.read_online.v1
45
+ #
46
+ # @esi_version dev
47
+ # @esi_version v2
48
+ # @esi_version v3
49
+ #
50
+ # @param character_id [Integer,String] An EVE character ID
51
+ # @param params [Hash] Additional query string parameters
52
+ # @param headers [Hash] Additional headers
53
+ #
54
+ # @raise [ESI::Errors::BadRequestError] Bad request
55
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
56
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
57
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
58
+ # @raise [ESI::Errors::InternalServerError] Internal server error
59
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
60
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
61
+ #
62
+ # @see https://esi.evetech.net/ui/#/Location/get_characters_character_id_online
63
+ def get_character_online(character_id:, params: {}, headers: {})
64
+ get("/characters/#{character_id}/online/", headers: headers, params: params)
65
+ end
66
+ alias get_characters_character_id_online get_character_online
67
+
68
+ # Get the current ship type, name and id.
69
+ #
70
+ # This endpoint is cached for up to 5 seconds.
71
+ #
72
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
73
+ #
74
+ # @esi_scope esi-location.read_ship_type.v1
75
+ #
76
+ # @esi_version dev
77
+ # @esi_version legacy
78
+ # @esi_version v1
79
+ # @esi_version v2
80
+ #
81
+ # @param character_id [Integer,String] An EVE character ID
82
+ # @param params [Hash] Additional query string parameters
83
+ # @param headers [Hash] Additional headers
84
+ #
85
+ # @raise [ESI::Errors::BadRequestError] Bad request
86
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
87
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
88
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
89
+ # @raise [ESI::Errors::InternalServerError] Internal server error
90
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
91
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
92
+ #
93
+ # @see https://esi.evetech.net/ui/#/Location/get_characters_character_id_ship
94
+ def get_character_ship(character_id:, params: {}, headers: {})
95
+ get("/characters/#{character_id}/ship/", headers: headers, params: params)
96
+ end
97
+ alias get_characters_character_id_ship get_character_ship
98
+ end
99
+ end
100
+ end
@@ -0,0 +1,61 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ESI
4
+ class Client
5
+ # ESI loyalty operations.
6
+ module Loyalty
7
+ # Return a list of loyalty points for all corporations the character has worked for.
8
+ #
9
+ # This endpoint is cached for up to 3600 seconds.
10
+ #
11
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
12
+ #
13
+ # @esi_scope esi-characters.read_loyalty.v1
14
+ #
15
+ # @esi_version dev
16
+ # @esi_version legacy
17
+ # @esi_version v1
18
+ #
19
+ # @param character_id [Integer,String] An EVE character ID
20
+ # @param params [Hash] Additional query string parameters
21
+ # @param headers [Hash] Additional headers
22
+ #
23
+ # @raise [ESI::Errors::BadRequestError] Bad request
24
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
25
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
26
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
27
+ # @raise [ESI::Errors::InternalServerError] Internal server error
28
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
29
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
30
+ #
31
+ # @see https://esi.evetech.net/ui/#/Loyalty/get_characters_character_id_loyalty_points
32
+ def get_character_loyalty_points(character_id:, params: {}, headers: {})
33
+ get("/characters/#{character_id}/loyalty/points/", headers: headers, params: params)
34
+ end
35
+ alias get_characters_character_id_loyalty_points get_character_loyalty_points
36
+
37
+ # Return a list of offers from a specific corporation's loyalty store.
38
+ #
39
+ # @esi_version dev
40
+ # @esi_version legacy
41
+ # @esi_version v1
42
+ #
43
+ # @param corporation_id [Integer,String] An EVE corporation ID
44
+ # @param params [Hash] Additional query string parameters
45
+ # @param headers [Hash] Additional headers
46
+ #
47
+ # @raise [ESI::Errors::BadRequestError] Bad request
48
+ # @raise [ESI::Errors::NotFoundError] No loyalty point store found for the provided corporation
49
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
50
+ # @raise [ESI::Errors::InternalServerError] Internal server error
51
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
52
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
53
+ #
54
+ # @see https://esi.evetech.net/ui/#/Loyalty/get_loyalty_stores_corporation_id_offers
55
+ def get_loyalty_stores_corporation_offers(corporation_id:, params: {}, headers: {})
56
+ get("/loyalty/stores/#{corporation_id}/offers/", headers: headers, params: params)
57
+ end
58
+ alias get_loyalty_stores_corporation_id_offers get_loyalty_stores_corporation_offers
59
+ end
60
+ end
61
+ end