Class: SyncteraRubySdk::PendingTransactionHistoryData
- Inherits:
-
Object
- Object
- SyncteraRubySdk::PendingTransactionHistoryData
- Defined in:
- lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb
Defined Under Namespace
Classes: EnumAttributeValidator
Instance Attribute Summary collapse
-
#amount ⇒ Object
The amount of the hold.
-
#auto_post_at ⇒ Object
The time the transaction will be automatically posted.
-
#avail_balance ⇒ Object
The account "available balance" at the time this hold was created (to be deprecated).
-
#available_balance ⇒ Object
The account "available balance" at the time this hold was created.
-
#balance ⇒ Object
The account balance at the time this hold was created.
-
#currency ⇒ Object
ISO 4217 alphabetic currency code of the transfer amount.
-
#dc_sign ⇒ Object
Returns the value of attribute dc_sign.
-
#effective_date ⇒ Object
The effective date of the transaction once it gets posted.
-
#expires_at ⇒ Object
The date that at which this hold is no longer valid.
-
#external_data ⇒ Object
an unstructured json blob representing additional transaction information supplied by the integrator.
-
#force_post ⇒ Object
Whether or not the hold was forced (spending controls ignored).
-
#idemkey ⇒ Object
The idempotency key used when initially creating this hold.
-
#memo ⇒ Object
A short note to the recipient.
-
#network ⇒ Object
The network this transaction is associated with.
-
#operation ⇒ Object
Returns the value of attribute operation.
-
#reason ⇒ Object
If a hold has been declined or modified, this will include the reason.
-
#req_amount ⇒ Object
The requested amount, in the case of hold modifications.
-
#risk_info ⇒ Object
Information received by the transaction risk/fraud service related to this transaction.
-
#status ⇒ Object
The status of the hold.
-
#subtype ⇒ Object
The specific transaction type.
-
#total_amount ⇒ Object
The total amount of the hold.
-
#transaction_id ⇒ Object
The uuid of the transaction that this pending transaction originated from, if any.
-
#transaction_time ⇒ Object
The time the transaction occurred.
-
#type ⇒ Object
The general type of transaction.
-
#user_data ⇒ Object
An unstructured JSON blob representing additional transaction information specific to each payment rail.
-
#was_partial ⇒ Object
Does this hold represent a partial debit (or credit)?.
Class Method Summary collapse
-
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about.
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.build_from_hash(attributes) ⇒ Object
Builds the object from hash.
-
.openapi_nullable ⇒ Object
List of attributes with nullable: true.
-
.openapi_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 ⇒ Integer
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ PendingTransactionHistoryData
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 = {}) ⇒ PendingTransactionHistoryData
Initializes the object
196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 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 308 309 310 311 312 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 196 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `SyncteraRubySdk::PendingTransactionHistoryData` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `SyncteraRubySdk::PendingTransactionHistoryData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'amount') self.amount = attributes[:'amount'] end if attributes.key?(:'auto_post_at') self.auto_post_at = attributes[:'auto_post_at'] end if attributes.key?(:'avail_balance') self.avail_balance = attributes[:'avail_balance'] end if attributes.key?(:'available_balance') self.available_balance = attributes[:'available_balance'] end if attributes.key?(:'balance') self.balance = attributes[:'balance'] end if attributes.key?(:'currency') self.currency = attributes[:'currency'] end if attributes.key?(:'dc_sign') self.dc_sign = attributes[:'dc_sign'] end if attributes.key?(:'effective_date') self.effective_date = attributes[:'effective_date'] end if attributes.key?(:'expires_at') self.expires_at = attributes[:'expires_at'] end if attributes.key?(:'external_data') self.external_data = attributes[:'external_data'] end if attributes.key?(:'force_post') self.force_post = attributes[:'force_post'] end if attributes.key?(:'idemkey') self.idemkey = attributes[:'idemkey'] end if attributes.key?(:'memo') self.memo = attributes[:'memo'] end if attributes.key?(:'network') self.network = attributes[:'network'] end if attributes.key?(:'operation') self.operation = attributes[:'operation'] end if attributes.key?(:'reason') self.reason = attributes[:'reason'] end if attributes.key?(:'req_amount') self.req_amount = attributes[:'req_amount'] end if attributes.key?(:'risk_info') self.risk_info = attributes[:'risk_info'] end if attributes.key?(:'status') self.status = attributes[:'status'] end if attributes.key?(:'subtype') self.subtype = attributes[:'subtype'] end if attributes.key?(:'total_amount') self.total_amount = attributes[:'total_amount'] end if attributes.key?(:'transaction_id') self.transaction_id = attributes[:'transaction_id'] end if attributes.key?(:'transaction_time') self.transaction_time = attributes[:'transaction_time'] end if attributes.key?(:'type') self.type = attributes[:'type'] end if attributes.key?(:'user_data') self.user_data = attributes[:'user_data'] end if attributes.key?(:'was_partial') self.was_partial = attributes[:'was_partial'] end end |
Instance Attribute Details
#amount ⇒ Object
The amount of the hold.
19 20 21 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 19 def amount @amount end |
#auto_post_at ⇒ Object
The time the transaction will be automatically posted.
22 23 24 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 22 def auto_post_at @auto_post_at end |
#avail_balance ⇒ Object
The account "available balance" at the time this hold was created (to be deprecated)
25 26 27 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 25 def avail_balance @avail_balance end |
#available_balance ⇒ Object
The account "available balance" at the time this hold was created
28 29 30 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 28 def available_balance @available_balance end |
#balance ⇒ Object
The account balance at the time this hold was created
31 32 33 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 31 def balance @balance end |
#currency ⇒ Object
ISO 4217 alphabetic currency code of the transfer amount
34 35 36 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 34 def currency @currency end |
#dc_sign ⇒ Object
Returns the value of attribute dc_sign.
36 37 38 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 36 def dc_sign @dc_sign end |
#effective_date ⇒ Object
The effective date of the transaction once it gets posted
39 40 41 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 39 def effective_date @effective_date end |
#expires_at ⇒ Object
The date that at which this hold is no longer valid.
42 43 44 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 42 def expires_at @expires_at end |
#external_data ⇒ Object
an unstructured json blob representing additional transaction information supplied by the integrator.
45 46 47 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 45 def external_data @external_data end |
#force_post ⇒ Object
Whether or not the hold was forced (spending controls ignored)
48 49 50 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 48 def force_post @force_post end |
#idemkey ⇒ Object
The idempotency key used when initially creating this hold.
51 52 53 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 51 def idemkey @idemkey end |
#memo ⇒ Object
A short note to the recipient
54 55 56 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 54 def memo @memo end |
#network ⇒ Object
The network this transaction is associated with
57 58 59 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 57 def network @network end |
#operation ⇒ Object
Returns the value of attribute operation.
59 60 61 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 59 def operation @operation end |
#reason ⇒ Object
If a hold has been declined or modified, this will include the reason.
62 63 64 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 62 def reason @reason end |
#req_amount ⇒ Object
The requested amount, in the case of hold modifications.
65 66 67 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 65 def req_amount @req_amount end |
#risk_info ⇒ Object
Information received by the transaction risk/fraud service related to this transaction
68 69 70 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 68 def risk_info @risk_info end |
#status ⇒ Object
The status of the hold.
71 72 73 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 71 def status @status end |
#subtype ⇒ Object
The specific transaction type. For example, for ‘ach`, this may be "outgoing_debit".
74 75 76 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 74 def subtype @subtype end |
#total_amount ⇒ Object
The total amount of the hold. This may be different than ‘amount` in the case where a hold increase or decrease was requested.
77 78 79 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 77 def total_amount @total_amount end |
#transaction_id ⇒ Object
The uuid of the transaction that this pending transaction originated from, if any. This is primary used when a transaction "posts", but a subset of the amount reserved until a future settlement date.
80 81 82 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 80 def transaction_id @transaction_id end |
#transaction_time ⇒ Object
The time the transaction occurred.
83 84 85 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 83 def transaction_time @transaction_time end |
#type ⇒ Object
The general type of transaction. For example, "card" or "ach".
86 87 88 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 86 def type @type end |
#user_data ⇒ Object
An unstructured JSON blob representing additional transaction information specific to each payment rail.
89 90 91 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 89 def user_data @user_data end |
#was_partial ⇒ Object
Does this hold represent a partial debit (or credit)?
92 93 94 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 92 def was_partial @was_partial end |
Class Method Details
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about
149 150 151 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 149 def self.acceptable_attributes attribute_map.values end |
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 117 def self.attribute_map { :'amount' => :'amount', :'auto_post_at' => :'auto_post_at', :'avail_balance' => :'avail_balance', :'available_balance' => :'available_balance', :'balance' => :'balance', :'currency' => :'currency', :'dc_sign' => :'dc_sign', :'effective_date' => :'effective_date', :'expires_at' => :'expires_at', :'external_data' => :'external_data', :'force_post' => :'force_post', :'idemkey' => :'idemkey', :'memo' => :'memo', :'network' => :'network', :'operation' => :'operation', :'reason' => :'reason', :'req_amount' => :'req_amount', :'risk_info' => :'risk_info', :'status' => :'status', :'subtype' => :'subtype', :'total_amount' => :'total_amount', :'transaction_id' => :'transaction_id', :'transaction_time' => :'transaction_time', :'type' => :'type', :'user_data' => :'user_data', :'was_partial' => :'was_partial' } end |
.build_from_hash(attributes) ⇒ Object
Builds the object from hash
566 567 568 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 566 def self.build_from_hash(attributes) new.build_from_hash(attributes) end |
.openapi_nullable ⇒ Object
List of attributes with nullable: true
186 187 188 189 190 191 192 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 186 def self.openapi_nullable Set.new([ :'external_data', :'risk_info', :'user_data', ]) end |
.openapi_types ⇒ Object
Attribute type mapping.
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 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 154 def self.openapi_types { :'amount' => :'Integer', :'auto_post_at' => :'Time', :'avail_balance' => :'Integer', :'available_balance' => :'Integer', :'balance' => :'Integer', :'currency' => :'String', :'dc_sign' => :'DcSign', :'effective_date' => :'Time', :'expires_at' => :'Time', :'external_data' => :'Object', :'force_post' => :'Boolean', :'idemkey' => :'String', :'memo' => :'String', :'network' => :'String', :'operation' => :'String', :'reason' => :'String', :'req_amount' => :'Integer', :'risk_info' => :'Object', :'status' => :'String', :'subtype' => :'String', :'total_amount' => :'Integer', :'transaction_id' => :'String', :'transaction_time' => :'Time', :'type' => :'String', :'user_data' => :'Object', :'was_partial' => :'Boolean' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 520 def ==(o) return true if self.equal?(o) self.class == o.class && amount == o.amount && auto_post_at == o.auto_post_at && avail_balance == o.avail_balance && available_balance == o.available_balance && balance == o.balance && currency == o.currency && dc_sign == o.dc_sign && effective_date == o.effective_date && expires_at == o.expires_at && external_data == o.external_data && force_post == o.force_post && idemkey == o.idemkey && memo == o.memo && network == o.network && operation == o.operation && reason == o.reason && req_amount == o.req_amount && risk_info == o.risk_info && status == o.status && subtype == o.subtype && total_amount == o.total_amount && transaction_id == o.transaction_id && transaction_time == o.transaction_time && type == o.type && user_data == o.user_data && was_partial == o.was_partial end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 597 def _deserialize(type, value) case type.to_sym when :Time Time.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 # models (e.g. Pet) or oneOf klass = SyncteraRubySdk.const_get(type) klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.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
668 669 670 671 672 673 674 675 676 677 678 679 680 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 668 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
573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 573 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) self.class.openapi_types.each_pair do |key, type| if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) self.send("#{key}=", nil) elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end end self end |
#eql?(o) ⇒ Boolean
553 554 555 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 553 def eql?(o) self == o end |
#hash ⇒ Integer
Calculates hash code according to all attributes.
559 560 561 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 559 def hash [amount, auto_post_at, avail_balance, available_balance, balance, currency, dc_sign, effective_date, expires_at, external_data, force_post, idemkey, memo, network, operation, reason, req_amount, risk_info, status, subtype, total_amount, transaction_id, transaction_time, type, user_data, was_partial].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 316 def list_invalid_properties invalid_properties = Array.new if @amount.nil? invalid_properties.push('invalid value for "amount", amount cannot be nil.') end if @amount < 0 invalid_properties.push('invalid value for "amount", must be greater than or equal to 0.') end if @auto_post_at.nil? invalid_properties.push('invalid value for "auto_post_at", auto_post_at cannot be nil.') end if @avail_balance.nil? invalid_properties.push('invalid value for "avail_balance", avail_balance cannot be nil.') end if @available_balance.nil? invalid_properties.push('invalid value for "available_balance", available_balance cannot be nil.') end if @balance.nil? invalid_properties.push('invalid value for "balance", balance cannot be nil.') end if @currency.nil? invalid_properties.push('invalid value for "currency", currency cannot be nil.') end if @dc_sign.nil? invalid_properties.push('invalid value for "dc_sign", dc_sign cannot be nil.') end if @effective_date.nil? invalid_properties.push('invalid value for "effective_date", effective_date cannot be nil.') end if @expires_at.nil? invalid_properties.push('invalid value for "expires_at", expires_at cannot be nil.') end if @force_post.nil? invalid_properties.push('invalid value for "force_post", force_post cannot be nil.') end if @idemkey.nil? invalid_properties.push('invalid value for "idemkey", idemkey cannot be nil.') end if @memo.nil? invalid_properties.push('invalid value for "memo", memo cannot be nil.') end if @network.nil? invalid_properties.push('invalid value for "network", network cannot be nil.') end if @operation.nil? invalid_properties.push('invalid value for "operation", operation cannot be nil.') end if @reason.nil? invalid_properties.push('invalid value for "reason", reason cannot be nil.') end if @req_amount.nil? invalid_properties.push('invalid value for "req_amount", req_amount cannot be nil.') end if @req_amount < 0 invalid_properties.push('invalid value for "req_amount", must be greater than or equal to 0.') end if @status.nil? invalid_properties.push('invalid value for "status", status cannot be nil.') end if @subtype.nil? invalid_properties.push('invalid value for "subtype", subtype cannot be nil.') end if @total_amount.nil? invalid_properties.push('invalid value for "total_amount", total_amount cannot be nil.') end if @total_amount < 0 invalid_properties.push('invalid value for "total_amount", must be greater than or equal to 0.') end if @transaction_time.nil? invalid_properties.push('invalid value for "transaction_time", transaction_time cannot be nil.') end if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end if @was_partial.nil? invalid_properties.push('invalid value for "was_partial", was_partial cannot be nil.') end invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
644 645 646 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 644 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
650 651 652 653 654 655 656 657 658 659 660 661 662 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 650 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? is_nullable = self.class.openapi_nullable.include?(attr) next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) end hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
638 639 640 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 638 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 |
# File 'lib/synctera_ruby_sdk/models/pending_transaction_history_data.rb', line 423 def valid? return false if @amount.nil? return false if @amount < 0 return false if @auto_post_at.nil? return false if @avail_balance.nil? return false if @available_balance.nil? return false if @balance.nil? return false if @currency.nil? return false if @dc_sign.nil? return false if @effective_date.nil? return false if @expires_at.nil? return false if @force_post.nil? return false if @idemkey.nil? return false if @memo.nil? return false if @network.nil? return false if @operation.nil? operation_validator = EnumAttributeValidator.new('String', ["hold_new", "hold_increase", "hold_decrease", "hold_replace", "hold_decline", "hold_cancel", "hold_post", "hold_expire"]) return false unless operation_validator.valid?(@operation) return false if @reason.nil? return false if @req_amount.nil? return false if @req_amount < 0 return false if @status.nil? status_validator = EnumAttributeValidator.new('String', ["PENDING", "REPLACED", "DECLINED", "RELEASED", "PARTCLEARED", "EXPIRED", "CLEARED", "INTERNAL_ERROR"]) return false unless status_validator.valid?(@status) return false if @subtype.nil? return false if @total_amount.nil? return false if @total_amount < 0 return false if @transaction_time.nil? return false if @type.nil? return false if @was_partial.nil? true end |