Class: Stripe::PaymentIntent::ConfirmParams::PaymentMethodOptions::Paypal::LineItem::Tax

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(amount: nil, behavior: nil) ⇒ Tax

Returns a new instance of Tax.



11668
11669
11670
11671
# File 'lib/stripe/resources/payment_intent.rb', line 11668

def initialize(amount: nil, behavior: nil)
  @amount = amount
  @behavior = behavior
end

Instance Attribute Details

#amountObject

The tax for a single unit of the line item in minor units. Cannot be a negative number.



11664
11665
11666
# File 'lib/stripe/resources/payment_intent.rb', line 11664

def amount
  @amount
end

#behaviorObject

The tax behavior for the line item.



11666
11667
11668
# File 'lib/stripe/resources/payment_intent.rb', line 11666

def behavior
  @behavior
end