files.com 1.0.181 → 1.0.182
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.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/action_webhook_failure.md +28 -0
- data/lib/files.com.rb +1 -0
- data/lib/files.com/models/action_webhook_failure.rb +34 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e075ac53f4e6168ab7f7344bc46638ca88fbf5cc175b599832fc721511d9a441
|
4
|
+
data.tar.gz: c5a4ef80a09077c19ce44f371a8562576b1cd2a6204acaccd1076c6f54c3620a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da69ba3af21444e628a5daaaa89ceb05628f3f245cf4f07474629c9451e077128705857e4c8aff3a7aeaf2deb9d3549086ea472dac2bd92367466036e7d2d1f0
|
7
|
+
data.tar.gz: a94b7ad26a242d308818e494aa02fb9356347311254618a2fa5889f4d83fc4f5072d6569fc76a7a83024d999cd051df0b53dacfc53a2765ab4b9b0701bfec57d
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
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.
|
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-
|
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
|