esi-sdk 1.1.2 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/cicd.yml +17 -2
  3. data/.gitignore +2 -0
  4. data/CHANGELOG.md +38 -0
  5. data/Gemfile +1 -0
  6. data/Gemfile.lock +21 -40
  7. data/README.md +2 -0
  8. data/Rakefile +75 -37
  9. data/bin/console +1 -1
  10. data/esi-sdk.gemspec +2 -3
  11. data/lib/esi/client/alliance.rb +103 -10
  12. data/lib/esi/client/assets.rb +193 -18
  13. data/lib/esi/client/bookmarks.rb +130 -12
  14. data/lib/esi/client/calendar.rb +144 -16
  15. data/lib/esi/client/character.rb +414 -42
  16. data/lib/esi/client/clones.rb +65 -6
  17. data/lib/esi/client/contacts.rb +294 -30
  18. data/lib/esi/client/contracts.rb +294 -31
  19. data/lib/esi/client/corporation.rb +755 -152
  20. data/lib/esi/client/dogma.rb +118 -12
  21. data/lib/esi/client/faction_warfare.rb +198 -14
  22. data/lib/esi/client/fittings.rb +94 -10
  23. data/lib/esi/client/fleets.rb +469 -49
  24. data/lib/esi/client/incursions.rb +23 -1
  25. data/lib/esi/client/industry.rb +250 -23
  26. data/lib/esi/client/insurance.rb +23 -1
  27. data/lib/esi/client/killmails.rb +95 -10
  28. data/lib/esi/client/location.rb +98 -9
  29. data/lib/esi/client/loyalty.rb +57 -6
  30. data/lib/esi/client/mail.rb +262 -28
  31. data/lib/esi/client/market.rb +322 -34
  32. data/lib/esi/client/opportunities.rb +124 -13
  33. data/lib/esi/client/planetary_interaction.rb +124 -13
  34. data/lib/esi/client/routes.rb +34 -6
  35. data/lib/esi/client/search.rb +64 -7
  36. data/lib/esi/client/skills.rb +95 -9
  37. data/lib/esi/client/sovereignty.rb +69 -3
  38. data/lib/esi/client/status.rb +24 -1
  39. data/lib/esi/client/universe.rb +817 -194
  40. data/lib/esi/client/user_interface.rb +157 -14
  41. data/lib/esi/client/wallet.rb +199 -22
  42. data/lib/esi/client/wars.rb +81 -9
  43. data/lib/esi/client.rb +74 -82
  44. data/lib/esi/errors.rb +12 -1
  45. data/lib/esi/version.rb +1 -1
  46. data/package.json +19 -0
  47. data/release.config.js +2 -2
  48. data/yarn.lock +3695 -0
  49. metadata +10 -22
@@ -16,8 +16,8 @@ module ESI
16
16
  # @esi_version legacy
17
17
  # @esi_version v1
18
18
  #
19
- # @param character_id [Integer,String] An EVE character ID
20
- # @param contract_id [Integer,String] ID of a contract
19
+ # @param character_id [Integer] An EVE character ID
20
+ # @param contract_id [Integer] ID of a contract
21
21
  # @param params [Hash] Additional query string parameters
22
22
  # @param headers [Hash] Additional headers
23
23
  #
@@ -31,11 +31,42 @@ module ESI
31
31
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
32
32
  #
33
33
  # @see https://esi.evetech.net/ui/#/Contracts/get_characters_character_id_contracts_contract_id_bids
34
- def get_character_contract_bids(character_id:, contract_id:, params: {}, headers: {})
35
- get("/characters/#{character_id}/contracts/#{contract_id}/bids/", headers: headers, params: params)
34
+ def get_character_contract_bids(character_id:, contract_id:, headers: {}, params: {})
35
+ get_character_contract_bids_raw(character_id: character_id, contract_id: contract_id, headers: headers, params: params).json
36
36
  end
37
37
  alias get_characters_character_id_contracts_contract_id_bids get_character_contract_bids
38
38
 
