class Stripe::Charge

Overview

https://stripe.com/docs/api/charges/object

Included Modules

Defined in:

stripe/methods/core/charges/create_charge.cr
stripe/objects/core/charge.cr

Constructors

Instance Method Summary

Constructor Detail

def self.create(amount : Int32, currency : String, application_fee : Int32 | Nil = nil, capture : Bool | Nil = nil, customer : String | Customer | Nil = nil, description : String | Nil = nil, destination : T | Nil = nil, metadata : Hash(String, String) | Nil = nil, on_behalf_of : String | Nil = nil, receipt_email : String | Nil = nil, shipping : U | Nil = nil, source : String | Token | PaymentMethods::Card | PaymentMethods::BankAccount | Nil = nil, statement_descriptor : String | Nil = nil, transfer_group : String | Nil = nil, expand : Array(String) | Nil = nil) : Charge forall T, U #

def self.new(pull : JSON::PullParser) #

Instance Method Detail

def amount : Int32 #

def amount_captured : Int32 | Nil #

def amount_refunded : Int32 #

def application : String | Nil #

def application_fee : String | Nil #

def application_fee_amount : Int32 | Nil #

def balance_transaction : String | Nil #

def billing_details : BillingDetails | Nil #

def captured : Bool | Nil #

def created : Time #

def currency : String #

def customer : String | Nil | Stripe::Customer | Nil #

def description : String | Nil #

def destination : String | Nil #

def dispute : String | Nil #

def failure_code : String | Nil #

def failure_message : String | Nil #

def fraud_details : FraudDetails | Nil #

def id : String #

def invoice : String | Nil | Stripe::Invoice | Nil #

def livemode : Bool #

def metadata : Hash(String, String) | Nil #

def on_behalf_of : String | Nil | Stripe::Account | Nil #

def order : String | Nil #

def outcome : Outcome | Nil #

def paid : Bool | Nil #

def payment_intent : String | Nil #

def receipt_email : String | Nil #

def receipt_number : String | Nil #

def receipt_url : String | Nil #

def refunded : Bool #

def refunds : List(Refund) #

def review : String | Nil #

def shipping : Shipping | Nil #

def source : PaymentMethods::Card #

def source_transfer : String | Nil | Stripe::Account | Nil #

def statement_descriptor : String | Nil #

def statement_descriptor_suffix : String | Nil #

def status : Status #

def transfer : String | Nil | Stripe::Account | Nil #

def transfer_data : TransferData | Nil #

def transfer_group : String | Nil #