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
- #bank_account_bban ⇒ Object
- #bank_account_iban ⇒ Object
- #bank_transfer_payout_method_specific_input ⇒ Object
- #card_payout_method_specific_input ⇒ Object
- #customer ⇒ Object
-
#payout_date ⇒ Object
String.
-
#payout_text ⇒ Object
String.
- #references ⇒ Object
-
#swift_code ⇒ Object
String.
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#amount_of_money ⇒ Object
21 22 23 |
# File 'lib/ingenico/connect/sdk/domain/payout/create_payout_request.rb', line 21 def amount_of_money @amount_of_money end |
#bank_account_bban ⇒ Object
Deprecated; Use bankTransferPayoutMethodSpecificInput.bankAccountBban instead
26 27 28 |
# File 'lib/ingenico/connect/sdk/domain/payout/create_payout_request.rb', line 26 def bank_account_bban @bank_account_bban end |
#bank_account_iban ⇒ Object
Deprecated; Use bankTransferPayoutMethodSpecificInput.bankAccountIban instead
31 32 33 |
# File 'lib/ingenico/connect/sdk/domain/payout/create_payout_request.rb', line 31 def bank_account_iban @bank_account_iban end |
#bank_transfer_payout_method_specific_input ⇒ Object
34 35 36 |
# File 'lib/ingenico/connect/sdk/domain/payout/create_payout_request.rb', line 34 def bank_transfer_payout_method_specific_input @bank_transfer_payout_method_specific_input end |
#card_payout_method_specific_input ⇒ Object
37 38 39 |
# File 'lib/ingenico/connect/sdk/domain/payout/create_payout_request.rb', line 37 def card_payout_method_specific_input @card_payout_method_specific_input end |
#customer ⇒ Object
Deprecated; Use bankTransferPayoutMethodSpecificInput.customer instead
42 43 44 |
# File 'lib/ingenico/connect/sdk/domain/payout/create_payout_request.rb', line 42 def customer @customer end |
#payout_date ⇒ Object
String
Deprecated; Use bankTransferPayoutMethodSpecificInput.payoutDate instead
47 48 49 |
# File 'lib/ingenico/connect/sdk/domain/payout/create_payout_request.rb', line 47 def payout_date @payout_date end |
#payout_text ⇒ Object
String
Deprecated; Use bankTransferPayoutMethodSpecificInput.payoutText instead
52 53 54 |
# File 'lib/ingenico/connect/sdk/domain/payout/create_payout_request.rb', line 52 def payout_text @payout_text end |
#references ⇒ Object
55 56 57 |
# File 'lib/ingenico/connect/sdk/domain/payout/create_payout_request.rb', line 55 def references @references end |
#swift_code ⇒ Object
String
Deprecated; Use bankTransferPayoutMethodSpecificInput.swiftCode instead
60 61 62 |
# File 'lib/ingenico/connect/sdk/domain/payout/create_payout_request.rb', line 60 def swift_code @swift_code end |
Instance Method Details
#from_hash(hash) ⇒ Object
77 78 79 80 81 82 83 84 85 86 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 77 def from_hash(hash) super if hash.has_key?('amountOfMoney') if !(hash['amountOfMoney'].is_a? Hash) raise TypeError, "value '%s' is not a Hash" % [hash['amountOfMoney']] end @amount_of_money = Ingenico::Connect::SDK::Domain::Definitions::AmountOfMoney.new_from_hash(hash['amountOfMoney']) end if hash.has_key?('bankAccountBban') if !(hash['bankAccountBban'].is_a? Hash) raise TypeError, "value '%s' is not a Hash" % [hash['bankAccountBban']] end @bank_account_bban = Ingenico::Connect::SDK::Domain::Definitions::BankAccountBban.new_from_hash(hash['bankAccountBban']) end if hash.has_key?('bankAccountIban') if !(hash['bankAccountIban'].is_a? Hash) raise TypeError, "value '%s' is not a Hash" % [hash['bankAccountIban']] end @bank_account_iban = Ingenico::Connect::SDK::Domain::Definitions::BankAccountIban.new_from_hash(hash['bankAccountIban']) end if hash.has_key?('bankTransferPayoutMethodSpecificInput') if !(hash['bankTransferPayoutMethodSpecificInput'].is_a? Hash) raise TypeError, "value '%s' is not a Hash" % [hash['bankTransferPayoutMethodSpecificInput']] end @bank_transfer_payout_method_specific_input = Ingenico::Connect::SDK::Domain::Payout::BankTransferPayoutMethodSpecificInput.new_from_hash(hash['bankTransferPayoutMethodSpecificInput']) end if hash.has_key?('cardPayoutMethodSpecificInput') if !(hash['cardPayoutMethodSpecificInput'].is_a? Hash) raise TypeError, "value '%s' is not a Hash" % [hash['cardPayoutMethodSpecificInput']] end @card_payout_method_specific_input = Ingenico::Connect::SDK::Domain::Payout::CardPayoutMethodSpecificInput.new_from_hash(hash['cardPayoutMethodSpecificInput']) end if hash.has_key?('customer') if !(hash['customer'].is_a? Hash) raise TypeError, "value '%s' is not a Hash" % [hash['customer']] end @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?('payoutText') @payout_text = hash['payoutText'] end if hash.has_key?('references') if !(hash['references'].is_a? Hash) raise TypeError, "value '%s' is not a Hash" % [hash['references']] end @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 ⇒ Object
62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/ingenico/connect/sdk/domain/payout/create_payout_request.rb', line 62 def to_h hash = super add_to_hash(hash, 'amountOfMoney', @amount_of_money) add_to_hash(hash, 'bankAccountBban', @bank_account_bban) add_to_hash(hash, 'bankAccountIban', @bank_account_iban) add_to_hash(hash, 'bankTransferPayoutMethodSpecificInput', @bank_transfer_payout_method_specific_input) add_to_hash(hash, 'cardPayoutMethodSpecificInput', @card_payout_method_specific_input) add_to_hash(hash, 'customer', @customer) add_to_hash(hash, 'payoutDate', @payout_date) add_to_hash(hash, 'payoutText', @payout_text) add_to_hash(hash, 'references', @references) add_to_hash(hash, 'swiftCode', @swift_code) hash end |