Class: Stripe::V2::Tax::ManualRuleUpdateParams::ScheduledTaxRate
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::V2::Tax::ManualRuleUpdateParams::ScheduledTaxRate
- Defined in:
- lib/stripe/params/v2/tax/manual_rule_update_params.rb
Defined Under Namespace
Classes: Rate
Instance Attribute Summary collapse
-
#rates ⇒ Object
The tax rates to be applied.
-
#starts_at ⇒ Object
The start time for the tax rate.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(rates: nil, starts_at: nil) ⇒ ScheduledTaxRate
constructor
A new instance of ScheduledTaxRate.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, new, #to_h
Constructor Details
#initialize(rates: nil, starts_at: nil) ⇒ ScheduledTaxRate
Returns a new instance of ScheduledTaxRate.
78 79 80 81 |
# File 'lib/stripe/params/v2/tax/manual_rule_update_params.rb', line 78 def initialize(rates: nil, starts_at: nil) @rates = rates @starts_at = starts_at end |
Instance Attribute Details
#rates ⇒ Object
The tax rates to be applied.
74 75 76 |
# File 'lib/stripe/params/v2/tax/manual_rule_update_params.rb', line 74 def rates @rates end |
#starts_at ⇒ Object
The start time for the tax rate.
76 77 78 |
# File 'lib/stripe/params/v2/tax/manual_rule_update_params.rb', line 76 def starts_at @starts_at end |
Class Method Details
.field_encodings ⇒ Object
83 84 85 86 87 88 89 90 |
# File 'lib/stripe/params/v2/tax/manual_rule_update_params.rb', line 83 def self.field_encodings @field_encodings = { rates: { kind: :array, element: { kind: :object, fields: { percentage: :decimal_string } }, }, } end |