Class: Privy::Models::MoonpayFiatOnRampEthereumConfig

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/privy/models/moonpay_fiat_on_ramp_ethereum_config.rb

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(currency_code: nil, email: nil, payment_method: nil, quote_currency_amount: nil, ui_config: nil) ⇒ Object

Configuration for a Moonpay fiat on-ramp for an Ethereum-compatible chain.

Parameters:



# File 'lib/privy/models/moonpay_fiat_on_ramp_ethereum_config.rb', line 34

Instance Attribute Details

#currency_codeSymbol, ...

A Moonpay currency code for an Ethereum-compatible chain asset.

Returns:



10
# File 'lib/privy/models/moonpay_fiat_on_ramp_ethereum_config.rb', line 10

optional :currency_code, enum: -> { Privy::MoonpayCurrencyCode }, api_name: :currencyCode

#emailString?

Returns:

  • (String, nil)


15
# File 'lib/privy/models/moonpay_fiat_on_ramp_ethereum_config.rb', line 15

optional :email, String

#payment_methodSymbol, ...

A payment method supported by Moonpay on-ramp.

Returns:



21
# File 'lib/privy/models/moonpay_fiat_on_ramp_ethereum_config.rb', line 21

optional :payment_method, enum: -> { Privy::MoonpayPaymentMethod }, api_name: :paymentMethod

#quote_currency_amountFloat?

Returns:

  • (Float, nil)


26
# File 'lib/privy/models/moonpay_fiat_on_ramp_ethereum_config.rb', line 26

optional :quote_currency_amount, Float, api_name: :quoteCurrencyAmount

#ui_configPrivy::Models::MoonpayUiConfig?

UI configuration for the Moonpay on-ramp widget.



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

optional :ui_config, -> { Privy::MoonpayUiConfig }, api_name: :uiConfig