Class: Stripe::Tax::Calculation::TaxBreakdown::TaxRateDetails

Inherits:
StripeObject
  • Object
show all
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

Attributes inherited from StripeObject

#last_response

Method Summary

Methods inherited from StripeObject

#==, #[], #[]=, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #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

#countryObject (readonly)

Two-letter country code ([ISO 3166-1 alpha-2](en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).



127
128
129
# File 'lib/stripe/resources/tax/calculation.rb', line 127

def country
  @country
end

#flat_amountObject (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.



129
130
131
# File 'lib/stripe/resources/tax/calculation.rb', line 129

def flat_amount
  @flat_amount
end

#percentage_decimalObject (readonly)

The tax rate percentage as a string. For example, 8.5% is represented as ‘“8.5”`.



131
132
133
# File 'lib/stripe/resources/tax/calculation.rb', line 131

def percentage_decimal
  @percentage_decimal
end

#rate_typeObject (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.



133
134
135
# File 'lib/stripe/resources/tax/calculation.rb', line 133

def rate_type
  @rate_type
end

#stateObject (readonly)

State, county, province, or region.



135
136
137
# File 'lib/stripe/resources/tax/calculation.rb', line 135

def state
  @state
end

#tax_typeObject (readonly)

The tax type, such as ‘vat` or `sales_tax`.



137
138
139
# File 'lib/stripe/resources/tax/calculation.rb', line 137

def tax_type
  @tax_type
end