Class: XTwitterScraper::Models::GuestWalletCreateResponse
- Inherits:
-
Internal::Type::BaseModel
show all
- Defined in:
- lib/x_twitter_scraper/models/guest_wallet_create_response.rb,
sig/x_twitter_scraper/models/guest_wallet_create_response.rbs
Overview
Defined Under Namespace
Modules: Status
Classes: Authorization
Instance Attribute Summary collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(header: :Authorization, scheme: :Bearer) ⇒ Object
|
# File 'lib/x_twitter_scraper/models/guest_wallet_create_response.rb', line 91
|
Instance Attribute Details
#account_required ⇒ Boolean, false
10
|
# File 'lib/x_twitter_scraper/models/guest_wallet_create_response.rb', line 10
required :account_required, const: false
|
Confirmed USD amount for a guest wallet purchase.
16
|
# File 'lib/x_twitter_scraper/models/guest_wallet_create_response.rb', line 16
required :amount, -> { XTwitterScraper::GuestWalletAmount }
|
#api_key ⇒ String
Paid-read bearer credential returned only by initial creation. Store it as a
secret. Never place it in a URL or log.
23
|
# File 'lib/x_twitter_scraper/models/guest_wallet_create_response.rb', line 23
required :api_key, String
|
28
|
# File 'lib/x_twitter_scraper/models/guest_wallet_create_response.rb', line 28
required :authorization, -> { XTwitterScraper::Models::GuestWalletCreateResponse::Authorization }
|
#checkout_url ⇒ String
Raw Stripe-hosted checkout URL for user interaction.
34
|
# File 'lib/x_twitter_scraper/models/guest_wallet_create_response.rb', line 34
required :checkout_url, String
|
#credential_notice ⇒ Symbol, :"Store api_key and the Idempotency-Key securely before sharing checkout_url. No email recovery is available."
39
40
|
# File 'lib/x_twitter_scraper/models/guest_wallet_create_response.rb', line 39
required :credential_notice,
const: :"Store api_key and the Idempotency-Key securely before sharing checkout_url. No email recovery is available."
|
#credits ⇒ String
Credits granted after verified payment.
46
|
# File 'lib/x_twitter_scraper/models/guest_wallet_create_response.rb', line 46
required :credits, String
|
#expires_at ⇒ Time
Time when the pending checkout expires.
52
|
# File 'lib/x_twitter_scraper/models/guest_wallet_create_response.rb', line 52
required :expires_at, Time
|
#instructions ⇒ Symbol, :"Give checkout_url to the user. They must complete payment on Stripe. Never submit payment for them. After payment, poll status_url every poll_after_seconds until latest_purchase.status is no longer pending."
57
58
|
# File 'lib/x_twitter_scraper/models/guest_wallet_create_response.rb', line 57
required :instructions,
const: :"Give checkout_url to the user. They must complete payment on Stripe. Never submit payment for them. After payment, poll status_url every poll_after_seconds until latest_purchase.status is no longer pending."
|
#poll_after_seconds ⇒ Integer, 2
Wait at least this long before polling status_url.
64
|
# File 'lib/x_twitter_scraper/models/guest_wallet_create_response.rb', line 64
required :poll_after_seconds, const: 2
|
#purchase_id ⇒ String
69
|
# File 'lib/x_twitter_scraper/models/guest_wallet_create_response.rb', line 69
required :purchase_id, String
|
#requires_user_interaction ⇒ Boolean, true
74
|
# File 'lib/x_twitter_scraper/models/guest_wallet_create_response.rb', line 74
required :requires_user_interaction, const: true
|
79
|
# File 'lib/x_twitter_scraper/models/guest_wallet_create_response.rb', line 79
required :status, enum: -> { XTwitterScraper::Models::GuestWalletCreateResponse::Status }
|
#status_url ⇒ Symbol, :"https://xquik.com/api/v1/guest-wallets/status"
84
|
# File 'lib/x_twitter_scraper/models/guest_wallet_create_response.rb', line 84
required :status_url, const: :"https://xquik.com/api/v1/guest-wallets/status"
|
#wallet_id ⇒ String
89
|
# File 'lib/x_twitter_scraper/models/guest_wallet_create_response.rb', line 89
required :wallet_id, String
|
Instance Method Details
#to_hash ⇒ {
71
|
# File 'sig/x_twitter_scraper/models/guest_wallet_create_response.rbs', line 71
def to_hash: -> {
|