Sha256: 1b90353e2069ea0ce05bac5fa003dd154931263b8720dcda02bbd1a29f66bdc5

Contents?: true

Size: 624 Bytes

Versions: 17

Compression:

Stored size: 624 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 :amount_in_cents
      writeable_attr :invoice_uuid

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

      include API::Actions::Create
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
chartmogul-ruby-4.4.0 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-4.3.0 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-4.2.0 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-4.1.0 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-4.0.0 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-3.3.1 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-3.3.0 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-3.2.0 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-3.1.0 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-3.0.2 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-3.0.0 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-2.9.0 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-2.1.0 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-2.0.0 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-1.7.3 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-1.7.2 lib/chartmogul/transactions/refund.rb
chartmogul-ruby-1.7.1 lib/chartmogul/transactions/refund.rb