esi-sdk 2.0.0 → 2.1.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.
@@ -24,10 +24,57 @@ module ESI
24
24
  #
25
25
  # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id
26
26
  def get_corporation(corporation_id:, headers: {}, params: {})
27
- get("/corporations/#{corporation_id}/", headers: headers, params: params).json
27
+ get_corporation_raw(corporation_id: corporation_id, headers: headers, params: params).json
28
28
  end
29
29
  alias get_corporations_corporation_id get_corporation
30
30
 
31
+ # Public information about a corporation.
32
+ #
33
+ # This endpoint is cached for up to 3600 seconds.
34
+ #
35
+ # @esi_version dev
36
+ # @esi_version v5
37
+ #
38
+ # @param corporation_id [Integer] An EVE corporation ID
39
+ # @param params [Hash] Additional query string parameters
40
+ # @param headers [Hash] Additional headers
41
+ #
42
+ # @raise [ESI::Errors::BadRequestError] Bad request
43
+ # @raise [ESI::Errors::NotFoundError] Corporation not found
44
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
45
+ # @raise [ESI::Errors::InternalServerError] Internal server error
46
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
47
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
48
+ #
49
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id
50
+ def get_corporation_raw(corporation_id:, headers: {}, params: {})
51
+ get("/corporations/#{corporation_id}/", headers: headers, params: params)
52
+ end
53
+
54
+ # Get a list of all the alliances a corporation has been a member of.
55
+ #
56
+ # This endpoint is cached for up to 3600 seconds.
57
+ #
58
+ # @esi_version dev
59
+ # @esi_version v3
60
+ #
61
+ # @param corporation_id [Integer] An EVE corporation ID
62
+ # @param params [Hash] Additional query string parameters
63
+ # @param headers [Hash] Additional headers
64
+ #
65
+ # @raise [ESI::Errors::BadRequestError] Bad request
66
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
67
+ # @raise [ESI::Errors::InternalServerError] Internal server error
68
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
69
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
70
+ #
71
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_alliancehistory
72
+ def get_corporation_alliancehistory(corporation_id:, headers: {}, params: {})
73
+ get_corporation_alliancehistory_raw(corporation_id: corporation_id, headers: headers, params: params).json
74
+ end
75
+ alias get_corporation_alliance_history get_corporation_alliancehistory
76
+ alias get_corporations_corporation_id_alliancehistory get_corporation_alliancehistory
77
+
31
78
  # Get a list of all the alliances a corporation has been a member of.
32
79
  #
33
80
  # This endpoint is cached for up to 3600 seconds.
@@ -45,23 +92,528 @@ module ESI
45
92
  # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
46
93
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
47
94
  #
