Class: Stripe::TaxId::ListParams::Owner

Inherits:
RequestParams show all
Defined in:
lib/stripe/resources/tax_id.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(account: nil, customer: nil, customer_account: nil, type: nil) ⇒ Owner

Returns a new instance of Owner.



70
71
72
73
74
75
# File 'lib/stripe/resources/tax_id.rb', line 70

def initialize(account: nil, customer: nil, customer_account: nil, type: nil)
  @account = 
  @customer = customer
  @customer_account = 
  @type = type
end

Instance Attribute Details

#accountObject

Account the tax ID belongs to. Required when ‘type=account`



62
63
64
# File 'lib/stripe/resources/tax_id.rb', line 62

def 
  @account
end

#customerObject

Customer the tax ID belongs to. Required when ‘type=customer`



64
65
66
# File 'lib/stripe/resources/tax_id.rb', line 64

def customer
  @customer
end

#customer_accountObject

v2 Account the tax ID belongs to. Can be used in place of ‘customer` when `type=customer`



66
67
68
# File 'lib/stripe/resources/tax_id.rb', line 66

def 
  @customer_account
end

#typeObject

Type of owner referenced.



68
69
70
# File 'lib/stripe/resources/tax_id.rb', line 68

def type
  @type
end