Class: OnlinePayments::SDK::Domain::RedirectPaymentProduct3302SpecificInput

Inherits:
DataObject
  • Object
show all
Defined in:
lib/onlinepayments/sdk/domain/redirect_payment_product3302_specific_input.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DataObject

new_from_hash

Instance Attribute Details

#organization_entity_typeString

Returns the current value of organization_entity_type.

Returns:

  • (String)

    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_idString

Returns the current value of organization_registration_id.

Returns:

  • (String)

    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_idString

Returns the current value of vat_id.

Returns:

  • (String)

    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_hHash

Returns:

  • (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