Sha256: ad3d4d8a72eced8d5d3c4125aaf30a127d315ca38554fba1b03ff60d3f3b9152

Contents?: true

Size: 367 Bytes

Versions: 4

Compression:

Stored size: 367 Bytes

Contents

module Workarea
  class Payment
    class Tender
      class Afterpay < Tender
        field :token, type: String
        field :ready_to_capture, type: Boolean, default: false

        def slug
          :afterpay
        end

        def installment_price
          self.amount / Workarea.config.afterpay[:installment_count]
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
workarea-afterpay-2.1.2 app/models/workarea/payment/tender/afterpay.rb
workarea-afterpay-2.1.1 app/models/workarea/payment/tender/afterpay.rb
workarea-afterpay-2.1.0 app/models/workarea/payment/tender/afterpay.rb
workarea-afterpay-2.0.2 app/models/workarea/payment/tender/afterpay.rb