Sha256: 9f549b845ae8813812285bd30e437c439db09bec681db3fc72f1b5a7cce05973

Contents?: true

Size: 556 Bytes

Versions: 20

Compression:

Stored size: 556 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

20 entries across 20 versions & 1 rubygems

Version Path
chartmogul-ruby-1.5.1 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-1.5.0 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-1.4.1 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-1.4.0 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-1.3.3 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-1.3.2 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-1.3.1 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-1.3.0 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-1.2.2 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-1.2.1 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-1.2.0 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-1.1.9 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-1.1.8 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-1.1.7 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-1.1.3 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-1.1.1 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-1.1.0 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-1.0.2 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-1.0.1 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-1.0.0 lib/chartmogul/transactions/refund.rb