Class: Stripe::TaxIdService::ListParams::Owner

Inherits:
RequestParams show all
Defined in:
lib/stripe/services/tax_id_service.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.



28
29
30
31
32
33
# File 'lib/stripe/services/tax_id_service.rb', line 28

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`



20
21
22
# File 'lib/stripe/services/tax_id_service.rb', line 20

def 
  @account
end

#customerObject

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



22
23
24
# File 'lib/stripe/services/tax_id_service.rb', line 22

def customer
  @customer
end

#customer_accountObject

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



24
25
26
# File 'lib/stripe/services/tax_id_service.rb', line 24

def 
  @customer_account
end

#typeObject

Type of owner referenced.



26
27
28
# File 'lib/stripe/services/tax_id_service.rb', line 26

def type
  @type
end