39
+ # Lists bids on a particular auction contract.
40
+ #
41
+ # This endpoint is cached for up to 300 seconds.
42
+ #
43
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
44
+ #
45
+ # @esi_scope esi-contracts.read_character_contracts.v1
46
+ #
47
+ # @esi_version dev
48
+ # @esi_version legacy
49
+ # @esi_version v1
50
+ #
51
+ # @param character_id [Integer] An EVE character ID
52
+ # @param contract_id [Integer] ID of a contract
53
+ # @param params [Hash] Additional query string parameters
54
+ # @param headers [Hash] Additional headers
55
+ #
56
+ # @raise [ESI::Errors::BadRequestError] Bad request
57
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
58
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
59
+ # @raise [ESI::Errors::NotFoundError] Not found
60
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
61
+ # @raise [ESI::Errors::InternalServerError] Internal server error
62
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
63
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
64
+ #
65
+ # @see https://esi.evetech.net/ui/#/Contracts/get_characters_character_id_contracts_contract_id_bids
66
+ def get_character_contract_bids_raw(character_id:, contract_id:, headers: {}, params: {})
67
+ get("/characters/#{character_id}/contracts/#{contract_id}/bids/", headers: headers, params: params)
68
+ end
69
+
39
70
  # Lists items of a particular contract.
40
71
  #
41
72
  # This endpoint is cached for up to 3600 seconds.
@@ -48,8 +79,8 @@ module ESI
48
79
  # @esi_version legacy
49
80
  # @esi_version v1
50
81
  #
51
- # @param character_id [Integer,String] An EVE character ID
52
- # @param contract_id [Integer,String] ID of a contract
82
+ # @param character_id [Integer] An EVE character ID
83
+ # @param contract_id [Integer] ID of a contract
53
84
  # @param params [Hash] Additional query string parameters
54
85
  # @param headers [Hash] Additional headers
55
86
  #
@@ -63,11 +94,42 @@ module ESI
63
94
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
64
95
  #
65
96
  # @see https://esi.evetech.net/ui/#/Contracts/get_characters_character_id_contracts_contract_id_items
66
- def get_character_contract_items(character_id:, contract_id:, params: {}, headers: {})
67
- get("/characters/#{character_id}/contracts/#{contract_id}/items/", headers: headers, params: params)
97
+ def get_character_contract_items(character_id:, contract_id:, headers: {}, params: {})
98
+ get_character_contract_items_raw(character_id: character_id, contract_id: contract_id, headers: headers, params: params).json
68
99
  end
69
100
  alias get_characters_character_id_contracts_contract_id_items get_character_contract_items
70
101
 
102
+ # Lists items of a particular contract.
103
+ #
104
+ # This endpoint is cached for up to 3600 seconds.
105
+ #
106
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
107
+ #
108
+ # @esi_scope esi-contracts.read_character_contracts.v1
109
+ #
110
+ # @esi_version dev
111
+ # @esi_version legacy
112
+ # @esi_version v1
113
+ #
114
+ # @param character_id [Integer] An EVE character ID
115
+ # @param contract_id [Integer] ID of a contract
116
+ # @param params [Hash] Additional query string parameters
117
+ # @param headers [Hash] Additional headers
118
+ #
119
+ # @raise [ESI::Errors::BadRequestError] Bad request
120
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
121
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
122
+ # @raise [ESI::Errors::NotFoundError] Not found
123
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
124
+ # @raise [ESI::Errors::InternalServerError] Internal server error
125
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
126
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
127
+ #
128
+ # @see https://esi.evetech.net/ui/#/Contracts/get_characters_character_id_contracts_contract_id_items
129
+ def get_character_contract_items_raw(character_id:, contract_id:, headers: {}, params: {})
130
+ get("/characters/#{character_id}/contracts/#{contract_id}/items/", headers: headers, params: params)
131
+ end
132
+
71
133
  # Returns contracts available to a character, only if the character is issuer, acceptor or assignee. Only returns contracts no older than 30 days, or if the status is "in_progress".
72
134
  #
73
135
  # This endpoint is cached for up to 300 seconds.
@@ -80,7 +142,7 @@ module ESI
80
142
  # @esi_version legacy
81
143
  # @esi_version v1
82
144
  #
83
- # @param character_id [Integer,String] An EVE character ID
145
+ # @param character_id [Integer] An EVE character ID
84
146
  # @param params [Hash] Additional query string parameters
85
147
  # @param headers [Hash] Additional headers
86
148
  #
@@ -93,11 +155,41 @@ module ESI
93
155
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
94
156
  #
