Module: SyncteraRubySdk::RelationshipIn
- Defined in:
- lib/synctera_ruby_sdk/models/relationship_in.rb
Class Method Summary collapse
-
.build(data) ⇒ Object
Builds the object.
-
.openapi_discriminator_mapping ⇒ Object
Discriminator’s mapping (OpenAPI v3).
-
.openapi_discriminator_name ⇒ Object
Discriminator’s property name (OpenAPI v3).
-
.openapi_one_of ⇒ Object
List of class defined in oneOf (OpenAPI v3).
Class Method Details
.build(data) ⇒ Object
Builds the object
47 48 49 50 51 52 53 54 55 |
# File 'lib/synctera_ruby_sdk/models/relationship_in.rb', line 47 def build(data) discriminator_value = data[openapi_discriminator_name] return nil if discriminator_value.nil? klass = openapi_discriminator_mapping[discriminator_value.to_s.to_sym] return nil unless klass SyncteraRubySdk.const_get(klass).build_from_hash(data) end |
.openapi_discriminator_mapping ⇒ Object
Discriminator’s mapping (OpenAPI v3)
35 36 37 38 39 40 41 42 |
# File 'lib/synctera_ruby_sdk/models/relationship_in.rb', line 35 def openapi_discriminator_mapping { :'BENEFICIAL_OWNER_OF' => :'PersonBusinessOwnerRelationship', :'MANAGING_PERSON_OF' => :'PersonBusinessRelationship', :'OWNER_OF' => :'BusinessBusinessOwnerRelationship', :'PAYER_PAYEE' => :'PayerPayeeRelationship' } end |
.openapi_discriminator_name ⇒ Object
Discriminator’s property name (OpenAPI v3)
30 31 32 |
# File 'lib/synctera_ruby_sdk/models/relationship_in.rb', line 30 def openapi_discriminator_name :'relationship_type' end |
.openapi_one_of ⇒ Object
List of class defined in oneOf (OpenAPI v3)
20 21 22 23 24 25 26 27 |
# File 'lib/synctera_ruby_sdk/models/relationship_in.rb', line 20 def openapi_one_of [ :'BusinessBusinessOwnerRelationship', :'PayerPayeeRelationship', :'PersonBusinessOwnerRelationship', :'PersonBusinessRelationship' ] end |