48
- # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_alliancehistory
49
- def get_corporation_alliancehistory(corporation_id:, headers: {}, params: {})
50
- get("/corporations/#{corporation_id}/alliancehistory/", headers: headers, params: params).json
95
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_alliancehistory
96
+ def get_corporation_alliancehistory_raw(corporation_id:, headers: {}, params: {})
97
+ get("/corporations/#{corporation_id}/alliancehistory/", headers: headers, params: params)
98
+ end
99
+
100
+ # Returns a list of blueprints the corporation owns.
101
+ #
102
+ # This endpoint is cached for up to 3600 seconds.
103
+ #
104
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
105
+ #
106
+ # @esi_scope esi-corporations.read_blueprints.v1
107
+ #
108
+ # @esi_version dev
109
+ # @esi_version v3
110
+ #
111
+ # @param corporation_id [Integer] An EVE corporation ID
112
+ # @param params [Hash] Additional query string parameters
113
+ # @param headers [Hash] Additional headers
114
+ #
115
+ # @raise [ESI::Errors::BadRequestError] Bad request
116
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
117
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
118
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
119
+ # @raise [ESI::Errors::InternalServerError] Internal server error
120
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
121
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
122
+ #
123
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_blueprints
124
+ def get_corporation_blueprints(corporation_id:, headers: {}, params: {})
125
+ responses = get_corporation_blueprints_raw(corporation_id: corporation_id, headers: headers, params: params)
126
+ responses.map(&:json).reduce([], :concat)
127
+ end
128
+ alias get_corporations_corporation_id_blueprints get_corporation_blueprints
129
+
130
+ # Returns a list of blueprints the corporation owns.
131
+ #
132
+ # This endpoint is cached for up to 3600 seconds.
133
+ #
134
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
135
+ #
136
+ # @esi_scope esi-corporations.read_blueprints.v1
137
+ #
138
+ # @esi_version dev
139
+ # @esi_version v3
140
+ #
141
+ # @param corporation_id [Integer] An EVE corporation ID
142
+ # @param params [Hash] Additional query string parameters
143
+ # @param headers [Hash] Additional headers
144
+ #
145
+ # @raise [ESI::Errors::BadRequestError] Bad request
146
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
147
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
148
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
149
+ # @raise [ESI::Errors::InternalServerError] Internal server error
150
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
151
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
152
+ #
153
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_blueprints
154
+ def get_corporation_blueprints_raw(corporation_id:, headers: {}, params: {})
155
+ get("/corporations/#{corporation_id}/blueprints/", headers: headers, params: params)
156
+ end
157
+
158
+ # Returns logs recorded in the past seven days from all audit log secure containers (ALSC) owned by a given corporation.
159
+ #
160
+ # This endpoint is cached for up to 600 seconds.
161
+ #
162
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
163
+ #
164
+ # @esi_scope esi-corporations.read_container_logs.v1
165
+ #
166
+ # @esi_version dev
167
+ # @esi_version v3
168
+ #
169
+ # @param corporation_id [Integer] An EVE corporation ID
170
+ # @param params [Hash] Additional query string parameters
171
+ # @param headers [Hash] Additional headers
172
+ #
173
+ # @raise [ESI::Errors::BadRequestError] Bad request
174
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
175
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
176
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
177
+ # @raise [ESI::Errors::InternalServerError] Internal server error
178
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
179
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
180
+ #
181
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_containers_logs
182
+ def get_corporation_container_logs(corporation_id:, headers: {}, params: {})
183
+ responses = get_corporation_container_logs_raw(corporation_id: corporation_id, headers: headers, params: params)
184
+ responses.map(&:json).reduce([], :concat)
185
+ end
186
+ alias get_corporations_corporation_id_containers_logs get_corporation_container_logs
187
+
188
+ # Returns logs recorded in the past seven days from all audit log secure containers (ALSC) owned by a given corporation.
189
+ #
190
+ # This endpoint is cached for up to 600 seconds.
191
+ #
192
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
193
+ #
194
+ # @esi_scope esi-corporations.read_container_logs.v1
195
+ #
196
+ # @esi_version dev
197
+ # @esi_version v3
198
+ #
199
+ # @param corporation_id [Integer] An EVE corporation ID
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::UnauthorizedError] Unauthorized
205
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
206
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
207
+ # @raise [ESI::Errors::InternalServerError] Internal server error
208
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
209
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
210
+ #
211
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_containers_logs
212
+ def get_corporation_container_logs_raw(corporation_id:, headers: {}, params: {})
213
+ get("/corporations/#{corporation_id}/containers/logs/", headers: headers, params: params)
214
+ end
215
+
216
+ # Return corporation hangar and wallet division names, only show if a division is not using the default name.
217
+ #
218
+ # This endpoint is cached for up to 3600 seconds.
219
+ #
220
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
221
+ #
222
+ # @esi_scope esi-corporations.read_divisions.v1
223
+ #
224
+ # @esi_version dev
225
+ # @esi_version v2
226
+ #
227
+ # @param corporation_id [Integer] An EVE corporation ID
228
+ # @param params [Hash] Additional query string parameters
229
+ # @param headers [Hash] Additional headers
230
+ #
231
+ # @raise [ESI::Errors::BadRequestError] Bad request
232
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
233
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
234
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
235
+ # @raise [ESI::Errors::InternalServerError] Internal server error
236
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
237
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
238
+ #
239
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_divisions
240
+ def get_corporation_divisions(corporation_id:, headers: {}, params: {})
241
+ get_corporation_divisions_raw(corporation_id: corporation_id, headers: headers, params: params).json
242
+ end
243
+ alias get_corporations_corporation_id_divisions get_corporation_divisions
244
+
245
+ # Return corporation hangar and wallet division names, only show if a division is not using the default name.
246
+ #
247
+ # This endpoint is cached for up to 3600 seconds.
248
+ #
249
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
250
+ #
251
+ # @esi_scope esi-corporations.read_divisions.v1
252
+ #
253
+ # @esi_version dev
254
+ # @esi_version v2
255
+ #
256
+ # @param corporation_id [Integer] An EVE corporation ID
257
+ # @param params [Hash] Additional query string parameters
258
+ # @param headers [Hash] Additional headers
259
+ #
260
+ # @raise [ESI::Errors::BadRequestError] Bad request
261
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
262
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
263
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
264
+ # @raise [ESI::Errors::InternalServerError] Internal server error
265
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
266
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
267
+ #
268
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_divisions
269
+ def get_corporation_divisions_raw(corporation_id:, headers: {}, params: {})
270
+ get("/corporations/#{corporation_id}/divisions/", headers: headers, params: params)
271
+ end
272
+
273
+ # Return a corporation's facilities.
274
+ #
275
+ # This endpoint is cached for up to 3600 seconds.
276
+ #
277
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
278
+ #
279
+ # @esi_scope esi-corporations.read_facilities.v1
280
+ #
281
+ # @esi_version dev
282
+ # @esi_version v2
283
+ #
284
+ # @param corporation_id [Integer] An EVE corporation ID
285
+ # @param params [Hash] Additional query string parameters
286
+ # @param headers [Hash] Additional headers
287
+ #
288
+ # @raise [ESI::Errors::BadRequestError] Bad request
289
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
290
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
291
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
292
+ # @raise [ESI::Errors::InternalServerError] Internal server error
293
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
294
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
295
+ #
296
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_facilities
297
+ def get_corporation_facilities(corporation_id:, headers: {}, params: {})
298
+ get_corporation_facilities_raw(corporation_id: corporation_id, headers: headers, params: params).json
299
+ end
300
+ alias get_corporations_corporation_id_facilities get_corporation_facilities
301
+
302
+ # Return a corporation's facilities.
303
+ #
304
+ # This endpoint is cached for up to 3600 seconds.
305
+ #
306
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
307
+ #
308
+ # @esi_scope esi-corporations.read_facilities.v1
309
+ #
310
+ # @esi_version dev
311
+ # @esi_version v2
312
+ #
313
+ # @param corporation_id [Integer] An EVE corporation ID
314
+ # @param params [Hash] Additional query string parameters
315
+ # @param headers [Hash] Additional headers
316
+ #
317
+ # @raise [ESI::Errors::BadRequestError] Bad request
318
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
319
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
320
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
321
+ # @raise [ESI::Errors::InternalServerError] Internal server error
322
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
323
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
324
+ #
325
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_facilities
326
+ def get_corporation_facilities_raw(corporation_id:, headers: {}, params: {})
327
+ get("/corporations/#{corporation_id}/facilities/", headers: headers, params: params)
328
+ end
329
+
330
+ # Get the icon urls for a corporation.
331
+ #
332
+ # This endpoint is cached for up to 3600 seconds.
333
+ #
334
+ # @esi_version dev
335
+ # @esi_version v2
336
+ #
337
+ # @param corporation_id [Integer] An EVE corporation ID
338
+ # @param params [Hash] Additional query string parameters
339
+ # @param headers [Hash] Additional headers
340
+ #
341
+ # @raise [ESI::Errors::BadRequestError] Bad request
342
+ # @raise [ESI::Errors::NotFoundError] No image server for this datasource
343
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
344
+ # @raise [ESI::Errors::InternalServerError] Internal server error
345
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
346
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
347
+ #
348
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_icons
349
+ def get_corporation_icons(corporation_id:, headers: {}, params: {})
350
+ get_corporation_icons_raw(corporation_id: corporation_id, headers: headers, params: params).json
351
+ end
352
+ alias get_corporations_corporation_id_icons get_corporation_icons
353
+
354
+ # Get the icon urls for a corporation.
355
+ #
356
+ # This endpoint is cached for up to 3600 seconds.
357
+ #
358
+ # @esi_version dev
359
+ # @esi_version v2
360
+ #
361
+ # @param corporation_id [Integer] An EVE corporation ID
362
+ # @param params [Hash] Additional query string parameters
363
+ # @param headers [Hash] Additional headers
364
+ #
365
+ # @raise [ESI::Errors::BadRequestError] Bad request
366
+ # @raise [ESI::Errors::NotFoundError] No image server for this datasource
367
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
368
+ # @raise [ESI::Errors::InternalServerError] Internal server error
369
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
370
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
371
+ #
372
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_icons
373
+ def get_corporation_icons_raw(corporation_id:, headers: {}, params: {})
374
+ get("/corporations/#{corporation_id}/icons/", headers: headers, params: params)
375
+ end
376
+
377
+ # Returns a corporation's medals.
378
+ #
379
+ # This endpoint is cached for up to 3600 seconds.
380
+ #
381
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
382
+ #
383
+ # @esi_scope esi-corporations.read_medals.v1
384
+ #
385
+ # @esi_version dev
386
+ # @esi_version v2
387
+ #
388
+ # @param corporation_id [Integer] An EVE corporation ID
389
+ # @param params [Hash] Additional query string parameters
390
+ # @param headers [Hash] Additional headers
391
+ #
392
+ # @raise [ESI::Errors::BadRequestError] Bad request
393
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
394
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
395
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
396
+ # @raise [ESI::Errors::InternalServerError] Internal server error
397
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
398
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
399
+ #
400
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_medals
401
+ def get_corporation_medals(corporation_id:, headers: {}, params: {})
402
+ responses = get_corporation_medals_raw(corporation_id: corporation_id, headers: headers, params: params)
403
+ responses.map(&:json).reduce([], :concat)
404
+ end
405
+ alias get_corporations_corporation_id_medals get_corporation_medals
406
+
407
+ # Returns a corporation's medals.
408
+ #
409
+ # This endpoint is cached for up to 3600 seconds.
410
+ #
411
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
412
+ #
413
+ # @esi_scope esi-corporations.read_medals.v1
414
+ #
415
+ # @esi_version dev
416
+ # @esi_version v2
417
+ #
418
+ # @param corporation_id [Integer] An EVE corporation ID
419
+ # @param params [Hash] Additional query string parameters
420
+ # @param headers [Hash] Additional headers
421
+ #
422
+ # @raise [ESI::Errors::BadRequestError] Bad request
423
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
424
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
425
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
426
+ # @raise [ESI::Errors::InternalServerError] Internal server error
427
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
428
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
429
+ #
430
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_medals
431
+ def get_corporation_medals_raw(corporation_id:, headers: {}, params: {})
432
+ get("/corporations/#{corporation_id}/medals/", headers: headers, params: params)
433
+ end
434
+
435
+ # Returns medals issued by a corporation.
436
+ #
437
+ # This endpoint is cached for up to 3600 seconds.
438
+ #
439
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
440
+ #
441
+ # @esi_scope esi-corporations.read_medals.v1
442
+ #
443
+ # @esi_version dev
444
+ # @esi_version v2
445
+ #
446
+ # @param corporation_id [Integer] An EVE corporation ID
447
+ # @param params [Hash] Additional query string parameters
448
+ # @param headers [Hash] Additional headers
449
+ #
450
+ # @raise [ESI::Errors::BadRequestError] Bad request
451
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
452
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
453
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
454
+ # @raise [ESI::Errors::InternalServerError] Internal server error
455
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
456
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
457
+ #
458
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_medals_issued
459
+ def get_corporation_medals_issued(corporation_id:, headers: {}, params: {})
460
+ responses = get_corporation_medals_issued_raw(corporation_id: corporation_id, headers: headers, params: params)
461
+ responses.map(&:json).reduce([], :concat)
462
+ end
463
+ alias get_corporations_corporation_id_medals_issued get_corporation_medals_issued
464
+
465
+ # Returns medals issued by a corporation.
466
+ #
467
+ # This endpoint is cached for up to 3600 seconds.
468
+ #
469
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
470
+ #
471
+ # @esi_scope esi-corporations.read_medals.v1
472
+ #
473
+ # @esi_version dev
474
+ # @esi_version v2
475
+ #
476
+ # @param corporation_id [Integer] An EVE corporation ID
477
+ # @param params [Hash] Additional query string parameters
478
+ # @param headers [Hash] Additional headers
479
+ #
480
+ # @raise [ESI::Errors::BadRequestError] Bad request
481
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
482
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
483
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
484
+ # @raise [ESI::Errors::InternalServerError] Internal server error
485
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
486
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
487
+ #
488
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_medals_issued
489
+ def get_corporation_medals_issued_raw(corporation_id:, headers: {}, params: {})
490
+ get("/corporations/#{corporation_id}/medals/issued/", headers: headers, params: params)
491
+ end
492
+
493
+ # Returns a corporation's members' titles.
494
+ #
495
+ # This endpoint is cached for up to 3600 seconds.
496
+ #
497
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
498
+ #
499
+ # @esi_scope esi-corporations.read_titles.v1
500
+ #
501
+ # @esi_version dev
502
+ # @esi_version v2
503
+ #
504
+ # @param corporation_id [Integer] An EVE corporation ID
505
+ # @param params [Hash] Additional query string parameters
506
+ # @param headers [Hash] Additional headers
507
+ #
508
+ # @raise [ESI::Errors::BadRequestError] Bad request
509
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
510
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
511
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
512
+ # @raise [ESI::Errors::InternalServerError] Internal server error
513
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
514
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
515
+ #
516
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_members_titles
517
+ def get_corporation_member_titles(corporation_id:, headers: {}, params: {})
518
+ get_corporation_member_titles_raw(corporation_id: corporation_id, headers: headers, params: params).json
519
+ end
520
+ alias get_corporations_corporation_id_members_titles get_corporation_member_titles
521
+
522
+ # Returns a corporation's members' titles.
523
+ #
524
+ # This endpoint is cached for up to 3600 seconds.
525
+ #
526
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
527
+ #
528
+ # @esi_scope esi-corporations.read_titles.v1
529
+ #
530
+ # @esi_version dev
531
+ # @esi_version v2
532
+ #
533
+ # @param corporation_id [Integer] An EVE corporation ID
534
+ # @param params [Hash] Additional query string parameters
535
+ # @param headers [Hash] Additional headers
536
+ #
537
+ # @raise [ESI::Errors::BadRequestError] Bad request
538
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
539
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
540
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
541
+ # @raise [ESI::Errors::InternalServerError] Internal server error
542
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
543
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
544
+ #
545
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_members_titles
546
+ def get_corporation_member_titles_raw(corporation_id:, headers: {}, params: {})
547
+ get("/corporations/#{corporation_id}/members/titles/", headers: headers, params: params)
548
+ end
549
+
550
+ # Return the current member list of a corporation, the token's character need to be a member of the corporation.
551
+ #
552
+ # This endpoint is cached for up to 3600 seconds.
553
+ #
554
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
555
+ #
556
+ # @esi_scope esi-corporations.read_corporation_membership.v1
557
+ #
558
+ # @esi_version dev
559
+ # @esi_version v4
560
+ #
561
+ # @param corporation_id [Integer] An EVE corporation ID
562
+ # @param params [Hash] Additional query string parameters
563
+ # @param headers [Hash] Additional headers
564
+ #
565
+ # @raise [ESI::Errors::BadRequestError] Bad request
566
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
567
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
568
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
569
+ # @raise [ESI::Errors::InternalServerError] Internal server error
570
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
571
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
572
+ #
573
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_members
574
+ def get_corporation_members(corporation_id:, headers: {}, params: {})
575
+ get_corporation_members_raw(corporation_id: corporation_id, headers: headers, params: params).json
576
+ end
577
+ alias get_corporations_corporation_id_members get_corporation_members
578
+
579
+ # Return the current member list of a corporation, the token's character need to be a member of the corporation.
580
+ #
581
+ # This endpoint is cached for up to 3600 seconds.
582
+ #
583
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
584
+ #
585
+ # @esi_scope esi-corporations.read_corporation_membership.v1
586
+ #
587
+ # @esi_version dev
588
+ # @esi_version v4
589
+ #
590
+ # @param corporation_id [Integer] An EVE corporation ID
591
+ # @param params [Hash] Additional query string parameters
592
+ # @param headers [Hash] Additional headers
593
+ #
594
+ # @raise [ESI::Errors::BadRequestError] Bad request
595
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
596
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
597
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
598
+ # @raise [ESI::Errors::InternalServerError] Internal server error
599
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
600
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
601
+ #
602
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_members
603
+ def get_corporation_members_raw(corporation_id:, headers: {}, params: {})
604
+ get("/corporations/#{corporation_id}/members/", headers: headers, params: params)
51
605
  end
