Class: TreezorClient::Mandate

Inherits:
Object
  • Object
show all
Defined in:
lib/treezor_client/models/mandate.rb

Defined Under Namespace

Classes: EnumAttributeValidator

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Mandate

Initializes the object

Parameters:

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

    Model attributes in the form of hash



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
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
# File 'lib/treezor_client/models/mandate.rb', line 206

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?(:'mandateId')
    self.mandate_id = attributes[:'mandateId']
  end

  if attributes.has_key?(:'title')
    self.title = attributes[:'title']
  end

  if attributes.has_key?(:'legalInformations')
    self.legal_informations = attributes[:'legalInformations']
  end

  if attributes.has_key?(:'uniqueMandateReference')
    self.unique_mandate_reference = attributes[:'uniqueMandateReference']
  end

  if attributes.has_key?(:'mandateStatus')
    self.mandate_status = attributes[:'mandateStatus']
  end

  if attributes.has_key?(:'userId')
    self.user_id = attributes[:'userId']
  end

  if attributes.has_key?(:'debtorName')
    self.debtor_name = attributes[:'debtorName']
  end

  if attributes.has_key?(:'debtorAddress')
    self.debtor_address = attributes[:'debtorAddress']
  end

  if attributes.has_key?(:'debtorCity')
    self.debtor_city = attributes[:'debtorCity']
  end

  if attributes.has_key?(:'debtorZipCode')
    self.debtor_zip_code = attributes[:'debtorZipCode']
  end

  if attributes.has_key?(:'debtorCountry')
    self.debtor_country = attributes[:'debtorCountry']
  end

  if attributes.has_key?(:'debtorIban')
    self.debtor_iban = attributes[:'debtorIban']
  end

  if attributes.has_key?(:'debtorBic')
    self.debtor_bic = attributes[:'debtorBic']
  end

  if attributes.has_key?(:'sequenceType')
    self.sequence_type = attributes[:'sequenceType']
  end

  if attributes.has_key?(:'creditorName')
    self.creditor_name = attributes[:'creditorName']
  end

  if attributes.has_key?(:'sepaCreditorIdentifier')
    self.sepa_creditor_identifier = attributes[:'sepaCreditorIdentifier']
  end

  if attributes.has_key?(:'creditorAddress')
    self.creditor_address = attributes[:'creditorAddress']
  end

  if attributes.has_key?(:'creditorCity')
    self.creditor_city = attributes[:'creditorCity']
  end

  if attributes.has_key?(:'creditorZipCode')
    self.creditor_zip_code = attributes[:'creditorZipCode']
  end

  if attributes.has_key?(:'creditorCountry')
    self.creditor_country = attributes[:'creditorCountry']
  end

  if attributes.has_key?(:'signatureDate')
    self.signature_date = attributes[:'signatureDate']
  end

  if attributes.has_key?(:'debtorSignatureIp')
    self.debtor_signature_ip = attributes[:'debtorSignatureIp']
  end

  if attributes.has_key?(:'signed')
    self.signed = attributes[:'signed']
  end

  if attributes.has_key?(:'debtorIdentificationCode')
    self.debtor_identification_code = attributes[:'debtorIdentificationCode']
  end

  if attributes.has_key?(:'debtorReferencePartyName')
    self.debtor_reference_party_name = attributes[:'debtorReferencePartyName']
  end

  if attributes.has_key?(:'debtorReferenceIdentificationCode')
    self.debtor_reference_identification_code = attributes[:'debtorReferenceIdentificationCode']
  end

  if attributes.has_key?(:'creditorReferencePartyName')
    self.creditor_reference_party_name = attributes[:'creditorReferencePartyName']
  end

  if attributes.has_key?(:'creditorReferenceIdentificationCode')
    self.creditor_reference_identification_code = attributes[:'creditorReferenceIdentificationCode']
  end

  if attributes.has_key?(:'contractIdentificationNumber')
    self.contract_identification_number = attributes[:'contractIdentificationNumber']
  end

  if attributes.has_key?(:'contractDescription')
    self.contract_description = attributes[:'contractDescription']
  end

  if attributes.has_key?(:'isPaper')
    self.is_paper = attributes[:'isPaper']
  end

  if attributes.has_key?(:'sddType')
    self.sdd_type = attributes[:'sddType']
  end

  if attributes.has_key?(:'revocationSignatureDate')
    self.revocation_signature_date = attributes[:'revocationSignatureDate']
  end

  if attributes.has_key?(:'createdIp')
    self.created_ip = attributes[:'createdIp']
  end

  if attributes.has_key?(:'createdDate')
    self.created_date = attributes[:'createdDate']
  end

  if attributes.has_key?(:'modifiedDate')
    self.modified_date = attributes[:'modifiedDate']
  end

  if attributes.has_key?(:'userIdUltimateCreditor')
    self.user_id_ultimate_creditor = attributes[:'userIdUltimateCreditor']
  end
