Sha256: 5c9ef0ffbf1bc7be8466980c3bfa35b03344e5b528fd4bb765bd62fcbd25f526

Contents?: true

Size: 736 Bytes

Versions: 20

Compression:

Stored size: 736 Bytes

Contents

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

20 entries across 20 versions & 1 rubygems

Version Path
stripe-3.14.0 lib/stripe/application_fee_refund.rb
stripe-3.13.1 lib/stripe/application_fee_refund.rb
stripe-3.13.0 lib/stripe/application_fee_refund.rb
stripe-3.12.1 lib/stripe/application_fee_refund.rb
stripe-3.12.0 lib/stripe/application_fee_refund.rb
stripe-3.11.0 lib/stripe/application_fee_refund.rb
stripe-3.10.0 lib/stripe/application_fee_refund.rb
stripe-3.9.2 lib/stripe/application_fee_refund.rb
stripe-3.9.1 lib/stripe/application_fee_refund.rb
stripe-3.9.0 lib/stripe/application_fee_refund.rb
stripe-3.8.2 lib/stripe/application_fee_refund.rb
stripe-3.8.1 lib/stripe/application_fee_refund.rb
stripe-3.8.0 lib/stripe/application_fee_refund.rb
stripe-3.7.0 lib/stripe/application_fee_refund.rb
stripe-3.6.0 lib/stripe/application_fee_refund.rb
stripe-3.5.3 lib/stripe/application_fee_refund.rb
stripe-3.5.2 lib/stripe/application_fee_refund.rb
stripe-3.5.1 lib/stripe/application_fee_refund.rb
stripe-3.5.0 lib/stripe/application_fee_refund.rb
stripe-3.4.1 lib/stripe/application_fee_refund.rb