Class: Worldline::Connect::SDK::V1::Domain::BankTransferPayoutMethodSpecificInput
- Inherits:
-
AbstractPayoutMethodSpecificInput
- Object
- Domain::DataObject
- AbstractPayoutMethodSpecificInput
- Worldline::Connect::SDK::V1::Domain::BankTransferPayoutMethodSpecificInput
- Defined in:
- lib/worldline/connect/sdk/v1/domain/bank_transfer_payout_method_specific_input.rb
Instance Attribute Summary collapse
-
#bank_account_bban ⇒ Worldline::Connect::SDK::V1::Domain::BankAccountBban
The current value of bank_account_bban.
-
#bank_account_iban ⇒ Worldline::Connect::SDK::V1::Domain::BankAccountIban
The current value of bank_account_iban.
-
#customer ⇒ Object
deprecated
Deprecated.
Moved to PayoutDetails
-
#payout_date ⇒ String
The current value of payout_date.
-
#payout_text ⇒ String
The current value of payout_text.
-
#swift_code ⇒ String
The current value of swift_code.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#bank_account_bban ⇒ Worldline::Connect::SDK::V1::Domain::BankAccountBban
Returns the current value of bank_account_bban.
21 22 23 |
# File 'lib/worldline/connect/sdk/v1/domain/bank_transfer_payout_method_specific_input.rb', line 21 def bank_account_bban @bank_account_bban end |
#bank_account_iban ⇒ Worldline::Connect::SDK::V1::Domain::BankAccountIban
Returns the current value of bank_account_iban.
21 22 23 |
# File 'lib/worldline/connect/sdk/v1/domain/bank_transfer_payout_method_specific_input.rb', line 21 def bank_account_iban @bank_account_iban end |
#customer ⇒ Object
Deprecated.
Moved to PayoutDetails
21 22 23 |
# File 'lib/worldline/connect/sdk/v1/domain/bank_transfer_payout_method_specific_input.rb', line 21 def customer @customer end |
#payout_date ⇒ String
Returns the current value of payout_date.
21 22 23 |
# File 'lib/worldline/connect/sdk/v1/domain/bank_transfer_payout_method_specific_input.rb', line 21 def payout_date @payout_date end |
#payout_text ⇒ String
Returns the current value of payout_text.
21 22 23 |
# File 'lib/worldline/connect/sdk/v1/domain/bank_transfer_payout_method_specific_input.rb', line 21 def payout_text @payout_text end |
#swift_code ⇒ String
Returns the current value of swift_code.
21 22 23 |
# File 'lib/worldline/connect/sdk/v1/domain/bank_transfer_payout_method_specific_input.rb', line 21 def swift_code @swift_code end |
Instance Method Details
#from_hash(hash) ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/worldline/connect/sdk/v1/domain/bank_transfer_payout_method_specific_input.rb', line 48 def from_hash(hash) super if hash.has_key? 'bankAccountBban' raise TypeError, "value '%s' is not a Hash" % [hash['bankAccountBban']] unless hash['bankAccountBban'].is_a? Hash @bank_account_bban = Worldline::Connect::SDK::V1::Domain::BankAccountBban.new_from_hash(hash['bankAccountBban']) end if hash.has_key? 'bankAccountIban' raise TypeError, "value '%s' is not a Hash" % [hash['bankAccountIban']] unless hash['bankAccountIban'].is_a? Hash @bank_account_iban = Worldline::Connect::SDK::V1::Domain::BankAccountIban.new_from_hash(hash['bankAccountIban']) end if hash.has_key? 'customer' raise TypeError, "value '%s' is not a Hash" % [hash['customer']] unless hash['customer'].is_a? Hash @customer = Worldline::Connect::SDK::V1::Domain::PayoutCustomer.new_from_hash(hash['customer']) end if hash.has_key? 'payoutDate' @payout_date = hash['payoutDate'] end if hash.has_key? 'payoutText' @payout_text = hash['payoutText'] end if hash.has_key? 'swiftCode' @swift_code = hash['swiftCode'] end end |
#to_h ⇒ Hash
37 38 39 40 41 42 43 44 45 46 |
# File 'lib/worldline/connect/sdk/v1/domain/bank_transfer_payout_method_specific_input.rb', line 37 def to_h hash = super hash['bankAccountBban'] = @bank_account_bban.to_h unless @bank_account_bban.nil? hash['bankAccountIban'] = @bank_account_iban.to_h unless @bank_account_iban.nil? hash['customer'] = @customer.to_h unless @customer.nil? hash['payoutDate'] = @payout_date unless @payout_date.nil? hash['payoutText'] = @payout_text unless @payout_text.nil? hash['swiftCode'] = @swift_code unless @swift_code.nil? hash end |