Class: Stripe::Tax::SettingsService::UpdateParams::Defaults

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/tax/settings_service.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.



23
24
25
26
# File 'lib/stripe/services/tax/settings_service.rb', line 23

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.



19
20
21
# File 'lib/stripe/services/tax/settings_service.rb', line 19

def tax_behavior
  @tax_behavior
end

#tax_codeObject



21
22
23
# File 'lib/stripe/services/tax/settings_service.rb', line 21

def tax_code
  @tax_code
end