stripe-ruby/rbi/stripe/resources/application_fee_refund.rbi
2024-12-20 19:41:09 +00:00

37 lines
1.8 KiB
Ruby

# File generated from our OpenAPI spec
# frozen_string_literal: true
# typed: 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
# Amount, in cents (or local equivalent).
sig { returns(Integer) }
attr_reader :amount
# Balance transaction that describes the impact on your account balance.
sig { returns(T.nilable(T.any(String, Stripe::BalanceTransaction))) }
attr_reader :balance_transaction
# Time at which the object was created. Measured in seconds since the Unix epoch.
sig { returns(Integer) }
attr_reader :created
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
sig { returns(String) }
attr_reader :currency
# ID of the application fee that was refunded.
sig { returns(T.any(String, Stripe::ApplicationFee)) }
attr_reader :fee
# Unique identifier for the object.
sig { returns(String) }
attr_reader :id
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
sig { returns(T.nilable(T::Hash[String, String])) }
attr_reader :metadata
# String representing the object's type. Objects of the same type share the same value.
sig { returns(String) }
attr_reader :object
end
end