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.



86
87
88
# File 'lib/stripe/services/payment_intent_service.rb', line 86

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

Instance Attribute Details

#calculationObject

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



84
85
86
# File 'lib/stripe/services/payment_intent_service.rb', line 84

def calculation
  @calculation
end