esi-sdk 1.1.3 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/Gemfile.lock +7 -1
  4. data/README.md +15 -0
  5. data/Rakefile +30 -26
  6. data/esi-sdk.gemspec +1 -0
  7. data/lib/esi/client.rb +66 -44
  8. data/lib/esi/client/alliance.rb +7 -7
  9. data/lib/esi/client/assets.rb +20 -16
  10. data/lib/esi/client/bookmarks.rb +8 -8
  11. data/lib/esi/client/calendar.rb +15 -14
  12. data/lib/esi/client/character.rb +31 -29
  13. data/lib/esi/client/clones.rb +4 -4
  14. data/lib/esi/client/contacts.rb +26 -24
  15. data/lib/esi/client/contracts.rb +22 -22
  16. data/lib/esi/client/corporation.rb +46 -46
  17. data/lib/esi/client/dogma.rb +9 -9
  18. data/lib/esi/client/faction_warfare.rb +10 -10
  19. data/lib/esi/client/fittings.rb +9 -8
  20. data/lib/esi/client/fleets.rb +49 -42
  21. data/lib/esi/client/incursions.rb +1 -1
  22. data/lib/esi/client/industry.rb +19 -19
  23. data/lib/esi/client/insurance.rb +1 -1
  24. data/lib/esi/client/killmails.rb +7 -7
  25. data/lib/esi/client/location.rb +6 -6
  26. data/lib/esi/client/loyalty.rb +4 -4
  27. data/lib/esi/client/mail.rb +26 -23
  28. data/lib/esi/client/market.rb +25 -25
  29. data/lib/esi/client/opportunities.rb +8 -8
  30. data/lib/esi/client/planetary_interaction.rb +9 -9
  31. data/lib/esi/client/routes.rb +6 -6
  32. data/lib/esi/client/search.rb +7 -7
  33. data/lib/esi/client/skills.rb +6 -6
  34. data/lib/esi/client/sovereignty.rb +3 -3
  35. data/lib/esi/client/status.rb +1 -1
  36. data/lib/esi/client/universe.rb +51 -49
  37. data/lib/esi/client/user_interface.rb +19 -14
  38. data/lib/esi/client/wallet.rb +18 -18
  39. data/lib/esi/client/wars.rb +7 -7
  40. data/lib/esi/errors.rb +11 -0
  41. data/lib/esi/version.rb +1 -1
  42. metadata +16 -2
@@ -22,7 +22,7 @@ module ESI
22
22
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
23
23
  #
24
24
  # @see https://esi.evetech.net/ui/#/Incursions/get_incursions
25
- def get_incursions(params: {}, headers: {})
25
+ def get_incursions(headers: {}, params: {})
26
26
  get("/incursions/", headers: headers, params: params)
27
27
  end
28
28
  end
@@ -16,7 +16,7 @@ module ESI
16
16
  # @esi_version legacy
17
17
  # @esi_version v1
18
18
  #
19
- # @param character_id [Integer,String] An EVE character ID
19
+ # @param character_id [Integer] An EVE character ID
20
20
  # @param include_completed [Boolean] Whether to retrieve completed character industry jobs. Only includes jobs from the past 90 days
21
21
  # @param params [Hash] Additional query string parameters
22
22
  # @param headers [Hash] Additional headers
@@ -30,9 +30,9 @@ module ESI
30
30
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
31
31
  #
32
32
  # @see https://esi.evetech.net/ui/#/Industry/get_characters_character_id_industry_jobs
33
- def get_character_industry_jobs(character_id:, include_completed:, params: {}, headers: {})
34
- query_string = URI.encode_www_form([["include_completed", include_completed]])
35
- get("/characters/#{character_id}/industry/jobs/?#{query_string}", headers: headers, params: params)
33
+ def get_character_industry_jobs(character_id:, include_completed: nil, headers: {}, params: {})
34
+ params.merge!("include_completed" => include_completed)
35
+ get("/characters/#{character_id}/industry/jobs/", headers: headers, params: params)
36
36
  end
