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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +1 -1
- data/Rakefile +21 -3
- data/lib/esi/client/alliance.rb +97 -4
- data/lib/esi/client/assets.rb +175 -6
- data/lib/esi/client/bookmarks.rb +118 -4
- data/lib/esi/client/calendar.rb +132 -5
- data/lib/esi/client/character.rb +383 -14
- data/lib/esi/client/clones.rb +61 -2
- data/lib/esi/client/contacts.rb +271 -12
- data/lib/esi/client/contracts.rb +266 -9
- data/lib/esi/client/corporation.rb +730 -136
- data/lib/esi/client/dogma.rb +111 -5
- data/lib/esi/client/faction_warfare.rb +192 -8
- data/lib/esi/client/fittings.rb +86 -3
- data/lib/esi/client/fleets.rb +427 -14
- data/lib/esi/client/incursions.rb +23 -1
- data/lib/esi/client/industry.rb +231 -9
- data/lib/esi/client/insurance.rb +23 -1
- data/lib/esi/client/killmails.rb +86 -3
- data/lib/esi/client/location.rb +92 -3
- data/lib/esi/client/loyalty.rb +53 -2
- data/lib/esi/client/mail.rb +239 -8
- data/lib/esi/client/market.rb +294 -12
- data/lib/esi/client/opportunities.rb +116 -5
- data/lib/esi/client/planetary_interaction.rb +114 -4
- data/lib/esi/client/routes.rb +29 -1
- data/lib/esi/client/search.rb +60 -3
- data/lib/esi/client/skills.rb +89 -3
- data/lib/esi/client/sovereignty.rb +69 -3
- data/lib/esi/client/status.rb +24 -1
- data/lib/esi/client/universe.rb +795 -176
- data/lib/esi/client/user_interface.rb +143 -5
- data/lib/esi/client/wallet.rb +183 -8
- data/lib/esi/client/wars.rb +74 -3
- data/lib/esi/version.rb +1 -1
- metadata +2 -2
@@ -30,8 +30,37 @@ module ESI
|
|
30
30
|
#
|
31
31
|
# @see https://esi.evetech.net/ui/#/User Interface/post_ui_autopilot_waypoint
|
32
32
|
def post_ui_autopilot_waypoint(add_to_beginning:, clear_other_waypoints:, destination_id:, headers: {}, params: {})
|
33
|
+
post_ui_autopilot_waypoint_raw(add_to_beginning: add_to_beginning, clear_other_waypoints: clear_other_waypoints, destination_id: destination_id, headers: headers, params: params).json
|
34
|
+
end
|
35
|
+
|
36
|
+
# Set a solar system as autopilot waypoint.
|
37
|
+
#
|
38
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
39
|
+
#
|
40
|
+
# @esi_scope esi-ui.write_waypoint.v1
|
41
|
+
#
|
42
|
+
# @esi_version dev
|
43
|
+
# @esi_version legacy
|
44
|
+
# @esi_version v2
|
45
|
+
#
|
46
|
+
# @param add_to_beginning [Boolean] Whether this solar system should be added to the beginning of all waypoints
|
47
|
+
# @param clear_other_waypoints [Boolean] Whether clean other waypoints beforing adding this one
|
48
|
+
# @param destination_id [Integer] The destination to travel to, can be solar system, station or structure's id
|
49
|
+
# @param params [Hash] Additional query string parameters
|
50
|
+
# @param headers [Hash] Additional headers
|
51
|
+
#
|
52
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
53
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
54
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
55
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
56
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
57
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
58
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
59
|
+
#
|
60
|
+
# @see https://esi.evetech.net/ui/#/User Interface/post_ui_autopilot_waypoint
|
61
|
+
def post_ui_autopilot_waypoint_raw(add_to_beginning:, clear_other_waypoints:, destination_id:, headers: {}, params: {})
|
33
62
|
params.merge!("add_to_beginning" => add_to_beginning, "clear_other_waypoints" => clear_other_waypoints, "destination_id" => destination_id)
|
34
|
-
post("/ui/autopilot/waypoint/", headers: headers, params: params)
|
63
|
+
post("/ui/autopilot/waypoint/", headers: headers, params: params)
|
35
64
|
end
|
36
65
|
|
37
66
|
# Open the contract window inside the client.
|
@@ -58,8 +87,35 @@ module ESI
|
|
58
87
|
#
|
59
88
|
# @see https://esi.evetech.net/ui/#/User Interface/post_ui_openwindow_contract
|
60
89
|
def post_ui_openwindow_contract(contract_id:, headers: {}, params: {})
|
90
|
+
post_ui_openwindow_contract_raw(contract_id: contract_id, headers: headers, params: params).json
|
91
|
+
end
|
92
|
+
|
93
|
+
# Open the contract window inside the client.
|
94
|
+
#
|
95
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
96
|
+
#
|
97
|
+
# @esi_scope esi-ui.open_window.v1
|
98
|
+
#
|
99
|
+
# @esi_version dev
|
100
|
+
# @esi_version legacy
|
101
|
+
# @esi_version v1
|
102
|
+
#
|
103
|
+
# @param contract_id [Integer] The contract to open
|
104
|
+
# @param params [Hash] Additional query string parameters
|
105
|
+
# @param headers [Hash] Additional headers
|
106
|
+
#
|
107
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
108
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
109
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
110
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
111
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
112
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
113
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
114
|
+
#
|
115
|
+
# @see https://esi.evetech.net/ui/#/User Interface/post_ui_openwindow_contract
|
116
|
+
def post_ui_openwindow_contract_raw(contract_id:, headers: {}, params: {})
|
61
117
|
params.merge!("contract_id" => contract_id)
|
62
|
-
post("/ui/openwindow/contract/", headers: headers, params: params)
|
118
|
+
post("/ui/openwindow/contract/", headers: headers, params: params)
|
63
119
|
end
|
64
120
|
|
65
121
|
# Open the information window for a character, corporation or alliance inside the client.
|
@@ -86,8 +142,35 @@ module ESI
|
|
86
142
|
#
|
87
143
|
# @see https://esi.evetech.net/ui/#/User Interface/post_ui_openwindow_information
|
88
144
|
def post_ui_openwindow_information(target_id:, headers: {}, params: {})
|
145
|
+
post_ui_openwindow_information_raw(target_id: target_id, headers: headers, params: params).json
|
146
|
+
end
|
147
|
+
|
148
|
+
# Open the information window for a character, corporation or alliance inside the client.
|
149
|
+
#
|
150
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
151
|
+
#
|
152
|
+
# @esi_scope esi-ui.open_window.v1
|
153
|
+
#
|
154
|
+
# @esi_version dev
|
155
|
+
# @esi_version legacy
|
156
|
+
# @esi_version v1
|
157
|
+
#
|
158
|
+
# @param target_id [Integer] The target to open
|
159
|
+
# @param params [Hash] Additional query string parameters
|
160
|
+
# @param headers [Hash] Additional headers
|
161
|
+
#
|
162
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
163
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
164
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
165
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
166
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
167
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
168
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
169
|
+
#
|
170
|
+
# @see https://esi.evetech.net/ui/#/User Interface/post_ui_openwindow_information
|
171
|
+
def post_ui_openwindow_information_raw(target_id:, headers: {}, params: {})
|
89
172
|
params.merge!("target_id" => target_id)
|
90
|
-
post("/ui/openwindow/information/", headers: headers, params: params)
|
173
|
+
post("/ui/openwindow/information/", headers: headers, params: params)
|
91
174
|
end
|
92
175
|
|
93
176
|
# Open the market details window for a specific typeID inside the client.
|
@@ -114,8 +197,35 @@ module ESI
|
|
114
197
|
#
|
115
198
|
# @see https://esi.evetech.net/ui/#/User Interface/post_ui_openwindow_marketdetails
|
116
199
|
def post_ui_openwindow_marketdetails(type_id:, headers: {}, params: {})
|
200
|
+
post_ui_openwindow_marketdetails_raw(type_id: type_id, headers: headers, params: params).json
|
201
|
+
end
|
202
|
+
|
203
|
+
# Open the market details window for a specific typeID inside the client.
|
204
|
+
#
|
205
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
206
|
+
#
|
207
|
+
# @esi_scope esi-ui.open_window.v1
|
208
|
+
#
|
209
|
+
# @esi_version dev
|
210
|
+
# @esi_version legacy
|
211
|
+
# @esi_version v1
|
212
|
+
#
|
213
|
+
# @param type_id [Integer] The item type to open in market window
|
214
|
+
# @param params [Hash] Additional query string parameters
|
215
|
+
# @param headers [Hash] Additional headers
|
216
|
+
#
|
217
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
218
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
219
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
220
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
221
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
222
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
223
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
224
|
+
#
|
225
|
+
# @see https://esi.evetech.net/ui/#/User Interface/post_ui_openwindow_marketdetails
|
226
|
+
def post_ui_openwindow_marketdetails_raw(type_id:, headers: {}, params: {})
|
117
227
|
params.merge!("type_id" => type_id)
|
118
|
-
post("/ui/openwindow/marketdetails/", headers: headers, params: params)
|
228
|
+
post("/ui/openwindow/marketdetails/", headers: headers, params: params)
|
119
229
|
end
|
120
230
|
|
121
231
|
# Open the New Mail window, according to settings from the request if applicable.
|
@@ -143,7 +253,35 @@ module ESI
|
|
143
253
|
#
|
144
254
|
# @see https://esi.evetech.net/ui/#/User Interface/post_ui_openwindow_newmail
|
145
255
|
def post_ui_openwindow_newmail(new_mail:, headers: {}, params: {})
|
146
|
-
|
256
|
+
post_ui_openwindow_newmail_raw(new_mail: new_mail, headers: headers, params: params).json
|
257
|
+
end
|
258
|
+
|
259
|
+
# Open the New Mail window, according to settings from the request if applicable.
|
260
|
+
#
|
261
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
262
|
+
#
|
263
|
+
# @esi_scope esi-ui.open_window.v1
|
264
|
+
#
|
265
|
+
# @esi_version dev
|
266
|
+
# @esi_version legacy
|
267
|
+
# @esi_version v1
|
268
|
+
#
|
269
|
+
# @param new_mail [Hash] The details of mail to create
|
270
|
+
# @param params [Hash] Additional query string parameters
|
271
|
+
# @param headers [Hash] Additional headers
|
272
|
+
#
|
273
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
274
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
275
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
276
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
277
|
+
# @raise [ESI::Errors::UnprocessableEntityError] Invalid request
|
278
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
279
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
280
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
281
|
+
#
|
282
|
+
# @see https://esi.evetech.net/ui/#/User Interface/post_ui_openwindow_newmail
|
283
|
+
def post_ui_openwindow_newmail_raw(new_mail:, headers: {}, params: {})
|
284
|
+
post("/ui/openwindow/newmail/", headers: headers, params: params, payload: new_mail)
|
147
285
|
end
|
148
286
|
end
|
149
287
|
end
|
data/lib/esi/client/wallet.rb
CHANGED
@@ -29,10 +29,38 @@ module ESI
|
|
29
29
|
#
|
30
30
|
# @see https://esi.evetech.net/ui/#/Wallet/get_characters_character_id_wallet
|
31
31
|
def get_character_wallet(character_id:, headers: {}, params: {})
|
32
|
-
|
32
|
+
get_character_wallet_raw(character_id: character_id, headers: headers, params: params).json
|
33
33
|
end
|
34
34
|
alias get_characters_character_id_wallet get_character_wallet
|
35
35
|
|
36
|
+
# Returns a character's wallet balance.
|
37
|
+
#
|
38
|
+
# This endpoint is cached for up to 120 seconds.
|
39
|
+
#
|
40
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
41
|
+
#
|
42
|
+
# @esi_scope esi-wallet.read_character_wallet.v1
|
43
|
+
#
|
44
|
+
# @esi_version legacy
|
45
|
+
# @esi_version v1
|
46
|
+
#
|
47
|
+
# @param character_id [Integer] An EVE character ID
|
48
|
+
# @param params [Hash] Additional query string parameters
|
49
|
+
# @param headers [Hash] Additional headers
|
50
|
+
#
|
51
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
52
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
53
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
54
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
55
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
56
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
57
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
58
|
+
#
|
59
|
+
# @see https://esi.evetech.net/ui/#/Wallet/get_characters_character_id_wallet
|
60
|
+
def get_character_wallet_raw(character_id:, headers: {}, params: {})
|
61
|
+
get("/characters/#{character_id}/wallet/", headers: headers, params: params)
|
62
|
+
end
|
63
|
+
|
36
64
|
# Retrieve the given character's wallet journal going 30 days back.
|
37
65
|
#
|
38
66
|
# This endpoint is cached for up to 3600 seconds.
|
@@ -58,11 +86,39 @@ module ESI
|
|
58
86
|
#
|
59
87
|
# @see https://esi.evetech.net/ui/#/Wallet/get_characters_character_id_wallet_journal
|
60
88
|
def get_character_wallet_journal(character_id:, headers: {}, params: {})
|
61
|
-
responses =
|
89
|
+
responses = get_character_wallet_journal_raw(character_id: character_id, headers: headers, params: params)
|
62
90
|
responses.map(&:json).reduce([], :concat)
|
63
91
|
end
|
64
92
|
alias get_characters_character_id_wallet_journal get_character_wallet_journal
|
65
93
|
|
94
|
+
# Retrieve the given character's wallet journal going 30 days back.
|
95
|
+
#
|
96
|
+
# This endpoint is cached for up to 3600 seconds.
|
97
|
+
#
|
98
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
99
|
+
#
|
100
|
+
# @esi_scope esi-wallet.read_character_wallet.v1
|
101
|
+
#
|
102
|
+
# @esi_version dev
|
103
|
+
# @esi_version v6
|
104
|
+
#
|
105
|
+
# @param character_id [Integer] An EVE character ID
|
106
|
+
# @param params [Hash] Additional query string parameters
|
107
|
+
# @param headers [Hash] Additional headers
|
108
|
+
#
|
109
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
110
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
111
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
112
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
113
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
114
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
115
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
116
|
+
#
|
117
|
+
# @see https://esi.evetech.net/ui/#/Wallet/get_characters_character_id_wallet_journal
|
118
|
+
def get_character_wallet_journal_raw(character_id:, headers: {}, params: {})
|
119
|
+
get("/characters/#{character_id}/wallet/journal/", headers: headers, params: params)
|
120
|
+
end
|
121
|
+
|
66
122
|
# Get wallet transactions of a character.
|
67
123
|
#
|
68
124
|
# This endpoint is cached for up to 3600 seconds.
|
@@ -90,11 +146,41 @@ module ESI
|
|
90
146
|
#
|
91
147
|
# @see https://esi.evetech.net/ui/#/Wallet/get_characters_character_id_wallet_transactions
|
92
148
|
def get_character_wallet_transactions(character_id:, from_id: nil, headers: {}, params: {})
|
93
|
-
|
94
|
-
get("/characters/#{character_id}/wallet/transactions/", headers: headers, params: params).json
|
149
|
+
get_character_wallet_transactions_raw(character_id: character_id, from_id: from_id, headers: headers, params: params).json
|
95
150
|
end
|
96
151
|
alias get_characters_character_id_wallet_transactions get_character_wallet_transactions
|
97
152
|
|
153
|
+
# Get wallet transactions of a character.
|
154
|
+
#
|
155
|
+
# This endpoint is cached for up to 3600 seconds.
|
156
|
+
#
|
157
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
158
|
+
#
|
159
|
+
# @esi_scope esi-wallet.read_character_wallet.v1
|
160
|
+
#
|
161
|
+
# @esi_version dev
|
162
|
+
# @esi_version legacy
|
163
|
+
# @esi_version v1
|
164
|
+
#
|
165
|
+
# @param character_id [Integer] An EVE character ID
|
166
|
+
# @param from_id [Integer] Only show transactions happened before the one referenced by this id
|
167
|
+
# @param params [Hash] Additional query string parameters
|
168
|
+
# @param headers [Hash] Additional headers
|
169
|
+
#
|
170
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
171
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
172
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
173
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
174
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
175
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
176
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
177
|
+
#
|
178
|
+
# @see https://esi.evetech.net/ui/#/Wallet/get_characters_character_id_wallet_transactions
|
179
|
+
def get_character_wallet_transactions_raw(character_id:, from_id: nil, headers: {}, params: {})
|
180
|
+
params.merge!("from_id" => from_id)
|
181
|
+
get("/characters/#{character_id}/wallet/transactions/", headers: headers, params: params)
|
182
|
+
end
|
183
|
+
|
98
184
|
# Get a corporation's wallets.
|
99
185
|
#
|
100
186
|
# This endpoint is cached for up to 300 seconds.
|
@@ -121,10 +207,39 @@ module ESI
|
|
121
207
|
#
|
122
208
|
# @see https://esi.evetech.net/ui/#/Wallet/get_corporations_corporation_id_wallets
|
123
209
|
def get_corporation_wallets(corporation_id:, headers: {}, params: {})
|
124
|
-
|
210
|
+
get_corporation_wallets_raw(corporation_id: corporation_id, headers: headers, params: params).json
|
125
211
|
end
|
126
212
|
alias get_corporations_corporation_id_wallets get_corporation_wallets
|
127
213
|
|
214
|
+
# Get a corporation's wallets.
|
215
|
+
#
|
216
|
+
# This endpoint is cached for up to 300 seconds.
|
217
|
+
#
|
218
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
219
|
+
#
|
220
|
+
# @esi_scope esi-wallet.read_corporation_wallets.v1
|
221
|
+
#
|
222
|
+
# @esi_version dev
|
223
|
+
# @esi_version legacy
|
224
|
+
# @esi_version v1
|
225
|
+
#
|
226
|
+
# @param corporation_id [Integer] An EVE corporation ID
|
227
|
+
# @param params [Hash] Additional query string parameters
|
228
|
+
# @param headers [Hash] Additional headers
|
229
|
+
#
|
230
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
231
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
232
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
233
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
234
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
235
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
236
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
237
|
+
#
|
238
|
+
# @see https://esi.evetech.net/ui/#/Wallet/get_corporations_corporation_id_wallets
|
239
|
+
def get_corporation_wallets_raw(corporation_id:, headers: {}, params: {})
|
240
|
+
get("/corporations/#{corporation_id}/wallets/", headers: headers, params: params)
|
241
|
+
end
|
242
|
+
|
128
243
|
# Retrieve the given corporation's wallet journal for the given division going 30 days back.
|
129
244
|
#
|
130
245
|
# This endpoint is cached for up to 3600 seconds.
|
@@ -151,11 +266,40 @@ module ESI
|
|
151
266
|
#
|
152
267
|
# @see https://esi.evetech.net/ui/#/Wallet/get_corporations_corporation_id_wallets_division_journal
|
153
268
|
def get_corporation_wallets_division_journal(corporation_id:, division:, headers: {}, params: {})
|
154
|
-
responses =
|
269
|
+
responses = get_corporation_wallets_division_journal_raw(corporation_id: corporation_id, division: division, headers: headers, params: params)
|
155
270
|
responses.map(&:json).reduce([], :concat)
|
156
271
|
end
|
157
272
|
alias get_corporations_corporation_id_wallets_division_journal get_corporation_wallets_division_journal
|
158
273
|
|
274
|
+
# Retrieve the given corporation's wallet journal for the given division going 30 days back.
|
275
|
+
#
|
276
|
+
# This endpoint is cached for up to 3600 seconds.
|
277
|
+
#
|
278
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
279
|
+
#
|
280
|
+
# @esi_scope esi-wallet.read_corporation_wallets.v1
|
281
|
+
#
|
282
|
+
# @esi_version dev
|
283
|
+
# @esi_version v4
|
284
|
+
#
|
285
|
+
# @param corporation_id [Integer] An EVE corporation ID
|
286
|
+
# @param division [Integer] Wallet key of the division to fetch journals from
|
287
|
+
# @param params [Hash] Additional query string parameters
|
288
|
+
# @param headers [Hash] Additional headers
|
289
|
+
#
|
290
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
291
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
292
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
293
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
294
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
295
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
296
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
297
|
+
#
|
298
|
+
# @see https://esi.evetech.net/ui/#/Wallet/get_corporations_corporation_id_wallets_division_journal
|
299
|
+
def get_corporation_wallets_division_journal_raw(corporation_id:, division:, headers: {}, params: {})
|
300
|
+
get("/corporations/#{corporation_id}/wallets/#{division}/journal/", headers: headers, params: params)
|
301
|
+
end
|
302
|
+
|
159
303
|
# Get wallet transactions of a corporation.
|
160
304
|
#
|
161
305
|
# This endpoint is cached for up to 3600 seconds.
|
@@ -184,10 +328,41 @@ module ESI
|
|
184
328
|
#
|
185
329
|
# @see https://esi.evetech.net/ui/#/Wallet/get_corporations_corporation_id_wallets_division_transactions
|
186
330
|
def get_corporation_wallets_division_transactions(corporation_id:, division:, from_id: nil, headers: {}, params: {})
|
187
|
-
|
188
|
-
get("/corporations/#{corporation_id}/wallets/#{division}/transactions/", headers: headers, params: params).json
|
331
|
+
get_corporation_wallets_division_transactions_raw(corporation_id: corporation_id, division: division, from_id: from_id, headers: headers, params: params).json
|
189
332
|
end
|
190
333
|
alias get_corporations_corporation_id_wallets_division_transactions get_corporation_wallets_division_transactions
|
334
|
+
|
335
|
+
# Get wallet transactions of a corporation.
|
336
|
+
#
|
337
|
+
# This endpoint is cached for up to 3600 seconds.
|
338
|
+
#
|
339
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
340
|
+
#
|
341
|
+
# @esi_scope esi-wallet.read_corporation_wallets.v1
|
342
|
+
#
|
343
|
+
# @esi_version dev
|
344
|
+
# @esi_version legacy
|
345
|
+
# @esi_version v1
|
346
|
+
#
|
347
|
+
# @param corporation_id [Integer] An EVE corporation ID
|
348
|
+
# @param division [Integer] Wallet key of the division to fetch journals from
|
349
|
+
# @param from_id [Integer] Only show journal entries happened before the transaction referenced by this id
|
350
|
+
# @param params [Hash] Additional query string parameters
|
351
|
+
# @param headers [Hash] Additional headers
|
352
|
+
#
|
353
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
354
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
355
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
356
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
357
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
358
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
359
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
360
|
+
#
|
361
|
+
# @see https://esi.evetech.net/ui/#/Wallet/get_corporations_corporation_id_wallets_division_transactions
|
362
|
+
def get_corporation_wallets_division_transactions_raw(corporation_id:, division:, from_id: nil, headers: {}, params: {})
|
363
|
+
params.merge!("from_id" => from_id)
|
364
|
+
get("/corporations/#{corporation_id}/wallets/#{division}/transactions/", headers: headers, params: params)
|
365
|
+
end
|
191
366
|
end
|
192
367
|
end
|
193
368
|
end
|
data/lib/esi/client/wars.rb
CHANGED
@@ -25,10 +25,34 @@ module ESI
|
|
25
25
|
#
|
26
26
|
# @see https://esi.evetech.net/ui/#/Wars/get_wars_war_id
|
27
27
|
def get_war(war_id:, headers: {}, params: {})
|
28
|
-
|
28
|
+
get_war_raw(war_id: war_id, headers: headers, params: params).json
|
29
29
|
end
|
30
30
|
alias get_wars_war_id get_war
|
31
31
|
|
32
|
+
# Return details about a war.
|
33
|
+
#
|
34
|
+
# This endpoint is cached for up to 3600 seconds.
|
35
|
+
#
|
36
|
+
# @esi_version dev
|
37
|
+
# @esi_version legacy
|
38
|
+
# @esi_version v1
|
39
|
+
#
|
40
|
+
# @param war_id [Integer] ID for a war
|
41
|
+
# @param params [Hash] Additional query string parameters
|
42
|
+
# @param headers [Hash] Additional headers
|
43
|
+
#
|
44
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
45
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
46
|
+
# @raise [ESI::Errors::UnprocessableEntityError] War not found
|
47
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
48
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
49
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
50
|
+
#
|
51
|
+
# @see https://esi.evetech.net/ui/#/Wars/get_wars_war_id
|
52
|
+
def get_war_raw(war_id:, headers: {}, params: {})
|
53
|
+
get("/wars/#{war_id}/", headers: headers, params: params)
|
54
|
+
end
|
55
|
+
|
32
56
|
# Return a list of kills related to a war.
|
33
57
|
#
|
34
58
|
# This endpoint is cached for up to 3600 seconds.
|
@@ -50,11 +74,35 @@ module ESI
|
|
50
74
|
#
|
51
75
|
# @see https://esi.evetech.net/ui/#/Wars/get_wars_war_id_killmails
|
52
76
|
def get_war_killmails(war_id:, headers: {}, params: {})
|
53
|
-
responses =
|
77
|
+
responses = get_war_killmails_raw(war_id: war_id, headers: headers, params: params)
|
54
78
|
responses.map(&:json).reduce([], :concat)
|
55
79
|
end
|
56
80
|
alias get_wars_war_id_killmails get_war_killmails
|
57
81
|
|
82
|
+
# Return a list of kills related to a war.
|
83
|
+
#
|
84
|
+
# This endpoint is cached for up to 3600 seconds.
|
85
|
+
#
|
86
|
+
# @esi_version dev
|
87
|
+
# @esi_version legacy
|
88
|
+
# @esi_version v1
|
89
|
+
#
|
90
|
+
# @param war_id [Integer] A valid war ID
|
91
|
+
# @param params [Hash] Additional query string parameters
|
92
|
+
# @param headers [Hash] Additional headers
|
93
|
+
#
|
94
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
95
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
96
|
+
# @raise [ESI::Errors::UnprocessableEntityError] War not found
|
97
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
98
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
99
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
100
|
+
#
|
101
|
+
# @see https://esi.evetech.net/ui/#/Wars/get_wars_war_id_killmails
|
102
|
+
def get_war_killmails_raw(war_id:, headers: {}, params: {})
|
103
|
+
get("/wars/#{war_id}/killmails/", headers: headers, params: params)
|
104
|
+
end
|
105
|
+
|
58
106
|
# Return a list of wars.
|
59
107
|
#
|
60
108
|
# This endpoint is cached for up to 3600 seconds.
|
@@ -75,8 +123,31 @@ module ESI
|
|
75
123
|
#
|
76
124
|
# @see https://esi.evetech.net/ui/#/Wars/get_wars
|
77
125
|
def get_wars(max_war_id: nil, headers: {}, params: {})
|
126
|
+
get_wars_raw(max_war_id: max_war_id, headers: headers, params: params).json
|
127
|
+
end
|
128
|
+
|
129
|
+
# Return a list of wars.
|
130
|
+
#
|
131
|
+
# This endpoint is cached for up to 3600 seconds.
|
132
|
+
#
|
133
|
+
# @esi_version dev
|
134
|
+
# @esi_version legacy
|
135
|
+
# @esi_version v1
|
136
|
+
#
|
137
|
+
# @param max_war_id [Integer] Only return wars with ID smaller than this
|
138
|
+
# @param params [Hash] Additional query string parameters
|
139
|
+
# @param headers [Hash] Additional headers
|
140
|
+
#
|
141
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
142
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
143
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
144
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
145
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
146
|
+
#
|
147
|
+
# @see https://esi.evetech.net/ui/#/Wars/get_wars
|
148
|
+
def get_wars_raw(max_war_id: nil, headers: {}, params: {})
|
78
149
|
params.merge!("max_war_id" => max_war_id)
|
79
|
-
get("/wars/", headers: headers, params: params)
|
150
|
+
get("/wars/", headers: headers, params: params)
|
80
151
|
end
|
81
152
|
end
|
82
153
|
end
|
data/lib/esi/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: esi-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bokobo Shahni
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-10-
|
11
|
+
date: 2021-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpx
|