52
- alias get_corporation_alliance_history get_corporation_alliancehistory
53
- alias get_corporations_corporation_id_alliancehistory get_corporation_alliancehistory
54
606
 
55
- # Returns a list of blueprints the corporation owns.
607
+ # Return a corporation's member limit, not including CEO himself.
56
608
  #
57
609
  # This endpoint is cached for up to 3600 seconds.
58
610
  #
59
611
  # This endpoint requires authorization (see {ESI::Client#authorize}).
60
612
  #
61
- # @esi_scope esi-corporations.read_blueprints.v1
613
+ # @esi_scope esi-corporations.track_members.v1
62
614
  #
63
615
  # @esi_version dev
64
- # @esi_version v3
616
+ # @esi_version v2
65
617
  #
66
618
  # @param corporation_id [Integer] An EVE corporation ID
67
619
  # @param params [Hash] Additional query string parameters
@@ -75,23 +627,22 @@ module ESI
75
627
  # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
76
628
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
77
629
  #
78
- # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_blueprints
79
- def get_corporation_blueprints(corporation_id:, headers: {}, params: {})
80
- responses = get("/corporations/#{corporation_id}/blueprints/", headers: headers, params: params)
81
- responses.map(&:json).reduce([], :concat)
630
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_members_limit
631
+ def get_corporation_members_limit(corporation_id:, headers: {}, params: {})
632
+ get_corporation_members_limit_raw(corporation_id: corporation_id, headers: headers, params: params).json
82
633
  end
