Class: X402::SettlementResult
- Inherits:
-
Struct
- Object
- Struct
- X402::SettlementResult
- Defined in:
- lib/x402/settlement_result.rb
Overview
Returned by Gateway#settle! on successful settlement.
Instance Attribute Summary collapse
-
#network ⇒ String?
CAIP-2 network identifier (e.g. "bsv:mainnet").
-
#receipt_headers ⇒ Hash
HTTP headers to include in the 200 response.
-
#txid ⇒ String?
transaction identifier.
Instance Method Summary collapse
-
#initialize(receipt_headers: {}, txid: nil, network: nil) ⇒ SettlementResult
constructor
A new instance of SettlementResult.
Constructor Details
#initialize(receipt_headers: {}, txid: nil, network: nil) ⇒ SettlementResult
Returns a new instance of SettlementResult.
10 11 12 |
# File 'lib/x402/settlement_result.rb', line 10 def initialize(receipt_headers: {}, txid: nil, network: nil) super end |
Instance Attribute Details
#network ⇒ String?
CAIP-2 network identifier (e.g. "bsv:mainnet")
9 10 11 |
# File 'lib/x402/settlement_result.rb', line 9 def network @network end |
#receipt_headers ⇒ Hash
HTTP headers to include in the 200 response
9 10 11 |
# File 'lib/x402/settlement_result.rb', line 9 def receipt_headers @receipt_headers end |
#txid ⇒ String?
transaction identifier
9 10 11 |
# File 'lib/x402/settlement_result.rb', line 9 def txid @txid end |