files.com 1.0.49 → 1.0.50

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 (63) hide show
  1. checksums.yaml +4 -4
  2. data/_VERSION +1 -1
  3. metadata +1 -61
  4. data/Gemfile.lock +0 -49
  5. data/docs/account.md +0 -87
  6. data/docs/announcement.md +0 -45
  7. data/docs/blog_post.md +0 -35
  8. data/docs/bundle_file.md +0 -17
  9. data/docs/bundle_public.md +0 -15
  10. data/docs/certificate.md +0 -250
  11. data/docs/crash_report.md +0 -46
  12. data/docs/email_feedback.md +0 -16
  13. data/docs/email_preference.md +0 -41
  14. data/docs/email_preference_notification.md +0 -17
  15. data/docs/inbox.md +0 -37
  16. data/docs/oauth_redirect.md +0 -11
  17. data/docs/paired_api_key.md +0 -17
  18. data/docs/paypal_express_info.md +0 -31
  19. data/docs/paypal_express_url.md +0 -11
  20. data/docs/plan.md +0 -145
  21. data/docs/plan_rate.md +0 -31
  22. data/docs/regional_migration.md +0 -39
  23. data/docs/release.md +0 -34
  24. data/docs/release_package.md +0 -13
  25. data/docs/setting.md +0 -33
  26. data/docs/settings.md +0 -187
  27. data/docs/support_request.md +0 -96
  28. data/docs/two_factor_authentication_method.md +0 -152
  29. data/docs/u2f_sign_request.md +0 -15
  30. data/docs/upload.md +0 -54
  31. data/docs/upsell.md +0 -33
  32. data/docs/warning.md +0 -31
  33. data/docs/zip_download.md +0 -27
  34. data/files.com-1.0.0.gem +0 -0
  35. data/lib/files.com/models/account.rb +0 -142
  36. data/lib/files.com/models/announcement.rb +0 -74
  37. data/lib/files.com/models/blog_post.rb +0 -49
  38. data/lib/files.com/models/bundle_file.rb +0 -32
  39. data/lib/files.com/models/bundle_public.rb +0 -27
  40. data/lib/files.com/models/certificate.rb +0 -452
  41. data/lib/files.com/models/crash_report.rb +0 -129
  42. data/lib/files.com/models/email_feedback.rb +0 -29
  43. data/lib/files.com/models/email_preference.rb +0 -46
  44. data/lib/files.com/models/email_preference_notification.rb +0 -32
  45. data/lib/files.com/models/inbox.rb +0 -54
  46. data/lib/files.com/models/oauth_redirect.rb +0 -17
  47. data/lib/files.com/models/paired_api_key.rb +0 -32
  48. data/lib/files.com/models/paypal_express_info.rb +0 -67
  49. data/lib/files.com/models/paypal_express_url.rb +0 -17
  50. data/lib/files.com/models/plan.rb +0 -316
  51. data/lib/files.com/models/plan_rate.rb +0 -39
  52. data/lib/files.com/models/regional_migration.rb +0 -59
  53. data/lib/files.com/models/release.rb +0 -41
  54. data/lib/files.com/models/release_package.rb +0 -22
  55. data/lib/files.com/models/setting.rb +0 -36
  56. data/lib/files.com/models/settings.rb +0 -441
  57. data/lib/files.com/models/support_request.rb +0 -143
  58. data/lib/files.com/models/two_factor_authentication_method.rb +0 -230
  59. data/lib/files.com/models/u2f_sign_request.rb +0 -27
  60. data/lib/files.com/models/upload.rb +0 -83
  61. data/lib/files.com/models/upsell.rb +0 -38
  62. data/lib/files.com/models/warning.rb +0 -34
  63. data/lib/files.com/models/zip_download.rb +0 -49
