Class: Blockchain0xX402::Wire::PaymentRequirement

Inherits:
Struct
  • Object
show all
Defined in:
lib/blockchain0x_x402/wire.rb

Instance Attribute Summary collapse

Instance Attribute Details

#amount_wei_usdcObject

Returns the value of attribute amount_wei_usdc

Returns:

  • (Object)

    the current value of amount_wei_usdc



56
57
58
# File 'lib/blockchain0x_x402/wire.rb', line 56

def amount_wei_usdc
  @amount_wei_usdc
end

#amount_wei_usdc @return [String] integer text(@return[String]) ⇒ Object (readonly)



56
57
58
59
60
61
62
63
64
65
# File 'lib/blockchain0x_x402/wire.rb', line 56

PaymentRequirement = Struct.new(
  :scheme,
  :network,
  :chain_id,
  :pay_to_address,
  :amount_wei_usdc,
  :payment_request_id,
  :max_age_seconds,
  keyword_init: true,
)

#chain_idObject

Returns the value of attribute chain_id

Returns:

  • (Object)

    the current value of chain_id



56
57
58
# File 'lib/blockchain0x_x402/wire.rb', line 56

def chain_id
  @chain_id
end

#chain_id @return [String] CAIP-2 chain id(@return[String]) ⇒ Object (readonly)



56
57
58
59
60
61
62
63
64
65
# File 'lib/blockchain0x_x402/wire.rb', line 56

PaymentRequirement = Struct.new(
  :scheme,
  :network,
  :chain_id,
  :pay_to_address,
  :amount_wei_usdc,
  :payment_request_id,
  :max_age_seconds,
  keyword_init: true,
)

#max_age_secondsObject

Returns the value of attribute max_age_seconds

Returns:

  • (Object)

    the current value of max_age_seconds



56
57
58
# File 'lib/blockchain0x_x402/wire.rb', line 56

def max_age_seconds
  @max_age_seconds
end

#max_age_seconds @return [Integer, nil](@return[Integer, nil]) ⇒ Object (readonly)



56
57
58
59
60
61
62
63
64
65
# File 'lib/blockchain0x_x402/wire.rb', line 56

PaymentRequirement = Struct.new(
  :scheme,
  :network,
  :chain_id,
  :pay_to_address,
  :amount_wei_usdc,
  :payment_request_id,
  :max_age_seconds,
  keyword_init: true,
)

#networkObject

Returns the value of attribute network

Returns:

  • (Object)

    the current value of network



56
57
58
# File 'lib/blockchain0x_x402/wire.rb', line 56

def network
  @network
end

#network @return [String] 'mainnet' | 'testnet'(@return[String]) ⇒ Object (readonly)



56
57
58
59
60
61
62
63
64
65
# File 'lib/blockchain0x_x402/wire.rb', line 56

PaymentRequirement = Struct.new(
  :scheme,
  :network,
  :chain_id,
  :pay_to_address,
  :amount_wei_usdc,
  :payment_request_id,
  :max_age_seconds,
  keyword_init: true,
)

#pay_to_addressObject

Returns the value of attribute pay_to_address

Returns:

  • (Object)

    the current value of pay_to_address



56
57
58
# File 'lib/blockchain0x_x402/wire.rb', line 56

def pay_to_address
  @pay_to_address
end

#pay_to_address @return [String](@return[String]) ⇒ Object (readonly)



56
57
58
59
60
61
62
63
64
65
# File 'lib/blockchain0x_x402/wire.rb', line 56

PaymentRequirement = Struct.new(
  :scheme,
  :network,
  :chain_id,
  :pay_to_address,
  :amount_wei_usdc,
  :payment_request_id,
  :max_age_seconds,
  keyword_init: true,
)

#payment_request_idObject

Returns the value of attribute payment_request_id

Returns:

  • (Object)

    the current value of payment_request_id



56
57
58
# File 'lib/blockchain0x_x402/wire.rb', line 56

def payment_request_id
  @payment_request_id
end

#payment_request_id @return [String](@return[String]) ⇒ Object (readonly)



56
57
58
59
60
61
62
63
64
65
# File 'lib/blockchain0x_x402/wire.rb', line 56

PaymentRequirement = Struct.new(
  :scheme,
  :network,
  :chain_id,
  :pay_to_address,
  :amount_wei_usdc,
  :payment_request_id,
  :max_age_seconds,
  keyword_init: true,
)

#schemeObject

Returns the value of attribute scheme

Returns:

  • (Object)

    the current value of scheme



56
57
58
# File 'lib/blockchain0x_x402/wire.rb', line 56

def scheme
  @scheme
end

#scheme @return [String] 'exact-usdc'(@return[String]) ⇒ Object (readonly)



56
57
58
59
60
61
62
63
64
65
# File 'lib/blockchain0x_x402/wire.rb', line 56

PaymentRequirement = Struct.new(
  :scheme,
  :network,
  :chain_id,
  :pay_to_address,
  :amount_wei_usdc,
  :payment_request_id,
  :max_age_seconds,
  keyword_init: true,
)