Class: XTwitterScraper::Models::GuestWalletRetrieveStatusResponse::TopUp

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

Overview

See Also:

  • XTwitterScraper::Models::GuestWalletRetrieveStatusResponse#top_up

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(method_: :POST, path: :"/api/v1/guest-wallets/topups") ⇒ Object

Top-up action when usable and no checkout is pending.

Parameters:

  • method_ (Symbol, :POST) (defaults to: :POST)
  • path (Symbol, :"/api/v1/guest-wallets/topups") (defaults to: :"/api/v1/guest-wallets/topups")


# File 'lib/x_twitter_scraper/models/guest_wallet_retrieve_status_response.rb', line 188

Instance Attribute Details

#method_Symbol, :POST

Parameters:

  • value (:POST)

Returns:

  • (Symbol, :POST)


181
# File 'lib/x_twitter_scraper/models/guest_wallet_retrieve_status_response.rb', line 181

required :method_, const: :POST, api_name: :method

#pathSymbol, :"/api/v1/guest-wallets/topups"

Parameters:

  • value (:"/api/v1/guest-wallets/topups")

Returns:

  • (Symbol, :"/api/v1/guest-wallets/topups")


186
# File 'lib/x_twitter_scraper/models/guest_wallet_retrieve_status_response.rb', line 186

required :path, const: :"/api/v1/guest-wallets/topups"

Instance Method Details

#to_hash{

Returns:

  • ({)


156
# File 'sig/x_twitter_scraper/models/guest_wallet_retrieve_status_response.rbs', line 156

def to_hash: -> {