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.2.0 lib/stripe/application_fee_refund.rb
stripe-4.1.0 lib/stripe/application_fee_refund.rb
stripe-4.0.3 lib/stripe/application_fee_refund.rb
stripe-4.0.2 lib/stripe/application_fee_refund.rb
stripe-4.0.1 lib/stripe/application_fee_refund.rb
stripe-4.0.0 lib/stripe/application_fee_refund.rb
stripe-3.31.1 lib/stripe/application_fee_refund.rb
stripe-3.31.0 lib/stripe/application_fee_refund.rb
stripe-3.30.0 lib/stripe/application_fee_refund.rb
stripe-3.29.0 lib/stripe/application_fee_refund.rb
stripe-3.28.0 lib/stripe/application_fee_refund.rb
stripe-3.27.0 lib/stripe/application_fee_refund.rb
stripe-3.26.1 lib/stripe/application_fee_refund.rb
stripe-3.26.0 lib/stripe/application_fee_refund.rb
stripe-3.25.0 lib/stripe/application_fee_refund.rb
stripe-3.24.0 lib/stripe/application_fee_refund.rb
stripe-3.23.0 lib/stripe/application_fee_refund.rb
stripe-3.22.0 lib/stripe/application_fee_refund.rb
stripe-3.21.0 lib/stripe/application_fee_refund.rb
stripe-3.20.0 lib/stripe/application_fee_refund.rb