Class: Blockchain0x::Resources::PaymentRequestSettleBody
- Inherits:
-
Struct
- Object
- Struct
- Blockchain0x::Resources::PaymentRequestSettleBody
- Defined in:
- lib/blockchain0x/resources/payment_requests.rb
Overview
PaymentRequestSettleBody is the typed proof-tuple. Snake_case on the Ruby side, camelCase on the wire (the ‘#to_h_wire` serialiser handles the rename). Mirrors the Python PaymentRequestSettleBody dataclass + Go PaymentRequestSettleBody struct.
Instance Attribute Summary collapse
-
#amount_usdc_verified ⇒ Object
Returns the value of attribute amount_usdc_verified.
-
#payer_address ⇒ Object
Returns the value of attribute payer_address.
-
#tx_hash ⇒ Object
Returns the value of attribute tx_hash.
Instance Method Summary collapse
Instance Attribute Details
#amount_usdc_verified ⇒ Object
Returns the value of attribute amount_usdc_verified
23 24 25 |
# File 'lib/blockchain0x/resources/payment_requests.rb', line 23 def amount_usdc_verified @amount_usdc_verified end |
#payer_address ⇒ Object
Returns the value of attribute payer_address
23 24 25 |
# File 'lib/blockchain0x/resources/payment_requests.rb', line 23 def payer_address @payer_address end |
#tx_hash ⇒ Object
Returns the value of attribute tx_hash
23 24 25 |
# File 'lib/blockchain0x/resources/payment_requests.rb', line 23 def tx_hash @tx_hash end |
Instance Method Details
#to_h_wire ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/blockchain0x/resources/payment_requests.rb', line 29 def to_h_wire { 'txHash' => tx_hash, 'payerAddress' => payer_address, 'amountUsdcVerified' => amount_usdc_verified, } end |