Class: Stripe::Tax::Calculation::ShippingCost

Inherits:
StripeObject
  • Object
show all
Defined in:
lib/stripe/resources/tax/calculation.rb

Defined Under Namespace

Classes: TaxBreakdown

Constant Summary

Constants inherited from StripeObject

StripeObject::RESERVED_FIELD_NAMES

Instance Attribute Summary collapse

Attributes inherited from StripeObject

#last_response

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

#amountObject (readonly)

The shipping amount in the smallest currency unit. If tax_behavior=inclusive, then this amount includes taxes. Otherwise, taxes were calculated on top of this amount.



169
170
171
# File 'lib/stripe/resources/tax/calculation.rb', line 169

def amount
  @amount
end

#amount_taxObject (readonly)

The amount of tax calculated for shipping, in the smallest currency unit.



171
172
173
# File 'lib/stripe/resources/tax/calculation.rb', line 171

def amount_tax
  @amount_tax
end

#shipping_rateObject (readonly)

The ID of an existing ShippingRate.



173
174
175
# File 'lib/stripe/resources/tax/calculation.rb', line 173

def shipping_rate
  @shipping_rate
end

#tax_behaviorObject (readonly)

Specifies whether the amount includes taxes. If tax_behavior=inclusive, then the amount includes taxes.



175
176
177
# File 'lib/stripe/resources/tax/calculation.rb', line 175

def tax_behavior
  @tax_behavior
end

#tax_breakdownObject (readonly)

Detailed account of taxes relevant to shipping cost.



177
178
179
# File 'lib/stripe/resources/tax/calculation.rb', line 177

def tax_breakdown
  @tax_breakdown
end

#tax_codeObject (readonly)

The tax code ID used for shipping.



179
180
181
# File 'lib/stripe/resources/tax/calculation.rb', line 179

def tax_code
  @tax_code
end

Class Method Details

.field_remappingsObject



185
186
187
# File 'lib/stripe/resources/tax/calculation.rb', line 185

def self.field_remappings
  @field_remappings = {}
end

.inner_class_typesObject



181
182
183
# File 'lib/stripe/resources/tax/calculation.rb', line 181

def self.inner_class_types
  @inner_class_types = { tax_breakdown: TaxBreakdown }
end