Class: Stripe::TaxFund
- Inherits:
-
APIResource
- Object
- StripeObject
- APIResource
- Stripe::TaxFund
- Extended by:
- APIOperations::List
- Defined in:
- lib/stripe/resources/tax_fund.rb
Overview
A TaxFund object represents a single tax float sweep event — funds moved between a merchant's payments balance and their tax fund financial account for Stripe Tax obligations.
Defined Under Namespace
Classes: Context, Destination, Source, Trigger
Constant Summary collapse
- OBJECT_NAME =
"tax_fund"
Constants inherited from StripeObject
StripeObject::RESERVED_FIELD_NAMES
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Amount swept, in the smallest currency unit.
-
#context ⇒ Object
readonly
Associated billing or tax documents for this sweep.
-
#created ⇒ Object
readonly
Time at which the object was created.
-
#currency ⇒ Object
readonly
Three-letter ISO currency code, in lowercase.
-
#destination ⇒ Object
readonly
Where funds moved to.
-
#id ⇒ Object
readonly
Unique identifier for the object.
-
#livemode ⇒ Object
readonly
If the object exists in live mode, the value is
true. -
#object ⇒ Object
readonly
String representing the object's type.
-
#source ⇒ Object
readonly
Where funds moved from.
-
#trigger ⇒ Object
readonly
What caused the sweep.
Attributes inherited from APIResource
Attributes inherited from StripeObject
Class Method Summary collapse
- .field_remappings ⇒ Object
- .inner_class_types ⇒ Object
-
.list(params = {}, opts = {}) ⇒ Object
Returns a list of tax funds in reverse chronological order.
- .object_name ⇒ Object
Methods included from APIOperations::List
Methods inherited from APIResource
class_name, custom_method, #refresh, #request_stripe_object, resource_url, #resource_url, retrieve, save_nested_resource
Methods included from APIOperations::Request
Methods inherited from StripeObject
#==, #[], #[]=, #_get_inner_class_type, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, field_encodings, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values
Constructor Details
This class inherits a constructor from Stripe::StripeObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject
Instance Attribute Details
#amount ⇒ Object (readonly)
Amount swept, in the smallest currency unit. Always positive.
141 142 143 |
# File 'lib/stripe/resources/tax_fund.rb', line 141 def amount @amount end |
#context ⇒ Object (readonly)
Associated billing or tax documents for this sweep.
143 144 145 |
# File 'lib/stripe/resources/tax_fund.rb', line 143 def context @context end |
#created ⇒ Object (readonly)
Time at which the object was created. Measured in seconds since the Unix epoch.
145 146 147 |
# File 'lib/stripe/resources/tax_fund.rb', line 145 def created @created end |
#currency ⇒ Object (readonly)
Three-letter ISO currency code, in lowercase. Must be a supported currency.
147 148 149 |
# File 'lib/stripe/resources/tax_fund.rb', line 147 def currency @currency end |
#destination ⇒ Object (readonly)
Where funds moved to.
149 150 151 |
# File 'lib/stripe/resources/tax_fund.rb', line 149 def destination @destination end |
#id ⇒ Object (readonly)
Unique identifier for the object.
151 152 153 |
# File 'lib/stripe/resources/tax_fund.rb', line 151 def id @id end |
#livemode ⇒ Object (readonly)
If the object exists in live mode, the value is true. If the object exists in test mode, the value is false.
153 154 155 |
# File 'lib/stripe/resources/tax_fund.rb', line 153 def livemode @livemode end |
#object ⇒ Object (readonly)
String representing the object's type. Objects of the same type share the same value.
155 156 157 |
# File 'lib/stripe/resources/tax_fund.rb', line 155 def object @object end |
#source ⇒ Object (readonly)
Where funds moved from.
157 158 159 |
# File 'lib/stripe/resources/tax_fund.rb', line 157 def source @source end |
#trigger ⇒ Object (readonly)
What caused the sweep.
159 160 161 |
# File 'lib/stripe/resources/tax_fund.rb', line 159 def trigger @trigger end |
Class Method Details
.field_remappings ⇒ Object
175 176 177 |
# File 'lib/stripe/resources/tax_fund.rb', line 175 def self.field_remappings @field_remappings = {} end |
.inner_class_types ⇒ Object
166 167 168 169 170 171 172 173 |
# File 'lib/stripe/resources/tax_fund.rb', line 166 def self.inner_class_types @inner_class_types = { context: Context, destination: Destination, source: Source, trigger: Trigger, } end |
.list(params = {}, opts = {}) ⇒ Object
Returns a list of tax funds in reverse chronological order.
162 163 164 |
# File 'lib/stripe/resources/tax_fund.rb', line 162 def self.list(params = {}, opts = {}) request_stripe_object(method: :get, path: "/v1/tax_funds", params: params, opts: opts) end |
.object_name ⇒ Object
11 12 13 |
# File 'lib/stripe/resources/tax_fund.rb', line 11 def self.object_name "tax_fund" end |