end

Instance Attribute Details

#contract_descriptionObject

Returns the value of attribute contract_description.



76
77
78
# File 'lib/treezor_client/models/mandate.rb', line 76

def contract_description
  @contract_description
end

#contract_identification_numberObject

Returns the value of attribute contract_identification_number.



74
75
76
# File 'lib/treezor_client/models/mandate.rb', line 74

def contract_identification_number
  @contract_identification_number
end

#created_dateObject

Date YYYY-MM-DD HH:MM:SS



88
89
90
# File 'lib/treezor_client/models/mandate.rb', line 88

def created_date
  @created_date
end

#created_ipObject

Returns the value of attribute created_ip.



85
86
87
# File 'lib/treezor_client/models/mandate.rb', line 85

def created_ip
  @created_ip
end

#creditor_addressObject

Returns the value of attribute creditor_address.



49
50
51
# File 'lib/treezor_client/models/mandate.rb', line 49

def creditor_address
  @creditor_address
end

#creditor_cityObject

Returns the value of attribute creditor_city.



51
52
53
# File 'lib/treezor_client/models/mandate.rb', line 51

def creditor_city
  @creditor_city
end

#creditor_countryObject

Returns the value of attribute creditor_country.



55
56
57
# File 'lib/treezor_client/models/mandate.rb', line 55

def creditor_country
  @creditor_country
end

#creditor_nameObject

Returns the value of attribute creditor_name.



45
46
47
# File 'lib/treezor_client/models/mandate.rb', line 45

def creditor_name
  @creditor_name
end

#creditor_reference_identification_codeObject

Returns the value of attribute creditor_reference_identification_code.



72
73
74
# File 'lib/treezor_client/models/mandate.rb', line 72

def creditor_reference_identification_code
  @creditor_reference_identification_code
end

#creditor_reference_party_nameObject

Returns the value of attribute creditor_reference_party_name.



70
71
72
# File 'lib/treezor_client/models/mandate.rb', line 70

def creditor_reference_party_name
  @creditor_reference_party_name
end

#creditor_zip_codeObject

Returns the value of attribute creditor_zip_code.



53
54
55
# File 'lib/treezor_client/models/mandate.rb', line 53

def creditor_zip_code
  @creditor_zip_code
end

#debtor_addressObject

Returns the value of attribute debtor_address.



31
32
33
# File 'lib/treezor_client/models/mandate.rb', line 31

def debtor_address
  @debtor_address
end

#debtor_bicObject

Returns the value of attribute debtor_bic.



41
42
43
# File 'lib/treezor_client/models/mandate.rb', line 41

def debtor_bic
  @debtor_bic
end

#debtor_cityObject

Returns the value of attribute debtor_city.



33
34
35
# File 'lib/treezor_client/models/mandate.rb', line 33

def debtor_city
  @debtor_city
end

#debtor_countryObject

Returns the value of attribute debtor_country.



37
38
39
# File 'lib/treezor_client/models/mandate.rb', line 37

def debtor_country
  @debtor_country
end

#debtor_ibanObject

Returns the value of attribute debtor_iban.



39
40
41
# File 'lib/treezor_client/models/mandate.rb', line 39

def debtor_iban
  @debtor_iban
end

#debtor_identification_codeObject

Returns the value of attribute debtor_identification_code.



64
65
66
# File 'lib/treezor_client/models/mandate.rb', line 64

