class Stripe::SetupIntent

Included Modules

Defined in:

stripe/methods/core/setup_intents/confirm_setup_intent.cr
stripe/methods/core/setup_intents/create_setup_intent.cr
stripe/objects/core/setup_intent.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.confirm(intent : String | SetupIntent | Nil = nil, payment_method : String | Token | PaymentMethods::Card | PaymentMethods::BankAccount | Nil = nil, return_url : String | Nil = nil) : SetupIntent forall T, U #

[View source]
def self.create(customer : String | Customer | Nil = nil, description : String | Nil = nil, metadata : Hash(String, String) | Nil = nil, on_behalf_of : String | Nil = nil, usage : String | Nil = nil, payment_method : String | Token | PaymentMethods::Card | PaymentMethods::BankAccount | Nil = nil, return_url : String | Nil = nil, expand : Array(String) | Nil = nil) : SetupIntent forall T, U #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Class Method Detail

def self.list(customer : String | Nil = nil, limit : Int32 | Nil = nil, starting_after : String | Nil = nil, ending_before : String | Nil = nil) : List(Stripe::SetupIntent) #

[View source]
def self.retrieve(id : String) #

[View source]
def self.retrieve(setupintent : Stripe::SetupIntent) #

[View source]

Instance Method Detail

def application : String | Nil #

[View source]
def cancellation_reason : String | Nil #

[View source]
def client_secret : String | Nil #

[View source]
def created : Time #

[View source]
def customer : String | Nil | Stripe::Customer | Nil #

[View source]
def description : String | Nil #

[View source]
def id : String #

[View source]
def last_setup_error : Hash(String, String | PaymentMethods::Card | PaymentMethods::BankAccount) | Nil #

[View source]
def livemode : Bool #

[View source]
def metadata : Hash(String, String) | Nil #

[View source]
def payment_method : String | Nil | Stripe::PaymentMethod | Nil #

[View source]
def payment_method_types : Array(String | Stripe::PaymentMethod) #

[View source]
def status : Status #

[View source]
def usage : String #

[View source]