Sha256: 5afffade28a43783d7aa9482c4d41d92ff07e0fbe007c1e1f2f416876740b997

Contents?: true

Size: 1.23 KB

Versions: 7

Compression:

Stored size: 1.23 KB

Contents

module Mollie
  class Method < Base
    APPLEPAY       = 'applepay'.freeze
    BANCONTACT     = 'bancontact'.freeze
    BANKTRANSFER   = 'banktransfer'.freeze
    BELFIUS        = 'belfius'.freeze
    CREDITCARD     = 'creditcard'.freeze
    DIRECTDEBIT    = 'directdebit'.freeze
    EPS            = 'eps'.freeze
    GIFTCARD       = 'giftcard'.freeze
    GIROPAY        = 'giropay'.freeze
    IDEAL          = 'ideal'.freeze
    INGHOMEPAY     = 'inghomepay'.freeze
    KBC            = 'kbc'.freeze
    PAYPAL         = 'paypal'.freeze
    PAYSAFECARD    = 'paysafecard'.freeze
    PRZELEWY24     = 'przelewy24'.freeze
    SOFORT         = 'sofort'.freeze
    KLARNASLICEIT  = 'klarnasliceit'.freeze
    KLARNAPAYLATER = 'klarnapaylater'.freeze

    attr_accessor :id,
                  :description,
                  :minimum_amount,
                  :maximum_amount,
                  :image,
                  :issuers

    def minimum_amount=(minimum_amount)
      @minimum_amount = Mollie::Amount.new(minimum_amount)
    end

    def maximum_amount=(maximum_amount)
      @maximum_amount = Mollie::Amount.new(maximum_amount)
    end

    def normal_image
      image['size1x']
    end

    def bigger_image
      image['size2x']
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mollie-api-ruby-4.7.0 lib/mollie/method.rb
mollie-api-ruby-4.6.2 lib/mollie/method.rb
mollie-api-ruby-4.6.1 lib/mollie/method.rb
mollie-api-ruby-4.6.0 lib/mollie/method.rb
mollie-api-ruby-4.5.0 lib/mollie/method.rb
mollie-api-ruby-4.4.1 lib/mollie/method.rb
mollie-api-ruby-4.4.0 lib/mollie/method.rb