Class: Files::As2OutgoingMessage
- Inherits:
-
Object
- Object
- Files::As2OutgoingMessage
- Defined in:
- lib/files.com/models/as2_outgoing_message.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
- .all(params = {}, options = {}) ⇒ Object
-
.list(params = {}, options = {}) ⇒ Object
Parameters: cursor - string - Used for pagination.
Instance Method Summary collapse
-
#activity_log ⇒ Object
string - JSON Structure of the activity log.
-
#as2_from ⇒ Object
string - AS2 FROM.
-
#as2_partner_id ⇒ Object
int64 - Id of the AS2 Partner associated with this message.
-
#as2_station_id ⇒ Object
int64 - Id of the AS2 Station associated with this message.
-
#as2_to ⇒ Object
string - AS2 TO.
-
#attachment_filename ⇒ Object
string - Filename of the file being sent.
-
#body_size ⇒ Object
string - Encrypted Payload Body Size.
-
#created_at ⇒ Object
date-time - Message creation date/time.
-
#date ⇒ Object
string - Date Header.
-
#encrypted_uri ⇒ Object
string - URL to download the encrypted signed smime that is to sent as AS2 body.
-
#http_headers ⇒ Object
object - HTTP Headers sent with this message.
-
#http_response_code ⇒ Object
string - HTTP Response Code received for this message.
-
#http_response_headers ⇒ Object
object - HTTP Headers received for this message.
-
#http_transmission_duration ⇒ Object
double - HTTP transmission duration in seceonds.
-
#id ⇒ Object
int64 - Id of the AS2 Partner.
-
#initialize(attributes = {}, options = {}) ⇒ As2OutgoingMessage
constructor
A new instance of As2OutgoingMessage.
-
#mdn_message_id_matched ⇒ Object
boolean - MDN message id matched?.
-
#mdn_mic_matched ⇒ Object
boolean - MDN MIC matched?.
-
#mdn_processing_success ⇒ Object
boolean - MDN disposition indicate a successful processing?.
-
#mdn_received ⇒ Object
boolean - Did the partner give a response body?.
-
#mdn_response_uri ⇒ Object
string - URL to download the http response body.
-
#mdn_signature_verified ⇒ Object
boolean - MDN signature verified?.
-
#mdn_valid ⇒ Object
boolean - Is the response in MDN format?.
-
#message_id ⇒ Object
string - AS2 Message Id.
-
#mic ⇒ Object
string - AS2 Message Integrity Check SHA1.
-
#mic_sha_256 ⇒ Object
string - AS2 Message Integrity Check SHA256.
-
#processing_result ⇒ Object
string - Result of processing.
-
#processing_result_description ⇒ Object
string - Result of processing description.
-
#raw_uri ⇒ Object
string - URL to download the original file contents.
-
#smime_signed_uri ⇒ Object
string - URL to download the file contents as smime with signature.
-
#smime_uri ⇒ Object
string - URL to download the file contents encoded as smime.
-
#uuid ⇒ Object
string - UUID assigned to this message.
Constructor Details
#initialize(attributes = {}, options = {}) ⇒ As2OutgoingMessage
Returns a new instance of As2OutgoingMessage.
7 8 9 10 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 7 def initialize(attributes = {}, = {}) @attributes = attributes || {} @options = || {} end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
5 6 7 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 5 def attributes @attributes end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 5 def @options end |
Class Method Details
.all(params = {}, options = {}) ⇒ Object
193 194 195 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 193 def self.all(params = {}, = {}) list(params, ) end |
.list(params = {}, options = {}) ⇒ Object
Parameters:
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.
per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[created_at]=desc`). Valid fields are `created_at` and `as2_partner_id`.
filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
as2_partner_id - int64 - As2 Partner ID. If provided, will return message specific to that partner.
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 177 def self.list(params = {}, = {}) raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String) raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash) raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash) raise InvalidParameterError.new("Bad parameter: filter_gt must be an Hash") if params[:filter_gt] and !params[:filter_gt].is_a?(Hash) raise InvalidParameterError.new("Bad parameter: filter_gteq must be an Hash") if params[:filter_gteq] and !params[:filter_gteq].is_a?(Hash) raise InvalidParameterError.new("Bad parameter: filter_lt must be an Hash") if params[:filter_lt] and !params[:filter_lt].is_a?(Hash) raise InvalidParameterError.new("Bad parameter: filter_lteq must be an Hash") if params[:filter_lteq] and !params[:filter_lteq].is_a?(Hash) raise InvalidParameterError.new("Bad parameter: as2_partner_id must be an Integer") if params[:as2_partner_id] and !params[:as2_partner_id].is_a?(Integer) List.new(As2OutgoingMessage, params) do Api.send_request("/as2_outgoing_messages", :get, params, ) end end |
Instance Method Details
#activity_log ⇒ Object
string - JSON Structure of the activity log.
38 39 40 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 38 def activity_log @attributes[:activity_log] end |
#as2_from ⇒ Object
string - AS2 FROM
68 69 70 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 68 def as2_from @attributes[:as2_from] end |
#as2_partner_id ⇒ Object
int64 - Id of the AS2 Partner associated with this message.
18 19 20 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 18 def as2_partner_id @attributes[:as2_partner_id] end |
#as2_station_id ⇒ Object
int64 - Id of the AS2 Station associated with this message.
23 24 25 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 23 def as2_station_id @attributes[:as2_station_id] end |
#as2_to ⇒ Object
string - AS2 TO
63 64 65 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 63 def as2_to @attributes[:as2_to] end |
#attachment_filename ⇒ Object
string - Filename of the file being sent.
88 89 90 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 88 def @attributes[:attachment_filename] end |
#body_size ⇒ Object
string - Encrypted Payload Body Size
83 84 85 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 83 def body_size @attributes[:body_size] end |
#created_at ⇒ Object
date-time - Message creation date/time
93 94 95 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 93 def created_at @attributes[:created_at] end |
#date ⇒ Object
string - Date Header
73 74 75 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 73 def date @attributes[:date] end |
#encrypted_uri ⇒ Object
string - URL to download the encrypted signed smime that is to sent as AS2 body
158 159 160 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 158 def encrypted_uri @attributes[:encrypted_uri] end |
#http_headers ⇒ Object
object - HTTP Headers sent with this message.
33 34 35 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 33 def http_headers @attributes[:http_headers] end |
#http_response_code ⇒ Object
string - HTTP Response Code received for this message
98 99 100 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 98 def http_response_code @attributes[:http_response_code] end |
#http_response_headers ⇒ Object
object - HTTP Headers received for this message.
103 104 105 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 103 def http_response_headers @attributes[:http_response_headers] end |
#http_transmission_duration ⇒ Object
double - HTTP transmission duration in seceonds
108 109 110 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 108 def http_transmission_duration @attributes[:http_transmission_duration] end |
#id ⇒ Object
int64 - Id of the AS2 Partner.
13 14 15 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 13 def id @attributes[:id] end |
#mdn_message_id_matched ⇒ Object
boolean - MDN message id matched?
128 129 130 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 128 def @attributes[:mdn_message_id_matched] end |
#mdn_mic_matched ⇒ Object
boolean - MDN MIC matched?
133 134 135 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 133 def mdn_mic_matched @attributes[:mdn_mic_matched] end |
#mdn_processing_success ⇒ Object
boolean - MDN disposition indicate a successful processing?
138 139 140 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 138 def mdn_processing_success @attributes[:mdn_processing_success] end |
#mdn_received ⇒ Object
boolean - Did the partner give a response body?
113 114 115 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 113 def mdn_received @attributes[:mdn_received] end |
#mdn_response_uri ⇒ Object
string - URL to download the http response body
163 164 165 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 163 def mdn_response_uri @attributes[:mdn_response_uri] end |
#mdn_signature_verified ⇒ Object
boolean - MDN signature verified?
123 124 125 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 123 def mdn_signature_verified @attributes[:mdn_signature_verified] end |
#mdn_valid ⇒ Object
boolean - Is the response in MDN format?
118 119 120 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 118 def mdn_valid @attributes[:mdn_valid] end |
#message_id ⇒ Object
string - AS2 Message Id
78 79 80 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 78 def @attributes[:message_id] end |
#mic ⇒ Object
string - AS2 Message Integrity Check SHA1
53 54 55 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 53 def mic @attributes[:mic] end |
#mic_sha_256 ⇒ Object
string - AS2 Message Integrity Check SHA256
58 59 60 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 58 def mic_sha_256 @attributes[:mic_sha_256] end |
#processing_result ⇒ Object
string - Result of processing.
43 44 45 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 43 def processing_result @attributes[:processing_result] end |
#processing_result_description ⇒ Object
string - Result of processing description.
48 49 50 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 48 def processing_result_description @attributes[:processing_result_description] end |
#raw_uri ⇒ Object
string - URL to download the original file contents
143 144 145 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 143 def raw_uri @attributes[:raw_uri] end |
#smime_signed_uri ⇒ Object
string - URL to download the file contents as smime with signature
153 154 155 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 153 def smime_signed_uri @attributes[:smime_signed_uri] end |
#smime_uri ⇒ Object
string - URL to download the file contents encoded as smime
148 149 150 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 148 def smime_uri @attributes[:smime_uri] end |
#uuid ⇒ Object
string - UUID assigned to this message.
28 29 30 |
# File 'lib/files.com/models/as2_outgoing_message.rb', line 28 def uuid @attributes[:uuid] end |