Sha256: 907d2f2b76eef50d3f98d4953a808bb587b3d30358139e8a15842f2bb104f82a

Contents?: true

Size: 767 Bytes

Versions: 46

Compression:

Stored size: 767 Bytes

Contents

# frozen_string_literal: true

module Stripe
  class ApplicationFeeRefund < APIResource
    include Stripe::APIOperations::Save
    extend Stripe::APIOperations::List

    OBJECT_NAME = "fee_refund".freeze

    def resource_url
      "#{ApplicationFee.resource_url}/#{CGI.escape(fee)}/refunds/#{CGI.escape(id)}"
    end

    def self.update(_id, _params = nil, _opts = nil)
      raise NotImplementedError, "Refunds cannot be updated without an application fee ID. Update a refund by using `a = appfee.refunds.retrieve('refund_id'); a.save`"
    end

    def self.retrieve(_id, _api_key = nil)
      raise NotImplementedError, "Refunds cannot be retrieved without an application fee ID. Retrieve a refund using appfee.refunds.retrieve('refund_id')"
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
stripe-4.18.0 lib/stripe/application_fee_refund.rb
stripe-4.17.0 lib/stripe/application_fee_refund.rb
stripe-4.16.0 lib/stripe/application_fee_refund.rb
stripe-4.15.0 lib/stripe/application_fee_refund.rb
stripe-4.14.0 lib/stripe/application_fee_refund.rb
stripe-4.13.0 lib/stripe/application_fee_refund.rb
stripe-4.12.0 lib/stripe/application_fee_refund.rb
stripe-4.11.0 lib/stripe/application_fee_refund.rb
stripe-4.10.0 lib/stripe/application_fee_refund.rb
stripe-4.9.1 lib/stripe/application_fee_refund.rb
stripe-4.9.0 lib/stripe/application_fee_refund.rb
stripe-4.8.1 lib/stripe/application_fee_refund.rb
stripe-4.8.0 lib/stripe/application_fee_refund.rb
stripe-4.7.1 lib/stripe/application_fee_refund.rb
stripe-4.7.0 lib/stripe/application_fee_refund.rb
stripe-4.6.0 lib/stripe/application_fee_refund.rb
stripe-4.5.0 lib/stripe/application_fee_refund.rb
stripe-4.4.1 lib/stripe/application_fee_refund.rb
stripe-4.4.0 lib/stripe/application_fee_refund.rb
stripe-4.3.0 lib/stripe/application_fee_refund.rb