Class: Stripe::Tax::Calculation::TaxBreakdown::TaxRateDetails
- Inherits:
-
StripeObject
- Object
- StripeObject
- Stripe::Tax::Calculation::TaxBreakdown::TaxRateDetails
- Defined in:
- lib/stripe/resources/tax/calculation.rb
Defined Under Namespace
Classes: FlatAmount
Constant Summary
Constants inherited from StripeObject
StripeObject::RESERVED_FIELD_NAMES
Instance Attribute Summary collapse
-
#country ⇒ Object
readonly
Two-letter country code (ISO 3166-1 alpha-2).
-
#flat_amount ⇒ Object
readonly
The amount of the tax rate when the
rate_typeisflat_amount. -
#percentage_decimal ⇒ Object
readonly
The tax rate percentage as a string.
-
#rate_type ⇒ Object
readonly
Indicates the type of tax rate applied to the taxable amount.
-
#state ⇒ Object
readonly
State, county, province, or region (ISO 3166-2).
-
#tax_type ⇒ Object
readonly
The tax type, such as
vatorsales_tax.
Attributes inherited from StripeObject
Class Method Summary collapse
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
#country ⇒ Object (readonly)
Two-letter country code (ISO 3166-1 alpha-2).
207 208 209 |
# File 'lib/stripe/resources/tax/calculation.rb', line 207 def country @country end |
#flat_amount ⇒ Object (readonly)
The amount of the tax rate when the rate_type is flat_amount. Tax rates with rate_type percentage can vary based on the transaction, resulting in this field being null. This field exposes the amount and currency of the flat tax rate.
209 210 211 |
# File 'lib/stripe/resources/tax/calculation.rb', line 209 def flat_amount @flat_amount end |
#percentage_decimal ⇒ Object (readonly)
The tax rate percentage as a string. For example, 8.5% is represented as "8.5".
211 212 213 |
# File 'lib/stripe/resources/tax/calculation.rb', line 211 def percentage_decimal @percentage_decimal end |
#rate_type ⇒ Object (readonly)
Indicates the type of tax rate applied to the taxable amount. This value can be null when no tax applies to the location. This field is only present for TaxRates created by Stripe Tax.
213 214 215 |
# File 'lib/stripe/resources/tax/calculation.rb', line 213 def rate_type @rate_type end |
#state ⇒ Object (readonly)
State, county, province, or region (ISO 3166-2).
215 216 217 |
# File 'lib/stripe/resources/tax/calculation.rb', line 215 def state @state end |
#tax_type ⇒ Object (readonly)
The tax type, such as vat or sales_tax.
217 218 219 |
# File 'lib/stripe/resources/tax/calculation.rb', line 217 def tax_type @tax_type end |
Class Method Details
.field_remappings ⇒ Object
223 224 225 |
# File 'lib/stripe/resources/tax/calculation.rb', line 223 def self.field_remappings @field_remappings = {} end |
.inner_class_types ⇒ Object
219 220 221 |
# File 'lib/stripe/resources/tax/calculation.rb', line 219 def self.inner_class_types @inner_class_types = { flat_amount: FlatAmount } end |