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

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

Defined Under Namespace

Classes: Location, Product, ScheduledTaxRate

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(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

#locationObject

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

#productsObject

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_ratesObject

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_encodingsObject



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