83
- alias get_corporations_corporation_id_blueprints get_corporation_blueprints
634
+ alias get_corporations_corporation_id_members_limit get_corporation_members_limit
84
635
 
85
- # Returns logs recorded in the past seven days from all audit log secure containers (ALSC) owned by a given corporation.
636
+ # Return a corporation's member limit, not including CEO himself.
86
637
  #
87
- # This endpoint is cached for up to 600 seconds.
638
+ # This endpoint is cached for up to 3600 seconds.
88
639
  #
89
640
  # This endpoint requires authorization (see {ESI::Client#authorize}).
90
641
  #
91
- # @esi_scope esi-corporations.read_container_logs.v1
642
+ # @esi_scope esi-corporations.track_members.v1
92
643
  #
93
644
  # @esi_version dev
94
- # @esi_version v3
645
+ # @esi_version v2
95
646
  #
96
647
  # @param corporation_id [Integer] An EVE corporation ID
97
648
  # @param params [Hash] Additional query string parameters
@@ -105,20 +656,18 @@ module ESI
105
656
  # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
106
657
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
107
658
  #
108
- # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_containers_logs
109
- def get_corporation_container_logs(corporation_id:, headers: {}, params: {})
110
- responses = get("/corporations/#{corporation_id}/containers/logs/", headers: headers, params: params)
111
- responses.map(&:json).reduce([], :concat)
659
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_members_limit
660
+ def get_corporation_members_limit_raw(corporation_id:, headers: {}, params: {})
661
+ get("/corporations/#{corporation_id}/members/limit/", headers: headers, params: params)
112
662
  end
113
- alias get_corporations_corporation_id_containers_logs get_corporation_container_logs
114
663
 
115
- # Return corporation hangar and wallet division names, only show if a division is not using the default name.
664
+ # Returns additional information about a corporation's members which helps tracking their activities.
116
665
  #
117
666
  # This endpoint is cached for up to 3600 seconds.
118
667
  #
119
668
  # This endpoint requires authorization (see {ESI::Client#authorize}).
120
669
  #
121
- # @esi_scope esi-corporations.read_divisions.v1
670
+ # @esi_scope esi-corporations.track_members.v1
122
671
  #
123
672
  # @esi_version dev
