files.com 1.0.49 → 1.0.50

Sign up to get free protection for your applications and to get access to all the features.
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,15 +0,0 @@
1
- # U2fSignRequest
2
-
3
- ## Example U2fSignRequest Object
4
-
5
- ```
6
- {
7
- "app_id": "[app id]",
8
- "challenge": "[challenge]",
9
- "sign_request": "[sign request]"
10
- }
11
- ```
12
-
13
- * `app_id` (string): App ID for U2F
14
- * `challenge` (string): Challenge String for U2F
15
- * `sign_request` (string): Signature request for U2F
data/docs/upload.md DELETED
@@ -1,54 +0,0 @@
1
- # Upload
2
-
3
- ## Example Upload Object
4
-
5
- ```
6
- {
7
- "id": 1,
8
- "created_at": "2000-01-01 01:00:00 UTC",
9
- "path": "",
10
- "uploads": [
11
-
12
- ],
13
- "user_id": 1
14
- }
15
- ```
16
-
17
- * `id` (int64): File upload ID
18
- * `created_at` (date-time): File upload created at date/time
19
- * `path` (string): Folder path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
20
- * `uploads` (array): A list of file parts included in this upload
21
- * `user_id` (int64): User ID
22
-
23
-
24
- ---
25
-
26
- ## Internal hidden endpoint. Subject to change. Not for public consumption
27
-
28
- ```
29
- Files::Upload.update(id,
30
- path: ""
31
- )
32
- ```
33
-
34
- ### Parameters
35
-
36
- * `id` (int64): Required - Upload ID.
37
- * `path` (string): File destination path
38
-
39
-
40
- ---
41
-
42
- ## Internal hidden endpoint. Subject to change. Not for public consumption
43
-
44
- ```
45
- upload = Files::Upload.find(1)
46
- upload.update(
47
- path: ""
48
- )
49
- ```
50
-
51
- ### Parameters
52
-
53
- * `id` (int64): Required - Upload ID.
54
- * `path` (string): File destination path
data/docs/upsell.md DELETED
@@ -1,33 +0,0 @@
1
- # Upsell
2
-
3
- ## Example Upsell Object
4
-
5
- ```
6
- {
7
- "plan": "",
8
- "sales_letter_name": "https://url..."
9
- }
10
- ```
11
-
12
- * `plan`: Available plan object
13
- * `sales_letter_name` (string): Salesletter name
14
-
15
-
16
- ---
17
-
18
- ## Internal hidden endpoint. Subject to change. Not for public consumption
19
-
20
- ```
21
- Files::Upsell.on_initial_sale(
22
- page: 1,
23
- per_page: 1,
24
- plan_id: 1
25
- )
26
- ```
27
-
28
- ### Parameters
29
-
30
- * `page` (int64): Current page number.
31
- * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
32
- * `action` (string): Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
33
- * `plan_id` (int64): Required - Plan ID.
data/docs/warning.md DELETED
@@ -1,31 +0,0 @@
1
- # Warning
2
-
3
- ## Example Warning Object
4
-
5
- ```
6
- {
7
- "warnings": [
8
-
9
- ]
10
- }
11
- ```
12
-
13
- * `warnings` (array): A list of warnings
14
-
15
-
16
- ---
17
-
18
- ## Internal hidden endpoint. Subject to change. Not for public consumption
19
-
20
- ```
21
- Files::Warning.list(
22
- page: 1,
23
- per_page: 1
24
- )
25
- ```
26
-
27
- ### Parameters
28
-
29
- * `page` (int64): Current page number.
30
- * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
31
- * `action` (string): Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
data/docs/zip_download.md DELETED
@@ -1,27 +0,0 @@
1
- # ZipDownload
2
-
3
- ## Example ZipDownload Object
4
-
5
- ```
6
- {
7
- "download_uri": "/zip/download?z=CODE"
8
- }
9
- ```
10
-
11
- * `download_uri` (string): URL for downloading the ZIP
12
- * `paths` (array(string)):
13
-
14
-
15
- ---
16
-
17
- ## Create a URL that can be used to download a ZIP of several files at once
18
-
19
- ```
20
- Files::ZipDownload.create(
21
- paths: ["file.txt"]
22
- )
23
- ```
24
-
25
- ### Parameters
26
-
27
- * `paths` (array(string)): Required -
data/files.com-1.0.0.gem DELETED
Binary file
@@ -1,142 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class Account
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # string - Account name
13
- def name
14
- @attributes[:name]
15
- end
16
-
17
- # string - Account address
18
- def address
19
- @attributes[:address]
20
- end
21
-
22
- # string - Account address 2
23
- def address_2
24
- @attributes[:address_2]
25
- end
26
-
27
- # string - Account payment card number
28
- def card_number
29
- @attributes[:card_number]
30
- end
31
-
32
- # string - Account payment card type
33
- def card_type
34
- @attributes[:card_type]
35
- end
36
-
37
- # string - Account city
38
- def city
39
- @attributes[:city]
40
- end
41
-
42
- # string - Account company name
43
- def company_name
44
- @attributes[:company_name]
45
- end
46
-
47
- # string - Account country
48
- def country
49
- @attributes[:country]
50
- end
51
-
52
- # date-time - Account creation date/time
53
- def created_at
54
- @attributes[:created_at]
55
- end
56
-
57
- # string - Account preferred currency
58
- def currency
59
- @attributes[:currency]
60
- end
61
-
62
- # email - Account email address
63
- def email
64
- @attributes[:email]
65
- end
66
-
67
- # string - Account phone number
68
- def phone_number
69
- @attributes[:phone_number]
70
- end
71
-
72
- # string - Type of billing processor. Can be PayPal, Credit Card, or Manual
73
- def processor_type
74
- @attributes[:processor_type]
75
- end
76
-
77
- # string - Account state
78
- def state
79
- @attributes[:state]
80
- end
81
-
82
- # date-time - Account last updated at
83
- def updated_at
84
- @attributes[:updated_at]
85
- end
86
-
87
- # string - Account zipcode
88
- def zip
89
- @attributes[:zip]
90
- end
91
-
92
- # int64 - Account billing frequency. Either 12(yearly) or 1(monthly)
93
- def billing_frequency
94
- @attributes[:billing_frequency]
95
- end
96
-
97
- # Parameters:
98
- # name - string - Internal name.
99
- # company_name - string - Company name.
100
- # address - string - Address line 1.
101
- # address_2 - string - Address line 2.
102
- # city - string - City.
103
- # state - string - State.
104
- # zip - string - Zipcode.
105
- # country - string - Country.
106
- # email - string - Email.
107
- # phone_number - string - Primary phone number.
108
- # card_number - string - Credit card number.
109
- # card_type - string - Credit card type. Can be visa, master, maestro, solo, switch, american_express, or discover.
110
- # expiration_year - string - Expiration year(4 digits).
111
- # expiration_month - string - Expiration month(2 digits).
112
- # start_year - string - Required for some cards(Switch / Solo).
113
- # start_month - string - Required for some cards(Switch / Solo).
114
- # cvv - string - 3 digit code on the back of the card.
115
- # paypal_token - string - Token for paying with paypal.
116
- # paypal_payer_id - string - Paypal payer ID for paying with paypal.
117
- def self.update(params = {}, options = {})
118
- raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
119
- raise InvalidParameterError.new("Bad parameter: company_name must be an String") if params.dig(:company_name) and !params.dig(:company_name).is_a?(String)
120
- raise InvalidParameterError.new("Bad parameter: address must be an String") if params.dig(:address) and !params.dig(:address).is_a?(String)
121
- raise InvalidParameterError.new("Bad parameter: address_2 must be an String") if params.dig(:address_2) and !params.dig(:address_2).is_a?(String)
122
- raise InvalidParameterError.new("Bad parameter: city must be an String") if params.dig(:city) and !params.dig(:city).is_a?(String)
123
- raise InvalidParameterError.new("Bad parameter: state must be an String") if params.dig(:state) and !params.dig(:state).is_a?(String)
124
- raise InvalidParameterError.new("Bad parameter: zip must be an String") if params.dig(:zip) and !params.dig(:zip).is_a?(String)
125
- raise InvalidParameterError.new("Bad parameter: country must be an String") if params.dig(:country) and !params.dig(:country).is_a?(String)
126
- raise InvalidParameterError.new("Bad parameter: email must be an String") if params.dig(:email) and !params.dig(:email).is_a?(String)
127
- raise InvalidParameterError.new("Bad parameter: phone_number must be an String") if params.dig(:phone_number) and !params.dig(:phone_number).is_a?(String)
128
- raise InvalidParameterError.new("Bad parameter: card_number must be an String") if params.dig(:card_number) and !params.dig(:card_number).is_a?(String)
129
- raise InvalidParameterError.new("Bad parameter: card_type must be an String") if params.dig(:card_type) and !params.dig(:card_type).is_a?(String)
130
- raise InvalidParameterError.new("Bad parameter: expiration_year must be an String") if params.dig(:expiration_year) and !params.dig(:expiration_year).is_a?(String)
131
- raise InvalidParameterError.new("Bad parameter: expiration_month must be an String") if params.dig(:expiration_month) and !params.dig(:expiration_month).is_a?(String)
132
- raise InvalidParameterError.new("Bad parameter: start_year must be an String") if params.dig(:start_year) and !params.dig(:start_year).is_a?(String)
133
- raise InvalidParameterError.new("Bad parameter: start_month must be an String") if params.dig(:start_month) and !params.dig(:start_month).is_a?(String)
134
- raise InvalidParameterError.new("Bad parameter: cvv must be an String") if params.dig(:cvv) and !params.dig(:cvv).is_a?(String)
135
- raise InvalidParameterError.new("Bad parameter: paypal_token must be an String") if params.dig(:paypal_token) and !params.dig(:paypal_token).is_a?(String)
136
- raise InvalidParameterError.new("Bad parameter: paypal_payer_id must be an String") if params.dig(:paypal_payer_id) and !params.dig(:paypal_payer_id).is_a?(String)
137
-
138
- response, options = Api.send_request("/account", :patch, params, options)
139
- Account.new(response.data, options)
140
- end
141
- end
142
- end
@@ -1,74 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class Announcement
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # string - Announcement body
13
- def body
14
- @attributes[:body]
15
- end
16
-
17
- # string - Text to go on the CTA button
18
- def button_text
19
- @attributes[:button_text]
20
- end
21
-
22
- # string - URL to link to when CTA button is clicked
23
- def button_url
24
- @attributes[:button_url]
25
- end
26
-
27
- # string - Announcement headline
28
- def headline
29
- @attributes[:headline]
30
- end
31
-
32
- # string - Body converted to HTML
33
- def html_body
34
- @attributes[:html_body]
35
- end
36
-
37
- # string - Text for a label that can be added to the announcement
38
- def label
39
- @attributes[:label]
40
- end
41
-
42
- # string - Color for label on announcement
43
- def label_color
44
- @attributes[:label_color]
45
- end
46
-
47
- # date-time - When was this announcement published?
48
- def publish_at
49
- @attributes[:publish_at]
50
- end
51
-
52
- # string - URL slug for announcement
53
- def slug
54
- @attributes[:slug]
55
- end
56
-
57
- # Parameters:
58
- # page - integer - Current page number.
59
- # per_page - integer - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
60
- # action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
61
- def self.list(params = {}, options = {})
62
- raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
63
- raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
64
- raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
65
-
66
- response, options = Api.send_request("/announcements", :get, params, options)
67
- response.data.map { |object| Announcement.new(object, options) }
68
- end
69
-
70
- def self.all(params = {}, options = {})
71
- list(params, options)
72
- end
73
- end
74
- end
@@ -1,49 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class BlogPost
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # string - Blog Post's Content
13
- def content
14
- @attributes[:content]
15
- end
16
-
17
- # date-time - Blog Post's Permanent Link
18
- def link
19
- @attributes[:link]
20
- end
21
-
22
- # date-time - Blog Post's Published Date
23
- def published_at
24
- @attributes[:published_at]
25
- end
26
-
27
- # string - Blog Post's Title
28
- def title
29
- @attributes[:title]
30
- end
31
-
32
- # Parameters:
33
- # page - integer - Current page number.
34
- # per_page - integer - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
35
- # action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
36
- def self.list(params = {}, options = {})
37
- raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
38
- raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
39
- raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
40
-
41
- response, options = Api.send_request("/blog_posts", :get, params, options)
42
- response.data.map { |object| BlogPost.new(object, options) }
43
- end
44
-
45
- def self.all(params = {}, options = {})
46
- list(params, options)
47
- end
48
- end
49
- end
@@ -1,32 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Files
4
- class BundleFile
5
- attr_reader :options, :attributes
6
-
7
- def initialize(attributes = {}, options = {})
8
- @attributes = attributes || {}
9
- @options = options || {}
10
- end
11
-
12
- # string - Bundle file download URI
13
- def download_uri
14
- @attributes[:download_uri]
15
- end
16
-
17
- # string - File 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
- # int64 - File size
23
- def size
24
- @attributes[:size]
25
- end
26
-
27
- # string - Type of 'directory' or 'file'
28
- def type
29
- @attributes[:type]
30
- end
31
- end
32
- end