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.



5873
5874
5875
5876
5877
# File 'lib/stripe/resources/invoice.rb', line 5873

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.



5867
5868
5869
# File 'lib/stripe/resources/invoice.rb', line 5867

def amount_requested
  @amount_requested
end

#expandObject

Specifies which fields in the response should be expanded.



5869
5870
5871
# File 'lib/stripe/resources/invoice.rb', line 5869

def expand
  @expand
end

#payment_intentObject

The ID of the PaymentIntent to attach to the invoice.



5871
5872
5873
# File 'lib/stripe/resources/invoice.rb', line 5871

def payment_intent
  @payment_intent
end