Class: ActiveMerchant::Billing::PaymentechOrbital::Request::NewOrder
- Defined in:
- lib/active_merchant/billing/paymentech_orbital/request/new_order.rb
Instance Attribute Summary collapse
-
#credit_card ⇒ Object
readonly
Returns the value of attribute credit_card.
-
#message_type ⇒ Object
readonly
Returns the value of attribute message_type.
-
#money ⇒ Object
readonly
Returns the value of attribute money.
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(message_type, money, credit_card, options) ⇒ NewOrder
constructor
A new instance of NewOrder.
- #recurring? ⇒ Boolean
- #request_type ⇒ Object
- #to_s ⇒ Object
Methods inherited from Base
#address, #full_street_address, #headers, #to_a, #to_xml
Constructor Details
#initialize(message_type, money, credit_card, options) ⇒ NewOrder
Returns a new instance of NewOrder.
8 9 10 11 12 13 |
# File 'lib/active_merchant/billing/paymentech_orbital/request/new_order.rb', line 8 def initialize(, money, credit_card, ) @message_type = @money = money @credit_card = credit_card super() end |
Instance Attribute Details
#credit_card ⇒ Object (readonly)
Returns the value of attribute credit_card.
6 7 8 |
# File 'lib/active_merchant/billing/paymentech_orbital/request/new_order.rb', line 6 def credit_card @credit_card end |
#message_type ⇒ Object (readonly)
Returns the value of attribute message_type.
6 7 8 |
# File 'lib/active_merchant/billing/paymentech_orbital/request/new_order.rb', line 6 def @message_type end |
#money ⇒ Object (readonly)
Returns the value of attribute money.
6 7 8 |
# File 'lib/active_merchant/billing/paymentech_orbital/request/new_order.rb', line 6 def money @money end |
Class Method Details
.message_map ⇒ Object
27 28 29 30 31 |
# File 'lib/active_merchant/billing/paymentech_orbital/request/new_order.rb', line 27 def self. { "A" => "Auth", "AC" => "Auth/Capture", "R" => "Refund" } end |
Instance Method Details
#recurring? ⇒ Boolean
33 34 35 |
# File 'lib/active_merchant/billing/paymentech_orbital/request/new_order.rb', line 33 def recurring? industry_type == "RC" end |
#request_type ⇒ Object
21 |
# File 'lib/active_merchant/billing/paymentech_orbital/request/new_order.rb', line 21 def request_type; "NewOrder"; end |
#to_s ⇒ Object
23 24 25 |
# File 'lib/active_merchant/billing/paymentech_orbital/request/new_order.rb', line 23 def to_s "#{self.class.[@message_type]}: Credit Card (#{credit_card.type if credit_card})" end |