Sha256: c34f9b93150f5b0852108836f240e51fadd9117ca1eee8278dd7f6c689b38cf8

Contents?: true

Size: 415 Bytes

Versions: 6

Compression:

Stored size: 415 Bytes

Contents

module Workarea
  module Forter
    module Tender
      class StoreCredit
        attr_reader :tender, :options

        def initialize(tender, options = {})
          @tender = tender
          @options = options
        end

        # @return Hash
        def to_h
          {
            creditUsed: {
              amountUSD: tender.amount.to_s
            }
          }
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
workarea-forter-1.3.2 app/services/workarea/forter/tender/store_credit.rb
workarea-forter-1.3.1 app/services/workarea/forter/tender/store_credit.rb
workarea-forter-1.3.0 app/services/workarea/forter/tender/store_credit.rb
workarea-forter-1.2.4 app/services/workarea/forter/tender/store_credit.rb
workarea-forter-1.2.3 app/services/workarea/forter/tender/store_credit.rb
workarea-forter-1.2.2 app/services/workarea/forter/tender/store_credit.rb