124
673
  # @esi_version v2
@@ -135,19 +684,19 @@ module ESI
135
684
  # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
136
685
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
137
686
  #
138
- # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_divisions
139
- def get_corporation_divisions(corporation_id:, headers: {}, params: {})
140
- get("/corporations/#{corporation_id}/divisions/", headers: headers, params: params).json
687
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_membertracking
688
+ def get_corporation_membertracking(corporation_id:, headers: {}, params: {})
689
+ get_corporation_membertracking_raw(corporation_id: corporation_id, headers: headers, params: params).json
141
690
  end
142
- alias get_corporations_corporation_id_divisions get_corporation_divisions
691
+ alias get_corporations_corporation_id_membertracking get_corporation_membertracking
143
692
 
144
- # Return a corporation's facilities.
693
+ # Returns additional information about a corporation's members which helps tracking their activities.
145
694
  #
146
695
  # This endpoint is cached for up to 3600 seconds.
147
696
  #
148
697
  # This endpoint requires authorization (see {ESI::Client#authorize}).
149
698
  #
150
- # @esi_scope esi-corporations.read_facilities.v1
699
+ # @esi_scope esi-corporations.track_members.v1
151
700
  #
152
701
  # @esi_version dev
153
702
  # @esi_version v2
@@ -164,43 +713,57 @@ module ESI
164
713
  # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
165
714
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
166
715
  #
167
- # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_facilities
168
- def get_corporation_facilities(corporation_id:, headers: {}, params: {})
169
- get("/corporations/#{corporation_id}/facilities/", headers: headers, params: params).json
716
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_membertracking
717
+ def get_corporation_membertracking_raw(corporation_id:, headers: {}, params: {})
718
+ get("/corporations/#{corporation_id}/membertracking/", headers: headers, params: params)
170
719
  end
171
- alias get_corporations_corporation_id_facilities get_corporation_facilities
172
720
 
173
- # Get the icon urls for a corporation.
721
+ # Get a list of npc corporations.
174
722
  #
175
- # This endpoint is cached for up to 3600 seconds.
723
+ # @esi_version dev
724
+ # @esi_version v2
725
+ #
726
+ # @param params [Hash] Additional query string parameters
727
+ # @param headers [Hash] Additional headers
728
+ #
729
+ # @raise [ESI::Errors::BadRequestError] Bad request
730
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
731
+ # @raise [ESI::Errors::InternalServerError] Internal server error
732
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
733
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
734
+ #
735
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_npccorps
736
+ def get_corporation_npccorps(headers: {}, params: {})
737
+ get_corporation_npccorps_raw(headers: headers, params: params).json
738
+ end
739
+ alias get_corporations_npccorps get_corporation_npccorps
740
+
741
+ # Get a list of npc corporations.
176
742
  #
177
743
  # @esi_version dev
178
744
  # @esi_version v2
179
745
  #
180
- # @param corporation_id [Integer] An EVE corporation ID
181
746
  # @param params [Hash] Additional query string parameters
182
747
  # @param headers [Hash] Additional headers
183
748
  #
184
749
  # @raise [ESI::Errors::BadRequestError] Bad request
185
- # @raise [ESI::Errors::NotFoundError] No image server for this datasource
186
750
  # @raise [ESI::Errors::ErrorLimitedError] Error limited
187
751
  # @raise [ESI::Errors::InternalServerError] Internal server error
188
752
  # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
189
753
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
190
754
  #
191
- # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_icons
192
- def get_corporation_icons(corporation_id:, headers: {}, params: {})
193
- get("/corporations/#{corporation_id}/icons/", headers: headers, params: params).json
755
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_npccorps
756
+ def get_corporation_npccorps_raw(headers: {}, params: {})
757
+ get("/corporations/npccorps/", headers: headers, params: params)
194
758
  end
195
- alias get_corporations_corporation_id_icons get_corporation_icons
196
759
 
197
- # Returns a corporation's medals.
760
+ # Return the roles of all members if the character has the personnel manager role or any grantable role.
198
761
  #
199
762
  # This endpoint is cached for up to 3600 seconds.
200
763
  #
201
764
  # This endpoint requires authorization (see {ESI::Client#authorize}).
202
765
  #
203
- # @esi_scope esi-corporations.read_medals.v1
766
+ # @esi_scope esi-corporations.read_corporation_membership.v1
204
767
  #
205
768
  # @esi_version dev
206
769
  # @esi_version v2
@@ -217,20 +780,19 @@ module ESI
217
780
  # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
218
781
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
219
782
  #
220
- # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_medals
221
- def get_corporation_medals(corporation_id:, headers: {}, params: {})
222
- responses = get("/corporations/#{corporation_id}/medals/", headers: headers, params: params)
223
- responses.map(&:json).reduce([], :concat)
783
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_roles
784
+ def get_corporation_roles(corporation_id:, headers: {}, params: {})
785
+ get_corporation_roles_raw(corporation_id: corporation_id, headers: headers, params: params).json
224
786
  end
225
- alias get_corporations_corporation_id_medals get_corporation_medals
787
+ alias get_corporations_corporation_id_roles get_corporation_roles
226
788
 
227
- # Returns medals issued by a corporation.
789
+ # Return the roles of all members if the character has the personnel manager role or any grantable role.
228
790
  #
229
791
  # This endpoint is cached for up to 3600 seconds.
230
792
  #
231
793
  # This endpoint requires authorization (see {ESI::Client#authorize}).
232
794
  #
233
- # @esi_scope esi-corporations.read_medals.v1
795
+ # @esi_scope esi-corporations.read_corporation_membership.v1
234
796
  #
235
797
  # @esi_version dev
236
798
  # @esi_version v2
@@ -247,20 +809,18 @@ module ESI
247
809
  # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
248
810
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
249
811
  #
250
- # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_medals_issued
251
- def get_corporation_medals_issued(corporation_id:, headers: {}, params: {})
252
- responses = get("/corporations/#{corporation_id}/medals/issued/", headers: headers, params: params)
253
- responses.map(&:json).reduce([], :concat)
812
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_roles
813
+ def get_corporation_roles_raw(corporation_id:, headers: {}, params: {})
814
+ get("/corporations/#{corporation_id}/roles/", headers: headers, params: params)
254
815
  end