37
37
  alias get_characters_character_id_industry_jobs get_character_industry_jobs
38
38
 
@@ -48,7 +48,7 @@ module ESI
48
48
  # @esi_version legacy
49
49
  # @esi_version v1
50
50
  #
51
- # @param character_id [Integer,String] An EVE character ID
51
+ # @param character_id [Integer] An EVE character ID
52
52
  # @param params [Hash] Additional query string parameters
53
53
  # @param headers [Hash] Additional headers
54
54
  #
@@ -61,7 +61,7 @@ module ESI
61
61
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
62
62
  #
63
63
  # @see https://esi.evetech.net/ui/#/Industry/get_characters_character_id_mining
64
- def get_character_mining(character_id:, params: {}, headers: {})
64
+ def get_character_mining(character_id:, headers: {}, params: {})
65
65
  get("/characters/#{character_id}/mining/", headers: headers, params: params)
66
66
  end
67
67
  alias get_characters_character_id_mining get_character_mining
@@ -78,7 +78,7 @@ module ESI
78
78
  # @esi_version legacy
79
79
  # @esi_version v1
80
80
  #
81
- # @param corporation_id [Integer,String] An EVE corporation ID
81
+ # @param corporation_id [Integer] An EVE corporation ID
82
82
  # @param include_completed [Boolean] Whether to retrieve completed corporation industry jobs. Only includes jobs from the past 90 days
83
83
  # @param params [Hash] Additional query string parameters
84
84
  # @param headers [Hash] Additional headers
@@ -92,9 +92,9 @@ module ESI
92
92
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
93
93
  #
94
94
  # @see https://esi.evetech.net/ui/#/Industry/get_corporations_corporation_id_industry_jobs
95
- def get_corporation_industry_jobs(corporation_id:, include_completed:, params: {}, headers: {})
96
- query_string = URI.encode_www_form([["include_completed", include_completed]])
97
- get("/corporations/#{corporation_id}/industry/jobs/?#{query_string}", headers: headers, params: params)
95
+ def get_corporation_industry_jobs(corporation_id:, include_completed: nil, headers: {}, params: {})
96
+ params.merge!("include_completed" => include_completed)
97
+ get("/corporations/#{corporation_id}/industry/jobs/", headers: headers, params: params)
98
98
  end
99
99
  alias get_corporations_corporation_id_industry_jobs get_corporation_industry_jobs
100
100
 
@@ -110,7 +110,7 @@ module ESI
110
110
  # @esi_version legacy
111
111
  # @esi_version v1
112
112
  #
113
- # @param corporation_id [Integer,String] An EVE corporation ID
113
+ # @param corporation_id [Integer] An EVE corporation ID
114
114
  # @param params [Hash] Additional query string parameters
115
115
  # @param headers [Hash] Additional headers
116
116
  #
@@ -123,7 +123,7 @@ module ESI
123
123
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
124
124
  #
125
125
  # @see https://esi.evetech.net/ui/#/Industry/get_corporation_corporation_id_mining_extractions
126
- def get_corporation_mining_extractions(corporation_id:, params: {}, headers: {})
126
+ def get_corporation_mining_extractions(corporation_id:, headers: {}, params: {})
127
127
  get("/corporation/#{corporation_id}/mining/extractions/", headers: headers, params: params)
128
128
  end
129
129
  alias get_corporation_corporation_id_mining_extractions get_corporation_mining_extractions
@@ -140,8 +140,8 @@ module ESI
140
140
  # @esi_version legacy
141
141
  # @esi_version v1
142
142
  #
143
- # @param corporation_id [Integer,String] An EVE corporation ID
144
- # @param observer_id [Integer,String] A mining observer id
143
+ # @param corporation_id [Integer] An EVE corporation ID
144
+ # @param observer_id [Integer] A mining observer id
145
145
  # @param params [Hash] Additional query string parameters
