Sha256: 08427df589190b72354a05c0d99e3a9678260f885ec50c9eaf91885776252428

Contents?: true

Size: 987 Bytes

Versions: 13

Compression:

Stored size: 987 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,
            "Application fee refunds cannot be updated without an " \
            "application fee ID. Update an application fee refund using " \
            "`ApplicationFee.update_refund('fee_id', 'refund_id', " \
            "update_params)`"
    end

    def self.retrieve(_id, _api_key = nil)
      raise NotImplementedError,
            "Application fee refunds cannot be retrieved without an " \
            "application fee ID. Retrieve an application fee refund using " \
            "`ApplicationFee.retrieve_refund('fee_id', 'refund_id')`"
    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
stripe-4.24.0 lib/stripe/resources/application_fee_refund.rb
stripe-4.23.0 lib/stripe/resources/application_fee_refund.rb
stripe-4.22.1 lib/stripe/resources/application_fee_refund.rb
stripe-4.22.0 lib/stripe/resources/application_fee_refund.rb
bongloy-4.21.3 lib/stripe/resources/application_fee_refund.rb
stripe-4.21.3 lib/stripe/resources/application_fee_refund.rb
stripe-4.21.2 lib/stripe/resources/application_fee_refund.rb
stripe-4.21.1 lib/stripe/resources/application_fee_refund.rb
stripe-4.21.0 lib/stripe/resources/application_fee_refund.rb
stripe-4.20.1 lib/stripe/resources/application_fee_refund.rb
stripe-4.20.0 lib/stripe/resources/application_fee_refund.rb
stripe-4.19.0 lib/stripe/resources/application_fee_refund.rb
stripe-4.18.1 lib/stripe/application_fee_refund.rb