Class: Blockchain0x::Resources::PaymentRequestSettleBody

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#amount_usdc_verifiedObject

Returns the value of attribute amount_usdc_verified

Returns:

  • (Object)

    the current value of amount_usdc_verified



23
24
25
# File 'lib/blockchain0x/resources/payment_requests.rb', line 23

def amount_usdc_verified
  @amount_usdc_verified
end

#payer_addressObject

Returns the value of attribute payer_address

Returns:

  • (Object)

    the current value of payer_address



23
24
25
# File 'lib/blockchain0x/resources/payment_requests.rb', line 23

def payer_address
  @payer_address
end

#tx_hashObject

Returns the value of attribute tx_hash

Returns:

  • (Object)

    the current value of 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_wireObject



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