def debtor_identification_code
  @debtor_identification_code
end

#debtor_nameObject

Returns the value of attribute debtor_name.



29
30
31
# File 'lib/treezor_client/models/mandate.rb', line 29

def debtor_name
  @debtor_name
end

#debtor_reference_identification_codeObject

Returns the value of attribute debtor_reference_identification_code.



68
69
70
# File 'lib/treezor_client/models/mandate.rb', line 68

def debtor_reference_identification_code
  @debtor_reference_identification_code
end

#debtor_reference_party_nameObject

Returns the value of attribute debtor_reference_party_name.



66
67
68
# File 'lib/treezor_client/models/mandate.rb', line 66

def debtor_reference_party_name
  @debtor_reference_party_name
end

#debtor_signature_ipObject

Returns the value of attribute debtor_signature_ip.



60
61
62
# File 'lib/treezor_client/models/mandate.rb', line 60

def debtor_signature_ip
  @debtor_signature_ip
end

#debtor_zip_codeObject

Returns the value of attribute debtor_zip_code.



35
36
37
# File 'lib/treezor_client/models/mandate.rb', line 35

def debtor_zip_code
  @debtor_zip_code
end

#is_paperObject

Returns the value of attribute is_paper.



78
79
80
# File 'lib/treezor_client/models/mandate.rb', line 78

def is_paper
  @is_paper
end

Returns the value of attribute legal_informations.



21
22
23
# File 'lib/treezor_client/models/mandate.rb', line 21

def legal_informations
  @legal_informations
end

#mandate_idObject

Returns the value of attribute mandate_id.



17
18
19
# File 'lib/treezor_client/models/mandate.rb', line 17

def mandate_id
  @mandate_id
end

#mandate_statusObject

Returns the value of attribute mandate_status.



25
26
27
# File 'lib/treezor_client/models/mandate.rb', line 25

def mandate_status
  @mandate_status
end

#modified_dateObject

Date YYYY-MM-DD HH:MM:SS



91
92
93
# File 'lib/treezor_client/models/mandate.rb', line 91

def modified_date
  @modified_date
end

#revocation_signature_dateObject

Date YYYY-MM-DD HH:MM:SS



83
84
85
# File 'lib/treezor_client/models/mandate.rb', line 83

def revocation_signature_date
  @revocation_signature_date
end

#sdd_typeObject

Returns the value of attribute sdd_type.



80
81
82
# File 'lib/treezor_client/models/mandate.rb', line 80

def sdd_type
  @sdd_type
end

#sepa_creditor_identifierObject

Returns the value of attribute sepa_creditor_identifier.



47
48
49
# File 'lib/treezor_client/models/mandate.rb', line 47

def sepa_creditor_identifier
  @sepa_creditor_identifier
end

#sequence_typeObject

Returns the value of attribute sequence_type.



43
44
45
# File 'lib/treezor_client/models/mandate.rb', line 43

def sequence_type
  @sequence_type
end

#signature_dateObject

Date YYYY-MM-DD



58
59
60
# File 'lib/treezor_client/models/mandate.rb', line 58

def signature_date
  @signature_date
end

#signedObject

Returns the value of attribute signed.



62
63
64
# File 'lib/treezor_client/models/mandate.rb', line 62

def signed
  @signed
end

#titleObject

Returns the value of attribute title.



19
20
21
# File 'lib/treezor_client/models/mandate.rb', line 19

def title
  @title
end

#unique_mandate_referenceObject

Returns the value of attribute unique_mandate_reference.



23
24
25
# File 'lib/treezor_client/models/mandate.rb', line 23

def unique_mandate_reference
  @unique_mandate_reference
end

#user_idObject

Returns the value of attribute user_id.



27
28
29
# File 'lib/treezor_client/models/mandate.rb', line 27

def user_id
  @user_id
end

#user_id_ultimate_creditorObject

For SDDE Core third party credior mode



94
95
96
# File 'lib/treezor_client/models/mandate.rb', line 94

def user_id_ultimate_creditor
  @user_id_ultimate_creditor
end

Class Method Details

.attribute_mapObject

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



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
147
148
149
150
151
152
153
154
155
156
157
158
159
# File 'lib/treezor_client/models/mandate.rb', line 119