146
146
  # @param headers [Hash] Additional headers
147
147
  #
@@ -154,7 +154,7 @@ module ESI
154
154
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
155
155
  #
156
156
  # @see https://esi.evetech.net/ui/#/Industry/get_corporation_corporation_id_mining_observers_observer_id
157
- def get_corporation_mining_observer(corporation_id:, observer_id:, params: {}, headers: {})
157
+ def get_corporation_mining_observer(corporation_id:, observer_id:, headers: {}, params: {})
158
158
  get("/corporation/#{corporation_id}/mining/observers/#{observer_id}/", headers: headers, params: params)
159
159
  end
160
160
  alias get_corporation_corporation_id_mining_observers_observer_id get_corporation_mining_observer
@@ -171,7 +171,7 @@ module ESI
171
171
  # @esi_version legacy
172
172
  # @esi_version v1
173
173
  #
174
- # @param corporation_id [Integer,String] An EVE corporation ID
174
+ # @param corporation_id [Integer] An EVE corporation ID
175
175
  # @param params [Hash] Additional query string parameters
176
176
  # @param headers [Hash] Additional headers
177
177
  #
@@ -184,7 +184,7 @@ module ESI
184
184
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
185
185
  #
186
186
  # @see https://esi.evetech.net/ui/#/Industry/get_corporation_corporation_id_mining_observers
187
- def get_corporation_mining_observers(corporation_id:, params: {}, headers: {})
187
+ def get_corporation_mining_observers(corporation_id:, headers: {}, params: {})
188
188
  get("/corporation/#{corporation_id}/mining/observers/", headers: headers, params: params)
189
189
  end
190
190
  alias get_corporation_corporation_id_mining_observers get_corporation_mining_observers
@@ -207,7 +207,7 @@ module ESI
207
207
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
208
208
  #
209
209
  # @see https://esi.evetech.net/ui/#/Industry/get_industry_facilities
210
- def get_industry_facilities(params: {}, headers: {})
210
+ def get_industry_facilities(headers: {}, params: {})
211
211
  get("/industry/facilities/", headers: headers, params: params)
212
212
  end
213
213
 
@@ -229,7 +229,7 @@ module ESI
229
229
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
230
230
  #
231
231
  # @see https://esi.evetech.net/ui/#/Industry/get_industry_systems
232
- def get_industry_systems(params: {}, headers: {})
232
+ def get_industry_systems(headers: {}, params: {})
233
233
  get("/industry/systems/", headers: headers, params: params)
234
234
  end
235
235
  end
@@ -22,7 +22,7 @@ module ESI
22
22
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
23
23
  #
24
24
  # @see https://esi.evetech.net/ui/#/Insurance/get_insurance_prices
25
- def get_insurance_prices(params: {}, headers: {})
25
+ def get_insurance_prices(headers: {}, params: {})
26
26
  get("/insurance/prices/", headers: headers, params: params)
27
27
  end
28
28
  end
@@ -16,7 +16,7 @@ module ESI
16
16
  # @esi_version legacy
17
17
  # @esi_version v1
18
18
  #
19
- # @param character_id [Integer,String] An EVE character ID
19
+ # @param character_id [Integer] An EVE character ID
20
20
  # @param params [Hash] Additional query string parameters
21
21
  # @param headers [Hash] Additional headers
22
22
  #
@@ -29,7 +29,7 @@ module ESI
29
29
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
30
30
  #
31
31
  # @see https://esi.evetech.net/ui/#/Killmails/get_characters_character_id_killmails_recent
32
- def get_character_killmails_recent(character_id:, params: {}, headers: {})
32
+ def get_character_killmails_recent(character_id:, headers: {}, params: {})
33
33
  get("/characters/#{character_id}/killmails/recent/", headers: headers, params: params)
34
34
  end
