class Stripe::Charge
- Stripe::Charge
- Reference
- Object
Overview
https://stripe.com/docs/api/charges/object
Included Modules
- JSON::Serializable
Defined in:
stripe/methods/core/charges/create_charge.crstripe/objects/core/charge.cr
Constructors
- .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
- .new(pull : JSON::PullParser)
Instance Method Summary
- #amount : Int32
- #amount_captured : Int32 | Nil
- #amount_refunded : Int32
- #application : String | Nil
- #application_fee : String | Nil
- #application_fee_amount : Int32 | Nil
- #balance_transaction : String | Nil
- #billing_details : BillingDetails | Nil
- #captured : Bool | Nil
- #created : Time
- #currency : String
- #customer : String | Nil | Stripe::Customer | Nil
- #description : String | Nil
- #destination : String | Nil
- #dispute : String | Nil
- #failure_code : String | Nil
- #failure_message : String | Nil
- #fraud_details : FraudDetails | Nil
- #id : String
- #invoice : String | Nil | Stripe::Invoice | Nil
- #livemode : Bool
- #metadata : Hash(String, String) | Nil
- #on_behalf_of : String | Nil | Stripe::Account | Nil
- #order : String | Nil
- #outcome : Outcome | Nil
- #paid : Bool | Nil
- #payment_intent : String | Nil
- #receipt_email : String | Nil
- #receipt_number : String | Nil
- #receipt_url : String | Nil
- #refunded : Bool
- #refunds : List(Refund)
- #review : String | Nil
- #shipping : Shipping | Nil
- #source : PaymentMethods::Card
- #source_transfer : String | Nil | Stripe::Account | Nil
- #statement_descriptor : String | Nil
- #statement_descriptor_suffix : String | Nil
- #status : Status
- #transfer : String | Nil | Stripe::Account | Nil
- #transfer_data : TransferData | Nil
- #transfer_group : String | Nil
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
#