255
- alias get_corporations_corporation_id_medals_issued get_corporation_medals_issued
256
816
 
257
- # Returns a corporation's members' titles.
817
+ # Return how roles have changed for a coporation's members, up to a month.
258
818
  #
259
819
  # This endpoint is cached for up to 3600 seconds.
260
820
  #
261
821
  # This endpoint requires authorization (see {ESI::Client#authorize}).
262
822
  #
263
- # @esi_scope esi-corporations.read_titles.v1
823
+ # @esi_scope esi-corporations.read_corporation_membership.v1
264
824
  #
265
825
  # @esi_version dev
266
826
  # @esi_version v2
@@ -277,13 +837,14 @@ module ESI
277
837
  # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
278
838
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
279
839
  #
280
- # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_members_titles
281
- def get_corporation_member_titles(corporation_id:, headers: {}, params: {})
282
- get("/corporations/#{corporation_id}/members/titles/", headers: headers, params: params).json
840
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_roles_history
841
+ def get_corporation_roles_history(corporation_id:, headers: {}, params: {})
842
+ responses = get_corporation_roles_history_raw(corporation_id: corporation_id, headers: headers, params: params)
843
+ responses.map(&:json).reduce([], :concat)
283
844
  end
284
- alias get_corporations_corporation_id_members_titles get_corporation_member_titles
845
+ alias get_corporations_corporation_id_roles_history get_corporation_roles_history
285
846
 
286
- # Return the current member list of a corporation, the token's character need to be a member of the corporation.
847
+ # Return how roles have changed for a coporation's members, up to a month.
287
848
  #
288
849
  # This endpoint is cached for up to 3600 seconds.
289
850
  #
@@ -292,7 +853,7 @@ module ESI
292
853
  # @esi_scope esi-corporations.read_corporation_membership.v1
293
854
  #
294
855
  # @esi_version dev
295
- # @esi_version v4
856
+ # @esi_version v2
296
857
  #
297
858
  # @param corporation_id [Integer] An EVE corporation ID
298
859
  # @param params [Hash] Additional query string parameters
@@ -306,22 +867,22 @@ module ESI
306
867
  # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
307
868
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
308
869
  #
309
- # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_members
310
- def get_corporation_members(corporation_id:, headers: {}, params: {})
311
- get("/corporations/#{corporation_id}/members/", headers: headers, params: params).json
870
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_roles_history
871
+ def get_corporation_roles_history_raw(corporation_id:, headers: {}, params: {})
872
+ get("/corporations/#{corporation_id}/roles/history/", headers: headers, params: params)
312
873
  end
313
- alias get_corporations_corporation_id_members get_corporation_members
314
874
 
315
- # Return a corporation's member limit, not including CEO himself.
875
+ # Return the current shareholders of a corporation.
316
876
  #
317
877
  # This endpoint is cached for up to 3600 seconds.
318
878
  #
319
879
  # This endpoint requires authorization (see {ESI::Client#authorize}).
320
880
  #
321
- # @esi_scope esi-corporations.track_members.v1
881
+ # @esi_scope esi-wallet.read_corporation_wallets.v1
322
882
  #
323
883
  # @esi_version dev
324
- # @esi_version v2
884
+ # @esi_version legacy
885
+ # @esi_version v1
325
886
  #
326
887
  # @param corporation_id [Integer] An EVE corporation ID
327
888
  # @param params [Hash] Additional query string parameters
@@ -335,22 +896,24 @@ module ESI
335
896
  # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
336
897
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
337
898
  #
338
- # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_members_limit
339
- def get_corporation_members_limit(corporation_id:, headers: {}, params: {})
340
- get("/corporations/#{corporation_id}/members/limit/", headers: headers, params: params).json
899
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_shareholders
900
+ def get_corporation_shareholders(corporation_id:, headers: {}, params: {})
901
+ responses = get_corporation_shareholders_raw(corporation_id: corporation_id, headers: headers, params: params)
902
+ responses.map(&:json).reduce([], :concat)
341
903
  end
342
- alias get_corporations_corporation_id_members_limit get_corporation_members_limit
904
+ alias get_corporations_corporation_id_shareholders get_corporation_shareholders
343
905
 
344
- # Returns additional information about a corporation's members which helps tracking their activities.
906
+ # Return the current shareholders of a corporation.
345
907
  #
346
908
  # This endpoint is cached for up to 3600 seconds.
347
909
  #
348
910
  # This endpoint requires authorization (see {ESI::Client#authorize}).
349
911
  #
350
- # @esi_scope esi-corporations.track_members.v1
912
+ # @esi_scope esi-wallet.read_corporation_wallets.v1
351
913
  #
352
914
  # @esi_version dev
353
- # @esi_version v2
915
+ # @esi_version legacy
916
+ # @esi_version v1
354
917
  #
355
918
  # @param corporation_id [Integer] An EVE corporation ID
356
919
  # @param params [Hash] Additional query string parameters
@@ -364,39 +927,48 @@ module ESI
364
927
  # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
365
928
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
366
929
  #
367
- # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_membertracking
368
- def get_corporation_membertracking(corporation_id:, headers: {}, params: {})
369
- get("/corporations/#{corporation_id}/membertracking/", headers: headers, params: params).json
930
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_shareholders
931
+ def get_corporation_shareholders_raw(corporation_id:, headers: {}, params: {})
932
+ get("/corporations/#{corporation_id}/shareholders/", headers: headers, params: params)
370
933
  end
371
- alias get_corporations_corporation_id_membertracking get_corporation_membertracking
372
934
 
373
- # Get a list of npc corporations.
935
+ # Return corporation standings from agents, NPC corporations, and factions.
936
+ #
937
+ # This endpoint is cached for up to 3600 seconds.
938
+ #
939
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
940
+ #
941
+ # @esi_scope esi-corporations.read_standings.v1
374
942
  #
375
943
  # @esi_version dev
376
944
  # @esi_version v2
377
945
  #
946
+ # @param corporation_id [Integer] An EVE corporation ID
378
947
  # @param params [Hash] Additional query string parameters
379
948
  # @param headers [Hash] Additional headers
380
949
  #
381
950
  # @raise [ESI::Errors::BadRequestError] Bad request
951
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
952
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
382
953
  # @raise [ESI::Errors::ErrorLimitedError] Error limited