35
35
  alias get_characters_character_id_killmails_recent get_character_killmails_recent
@@ -46,7 +46,7 @@ module ESI
46
46
  # @esi_version legacy
47
47
  # @esi_version v1
48
48
  #
49
- # @param corporation_id [Integer,String] An EVE corporation ID
49
+ # @param corporation_id [Integer] An EVE corporation ID
50
50
  # @param params [Hash] Additional query string parameters
51
51
  # @param headers [Hash] Additional headers
52
52
  #
@@ -59,7 +59,7 @@ module ESI
59
59
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
60
60
  #
61
61
  # @see https://esi.evetech.net/ui/#/Killmails/get_corporations_corporation_id_killmails_recent
62
- def get_corporation_killmails_recent(corporation_id:, params: {}, headers: {})
62
+ def get_corporation_killmails_recent(corporation_id:, headers: {}, params: {})
63
63
  get("/corporations/#{corporation_id}/killmails/recent/", headers: headers, params: params)
64
64
  end
65
65
  alias get_corporations_corporation_id_killmails_recent get_corporation_killmails_recent
@@ -72,8 +72,8 @@ module ESI
72
72
  # @esi_version legacy
73
73
  # @esi_version v1
74
74
  #
75
- # @param killmail_hash [Integer,String] The killmail hash for verification
76
- # @param killmail_id [Integer,String] The killmail ID to be queried
75
+ # @param killmail_hash [String] The killmail hash for verification
76
+ # @param killmail_id [Integer] The killmail ID to be queried
77
77
  # @param params [Hash] Additional query string parameters
78
78
  # @param headers [Hash] Additional headers
79
79
  #
@@ -85,7 +85,7 @@ module ESI
85
85
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
86
86
  #
87
87
  # @see https://esi.evetech.net/ui/#/Killmails/get_killmails_killmail_id_killmail_hash
88
- def get_killmail_killmail_hash(killmail_hash:, killmail_id:, params: {}, headers: {})
88
+ def get_killmail_killmail_hash(killmail_hash:, killmail_id:, headers: {}, params: {})
89
89
  get("/killmails/#{killmail_id}/#{killmail_hash}/", headers: headers, params: params)
90
90
  end
91
91
  alias get_killmail get_killmail_killmail_hash
@@ -17,7 +17,7 @@ module ESI
17
17
  # @esi_version v1
18
18
  # @esi_version v2
19
19
  #
20
- # @param character_id [Integer,String] An EVE character ID
20
+ # @param character_id [Integer] An EVE character ID
21
21
  # @param params [Hash] Additional query string parameters
22
22
  # @param headers [Hash] Additional headers
23
23
  #
@@ -30,7 +30,7 @@ module ESI
30
30
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
31
31
  #
32
32
  # @see https://esi.evetech.net/ui/#/Location/get_characters_character_id_location
33
- def get_character_location(character_id:, params: {}, headers: {})
33
+ def get_character_location(character_id:, headers: {}, params: {})
34
34
  get("/characters/#{character_id}/location/", headers: headers, params: params)
35
35
  end
36
36
  alias get_characters_character_id_location get_character_location
@@ -47,7 +47,7 @@ module ESI
47
47
  # @esi_version v2
48
48
  # @esi_version v3
49
49
  #
50
- # @param character_id [Integer,String] An EVE character ID
50
+ # @param character_id [Integer] An EVE character ID
51
51
  # @param params [Hash] Additional query string parameters
52
52
  # @param headers [Hash] Additional headers
53
53
  #
@@ -60,7 +60,7 @@ module ESI
60
60
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
61
61
  #
62
62
  # @see https://esi.evetech.net/ui/#/Location/get_characters_character_id_online
63
- def get_character_online(character_id:, params: {}, headers: {})
63
+ def get_character_online(character_id:, headers: {}, params: {})
64
64
  get("/characters/#{character_id}/online/", headers: headers, params: params)
65
65
  end
