Sha256: b3fe881436d3d27daf96550a202538bd1048ca11e476216086f67ead1e021a42

Contents?: true

Size: 650 Bytes

Versions: 1

Compression:

Stored size: 650 Bytes

Contents

# frozen_string_literal: true

module Docdata
  module Order
    # 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"
      GIROPAY = "GIROPAY"

      attr_accessor :payment_method, :issuers

      def initialize(payment_method)
        @payment_method = payment_method
      end

      def to_s
        payment_method
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
docdata-order-2.1.0 lib/docdata/order/payment_method.rb