Class: Privy::Models::OnrampSessionParams

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/privy/models/onramp_session_params.rb,
sig/privy/models/onramp_session_params.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(crypto_customer_id:, destination_currency:, destination_network:, payment_token:, source_amount:, source_currency:, wallet_address:) ⇒ Object

Some parameter documentations has been truncated, see Privy::Models::OnrampSessionParams for more details.

Parameters for creating a Stripe onramp session.

Parameters:

  • crypto_customer_id (String)
  • destination_currency (String)

    Token identifier string. EVM-shaped 40-hex token addresses normalize to checksum

  • destination_network (String)
  • payment_token (String)
  • source_amount (String)
  • source_currency (String)

    ISO 4217 fiat currency code. Three uppercase ASCII letters.

  • wallet_address (String)


# File 'lib/privy/models/onramp_session_params.rb', line 45

Instance Attribute Details

#crypto_customer_idString

Parameters:

  • value (String)

Returns:

  • (String)


9
# File 'lib/privy/models/onramp_session_params.rb', line 9

required :crypto_customer_id, String

#destination_currencyString

Token identifier string. EVM-shaped 40-hex token addresses normalize to checksum case, 16-byte Hyperliquid token IDs normalize to lowercase, and all other identifiers pass through unchanged.

Parameters:

  • value (String)

Returns:

  • (String)


17
# File 'lib/privy/models/onramp_session_params.rb', line 17

required :destination_currency, String

#destination_networkString

Parameters:

  • value (String)

Returns:

  • (String)


22
# File 'lib/privy/models/onramp_session_params.rb', line 22

required :destination_network, String

#payment_tokenString

Parameters:

  • value (String)

Returns:

  • (String)


27
# File 'lib/privy/models/onramp_session_params.rb', line 27

required :payment_token, String

#source_amountString

Parameters:

  • value (String)

Returns:

  • (String)


32
# File 'lib/privy/models/onramp_session_params.rb', line 32

required :source_amount, String

#source_currencyString

ISO 4217 fiat currency code. Three uppercase ASCII letters.

Parameters:

  • value (String)

Returns:

  • (String)


38
# File 'lib/privy/models/onramp_session_params.rb', line 38

required :source_currency, String

#wallet_addressString

Parameters:

  • value (String)

Returns:

  • (String)


43
# File 'lib/privy/models/onramp_session_params.rb', line 43

required :wallet_address, String

Instance Method Details

#to_hash{

Returns:

  • ({)


39
# File 'sig/privy/models/onramp_session_params.rbs', line 39

def to_hash: -> {