Class: Straddle::Models::UnmaskedCharge
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Straddle::Models::UnmaskedCharge
- Defined in:
- lib/straddle/models/unmasked_charge.rb,
sig/straddle/models/unmasked_charge.rbs
Constant Summary collapse
- Straddle =
Instance Attribute Summary collapse
-
#amount ⇒ Integer
Amount in cents.
- #config ⇒ Straddle::Models::ChargeConfiguration
-
#consent_type ⇒ Symbol, Straddle::Models::ConsentType
How the customer authorized the charge.
-
#created_at ⇒ Time
Timestamp when this charge was created.
-
#currency ⇒ String
Currency code.
-
#customer_details ⇒ Straddle::Models::CustomerDetails?
Information about the customer associated with the charge or payout.
-
#description ⇒ String?
A human-readable description of the charge.
- #device ⇒ Straddle::Models::PaymentDevice
-
#documents ⇒ Array<Straddle::Models::PaymentAuthorizationProof>?
Authorization documents for this charge, ordered by upload time.
-
#effective_at ⇒ Time?
Timestamp when funds were settled.
-
#external_id ⇒ String
Your unique identifier for this charge, used to correlate with your internal records.
-
#funding_ids ⇒ Array<String>
IDs of the funding events that included this charge.
-
#has_refund ⇒ Boolean
Whether an associated payout has refunded this charge.
-
#has_resubmit ⇒ Boolean
Whether this charge has been resubmitted.
-
#id ⇒ String
Unique identifier for this charge.
-
#is_resubmit ⇒ Boolean
Whether this charge resubmits an original charge.
-
#metadata ⇒ Hash{Symbol=>String}?
Key-value metadata stored with this charge.
-
#paykey ⇒ String
Unmasked paykey token used for this charge.
- #paykey_details ⇒ Straddle::Models::PaykeyDetails?
-
#payment_date ⇒ Date
Date when Straddle submits the charge for processing.
-
#payment_rail ⇒ Symbol, ...
The payment rail used for the charge or payout.
-
#processed_at ⇒ Time?
Timestamp when this charge was submitted to the payment network.
-
#related_payments ⇒ Array<Straddle::Models::RelatedPayment>?
Related payments and their relationship to this charge.
-
#status ⇒ Symbol, Straddle::Models::PaymentStatus
The current status of the
chargeorpayout. - #status_details ⇒ Straddle::Models::PaymentStatusDetails
-
#status_history ⇒ Array<Straddle::Models::PaymentStatusHistory>
Complete ordered history of all status changes for this charge.
-
#trace_ids ⇒ Hash{Symbol=>String}
Trace identifiers from the payment network.
-
#updated_at ⇒ Time
Timestamp when this charge was last updated.
Instance Method Summary collapse
-
#initialize(id:, amount:, config:, consent_type:, created_at:, currency:, description:, device:, external_id:, funding_ids:, has_refund:, has_resubmit:, is_resubmit:, paykey:, payment_date:, status:, status_details:, status_history:, trace_ids:, updated_at:, customer_details: nil, documents: nil, effective_at: nil, metadata: nil, paykey_details: nil, payment_rail: nil, processed_at: nil, related_payments: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see UnmaskedCharge 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:, config:, consent_type:, created_at:, currency:, description:, device:, external_id:, funding_ids:, has_refund:, has_resubmit:, is_resubmit:, paykey:, payment_date:, status:, status_details:, status_history:, trace_ids:, updated_at:, customer_details: nil, documents: nil, effective_at: nil, metadata: nil, paykey_details: nil, payment_rail: nil, processed_at: nil, related_payments: nil) ⇒ Object
Some parameter documentations has been truncated, see Straddle::Models::UnmaskedCharge for more details.
|
|
# File 'lib/straddle/models/unmasked_charge.rb', line 177
|
Instance Attribute Details
#amount ⇒ Integer
Amount in cents.
16 |
# File 'lib/straddle/models/unmasked_charge.rb', line 16 required :amount, Integer |
#config ⇒ Straddle::Models::ChargeConfiguration
21 |
# File 'lib/straddle/models/unmasked_charge.rb', line 21 required :config, -> { Straddle::ChargeConfiguration } |
#consent_type ⇒ Symbol, Straddle::Models::ConsentType
How the customer authorized the charge. internet covers online and mobile
authorization. signed covers written or PDF-signed agreements.
28 |
# File 'lib/straddle/models/unmasked_charge.rb', line 28 required :consent_type, enum: -> { Straddle::ConsentType } |
#created_at ⇒ Time
Timestamp when this charge was created.
34 |
# File 'lib/straddle/models/unmasked_charge.rb', line 34 required :created_at, Time |
#currency ⇒ String
Currency code. Only USD is supported.
40 |
# File 'lib/straddle/models/unmasked_charge.rb', line 40 required :currency, String |
#customer_details ⇒ Straddle::Models::CustomerDetails?
Information about the customer associated with the charge or payout.
129 |
# File 'lib/straddle/models/unmasked_charge.rb', line 129 optional :customer_details, -> { Straddle::CustomerDetails } |
#description ⇒ String?
A human-readable description of the charge.
46 |
# File 'lib/straddle/models/unmasked_charge.rb', line 46 required :description, String, nil?: true |
#device ⇒ Straddle::Models::PaymentDevice
51 |
# File 'lib/straddle/models/unmasked_charge.rb', line 51 required :device, -> { Straddle::PaymentDevice } |
#documents ⇒ Array<Straddle::Models::PaymentAuthorizationProof>?
Authorization documents for this charge, ordered by upload time.
135 136 137 |
# File 'lib/straddle/models/unmasked_charge.rb', line 135 optional :documents, -> { Straddle::Internal::Type::ArrayOf[Straddle::PaymentAuthorizationProof] }, nil?: true |
#effective_at ⇒ Time?
Timestamp when funds were settled. Null until settlement is confirmed.
143 |
# File 'lib/straddle/models/unmasked_charge.rb', line 143 optional :effective_at, Time, nil?: true |
#external_id ⇒ String
Your unique identifier for this charge, used to correlate with your internal records.
58 |
# File 'lib/straddle/models/unmasked_charge.rb', line 58 required :external_id, String |
#funding_ids ⇒ Array<String>
IDs of the funding events that included this charge.
64 |
# File 'lib/straddle/models/unmasked_charge.rb', line 64 required :funding_ids, Straddle::Internal::Type::ArrayOf[String] |
#has_refund ⇒ Boolean
Whether an associated payout has refunded this charge.
70 |
# File 'lib/straddle/models/unmasked_charge.rb', line 70 required :has_refund, Straddle::Internal::Type::Boolean |
#has_resubmit ⇒ Boolean
Whether this charge has been resubmitted.
76 |
# File 'lib/straddle/models/unmasked_charge.rb', line 76 required :has_resubmit, Straddle::Internal::Type::Boolean |
#id ⇒ String
Unique identifier for this charge.
10 |
# File 'lib/straddle/models/unmasked_charge.rb', line 10 required :id, String |
#is_resubmit ⇒ Boolean
Whether this charge resubmits an original charge.
82 |
# File 'lib/straddle/models/unmasked_charge.rb', line 82 required :is_resubmit, Straddle::Internal::Type::Boolean |
#metadata ⇒ Hash{Symbol=>String}?
Key-value metadata stored with this charge.
149 |
# File 'lib/straddle/models/unmasked_charge.rb', line 149 optional :metadata, Straddle::Internal::Type::HashOf[String], nil?: true |
#paykey ⇒ String
Unmasked paykey token used for this charge.
88 |
# File 'lib/straddle/models/unmasked_charge.rb', line 88 required :paykey, String |
#paykey_details ⇒ Straddle::Models::PaykeyDetails?
154 |
# File 'lib/straddle/models/unmasked_charge.rb', line 154 optional :paykey_details, -> { Straddle::PaykeyDetails } |
#payment_date ⇒ Date
Date when Straddle submits the charge for processing.
94 |
# File 'lib/straddle/models/unmasked_charge.rb', line 94 required :payment_date, Date |
#payment_rail ⇒ Symbol, ...
The payment rail used for the charge or payout.
160 |
# File 'lib/straddle/models/unmasked_charge.rb', line 160 optional :payment_rail, enum: -> { Straddle::PaymentRail } |
#processed_at ⇒ Time?
Timestamp when this charge was submitted to the payment network. Null until processed.
167 |
# File 'lib/straddle/models/unmasked_charge.rb', line 167 optional :processed_at, Time, nil?: true |
#related_payments ⇒ Array<Straddle::Models::RelatedPayment>?
Related payments and their relationship to this charge.
173 174 175 |
# File 'lib/straddle/models/unmasked_charge.rb', line 173 optional :related_payments, -> { Straddle::Internal::Type::ArrayOf[Straddle::RelatedPayment] }, nil?: true |
#status ⇒ Symbol, Straddle::Models::PaymentStatus
The current status of the charge or payout.
100 |
# File 'lib/straddle/models/unmasked_charge.rb', line 100 required :status, enum: -> { Straddle::PaymentStatus } |
#status_details ⇒ Straddle::Models::PaymentStatusDetails
105 |
# File 'lib/straddle/models/unmasked_charge.rb', line 105 required :status_details, -> { Straddle::PaymentStatusDetails } |
#status_history ⇒ Array<Straddle::Models::PaymentStatusHistory>
Complete ordered history of all status changes for this charge.
111 |
# File 'lib/straddle/models/unmasked_charge.rb', line 111 required :status_history, -> { Straddle::Internal::Type::ArrayOf[Straddle::PaymentStatusHistory] } |
#trace_ids ⇒ Hash{Symbol=>String}
Trace identifiers from the payment network. Keys depend on the payment rail.
117 |
# File 'lib/straddle/models/unmasked_charge.rb', line 117 required :trace_ids, Straddle::Internal::Type::HashOf[String] |
#updated_at ⇒ Time
Timestamp when this charge was last updated.
123 |
# File 'lib/straddle/models/unmasked_charge.rb', line 123 required :updated_at, Time |
Instance Method Details
#to_hash ⇒ {
133 |
# File 'sig/straddle/models/unmasked_charge.rbs', line 133
def to_hash: -> {
|