Class: Straddle::Models::PaymentSummary
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Straddle::Models::PaymentSummary
- Defined in:
- lib/straddle/models/payment_summary.rb,
sig/straddle/models/payment_summary.rbs
Constant Summary collapse
- Straddle =
Instance Attribute Summary collapse
-
#amount ⇒ Integer
Amount in cents.
-
#created_at ⇒ Time
Timestamp when the charge or payout was created.
-
#currency ⇒ String
Currency code.
-
#customer_details ⇒ Straddle::Models::CustomerDetails?
Information about the customer associated with the charge or payout.
-
#description ⇒ String?
Human-readable description of the payment.
-
#effective_at ⇒ Time?
Timestamp when funds settled.
-
#external_id ⇒ String
Your unique identifier for the charge or payout.
-
#funding_id ⇒ String?
Unique identifier for the funding event associated with the
chargeorpayout. -
#funding_ids ⇒ Array<String>
IDs of the funding events that included this payment.
-
#has_refund ⇒ Boolean
Whether this payment is a charge refunded by an associated payout.
-
#has_resubmit ⇒ Boolean
Whether this payment has been resubmitted.
-
#id ⇒ String
Unique identifier for this charge or payout.
-
#is_refund ⇒ Boolean
Whether this payment is a payout that refunds an original charge.
-
#is_resubmit ⇒ Boolean
Whether this payment resubmits an original payment.
-
#metadata ⇒ Hash{Symbol=>String}?
Key-value metadata for the payment.
-
#paykey ⇒ String
Masked paykey token used for the charge or payout.
-
#paykey_details ⇒ Straddle::Models::PaykeyDetails?
Details of the paykey used for the charge or payout.
-
#payment_date ⇒ Date
Date when Straddle submits the payment for processing.
-
#payment_type ⇒ Symbol, Straddle::Models::PaymentType
Whether this payment is a charge or payout.
-
#related_payments ⇒ Array<Straddle::Models::RelatedPayment>?
Related payments and their relationship to this charge or payout.
-
#status ⇒ Symbol, Straddle::Models::PaymentStatus
Current status of the charge or payout.
-
#status_details ⇒ Straddle::Models::PaymentStatusDetails
Reason, source, and message for the most recent status change.
-
#trace_ids ⇒ Hash{Symbol=>String}
Network-level trace identifiers assigned during processing.
-
#updated_at ⇒ Time
Timestamp when the charge or payout was last updated.
Instance Method Summary collapse
-
#initialize(id:, amount:, created_at:, currency:, description:, external_id:, funding_ids:, has_refund:, has_resubmit:, is_refund:, is_resubmit:, paykey:, payment_date:, payment_type:, status:, status_details:, trace_ids:, updated_at:, customer_details: nil, effective_at: nil, funding_id: nil, metadata: nil, paykey_details: nil, related_payments: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see PaymentSummary for more details.
- #to_hash ⇒ {
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(id:, amount:, created_at:, currency:, description:, external_id:, funding_ids:, has_refund:, has_resubmit:, is_refund:, is_resubmit:, paykey:, payment_date:, payment_type:, status:, status_details:, trace_ids:, updated_at:, customer_details: nil, effective_at: nil, funding_id: nil, metadata: nil, paykey_details: nil, related_payments: nil) ⇒ Object
Some parameter documentations has been truncated, see Straddle::Models::PaymentSummary for more details.
|
|
# File 'lib/straddle/models/payment_summary.rb', line 155
|
Instance Attribute Details
#amount ⇒ Integer
Amount in cents.
16 |
# File 'lib/straddle/models/payment_summary.rb', line 16 required :amount, Integer |
#created_at ⇒ Time
Timestamp when the charge or payout was created.
22 |
# File 'lib/straddle/models/payment_summary.rb', line 22 required :created_at, Time |
#currency ⇒ String
Currency code. Only USD is supported.
28 |
# File 'lib/straddle/models/payment_summary.rb', line 28 required :currency, String |
#customer_details ⇒ Straddle::Models::CustomerDetails?
Information about the customer associated with the charge or payout.
119 |
# File 'lib/straddle/models/payment_summary.rb', line 119 optional :customer_details, -> { Straddle::CustomerDetails } |
#description ⇒ String?
Human-readable description of the payment.
34 |
# File 'lib/straddle/models/payment_summary.rb', line 34 required :description, String, nil?: true |
#effective_at ⇒ Time?
Timestamp when funds settled. Null until settlement is confirmed.
125 |
# File 'lib/straddle/models/payment_summary.rb', line 125 optional :effective_at, Time, nil?: true |
#external_id ⇒ String
Your unique identifier for the charge or payout.
40 |
# File 'lib/straddle/models/payment_summary.rb', line 40 required :external_id, String |
#funding_id ⇒ String?
Unique identifier for the funding event associated with the charge or
payout.
132 |
# File 'lib/straddle/models/payment_summary.rb', line 132 optional :funding_id, String, nil?: true |
#funding_ids ⇒ Array<String>
IDs of the funding events that included this payment.
46 |
# File 'lib/straddle/models/payment_summary.rb', line 46 required :funding_ids, Straddle::Internal::Type::ArrayOf[String] |
#has_refund ⇒ Boolean
Whether this payment is a charge refunded by an associated payout.
52 |
# File 'lib/straddle/models/payment_summary.rb', line 52 required :has_refund, Straddle::Internal::Type::Boolean |
#has_resubmit ⇒ Boolean
Whether this payment has been resubmitted.
58 |
# File 'lib/straddle/models/payment_summary.rb', line 58 required :has_resubmit, Straddle::Internal::Type::Boolean |
#id ⇒ String
Unique identifier for this charge or payout.
10 |
# File 'lib/straddle/models/payment_summary.rb', line 10 required :id, String |
#is_refund ⇒ Boolean
Whether this payment is a payout that refunds an original charge.
64 |
# File 'lib/straddle/models/payment_summary.rb', line 64 required :is_refund, Straddle::Internal::Type::Boolean |
#is_resubmit ⇒ Boolean
Whether this payment resubmits an original payment.
70 |
# File 'lib/straddle/models/payment_summary.rb', line 70 required :is_resubmit, Straddle::Internal::Type::Boolean |
#metadata ⇒ Hash{Symbol=>String}?
Key-value metadata for the payment. Included only when include_metadata is
true.
139 |
# File 'lib/straddle/models/payment_summary.rb', line 139 optional :metadata, Straddle::Internal::Type::HashOf[String], nil?: true |
#paykey ⇒ String
Masked paykey token used for the charge or payout.
76 |
# File 'lib/straddle/models/payment_summary.rb', line 76 required :paykey, String |
#paykey_details ⇒ Straddle::Models::PaykeyDetails?
Details of the paykey used for the charge or payout.
145 |
# File 'lib/straddle/models/payment_summary.rb', line 145 optional :paykey_details, -> { Straddle::PaykeyDetails } |
#payment_date ⇒ Date
Date when Straddle submits the payment for processing.
82 |
# File 'lib/straddle/models/payment_summary.rb', line 82 required :payment_date, Date |
#payment_type ⇒ Symbol, Straddle::Models::PaymentType
Whether this payment is a charge or payout.
88 |
# File 'lib/straddle/models/payment_summary.rb', line 88 required :payment_type, enum: -> { Straddle::PaymentType } |
#related_payments ⇒ Array<Straddle::Models::RelatedPayment>?
Related payments and their relationship to this charge or payout.
151 152 153 |
# File 'lib/straddle/models/payment_summary.rb', line 151 optional :related_payments, -> { Straddle::Internal::Type::ArrayOf[Straddle::RelatedPayment] }, nil?: true |
#status ⇒ Symbol, Straddle::Models::PaymentStatus
Current status of the charge or payout.
94 |
# File 'lib/straddle/models/payment_summary.rb', line 94 required :status, enum: -> { Straddle::PaymentStatus } |
#status_details ⇒ Straddle::Models::PaymentStatusDetails
Reason, source, and message for the most recent status change.
100 |
# File 'lib/straddle/models/payment_summary.rb', line 100 required :status_details, -> { Straddle::PaymentStatusDetails } |
#trace_ids ⇒ Hash{Symbol=>String}
Network-level trace identifiers assigned during processing. Keys vary by payment rail.
107 |
# File 'lib/straddle/models/payment_summary.rb', line 107 required :trace_ids, Straddle::Internal::Type::HashOf[String] |
#updated_at ⇒ Time
Timestamp when the charge or payout was last updated.
113 |
# File 'lib/straddle/models/payment_summary.rb', line 113 required :updated_at, Time |
Instance Method Details
#to_hash ⇒ {
113 |
# File 'sig/straddle/models/payment_summary.rbs', line 113
def to_hash: -> {
|