Sha256: 206934ab114bf0f22cafcf1aa7658166e84c50a00330f8bc88b9d2a5916089a7

Contents?: true

Size: 1019 Bytes

Versions: 28

Compression:

Stored size: 1019 Bytes

Contents

# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
  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

28 entries across 28 versions & 1 rubygems

Version Path
stripe-7.1.0 lib/stripe/resources/application_fee_refund.rb
stripe-7.1.0.pre.beta.2 lib/stripe/resources/application_fee_refund.rb
stripe-7.1.0.pre.beta.1 lib/stripe/resources/application_fee_refund.rb
stripe-7.0.0 lib/stripe/resources/application_fee_refund.rb
stripe-6.6.0.pre.beta.1 lib/stripe/resources/application_fee_refund.rb
stripe-6.5.0 lib/stripe/resources/application_fee_refund.rb
stripe-6.4.0 lib/stripe/resources/application_fee_refund.rb
stripe-6.3.0 lib/stripe/resources/application_fee_refund.rb
stripe-6.2.0 lib/stripe/resources/application_fee_refund.rb
stripe-6.1.0 lib/stripe/resources/application_fee_refund.rb
stripe-6.0.0 lib/stripe/resources/application_fee_refund.rb
stripe-5.55.0 lib/stripe/resources/application_fee_refund.rb
stripe-5.54.0 lib/stripe/resources/application_fee_refund.rb
stripe-5.53.0 lib/stripe/resources/application_fee_refund.rb
stripe-5.52.0 lib/stripe/resources/application_fee_refund.rb
stripe-5.50.0 lib/stripe/resources/application_fee_refund.rb
stripe-5.49.0 lib/stripe/resources/application_fee_refund.rb
stripe-5.48.0 lib/stripe/resources/application_fee_refund.rb
stripe-5.47.0 lib/stripe/resources/application_fee_refund.rb
stripe-5.46.0 lib/stripe/resources/application_fee_refund.rb