files.com 1.1.799 → 1.1.800
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/as2_incoming_message.md +31 -1
- data/lib/files.com/models/as2_incoming_message.rb +35 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ecf1564e2813fd56763df9545809247fb73a123285654d284b29b6b3cdbeadea
|
|
4
|
+
data.tar.gz: c453ef450311badcb61e8cfc34191319d9b639a58dae3b7ed75644beb760b462
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e307b3b237f636bdb9eff9a7f4a39eebd889ed7e1aa2999d003ad42e5373a53f602c379343aed244c622631d71177cf8712eaaefc37869ad3afb177adc60b561
|
|
7
|
+
data.tar.gz: fdd433d5d88ade5083a161d498be2bdd8afd386303a378dc8fd35ce8140fd989a87bedebae0d315d0a578f8eb09201f69efad6d18fcaeff0351651457b827120
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.800
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
```
|
|
6
6
|
{
|
|
7
7
|
"id": 1,
|
|
8
|
+
"replayed_from_message_id": 1,
|
|
8
9
|
"workspace_id": 1,
|
|
9
10
|
"as2_partner_id": 1,
|
|
10
11
|
"as2_station_id": 1,
|
|
@@ -46,7 +47,8 @@
|
|
|
46
47
|
}
|
|
47
48
|
```
|
|
48
49
|
|
|
49
|
-
* `id` (int64):
|
|
50
|
+
* `id` (int64): ID of this AS2 incoming message record.
|
|
51
|
+
* `replayed_from_message_id` (int64): ID of the incoming message record this message was replayed from. Empty for messages received directly from a trading partner.
|
|
50
52
|
* `workspace_id` (int64): ID of the Workspace associated with this AS2 Incoming Message.
|
|
51
53
|
* `as2_partner_id` (int64): Id of the AS2 Partner associated with this message.
|
|
52
54
|
* `as2_station_id` (int64): Id of the AS2 Station associated with this message.
|
|
@@ -101,3 +103,31 @@ Files::As2IncomingMessage.list
|
|
|
101
103
|
* `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
|
102
104
|
* `filter_lt` (object): If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
|
103
105
|
* `filter_lteq` (object): If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## Replay AS2 Incoming Message
|
|
111
|
+
|
|
112
|
+
```
|
|
113
|
+
Files::As2IncomingMessage.replay(id)
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### Parameters
|
|
117
|
+
|
|
118
|
+
* `id` (int64): Required - As2 Incoming Message ID.
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
## Replay AS2 Incoming Message
|
|
124
|
+
|
|
125
|
+
```
|
|
126
|
+
as2_incoming_message = Files::As2IncomingMessage.list.first
|
|
127
|
+
|
|
128
|
+
as2_incoming_message.replay
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
### Parameters
|
|
132
|
+
|
|
133
|
+
* `id` (int64): Required - As2 Incoming Message ID.
|
|
@@ -11,11 +11,16 @@ module Files
|
|
|
11
11
|
@options = options || {}
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
# int64 -
|
|
14
|
+
# int64 - ID of this AS2 incoming message record.
|
|
15
15
|
def id
|
|
16
16
|
@attributes[:id]
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
+
# int64 - ID of the incoming message record this message was replayed from. Empty for messages received directly from a trading partner.
|
|
20
|
+
def replayed_from_message_id
|
|
21
|
+
@attributes[:replayed_from_message_id]
|
|
22
|
+
end
|
|
23
|
+
|
|
19
24
|
# int64 - ID of the Workspace associated with this AS2 Incoming Message.
|
|
20
25
|
def workspace_id
|
|
21
26
|
@attributes[:workspace_id]
|
|
@@ -186,6 +191,19 @@ module Files
|
|
|
186
191
|
@attributes[:mdn_response_uri]
|
|
187
192
|
end
|
|
188
193
|
|
|
194
|
+
# Replay AS2 Incoming Message
|
|
195
|
+
def replay(params = {})
|
|
196
|
+
params = (params || {}).dup
|
|
197
|
+
params[:id] = @attributes[:id]
|
|
198
|
+
raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
|
|
199
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if !params[:id].nil? and !params[:id].is_a?(Integer)
|
|
200
|
+
raise MissingParameterError.new("Parameter missing: id") if params[:id].nil?
|
|
201
|
+
|
|
202
|
+
response, options = Api.send_request("/as2_incoming_messages/#{@attributes[:id]}/replay", :post, params, @options)
|
|
203
|
+
@options = @options.merge(options)
|
|
204
|
+
[ response, options ]
|
|
205
|
+
end
|
|
206
|
+
|
|
189
207
|
# Parameters:
|
|
190
208
|
# cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
|
191
209
|
# per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
|
|
@@ -221,5 +239,21 @@ module Files
|
|
|
221
239
|
def self.all(params = {}, options = {})
|
|
222
240
|
list(params, options)
|
|
223
241
|
end
|
|
242
|
+
|
|
243
|
+
# Replay AS2 Incoming Message
|
|
244
|
+
#
|
|
245
|
+
# params:: Hash of API operation parameter values.
|
|
246
|
+
# options:: Hash of optional request configuration passed to Files::Api.send_request.
|
|
247
|
+
#
|
|
248
|
+
# Returns a Files::As2IncomingMessage.
|
|
249
|
+
def self.replay(id, params = {}, options = {})
|
|
250
|
+
params = (params || {}).dup
|
|
251
|
+
params[:id] = id
|
|
252
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if !params[:id].nil? and !params[:id].is_a?(Integer)
|
|
253
|
+
raise MissingParameterError.new("Parameter missing: id") if params[:id].nil?
|
|
254
|
+
|
|
255
|
+
response, options = Api.send_request("/as2_incoming_messages/#{params[:id]}/replay", :post, params, options) { |reply| reply.require_object("As2IncomingMessage") }
|
|
256
|
+
As2IncomingMessage.new(response.data, options)
|
|
257
|
+
end
|
|
224
258
|
end
|
|
225
259
|
end
|