95
157
  # @see https://esi.evetech.net/ui/#/Contracts/get_characters_character_id_contracts
96
- def get_character_contracts(character_id:, params: {}, headers: {})
97
- get("/characters/#{character_id}/contracts/", headers: headers, params: params)
158
+ def get_character_contracts(character_id:, headers: {}, params: {})
159
+ responses = get_character_contracts_raw(character_id: character_id, headers: headers, params: params)
160
+ responses.map(&:json).reduce([], :concat)
98
161
  end
99
162
  alias get_characters_character_id_contracts get_character_contracts
100
163
 
164
+ # Returns contracts available to a character, only if the character is issuer, acceptor or assignee. Only returns contracts no older than 30 days, or if the status is "in_progress".
165
+ #
166
+ # This endpoint is cached for up to 300 seconds.
167
+ #
168
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
169
+ #
170
+ # @esi_scope esi-contracts.read_character_contracts.v1
171
+ #
172
+ # @esi_version dev
173
+ # @esi_version legacy
174
+ # @esi_version v1
175
+ #
176
+ # @param character_id [Integer] An EVE character ID
177
+ # @param params [Hash] Additional query string parameters
178
+ # @param headers [Hash] Additional headers
179
+ #
180
+ # @raise [ESI::Errors::BadRequestError] Bad request
181
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
182
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
183
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
184
+ # @raise [ESI::Errors::InternalServerError] Internal server error
185
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
186
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
187
+ #
188
+ # @see https://esi.evetech.net/ui/#/Contracts/get_characters_character_id_contracts
189
+ def get_character_contracts_raw(character_id:, headers: {}, params: {})
190
+ get("/characters/#{character_id}/contracts/", headers: headers, params: params)
191
+ end
192
+
101
193
  # Lists bids on a public auction contract.
102
194
  #
103
195
  # This endpoint is cached for up to 300 seconds.
@@ -106,7 +198,7 @@ module ESI
106
198
  # @esi_version legacy
107
199
  # @esi_version v1
108
200
  #
109
- # @param contract_id [Integer,String] ID of a contract
201
+ # @param contract_id [Integer] ID of a contract
110
202
  # @param params [Hash] Additional query string parameters
111
203
  # @param headers [Hash] Additional headers
112
204
  #
@@ -119,11 +211,37 @@ module ESI
119
211
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
120
212
  #
121
213
  # @see https://esi.evetech.net/ui/#/Contracts/get_contracts_public_bids_contract_id
122
- def get_contracts_public_bids_contract(contract_id:, params: {}, headers: {})
123
- get("/contracts/public/bids/#{contract_id}/", headers: headers, params: params)
214
+ def get_contracts_public_bids_contract(contract_id:, headers: {}, params: {})
215
+ responses = get_contracts_public_bids_contract_raw(contract_id: contract_id, headers: headers, params: params)
216
+ responses.map(&:json).reduce([], :concat)
124
217
  end
125
218
  alias get_contracts_public_bids_contract_id get_contracts_public_bids_contract
126
219
 
220
+ # Lists bids on a public auction contract.
221
+ #
222
+ # This endpoint is cached for up to 300 seconds.
223
+ #
224
+ # @esi_version dev
225
+ # @esi_version legacy
226
+ # @esi_version v1
227
+ #
228
+ # @param contract_id [Integer] ID of a contract
229
+ # @param params [Hash] Additional query string parameters
230
+ # @param headers [Hash] Additional headers
231
+ #
232
+ # @raise [ESI::Errors::BadRequestError] Bad request
233
+ # @raise [ESI::Errors::ForbiddenError] Not Authorized to see contract
234
+ # @raise [ESI::Errors::NotFoundError] Not found
235
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
236
+ # @raise [ESI::Errors::InternalServerError] Internal server error
237
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
238
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
239
+ #
240
+ # @see https://esi.evetech.net/ui/#/Contracts/get_contracts_public_bids_contract_id
241
+ def get_contracts_public_bids_contract_raw(contract_id:, headers: {}, params: {})
242
+ get("/contracts/public/bids/#{contract_id}/", headers: headers, params: params)
243
+ end
244
+
127
245
  # Lists items of a public contract.
128
246
  #
129
247
  # This endpoint is cached for up to 3600 seconds.
@@ -132,7 +250,7 @@ module ESI
132
250
  # @esi_version legacy