66
66
  alias get_characters_character_id_online get_character_online
@@ -78,7 +78,7 @@ module ESI
78
78
  # @esi_version v1
79
79
  # @esi_version v2
80
80
  #
81
- # @param character_id [Integer,String] An EVE character ID
81
+ # @param character_id [Integer] An EVE character ID
82
82
  # @param params [Hash] Additional query string parameters
83
83
  # @param headers [Hash] Additional headers
84
84
  #
@@ -91,7 +91,7 @@ module ESI
91
91
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
92
92
  #
93
93
  # @see https://esi.evetech.net/ui/#/Location/get_characters_character_id_ship
94
- def get_character_ship(character_id:, params: {}, headers: {})
94
+ def get_character_ship(character_id:, headers: {}, params: {})
95
95
  get("/characters/#{character_id}/ship/", headers: headers, params: params)
96
96
  end
97
97
  alias get_characters_character_id_ship get_character_ship
@@ -16,7 +16,7 @@ module ESI
16
16
  # @esi_version legacy
17
17
  # @esi_version v1
18
18
  #
19
- # @param character_id [Integer,String] An EVE character ID
19
+ # @param character_id [Integer] An EVE character ID
20
20
  # @param params [Hash] Additional query string parameters
21
21
  # @param headers [Hash] Additional headers
22
22
  #
@@ -29,7 +29,7 @@ module ESI
29
29
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
30
30
  #
31
31
  # @see https://esi.evetech.net/ui/#/Loyalty/get_characters_character_id_loyalty_points
32
- def get_character_loyalty_points(character_id:, params: {}, headers: {})
32
+ def get_character_loyalty_points(character_id:, headers: {}, params: {})
33
33
  get("/characters/#{character_id}/loyalty/points/", headers: headers, params: params)
34
34
  end
35
35
  alias get_characters_character_id_loyalty_points get_character_loyalty_points
@@ -40,7 +40,7 @@ module ESI
40
40
  # @esi_version legacy
41
41
  # @esi_version v1
42
42
  #
43
- # @param corporation_id [Integer,String] An EVE corporation ID
43
+ # @param corporation_id [Integer] An EVE corporation ID
44
44
  # @param params [Hash] Additional query string parameters
45
45
  # @param headers [Hash] Additional headers
46
46
  #
@@ -52,7 +52,7 @@ module ESI
52
52
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
53
53
  #
54
54
  # @see https://esi.evetech.net/ui/#/Loyalty/get_loyalty_stores_corporation_id_offers
55
- def get_loyalty_stores_corporation_offers(corporation_id:, params: {}, headers: {})
55
+ def get_loyalty_stores_corporation_offers(corporation_id:, headers: {}, params: {})
56
56
  get("/loyalty/stores/#{corporation_id}/offers/", headers: headers, params: params)
57
57
  end
58
58
  alias get_loyalty_stores_corporation_id_offers get_loyalty_stores_corporation_offers
@@ -14,8 +14,8 @@ module ESI
14
14
  # @esi_version legacy
15
15
  # @esi_version v1
16
16
  #
17
- # @param character_id [Integer,String] An EVE character ID
18
- # @param mail_id [Integer,String] An EVE mail ID
17
+ # @param character_id [Integer] An EVE character ID
18
+ # @param mail_id [Integer] An EVE mail ID
19
19
  # @param params [Hash] Additional query string parameters
20
20
  # @param headers [Hash] Additional headers
21
21
  #
@@ -28,7 +28,7 @@ module ESI
28
28
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
29
29
  #
30
30
  # @see https://esi.evetech.net/ui/#/Mail/delete_characters_character_id_mail_mail_id
31
- def delete_character_mail(character_id:, mail_id:, params: {}, headers: {})
31
+ def delete_character_mail(character_id:, mail_id:, headers: {}, params: {})
32
32
  delete("/characters/#{character_id}/mail/#{mail_id}/", headers: headers, params: params)
