files.com 1.1.799 → 1.1.801

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: d1c87d4e516aa3589dc5273186b088dad8a25acecbbd6b84a4929a0afb482e62
4
+ data.tar.gz: 406cac39656e4fc8b91ecf80835b534fc3490ddc9464cb67a2de973693fbf905
5
5
  SHA512:
6
- metadata.gz: 123cbd719526f44e72d43e76089f37ea9fecd3a96c6e56555d9fb9121265f97a40a085cb59c5497f47fe6bce77f6e15dbd9d85894ba68155d7c2f049f82c256c
7
- data.tar.gz: '08be0cdb53ab73a6abe5f911342de1b9779f2d53e1db046dfea477c847819f7a2fbd5c567c9b8eeef6827bd5826ea02952c0aa917d8d2c6698f84979fae508a3'
6
+ metadata.gz: 434989dfad4771c8553eddcdbfb247d838264c3cabfc143e240cff900c7adab93bbb662d624da2342413d8e71e69519f352237eaef79a1963a48af676f2bf848
7
+ data.tar.gz: c19133619f3568f39fe6df01161ad3209f9399d85750b9a6a8fb56473f48fcf5775d75502d879cde007d365673ff942f0f21fa3cc77b58b96af92c77384fe757
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.799
1
+ 1.1.801
@@ -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.
@@ -96,8 +98,49 @@ Files::As2IncomingMessage.list
96
98
  * `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.
97
99
  * `per_page` (int64): Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
98
100
  * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `workspace_id`, `created_at` or `as2_partner_id`.
99
- * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `as2_station_id`, `workspace_id` or `as2_partner_id`. Valid field combinations are `[ as2_station_id, created_at ]`, `[ workspace_id, created_at ]`, `[ as2_partner_id, created_at ]`, `[ workspace_id, as2_station_id ]`, `[ workspace_id, as2_partner_id ]`, `[ workspace_id, as2_station_id, created_at ]` or `[ workspace_id, as2_partner_id, created_at ]`.
101
+ * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `as2_station_id`, `workspace_id`, `replayed_from_message_id` or `as2_partner_id`. Valid field combinations are `[ as2_station_id, created_at ]`, `[ workspace_id, created_at ]`, `[ replayed_from_message_id, created_at ]`, `[ as2_partner_id, created_at ]`, `[ workspace_id, as2_station_id ]`, `[ workspace_id, replayed_from_message_id ]`, `[ workspace_id, as2_partner_id ]`, `[ workspace_id, as2_station_id, created_at ]`, `[ workspace_id, replayed_from_message_id, created_at ]` or `[ workspace_id, as2_partner_id, created_at ]`.
100
102
  * `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
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
+ ## Show AS2 Incoming Message
111
+
112
+ ```
113
+ Files::As2IncomingMessage.find(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
+ Files::As2IncomingMessage.replay(id)
127
+ ```
128
+
129
+ ### Parameters
130
+
131
+ * `id` (int64): Required - As2 Incoming Message ID.
132
+
133
+
134
+ ---
135
+
136
+ ## Replay AS2 Incoming Message
137
+
138
+ ```
139
+ as2_incoming_message = Files::As2IncomingMessage.find(id)
140
+
141
+ as2_incoming_message.replay
142
+ ```
143
+
144
+ ### Parameters
145
+
146
+ * `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,11 +191,24 @@ 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).
192
210
  # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `workspace_id`, `created_at` or `as2_partner_id`.
193
- # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `as2_station_id`, `workspace_id` or `as2_partner_id`. Valid field combinations are `[ as2_station_id, created_at ]`, `[ workspace_id, created_at ]`, `[ as2_partner_id, created_at ]`, `[ workspace_id, as2_station_id ]`, `[ workspace_id, as2_partner_id ]`, `[ workspace_id, as2_station_id, created_at ]` or `[ workspace_id, as2_partner_id, created_at ]`.
211
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `as2_station_id`, `workspace_id`, `replayed_from_message_id` or `as2_partner_id`. Valid field combinations are `[ as2_station_id, created_at ]`, `[ workspace_id, created_at ]`, `[ replayed_from_message_id, created_at ]`, `[ as2_partner_id, created_at ]`, `[ workspace_id, as2_station_id ]`, `[ workspace_id, replayed_from_message_id ]`, `[ workspace_id, as2_partner_id ]`, `[ workspace_id, as2_station_id, created_at ]`, `[ workspace_id, replayed_from_message_id, created_at ]` or `[ workspace_id, as2_partner_id, created_at ]`.
194
212
  # filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
195
213
  # filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
196
214
  # filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
@@ -221,5 +239,42 @@ module Files
221
239
  def self.all(params = {}, options = {})
222
240
  list(params, options)
223
241
  end
242
+
243
+ # Parameters:
244
+ # id (required) - int64 - As2 Incoming Message ID.
245
+ #
246
+ # params:: Hash of API operation parameter values.
247
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
248
+ #
249
+ # Returns a Files::As2IncomingMessage.
250
+ def self.find(id, params = {}, options = {})
251
+ params = (params || {}).dup
252
+ params[:id] = id
253
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if !params[:id].nil? and !params[:id].is_a?(Integer)
254
+ raise MissingParameterError.new("Parameter missing: id") if params[:id].nil?
255
+
256
+ response, options = Api.send_request("/as2_incoming_messages/#{params[:id]}", :get, params, options) { |reply| reply.require_object("As2IncomingMessage") }
257
+ As2IncomingMessage.new(response.data, options)
258
+ end
259
+
260
+ def self.get(id, params = {}, options = {})
261
+ find(id, params, options)
262
+ end
263
+
264
+ # Replay AS2 Incoming Message
265
+ #
266
+ # params:: Hash of API operation parameter values.
267
+ # options:: Hash of optional request configuration passed to Files::Api.send_request.
268
+ #
269
+ # Returns a Files::As2IncomingMessage.
270
+ def self.replay(id, params = {}, options = {})
271
+ params = (params || {}).dup
272
+ params[:id] = id
273
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if !params[:id].nil? and !params[:id].is_a?(Integer)
274
+ raise MissingParameterError.new("Parameter missing: id") if params[:id].nil?
275
+
276
+ response, options = Api.send_request("/as2_incoming_messages/#{params[:id]}/replay", :post, params, options) { |reply| reply.require_object("As2IncomingMessage") }
277
+ As2IncomingMessage.new(response.data, options)
278
+ end
224
279
  end
225
280
  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.801
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com