133
251
  # @esi_version v1
134
252
  #
135
- # @param contract_id [Integer,String] ID of a contract
253
+ # @param contract_id [Integer] ID of a contract
136
254
  # @param params [Hash] Additional query string parameters
137
255
  # @param headers [Hash] Additional headers
138
256
  #
@@ -145,11 +263,37 @@ module ESI
145
263
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
146
264
  #
147
265
  # @see https://esi.evetech.net/ui/#/Contracts/get_contracts_public_items_contract_id
148
- def get_contracts_public_items_contract(contract_id:, params: {}, headers: {})
149
- get("/contracts/public/items/#{contract_id}/", headers: headers, params: params)
266
+ def get_contracts_public_items_contract(contract_id:, headers: {}, params: {})
267
+ responses = get_contracts_public_items_contract_raw(contract_id: contract_id, headers: headers, params: params)
268
+ responses.map(&:json).reduce([], :concat)
150
269
  end
151
270
  alias get_contracts_public_items_contract_id get_contracts_public_items_contract
152
271
 
272
+ # Lists items of a public contract.
273
+ #
274
+ # This endpoint is cached for up to 3600 seconds.
275
+ #
276
+ # @esi_version dev
277
+ # @esi_version legacy
278
+ # @esi_version v1
279
+ #
280
+ # @param contract_id [Integer] ID of a contract
281
+ # @param params [Hash] Additional query string parameters
282
+ # @param headers [Hash] Additional headers
283
+ #
284
+ # @raise [ESI::Errors::BadRequestError] Bad request
285
+ # @raise [ESI::Errors::ForbiddenError] Not Authorized to see contract
286
+ # @raise [ESI::Errors::NotFoundError] Not found
287
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
288
+ # @raise [ESI::Errors::InternalServerError] Internal server error
289
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
290
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
291
+ #
292
+ # @see https://esi.evetech.net/ui/#/Contracts/get_contracts_public_items_contract_id
293
+ def get_contracts_public_items_contract_raw(contract_id:, headers: {}, params: {})
294
+ get("/contracts/public/items/#{contract_id}/", headers: headers, params: params)
295
+ end
296
+
153
297
  # Returns a paginated list of all public contracts in the given region.
154
298
  #
155
299
  # This endpoint is cached for up to 1800 seconds.
@@ -158,7 +302,7 @@ module ESI
158
302
  # @esi_version legacy
159
303
  # @esi_version v1
160
304
  #
161
- # @param region_id [Integer,String] An EVE region id
305
+ # @param region_id [Integer] An EVE region id
162
306
  # @param params [Hash] Additional query string parameters
163
307
  # @param headers [Hash] Additional headers
164
308
  #
@@ -170,11 +314,36 @@ module ESI
170
314
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
171
315
  #
172
316
  # @see https://esi.evetech.net/ui/#/Contracts/get_contracts_public_region_id
173
- def get_contracts_public_region(region_id:, params: {}, headers: {})
174
- get("/contracts/public/#{region_id}/", headers: headers, params: params)
317
+ def get_contracts_public_region(region_id:, headers: {}, params: {})
318
+ responses = get_contracts_public_region_raw(region_id: region_id, headers: headers, params: params)
319
+ responses.map(&:json).reduce([], :concat)
175
320
  end
176
321
  alias get_contracts_public_region_id get_contracts_public_region
177
322
 
323
+ # Returns a paginated list of all public contracts in the given region.
324
+ #
325
+ # This endpoint is cached for up to 1800 seconds.
326
+ #
327
+ # @esi_version dev
328
+ # @esi_version legacy
329
+ # @esi_version v1
330
+ #
331
+ # @param region_id [Integer] An EVE region id
332
+ # @param params [Hash] Additional query string parameters
333
+ # @param headers [Hash] Additional headers
334
+ #
335
+ # @raise [ESI::Errors::BadRequestError] Bad request
336
+ # @raise [ESI::Errors::NotFoundError] Region not found
337
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
338
+ # @raise [ESI::Errors::InternalServerError] Internal server error
339
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
340
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
341
+ #
342
+ # @see https://esi.evetech.net/ui/#/Contracts/get_contracts_public_region_id
343
+ def get_contracts_public_region_raw(region_id:, headers: {}, params: {})
344
+ get("/contracts/public/#{region_id}/", headers: headers, params: params)
345
+ end
346
+
178
347
  # Lists bids on a particular auction contract.
