class Stripe::SetupIntent
- Stripe::SetupIntent
- Reference
- Object
Included Modules
- JSON::Serializable
- StripeMethods
Defined in:
stripe/methods/core/setup_intents/confirm_setup_intent.crstripe/methods/core/setup_intents/create_setup_intent.cr
stripe/objects/core/setup_intent.cr
Constructors
- .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
- .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
- .new(pull : JSON::PullParser)
Class Method Summary
- .list(customer : String | Nil = nil, limit : Int32 | Nil = nil, starting_after : String | Nil = nil, ending_before : String | Nil = nil) : List(Stripe::SetupIntent)
- .retrieve(id : String)
- .retrieve(setupintent : Stripe::SetupIntent)
Instance Method Summary
- #application : String | Nil
- #cancellation_reason : String | Nil
- #client_secret : String | Nil
- #created : Time
- #customer : String | Nil | Stripe::Customer | Nil
- #description : String | Nil
- #id : String
- #last_setup_error : Hash(String, String | PaymentMethods::Card | PaymentMethods::BankAccount) | Nil
- #livemode : Bool
- #metadata : Hash(String, String) | Nil
- #payment_method : String | Nil | Stripe::PaymentMethod | Nil
- #payment_method_types : Array(String | Stripe::PaymentMethod)
- #status : Status
- #usage : String
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
#
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
#
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)
#
Instance Method Detail
def last_setup_error : Hash(String, String | PaymentMethods::Card | PaymentMethods::BankAccount) | Nil
#