Class: Stripe::Tax::Transaction::ShippingCost
- Inherits:
-
StripeObject
- Object
- StripeObject
- Stripe::Tax::Transaction::ShippingCost
- Defined in:
- lib/stripe/resources/tax/transaction.rb
Defined Under Namespace
Classes: TaxBreakdown
Constant Summary
Constants inherited from StripeObject
StripeObject::RESERVED_FIELD_NAMES
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
The shipping amount in the [smallest currency unit](stripe.com/docs/currencies#zero-decimal).
-
#amount_tax ⇒ Object
readonly
The amount of tax calculated for shipping, in the [smallest currency unit](stripe.com/docs/currencies#zero-decimal).
-
#shipping_rate ⇒ Object
readonly
The ID of an existing [ShippingRate](stripe.com/docs/api/shipping_rates/object).
-
#tax_behavior ⇒ Object
readonly
Specifies whether the ‘amount` includes taxes.
-
#tax_breakdown ⇒ Object
readonly
Detailed account of taxes relevant to shipping cost.
-
#tax_code ⇒ Object
readonly
The [tax code](stripe.com/docs/tax/tax-categories) ID used for shipping.
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?, #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)
The shipping amount in the [smallest currency unit](stripe.com/docs/currencies#zero-decimal). If ‘tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes were calculated on top of this amount.
180 181 182 |
# File 'lib/stripe/resources/tax/transaction.rb', line 180 def amount @amount end |
#amount_tax ⇒ Object (readonly)
The amount of tax calculated for shipping, in the [smallest currency unit](stripe.com/docs/currencies#zero-decimal).
182 183 184 |
# File 'lib/stripe/resources/tax/transaction.rb', line 182 def amount_tax @amount_tax end |
#shipping_rate ⇒ Object (readonly)
The ID of an existing [ShippingRate](stripe.com/docs/api/shipping_rates/object).
184 185 186 |
# File 'lib/stripe/resources/tax/transaction.rb', line 184 def shipping_rate @shipping_rate end |
#tax_behavior ⇒ Object (readonly)
Specifies whether the ‘amount` includes taxes. If `tax_behavior=inclusive`, then the amount includes taxes.
186 187 188 |
# File 'lib/stripe/resources/tax/transaction.rb', line 186 def tax_behavior @tax_behavior end |
#tax_breakdown ⇒ Object (readonly)
Detailed account of taxes relevant to shipping cost. (It is not populated for the transaction resource object and will be removed in the next API version.)
188 189 190 |
# File 'lib/stripe/resources/tax/transaction.rb', line 188 def tax_breakdown @tax_breakdown end |
#tax_code ⇒ Object (readonly)
The [tax code](stripe.com/docs/tax/tax-categories) ID used for shipping.
190 191 192 |
# File 'lib/stripe/resources/tax/transaction.rb', line 190 def tax_code @tax_code end |
Class Method Details
.field_remappings ⇒ Object
196 197 198 |
# File 'lib/stripe/resources/tax/transaction.rb', line 196 def self.field_remappings @field_remappings = {} end |
.inner_class_types ⇒ Object
192 193 194 |
# File 'lib/stripe/resources/tax/transaction.rb', line 192 def self.inner_class_types @inner_class_types = { tax_breakdown: TaxBreakdown } end |