179
348
  #
180
349
  # This endpoint is cached for up to 3600 seconds.
@@ -187,8 +356,8 @@ module ESI
187
356
  # @esi_version legacy
188
357
  # @esi_version v1
189
358
  #
190
- # @param contract_id [Integer,String] ID of a contract
191
- # @param corporation_id [Integer,String] An EVE corporation ID
359
+ # @param contract_id [Integer] ID of a contract
360
+ # @param corporation_id [Integer] An EVE corporation ID
192
361
  # @param params [Hash] Additional query string parameters
193
362
  # @param headers [Hash] Additional headers
194
363
  #
@@ -202,11 +371,43 @@ module ESI
202
371
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
203
372
  #
204
373
  # @see https://esi.evetech.net/ui/#/Contracts/get_corporations_corporation_id_contracts_contract_id_bids
205
- def get_corporation_contract_bids(contract_id:, corporation_id:, params: {}, headers: {})
206
- get("/corporations/#{corporation_id}/contracts/#{contract_id}/bids/", headers: headers, params: params)
374
+ def get_corporation_contract_bids(contract_id:, corporation_id:, headers: {}, params: {})
375
+ responses = get_corporation_contract_bids_raw(contract_id: contract_id, corporation_id: corporation_id, headers: headers, params: params)
376
+ responses.map(&:json).reduce([], :concat)
207
377
  end
208
378
  alias get_corporations_corporation_id_contracts_contract_id_bids get_corporation_contract_bids
209
379
 
380
+ # Lists bids on a particular auction contract.
381
+ #
382
+ # This endpoint is cached for up to 3600 seconds.
383
+ #
384
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
385
+ #
386
+ # @esi_scope esi-contracts.read_corporation_contracts.v1
387
+ #
388
+ # @esi_version dev
389
+ # @esi_version legacy
390
+ # @esi_version v1
391
+ #
392
+ # @param contract_id [Integer] ID of a contract
393
+ # @param corporation_id [Integer] An EVE corporation ID
394
+ # @param params [Hash] Additional query string parameters
395
+ # @param headers [Hash] Additional headers
396
+ #
397
+ # @raise [ESI::Errors::BadRequestError] Bad request
398
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
399
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
400
+ # @raise [ESI::Errors::NotFoundError] Not found
401
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
402
+ # @raise [ESI::Errors::InternalServerError] Internal server error
403
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
404
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
405
+ #
406
+ # @see https://esi.evetech.net/ui/#/Contracts/get_corporations_corporation_id_contracts_contract_id_bids
407
+ def get_corporation_contract_bids_raw(contract_id:, corporation_id:, headers: {}, params: {})
408
+ get("/corporations/#{corporation_id}/contracts/#{contract_id}/bids/", headers: headers, params: params)
409
+ end
410
+
210
411
  # Lists items of a particular contract.
211
412
  #
212
413
  # This endpoint is cached for up to 3600 seconds.
@@ -219,8 +420,8 @@ module ESI
219
420
  # @esi_version legacy
220
421
  # @esi_version v1
221
422
  #
222
- # @param contract_id [Integer,String] ID of a contract
223
- # @param corporation_id [Integer,String] An EVE corporation ID
423
+ # @param contract_id [Integer] ID of a contract
424
+ # @param corporation_id [Integer] An EVE corporation ID
224
425
  # @param params [Hash] Additional query string parameters
225
426
  # @param headers [Hash] Additional headers
226
427
  #
@@ -235,11 +436,43 @@ module ESI
235
436
  # @raise [ESI::Errors::EveServerError] Internal error thrown from the EVE server. Most of the time this means you have hit an EVE server rate limit
236
437
  #
237
438
  # @see https://esi.evetech.net/ui/#/Contracts/get_corporations_corporation_id_contracts_contract_id_items
238
- def get_corporation_contract_items(contract_id:, corporation_id:, params: {}, headers: {})
239
- get("/corporations/#{corporation_id}/contracts/#{contract_id}/items/", headers: headers, params: params)
439
+ def get_corporation_contract_items(contract_id:, corporation_id:, headers: {}, params: {})
440
+ get_corporation_contract_items_raw(contract_id: contract_id, corporation_id: corporation_id, headers: headers, params: params).json
240
441
  end
