lib/docdata/order/payment_method.rb in docdata-order-1.0.3 vs lib/docdata/order/payment_method.rb in docdata-order-2.0.0

- old
+ new

@@ -1,14 +1,28 @@ # frozen_string_literal: true module Docdata module Order - module PaymentMethod + # Payment method in Docdata, optionally with issuers. + class PaymentMethod 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" + + attr_accessor :payment_method, :issuers + + def initialize(payment_method) + @payment_method = payment_method + end + + def to_s + payment_method + end end end end