Class: Ingenico::Connect::SDK::Domain::Payout::CreatePayoutRequest
- Inherits:
-
Ingenico::Connect::SDK::DataObject
- Object
- Ingenico::Connect::SDK::DataObject
- Ingenico::Connect::SDK::Domain::Payout::CreatePayoutRequest
- Defined in:
- lib/ingenico/connect/sdk/domain/payout/create_payout_request.rb
Instance Attribute Summary collapse
-
#amount_of_money ⇒ Object
deprecated
Deprecated.
Moved to PayoutDetails
-
#bank_account_bban ⇒ Object
deprecated
Deprecated.
Moved to BankTransferPayoutMethodSpecificInput
-
#bank_account_iban ⇒ Object
deprecated
Deprecated.
Moved to BankTransferPayoutMethodSpecificInput
-
#bank_transfer_payout_method_specific_input ⇒ Ingenico::Connect::SDK::Domain::Payout::BankTransferPayoutMethodSpecificInput
The current value of bank_transfer_payout_method_specific_input.
-
#card_payout_method_specific_input ⇒ Ingenico::Connect::SDK::Domain::Payout::CardPayoutMethodSpecificInput
The current value of card_payout_method_specific_input.
-
#customer ⇒ Object
deprecated
Deprecated.
Moved to PayoutDetails
-
#payout_date ⇒ Object
deprecated
Deprecated.
Moved to BankTransferPayoutMethodSpecificInput
-
#payout_details ⇒ Ingenico::Connect::SDK::Domain::Payout::PayoutDetails
The current value of payout_details.
-
#payout_text ⇒ Object
deprecated
Deprecated.
Moved to BankTransferPayoutMethodSpecificInput
-
#references ⇒ Object
deprecated
Deprecated.
Moved to PayoutDetails
-
#swift_code ⇒ Object
deprecated
Deprecated.
Moved to BankTransferPayoutMethodSpecificInput
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#amount_of_money ⇒ Object
Moved to PayoutDetails
30 31 32 |
# File 'lib/ingenico/connect/sdk/domain/payout/create_payout_request.rb', line 30 def amount_of_money @amount_of_money end |
#bank_account_bban ⇒ Object
Moved to BankTransferPayoutMethodSpecificInput
30 31 32 |
# File 'lib/ingenico/connect/sdk/domain/payout/create_payout_request.rb', line 30 def bank_account_bban @bank_account_bban end |
#bank_account_iban ⇒ Object
Moved to BankTransferPayoutMethodSpecificInput
30 31 32 |
# File 'lib/ingenico/connect/sdk/domain/payout/create_payout_request.rb', line 30 def bank_account_iban @bank_account_iban end |
#bank_transfer_payout_method_specific_input ⇒ Ingenico::Connect::SDK::Domain::Payout::BankTransferPayoutMethodSpecificInput
Returns the current value of bank_transfer_payout_method_specific_input.
30 31 32 |
# File 'lib/ingenico/connect/sdk/domain/payout/create_payout_request.rb', line 30 def bank_transfer_payout_method_specific_input @bank_transfer_payout_method_specific_input end |
#card_payout_method_specific_input ⇒ Ingenico::Connect::SDK::Domain::Payout::CardPayoutMethodSpecificInput
Returns the current value of card_payout_method_specific_input.
30 31 32 |
# File 'lib/ingenico/connect/sdk/domain/payout/create_payout_request.rb', line 30 def card_payout_method_specific_input @card_payout_method_specific_input end |
#customer ⇒ Object
Moved to PayoutDetails
30 31 32 |
# File 'lib/ingenico/connect/sdk/domain/payout/create_payout_request.rb', line 30 def customer @customer end |
#payout_date ⇒ Object
Moved to BankTransferPayoutMethodSpecificInput
30 31 32 |
# File 'lib/ingenico/connect/sdk/domain/payout/create_payout_request.rb', line 30 def payout_date @payout_date end |
#payout_details ⇒ Ingenico::Connect::SDK::Domain::Payout::PayoutDetails
Returns the current value of payout_details.
30 31 32 |
# File 'lib/ingenico/connect/sdk/domain/payout/create_payout_request.rb', line 30 def payout_details @payout_details end |
#payout_text ⇒ Object
Moved to BankTransferPayoutMethodSpecificInput
30 31 32 |
# File 'lib/ingenico/connect/sdk/domain/payout/create_payout_request.rb', line 30 def payout_text @payout_text end |
#references ⇒ Object
Moved to PayoutDetails
30 31 32 |
# File 'lib/ingenico/connect/sdk/domain/payout/create_payout_request.rb', line 30 def references @references end |
#swift_code ⇒ Object
Moved to BankTransferPayoutMethodSpecificInput
30 31 32 |
# File 'lib/ingenico/connect/sdk/domain/payout/create_payout_request.rb', line 30 def swift_code @swift_code end |
Instance Method Details
#from_hash(hash) ⇒ Object
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 |
# File 'lib/ingenico/connect/sdk/domain/payout/create_payout_request.rb', line 87 def from_hash(hash) super if hash.has_key? 'amountOfMoney' raise TypeError, "value '%s' is not a Hash" % [hash['amountOfMoney']] unless hash['amountOfMoney'].is_a? Hash @amount_of_money = Ingenico::Connect::SDK::Domain::Definitions::AmountOfMoney.new_from_hash(hash['amountOfMoney']) end if hash.has_key? 'bankAccountBban' raise TypeError, "value '%s' is not a Hash" % [hash['bankAccountBban']] unless hash['bankAccountBban'].is_a? Hash @bank_account_bban = Ingenico::Connect::SDK::Domain::Definitions::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 = Ingenico::Connect::SDK::Domain::Definitions::BankAccountIban.new_from_hash(hash['bankAccountIban']) end if hash.has_key? 'bankTransferPayoutMethodSpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['bankTransferPayoutMethodSpecificInput']] unless hash['bankTransferPayoutMethodSpecificInput'].is_a? Hash @bank_transfer_payout_method_specific_input = Ingenico::Connect::SDK::Domain::Payout::BankTransferPayoutMethodSpecificInput.new_from_hash(hash['bankTransferPayoutMethodSpecificInput']) end if hash.has_key? 'cardPayoutMethodSpecificInput' raise TypeError, "value '%s' is not a Hash" % [hash['cardPayoutMethodSpecificInput']] unless hash['cardPayoutMethodSpecificInput'].is_a? Hash @card_payout_method_specific_input = Ingenico::Connect::SDK::Domain::Payout::CardPayoutMethodSpecificInput.new_from_hash(hash['cardPayoutMethodSpecificInput']) end if hash.has_key? 'customer' raise TypeError, "value '%s' is not a Hash" % [hash['customer']] unless hash['customer'].is_a? Hash @customer = Ingenico::Connect::SDK::Domain::Payout::PayoutCustomer.new_from_hash(hash['customer']) end if hash.has_key? 'payoutDate' @payout_date = hash['payoutDate'] end if hash.has_key? 'payoutDetails' raise TypeError, "value '%s' is not a Hash" % [hash['payoutDetails']] unless hash['payoutDetails'].is_a? Hash @payout_details = Ingenico::Connect::SDK::Domain::Payout::PayoutDetails.new_from_hash(hash['payoutDetails']) end if hash.has_key? 'payoutText' @payout_text = hash['payoutText'] end if hash.has_key? 'references' raise TypeError, "value '%s' is not a Hash" % [hash['references']] unless hash['references'].is_a? Hash @references = Ingenico::Connect::SDK::Domain::Payout::PayoutReferences.new_from_hash(hash['references']) end if hash.has_key? 'swiftCode' @swift_code = hash['swiftCode'] end end |
#to_h ⇒ Hash
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/ingenico/connect/sdk/domain/payout/create_payout_request.rb', line 71 def to_h hash = super hash['amountOfMoney'] = @amount_of_money.to_h unless @amount_of_money.nil? 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['bankTransferPayoutMethodSpecificInput'] = @bank_transfer_payout_method_specific_input.to_h unless @bank_transfer_payout_method_specific_input.nil? hash['cardPayoutMethodSpecificInput'] = @card_payout_method_specific_input.to_h unless @card_payout_method_specific_input.nil? hash['customer'] = @customer.to_h unless @customer.nil? hash['payoutDate'] = @payout_date unless @payout_date.nil? hash['payoutDetails'] = @payout_details.to_h unless @payout_details.nil? hash['payoutText'] = @payout_text unless @payout_text.nil? hash['references'] = @references.to_h unless @references.nil? hash['swiftCode'] = @swift_code unless @swift_code.nil? hash end |