- #681 Add support for
status_transitionsand markeddateas deprecated onInvoice.
- #660 Add support for API version
2019-02-19and related changes toAccountandPerson.
- #678 Add
StripeException.getStripeError()andOAuthException.getOauthError()accessors
- #648 Add support for
transfer_data[destination]onInvoiceandSubscription.
- #670 Add support for API version
2019-02-11with changes to Payment IntentsPaymentIntentSourceAction,PaymentIntentSourceActionValueAuthorizeWithUrlandnext_source_actionare now depreacated. UsePaymentIntent.NextAction,PaymentIntent.NextActionRedirectToUrlandnext_actioninstead.allowed_source_typesis now depreacated. Usepayment_method_typesinstead.
- #673 Add support for
SubscriptionScheduleandSubscriptionScheduleRevision. Also add support forinvoice_settingsonCustomer. - #675 The
customerproperty is now expandable onInvoice. - #677 Add support for
transfer_data[amount]onCharge.
- #661 Add configurable telemetry to gather information on client-side request latency
- #649 Add support for
destination_payment_refundandsource_refundon theReversalresource.
- #656 Added
receipt_urlproperty toCharge.
- #652 Add support for expandable
transfer_data[destination]onChargeandPaymentIntent.
- #632 Add support for
transfer_dataandapplication_fee_amountonChargeandtransfer_data[destination] onPaymentIntent`. - #647 Add support for deserializing
IssuerFraudRecordin events.
- #626 Add support for the
AccountLinkAPIs.
- #634 Add support for
wallet_provideronIssuing.Authorization.
- #629 Add support for
actionableandhas_liability_shiftonIssuerFraudRecord
- #614 Add support for
ValueListandValueListItemfor Radar
- #616 Add missing properties to a few resources:
- Add
default_sourcetoInvoiceandSubscription - Add
livemodeto Subscription - Add
metadataandsubscriptiontoSubscriptionItem
- Add
- #615 Add
last_payment_errortoPaymentIntent.
- #613 Throw
ApiExceptionon malformed JSON responses- Previously, the library would throw
com.google.gson.JsonSyntaxExceptionin this case. We've chosen to release this as a minor update because we assume that most users are already catching Stripe exceptions.
- Previously, the library would throw
- #604 Add new API endpoints for the
Invoiceresource.
- #609 Support new shape of the
PaymentIntentresource.
- #610 Add
flatAmounttoPlan.Tier - #611 Add
supportedTransferCountriestoCountrySpec - #611 Add
supportAddresstoAccount
- #602 Adds support for
partnerIdinsetAppInfo()
Major version release. Refer to our migration guide for v7 for a list of backwards incompatible changes to watch out for.
Pull requests included in this release:
- #598 Compatibility with latest API version
- #593 Replace
FileUploadclass withFileclass - #592 Support for terminal endpoints
- #586 Add
invoicePrefixtoCustomer
- #584 Add support for reporting resources
- #583 Add
exchangeRatetoBalanceTransaction
- #580 Add missing attributes to
AccountandLegalEntity - #581 Add
Topup.cancel()overload with no arguments
- #577 Update
CustomerandPlanmodels for API version 2018-08-23 - #579 Add
authorizationCodetoCharge
- #575 Remove support for
BitcoinReceiverwrite-actions
- #576 Add support for usage record summaries
- #574 Add
unitLabeltoProduct
- #572 Serialize all arrays/lists with integer-indexed encoding
- #567 Use delomboked sources when creating sources JAR
- #565 Add a
retrieve()method that accepts parameters (e.g. for expansion) to all resource classes - #566 Add
objectattribute and accessors toStripeCollection
- #561 Add
createdtoAccount
Major version release. Refer to our migration guide for v6 for a list of backwards incompatible changes to watch out for.
Pull requests included in this release:
- #532 Remove deprecated methods
- #534 Only capitalize the first letter of acronyms per Google's style rules
- #535 Change signatures to throw StripeException
- #538 Change all integer types to
Longand all floating point types toDouble - #540 Add support for idempotency errors
- #541 Minor fixes
- #547 Move nested objects into inner static classes
- #553 Remove
Deleted*models and adddeletedattribute instead - #558 Use
BigDecimalfor floating point values
- #560 Add support for scheduled query runs (
com.stripe.model.sigma.ScheduledQueryRun) for Sigma
- #551 Add
autoAdvanceproperty toInvoice
- #552 Rename
ApplicationFeetoApplicationFeeAmountonPaymentIntent
- #548 Add
subscriptionItemproperty toInvoiceItemandInvoiceLineItem
- #544 Add support for streams when uploading files
- #546 Add
setClientId()toRequestOptionsBuilder
- #543 Add support for payment intents
- #542 Fix
account.application.*event data deserialization issue
- #539 Add
customerReferenceandshippingFromZipproperties onChargeLevel3model
- #537 Add
level3property onChargemodel
- #529 Annotate a lot of methods as deprecated and flagged for removal in the next major release
- #528 Add
nametoCouponmodel
- #522 Add
amountPaid,amountRemainingandbillingReasontoInvoicemodel
- #521 Add
documentBackproperty toLegalEntitymodel
- #515 Add
hosted_invoice_urlandinvoice_pdfproperties toInvoicemodel
- #516 Add
activeproperty toPlanmodel
- #513 Add
on_behalf_ofproperty onChargemodel - #512 Fix
update()methods forFeeRefundandReversal - #302 The library now uses Project Lombok. All API resource classes now have
equalsandhashCodemethods.
- #505 Add support for issuer fraud records
- #498 Fix two bugs found by Error Prone
- #462 Add support for flexible billing primitives
- #469 Add support for expanding
productattribute onPlanmodel
- #459 Add support for passing parameters to
autoPagingIterable() - #466 Fix serialization of null expandable attributes
- #464 Add OSGi headers to manifest file
- #458 Remove deprecation markers from
sourceTransactionaccessors onTransfermodel
- #457 Add title, version and vendor in JAR manifest file
- #455 Add support for
codeattribute on all Stripe exceptions
- #453 Add support for topups
- #446 Add support for deserializing
source_mandate_notificationobjects
- #449 Add
Stripe.setAppInfo()for passing custom application information in headers
- #447 Update
Plan,ProductandSubscriptionmodels for latest API version
- #439 Upgrade GSON dependency to 2.8.2
- #438 Add support for passing parameters to
SubscriptionItem.delete()
- #436 Fix bug where
optionswere not being plumbed through in an account delete method - #436 Add the proper set of overloads for account reject method
- #432 Make charge on
Disputeexpandable
- #423 Fix JSON encoding for expandable fields by adding customer encoder
- #419 Support for exchange rate APIs
- #418 Move build and release system from Maven to Gradle
- #417 Support for listing source transactions
- #410 Rename "verification" to "code verification" for sources (should have been unused up to this point)
- #412 Add support for detaching sources from customers
- Note that some minor versions (5.11 through 5.20) were accidentally skipped for this release. I'm leaving as is to minimize churn, but please don't be alarmed!
- Add
failure_reasonfield to the source redirect flow model
- No longer clobber global value of DNS cache TTL if it has not been set
- Support Java 9 (just involves upgrading a few Maven plugins)
- Add support for all OAuth actions
- Force UTF-8 encoding for webhook signature verification
- Use standard library comparison for webhook signature verification
payon invoice can now take parameters
- Add support for alternate statement descriptors on charge
- Add support for ephemeral keys
- Add missing expandable fields on every model
- Support for expandable sources in balance transactions
- Add
accountfield to the event model
- Clarify tolerance parameter for webhook signatures is in seconds
- Support expanded request in
Eventmodel (now with idempotency key)
- This release should have been 5.0.0, see notes for that
- This release should have been 5.0.0, see notes for that
- Add support for account login links
- Add
three_d_secureaccessors toCardmodel
- Support for checking webhook signatures
- Make connect and read timeouts configurable (see README for details)
- Add payout properties to
Accountmodel
- Add support for
available_payout_methodstoCardmodel
- Add support for payouts; see: https://stripe.com/docs/upgrades#2017-04-06
- Make
ruleunderChargeOutcomeexpandable
- Dispute on charge becomes expandable field (not expanded by default)
- Charge on order becomes expandable field (not expanded by default)
- Customer on order becomes expandable field (not expanded by default)
- Add missing fields on order:
amountReturned,returns, andupstreamId - Fix type of
OrderReturnCollection(now actually an order return)
- Add new parameters for invoices and subscriptions
- Add missing API resources to object deserializer
- This release was inadvertently empty. See 3.10.2 for changes.
- Deprecated sourced transfers under balance transactions
- Add variant of account
deletethat doesn't require parameters
- Add
ChargeOutcomeRuletoChargeOutcome
- Add
getObject/setObjectto a number of models where it was missing - Add
toJsonmethod toStripeObject
- Add non-public
network_reason_codetoDisputemodel
- Add expandable Charge to Invoice
- Add retrieve method for 3-D Secure resources
- Add
risk_levelattribute toChargeOutcomemodel
- Support for 403 status codes (permission denied)
- Change representations of money (e.g. "amounts" or "balances") from
IntegertoLong
- Fix NullPointerException in SourceDeserializer for bitcoin receivers, and refactor tests.
- Fix bug where the Transfer transactions method wasn't using requestCollection
- Add support for Apple Pay domains
- Add
description,iin, andissuerattributes toCardmodel
- Add
Sourcemodel (prototype)
- Add
ThreeDSecuremodel for 3-D secure payments
- Fix serialization of
businessURLandsupportURLinAccountmodel
- Add support for returning Relay orders
- Give all collection classes access to auto-paginating helpers that work beyond first page
- Add
retrieve,update,create,all, anddeletemethods to the Subscription class
- Add many missing fields to many models (see #285 for details)
- Add source types to
Moneymodel under theBalancemodel
- Add
Outcometo theChargemodel
- Deprecate
getUserandsetUseronApplicationFee - Deprecate
getCardandsetCardonCharge - Deprecate
getAccountandsetAccountonTransfer - Deprecate
getOtherTransfersandsetOtherTransfersonTransfer - Deprecate
getSummaryandsetSummaryonTransfer
- Change
getBusinessUrltogetBusinessURLinAccountmodel - Change
getSupportUrltogetSupportURLinAccountmodel - Change
getUrltogetURLinProductmodel - Change
setUrltosetURLinProductmodel - Change
getUrltogetURLinStripeCollectionmodel - Change
setUrltosetURLinStripeCollectionmodel - Remove previously-deprecated
getUrlinStripeCollectionAPIResourcemodel - Change
getUrltogetURLinStripeCollectionInterface
- Add accessors for
default_currencytoCountrySpecmodel
- Allow request params and options to be overridden for
autoPagingIterable
- Expose creating bank accounts on customer
- Add
rejectaction on account
- Add
CountrySpecmodel for looking up country payment information
- Add
businessTaxIdProvidedtoLegalEntity
- Add support for deleting Relay SKUs and products
- Add
details_codetoLegalEntity - Add
disabled_reasontoVerification
- Fix serialization bug in
LegalEntity'sssnLast4Provided
- Add lots of missing fields to Account, Event, and Refund
- Fix casting of newer objects to typed models
- Add missing
ShippingDetailstoCustomermodel
- Add a verification routine for external accounts
- Fix bug when using lazy-paging collection across multiple pages
- Add pagination through the use of calling
AutoPagingIterable()for a page - Fix bug where arrays were not being properly encoded when sent to the API
- Fix bug where setting a
Listtonullwasn't encoding to an empty string (which is required to unset an array)
- Bugfix
setTransferonReversal
- Products, SKUs, and Orders -- https://stripe.com/relay
- Add support for new rate limiting responses.
- Add
bankAccounttoToken
- Added
retrieve,all,update,createmethods toRefund
- Added
retrieve,all,updateandclosemethods toDispute - Added
deletemethod to managedAccounts
- Added
accounttoApplicationFee.
- Added
getRequestIdmethod toStripeException.
ConcretePaymentSourceand thePaymentSourceinterface have been combined into oneExternalAccountclassPaymentSourceCollectionwas renamedExternalAccountCollectionAccountnow supportsgetExternalAccounts, which allows bothBankAccountandCardattachment.BankAccounts can now be deleted fromCustomers (private beta feature) andAccounts
- Add decline_code, charge to CardException
- Added tax percent field to subscriptions
- Added tax and tax percent fields to invoices
- Added support for Alipay accounts
- Added default source when type is unknown
- Added support dynamicLast4 on Card for Apple Pay integrations
- Charge objects now support status
- Added support for transfer reversals
- Added support for account creation/updating/retrieval by ID
- Customer objects now support currency
- Added STRIPE-ACCOUNT header options in RequestOptions
- Added Update and Delete for Bitcoin Receivers
- Support new API version (2015-02-18) by providing source type properties on Customer and Charge in addition to card type properties
- Test of new stripe-java release process.
- Support making bitcoin charges through BitcoinReceiver source object
- Support for fraud reporting methods was added
- The ability to post multipart/form-data was added
- Requests can now hit different base endpoints, by passing in
apiBasewhen creating URLs - Support for the file upload endpoints was added. Documentation is available at https://stripe.com/docs/api#file_uploads
- Support for fraud reporting (marking charges as safe or fraudulent) was added
- Java 1.5 support dropped. We strongly suggest using newer versions of Java due to runtime, VM, language, and syntax improvements
- Dispute Evidence has been updated to reflect the new version of Dispute evidence format introduced as part of api version 2014-12-08. See https://stripe.com/docs/upgrades#2014-12-08 for details
- Convention is to call methods with a RequestOptions object, instead of an API Key directly
- Support setting the stripe version on a per-request level, via the RequestOptions object
- Add shipping and address to the charge object
-
All requests that involve passing the apiKey directly to the method are now deprecated in favor of using RequestOptions instead. Use RequestOptions as follows:
RequestOptions.builder().setApiKey(apiKey).build()
- Created Charge.receiptEmail field
- Created Charge.receiptNumber field
- Change chargeEnabled to chargesEnabled
- Change transferEnabled to transfersEnabled
- Add id, currency, status, fingerprint, and defaultForCurrency to BankAccount
- Add back explict autoboxing for Google App Engine reflected HTTP method (fixes issue #106)
- Add statementDescription field to transfer
- A few non-breaking general cleanups
- Added isChargeRefundable and balanceTransactions to Dispute https://stripe.com/docs/upgrades#2014-08-20
- Added metadata to Coupons
- Application Fee refunds now a list instead of array
- Added brand and funding to Card
- Added metadata to Refund
- Added metadata to Dispute
- Fixed incorrect return types for certain collection resources
- Added metadata to Subscription
- Add support for canceling transfers
- Fix bug with retrieving lines of upcoming invoice.
- Support cards for recipients.
- Test SSL certificate against blacklist
- Upgrade customer, charge, and coupon collections to new pagination style
- Add missing fields to Account object
- Support for newstyle pagination API (https://groups.google.com/a/lists.stripe.com/forum/#!topic/api-announce/29sLxmICA9E)
- Support for dynamic statement descriptions
- Preserve original 'threaqd null ids through to requests' behavior
- Upgrade Google GSON to 2.2.4
- URL-encode object ids (fixes #62)
- Add 'valid' field to coupon
- Fix Subscription cancel method call
- Miscellaneous field fixups
- Discount on Subscription is an expanded Discount, not string
- Add missing application_fee_percent field on Subscription
- Add missing application_fee field on Invoice
- Add support for multiple subscriptions per customer
- Fixed url to refund application fees (fixes #60)
- DRY'd some of the application fee urls
- Added metadata to InvoiceItem and InvoiceLineItem (fixes #59)
- Support overriding base url (for testing) (user request)
- Add default currency to Account object (fixes #46)
- Add metadata to plan object (thanks, desirable-objects)
- Remove plan from Customer (fixes #42)
- Style improvements (see #30) (thanks, steve-nester-uk)
- Fix return type of Coupon.getRedeemBy
- Add ApplicationFee API resource
- Added field transfer_enabled to Account API object (thanks, kurguzov)
- Add support for metadata API
- Add support for closing disputes
- Fix return type of CustomerCardCollection.retrieve
- Tweak card create to align it with docs
- Add missing
retrievemethod toBalanceTransaction - Add missing fields to
BalanceTransactionidfeefee_detailsdescription
- Add
idfield toSubscription
- Patch release with missing field, added tests
- Add BalanceTransaction API resource
- Add Refund resource
- Resource updates
- Remove
fee,feeDetailsfrom Transfer and Charge resources - Add
balanceTransactionto Transfer, Charge, and Dispute resources - Add
refundsto Charge resource
- Remove
- Add support for unsetting attributes by updating with a null value. Setting properties to a blank string is now an error.
- Enable createCard() to use a token
- Add 'createCard' to Customer
- Update card collections bindings
- Parse card objects when receiving customer.card.created events
- Add support for new cards API.
- You will probably need to upgrade the Stripe API version on your account to 2013-07-05 or explicitly specify an API version with com.stripe.Stripe.apiVersion when you switch to this release of the bindings. More information about the relevant changes can be found at https://stripe.com/docs/upgrades#2013-07-05 and http://bit.ly/13miHM8
- Add a StripeRawJsonObject type for deserializing webhook events we don't recognize
- Add a Money class for representing account balances in individual currencies
- Add more Balance API resource, and add to deserializer.
- Rename BankAccount property
validtovalidated
- Add more objects to Deserializer
- Fix TransferTransaction fee retrieval
- Allow Transfers to be creatable
- Add new Recipient resource
- Add support for charge capture.
- Add ability to deserialize account-related events.
- Add user ID to Event object.
- Fix off-by-one error in deserializing events (github issue #27).
- List all checked exceptions throws by methods.
- Add support for plan interval count.
- Add support for setting Stripe API version override.
- Add address_city to card
- Upgrade Google GSON to 2.2.2
- Add option to provide custom URL handler
- Explict cast to javax.net.ssl.HttpsURLConnection to prevent issues with user imports
- Add currency to Invoice resource
- Add amountOff and currency to Coupon resource
- Add new Dispute resource
- Add support for updating charge disputes
- Add support for creating invoices
- Add support for new Invoice.lines return format
- Add quantity to Subscription
- Add Fee API resource, add feeDetails to Charge API resource.
- Pass query parameters to DELETE-based methods when using Google App Engine (github issue #17)
- Add update and pay methods for Invoice resource
- Add the Account API resource
- Allow specification of API key at the API call level
- Use String.length() == 0 instead of String.isEmpty() for compatibility with JDK 1.5 (needed for Android 2.2)
- Change type of cvcCheck, addressZipCheck, and addressLine1Check attributes on com.stripe.model.Card; values of those fields will be "pass", "fail", "unchecked", or null (github issue #11)
- Remove code and percentOff attributes from com.stripe.model.Discount. Stripe never returned these values for Discount objects, so they would previously always be null
- Add missing fields to Charge, Coupon, Discount, Event, and Invoice models (github issue #12)
- Include parameters passed to any object's delete method in actual API requests (github issue #10)
- Add new deleteDiscount method to com.stripe.model.Customer
- Switch from using HTTP Basic auth to Bearer auth. (Note: Stripe will support Basic auth for the indefinite future, but recommends Bearer auth when possible going forward)
- Numerous test suite improvements