383
954
  # @raise [ESI::Errors::InternalServerError] Internal server error
384
955
  # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
385
956
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
386
957
  #
387
- # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_npccorps
388
- def get_corporation_npccorps(headers: {}, params: {})
389
- get("/corporations/npccorps/", headers: headers, params: params).json
958
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_standings
959
+ def get_corporation_standings(corporation_id:, headers: {}, params: {})
960
+ responses = get_corporation_standings_raw(corporation_id: corporation_id, headers: headers, params: params)
961
+ responses.map(&:json).reduce([], :concat)
390
962
  end
391
- alias get_corporations_npccorps get_corporation_npccorps
963
+ alias get_corporations_corporation_id_standings get_corporation_standings
392
964
 
393
- # Return the roles of all members if the character has the personnel manager role or any grantable role.
965
+ # Return corporation standings from agents, NPC corporations, and factions.
394
966
  #
395
967
  # This endpoint is cached for up to 3600 seconds.
396
968
  #
397
969
  # This endpoint requires authorization (see {ESI::Client#authorize}).
398
970
  #
399
- # @esi_scope esi-corporations.read_corporation_membership.v1
971
+ # @esi_scope esi-corporations.read_standings.v1
400
972
  #
401
973
  # @esi_version dev
402
974
  # @esi_version v2
@@ -413,24 +985,25 @@ module ESI
413
985
  # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
414
986
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
415
987
  #
416
- # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_roles
417
- def get_corporation_roles(corporation_id:, headers: {}, params: {})
418
- get("/corporations/#{corporation_id}/roles/", headers: headers, params: params).json
988
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_standings
989
+ def get_corporation_standings_raw(corporation_id:, headers: {}, params: {})
990
+ get("/corporations/#{corporation_id}/standings/", headers: headers, params: params)
419
991
  end
420
- alias get_corporations_corporation_id_roles get_corporation_roles
421
992
 
422
- # Return how roles have changed for a coporation's members, up to a month.
993
+ # Returns various settings and fuels of a starbase (POS).
423
994
  #
424
995
  # This endpoint is cached for up to 3600 seconds.
425
996
  #
426
997
  # This endpoint requires authorization (see {ESI::Client#authorize}).
427
998
  #
428
- # @esi_scope esi-corporations.read_corporation_membership.v1
999
+ # @esi_scope esi-corporations.read_starbases.v1
429
1000
  #
430
1001
  # @esi_version dev
431
1002
  # @esi_version v2
432
1003
  #
433
1004
  # @param corporation_id [Integer] An EVE corporation ID
1005
+ # @param starbase_id [Integer] An EVE starbase (POS) ID
1006
+ # @param system_id [Integer] The solar system this starbase (POS) is located in,
434
1007
  # @param params [Hash] Additional query string parameters
435
1008
  # @param headers [Hash] Additional headers
436
1009
  #
@@ -442,26 +1015,26 @@ module ESI
442
1015
  # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
443
1016
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
444
1017
  #
445
- # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_roles_history
446
- def get_corporation_roles_history(corporation_id:, headers: {}, params: {})
447
- responses = get("/corporations/#{corporation_id}/roles/history/", headers: headers, params: params)
448
- responses.map(&:json).reduce([], :concat)
1018
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_starbases_starbase_id
1019
+ def get_corporation_starbase(corporation_id:, starbase_id:, system_id:, headers: {}, params: {})
1020
+ get_corporation_starbase_raw(corporation_id: corporation_id, starbase_id: starbase_id, system_id: system_id, headers: headers, params: params).json
449
1021
  end
450
- alias get_corporations_corporation_id_roles_history get_corporation_roles_history
1022
+ alias get_corporations_corporation_id_starbases_starbase_id get_corporation_starbase
451
1023
 
452
- # Return the current shareholders of a corporation.
1024
+ # Returns various settings and fuels of a starbase (POS).
453
1025
  #
454
1026
  # This endpoint is cached for up to 3600 seconds.
455
1027
  #
456
1028
  # This endpoint requires authorization (see {ESI::Client#authorize}).
457
1029
  #
458
- # @esi_scope esi-wallet.read_corporation_wallets.v1
1030
+ # @esi_scope esi-corporations.read_starbases.v1
459
1031
  #
460
1032
  # @esi_version dev
461
- # @esi_version legacy
462
- # @esi_version v1
1033
+ # @esi_version v2
463
1034
  #
464
1035
  # @param corporation_id [Integer] An EVE corporation ID
1036
+ # @param starbase_id [Integer] An EVE starbase (POS) ID
1037
+ # @param system_id [Integer] The solar system this starbase (POS) is located in,
465
1038
  # @param params [Hash] Additional query string parameters
466
1039
  # @param headers [Hash] Additional headers
467
1040
  #
@@ -473,20 +1046,19 @@ module ESI
473
1046
  # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
474
1047
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
475
1048
  #
476
- # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_shareholders
477
- def get_corporation_shareholders(corporation_id:, headers: {}, params: {})
478
- responses = get("/corporations/#{corporation_id}/shareholders/", headers: headers, params: params)
479
- responses.map(&:json).reduce([], :concat)
1049
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_starbases_starbase_id
1050
+ def get_corporation_starbase_raw(corporation_id:, starbase_id:, system_id:, headers: {}, params: {})
1051
+ params.merge!("system_id" => system_id)
1052
+ get("/corporations/#{corporation_id}/starbases/#{starbase_id}/", headers: headers, params: params)
480
1053
  end
481
- alias get_corporations_corporation_id_shareholders get_corporation_shareholders
482
1054
 
483
- # Return corporation standings from agents, NPC corporations, and factions.
1055
+ # Returns list of corporation starbases (POSes).
484
1056
  #
485
1057
  # This endpoint is cached for up to 3600 seconds.
486
1058
  #
487
1059
  # This endpoint requires authorization (see {ESI::Client#authorize}).
488
1060
  #
489
- # @esi_scope esi-corporations.read_standings.v1
1061
+ # @esi_scope esi-corporations.read_starbases.v1
490
1062
  #
491
1063
  # @esi_version dev
492
1064
  # @esi_version v2
@@ -503,14 +1075,14 @@ module ESI
503
1075
  # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
