Class: Docdata::Order::PaymentMethod

Inherits:
Object
  • Object
show all
Defined in:
lib/docdata/order/payment_method.rb

Overview

Payment method in Docdata, optionally with issuers.

Constant Summary collapse

IDEAL =
"IDEAL"
VISA =
"VISA"
MASTER_CARD =
"MASTERCARD"
MAESTRO =
"MAESTRO"
AMERICAN_EXPRESS =
"AMEX"
PAYPAL =
"PAYPAL_EXPRESS_CHECKOUT"
SEPA_DIRECT_DEBIT =
"SEPA_DIRECT_DEBIT"
BANCONTACT =
"MISTERCASH"
SOFORT =
"EBANKING"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payment_method) ⇒ PaymentMethod

Returns a new instance of PaymentMethod.



19
20
21
# File 'lib/docdata/order/payment_method.rb', line 19

def initialize(payment_method)
  @payment_method = payment_method
end

Instance Attribute Details

#issuersObject

Returns the value of attribute issuers.



17
18
19
# File 'lib/docdata/order/payment_method.rb', line 17

def issuers
  @issuers
end

#payment_methodObject

Returns the value of attribute payment_method.



17
18
19
# File 'lib/docdata/order/payment_method.rb', line 17

def payment_method
  @payment_method
end

Instance Method Details

#to_sObject



23
24
25
# File 'lib/docdata/order/payment_method.rb', line 23

def to_s
  payment_method
end