Class: NewOrderRequest

Inherits:
PaymentechOrbitalRequest show all
Defined in:
lib/active_merchant/billing/gateways/paymentech_orbital/new_order_request.rb

Instance Attribute Summary collapse

Attributes inherited from PaymentechOrbitalRequest

#gateway, #options

Instance Method Summary collapse

Methods inherited from PaymentechOrbitalRequest

#headers, #to_xml

Constructor Details

#initialize(message_type, money, credit_card, options) ⇒ NewOrderRequest

Returns a new instance of NewOrderRequest.



4
5
6
7
8
9
# File 'lib/active_merchant/billing/gateways/paymentech_orbital/new_order_request.rb', line 4

def initialize(message_type, money, credit_card, options)
  @message_type = message_type
  @money = money
  @credit_card = credit_card
  super(options)
end

Instance Attribute Details

#credit_cardObject (readonly)

Returns the value of attribute credit_card.



2
3
4
# File 'lib/active_merchant/billing/gateways/paymentech_orbital/new_order_request.rb', line 2

def credit_card
  @credit_card
end

#industry_typeObject (readonly)

Returns the value of attribute industry_type.



2
3
4
# File 'lib/active_merchant/billing/gateways/paymentech_orbital/new_order_request.rb', line 2

def industry_type
  @industry_type
end

#message_typeObject (readonly)

Returns the value of attribute message_type.



2
3
4
# File 'lib/active_merchant/billing/gateways/paymentech_orbital/new_order_request.rb', line 2

def message_type
  @message_type
end

#moneyObject (readonly)

Returns the value of attribute money.



2
3
4
# File 'lib/active_merchant/billing/gateways/paymentech_orbital/new_order_request.rb', line 2

def money
  @money
end

Instance Method Details

#recurring?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/active_merchant/billing/gateways/paymentech_orbital/new_order_request.rb', line 22

def recurring?
  industry_type == "RC"
end

#request_typeObject



20
# File 'lib/active_merchant/billing/gateways/paymentech_orbital/new_order_request.rb', line 20

def request_type; "NewOrder"; end