Class: Stripe::Tax::Settings::UpdateParams::Defaults

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/tax/settings.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(tax_behavior: nil, tax_code: nil) ⇒ Defaults

Returns a new instance of Defaults.



63
64
65
66
# File 'lib/stripe/resources/tax/settings.rb', line 63

def initialize(tax_behavior: nil, tax_code: nil)
  @tax_behavior = tax_behavior
  @tax_code = tax_code
end

Instance Attribute Details

#tax_behaviorObject

Specifies the default [tax behavior](stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#tax-behavior) to be used when the item’s price has unspecified tax behavior. One of inclusive, exclusive, or inferred_by_currency. Once specified, it cannot be changed back to null.



59
60
61
# File 'lib/stripe/resources/tax/settings.rb', line 59

def tax_behavior
  @tax_behavior
end

#tax_codeObject



61
62
63
# File 'lib/stripe/resources/tax/settings.rb', line 61

def tax_code
  @tax_code
end