esi-sdk 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.editorconfig +9 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +36 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- data/.github/ISSUE_TEMPLATE/support.md +7 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +37 -0
- data/.github/dependabot.yml +17 -0
- data/.github/workflows/cicd.yml +181 -0
- data/.gitignore +11 -0
- data/.rspec +2 -0
- data/.rubocop.yml +36 -0
- data/.ruby-version +1 -0
- data/.yardext.rb +18 -0
- data/.yardopts +17 -0
- data/CHANGELOG.md +17 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/CONTRIBUTING.md +69 -0
- data/Gemfile +24 -0
- data/Gemfile.lock +141 -0
- data/LICENSE.txt +21 -0
- data/README.md +87 -0
- data/Rakefile +349 -0
- data/SECURITY.md +13 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/esi-sdk.gemspec +32 -0
- data/exe/esi-sdk +4 -0
- data/lib/esi/client/alliance.rb +104 -0
- data/lib/esi/client/assets.rb +179 -0
- data/lib/esi/client/bookmarks.rb +126 -0
- data/lib/esi/client/calendar.rb +139 -0
- data/lib/esi/client/character.rb +389 -0
- data/lib/esi/client/clones.rb +69 -0
- data/lib/esi/client/contacts.rb +277 -0
- data/lib/esi/client/contracts.rb +274 -0
- data/lib/esi/client/corporation.rb +626 -0
- data/lib/esi/client/dogma.rb +117 -0
- data/lib/esi/client/faction_warfare.rb +196 -0
- data/lib/esi/client/fittings.rb +93 -0
- data/lib/esi/client/fleets.rb +428 -0
- data/lib/esi/client/incursions.rb +30 -0
- data/lib/esi/client/industry.rb +237 -0
- data/lib/esi/client/insurance.rb +30 -0
- data/lib/esi/client/killmails.rb +95 -0
- data/lib/esi/client/location.rb +100 -0
- data/lib/esi/client/loyalty.rb +61 -0
- data/lib/esi/client/mail.rb +244 -0
- data/lib/esi/client/market.rb +302 -0
- data/lib/esi/client/opportunities.rb +124 -0
- data/lib/esi/client/planetary_interaction.rb +122 -0
- data/lib/esi/client/routes.rb +37 -0
- data/lib/esi/client/search.rb +68 -0
- data/lib/esi/client/skills.rb +97 -0
- data/lib/esi/client/sovereignty.rb +74 -0
- data/lib/esi/client/status.rb +31 -0
- data/lib/esi/client/universe.rb +640 -0
- data/lib/esi/client/user_interface.rb +145 -0
- data/lib/esi/client/wallet.rb +191 -0
- data/lib/esi/client/wars.rb +82 -0
- data/lib/esi/client.rb +225 -0
- data/lib/esi/errors.rb +51 -0
- data/lib/esi/version.rb +5 -0
- data/lib/esi-sdk.rb +8 -0
- data/release.config.js +32 -0
- data/yard/fulldoc/html/css/pygments-default.css +69 -0
- data/yard/fulldoc/html/setup.rb +6 -0
- data/yard/layout/html/setup.rb +6 -0
- metadata +156 -0
@@ -0,0 +1,277 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ESI
|
4
|
+
class Client
|
5
|
+
# ESI contacts operations.
|
6
|
+
module Contact
|
7
|
+
# Bulk delete contacts.
|
8
|
+
#
|
9
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
10
|
+
#
|
11
|
+
# @esi_scope esi-characters.write_contacts.v1
|
12
|
+
#
|
13
|
+
# @esi_version dev
|
14
|
+
# @esi_version v2
|
15
|
+
#
|
16
|
+
# @param character_id [Integer,String] An EVE character ID
|
17
|
+
# @param contact_ids [Array] A list of contacts to delete
|
18
|
+
# @param params [Hash] Additional query string parameters
|
19
|
+
# @param headers [Hash] Additional headers
|
20
|
+
#
|
21
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
22
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
23
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
24
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
25
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
26
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
27
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
28
|
+
#
|
29
|
+
# @see https://esi.evetech.net/ui/#/Contacts/delete_characters_character_id_contacts
|
30
|
+
def delete_character_contacts(character_id:, contact_ids:, params: {}, headers: {})
|
31
|
+
query_string = URI.encode_www_form([["contact_ids", contact_ids]])
|
32
|
+
delete("/characters/#{character_id}/contacts/?#{query_string}", headers: headers, params: params)
|
33
|
+
end
|
34
|
+
alias delete_characters_character_id_contacts delete_character_contacts
|
35
|
+
|
36
|
+
# Return custom labels for an alliance's contacts.
|
37
|
+
#
|
38
|
+
# This endpoint is cached for up to 300 seconds.
|
39
|
+
#
|
40
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
41
|
+
#
|
42
|
+
# @esi_scope esi-alliances.read_contacts.v1
|
43
|
+
#
|
44
|
+
# @esi_version dev
|
45
|
+
# @esi_version legacy
|
46
|
+
# @esi_version v1
|
47
|
+
#
|
48
|
+
# @param alliance_id [Integer,String] An EVE alliance 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/#/Contacts/get_alliances_alliance_id_contacts_labels
|
61
|
+
def get_alliance_contact_labels(alliance_id:, params: {}, headers: {})
|
62
|
+
get("/alliances/#{alliance_id}/contacts/labels/", headers: headers, params: params)
|
63
|
+
end
|
64
|
+
alias get_alliances_alliance_id_contacts_labels get_alliance_contact_labels
|
65
|
+
|
66
|
+
# Return contacts of an alliance.
|
67
|
+
#
|
68
|
+
# This endpoint is cached for up to 300 seconds.
|
69
|
+
#
|
70
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
71
|
+
#
|
72
|
+
# @esi_scope esi-alliances.read_contacts.v1
|
73
|
+
#
|
74
|
+
# @esi_version dev
|
75
|
+
# @esi_version v2
|
76
|
+
#
|
77
|
+
# @param alliance_id [Integer,String] An EVE alliance ID
|
78
|
+
# @param params [Hash] Additional query string parameters
|
79
|
+
# @param headers [Hash] Additional headers
|
80
|
+
#
|
81
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
82
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
83
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
84
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
85
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
86
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
87
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
88
|
+
#
|
89
|
+
# @see https://esi.evetech.net/ui/#/Contacts/get_alliances_alliance_id_contacts
|
90
|
+
def get_alliance_contacts(alliance_id:, params: {}, headers: {})
|
91
|
+
get("/alliances/#{alliance_id}/contacts/", headers: headers, params: params)
|
92
|
+
end
|
93
|
+
alias get_alliances_alliance_id_contacts get_alliance_contacts
|
94
|
+
|
95
|
+
# Return custom labels for a character's contacts.
|
96
|
+
#
|
97
|
+
# This endpoint is cached for up to 300 seconds.
|
98
|
+
#
|
99
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
100
|
+
#
|
101
|
+
# @esi_scope esi-characters.read_contacts.v1
|
102
|
+
#
|
103
|
+
# @esi_version dev
|
104
|
+
# @esi_version legacy
|
105
|
+
# @esi_version v1
|
106
|
+
#
|
107
|
+
# @param character_id [Integer,String] An EVE character ID
|
108
|
+
# @param params [Hash] Additional query string parameters
|
109
|
+
# @param headers [Hash] Additional headers
|
110
|
+
#
|
111
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
112
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
113
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
114
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
115
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
116
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
117
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
118
|
+
#
|
119
|
+
# @see https://esi.evetech.net/ui/#/Contacts/get_characters_character_id_contacts_labels
|
120
|
+
def get_character_contact_labels(character_id:, params: {}, headers: {})
|
121
|
+
get("/characters/#{character_id}/contacts/labels/", headers: headers, params: params)
|
122
|
+
end
|
123
|
+
alias get_characters_character_id_contacts_labels get_character_contact_labels
|
124
|
+
|
125
|
+
# Return contacts of a character.
|
126
|
+
#
|
127
|
+
# This endpoint is cached for up to 300 seconds.
|
128
|
+
#
|
129
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
130
|
+
#
|
131
|
+
# @esi_scope esi-characters.read_contacts.v1
|
132
|
+
#
|
133
|
+
# @esi_version dev
|
134
|
+
# @esi_version v2
|
135
|
+
#
|
136
|
+
# @param character_id [Integer,String] An EVE character ID
|
137
|
+
# @param params [Hash] Additional query string parameters
|
138
|
+
# @param headers [Hash] Additional headers
|
139
|
+
#
|
140
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
141
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
142
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
143
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
144
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
145
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
146
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
147
|
+
#
|
148
|
+
# @see https://esi.evetech.net/ui/#/Contacts/get_characters_character_id_contacts
|
149
|
+
def get_character_contacts(character_id:, params: {}, headers: {})
|
150
|
+
get("/characters/#{character_id}/contacts/", headers: headers, params: params)
|
151
|
+
end
|
152
|
+
alias get_characters_character_id_contacts get_character_contacts
|
153
|
+
|
154
|
+
# Return custom labels for a corporation's contacts.
|
155
|
+
#
|
156
|
+
# This endpoint is cached for up to 300 seconds.
|
157
|
+
#
|
158
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
159
|
+
#
|
160
|
+
# @esi_scope esi-corporations.read_contacts.v1
|
161
|
+
#
|
162
|
+
# @esi_version dev
|
163
|
+
# @esi_version legacy
|
164
|
+
# @esi_version v1
|
165
|
+
#
|
166
|
+
# @param corporation_id [Integer,String] An EVE corporation 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/#/Contacts/get_corporations_corporation_id_contacts_labels
|
179
|
+
def get_corporation_contact_labels(corporation_id:, params: {}, headers: {})
|
180
|
+
get("/corporations/#{corporation_id}/contacts/labels/", headers: headers, params: params)
|
181
|
+
end
|
182
|
+
alias get_corporations_corporation_id_contacts_labels get_corporation_contact_labels
|
183
|
+
|
184
|
+
# Return contacts of a corporation.
|
185
|
+
#
|
186
|
+
# This endpoint is cached for up to 300 seconds.
|
187
|
+
#
|
188
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
189
|
+
#
|
190
|
+
# @esi_scope esi-corporations.read_contacts.v1
|
191
|
+
#
|
192
|
+
# @esi_version dev
|
193
|
+
# @esi_version v2
|
194
|
+
#
|
195
|
+
# @param corporation_id [Integer,String] An EVE corporation ID
|
196
|
+
# @param params [Hash] Additional query string parameters
|
197
|
+
# @param headers [Hash] Additional headers
|
198
|
+
#
|
199
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
200
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
201
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
202
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
203
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
204
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
205
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
206
|
+
#
|
207
|
+
# @see https://esi.evetech.net/ui/#/Contacts/get_corporations_corporation_id_contacts
|
208
|
+
def get_corporation_contacts(corporation_id:, params: {}, headers: {})
|
209
|
+
get("/corporations/#{corporation_id}/contacts/", headers: headers, params: params)
|
210
|
+
end
|
211
|
+
alias get_corporations_corporation_id_contacts get_corporation_contacts
|
212
|
+
|
213
|
+
# Bulk add contacts with same settings.
|
214
|
+
#
|
215
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
216
|
+
#
|
217
|
+
# @esi_scope esi-characters.write_contacts.v1
|
218
|
+
#
|
219
|
+
# @esi_version dev
|
220
|
+
# @esi_version v2
|
221
|
+
#
|
222
|
+
# @param character_id [Integer,String] An EVE character ID
|
223
|
+
# @param contact_ids [Array] A list of contacts
|
224
|
+
# @param label_ids [Array] Add custom labels to the new contact
|
225
|
+
# @param standing [Number] Standing for the contact
|
226
|
+
# @param watched [Boolean] Whether the contact should be watched, note this is only effective on characters
|
227
|
+
# @param headers [Hash] Additional headers
|
228
|
+
#
|
229
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
230
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
231
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
232
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
233
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
234
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
235
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
236
|
+
# @raise [ESI::Errors::EveServerError] Internal error thrown from the EVE server
|
237
|
+
#
|
238
|
+
# @see https://esi.evetech.net/ui/#/Contacts/post_characters_character_id_contacts
|
239
|
+
def post_character_contacts(character_id:, contact_ids:, label_ids:, standing:, watched:, headers: {})
|
240
|
+
query_string = URI.encode_www_form([["label_ids", label_ids], ["standing", standing], ["watched", watched]])
|
241
|
+
post("/characters/#{character_id}/contacts/?#{query_string}", headers: headers, payload: contact_ids)
|
242
|
+
end
|
243
|
+
alias post_characters_character_id_contacts post_character_contacts
|
244
|
+
|
245
|
+
# Bulk edit contacts with same settings.
|
246
|
+
#
|
247
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
248
|
+
#
|
249
|
+
# @esi_scope esi-characters.write_contacts.v1
|
250
|
+
#
|
251
|
+
# @esi_version dev
|
252
|
+
# @esi_version v2
|
253
|
+
#
|
254
|
+
# @param character_id [Integer,String] An EVE character ID
|
255
|
+
# @param contact_ids [Array] A list of contacts
|
256
|
+
# @param label_ids [Array] Add custom labels to the contact
|
257
|
+
# @param standing [Number] Standing for the contact
|
258
|
+
# @param watched [Boolean] Whether the contact should be watched, note this is only effective on characters
|
259
|
+
# @param headers [Hash] Additional headers
|
260
|
+
#
|
261
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
262
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
263
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
264
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
265
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
266
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
267
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
268
|
+
#
|
269
|
+
# @see https://esi.evetech.net/ui/#/Contacts/put_characters_character_id_contacts
|
270
|
+
def put_character_contacts(character_id:, contact_ids:, label_ids:, standing:, watched:, headers: {})
|
271
|
+
query_string = URI.encode_www_form([["label_ids", label_ids], ["standing", standing], ["watched", watched]])
|
272
|
+
put("/characters/#{character_id}/contacts/?#{query_string}", headers: headers, payload: contact_ids)
|
273
|
+
end
|
274
|
+
alias put_characters_character_id_contacts put_character_contacts
|
275
|
+
end
|
276
|
+
end
|
277
|
+
end
|
@@ -0,0 +1,274 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ESI
|
4
|
+
class Client
|
5
|
+
# ESI contracts operations.
|
6
|
+
module Contract
|
7
|
+
# Lists bids on a particular auction contract.
|
8
|
+
#
|
9
|
+
# This endpoint is cached for up to 300 seconds.
|
10
|
+
#
|
11
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
12
|
+
#
|
13
|
+
# @esi_scope esi-contracts.read_character_contracts.v1
|
14
|
+
#
|
15
|
+
# @esi_version dev
|
16
|
+
# @esi_version legacy
|
17
|
+
# @esi_version v1
|
18
|
+
#
|
19
|
+
# @param character_id [Integer,String] An EVE character ID
|
20
|
+
# @param contract_id [Integer,String] ID of a contract
|
21
|
+
# @param params [Hash] Additional query string parameters
|
22
|
+
# @param headers [Hash] Additional headers
|
23
|
+
#
|
24
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
25
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
26
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
27
|
+
# @raise [ESI::Errors::NotFoundError] Not found
|
28
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
29
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
30
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
31
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
32
|
+
#
|
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)
|
36
|
+
end
|
37
|
+
alias get_characters_character_id_contracts_contract_id_bids get_character_contract_bids
|
38
|
+
|
39
|
+
# Lists items of a particular contract.
|
40
|
+
#
|
41
|
+
# This endpoint is cached for up to 3600 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,String] An EVE character ID
|
52
|
+
# @param contract_id [Integer,String] 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_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)
|
68
|
+
end
|
69
|
+
alias get_characters_character_id_contracts_contract_id_items get_character_contract_items
|
70
|
+
|
71
|
+
# 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
|
+
#
|
73
|
+
# This endpoint is cached for up to 300 seconds.
|
74
|
+
#
|
75
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
76
|
+
#
|
77
|
+
# @esi_scope esi-contracts.read_character_contracts.v1
|
78
|
+
#
|
79
|
+
# @esi_version dev
|
80
|
+
# @esi_version legacy
|
81
|
+
# @esi_version v1
|
82
|
+
#
|
83
|
+
# @param character_id [Integer,String] An EVE character ID
|
84
|
+
# @param params [Hash] Additional query string parameters
|
85
|
+
# @param headers [Hash] Additional headers
|
86
|
+
#
|
87
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
88
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
89
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
90
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
91
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
92
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
93
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
94
|
+
#
|
95
|
+
# @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)
|
98
|
+
end
|
99
|
+
alias get_characters_character_id_contracts get_character_contracts
|
100
|
+
|
101
|
+
# Lists bids on a public auction contract.
|
102
|
+
#
|
103
|
+
# This endpoint is cached for up to 300 seconds.
|
104
|
+
#
|
105
|
+
# @esi_version dev
|
106
|
+
# @esi_version legacy
|
107
|
+
# @esi_version v1
|
108
|
+
#
|
109
|
+
# @param contract_id [Integer,String] ID of a contract
|
110
|
+
# @param params [Hash] Additional query string parameters
|
111
|
+
# @param headers [Hash] Additional headers
|
112
|
+
#
|
113
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
114
|
+
# @raise [ESI::Errors::ForbiddenError] Not Authorized to see contract
|
115
|
+
# @raise [ESI::Errors::NotFoundError] Not found
|
116
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
117
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
118
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
119
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
120
|
+
#
|
121
|
+
# @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)
|
124
|
+
end
|
125
|
+
alias get_contracts_public_bids_contract_id get_contracts_public_bids_contract
|
126
|
+
|
127
|
+
# Lists items of a public contract.
|
128
|
+
#
|
129
|
+
# This endpoint is cached for up to 3600 seconds.
|
130
|
+
#
|
131
|
+
# @esi_version dev
|
132
|
+
# @esi_version legacy
|
133
|
+
# @esi_version v1
|
134
|
+
#
|
135
|
+
# @param contract_id [Integer,String] ID of a contract
|
136
|
+
# @param params [Hash] Additional query string parameters
|
137
|
+
# @param headers [Hash] Additional headers
|
138
|
+
#
|
139
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
140
|
+
# @raise [ESI::Errors::ForbiddenError] Not Authorized to see contract
|
141
|
+
# @raise [ESI::Errors::NotFoundError] Not found
|
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/#/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)
|
150
|
+
end
|
151
|
+
alias get_contracts_public_items_contract_id get_contracts_public_items_contract
|
152
|
+
|
153
|
+
# Returns a paginated list of all public contracts in the given region.
|
154
|
+
#
|
155
|
+
# This endpoint is cached for up to 1800 seconds.
|
156
|
+
#
|
157
|
+
# @esi_version dev
|
158
|
+
# @esi_version legacy
|
159
|
+
# @esi_version v1
|
160
|
+
#
|
161
|
+
# @param region_id [Integer,String] An EVE region id
|
162
|
+
# @param params [Hash] Additional query string parameters
|
163
|
+
# @param headers [Hash] Additional headers
|
164
|
+
#
|
165
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
166
|
+
# @raise [ESI::Errors::NotFoundError] Region not found
|
167
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
168
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
169
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
170
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
171
|
+
#
|
172
|
+
# @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)
|
175
|
+
end
|
176
|
+
alias get_contracts_public_region_id get_contracts_public_region
|
177
|
+
|
178
|
+
# Lists bids on a particular auction contract.
|
179
|
+
#
|
180
|
+
# This endpoint is cached for up to 3600 seconds.
|
181
|
+
#
|
182
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
183
|
+
#
|
184
|
+
# @esi_scope esi-contracts.read_corporation_contracts.v1
|
185
|
+
#
|
186
|
+
# @esi_version dev
|
187
|
+
# @esi_version legacy
|
188
|
+
# @esi_version v1
|
189
|
+
#
|
190
|
+
# @param contract_id [Integer,String] ID of a contract
|
191
|
+
# @param corporation_id [Integer,String] An EVE corporation ID
|
192
|
+
# @param params [Hash] Additional query string parameters
|
193
|
+
# @param headers [Hash] Additional headers
|
194
|
+
#
|
195
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
196
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
197
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
198
|
+
# @raise [ESI::Errors::NotFoundError] Not found
|
199
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
200
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
201
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
202
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
203
|
+
#
|
204
|
+
# @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)
|
207
|
+
end
|
208
|
+
alias get_corporations_corporation_id_contracts_contract_id_bids get_corporation_contract_bids
|
209
|
+
|
210
|
+
# Lists items of a particular contract.
|
211
|
+
#
|
212
|
+
# This endpoint is cached for up to 3600 seconds.
|
213
|
+
#
|
214
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
215
|
+
#
|
216
|
+
# @esi_scope esi-contracts.read_corporation_contracts.v1
|
217
|
+
#
|
218
|
+
# @esi_version dev
|
219
|
+
# @esi_version legacy
|
220
|
+
# @esi_version v1
|
221
|
+
#
|
222
|
+
# @param contract_id [Integer,String] ID of a contract
|
223
|
+
# @param corporation_id [Integer,String] An EVE corporation ID
|
224
|
+
# @param params [Hash] Additional query string parameters
|
225
|
+
# @param headers [Hash] Additional headers
|
226
|
+
#
|
227
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
228
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
229
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
230
|
+
# @raise [ESI::Errors::NotFoundError] Not found
|
231
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
232
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
233
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
234
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
235
|
+
# @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
|
+
#
|
237
|
+
# @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)
|
240
|
+
end
|
241
|
+
alias get_corporations_corporation_id_contracts_contract_id_items get_corporation_contract_items
|
242
|
+
|
243
|
+
# 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
|
+
#
|
245
|
+
# This endpoint is cached for up to 300 seconds.
|
246
|
+
#
|
247
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
248
|
+
#
|
249
|
+
# @esi_scope esi-contracts.read_corporation_contracts.v1
|
250
|
+
#
|
251
|
+
# @esi_version dev
|
252
|
+
# @esi_version legacy
|
253
|
+
# @esi_version v1
|
254
|
+
#
|
255
|
+
# @param corporation_id [Integer,String] An EVE corporation ID
|
256
|
+
# @param params [Hash] Additional query string parameters
|
257
|
+
# @param headers [Hash] Additional headers
|
258
|
+
#
|
259
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
260
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
261
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
262
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
263
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
264
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
265
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
266
|
+
#
|
267
|
+
# @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)
|
270
|
+
end
|
271
|
+
alias get_corporations_corporation_id_contracts get_corporation_contracts
|
272
|
+
end
|
273
|
+
end
|
274
|
+
end
|