Class: Stripe::V2::Tax::ManualRuleCreateParams

Inherits:
RequestParams show all
Defined in:
lib/stripe/params/v2/tax/manual_rule_create_params.rb

Defined Under Namespace

Classes: Location, Product, ScheduledTaxRate

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(location: nil, products: nil, scheduled_tax_rates: nil) ⇒ ManualRuleCreateParams

Returns a new instance of ManualRuleCreateParams.



86
87
88
89
90
# File 'lib/stripe/params/v2/tax/manual_rule_create_params.rb', line 86

def initialize(location: nil, products: nil, scheduled_tax_rates: nil)
  @location = location
  @products = products
  @scheduled_tax_rates = scheduled_tax_rates
end

Instance Attribute Details

#locationObject

Location where the rule applies.



80
81
82
# File 'lib/stripe/params/v2/tax/manual_rule_create_params.rb', line 80

def location
  @location
end

#productsObject

Products associated with the rule.



82
83
84
# File 'lib/stripe/params/v2/tax/manual_rule_create_params.rb', line 82

def products
  @products
end

#scheduled_tax_ratesObject

Tax rates to be applied.



84
85
86
# File 'lib/stripe/params/v2/tax/manual_rule_create_params.rb', line 84

def scheduled_tax_rates
  @scheduled_tax_rates
end