class Io::Flow::V0::Models::DirectDebit
Represents an online direct debit payment.
Attributes
account_holder_name[R]
bank_name[R]
bic[R]
iban[R]
last4[R]
routing_number[R]
Public Class Methods
new(incoming={})
click to toggle source
Calls superclass method
Io::Flow::V0::Models::ConfirmationDetails::new
# File lib/flow_commerce/flow_api_v0_client.rb, line 39961 def initialize(incoming={}) super(:discriminator => ConfirmationDetails::Types::DIRECT_DEBIT) opts = HttpClient::Helper.symbolize_keys(incoming) @bank_name = (x = opts.delete(:bank_name); x.nil? ? nil : HttpClient::Preconditions.assert_class('bank_name', x, String)) @bic = (x = opts.delete(:bic); x.nil? ? nil : HttpClient::Preconditions.assert_class('bic', x, String)) @iban = (x = opts.delete(:iban); x.nil? ? nil : HttpClient::Preconditions.assert_class('iban', x, String)) @routing_number = (x = opts.delete(:routing_number); x.nil? ? nil : HttpClient::Preconditions.assert_class('routing_number', x, String)) @last4 = (x = opts.delete(:last4); x.nil? ? nil : HttpClient::Preconditions.assert_class('last4', x, String)) @account_holder_name = (x = opts.delete(:account_holder_name); x.nil? ? nil : HttpClient::Preconditions.assert_class('account_holder_name', x, String)) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 39976 def copy(incoming={}) DirectDebit.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end
subtype_to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 39980 def subtype_to_hash { :bank_name => bank_name, :bic => bic, :iban => iban, :routing_number => routing_number, :last4 => last4, :account_holder_name => account_holder_name } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 39972 def to_json JSON.dump(to_hash) end