33
33
  end
34
34
  alias delete_characters_character_id_mail_mail_id delete_character_mail
@@ -43,8 +43,8 @@ module ESI
43
43
  # @esi_version legacy
44
44
  # @esi_version v1
45
45
  #
46
- # @param character_id [Integer,String] An EVE character ID
47
- # @param label_id [Integer,String] An EVE label id
46
+ # @param character_id [Integer] An EVE character ID
47
+ # @param label_id [Integer] An EVE label id
48
48
  # @param params [Hash] Additional query string parameters
49
49
  # @param headers [Hash] Additional headers
50
50
  #
@@ -58,7 +58,7 @@ module ESI
58
58
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
59
59
  #
60
60
  # @see https://esi.evetech.net/ui/#/Mail/delete_characters_character_id_mail_labels_label_id
61
- def delete_character_mail_label(character_id:, label_id:, params: {}, headers: {})
61
+ def delete_character_mail_label(character_id:, label_id:, headers: {}, params: {})
62
62
  delete("/characters/#{character_id}/mail/labels/#{label_id}/", headers: headers, params: params)
63
63
  end
64
64
  alias delete_characters_character_id_mail_labels_label_id delete_character_mail_label
@@ -75,8 +75,8 @@ module ESI
75
75
  # @esi_version legacy
76
76
  # @esi_version v1
77
77
  #
78
- # @param character_id [Integer,String] An EVE character ID
79
- # @param mail_id [Integer,String] An EVE mail ID
78
+ # @param character_id [Integer] An EVE character ID
79
+ # @param mail_id [Integer] An EVE mail ID
80
80
  # @param params [Hash] Additional query string parameters
81
81
  # @param headers [Hash] Additional headers
82
82
  #
@@ -90,7 +90,7 @@ module ESI
90
90
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
91
91
  #
92
92
  # @see https://esi.evetech.net/ui/#/Mail/get_characters_character_id_mail_mail_id
93
- def get_character_mail(character_id:, mail_id:, params: {}, headers: {})
93
+ def get_character_mail(character_id:, mail_id:, headers: {}, params: {})
94
94
  get("/characters/#{character_id}/mail/#{mail_id}/", headers: headers, params: params)
95
95
  end
96
96
  alias get_characters_character_id_mail_mail_id get_character_mail
@@ -106,7 +106,7 @@ module ESI
106
106
  # @esi_version dev
107
107
  # @esi_version v3
108
108
  #
109
- # @param character_id [Integer,String] An EVE character ID
109
+ # @param character_id [Integer] An EVE character ID
110
110
  # @param params [Hash] Additional query string parameters
111
111
  # @param headers [Hash] Additional headers
112
112
  #
@@ -119,7 +119,7 @@ module ESI
119
119
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
120
120
  #
121
121
  # @see https://esi.evetech.net/ui/#/Mail/get_characters_character_id_mail_labels
122
- def get_character_mail_labels(character_id:, params: {}, headers: {})
122
+ def get_character_mail_labels(character_id:, headers: {}, params: {})
123
123
  get("/characters/#{character_id}/mail/labels/", headers: headers, params: params)
124
124
  end
125
125
  alias get_characters_character_id_mail_labels get_character_mail_labels
@@ -136,7 +136,7 @@ module ESI
136
136
  # @esi_version legacy
137
137
  # @esi_version v1
138
138
  #
139
- # @param character_id [Integer,String] An EVE character ID
139
+ # @param character_id [Integer] An EVE character ID
140
140
  # @param params [Hash] Additional query string parameters
141
141
  # @param headers [Hash] Additional headers
142
142
  #
@@ -149,7 +149,7 @@ module ESI
149
149
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
150
150
  #
151
151
  # @see https://esi.evetech.net/ui/#/Mail/get_characters_character_id_mail_lists
