Class: Stripe::TaxIdCreateParams::Owner

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



16
17
18
19
20
21
# File 'lib/stripe/params/tax_id_create_params.rb', line 16

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

Instance Attribute Details

#accountObject

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



8
9
10
# File 'lib/stripe/params/tax_id_create_params.rb', line 8

def 
  @account
end

#customerObject

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



10
11
12
# File 'lib/stripe/params/tax_id_create_params.rb', line 10

def customer
  @customer
end

#customer_accountObject

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



12
13
14
# File 'lib/stripe/params/tax_id_create_params.rb', line 12

def 
  
end

#typeObject

Type of owner referenced.



14
15
16
# File 'lib/stripe/params/tax_id_create_params.rb', line 14

def type
  @type
end