Class: SynergyWholesale::Types::AuRegistrant
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- SynergyWholesale::Types::AuRegistrant
- Defined in:
- lib/synergy_wholesale/types/au_registrant.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.build(attributes) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/synergy_wholesale/types/au_registrant.rb', line 13 def self.build(attributes) new( { registrant_name: attributes[:registrant_name], registrant_id: attributes[:registrant_id], registrant_id_type: { id_type: attributes[:registrant_id_type] }, eligibility_type: { organisation_type: attributes[:eligibility_type] }, eligibility_name: attributes[:eligibility_name], eligibility_id_type: { id_type: attributes[:eligibility_id_type] }, eligibility_id: attributes[:eligibility_id] } ) end |
Instance Method Details
#to_param ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/synergy_wholesale/types/au_registrant.rb', line 27 def to_param { 'registrantName' => registrant_name, 'registrantID' => registrant_id, 'registrantIDType' => registrant_id_type.to_s, 'eligibilityID' => eligibility_id, 'eligibilityIDType' => eligibility_id_type.to_s, 'eligibilityName' => eligibility_name, 'eligibilityType' => eligibility_type.to_s } end |