Class: Stripe::InvoiceLineItemUpdateParams::TaxAmount::TaxRateData

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/invoice_line_item_update_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h

Constructor Details

#initialize(country: nil, description: nil, display_name: nil, inclusive: nil, jurisdiction: nil, jurisdiction_level: nil, percentage: nil, state: nil, tax_type: nil) ⇒ TaxRateData



128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# File 'lib/stripe/params/invoice_line_item_update_params.rb', line 128

def initialize(
  country: nil,
  description: nil,
  display_name: nil,
  inclusive: nil,
  jurisdiction: nil,
  jurisdiction_level: nil,
  percentage: nil,
  state: nil,
  tax_type: nil
)
  @country = country
  @description = description
  @display_name = display_name
  @inclusive = inclusive
  @jurisdiction = jurisdiction
  @jurisdiction_level = jurisdiction_level
  @percentage = percentage
  @state = state
  @tax_type = tax_type
end

Instance Attribute Details

#countryObject

Two-letter country code (ISO 3166-1 alpha-2).



110
111
112
# File 'lib/stripe/params/invoice_line_item_update_params.rb', line 110

def country
  @country
end

#descriptionObject

An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers.



112
113
114
# File 'lib/stripe/params/invoice_line_item_update_params.rb', line 112

def description
  @description
end

#display_nameObject

The display name of the tax rate, which will be shown to users.



114
115
116
# File 'lib/stripe/params/invoice_line_item_update_params.rb', line 114

def display_name
  @display_name
end

#inclusiveObject

This specifies if the tax rate is inclusive or exclusive.



116
117
118
# File 'lib/stripe/params/invoice_line_item_update_params.rb', line 116

def inclusive
  @inclusive
end

#jurisdictionObject

The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice.



118
119
120
# File 'lib/stripe/params/invoice_line_item_update_params.rb', line 118

def jurisdiction
  @jurisdiction
end

#jurisdiction_levelObject

The level of the jurisdiction that imposes this tax rate.



120
121
122
# File 'lib/stripe/params/invoice_line_item_update_params.rb', line 120

def jurisdiction_level
  @jurisdiction_level
end

#percentageObject

The statutory tax rate percent. This field accepts decimal values between 0 and 100 inclusive with at most 4 decimal places. To accommodate fixed-amount taxes, set the percentage to zero. Stripe will not display zero percentages on the invoice unless the amount of the tax is also zero.



122
123
124
# File 'lib/stripe/params/invoice_line_item_update_params.rb', line 122

def percentage
  @percentage
end

#stateObject

ISO 3166-2 subdivision code, without country prefix. For example, "NY" for New York, United States.



124
125
126
# File 'lib/stripe/params/invoice_line_item_update_params.rb', line 124

def state
  @state
end

#tax_typeObject

The high-level tax type, such as vat or sales_tax.



126
127
128
# File 'lib/stripe/params/invoice_line_item_update_params.rb', line 126

def tax_type
  @tax_type
end