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.



2202
2203
2204
2205
2206
# File 'lib/stripe/resources/invoice.rb', line 2202

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.



2196
2197
2198
# File 'lib/stripe/resources/invoice.rb', line 2196

def amount_requested
  @amount_requested
end

#expandObject

Specifies which fields in the response should be expanded.



2198
2199
2200
# File 'lib/stripe/resources/invoice.rb', line 2198

def expand
  @expand
end

#payment_intentObject

The ID of the PaymentIntent to attach to the invoice.



2200
2201
2202
# File 'lib/stripe/resources/invoice.rb', line 2200

def payment_intent
  @payment_intent
end