Sha256: ad3ab10eb16008b5da1a0200100d587ccb6ebe709dcb2730f8733c547b6ad507

Contents?: true

Size: 587 Bytes

Versions: 8

Compression:

Stored size: 587 Bytes

Contents

# frozen_string_literal: true

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

8 entries across 8 versions & 1 rubygems

Version Path
chartmogul-ruby-1.6.9 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-1.6.8 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-1.6.7 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-1.6.6 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-1.6.4 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-1.6.3 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-1.6.2 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-1.6.1 lib/chartmogul/transactions/refund.rb