Class: Sepa::DirectDebitOrder
- Inherits:
-
Object
- Object
- Sepa::DirectDebitOrder
- Defined in:
- lib/sepa/direct_debit_order.rb
Defined Under Namespace
Modules: Helper Classes: BankAccount, CreditorPayment, DirectDebit, MandateInformation, Order, OrganisationSepaIdentifier, Party, PrivateSepaIdentifier
Class Method Summary collapse
Class Method Details
.new_order(props) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/sepa/direct_debit_order.rb', line 7 def self.new_order props o = Order.new o. = props[:message_identification] p = o.initiating_party = Party.new p.name = props[:name] p.address_line_1 = props[:address_1] p.address_line_2 = props[:address_2] p.postcode = props[:postcode] p.town = props[:town] p.country = props[:country] p.contact_name = props[:contact] p.contact_phone = props[:phone] p.contact_email = props[:email] end |