Class: Stripe::Invoice::AttachPaymentIntentParams

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(amount_requested: nil, expand: nil, payment_intent: nil) ⇒ AttachPaymentIntentParams

Returns a new instance of AttachPaymentIntentParams.



6765
6766
6767
6768
6769
# File 'lib/stripe/resources/invoice.rb', line 6765

def initialize(amount_requested: nil, expand: nil, payment_intent: nil)
  @amount_requested = amount_requested
  @expand = expand
  @payment_intent = payment_intent
end

Instance Attribute Details

#amount_requestedObject

The portion of the PaymentIntent’s ‘amount` that should be applied to thisinvoice. Defaults to the entire amount.



6757
6758
6759
# File 'lib/stripe/resources/invoice.rb', line 6757

def amount_requested
  @amount_requested
end

#expandObject

Specifies which fields in the response should be expanded.



6760
6761
6762
# File 'lib/stripe/resources/invoice.rb', line 6760

def expand
  @expand
end

#payment_intentObject

The ID of the PaymentIntent to attach to the invoice.



6763
6764
6765
# File 'lib/stripe/resources/invoice.rb', line 6763

def payment_intent
  @payment_intent
end