Class: Stripe::V2::Tax::ManualRuleCreateParams::Product

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/v2/tax/manual_rule_create_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(type: nil, licensed_item: nil, metered_item: nil, tax_code: nil) ⇒ Product

Returns a new instance of Product.



30
31
32
33
34
35
# File 'lib/stripe/params/v2/tax/manual_rule_create_params.rb', line 30

def initialize(type: nil, licensed_item: nil, metered_item: nil, tax_code: nil)
  @type = type
  @licensed_item = licensed_item
  @metered_item = metered_item
  @tax_code = tax_code
end

Instance Attribute Details

#licensed_itemObject

The licensed item identifier.



24
25
26
# File 'lib/stripe/params/v2/tax/manual_rule_create_params.rb', line 24

def licensed_item
  @licensed_item
end

#metered_itemObject

The metered item identifier.



26
27
28
# File 'lib/stripe/params/v2/tax/manual_rule_create_params.rb', line 26

def metered_item
  @metered_item
end

#tax_codeObject

The tax code for the product.



28
29
30
# File 'lib/stripe/params/v2/tax/manual_rule_create_params.rb', line 28

def tax_code
  @tax_code
end

#typeObject

The type of the product.



22
23
24
# File 'lib/stripe/params/v2/tax/manual_rule_create_params.rb', line 22

def type
  @type
end