Class: Stripe::InvoicePayment::Payment

Inherits:
StripeObject show all
Defined in:
lib/stripe/resources/invoice_payment.rb

Constant Summary

Constants inherited from StripeObject

StripeObject::RESERVED_FIELD_NAMES

Instance Attribute Summary collapse

Attributes inherited from StripeObject

#last_response

Method Summary

Methods inherited from StripeObject

#==, #[], #[]=, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values

Constructor Details

This class inherits a constructor from Stripe::StripeObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject

Instance Attribute Details

#chargeObject (readonly)

ID of the successful charge for this payment when ‘type` is `charge`.



16
17
18
# File 'lib/stripe/resources/invoice_payment.rb', line 16

def charge
  @charge
end

#payment_intentObject (readonly)

ID of the PaymentIntent associated with this payment when ‘type` is `payment_intent`. Note: This property is only populated for invoices finalized on or after March 15th, 2019.



18
19
20
# File 'lib/stripe/resources/invoice_payment.rb', line 18

def payment_intent
  @payment_intent
end

#typeObject (readonly)

Type of payment object associated with this invoice payment.



20
21
22
# File 'lib/stripe/resources/invoice_payment.rb', line 20

def type
  @type
end