Class: Stripe::Invoice::CreatePreviewParams::CustomerDetails::Tax

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/invoice.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(ip_address: nil) ⇒ Tax

Returns a new instance of Tax.



2354
2355
2356
# File 'lib/stripe/resources/invoice.rb', line 2354

def initialize(ip_address: nil)
  @ip_address = ip_address
end

Instance Attribute Details

#ip_addressObject

A recent IP address of the customer used for tax reporting and tax location inference. Stripe recommends updating the IP address when a new PaymentMethod is attached or the address field on the customer is updated. We recommend against updating this field more frequently since it could result in unexpected tax location/reporting outcomes.



2352
2353
2354
# File 'lib/stripe/resources/invoice.rb', line 2352

def ip_address
  @ip_address
end