class

Stripe::Charge

Inherits JSON::Serializable / Reference / Object

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

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
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

amount
Source
amount_captured
Source
amount_refunded
Source
application
Source
application_fee
Source
application_fee_amount
Source
balance_transaction
Source
billing_details
Source
captured
Source
created
Source
currency
Source
customer
Source
description
Source
destination
Source
dispute
Source
failure_code
Source
failure_message
Source
fraud_details
Source
invoice
Source
livemode?
Source
metadata
Source
on_behalf_of
Source
order
Source
outcome
Source
payment_intent
Source
receipt_email
Source
receipt_number
Source
receipt_url
Source
refunded?
Source
refunds
Source
review
Source
shipping
Source
source
Source
source_transfer
Source
statement_descriptor
Source
statement_descriptor_suffix
Source
status
Source
transfer
Source
transfer_data
Source
transfer_group
Source

Nested types