152
- def get_character_mail_lists(character_id:, params: {}, headers: {})
152
+ def get_character_mail_lists(character_id:, headers: {}, params: {})
153
153
  get("/characters/#{character_id}/mail/lists/", headers: headers, params: params)
154
154
  end
155
155
  alias get_characters_character_id_mail_lists get_character_mail_lists
@@ -164,8 +164,9 @@ module ESI
164
164
  # @esi_version legacy
165
165
  # @esi_version v1
166
166
  #
167
- # @param character_id [Integer,String] An EVE character ID
167
+ # @param character_id [Integer] An EVE character ID
168
168
  # @param mail [Hash] The mail to send
169
+ # @param params [Hash] Additional query string parameters
169
170
  # @param headers [Hash] Additional headers
170
171
  #
171
172
  # @raise [ESI::Errors::BadRequestError] Bad request
@@ -178,8 +179,8 @@ module ESI
178
179
  # @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
179
180
  #
180
181
  # @see https://esi.evetech.net/ui/#/Mail/post_characters_character_id_mail
181
- def post_character_mail(character_id:, mail:, headers: {})
182
- post("/characters/#{character_id}/mail/", headers: headers, payload: mail)
182
+ def post_character_mail(character_id:, mail:, headers: {}, params: {})
183
+ post("/characters/#{character_id}/mail/", headers: headers, params: params, payload: mail)
183
184
  end
184
185
  alias post_characters_character_id_mail post_character_mail
185
186
 
@@ -193,8 +194,9 @@ module ESI
193
194
  # @esi_version legacy
194
195
  # @esi_version v2
195
196
  #
196
- # @param character_id [Integer,String] An EVE character ID
197
+ # @param character_id [Integer] An EVE character ID
197
198
  # @param label [Hash] Label to create
199
+ # @param params [Hash] Additional query string parameters
198
200
  # @param headers [Hash] Additional headers
199
201
  #
200
202
  # @raise [ESI::Errors::BadRequestError] Bad request
@@ -206,8 +208,8 @@ module ESI
206
208
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
207
209
  #
208
210
  # @see https://esi.evetech.net/ui/#/Mail/post_characters_character_id_mail_labels
209
- def post_character_mail_labels(character_id:, label:, headers: {})
210
- post("/characters/#{character_id}/mail/labels/", headers: headers, payload: label)
211
+ def post_character_mail_labels(character_id:, label:, headers: {}, params: {})
212
+ post("/characters/#{character_id}/mail/labels/", headers: headers, params: params, payload: label)
211
213
  end
212
214
  alias post_characters_character_id_mail_labels post_character_mail_labels
213
215
 
@@ -221,9 +223,10 @@ module ESI
221
223
  # @esi_version legacy
222
224
  # @esi_version v1
223
225
  #
224
- # @param character_id [Integer,String] An EVE character ID
225
- # @param mail_id [Integer,String] An EVE mail ID
226
+ # @param character_id [Integer] An EVE character ID
227
+ # @param mail_id [Integer] An EVE mail ID
226
228
  # @param contents [Hash] Data used to update the mail
229
+ # @param params [Hash] Additional query string parameters
227
230
  # @param headers [Hash] Additional headers
228
231
  #
229
232
  # @raise [ESI::Errors::BadRequestError] Bad request
@@ -235,8 +238,8 @@ module ESI
235
238
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
236
239
  #
237
240
  # @see https://esi.evetech.net/ui/#/Mail/put_characters_character_id_mail_mail_id
238
- def put_character_mail(character_id:, mail_id:, contents:, headers: {})
239
- put("/characters/#{character_id}/mail/#{mail_id}/", headers: headers, payload: contents)
241
+ def put_character_mail(character_id:, mail_id:, contents:, headers: {}, params: {})
242
+ put("/characters/#{character_id}/mail/#{mail_id}/", headers: headers, params: params, payload: contents)
240
243
  end
241
244
  alias put_characters_character_id_mail_mail_id put_character_mail
242
245
  end