Class: GlobalCollect::Builders::InsertOrderWithPayment::Order
- Inherits:
-
Struct
- Object
- Struct
- GlobalCollect::Builders::InsertOrderWithPayment::Order
- Defined in:
- lib/global_collect/builders/insert_order_with_payment/order.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#order ⇒ Object
Returns the value of attribute order.
Instance Method Summary collapse
- #build(node) ⇒ Object
-
#order_fields ⇒ Object
WDL §5.28.1 First table specifies the full list of possible fields.
Instance Attribute Details
#order ⇒ Object
Returns the value of attribute order
2 3 4 |
# File 'lib/global_collect/builders/insert_order_with_payment/order.rb', line 2 def order @order end |
Instance Method Details
#build(node) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/global_collect/builders/insert_order_with_payment/order.rb', line 3 def build(node) node.tag!("ORDER") do |order_node| order_fields.each do |field| order_node.tag!(field, order[field]) if order[field] end end end |
#order_fields ⇒ Object
WDL §5.28.1 First table specifies the full list of possible fields
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/global_collect/builders/insert_order_with_payment/order.rb', line 12 def order_fields %w[ ORDERID ORDERTYPE AMOUNT AMOUNTSIGN CURRENCYCODE LANGUAGECODE COUNTRYCODE OVERWRITEPAYMENTREFERNCE IPADDRESSCUSTOMER CUSTOMERID MANDATE TITLE FIRSTNAME PREFIXSURNAME SURNAME STREET HOUSENUMBER ADDITIONALADDRESSINFO ZIP CITY STATE SHIPPINGTITLE SHIPPINGFIRSTNAME SHIPPINGPREFIXSURNAME SHIPPINGSURNAME SHIPPINGSTREET SHIPPINGHOUSENUMBER SHIPPINGADDITIONALADDRESSINFO SHIPPINGZIP SHIPPINGCITY SHIPPINGSTATE SHIPPINGCOUNTRYCODE MERCHANTREFERENCE DESCRIPTOR RESELLERID EMAIL EMAILTYPEINDICATOR COMPANYNAME COMPANYDATA SEX VATNUMBER PHONENUMBER FAXNUMBER INVOICENUMBER INVOICETYPE INVOICEDATE INVOICECLASS ORDERDATE BIRTHDATE TEXTQUALIFIER1 TEXTQUALIFIER2 TEXTQUALIFIER3 ADDITIONALDATA STARTDATE ENDDATE NUMBEROFPAYMENTS STEPWEEK STEPMONTH ] end |