files.com 1.0.181 → 1.0.182

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8384d32f0a992c1cb7f64673a76eeeca09eb2e3e9269ece0c939aa29f124fbdf
4
- data.tar.gz: 9e40763863df161e61fc54f45aff05adaee282515fd923509379a579f3e63a9c
3
+ metadata.gz: e075ac53f4e6168ab7f7344bc46638ca88fbf5cc175b599832fc721511d9a441
4
+ data.tar.gz: c5a4ef80a09077c19ce44f371a8562576b1cd2a6204acaccd1076c6f54c3620a
5
5
  SHA512:
6
- metadata.gz: 65217858737112f06f00c4f25e67494eea4ef8c2a0b801e506c248963d0d5ccac4f1f3916819a1768fd1505a89bd9a26eb6707fe8b04ea6127610384d941fae9
7
- data.tar.gz: 49782c8c69889c8bc8f3777d0571bea1dc839b8f9760fde4960275ac3db504ef06f5632ffb7096ef0a9432c6ce6dae93484dd0eed1941b3f6cbe8a6e9a6ff413
6
+ metadata.gz: da69ba3af21444e628a5daaaa89ceb05628f3f245cf4f07474629c9451e077128705857e4c8aff3a7aeaf2deb9d3549086ea472dac2bd92367466036e7d2d1f0
7
+ data.tar.gz: a94b7ad26a242d308818e494aa02fb9356347311254618a2fa5889f4d83fc4f5072d6569fc76a7a83024d999cd051df0b53dacfc53a2765ab4b9b0701bfec57d
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.181
1
+ 1.0.182
@@ -0,0 +1,28 @@
1
+
2
+
3
+ ---
4
+
5
+ ## retry Action Webhook Failure
6
+
7
+ ```
8
+ Files::ActionWebhookFailure.retry(id)
9
+ ```
10
+
11
+ ### Parameters
12
+
13
+ * `id` (int64): Required - Action Webhook Failure ID.
14
+
15
+
16
+ ---
17
+
18
+ ## retry Action Webhook Failure
19
+
20
+ ```
21
+ action_webhook_failure = Files::ActionWebhookFailure.list_for(path).first
22
+
23
+ action_webhook_failure.retry
24
+ ```
25
+
26
+ ### Parameters
27
+
28
+ * `id` (int64): Required - Action Webhook Failure ID.
data/lib/files.com.rb CHANGED
@@ -31,6 +31,7 @@ require "files.com/models/account_line_item"
31
31
  require "files.com/models/action"
32
32
  require "files.com/models/action_notification_export"
33
33
  require "files.com/models/action_notification_export_result"
34
+ require "files.com/models/action_webhook_failure"
34
35
  require "files.com/models/api_key"
35
36
  require "files.com/models/app"
36
37
  require "files.com/models/as2_key"
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Files
4
+ class ActionWebhookFailure
5
+ attr_reader :options, :attributes
6
+
7
+ def initialize(attributes = {}, options = {})
8
+ @attributes = attributes || {}
9
+ @options = options || {}
10
+ end
11
+
12
+ # retry Action Webhook Failure
13
+ def retry(params = {})
14
+ params ||= {}
15
+ params[:id] = @attributes[:id]
16
+ raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
17
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
18
+ raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
19
+
20
+ Api.send_request("/action_webhook_failures/#{@attributes[:id]}/retry", :post, params, @options)
21
+ end
22
+
23
+ # retry Action Webhook Failure
24
+ def self.retry(id, params = {}, options = {})
25
+ params ||= {}
26
+ params[:id] = id
27
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
28
+ raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
29
+
30
+ response, _options = Api.send_request("/action_webhook_failures/#{params[:id]}/retry", :post, params, options)
31
+ response.data
32
+ end
33
+ end
34
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: files.com
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.181
4
+ version: 1.0.182
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-09 00:00:00.000000000 Z
11
+ date: 2021-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -90,6 +90,7 @@ files:
90
90
  - docs/action.md
91
91
  - docs/action_notification_export.md
92
92
  - docs/action_notification_export_result.md
93
+ - docs/action_webhook_failure.md
93
94
  - docs/api_key.md
94
95
  - docs/app.md
95
96
  - docs/as2_key.md
@@ -164,6 +165,7 @@ files:
164
165
  - lib/files.com/models/action.rb
165
166
  - lib/files.com/models/action_notification_export.rb
166
167
  - lib/files.com/models/action_notification_export_result.rb
168
+ - lib/files.com/models/action_webhook_failure.rb
167
169
  - lib/files.com/models/api_key.rb
168
170
  - lib/files.com/models/app.rb
169
171
  - lib/files.com/models/as2_key.rb