Sha256: 239ceae2bf983528d5d03b01258f66110060dca05d88fcd1117da3190313cfad

Contents?: true

Size: 580 Bytes

Versions: 3

Compression:

Stored size: 580 Bytes

Contents

module ChartMogul
  module Transactions
    class Refund < APIResource
      set_resource_name 'Refund Transaction'
      set_resource_path '/v1/import/invoices/:invoice_uuid/transactions'

      readonly_attr :uuid

      writeable_attr :type, default: 'refund'
      writeable_attr :date, type: :time
      writeable_attr :result
      writeable_attr :external_id

      writeable_attr :invoice_uuid

      def initialize(attributes = {})
        super(attributes)
        @type = 'refund'
      end

      include API::Actions::Create
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
chartmogul-ruby-1.1.5 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-1.1.4 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-1.1.2 lib/chartmogul/transactions/refund.rb