Class: Stripe::PaymentIntentService::CreateParams::Hooks::Inputs::Tax

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/payment_intent_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(calculation: nil) ⇒ Tax

Returns a new instance of Tax.



239
240
241
# File 'lib/stripe/services/payment_intent_service.rb', line 239

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

Instance Attribute Details

#calculationObject

The [TaxCalculation](stripe.com/docs/api/tax/calculations) id



237
238
239
# File 'lib/stripe/services/payment_intent_service.rb', line 237

def calculation
  @calculation
end