class

Stripe::ApplicationFee

Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object

Constants

ERROR_MESSAGE_FOR_OBJECT = "invalid value for \"object\", must be one of [application_fee]."
MAX_LENGTH_FOR_ID = 5000
VALID_VALUES_FOR_OBJECT = String.static_array("application_fee")

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, account : Stripe::ApplicationFeeAccount | Nil = nil, amount : Int64 | Nil = nil, amount_refunded : Int64 | Nil = nil, application : Stripe::ApplicationFeeApplication | Nil = nil, balance_transaction : Stripe::ApplicationFeeBalanceTransaction | Nil = nil, charge : Stripe::ApplicationFeeCharge | Nil = nil, created : Int64 | Nil = nil, currency : String | Nil = nil, fee_source : Stripe::ApplicationFeeFeeSource | Nil = nil, id : String | Nil = nil, livemode : Bool | Nil = nil, object : String | Nil = nil, originating_transaction : Stripe::ApplicationFeeOriginatingTransaction | Nil = nil, refunded : Bool | Nil = nil, refunds : Stripe::FeeRefundList | Nil = nil)

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

account
Source
account=(new_value : Stripe::ApplicationFeeAccount | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] account Object to be assigned

Source
amount

Amount earned, in cents (or local equivalent).

Source
amount=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] amount Object to be assigned

Source
amount_refunded

Amount in cents (or local equivalent) refunded (can be less than the amount attribute on the fee if a partial refund was issued)

Source
amount_refunded=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] amount_refunded Object to be assigned

Source
application
Source
application=(new_value : Stripe::ApplicationFeeApplication | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] application Object to be assigned

Source
balance_transaction
Source
balance_transaction=(new_value : Stripe::ApplicationFeeBalanceTransaction | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] balance_transaction Object to be assigned

Source
charge
Source
charge=(new_value : Stripe::ApplicationFeeCharge | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] charge Object to be assigned

Source
created

Time at which the object was created. Measured in seconds since the Unix epoch.

Source
created=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] created Object to be assigned

Source
currency

Three-letter ISO currency code, in lowercase. Must be a supported currency.

Source
currency=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] currency Object to be assigned

Source
fee_source
Source
fee_source=(new_value : Stripe::ApplicationFeeFeeSource | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] fee_source Object to be assigned

Source
hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

id

Unique identifier for the object.

Source
id=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] id Object to be assigned

Source
list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
livemode

Has the value true if the object exists in live mode or the value false if the object exists in test mode.

Source
livemode=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] livemode Object to be assigned

Source
object

String representing the object's type. Objects of the same type share the same value.

Source
object=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] object Object to be assigned

Source
originating_transaction
Source
originating_transaction=(new_value : Stripe::ApplicationFeeOriginatingTransaction | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] originating_transaction Object to be assigned

Source
refunded

Whether the fee has been fully refunded. If the fee is only partially refunded, this attribute will still be false.

Source
refunded=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] refunded Object to be assigned

Source
refunds
Source
refunds=(new_value : Stripe::FeeRefundList | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] refunds Object to be assigned

Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source