Class: Stripe::V2::Tax::ManualRuleUpdateParams::ScheduledTaxRate

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/v2/tax/manual_rule_update_params.rb

Defined Under Namespace

Classes: Rate

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#ratesObject

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_atObject

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_encodingsObject



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