@@ -1,129 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class CrashReport
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # int64 - Crash Report ID
13
- def id
14
- @attributes[:id]
15
- end
16
-
17
- def id=(value)
18
- @attributes[:id] = value
19
- end
20
-
21
- # string
22
- def build
23
- @attributes[:build]
24
- end
25
-
26
- def build=(value)
27
- @attributes[:build] = value
28
- end
29
-
30
- # string
31
- def platform
32
- @attributes[:platform]
33
- end
34
-
35
- def platform=(value)
36
- @attributes[:platform] = value
37
- end
38
-
39
- # string
40
- def product_name
41
- @attributes[:product_name]
42
- end
43
-
44
- def product_name=(value)
45
- @attributes[:product_name] = value
46
- end
47
-
48
- # string
49
- def version
50
- @attributes[:version]
51
- end
52
-
53
- def version=(value)
54
- @attributes[:version] = value
55
- end
56
-
57
- # string
58
- def comment
59
- @attributes[:comment]
60
- end
61
-
62
- def comment=(value)
63
- @attributes[:comment] = value
64
- end
65
-
66
- # string
67
- def email
68
- @attributes[:email]
69
- end
70
-
71
- def email=(value)
72
- @attributes[:email] = value
73
- end
74
-
75
- # string
76
- def platform_version
77
- @attributes[:platform_version]
78
- end
79
-
80
- def platform_version=(value)
81
- @attributes[:platform_version] = value
82
- end
83
-
84
- # string
85
- def release_channel
86
- @attributes[:release_channel]
87
- end
88
-
89
- def release_channel=(value)
90
- @attributes[:release_channel] = value
91
- end
92
-
93
- def save
94
- if @attributes[:id]
95
- raise NotImplementedError.new("The CrashReport object doesn't support updates.")
96
- else
97
- new_obj = CrashReport.create(@attributes, @options)
98
- @attributes = new_obj.attributes
99
- end
100
- end
101
-
102
- # Parameters:
103
- # build (required) - string
104
- # platform (required) - string
105
- # product_name (required) - string
106
- # version (required) - string
107
- # comment - string
108
- # email - string
109
- # platform_version - string
110
- # release_channel - string
111
- def self.create(params = {}, options = {})
112
- raise InvalidParameterError.new("Bad parameter: build must be an String") if params.dig(:build) and !params.dig(:build).is_a?(String)
113
- raise InvalidParameterError.new("Bad parameter: platform must be an String") if params.dig(:platform) and !params.dig(:platform).is_a?(String)
114
- raise InvalidParameterError.new("Bad parameter: product_name must be an String") if params.dig(:product_name) and !params.dig(:product_name).is_a?(String)
115
- raise InvalidParameterError.new("Bad parameter: version must be an String") if params.dig(:version) and !params.dig(:version).is_a?(String)
116
- raise InvalidParameterError.new("Bad parameter: comment must be an String") if params.dig(:comment) and !params.dig(:comment).is_a?(String)
117
- raise InvalidParameterError.new("Bad parameter: email must be an String") if params.dig(:email) and !params.dig(:email).is_a?(String)
118
- raise InvalidParameterError.new("Bad parameter: platform_version must be an String") if params.dig(:platform_version) and !params.dig(:platform_version).is_a?(String)
119
- raise InvalidParameterError.new("Bad parameter: release_channel must be an String") if params.dig(:release_channel) and !params.dig(:release_channel).is_a?(String)
120
- raise MissingParameterError.new("Parameter missing: build") unless params.dig(:build)
121
- raise MissingParameterError.new("Parameter missing: platform") unless params.dig(:platform)
122
- raise MissingParameterError.new("Parameter missing: product_name") unless params.dig(:product_name)
123
- raise MissingParameterError.new("Parameter missing: version") unless params.dig(:version)
124
-
125
- response, options = Api.send_request("/crash_reports", :post, params, options)
126
- CrashReport.new(response.data, options)
127
- end
128
- end
129
- end
@@ -1,29 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class EmailFeedback
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- def save
13
- if @attributes[:id]
14
- raise NotImplementedError.new("The EmailFeedback object doesn't support updates.")
15
- else
16
- new_obj = EmailFeedback.create(@attributes, @options)
17
- @attributes = new_obj.attributes
18
- end
19
- end
20
-
21
- # Parameters:
22
- # feedback[email] (required) - string
23
- # feedback[reason] (required) - string
24
- def self.create(params = {}, options = {})
25
- response, _options = Api.send_request("/email_feedback", :post, params, options)
26
- response.data
27
- end
28
- end
29
- end
@@ -1,46 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class EmailPreference
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # email - Email address
13
- def email
14
- @attributes[:email]
15
- end
16
-
17
- # array - A list of notifications
18
- def notifications
19
- @attributes[:notifications]
20
- end
21
-
22
- # boolean - Receive admin alerts?
23
- def receive_admin_alerts
24
- @attributes[:receive_admin_alerts]
25
- end
26
-
27
- # Parameters:
28
- # token (required) - string - Email preferences token.
29
- # user[receive_admin_alerts] - boolean
30
- # user[unsubscribed] - boolean
31
- # user[notifications][id] (required) - array
32
- # user[notifications][group] - array
33
- # user[notifications][send_interval] - array
34
- # user[notifications][unsubscribe] - array
35
- # user[unsubscribe] - string
36
- def self.update(token, params = {}, options = {})
37
- params ||= {}
38
- params[:token] = token
39
- raise InvalidParameterError.new("Bad parameter: token must be an String") if params.dig(:token) and !params.dig(:token).is_a?(String)
40
- raise MissingParameterError.new("Parameter missing: token") unless params.dig(:token)
41
-
42
- response, options = Api.send_request("/email_preferences/#{params[:token]}", :patch, params, options)
43
- EmailPreference.new(response.data, options)
44
- end
45
- end
46
- end
@@ -1,32 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class EmailPreferenceNotification
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # int64 - Email preferences ID
13
- def id
14
- @attributes[:id]
15
- end
16
-
17
- # string - Folder path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
18
- def path
19
- @attributes[:path]
20
- end
21
-
22
- # string - The time interval that notifications are aggregated to. Can be five_minutes, fifteen_minutes, hourly, or daily
23
- def send_interval
24
- @attributes[:send_interval]
25
- end
26
-
27
- # boolean - Is unsubscribed?
28
- def unsubscribed
29
- @attributes[:unsubscribed]
30
- end
31
- end
32
- end
@@ -1,54 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class Inbox
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # string - User description
13
- def description
14
- @attributes[:description]
15
- end
16
-
17
- # string - Text that will be shown to the users on the Inbox. Use this field to provide custom instructions.
18
- def help_text
19
- @attributes[:help_text]
20
- end
21
-
22
- # string - Unique key for inbox
23
- def key
24
- @attributes[:key]
25
- end
26
-
27
- # boolean - Show this inbox on site login page?
28
- def show_on_login_page
29
- @attributes[:show_on_login_page]
30
- end
31
-
32
- # string - Inbox title
33
- def title
34
- @attributes[:title]
35
- end
36
-
37
- # Parameters:
38
- # page - integer - Current page number.
39
- # per_page - integer - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
40
- # action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
41
- def self.list(params = {}, options = {})
42
- raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
43
- raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
44
- raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
45
-
46
- response, options = Api.send_request("/inboxes", :get, params, options)
47
- response.data.map { |object| Inbox.new(object, options) }
48
- end
49
-
50
- def self.all(params = {}, options = {})
51
- list(params, options)
52
- end
53
- end
54
- end
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class OauthRedirect
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # string - Redirect URL
13
- def redirect_uri
14
- @attributes[:redirect_uri]
15
- end
16
- end
17
- end
@@ -1,32 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class PairedApiKey
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # string - Site URL
13
- def server
14
- @attributes[:server]
15
- end
16
-
17
- # string - Paired api key username
18
- def username
19
- @attributes[:username]
20
- end
21
-
22
- # string - Paired api key password
23
- def password
24
- @attributes[:password]
25
- end
26
-
27
- # string - Unique nickname for this api key
28
- def nickname
29
- @attributes[:nickname]
30
- end
31
- end
32
- end
@@ -1,67 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class PaypalExpressInfo
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # email - Paypal billing email
13
- def billing_email
14
- @attributes[:billing_email]
15
- end
16
-
17
- # string - Paypal billing company name
18
- def billing_company_name
19
- @attributes[:billing_company_name]
20
- end
21
-
22
- # string - Paypal billing address
23
- def billing_address
24
- @attributes[:billing_address]
25
- end
26
-
27
- # string - Paypal billing address 2
28
- def billing_address_2
29
- @attributes[:billing_address_2]
30
- end
31
-
32
- # string - Paypal billing city
33
- def billing_city
34
- @attributes[:billing_city]
35
- end
36
-
37
- # string - Paypal billing state
38
- def billing_state
39
- @attributes[:billing_state]
40
- end
41
-
42
- # string - Paypal billing country
43
- def billing_country
44
- @attributes[:billing_country]
45
- end
46
-
47
- # string - Paypal billing zipcode
48
- def billing_zip
49
- @attributes[:billing_zip]
50
- end
51
-
52
- # string - Paypal billing name
53
- def billing_name
54
- @attributes[:billing_name]
55
- end
56
-
57
- # string - Paypal billing phone
58
- def billing_phone
59
- @attributes[:billing_phone]
60
- end
61
-
62
- # int64 - Paypal payer ID
63
- def paypal_payer_id
64
- @attributes[:paypal_payer_id]
65
- end
66
- end
67
- end
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class PaypalExpressUrl
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # string - Redirect link
13
- def redirect_to
14
- @attributes[:redirect_to]
15
- end
16
- end
17
- end
@@ -1,316 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class Plan
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # int64 - Plan ID
13
- def id
14
- @attributes[:id]
15
- end
16
-
17
- # boolean - Are advanced behaviors included in plan?
18
- def advanced_behaviors
19
- @attributes[:advanced_behaviors]
20
- end
21
-
22
- # boolean - Is advanced antivirus included in plan?
23
- def antivirus_advanced
24
- @attributes[:antivirus_advanced]
25
- end
26
-
27
- # boolean - Is basic antivirus included in plan?
28
- def antivirus_basic
29
- @attributes[:antivirus_basic]
30
- end
31
-
32
- # int64 - How many audit hours included in plan?
33
- def audit_hours
34
- @attributes[:audit_hours]
35
- end
36
-
37
- # boolean - Is google authentication included in plan?
38
- def auth_google
39
- @attributes[:auth_google]
40
- end
41
-
42
- # boolean - Is oauth included in plan?
43
- def auth_oauth
44
- @attributes[:auth_oauth]
45
- end
46
-
47
- # boolean - Is custom oauth included in plan?
48
- def auth_oauth_custom
49
- @attributes[:auth_oauth_custom]
50
- end
51
-
52
- # int64 - Number of SSO, 2FA, Desktop users included in plan
53
- def auth_user_count
54
- @attributes[:auth_user_count]
55
- end
56
-
57
- # boolean - Are automations included in plan?
58
- def automations
59
- @attributes[:automations]
60
- end
61
-
62
- # boolean - If true all usernames can be used, otherwise usernames must be unique
63
- def custom_namespace
64
- @attributes[:custom_namespace]
65
- end
66
-
67
- # boolean - Custom SMTP support?
68
- def custom_smtp
69
- @attributes[:custom_smtp]
70
- end
71
-
72
- # boolean - Offers dedicated ip?
73
- def dedicated_ip
74
- @attributes[:dedicated_ip]
75
- end
76
-
77
- # int64 - Number of dedicated IPs
78
- def dedicated_ips
79
- @attributes[:dedicated_ips]
80
- end
81
-
82
- # object - Results of comparing with a different Plan
83
- def differences
84
- @attributes[:differences]
85
- end
86
-
87
- # boolean - Custom domain(s)?
88
- def domain
89
- @attributes[:domain]
90
- end
91
-
92
- # int64 - Number of custom domains
93
- def domain_count
94
- @attributes[:domain_count]
95
- end
96
-
97
- # boolean - Does the plan include E-Mail inboxes?
98
- def email_inboxes
99
- @attributes[:email_inboxes]
100
- end
101
-
102
- # boolean - Supports extended folder permissions like viewing history?
103
- def extended_folder_permissions
104
- @attributes[:extended_folder_permissions]
105
- end
106
-
107
- # boolean - Can log preservation be extended?
108
- def extended_log_retention
109
- @attributes[:extended_log_retention]
110
- end
111
-
112
- # int64 - Number of free developer accounts
113
- def free_developer_accounts
114
- @attributes[:free_developer_accounts]
115
- end
116
-
117
- # boolean - Supports connections via FTP, SFTP, and WebDAV?
118
- def ftp_sftp_webdav
119
- @attributes[:ftp_sftp_webdav]
120
- end
121
-
122
- # boolean - Full text search enabled?
123
- def full_text_search
124
- @attributes[:full_text_search]
125
- end
126
-
127
- # boolean - Global acceleration enabled?
128
- def global_acceleration
129
- @attributes[:global_acceleration]
130
- end
131
-
132
- # boolean - Support for GPG encryption?
133
- def gpg
134
- @attributes[:gpg]
135
- end
136
-
137
- # boolean - Group admin functionality enabled?
138
- def group_admins_enabled
139
- @attributes[:group_admins_enabled]
140
- end
141
-
142
- # boolean - Group notifications functionality enabled?
143
- def group_notifications
144
- @attributes[:group_notifications]
145
- end
146
-
147
- # boolean - Support for HIPAA regulation?
148
- def hipaa
149
- @attributes[:hipaa]
150
- end
151
-
152
- # boolean - HTML branding available?
153
- def html_branding
154
- @attributes[:html_branding]
155
- end
156
-
157
- # boolean - LDAP integration enabled?
158
- def ldap
159
- @attributes[:ldap]
160
- end
161
-
162
- # boolean - Does the plan offer any legal flexibility?
163
- def legal_flexibility
164
- @attributes[:legal_flexibility]
165
- end
166
-
167
- # int64 - Max number of files in a folder
168
- def max_folder_size
169
- @attributes[:max_folder_size]
170
- end
171
-
172
- # int64 - Maximum individual file size
173
- def max_individual_file_size
174
- @attributes[:max_individual_file_size]
175
- end
176
-
177
- # string - Plan name
178
- def name
179
- @attributes[:name]
180
- end
181
-
182
- # boolean - Are nested groups enabled?
183
- def nested_groups
184
- @attributes[:nested_groups]
185
- end
186
-
187
- # int64 - Number of previews available
188
- def preview_page_limit
189
- @attributes[:preview_page_limit]
190
- end
191
-
192
- # int64 - Number of storage regions included
193
- def regions_included
194
- @attributes[:regions_included]
195
- end
196
-
197
- # boolean - Remote sync with FTP available?
198
- def remote_sync_ftp
199
- @attributes[:remote_sync_ftp]
200
- end
201
-
202
- # int64 - Number of hours between remote sync
203
- def remote_sync_interval
204
- @attributes[:remote_sync_interval]
205
- end
206
-
207
- # boolean - Are other forms of remote sync available?
208
- def remote_sync_other
209
- @attributes[:remote_sync_other]
210
- end
211
-
212
- # boolean - Can sync to s3 bucket?
213
- def remote_sync_s3
214
- @attributes[:remote_sync_s3]
215
- end
216
-
217
- # boolean - 2FA support enabled?
218
- def require_2fa
219
- @attributes[:require_2fa]
220
- end
221
-
222
- # array - Site attributes which require upgrade
223
- def site_fields_requiring_upgrade
224
- @attributes[:site_fields_requiring_upgrade]
225
- end
226
-
227
- # string - Priority of customer support
228
- def support_level
229
- @attributes[:support_level]
230
- end
231
-
232
- # string - Usage cost per GB of overage
233
- def usage_cost
234
- @attributes[:usage_cost]
235
- end
236
-
237
- # string - Usage included per month, in GB
238
- def usage_included
239
- @attributes[:usage_included]
240
- end
241
-
242
- # int64 - # of users included. 0 or -1 mean unlimited.
243
- def users
244
- @attributes[:users]
245
- end
246
-
247
- # boolean - Watermark enabled?
248
- def watermark_documents
249
- @attributes[:watermark_documents]
250
- end
251
-
252
- # boolean - Watermark enabled?
253
- def watermark_images
254
- @attributes[:watermark_images]
255
- end
256
-
257
- # boolean - Webhooks enabled?
258
- def webhooks
259
- @attributes[:webhooks]
260
- end
261
-
262
- # boolean - Webhook SNS integration enabled?
263
- def webhooks_sns
264
- @attributes[:webhooks_sns]
265
- end
266
-
267
- # boolean - Whitelabel site?
268
- def whitelabel
269
- @attributes[:whitelabel]
270
- end
271
-
272
- # string - Activation cost (upfront)
273
- def activation_cost
274
- @attributes[:activation_cost]
275
- end
276
-
277
- # string - Price annually
278
- def annually
279
- @attributes[:annually]
280
- end
281
-
282
- # string - Currency
283
- def currency
284
- @attributes[:currency]
285
- end
286
-
287
- # string - Price monthly
288
- def monthly
289
- @attributes[:monthly]
290
- end
291
-
292
- # string - Cost per additional user
293
- def user_cost
294
- @attributes[:user_cost]
295
- end
296
-
297
- # Parameters:
298
- # page - integer - Current page number.
299
- # per_page - integer - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
300
- # action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
301
- # currency - string - Currency.
302
- def self.list(params = {}, options = {})
303
- raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
304
- raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
305
- raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
306
- raise InvalidParameterError.new("Bad parameter: currency must be an String") if params.dig(:currency) and !params.dig(:currency).is_a?(String)
307
-
308
- response, options = Api.send_request("/plans", :get, params, options)
309
- response.data.map { |object| Plan.new(object, options) }
310
- end
311
-
312
- def self.all(params = {}, options = {})
313
- list(params, options)
314
- end
315
- end
316
- end