You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: x-twitter-scraper-java-core/src/main/kotlin/com/x_twitter_scraper/api/models/credits/CreditTopupBalanceParams.kt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -24,8 +24,8 @@ import java.util.Objects
24
24
importjava.util.Optional
25
25
26
26
/**
27
-
* Create a Stripe Checkout session only after the user confirms. The request never completes
28
-
* payment or adds credits by itself.
27
+
* Create a hosted checkout only after the user confirms. The request never completes payment or
Copy file name to clipboardExpand all lines: x-twitter-scraper-java-core/src/main/kotlin/com/x_twitter_scraper/api/models/credits/CreditTopupBalanceResponse.kt
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -36,16 +36,16 @@ private constructor(
36
36
) :this(redirectUrl, url, mutableMapOf())
37
37
38
38
/**
39
-
* Stable first-party Xquik redirect URL for the active Stripe Checkout session.
39
+
* Stable Xquik redirect URL for the active checkout.
40
40
*
41
41
* @throws XTwitterScraperInvalidDataException if the JSON field has an unexpected type or is
42
42
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
Copy file name to clipboardExpand all lines: x-twitter-scraper-java-core/src/main/kotlin/com/x_twitter_scraper/api/models/guestwallets/GuestWalletCreateParams.kt
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -23,10 +23,8 @@ import java.util.Collections
23
23
importjava.util.Objects
24
24
25
25
/**
26
-
* Create a one-use Stripe-hosted checkout after the user explicitly confirms a $10-$250 USD amount.
27
-
* This request creates no charge by itself. The user opens checkout_url on Stripe. This endpoint
28
-
* returns the paid-read API key without requiring an Xquik account, email, dashboard, or Xquik web
29
-
* page. An idempotent replay returns the same key.
26
+
* Create a one-use hosted checkout after the user confirms $10-$250 USD. The request creates no
27
+
* charge. It returns a paid-read API key without an Xquik account. Replays return the same key.
Copy file name to clipboardExpand all lines: x-twitter-scraper-java-core/src/main/kotlin/com/x_twitter_scraper/api/models/guestwallets/GuestWalletCreateResponse.kt
* JsonValue.from("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.")
178
-
* ```
177
+
* Hosted checkout and status polling instructions.
179
178
*
180
-
* However, this method can be useful for debugging and logging (e.g. if the server responded
181
-
* with an unexpected value).
179
+
* @throws XTwitterScraperInvalidDataException if the JSON field has an unexpected type or is
180
+
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
"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."
* It is usually unnecessary to call this method because the field defaults to the
501
-
* following:
502
-
* ```java
503
-
* JsonValue.from("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.")
504
-
* ```
507
+
* Sets [Builder.instructions] to an arbitrary JSON value.
505
508
*
509
+
* You should usually call [Builder.instructions] with a well-typed [String] value instead.
506
510
* This method is primarily for setting the field to an undocumented or not yet supported
"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."
693
-
)
694
-
) {
695
-
throwXTwitterScraperInvalidDataException("'instructions' is invalid, received $it")
696
-
}
697
-
}
695
+
instructions()
698
696
_pollAfterSeconds().let {
699
697
if (it !=JsonValue.from(2)) {
700
698
throwXTwitterScraperInvalidDataException(
@@ -752,16 +750,7 @@ private constructor(
752
750
} +
753
751
(if (credits.asKnown().isPresent) 1else0) +
754
752
(if (expiresAt.asKnown().isPresent) 1else0) +
755
-
instructions.let {
756
-
if (
757
-
it ==
758
-
JsonValue.from(
759
-
"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."
760
-
)
761
-
)
762
-
1
763
-
else0
764
-
} +
753
+
(if (instructions.asKnown().isPresent) 1else0) +
765
754
pollAfterSeconds.let { if (it ==JsonValue.from(2)) 1else0 } +
766
755
(if (purchaseId.asKnown().isPresent) 1else0) +
767
756
requiresUserInteraction.let { if (it ==JsonValue.from(true)) 1else0 } +
Copy file name to clipboardExpand all lines: x-twitter-scraper-java-core/src/main/kotlin/com/x_twitter_scraper/api/models/guestwallets/GuestWalletRetrieveStatusParams.kt
Copy file name to clipboardExpand all lines: x-twitter-scraper-java-core/src/main/kotlin/com/x_twitter_scraper/api/models/guestwallets/GuestWalletTopupParams.kt
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -23,9 +23,9 @@ import java.util.Collections
23
23
importjava.util.Objects
24
24
25
25
/**
26
-
* Create a one-use Stripe-hosted checkout for an existing paid-read guest key after the user
27
-
* explicitly confirms a $10-$250 USD amount. The key remains the same. This request creates no
28
-
* charge by itself and never redirects through an Xquik web page.
26
+
* Create a one-use hosted checkout after the user confirms a $10-$250 USD amount for an existing
27
+
* paid-read guest key. The key remains the same. This request creates no charge and never redirects
0 commit comments