Class: Stripe::CustomerCreateParams::Tax
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::CustomerCreateParams::Tax
- Defined in:
- lib/stripe/params/customer_create_params.rb
Instance Attribute Summary collapse
-
#ip_address ⇒ Object
A recent IP address of the customer used for tax reporting and tax location inference.
-
#validate_location ⇒ Object
A flag that indicates when Stripe should validate the customer tax location.
Instance Method Summary collapse
-
#initialize(ip_address: nil, validate_location: nil) ⇒ Tax
constructor
A new instance of Tax.
Methods inherited from RequestParams
Constructor Details
#initialize(ip_address: nil, validate_location: nil) ⇒ Tax
Returns a new instance of Tax.
145 146 147 148 |
# File 'lib/stripe/params/customer_create_params.rb', line 145 def initialize(ip_address: nil, validate_location: nil) @ip_address = ip_address @validate_location = validate_location end |
Instance Attribute Details
#ip_address ⇒ Object
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.
141 142 143 |
# File 'lib/stripe/params/customer_create_params.rb', line 141 def ip_address @ip_address end |
#validate_location ⇒ Object
A flag that indicates when Stripe should validate the customer tax location. Defaults to ‘deferred`.
143 144 145 |
# File 'lib/stripe/params/customer_create_params.rb', line 143 def validate_location @validate_location end |