Class: Stripe::InvoiceService::AttachPaymentParams

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/invoice_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(expand: nil, payment_intent: nil) ⇒ AttachPaymentParams

Returns a new instance of AttachPaymentParams.



1490
1491
1492
1493
# File 'lib/stripe/services/invoice_service.rb', line 1490

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

Instance Attribute Details

#expandObject

Specifies which fields in the response should be expanded.



1486
1487
1488
# File 'lib/stripe/services/invoice_service.rb', line 1486

def expand
  @expand
end

#payment_intentObject

The ID of the PaymentIntent to attach to the invoice.



1488
1489
1490
# File 'lib/stripe/services/invoice_service.rb', line 1488

def payment_intent
  @payment_intent
end