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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 21f7fa8a72987aa4fdf2222751ac721df1d4b969b2036845370b7f7b8188b2c0
4
- data.tar.gz: 80f41dfeeaf903fb48bd568430a8c15f13d35254ceb409b85253665cc511ee30
3
+ metadata.gz: ecf1564e2813fd56763df9545809247fb73a123285654d284b29b6b3cdbeadea
4
+ data.tar.gz: c453ef450311badcb61e8cfc34191319d9b639a58dae3b7ed75644beb760b462
5
5
  SHA512:
6
- metadata.gz: 123cbd719526f44e72d43e76089f37ea9fecd3a96c6e56555d9fb9121265f97a40a085cb59c5497f47fe6bce77f6e15dbd9d85894ba68155d7c2f049f82c256c
7
- data.tar.gz: '08be0cdb53ab73a6abe5f911342de1b9779f2d53e1db046dfea477c847819f7a2fbd5c567c9b8eeef6827bd5826ea02952c0aa917d8d2c6698f84979fae508a3'
6
+ metadata.gz: e307b3b237f636bdb9eff9a7f4a39eebd889ed7e1aa2999d003ad42e5373a53f602c379343aed244c622631d71177cf8712eaaefc37869ad3afb177adc60b561
7
+ data.tar.gz: fdd433d5d88ade5083a161d498be2bdd8afd386303a378dc8fd35ce8140fd989a87bedebae0d315d0a578f8eb09201f69efad6d18fcaeff0351651457b827120
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.799
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): Id of the AS2 Partner.
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 - Id of the AS2 Partner.
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: files.com
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.799
4
+ version: 1.1.800
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com