Class: OnlinePayments::SDK::Domain::RedirectPaymentProduct3302SpecificInput
- Inherits:
-
DataObject
- Object
- DataObject
- OnlinePayments::SDK::Domain::RedirectPaymentProduct3302SpecificInput
- Defined in:
- lib/onlinepayments/sdk/domain/redirect_payment_product3302_specific_input.rb
Instance Attribute Summary collapse
-
#organization_entity_type ⇒ String
The current value of organization_entity_type.
-
#organization_registration_id ⇒ String
The current value of organization_registration_id.
-
#vat_id ⇒ String
The current value of vat_id.
Instance Method Summary collapse
Methods inherited from DataObject
Instance Attribute Details
#organization_entity_type ⇒ String
Returns the current value of organization_entity_type.
12 13 14 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product3302_specific_input.rb', line 12 def organization_entity_type @organization_entity_type end |
#organization_registration_id ⇒ String
Returns the current value of organization_registration_id.
12 13 14 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product3302_specific_input.rb', line 12 def organization_registration_id @organization_registration_id end |
#vat_id ⇒ String
Returns the current value of vat_id.
12 13 14 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product3302_specific_input.rb', line 12 def vat_id @vat_id end |
Instance Method Details
#from_hash(hash) ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product3302_specific_input.rb', line 29 def from_hash(hash) super if hash.has_key? 'organizationEntityType' @organization_entity_type = hash['organizationEntityType'] end if hash.has_key? 'organizationRegistrationId' @organization_registration_id = hash['organizationRegistrationId'] end if hash.has_key? 'vatId' @vat_id = hash['vatId'] end end |
#to_h ⇒ Hash
21 22 23 24 25 26 27 |
# File 'lib/onlinepayments/sdk/domain/redirect_payment_product3302_specific_input.rb', line 21 def to_h hash = super hash['organizationEntityType'] = @organization_entity_type unless @organization_entity_type.nil? hash['organizationRegistrationId'] = @organization_registration_id unless @organization_registration_id.nil? hash['vatId'] = @vat_id unless @vat_id.nil? hash end |