Class: Stripe::TaxId::ListParams::Owner
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::TaxId::ListParams::Owner
- Defined in:
- lib/stripe/resources/tax_id.rb
Instance Attribute Summary collapse
-
#account ⇒ Object
Account the tax ID belongs to.
-
#customer ⇒ Object
Customer the tax ID belongs to.
-
#customer_account ⇒ Object
v2 Account the tax ID belongs to.
-
#type ⇒ Object
Type of owner referenced.
Instance Method Summary collapse
-
#initialize(account: nil, customer: nil, customer_account: nil, type: nil) ⇒ Owner
constructor
A new instance of Owner.
Methods inherited from RequestParams
Constructor Details
#initialize(account: nil, customer: nil, customer_account: nil, type: nil) ⇒ Owner
Returns a new instance of Owner.
54 55 56 57 58 59 |
# File 'lib/stripe/resources/tax_id.rb', line 54 def initialize(account: nil, customer: nil, customer_account: nil, type: nil) @account = account @customer = customer @customer_account = customer_account @type = type end |
Instance Attribute Details
#account ⇒ Object
Account the tax ID belongs to. Required when ‘type=account`
46 47 48 |
# File 'lib/stripe/resources/tax_id.rb', line 46 def account @account end |
#customer ⇒ Object
Customer the tax ID belongs to. Required when ‘type=customer`
48 49 50 |
# File 'lib/stripe/resources/tax_id.rb', line 48 def customer @customer end |
#customer_account ⇒ Object
v2 Account the tax ID belongs to. Can be used in place of ‘customer` when `type=customer`
50 51 52 |
# File 'lib/stripe/resources/tax_id.rb', line 50 def customer_account @customer_account end |
#type ⇒ Object
Type of owner referenced.
52 53 54 |
# File 'lib/stripe/resources/tax_id.rb', line 52 def type @type end |