def self.attribute_map
  {
    :'mandate_id' => :'mandateId',
    :'title' => :'title',
    :'legal_informations' => :'legalInformations',
    :'unique_mandate_reference' => :'uniqueMandateReference',
    :'mandate_status' => :'mandateStatus',
    :'user_id' => :'userId',
    :'debtor_name' => :'debtorName',
    :'debtor_address' => :'debtorAddress',
    :'debtor_city' => :'debtorCity',
    :'debtor_zip_code' => :'debtorZipCode',
    :'debtor_country' => :'debtorCountry',
    :'debtor_iban' => :'debtorIban',
    :'debtor_bic' => :'debtorBic',
    :'sequence_type' => :'sequenceType',
    :'creditor_name' => :'creditorName',
    :'sepa_creditor_identifier' => :'sepaCreditorIdentifier',
    :'creditor_address' => :'creditorAddress',
    :'creditor_city' => :'creditorCity',
    :'creditor_zip_code' => :'creditorZipCode',
    :'creditor_country' => :'creditorCountry',
    :'signature_date' => :'signatureDate',
    :'debtor_signature_ip' => :'debtorSignatureIp',
    :'signed' => :'signed',
    :'debtor_identification_code' => :'debtorIdentificationCode',
    :'debtor_reference_party_name' => :'debtorReferencePartyName',
    :'debtor_reference_identification_code' => :'debtorReferenceIdentificationCode',
    :'creditor_reference_party_name' => :'creditorReferencePartyName',
    :'creditor_reference_identification_code' => :'creditorReferenceIdentificationCode',
    :'contract_identification_number' => :'contractIdentificationNumber',
    :'contract_description' => :'contractDescription',
    :'is_paper' => :'isPaper',
    :'sdd_type' => :'sddType',
    :'revocation_signature_date' => :'revocationSignatureDate',
    :'created_ip' => :'createdIp',
    :'created_date' => :'createdDate',
    :'modified_date' => :'modifiedDate',
    :'user_id_ultimate_creditor' => :'userIdUltimateCreditor'
  }
end

.swagger_typesObject

Attribute type mapping.



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
193
194
195
196
197
198
199
200
201
202
# File 'lib/treezor_client/models/mandate.rb', line 162