504
1076
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
505
1077
  #
506
- # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_standings
507
- def get_corporation_standings(corporation_id:, headers: {}, params: {})
508
- responses = get("/corporations/#{corporation_id}/standings/", headers: headers, params: params)
1078
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_starbases
1079
+ def get_corporation_starbases(corporation_id:, headers: {}, params: {})
1080
+ responses = get_corporation_starbases_raw(corporation_id: corporation_id, headers: headers, params: params)
509
1081
  responses.map(&:json).reduce([], :concat)
510
1082
  end
511
- alias get_corporations_corporation_id_standings get_corporation_standings
1083
+ alias get_corporations_corporation_id_starbases get_corporation_starbases
512
1084
 
513
- # Returns various settings and fuels of a starbase (POS).
1085
+ # Returns list of corporation starbases (POSes).
514
1086
  #
515
1087
  # This endpoint is cached for up to 3600 seconds.
516
1088
  #
@@ -522,8 +1094,6 @@ module ESI
522
1094
  # @esi_version v2
523
1095
  #
524
1096
  # @param corporation_id [Integer] An EVE corporation ID
525
- # @param starbase_id [Integer] An EVE starbase (POS) ID
526
- # @param system_id [Integer] The solar system this starbase (POS) is located in,
527
1097
  # @param params [Hash] Additional query string parameters
528
1098
  # @param headers [Hash] Additional headers
529
1099
  #
@@ -535,23 +1105,21 @@ module ESI
535
1105
  # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
536
1106
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
537
1107
  #
538
- # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_starbases_starbase_id
539
- def get_corporation_starbase(corporation_id:, starbase_id:, system_id:, headers: {}, params: {})
540
- params.merge!("system_id" => system_id)
541
- get("/corporations/#{corporation_id}/starbases/#{starbase_id}/", headers: headers, params: params).json
1108
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_starbases
1109
+ def get_corporation_starbases_raw(corporation_id:, headers: {}, params: {})
1110
+ get("/corporations/#{corporation_id}/starbases/", headers: headers, params: params)
542
1111
  end
543
- alias get_corporations_corporation_id_starbases_starbase_id get_corporation_starbase
544
1112
 
545
- # Returns list of corporation starbases (POSes).
1113
+ # Get a list of corporation structures. This route's version includes the changes to structures detailed in this blog: https://www.eveonline.com/article/upwell-2.0-structures-changes-coming-on-february-13th.
546
1114
  #
547
1115
  # This endpoint is cached for up to 3600 seconds.
548
1116
  #
549
1117
  # This endpoint requires authorization (see {ESI::Client#authorize}).
550
1118
  #
551
- # @esi_scope esi-corporations.read_starbases.v1
1119
+ # @esi_scope esi-corporations.read_structures.v1
552
1120
  #
553
1121
  # @esi_version dev
554
- # @esi_version v2
1122
+ # @esi_version v4
555
1123
  #
556
1124
  # @param corporation_id [Integer] An EVE corporation ID
557
1125
  # @param params [Hash] Additional query string parameters
@@ -565,12 +1133,12 @@ module ESI
565
1133
  # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
566
1134
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
567
1135
  #
568
- # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_starbases
569
- def get_corporation_starbases(corporation_id:, headers: {}, params: {})
570
- responses = get("/corporations/#{corporation_id}/starbases/", headers: headers, params: params)
1136
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_structures
1137
+ def get_corporation_structures(corporation_id:, headers: {}, params: {})
1138
+ responses = get_corporation_structures_raw(corporation_id: corporation_id, headers: headers, params: params)
571
1139
  responses.map(&:json).reduce([], :concat)
572
1140
  end
573
- alias get_corporations_corporation_id_starbases get_corporation_starbases
1141
+ alias get_corporations_corporation_id_structures get_corporation_structures
574
1142
 
575
1143
  # Get a list of corporation structures. This route's version includes the changes to structures detailed in this blog: https://www.eveonline.com/article/upwell-2.0-structures-changes-coming-on-february-13th.
576
1144
  #
@@ -596,11 +1164,9 @@ module ESI
596
1164
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
597
1165
  #
598
1166
  # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_structures
599
- def get_corporation_structures(corporation_id:, headers: {}, params: {})
600
- responses = get("/corporations/#{corporation_id}/structures/", headers: headers, params: params)
601
- responses.map(&:json).reduce([], :concat)
1167
+ def get_corporation_structures_raw(corporation_id:, headers: {}, params: {})
1168
+ get("/corporations/#{corporation_id}/structures/", headers: headers, params: params)
602
1169
  end
603
- alias get_corporations_corporation_id_structures get_corporation_structures
604
1170
 
605
1171
  # Returns a corporation's titles.
606
1172
  #
@@ -627,9 +1193,37 @@ module ESI
627
1193
  #
628
1194
  # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_titles
629
1195
  def get_corporation_titles(corporation_id:, headers: {}, params: {})
630
- get("/corporations/#{corporation_id}/titles/", headers: headers, params: params).json
1196
+ get_corporation_titles_raw(corporation_id: corporation_id, headers: headers, params: params).json
631
1197
  end
632
1198
  alias get_corporations_corporation_id_titles get_corporation_titles
1199
+
1200
+ # Returns a corporation's titles.
1201
+ #
1202
+ # This endpoint is cached for up to 3600 seconds.
1203
+ #
1204
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
1205
+ #
1206
+ # @esi_scope esi-corporations.read_titles.v1
1207
+ #
1208
+ # @esi_version dev
1209
+ # @esi_version v2
1210
+ #
1211
+ # @param corporation_id [Integer] An EVE corporation ID
1212
+ # @param params [Hash] Additional query string parameters
1213
+ # @param headers [Hash] Additional headers
1214
+ #
1215
+ # @raise [ESI::Errors::BadRequestError] Bad request
1216
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
1217
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
1218
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
1219
+ # @raise [ESI::Errors::InternalServerError] Internal server error
1220
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
1221
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
1222
+ #
1223
+ # @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_titles
1224
+ def get_corporation_titles_raw(corporation_id:, headers: {}, params: {})
1225
+ get("/corporations/#{corporation_id}/titles/", headers: headers, params: params)
1226
+ end
633
1227
  end
634
1228
  end
635
1229
  end