Class: CyberSource::Ptsv2intentsProcessingInformation
- Inherits:
-
Object
- Object
- CyberSource::Ptsv2intentsProcessingInformation
- Defined in:
- lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb
Instance Attribute Summary collapse
-
#action_list ⇒ Object
Array of actions (one or more) to be included in the order to invoke bundled services along with order.
-
#authorization_options ⇒ Object
Returns the value of attribute authorization_options.
-
#face_id_verification ⇒ Object
Indicates if face ID verification is required.
-
#high_risk_transaction_flag ⇒ Object
Indicates if the transaction is flagged as high risk.
-
#ip_address ⇒ Object
The IP address of the user.
-
#last_one_day_transaction_count ⇒ Object
The number of transactions in the last one day.
-
#last_one_hr_transaction_count ⇒ Object
The number of transactions in the last one hour.
-
#last_three_months_txn_count ⇒ Object
The number of transactions in the last three months.
-
#pin_verification ⇒ Object
Indicates if PIN verification is required.
-
#processing_instruction ⇒ Object
The instruction to process an order.
-
#tangible ⇒ Object
Indicates if the transaction involves tangible goods.
-
#total_transaction_count ⇒ Object
The total number of transactions.
-
#transaction_date ⇒ Object
The date of the transaction.
-
#transaction_retry ⇒ Object
Indicates if the transaction is a retry.
-
#user_passed_verification ⇒ Object
Indicates if the user passed verification.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.json_map ⇒ Object
Attribute mapping from JSON key to ruby-style variable name.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ Ptsv2intentsProcessingInformation
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ Ptsv2intentsProcessingInformation
Initializes the object
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 |
# File 'lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb', line 125 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'processingInstruction') self.processing_instruction = attributes[:'processingInstruction'] end if attributes.has_key?(:'authorizationOptions') self. = attributes[:'authorizationOptions'] end if attributes.has_key?(:'actionList') if (value = attributes[:'actionList']).is_a?(Array) self.action_list = value end end if attributes.has_key?(:'highRiskTransactionFlag') self.high_risk_transaction_flag = attributes[:'highRiskTransactionFlag'] end if attributes.has_key?(:'transactionRetry') self.transaction_retry = attributes[:'transactionRetry'] end if attributes.has_key?(:'lastOneHrTransactionCount') self.last_one_hr_transaction_count = attributes[:'lastOneHrTransactionCount'] end if attributes.has_key?(:'lastOneDayTransactionCount') self.last_one_day_transaction_count = attributes[:'lastOneDayTransactionCount'] end if attributes.has_key?(:'lastThreeMonthsTxnCount') self.last_three_months_txn_count = attributes[:'lastThreeMonthsTxnCount'] end if attributes.has_key?(:'totalTransactionCount') self.total_transaction_count = attributes[:'totalTransactionCount'] end if attributes.has_key?(:'pinVerification') self.pin_verification = attributes[:'pinVerification'] end if attributes.has_key?(:'faceIdVerification') self.face_id_verification = attributes[:'faceIdVerification'] end if attributes.has_key?(:'userPassedVerification') self.user_passed_verification = attributes[:'userPassedVerification'] end if attributes.has_key?(:'ipAddress') self.ip_address = attributes[:'ipAddress'] end if attributes.has_key?(:'transactionDate') self.transaction_date = attributes[:'transactionDate'] end if attributes.has_key?(:'tangible') self.tangible = attributes[:'tangible'] end end |
Instance Attribute Details
#action_list ⇒ Object
Array of actions (one or more) to be included in the order to invoke bundled services along with order. Possible values: - ‘AP_ORDER`: Use this when Alternative Payment Order service is requested.
22 23 24 |
# File 'lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb', line 22 def action_list @action_list end |
#authorization_options ⇒ Object
Returns the value of attribute authorization_options.
19 20 21 |
# File 'lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb', line 19 def @authorization_options end |
#face_id_verification ⇒ Object
Indicates if face ID verification is required.
46 47 48 |
# File 'lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb', line 46 def face_id_verification @face_id_verification end |
#high_risk_transaction_flag ⇒ Object
Indicates if the transaction is flagged as high risk.
25 26 27 |
# File 'lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb', line 25 def high_risk_transaction_flag @high_risk_transaction_flag end |
#ip_address ⇒ Object
The IP address of the user.
52 53 54 |
# File 'lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb', line 52 def ip_address @ip_address end |
#last_one_day_transaction_count ⇒ Object
The number of transactions in the last one day.
34 35 36 |
# File 'lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb', line 34 def last_one_day_transaction_count @last_one_day_transaction_count end |
#last_one_hr_transaction_count ⇒ Object
The number of transactions in the last one hour.
31 32 33 |
# File 'lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb', line 31 def last_one_hr_transaction_count @last_one_hr_transaction_count end |
#last_three_months_txn_count ⇒ Object
The number of transactions in the last three months.
37 38 39 |
# File 'lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb', line 37 def last_three_months_txn_count @last_three_months_txn_count end |
#pin_verification ⇒ Object
Indicates if PIN verification is required.
43 44 45 |
# File 'lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb', line 43 def pin_verification @pin_verification end |
#processing_instruction ⇒ Object
The instruction to process an order. - default value: ‘NO_INSTRUCTION’ - ‘ORDER_SAVED_EXPLICITLY’
17 18 19 |
# File 'lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb', line 17 def processing_instruction @processing_instruction end |
#tangible ⇒ Object
Indicates if the transaction involves tangible goods.
58 59 60 |
# File 'lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb', line 58 def tangible @tangible end |
#total_transaction_count ⇒ Object
The total number of transactions.
40 41 42 |
# File 'lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb', line 40 def total_transaction_count @total_transaction_count end |
#transaction_date ⇒ Object
The date of the transaction.
55 56 57 |
# File 'lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb', line 55 def transaction_date @transaction_date end |
#transaction_retry ⇒ Object
Indicates if the transaction is a retry.
28 29 30 |
# File 'lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb', line 28 def transaction_retry @transaction_retry end |
#user_passed_verification ⇒ Object
Indicates if the user passed verification.
49 50 51 |
# File 'lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb', line 49 def user_passed_verification @user_passed_verification end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb', line 61 def self.attribute_map { :'processing_instruction' => :'processingInstruction', :'authorization_options' => :'authorizationOptions', :'action_list' => :'actionList', :'high_risk_transaction_flag' => :'highRiskTransactionFlag', :'transaction_retry' => :'transactionRetry', :'last_one_hr_transaction_count' => :'lastOneHrTransactionCount', :'last_one_day_transaction_count' => :'lastOneDayTransactionCount', :'last_three_months_txn_count' => :'lastThreeMonthsTxnCount', :'total_transaction_count' => :'totalTransactionCount', :'pin_verification' => :'pinVerification', :'face_id_verification' => :'faceIdVerification', :'user_passed_verification' => :'userPassedVerification', :'ip_address' => :'ipAddress', :'transaction_date' => :'transactionDate', :'tangible' => :'tangible' } end |
.json_map ⇒ Object
Attribute mapping from JSON key to ruby-style variable name.
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb', line 82 def self.json_map { :'processing_instruction' => :'processing_instruction', :'authorization_options' => :'authorization_options', :'action_list' => :'action_list', :'high_risk_transaction_flag' => :'high_risk_transaction_flag', :'transaction_retry' => :'transaction_retry', :'last_one_hr_transaction_count' => :'last_one_hr_transaction_count', :'last_one_day_transaction_count' => :'last_one_day_transaction_count', :'last_three_months_txn_count' => :'last_three_months_txn_count', :'total_transaction_count' => :'total_transaction_count', :'pin_verification' => :'pin_verification', :'face_id_verification' => :'face_id_verification', :'user_passed_verification' => :'user_passed_verification', :'ip_address' => :'ip_address', :'transaction_date' => :'transaction_date', :'tangible' => :'tangible' } end |
.swagger_types ⇒ Object
Attribute type mapping.
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 |
# File 'lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb', line 103 def self.swagger_types { :'processing_instruction' => :'String', :'authorization_options' => :'Ptsv2intentsProcessingInformationAuthorizationOptions', :'action_list' => :'Array<String>', :'high_risk_transaction_flag' => :'String', :'transaction_retry' => :'String', :'last_one_hr_transaction_count' => :'String', :'last_one_day_transaction_count' => :'String', :'last_three_months_txn_count' => :'String', :'total_transaction_count' => :'String', :'pin_verification' => :'String', :'face_id_verification' => :'String', :'user_passed_verification' => :'String', :'ip_address' => :'String', :'transaction_date' => :'String', :'tangible' => :'String' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 |
# File 'lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb', line 215 def ==(o) return true if self.equal?(o) self.class == o.class && processing_instruction == o.processing_instruction && == o. && action_list == o.action_list && high_risk_transaction_flag == o.high_risk_transaction_flag && transaction_retry == o.transaction_retry && last_one_hr_transaction_count == o.last_one_hr_transaction_count && last_one_day_transaction_count == o.last_one_day_transaction_count && last_three_months_txn_count == o.last_three_months_txn_count && total_transaction_count == o.total_transaction_count && pin_verification == o.pin_verification && face_id_verification == o.face_id_verification && user_passed_verification == o.user_passed_verification && ip_address == o.ip_address && transaction_date == o.transaction_date && tangible == o.tangible end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 |
# File 'lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb', line 271 def _deserialize(type, value) case type.to_sym when :DateTime DateTime.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :BOOLEAN if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model temp_model = CyberSource.const_get(type).new temp_model.build_from_hash(value) end end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
337 338 339 340 341 342 343 344 345 346 347 348 349 |
# File 'lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb', line 337 def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 |
# File 'lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb', line 250 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(o) ⇒ Boolean
237 238 239 |
# File 'lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb', line 237 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
243 244 245 |
# File 'lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb', line 243 def hash [processing_instruction, , action_list, high_risk_transaction_flag, transaction_retry, last_one_hr_transaction_count, last_one_day_transaction_count, last_three_months_txn_count, total_transaction_count, pin_verification, face_id_verification, user_passed_verification, ip_address, transaction_date, tangible].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
196 197 198 199 |
# File 'lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb', line 196 def list_invalid_properties invalid_properties = Array.new invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
317 318 319 |
# File 'lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb', line 317 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
323 324 325 326 327 328 329 330 331 |
# File 'lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb', line 323 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) next if value.nil? hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
311 312 313 |
# File 'lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb', line 311 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
203 204 205 |
# File 'lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb', line 203 def valid? true end |