241
442
  alias get_corporations_corporation_id_contracts_contract_id_items get_corporation_contract_items
242
443
 
444
+ # Lists items of a particular contract.
445
+ #
446
+ # This endpoint is cached for up to 3600 seconds.
447
+ #
448
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
449
+ #
450
+ # @esi_scope esi-contracts.read_corporation_contracts.v1
451
+ #
452
+ # @esi_version dev
453
+ # @esi_version legacy
454
+ # @esi_version v1
455
+ #
456
+ # @param contract_id [Integer] ID of a contract
457
+ # @param corporation_id [Integer] An EVE corporation ID
458
+ # @param params [Hash] Additional query string parameters
459
+ # @param headers [Hash] Additional headers
460
+ #
461
+ # @raise [ESI::Errors::BadRequestError] Bad request
462
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
463
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
464
+ # @raise [ESI::Errors::NotFoundError] Not found
465
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
466
+ # @raise [ESI::Errors::InternalServerError] Internal server error
467
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
468
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
469
+ # @raise [ESI::Errors::EveServerError] Internal error thrown from the EVE server. Most of the time this means you have hit an EVE server rate limit
470
+ #
471
+ # @see https://esi.evetech.net/ui/#/Contracts/get_corporations_corporation_id_contracts_contract_id_items
472
+ def get_corporation_contract_items_raw(contract_id:, corporation_id:, headers: {}, params: {})
473
+ get("/corporations/#{corporation_id}/contracts/#{contract_id}/items/", headers: headers, params: params)
474
+ end
475
+
243
476
  # Returns contracts available to a corporation, only if the corporation is issuer, acceptor or assignee. Only returns contracts no older than 30 days, or if the status is "in_progress".
244
477
  #
245
478
  # This endpoint is cached for up to 300 seconds.
@@ -252,7 +485,7 @@ module ESI
252
485
  # @esi_version legacy
253
486
  # @esi_version v1
254
487
  #
255
- # @param corporation_id [Integer,String] An EVE corporation ID
488
+ # @param corporation_id [Integer] An EVE corporation ID
256
489
  # @param params [Hash] Additional query string parameters
257
490
  # @param headers [Hash] Additional headers
258
491
  #
@@ -265,10 +498,40 @@ module ESI
265
498
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
266
499
  #
267
500
  # @see https://esi.evetech.net/ui/#/Contracts/get_corporations_corporation_id_contracts
268
- def get_corporation_contracts(corporation_id:, params: {}, headers: {})
269
- get("/corporations/#{corporation_id}/contracts/", headers: headers, params: params)
501
+ def get_corporation_contracts(corporation_id:, headers: {}, params: {})
502
+ responses = get_corporation_contracts_raw(corporation_id: corporation_id, headers: headers, params: params)
503
+ responses.map(&:json).reduce([], :concat)
270
504
  end
271
505
  alias get_corporations_corporation_id_contracts get_corporation_contracts
506
+
507
+ # Returns contracts available to a corporation, only if the corporation is issuer, acceptor or assignee. Only returns contracts no older than 30 days, or if the status is "in_progress".
508
+ #
509
+ # This endpoint is cached for up to 300 seconds.
510
+ #
511
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
512
+ #
513
+ # @esi_scope esi-contracts.read_corporation_contracts.v1
514
+ #
515
+ # @esi_version dev
516
+ # @esi_version legacy
517
+ # @esi_version v1
518
+ #
519
+ # @param corporation_id [Integer] An EVE corporation ID
520
+ # @param params [Hash] Additional query string parameters
521
+ # @param headers [Hash] Additional headers
522
+ #
523
+ # @raise [ESI::Errors::BadRequestError] Bad request
524
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
525
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
526
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
527
+ # @raise [ESI::Errors::InternalServerError] Internal server error
528
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
529
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
530
+ #
531
+ # @see https://esi.evetech.net/ui/#/Contracts/get_corporations_corporation_id_contracts
532
+ def get_corporation_contracts_raw(corporation_id:, headers: {}, params: {})
533
+ get("/corporations/#{corporation_id}/contracts/", headers: headers, params: params)
534
+ end
272
535
  end
273
536
  end
274
537
  end