Sha256: 8b33c141acc178932eea7a8c4652bc47a18deadbc69749471c9db4abd1d02659

Contents?: true

Size: 1.34 KB

Versions: 27

Compression:

Stored size: 1.34 KB

Contents

# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
  # `Application Fee Refund` objects allow you to refund an application fee that
  # has previously been created but not yet refunded. Funds will be refunded to
  # the Stripe account from which the fee was originally collected.
  #
  # Related guide: [Refunding application fees](https://stripe.com/docs/connect/destination-charges#refunding-app-fee)
  class ApplicationFeeRefund < APIResource
    extend Stripe::APIOperations::List
    include Stripe::APIOperations::Save

    OBJECT_NAME = "fee_refund"

    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

27 entries across 27 versions & 1 rubygems

Version Path
stripe-10.2.0.pre.beta.1 lib/stripe/resources/application_fee_refund.rb
stripe-10.1.0 lib/stripe/resources/application_fee_refund.rb
stripe-10.1.0.pre.beta.2 lib/stripe/resources/application_fee_refund.rb
stripe-10.1.0.pre.beta.1 lib/stripe/resources/application_fee_refund.rb
stripe-10.0.0 lib/stripe/resources/application_fee_refund.rb
stripe-9.5.0.pre.beta.2 lib/stripe/resources/application_fee_refund.rb
stripe-9.5.0.pre.beta.1 lib/stripe/resources/application_fee_refund.rb
stripe-9.4.0 lib/stripe/resources/application_fee_refund.rb
stripe-9.4.0.pre.beta.3 lib/stripe/resources/application_fee_refund.rb
stripe-9.4.0.pre.beta.2 lib/stripe/resources/application_fee_refund.rb
stripe-9.4.0.pre.beta.1 lib/stripe/resources/application_fee_refund.rb
stripe-9.3.0 lib/stripe/resources/application_fee_refund.rb
stripe-9.3.0.pre.beta.1 lib/stripe/resources/application_fee_refund.rb
stripe-9.2.0 lib/stripe/resources/application_fee_refund.rb
stripe-9.2.0.pre.beta.1 lib/stripe/resources/application_fee_refund.rb
stripe-9.1.0 lib/stripe/resources/application_fee_refund.rb
stripe-9.0.0.pre.beta.1 lib/stripe/resources/application_fee_refund.rb
stripe-9.0.0 lib/stripe/resources/application_fee_refund.rb
stripe-8.8.0.pre.beta.1 lib/stripe/resources/application_fee_refund.rb
stripe-8.7.0 lib/stripe/resources/application_fee_refund.rb