Class: SyncteraRubySdk::PendingTransactionData

Inherits:
Object
  • Object
show all
Defined in:
lib/synctera_ruby_sdk/models/pending_transaction_data.rb

Defined Under Namespace

Classes: EnumAttributeValidator

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ PendingTransactionData

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



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
313
314
315
316
317
318
319
320
321
322
323
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 201

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `SyncteraRubySdk::PendingTransactionData` 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::PendingTransactionData`. 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?(:'history')
    if (value = attributes[:'history']).is_a?(Array)
      self.history = value
    end
  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

#amountObject

The amount of the hold.



19
20
21
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 19

def amount
  @amount
end

#auto_post_atObject

The account "available balance" at the time this hold was created



22
23
24
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 22

def auto_post_at
  @auto_post_at
end

#avail_balanceObject

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_data.rb', line 25

def avail_balance
  @avail_balance
end

#available_balanceObject

The account "available balance" at the time this hold was created



28
29
30
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 28

def available_balance
  @available_balance
end

#balanceObject

The account balance at the time this hold was created



31
32
33
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 31

def balance
  @balance
end

#currencyObject

ISO 4217 alphabetic currency code of the transfer amount



34
35
36
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 34

def currency
  @currency
end

#dc_signObject

Returns the value of attribute dc_sign.



36
37
38
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 36

def dc_sign
  @dc_sign
end

#effective_dateObject

The effective date of the transaction once it gets posted



39
40
41
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 39

def effective_date
  @effective_date
end

#expires_atObject

The date that at which this hold is no longer valid.



42
43
44
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 42

def expires_at
  @expires_at
end

#external_dataObject

an unstructured json blob representing additional transaction information supplied by the integrator.



45
46
47
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 45

def external_data
  @external_data
end

#force_postObject

Whether or not the hold was forced (spending controls ignored)



48
49
50
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 48

def force_post
  @force_post
end

#historyObject

An array representing any previous states of the hold, if it has been modified (For example, increasing or decreasing the hold amount).



51
52
53
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 51

def history
  @history
end

#idemkeyObject

The idempotency key used when initially creating this hold.



54
55
56
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 54

def idemkey
  @idemkey
end

#memoObject

A short note to the recipient



57
58
59
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 57

def memo
  @memo
end

#networkObject

The network this transaction is associated with



60
61
62
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 60

def network
  @network
end

#operationObject

Returns the value of attribute operation.



62
63
64
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 62

def operation
  @operation
end

#reasonObject

If a hold has been declined or modified, this will include the reason.



65
66
67
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 65

def reason
  @reason
end

#req_amountObject

The requested amount, in the case of hold modifications.



68
69
70
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 68

def req_amount
  @req_amount
end

#risk_infoObject

Information received by the transaction risk/fraud service related to this transaction



71
72
73
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 71

def risk_info
  @risk_info
end

#statusObject

The status of the hold.



74
75
76
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 74

def status
  @status
end

#subtypeObject

The specific transaction type. For example, for ‘ach`, this may be "outgoing_debit".



77
78
79
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 77

def subtype
  @subtype
end

#total_amountObject

The total amount of the hold. This may be different than ‘amount` in the case where a hold increase or decrease was requested.



80
81
82
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 80

def total_amount
  @total_amount
end

#transaction_idObject

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.



83
84
85
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 83

def transaction_id
  @transaction_id
end

#transaction_timeObject

The time that the transaction was created



86
87
88
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 86

def transaction_time
  @transaction_time
end

#typeObject

The general type of transaction. For example, "card" or "ach".



89
90
91
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 89

def type
  @type
end

#user_dataObject

An unstructured JSON blob representing additional transaction information specific to each payment rail.



92
93
94
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 92

def user_data
  @user_data
end

#was_partialObject

Does this hold represent a partial debit (or credit)?



95
96
97
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 95

def was_partial
  @was_partial
end

Class Method Details

.acceptable_attributesObject

Returns all the JSON keys this model knows about



153
154
155
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 153

def self.acceptable_attributes
  attribute_map.values
end

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



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
147
148
149
150
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 120

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',
    :'history' => :'history',
    :'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

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



583
584
585
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 583

def self.build_from_hash(attributes)
  new.build_from_hash(attributes)
end

.openapi_nullableObject

List of attributes with nullable: true



191
192
193
194
195
196
197
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 191

def self.openapi_nullable
  Set.new([
    :'external_data',
    :'risk_info',
    :'user_data',
  ])
end

.openapi_typesObject

Attribute type mapping.



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
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 158

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',
    :'history' => :'Array<PendingTransactionHistory>',
    :'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.

Parameters:

  • Object (Object)

    to be compared



536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 536

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 &&
      history == o.history &&
      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

Parameters:

  • string

    type Data type

  • string

    value Value to be deserialized

Returns:

  • (Object)

    Deserialized data



614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 614

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

Parameters:

  • value (Object)

    Any valid value

Returns:

  • (Hash)

    Returns the value in the form of hash



685
686
687
688
689
690
691
692
693
694
695
696
697
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 685

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

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 590

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

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


570
571
572
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 570

def eql?(o)
  self == o
end

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



576
577
578
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 576

def hash
  [amount, auto_post_at, avail_balance, available_balance, balance, currency, dc_sign, effective_date, expires_at, external_data, force_post, history, 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_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



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
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 327

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 @history.nil?
    invalid_properties.push('invalid value for "history", history 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_bodyHash

to_body is an alias to to_hash (backward compatibility)

Returns:

  • (Hash)

    Returns the object in the form of hash



661
662
663
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 661

def to_body
  to_hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



667
668
669
670
671
672
673
674
675
676
677
678
679
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 667

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_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



655
656
657
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 655

def to_s
  to_hash.to_s
end

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
# File 'lib/synctera_ruby_sdk/models/pending_transaction_data.rb', line 438

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 @history.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