esi-sdk 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,10 +32,41 @@ module ESI
32
32
  #
33
33
  # @see https://esi.evetech.net/ui/#/Contracts/get_characters_character_id_contracts_contract_id_bids
34
34
  def get_character_contract_bids(character_id:, contract_id:, headers: {}, params: {})
35
- get("/characters/#{character_id}/contracts/#{contract_id}/bids/", headers: headers, params: params).json
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.
@@ -64,10 +95,41 @@ module ESI
64
95
  #
65
96
  # @see https://esi.evetech.net/ui/#/Contracts/get_characters_character_id_contracts_contract_id_items
66
97
  def get_character_contract_items(character_id:, contract_id:, headers: {}, params: {})
67
- get("/characters/#{character_id}/contracts/#{contract_id}/items/", headers: headers, params: params).json
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.
@@ -94,11 +156,40 @@ module ESI
94
156
  #
95
157
  # @see https://esi.evetech.net/ui/#/Contracts/get_characters_character_id_contracts
96
158
  def get_character_contracts(character_id:, headers: {}, params: {})
97
- responses = get("/characters/#{character_id}/contracts/", headers: headers, params: params)
159
+ responses = get_character_contracts_raw(character_id: character_id, headers: headers, params: params)
98
160
  responses.map(&:json).reduce([], :concat)
99
161
  end
100
162
  alias get_characters_character_id_contracts get_character_contracts
101
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
+
102
193
  # Lists bids on a public auction contract.
103
194
  #
104
195
  # This endpoint is cached for up to 300 seconds.
@@ -121,11 +212,36 @@ module ESI
121
212
  #
122
213
  # @see https://esi.evetech.net/ui/#/Contracts/get_contracts_public_bids_contract_id
123
214
  def get_contracts_public_bids_contract(contract_id:, headers: {}, params: {})
124
- responses = get("/contracts/public/bids/#{contract_id}/", headers: headers, params: params)
215
+ responses = get_contracts_public_bids_contract_raw(contract_id: contract_id, headers: headers, params: params)
125
216
  responses.map(&:json).reduce([], :concat)
126
217
  end
127
218
  alias get_contracts_public_bids_contract_id get_contracts_public_bids_contract
128
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
+
129
245
  # Lists items of a public contract.
130
246
  #
131
247
  # This endpoint is cached for up to 3600 seconds.
@@ -148,11 +264,36 @@ module ESI
148
264
  #
149
265
  # @see https://esi.evetech.net/ui/#/Contracts/get_contracts_public_items_contract_id
150
266
  def get_contracts_public_items_contract(contract_id:, headers: {}, params: {})
151
- responses = get("/contracts/public/items/#{contract_id}/", headers: headers, params: params)
267
+ responses = get_contracts_public_items_contract_raw(contract_id: contract_id, headers: headers, params: params)
152
268
  responses.map(&:json).reduce([], :concat)
153
269
  end
154
270
  alias get_contracts_public_items_contract_id get_contracts_public_items_contract
155
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
+
156
297
  # Returns a paginated list of all public contracts in the given region.
157
298
  #
158
299
  # This endpoint is cached for up to 1800 seconds.
@@ -174,11 +315,35 @@ module ESI
174
315
  #
175
316
  # @see https://esi.evetech.net/ui/#/Contracts/get_contracts_public_region_id
176
317
  def get_contracts_public_region(region_id:, headers: {}, params: {})
177
- responses = get("/contracts/public/#{region_id}/", headers: headers, params: params)
318
+ responses = get_contracts_public_region_raw(region_id: region_id, headers: headers, params: params)
178
319
  responses.map(&:json).reduce([], :concat)
179
320
  end
180
321
  alias get_contracts_public_region_id get_contracts_public_region
181
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
+
182
347
  # Lists bids on a particular auction contract.
183
348
  #
184
349
  # This endpoint is cached for up to 3600 seconds.
@@ -207,11 +372,42 @@ module ESI
207
372
  #
208
373
  # @see https://esi.evetech.net/ui/#/Contracts/get_corporations_corporation_id_contracts_contract_id_bids
209
374
  def get_corporation_contract_bids(contract_id:, corporation_id:, headers: {}, params: {})
210
- responses = get("/corporations/#{corporation_id}/contracts/#{contract_id}/bids/", headers: headers, params: params)
375
+ responses = get_corporation_contract_bids_raw(contract_id: contract_id, corporation_id: corporation_id, headers: headers, params: params)
211
376
  responses.map(&:json).reduce([], :concat)
212
377
  end
213
378
  alias get_corporations_corporation_id_contracts_contract_id_bids get_corporation_contract_bids
214
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
+
215
411
  # Lists items of a particular contract.
216
412
  #
217
413
  # This endpoint is cached for up to 3600 seconds.
@@ -241,10 +437,42 @@ module ESI
241
437
  #
242
438
  # @see https://esi.evetech.net/ui/#/Contracts/get_corporations_corporation_id_contracts_contract_id_items
243
439
  def get_corporation_contract_items(contract_id:, corporation_id:, headers: {}, params: {})
244
- get("/corporations/#{corporation_id}/contracts/#{contract_id}/items/", headers: headers, params: params).json
440
+ get_corporation_contract_items_raw(contract_id: contract_id, corporation_id: corporation_id, headers: headers, params: params).json
245
441
  end
246
442
  alias get_corporations_corporation_id_contracts_contract_id_items get_corporation_contract_items
247
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
+
248
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".
249
477
  #
250
478
  # This endpoint is cached for up to 300 seconds.
@@ -271,10 +499,39 @@ module ESI
271
499
  #
272
500
  # @see https://esi.evetech.net/ui/#/Contracts/get_corporations_corporation_id_contracts
273
501
  def get_corporation_contracts(corporation_id:, headers: {}, params: {})
274
- responses = get("/corporations/#{corporation_id}/contracts/", headers: headers, params: params)
502
+ responses = get_corporation_contracts_raw(corporation_id: corporation_id, headers: headers, params: params)
275
503
  responses.map(&:json).reduce([], :concat)
276
504
  end
277
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
278
535
  end
279
536
  end
280
537
  end