Class: Stripe::V2::Tax::ManualRuleUpdateParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::V2::Tax::ManualRuleUpdateParams
- Defined in:
- lib/stripe/params/v2/tax/manual_rule_update_params.rb
Defined Under Namespace
Classes: Location, Product, ScheduledTaxRate
Instance Attribute Summary collapse
-
#location ⇒ Object
Location where the rule applies.
-
#products ⇒ Object
Products associated with the rule.
-
#scheduled_tax_rates ⇒ Object
Tax rates to be applied.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(location: nil, products: nil, scheduled_tax_rates: nil) ⇒ ManualRuleUpdateParams
constructor
A new instance of ManualRuleUpdateParams.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, new, #to_h
Constructor Details
#initialize(location: nil, products: nil, scheduled_tax_rates: nil) ⇒ ManualRuleUpdateParams
Returns a new instance of ManualRuleUpdateParams.
99 100 101 102 103 |
# File 'lib/stripe/params/v2/tax/manual_rule_update_params.rb', line 99 def initialize(location: nil, products: nil, scheduled_tax_rates: nil) @location = location @products = products @scheduled_tax_rates = scheduled_tax_rates end |
Instance Attribute Details
#location ⇒ Object
Location where the rule applies.
93 94 95 |
# File 'lib/stripe/params/v2/tax/manual_rule_update_params.rb', line 93 def location @location end |
#products ⇒ Object
Products associated with the rule.
95 96 97 |
# File 'lib/stripe/params/v2/tax/manual_rule_update_params.rb', line 95 def products @products end |
#scheduled_tax_rates ⇒ Object
Tax rates to be applied.
97 98 99 |
# File 'lib/stripe/params/v2/tax/manual_rule_update_params.rb', line 97 def scheduled_tax_rates @scheduled_tax_rates end |
Class Method Details
.field_encodings ⇒ Object
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 |
# File 'lib/stripe/params/v2/tax/manual_rule_update_params.rb', line 105 def self.field_encodings @field_encodings = { scheduled_tax_rates: { kind: :array, element: { kind: :object, fields: { rates: { kind: :array, element: { kind: :object, fields: { percentage: :decimal_string } }, }, }, }, }, } end |