Package com.stripe
Class StripeClient
java.lang.Object
com.stripe.StripeClient
This is the primary entrypoint to make requests against Stripe's API. It provides a means of
accessing all the methods on the Stripe API, and the ability to set configuration such as apiKey
and connection timeouts.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionStripeClient
(StripeResponseGetter responseGetter) Constructs a StripeClient with a custom StripeResponseGetter.StripeClient
(String apiKey) Constructs a StripeClient with default settings, using the provided API key. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.StripeClient.accountLinks() is deprecated, use StripeClient.v1().accountLinks() instead.Deprecated.StripeClient.accountNotices() is deprecated, use StripeClient.v1().accountNotices() instead.accounts()
Deprecated.StripeClient.accounts() is deprecated, use StripeClient.v1().accounts() instead.Deprecated.StripeClient.accountSessions() is deprecated, use StripeClient.v1().accountSessions() instead.Deprecated.StripeClient.applePayDomains() is deprecated, use StripeClient.v1().applePayDomains() instead.Deprecated.StripeClient.applicationFees() is deprecated, use StripeClient.v1().applicationFees() instead.apps()
Deprecated.StripeClient.apps() is deprecated, use StripeClient.v1().apps() instead.balance()
Deprecated.StripeClient.balance() is deprecated, use StripeClient.v1().balance() instead.Deprecated.StripeClient.balanceSettings() is deprecated, use StripeClient.v1().balanceSettings() instead.Deprecated.StripeClient.balanceTransactions() is deprecated, use StripeClient.v1().balanceTransactions() instead.billing()
Deprecated.StripeClient.billing() is deprecated, use StripeClient.v1().billing() instead.Deprecated.StripeClient.billingPortal() is deprecated, use StripeClient.v1().billingPortal() instead.builder()
Builder class for creating aStripeClient
instance.capital()
Deprecated.StripeClient.capital() is deprecated, use StripeClient.v1().capital() instead.charges()
Deprecated.StripeClient.charges() is deprecated, use StripeClient.v1().charges() instead.checkout()
Deprecated.StripeClient.checkout() is deprecated, use StripeClient.v1().checkout() instead.climate()
Deprecated.StripeClient.climate() is deprecated, use StripeClient.v1().climate() instead.Deprecated.StripeClient.confirmationTokens() is deprecated, use StripeClient.v1().confirmationTokens() instead.constructEvent
(String payload, String sigHeader, String secret) Returns an Event instance using the provided JSON payload.constructEvent
(String payload, String sigHeader, String secret, long tolerance) Returns an Event instance using the provided JSON payload.Deprecated.StripeClient.countrySpecs() is deprecated, use StripeClient.v1().countrySpecs() instead.coupons()
Deprecated.StripeClient.coupons() is deprecated, use StripeClient.v1().coupons() instead.Deprecated.StripeClient.creditNotes() is deprecated, use StripeClient.v1().creditNotes() instead.Deprecated.StripeClient.customers() is deprecated, use StripeClient.v1().customers() instead.Deprecated.StripeClient.customerSessions() is deprecated, use StripeClient.v1().customerSessions() instead.Deprecated.StripeClient.delegatedCheckout() is deprecated, use StripeClient.v1().delegatedCheckout() instead.deserialize
(String rawJson, ApiMode apiMode) Deserializes StripeResponse returned by rawRequest into a similar class.disputes()
Deprecated.StripeClient.disputes() is deprecated, use StripeClient.v1().disputes() instead.Deprecated.StripeClient.entitlements() is deprecated, use StripeClient.v1().entitlements() instead.Deprecated.StripeClient.ephemeralKeys() is deprecated, use StripeClient.v1().ephemeralKeys() instead.events()
Deprecated.StripeClient.events() is deprecated, use StripeClient.v1().events() instead.Deprecated.StripeClient.exchangeRates() is deprecated, use StripeClient.v1().exchangeRates() instead.Deprecated.StripeClient.externalAccounts() is deprecated, use StripeClient.v1().externalAccounts() instead.Deprecated.StripeClient.fileLinks() is deprecated, use StripeClient.v1().fileLinks() instead.files()
Deprecated.StripeClient.files() is deprecated, use StripeClient.v1().files() instead.Deprecated.StripeClient.financialConnections() is deprecated, use StripeClient.v1().financialConnections() instead.Deprecated.StripeClient.forwarding() is deprecated, use StripeClient.v1().forwarding() instead.fxQuotes()
Deprecated.StripeClient.fxQuotes() is deprecated, use StripeClient.v1().fxQuotes() instead.protected StripeResponseGetter
identity()
Deprecated.StripeClient.identity() is deprecated, use StripeClient.v1().identity() instead.Deprecated.StripeClient.invoiceItems() is deprecated, use StripeClient.v1().invoiceItems() instead.Deprecated.StripeClient.invoicePayments() is deprecated, use StripeClient.v1().invoicePayments() instead.Deprecated.StripeClient.invoiceRenderingTemplates() is deprecated, use StripeClient.v1().invoiceRenderingTemplates() instead.invoices()
Deprecated.StripeClient.invoices() is deprecated, use StripeClient.v1().invoices() instead.issuing()
Deprecated.StripeClient.issuing() is deprecated, use StripeClient.v1().issuing() instead.mandates()
Deprecated.StripeClient.mandates() is deprecated, use StripeClient.v1().mandates() instead.margins()
Deprecated.StripeClient.margins() is deprecated, use StripeClient.v1().margins() instead.orders()
Deprecated.StripeClient.orders() is deprecated, use StripeClient.v1().orders() instead.parseEventNotification
(String payload, String sigHeader, String secret) Returns an StripeEvent instance using the provided JSON payload.parseEventNotification
(String payload, String sigHeader, String secret, long tolerance) Returns an StripeEvent instance using the provided JSON payload.Deprecated.StripeClient.paymentAttemptRecords() is deprecated, use StripeClient.v1().paymentAttemptRecords() instead.Deprecated.StripeClient.paymentIntents() is deprecated, use StripeClient.v1().paymentIntents() instead.Deprecated.StripeClient.paymentLinks() is deprecated, use StripeClient.v1().paymentLinks() instead.Deprecated.StripeClient.paymentMethodConfigurations() is deprecated, use StripeClient.v1().paymentMethodConfigurations() instead.Deprecated.StripeClient.paymentMethodDomains() is deprecated, use StripeClient.v1().paymentMethodDomains() instead.Deprecated.StripeClient.paymentMethods() is deprecated, use StripeClient.v1().paymentMethods() instead.Deprecated.StripeClient.paymentRecords() is deprecated, use StripeClient.v1().paymentRecords() instead.payouts()
Deprecated.StripeClient.payouts() is deprecated, use StripeClient.v1().payouts() instead.plans()
Deprecated.StripeClient.plans() is deprecated, use StripeClient.v1().plans() instead.prices()
Deprecated.StripeClient.prices() is deprecated, use StripeClient.v1().prices() instead.privacy()
Deprecated.StripeClient.privacy() is deprecated, use StripeClient.v1().privacy() instead.products()
Deprecated.StripeClient.products() is deprecated, use StripeClient.v1().products() instead.Deprecated.StripeClient.promotionCodes() is deprecated, use StripeClient.v1().promotionCodes() instead.quotes()
Deprecated.StripeClient.quotes() is deprecated, use StripeClient.v1().quotes() instead.radar()
Deprecated.StripeClient.radar() is deprecated, use StripeClient.v1().radar() instead.rawRequest
(ApiResource.RequestMethod method, String relativeUrl, String content) Send raw request to Stripe API.rawRequest
(ApiResource.RequestMethod method, String relativeUrl, String content, RawRequestOptions options) Send raw request to Stripe API.refunds()
Deprecated.StripeClient.refunds() is deprecated, use StripeClient.v1().refunds() instead.Deprecated.StripeClient.reporting() is deprecated, use StripeClient.v1().reporting() instead.reviews()
Deprecated.StripeClient.reviews() is deprecated, use StripeClient.v1().reviews() instead.Deprecated.StripeClient.setupAttempts() is deprecated, use StripeClient.v1().setupAttempts() instead.Deprecated.StripeClient.setupIntents() is deprecated, use StripeClient.v1().setupIntents() instead.Deprecated.StripeClient.shippingRates() is deprecated, use StripeClient.v1().shippingRates() instead.sigma()
Deprecated.StripeClient.sigma() is deprecated, use StripeClient.v1().sigma() instead.sources()
Deprecated.StripeClient.sources() is deprecated, use StripeClient.v1().sources() instead.Deprecated.StripeClient.subscriptionItems() is deprecated, use StripeClient.v1().subscriptionItems() instead.Deprecated.StripeClient.subscriptions() is deprecated, use StripeClient.v1().subscriptions() instead.Deprecated.StripeClient.subscriptionSchedules() is deprecated, use StripeClient.v1().subscriptionSchedules() instead.tax()
Deprecated.StripeClient.tax() is deprecated, use StripeClient.v1().tax() instead.taxCodes()
Deprecated.StripeClient.taxCodes() is deprecated, use StripeClient.v1().taxCodes() instead.taxIds()
Deprecated.StripeClient.taxIds() is deprecated, use StripeClient.v1().taxIds() instead.taxRates()
Deprecated.StripeClient.taxRates() is deprecated, use StripeClient.v1().taxRates() instead.terminal()
Deprecated.StripeClient.terminal() is deprecated, use StripeClient.v1().terminal() instead.Deprecated.StripeClient.testHelpers() is deprecated, use StripeClient.v1().testHelpers() instead.tokens()
Deprecated.StripeClient.tokens() is deprecated, use StripeClient.v1().tokens() instead.topups()
Deprecated.StripeClient.topups() is deprecated, use StripeClient.v1().topups() instead.Deprecated.StripeClient.transfers() is deprecated, use StripeClient.v1().transfers() instead.treasury()
Deprecated.StripeClient.treasury() is deprecated, use StripeClient.v1().treasury() instead.v1()
v2()
Deprecated.StripeClient.webhookEndpoints() is deprecated, use StripeClient.v1().webhookEndpoints() instead.
-
Constructor Details
-
StripeClient
Constructs a StripeClient with default settings, using the provided API key. Use the builder instead if you require more complex configuration. -
StripeClient
Constructs a StripeClient with a custom StripeResponseGetter.Use this for testing, or advanced use cases where you need to make fundamental changes to how the StripeClient makes requests.
-
-
Method Details
-
getResponseGetter
-
parseEventNotification
public EventNotification parseEventNotification(String payload, String sigHeader, String secret) throws SignatureVerificationException Returns an StripeEvent instance using the provided JSON payload. Throws a JsonSyntaxException if the payload is not valid JSON, and a SignatureVerificationException if the signature verification fails for any reason.- Parameters:
payload
- the payload sent by Stripe.sigHeader
- the contents of the signature header sent by Stripe.secret
- secret used to generate the signature.- Returns:
- the StripeEvent instance
- Throws:
SignatureVerificationException
- if the verification fails.
-
parseEventNotification
public EventNotification parseEventNotification(String payload, String sigHeader, String secret, long tolerance) throws SignatureVerificationException Returns an StripeEvent instance using the provided JSON payload. Throws a JsonSyntaxException if the payload is not valid JSON, and a SignatureVerificationException if the signature verification fails for any reason.- Parameters:
payload
- the payload sent by Stripe.sigHeader
- the contents of the signature header sent by Stripe.secret
- secret used to generate the signature.tolerance
- number of seconds that the event's timestamp can differ from the system time. Passing `0` will disable the time check entirely and is **strongly discouraged**.- Returns:
- the StripeEvent instance
- Throws:
SignatureVerificationException
- if the verification fails.
-
constructEvent
public Event constructEvent(String payload, String sigHeader, String secret) throws SignatureVerificationException Returns an Event instance using the provided JSON payload. Throws a JsonSyntaxException if the payload is not valid JSON, and a SignatureVerificationException if the signature verification fails for any reason.- Parameters:
payload
- the payload sent by Stripe.sigHeader
- the contents of the signature header sent by Stripe.secret
- secret used to generate the signature.- Returns:
- the Event instance
- Throws:
SignatureVerificationException
- if the verification fails.
-
constructEvent
public Event constructEvent(String payload, String sigHeader, String secret, long tolerance) throws SignatureVerificationException Returns an Event instance using the provided JSON payload. Throws a JsonSyntaxException if the payload is not valid JSON, and a SignatureVerificationException if the signature verification fails for any reason.- Parameters:
payload
- the payload sent by Stripe.sigHeader
- the contents of the signature header sent by Stripe.secret
- secret used to generate the signature.tolerance
- maximum difference in seconds allowed between the header's timestamp and the current time- Returns:
- the Event instance
- Throws:
SignatureVerificationException
- if the verification fails.
-
v1
-
v2
-
accountLinks
Deprecated.StripeClient.accountLinks() is deprecated, use StripeClient.v1().accountLinks() instead. All functionality under it has been copied over to StripeClient.v1().accountLinks(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
accountNotices
Deprecated.StripeClient.accountNotices() is deprecated, use StripeClient.v1().accountNotices() instead. All functionality under it has been copied over to StripeClient.v1().accountNotices(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
accountSessions
Deprecated.StripeClient.accountSessions() is deprecated, use StripeClient.v1().accountSessions() instead. All functionality under it has been copied over to StripeClient.v1().accountSessions(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
accounts
Deprecated.StripeClient.accounts() is deprecated, use StripeClient.v1().accounts() instead. All functionality under it has been copied over to StripeClient.v1().accounts(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
applePayDomains
Deprecated.StripeClient.applePayDomains() is deprecated, use StripeClient.v1().applePayDomains() instead. All functionality under it has been copied over to StripeClient.v1().applePayDomains(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
applicationFees
Deprecated.StripeClient.applicationFees() is deprecated, use StripeClient.v1().applicationFees() instead. All functionality under it has been copied over to StripeClient.v1().applicationFees(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
apps
Deprecated.StripeClient.apps() is deprecated, use StripeClient.v1().apps() instead. All functionality under it has been copied over to StripeClient.v1().apps(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
balance
Deprecated.StripeClient.balance() is deprecated, use StripeClient.v1().balance() instead. All functionality under it has been copied over to StripeClient.v1().balance(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
balanceSettings
Deprecated.StripeClient.balanceSettings() is deprecated, use StripeClient.v1().balanceSettings() instead. All functionality under it has been copied over to StripeClient.v1().balanceSettings(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
balanceTransactions
Deprecated.StripeClient.balanceTransactions() is deprecated, use StripeClient.v1().balanceTransactions() instead. All functionality under it has been copied over to StripeClient.v1().balanceTransactions(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
billing
Deprecated.StripeClient.billing() is deprecated, use StripeClient.v1().billing() instead. All functionality under it has been copied over to StripeClient.v1().billing(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
billingPortal
Deprecated.StripeClient.billingPortal() is deprecated, use StripeClient.v1().billingPortal() instead. All functionality under it has been copied over to StripeClient.v1().billingPortal(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
capital
Deprecated.StripeClient.capital() is deprecated, use StripeClient.v1().capital() instead. All functionality under it has been copied over to StripeClient.v1().capital(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
charges
Deprecated.StripeClient.charges() is deprecated, use StripeClient.v1().charges() instead. All functionality under it has been copied over to StripeClient.v1().charges(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
checkout
Deprecated.StripeClient.checkout() is deprecated, use StripeClient.v1().checkout() instead. All functionality under it has been copied over to StripeClient.v1().checkout(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
climate
Deprecated.StripeClient.climate() is deprecated, use StripeClient.v1().climate() instead. All functionality under it has been copied over to StripeClient.v1().climate(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
confirmationTokens
Deprecated.StripeClient.confirmationTokens() is deprecated, use StripeClient.v1().confirmationTokens() instead. All functionality under it has been copied over to StripeClient.v1().confirmationTokens(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
countrySpecs
Deprecated.StripeClient.countrySpecs() is deprecated, use StripeClient.v1().countrySpecs() instead. All functionality under it has been copied over to StripeClient.v1().countrySpecs(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
coupons
Deprecated.StripeClient.coupons() is deprecated, use StripeClient.v1().coupons() instead. All functionality under it has been copied over to StripeClient.v1().coupons(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
creditNotes
Deprecated.StripeClient.creditNotes() is deprecated, use StripeClient.v1().creditNotes() instead. All functionality under it has been copied over to StripeClient.v1().creditNotes(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
customerSessions
Deprecated.StripeClient.customerSessions() is deprecated, use StripeClient.v1().customerSessions() instead. All functionality under it has been copied over to StripeClient.v1().customerSessions(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
customers
Deprecated.StripeClient.customers() is deprecated, use StripeClient.v1().customers() instead. All functionality under it has been copied over to StripeClient.v1().customers(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
delegatedCheckout
Deprecated.StripeClient.delegatedCheckout() is deprecated, use StripeClient.v1().delegatedCheckout() instead. All functionality under it has been copied over to StripeClient.v1().delegatedCheckout(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
disputes
Deprecated.StripeClient.disputes() is deprecated, use StripeClient.v1().disputes() instead. All functionality under it has been copied over to StripeClient.v1().disputes(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
entitlements
Deprecated.StripeClient.entitlements() is deprecated, use StripeClient.v1().entitlements() instead. All functionality under it has been copied over to StripeClient.v1().entitlements(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
ephemeralKeys
Deprecated.StripeClient.ephemeralKeys() is deprecated, use StripeClient.v1().ephemeralKeys() instead. All functionality under it has been copied over to StripeClient.v1().ephemeralKeys(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
events
Deprecated.StripeClient.events() is deprecated, use StripeClient.v1().events() instead. All functionality under it has been copied over to StripeClient.v1().events(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
exchangeRates
Deprecated.StripeClient.exchangeRates() is deprecated, use StripeClient.v1().exchangeRates() instead. All functionality under it has been copied over to StripeClient.v1().exchangeRates(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
externalAccounts
Deprecated.StripeClient.externalAccounts() is deprecated, use StripeClient.v1().externalAccounts() instead. All functionality under it has been copied over to StripeClient.v1().externalAccounts(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
fileLinks
Deprecated.StripeClient.fileLinks() is deprecated, use StripeClient.v1().fileLinks() instead. All functionality under it has been copied over to StripeClient.v1().fileLinks(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
files
Deprecated.StripeClient.files() is deprecated, use StripeClient.v1().files() instead. All functionality under it has been copied over to StripeClient.v1().files(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
financialConnections
Deprecated.StripeClient.financialConnections() is deprecated, use StripeClient.v1().financialConnections() instead. All functionality under it has been copied over to StripeClient.v1().financialConnections(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
forwarding
Deprecated.StripeClient.forwarding() is deprecated, use StripeClient.v1().forwarding() instead. All functionality under it has been copied over to StripeClient.v1().forwarding(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
fxQuotes
Deprecated.StripeClient.fxQuotes() is deprecated, use StripeClient.v1().fxQuotes() instead. All functionality under it has been copied over to StripeClient.v1().fxQuotes(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
identity
Deprecated.StripeClient.identity() is deprecated, use StripeClient.v1().identity() instead. All functionality under it has been copied over to StripeClient.v1().identity(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
invoiceItems
Deprecated.StripeClient.invoiceItems() is deprecated, use StripeClient.v1().invoiceItems() instead. All functionality under it has been copied over to StripeClient.v1().invoiceItems(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
invoicePayments
Deprecated.StripeClient.invoicePayments() is deprecated, use StripeClient.v1().invoicePayments() instead. All functionality under it has been copied over to StripeClient.v1().invoicePayments(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
invoiceRenderingTemplates
Deprecated.StripeClient.invoiceRenderingTemplates() is deprecated, use StripeClient.v1().invoiceRenderingTemplates() instead. All functionality under it has been copied over to StripeClient.v1().invoiceRenderingTemplates(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
invoices
Deprecated.StripeClient.invoices() is deprecated, use StripeClient.v1().invoices() instead. All functionality under it has been copied over to StripeClient.v1().invoices(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
issuing
Deprecated.StripeClient.issuing() is deprecated, use StripeClient.v1().issuing() instead. All functionality under it has been copied over to StripeClient.v1().issuing(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
mandates
Deprecated.StripeClient.mandates() is deprecated, use StripeClient.v1().mandates() instead. All functionality under it has been copied over to StripeClient.v1().mandates(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
margins
Deprecated.StripeClient.margins() is deprecated, use StripeClient.v1().margins() instead. All functionality under it has been copied over to StripeClient.v1().margins(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
orders
Deprecated.StripeClient.orders() is deprecated, use StripeClient.v1().orders() instead. All functionality under it has been copied over to StripeClient.v1().orders(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
paymentAttemptRecords
Deprecated.StripeClient.paymentAttemptRecords() is deprecated, use StripeClient.v1().paymentAttemptRecords() instead. All functionality under it has been copied over to StripeClient.v1().paymentAttemptRecords(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
paymentIntents
Deprecated.StripeClient.paymentIntents() is deprecated, use StripeClient.v1().paymentIntents() instead. All functionality under it has been copied over to StripeClient.v1().paymentIntents(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
paymentLinks
Deprecated.StripeClient.paymentLinks() is deprecated, use StripeClient.v1().paymentLinks() instead. All functionality under it has been copied over to StripeClient.v1().paymentLinks(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
paymentMethodConfigurations
Deprecated.StripeClient.paymentMethodConfigurations() is deprecated, use StripeClient.v1().paymentMethodConfigurations() instead. All functionality under it has been copied over to StripeClient.v1().paymentMethodConfigurations(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
paymentMethodDomains
Deprecated.StripeClient.paymentMethodDomains() is deprecated, use StripeClient.v1().paymentMethodDomains() instead. All functionality under it has been copied over to StripeClient.v1().paymentMethodDomains(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
paymentMethods
Deprecated.StripeClient.paymentMethods() is deprecated, use StripeClient.v1().paymentMethods() instead. All functionality under it has been copied over to StripeClient.v1().paymentMethods(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
paymentRecords
Deprecated.StripeClient.paymentRecords() is deprecated, use StripeClient.v1().paymentRecords() instead. All functionality under it has been copied over to StripeClient.v1().paymentRecords(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
payouts
Deprecated.StripeClient.payouts() is deprecated, use StripeClient.v1().payouts() instead. All functionality under it has been copied over to StripeClient.v1().payouts(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
plans
Deprecated.StripeClient.plans() is deprecated, use StripeClient.v1().plans() instead. All functionality under it has been copied over to StripeClient.v1().plans(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
prices
Deprecated.StripeClient.prices() is deprecated, use StripeClient.v1().prices() instead. All functionality under it has been copied over to StripeClient.v1().prices(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
privacy
Deprecated.StripeClient.privacy() is deprecated, use StripeClient.v1().privacy() instead. All functionality under it has been copied over to StripeClient.v1().privacy(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
products
Deprecated.StripeClient.products() is deprecated, use StripeClient.v1().products() instead. All functionality under it has been copied over to StripeClient.v1().products(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
promotionCodes
Deprecated.StripeClient.promotionCodes() is deprecated, use StripeClient.v1().promotionCodes() instead. All functionality under it has been copied over to StripeClient.v1().promotionCodes(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
quotes
Deprecated.StripeClient.quotes() is deprecated, use StripeClient.v1().quotes() instead. All functionality under it has been copied over to StripeClient.v1().quotes(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
radar
Deprecated.StripeClient.radar() is deprecated, use StripeClient.v1().radar() instead. All functionality under it has been copied over to StripeClient.v1().radar(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
refunds
Deprecated.StripeClient.refunds() is deprecated, use StripeClient.v1().refunds() instead. All functionality under it has been copied over to StripeClient.v1().refunds(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
reporting
Deprecated.StripeClient.reporting() is deprecated, use StripeClient.v1().reporting() instead. All functionality under it has been copied over to StripeClient.v1().reporting(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
reviews
Deprecated.StripeClient.reviews() is deprecated, use StripeClient.v1().reviews() instead. All functionality under it has been copied over to StripeClient.v1().reviews(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
setupAttempts
Deprecated.StripeClient.setupAttempts() is deprecated, use StripeClient.v1().setupAttempts() instead. All functionality under it has been copied over to StripeClient.v1().setupAttempts(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
setupIntents
Deprecated.StripeClient.setupIntents() is deprecated, use StripeClient.v1().setupIntents() instead. All functionality under it has been copied over to StripeClient.v1().setupIntents(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
shippingRates
Deprecated.StripeClient.shippingRates() is deprecated, use StripeClient.v1().shippingRates() instead. All functionality under it has been copied over to StripeClient.v1().shippingRates(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
sigma
Deprecated.StripeClient.sigma() is deprecated, use StripeClient.v1().sigma() instead. All functionality under it has been copied over to StripeClient.v1().sigma(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
sources
Deprecated.StripeClient.sources() is deprecated, use StripeClient.v1().sources() instead. All functionality under it has been copied over to StripeClient.v1().sources(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
subscriptionItems
Deprecated.StripeClient.subscriptionItems() is deprecated, use StripeClient.v1().subscriptionItems() instead. All functionality under it has been copied over to StripeClient.v1().subscriptionItems(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
subscriptionSchedules
Deprecated.StripeClient.subscriptionSchedules() is deprecated, use StripeClient.v1().subscriptionSchedules() instead. All functionality under it has been copied over to StripeClient.v1().subscriptionSchedules(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
subscriptions
Deprecated.StripeClient.subscriptions() is deprecated, use StripeClient.v1().subscriptions() instead. All functionality under it has been copied over to StripeClient.v1().subscriptions(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
tax
Deprecated.StripeClient.tax() is deprecated, use StripeClient.v1().tax() instead. All functionality under it has been copied over to StripeClient.v1().tax(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
taxCodes
Deprecated.StripeClient.taxCodes() is deprecated, use StripeClient.v1().taxCodes() instead. All functionality under it has been copied over to StripeClient.v1().taxCodes(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
taxIds
Deprecated.StripeClient.taxIds() is deprecated, use StripeClient.v1().taxIds() instead. All functionality under it has been copied over to StripeClient.v1().taxIds(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
taxRates
Deprecated.StripeClient.taxRates() is deprecated, use StripeClient.v1().taxRates() instead. All functionality under it has been copied over to StripeClient.v1().taxRates(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
terminal
Deprecated.StripeClient.terminal() is deprecated, use StripeClient.v1().terminal() instead. All functionality under it has been copied over to StripeClient.v1().terminal(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
testHelpers
Deprecated.StripeClient.testHelpers() is deprecated, use StripeClient.v1().testHelpers() instead. All functionality under it has been copied over to StripeClient.v1().testHelpers(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
tokens
Deprecated.StripeClient.tokens() is deprecated, use StripeClient.v1().tokens() instead. All functionality under it has been copied over to StripeClient.v1().tokens(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
topups
Deprecated.StripeClient.topups() is deprecated, use StripeClient.v1().topups() instead. All functionality under it has been copied over to StripeClient.v1().topups(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
transfers
Deprecated.StripeClient.transfers() is deprecated, use StripeClient.v1().transfers() instead. All functionality under it has been copied over to StripeClient.v1().transfers(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
treasury
Deprecated.StripeClient.treasury() is deprecated, use StripeClient.v1().treasury() instead. All functionality under it has been copied over to StripeClient.v1().treasury(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
webhookEndpoints
Deprecated.StripeClient.webhookEndpoints() is deprecated, use StripeClient.v1().webhookEndpoints() instead. All functionality under it has been copied over to StripeClient.v1().webhookEndpoints(). See migration guide for more on this and tips on migrating to the new v1 namespace. -
builder
Builder class for creating aStripeClient
instance. Allows you to specify settings like the API key, connect and read timeouts, and proxy settings. -
rawRequest
public StripeResponse rawRequest(ApiResource.RequestMethod method, String relativeUrl, String content) throws StripeException Send raw request to Stripe API. This is the lowest level method for interacting with the Stripe API. This method is useful for interacting with endpoints that are not covered yet in stripe-java.- Parameters:
method
- the HTTP methodrelativeUrl
- the relative URL of the request, e.g. "/v1/charges"content
- the body of the request as a string- Returns:
- the JSON response as a string
- Throws:
StripeException
-
rawRequest
public StripeResponse rawRequest(ApiResource.RequestMethod method, String relativeUrl, String content, RawRequestOptions options) throws StripeException Send raw request to Stripe API. This is the lowest level method for interacting with the Stripe API. This method is useful for interacting with endpoints that are not covered yet in stripe-java.- Parameters:
method
- the HTTP methodrelativeUrl
- the relative URL of the request, e.g. "/v1/charges"content
- the body of the request as a stringoptions
- the special modifiers of the request- Returns:
- the JSON response as a string
- Throws:
StripeException
-
deserialize
Deserializes StripeResponse returned by rawRequest into a similar class.- Throws:
StripeException
-