def self.swagger_types
  {
    :'mandate_id' => :'Integer',
    :'title' => :'String',
    :'legal_informations' => :'String',
    :'unique_mandate_reference' => :'String',
    :'mandate_status' => :'String',
    :'user_id' => :'Integer',
    :'debtor_name' => :'String',
    :'debtor_address' => :'String',
    :'debtor_city' => :'String',
    :'debtor_zip_code' => :'String',
    :'debtor_country' => :'String',
    :'debtor_iban' => :'String',
    :'debtor_bic' => :'String',
    :'sequence_type' => :'String',
    :'creditor_name' => :'String',
    :'sepa_creditor_identifier' => :'String',
    :'creditor_address' => :'String',
    :'creditor_city' => :'String',
    :'creditor_zip_code' => :'String',
    :'creditor_country' => :'String',
    :'signature_date' => :'String',
    :'debtor_signature_ip' => :'String',
    :'signed' => :'Integer',
    :'debtor_identification_code' => :'String',
    :'debtor_reference_party_name' => :'String',
    :'debtor_reference_identification_code' => :'String',
    :'creditor_reference_party_name' => :'String',
    :'creditor_reference_identification_code' => :'String',
    :'contract_identification_number' => :'String',
    :'contract_description' => :'String',
    :'is_paper' => :'BOOLEAN',
    :'sdd_type' => :'String',
    :'revocation_signature_date' => :'String',
    :'created_ip' => :'String',
    :'created_date' => :'String',
    :'modified_date' => :'String',
    :'user_id_ultimate_creditor' => :'Integer'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



412
413
414
415
416
417
418
419
420
421
422
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
# File 'lib/treezor_client/models/mandate.rb', line 412

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      mandate_id == o.mandate_id &&
      title == o.title &&
      legal_informations == o.legal_informations &&
      unique_mandate_reference == o.unique_mandate_reference &&
      mandate_status == o.mandate_status &&
      user_id == o.user_id &&
      debtor_name == o.debtor_name &&
      debtor_address == o.debtor_address &&
      debtor_city == o.debtor_city &&
      debtor_zip_code == o.debtor_zip_code &&
      debtor_country == o.debtor_country &&
      debtor_iban == o.debtor_iban &&
      debtor_bic == o.debtor_bic &&
      sequence_type == o.sequence_type &&
      creditor_name == o.creditor_name &&
      sepa_creditor_identifier == o.sepa_creditor_identifier &&
      creditor_address == o.creditor_address &&
      creditor_city == o.creditor_city &&
      creditor_zip_code == o.creditor_zip_code &&
      creditor_country == o.creditor_country &&
      signature_date == o.signature_date &&
      debtor_signature_ip == o.debtor_signature_ip &&
      signed == o.signed &&
      debtor_identification_code == o.debtor_identification_code &&
      debtor_reference_party_name == o.debtor_reference_party_name &&
      debtor_reference_identification_code == o.debtor_reference_identification_code &&
      creditor_reference_party_name == o.creditor_reference_party_name &&
      creditor_reference_identification_code == o.creditor_reference_identification_code &&
      contract_identification_number == o.contract_identification_number &&
      contract_description == o.contract_description &&
      is_paper == o.is_paper &&
      sdd_type == o.sdd_type &&
      revocation_signature_date == o.revocation_signature_date &&
      created_ip == o.created_ip &&
      created_date == o.created_date &&
      modified_date == o.modified_date &&
      user_id_ultimate_creditor == o.user_id_ultimate_creditor
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



490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
# File 'lib/treezor_client/models/mandate.rb', line 490

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 = TreezorClient.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

Parameters:

  • value (Object)

    Any valid value

Returns:

  • (Hash)

    Returns the value in the form of hash



556
557
558
559
560
561
562
563
564
565
566
567
568
# File 'lib/treezor_client/models/mandate.rb', line 556

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



469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
# File 'lib/treezor_client/models/mandate.rb', line 469

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("#{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 # or else data not found in attributes(hash), not an issue as the data can be optional
  end

  self
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


456
457
458
# File 'lib/treezor_client/models/mandate.rb', line 456

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



462
463
464
# File 'lib/treezor_client/models/mandate.rb', line 462

def hash
  [mandate_id, title, legal_informations, unique_mandate_reference, mandate_status, user_id, debtor_name, debtor_address, debtor_city, debtor_zip_code, debtor_country, debtor_iban, debtor_bic, sequence_type, creditor_name, sepa_creditor_identifier, creditor_address, creditor_city, creditor_zip_code, creditor_country, signature_date, debtor_signature_ip, signed, debtor_identification_code, debtor_reference_party_name, debtor_reference_identification_code, creditor_reference_party_name, creditor_reference_identification_code, contract_identification_number, contract_description, is_paper, sdd_type, revocation_signature_date, created_ip, created_date, modified_date, user_id_ultimate_creditor].hash
end

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



363
364
365
366
# File 'lib/treezor_client/models/mandate.rb', line 363

def list_invalid_properties
  invalid_properties = Array.new
  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



536
537
538
# File 'lib/treezor_client/models/mandate.rb', line 536

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



542
543
544
545
546
547
548
549
550
# File 'lib/treezor_client/models/mandate.rb', line 542

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_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



530
531
532
# File 'lib/treezor_client/models/mandate.rb', line 530

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



370
371
372
373
374
375
376
377
378
# File 'lib/treezor_client/models/mandate.rb', line 370

def valid?
  mandate_status_validator = EnumAttributeValidator.new('String', ['PENDING', 'CANCELED', 'VALIDATED'])
  return false unless mandate_status_validator.valid?(@mandate_status)
  sequence_type_validator = EnumAttributeValidator.new('String', ['one-off', 'recurrent'])
  return false unless sequence_type_validator.valid?(@sequence_type)
  sdd_type_validator = EnumAttributeValidator.new('String', ['core', 'b2b'])
  return false unless sdd_type_validator.valid?(@sdd_type)
  true
end