Class: Inttegro::BalanceTransaction::RefundAllocation
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::BalanceTransaction::RefundAllocation
- Defined in:
- lib/inttegro/balance_transaction/refund_allocation.rb
Overview
Typed representation of the refund allocation object in the Inttegro API.
This generated model is immutable. Construct it with .new, or decode a string-keyed API
payload with .from_hash. #serialize produces a string-keyed hash using the original wire
field names and serialized enum values.
Instance Attribute Summary collapse
-
#completed_at ⇒ Time?
readonly
When the allocated amount became permanently consumed.
-
#created_at ⇒ Time
readonly
When the amount first became unavailable for another refund or payout.
-
#id ⇒ String
readonly
Stable public allocation identifier for reconciliation and support.
-
#refund ⇒ Inttegro::BalanceTransaction::RefundAllocationRefund
readonly
Value of the
refundfield in the Inttegro API payload. -
#status ⇒ Inttegro::BalanceTransaction::AllocationStatus
readonly
Public effect of an allocation on the source payment balance transaction.
-
#type ⇒ Inttegro::BalanceTransaction::RefundAllocationType
readonly
Value of the
typefield in the Inttegro API payload. -
#updated_at ⇒ Time
readonly
When the public allocation status last changed.
Instance Attribute Details
#completed_at ⇒ Time? (readonly)
When the allocated amount became permanently consumed. Present only when status is
completed.
Optional in the API payload; omitted values default to nil. Wire name: completed_at.
64 65 66 67 68 69 70 71 72 |
# File 'lib/inttegro/balance_transaction/refund_allocation.rb', line 64 class RefundAllocation < T::Struct const :completed_at, T.nilable(Time), default: nil const :created_at, Time const :id, String const :status, Inttegro::BalanceTransaction::AllocationStatus const :type, Inttegro::BalanceTransaction::RefundAllocationType const :updated_at, Time const :refund, Inttegro::BalanceTransaction::RefundAllocationRefund end |
#created_at ⇒ Time (readonly)
When the amount first became unavailable for another refund or payout.
Required in the API payload. Wire name: created_at.
64 65 66 67 68 69 70 71 72 |
# File 'lib/inttegro/balance_transaction/refund_allocation.rb', line 64 class RefundAllocation < T::Struct const :completed_at, T.nilable(Time), default: nil const :created_at, Time const :id, String const :status, Inttegro::BalanceTransaction::AllocationStatus const :type, Inttegro::BalanceTransaction::RefundAllocationType const :updated_at, Time const :refund, Inttegro::BalanceTransaction::RefundAllocationRefund end |
#id ⇒ String (readonly)
Stable public allocation identifier for reconciliation and support.
Required in the API payload. Wire name: id.
64 65 66 67 68 69 70 71 72 |
# File 'lib/inttegro/balance_transaction/refund_allocation.rb', line 64 class RefundAllocation < T::Struct const :completed_at, T.nilable(Time), default: nil const :created_at, Time const :id, String const :status, Inttegro::BalanceTransaction::AllocationStatus const :type, Inttegro::BalanceTransaction::RefundAllocationType const :updated_at, Time const :refund, Inttegro::BalanceTransaction::RefundAllocationRefund end |
#refund ⇒ Inttegro::BalanceTransaction::RefundAllocationRefund (readonly)
Value of the refund field in the Inttegro API payload.
Required in the API payload. Wire name: refund.
64 65 66 67 68 69 70 71 72 |
# File 'lib/inttegro/balance_transaction/refund_allocation.rb', line 64 class RefundAllocation < T::Struct const :completed_at, T.nilable(Time), default: nil const :created_at, Time const :id, String const :status, Inttegro::BalanceTransaction::AllocationStatus const :type, Inttegro::BalanceTransaction::RefundAllocationType const :updated_at, Time const :refund, Inttegro::BalanceTransaction::RefundAllocationRefund end |
#status ⇒ Inttegro::BalanceTransaction::AllocationStatus (readonly)
Public effect of an allocation on the source payment balance transaction. Internal reservation and reconciliation states are not exposed.
Required in the API payload. Wire name: status.
64 65 66 67 68 69 70 71 72 |
# File 'lib/inttegro/balance_transaction/refund_allocation.rb', line 64 class RefundAllocation < T::Struct const :completed_at, T.nilable(Time), default: nil const :created_at, Time const :id, String const :status, Inttegro::BalanceTransaction::AllocationStatus const :type, Inttegro::BalanceTransaction::RefundAllocationType const :updated_at, Time const :refund, Inttegro::BalanceTransaction::RefundAllocationRefund end |
#type ⇒ Inttegro::BalanceTransaction::RefundAllocationType (readonly)
Value of the type field in the Inttegro API payload.
Required in the API payload. Wire name: type.
64 65 66 67 68 69 70 71 72 |
# File 'lib/inttegro/balance_transaction/refund_allocation.rb', line 64 class RefundAllocation < T::Struct const :completed_at, T.nilable(Time), default: nil const :created_at, Time const :id, String const :status, Inttegro::BalanceTransaction::AllocationStatus const :type, Inttegro::BalanceTransaction::RefundAllocationType const :updated_at, Time const :refund, Inttegro::BalanceTransaction::RefundAllocationRefund end |
#updated_at ⇒ Time (readonly)
When the public allocation status last changed.
Required in the API payload. Wire name: updated_at.
64 65 66 67 68 69 70 71 72 |
# File 'lib/inttegro/balance_transaction/refund_allocation.rb', line 64 class RefundAllocation < T::Struct const :completed_at, T.nilable(Time), default: nil const :created_at, Time const :id, String const :status, Inttegro::BalanceTransaction::AllocationStatus const :type, Inttegro::BalanceTransaction::RefundAllocationType const :updated_at, Time const :refund, Inttegro::BalanceTransaction::RefundAllocationRefund end |