diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4a20aa95799f..2ae769f0e56d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,7 @@ on: branches: - master - beta + - private-preview - sdk-release/** - feature/** tags: @@ -125,6 +126,9 @@ jobs: echo "JAVA_TEST_HOME=$JAVA_TEST_HOME" - uses: stripe/openapi/actions/stripe-mock@master + with: + # Used to determine if stripe-mock runs in beta mode + base: ${{ github.base_ref == 'private-preview' && 'beta' || github.ref_name == 'private-preview' && 'beta' || contains(github.ref_name, '-alpha.') && 'beta' || github.base_ref || github.ref_name }} - name: Run test suite run: just test diff --git a/.hark/changes/2012-05-16_unknown_add-missing-fields.change.md b/.hark/changes/2012-05-16_unknown_add-missing-fields.change.md new file mode 100644 index 000000000000..3d59937c08a4 --- /dev/null +++ b/.hark/changes/2012-05-16_unknown_add-missing-fields.change.md @@ -0,0 +1,4 @@ +--- +title: "Add missing fields to Charge, Coupon, Discount, Event, and Invoice models (github issue #12)" +released_in_version: 1.1.0 +--- diff --git a/.hark/changes/2012-05-16_unknown_add-new-deletediscou.change.md b/.hark/changes/2012-05-16_unknown_add-new-deletediscou.change.md new file mode 100644 index 000000000000..c6b31e44682c --- /dev/null +++ b/.hark/changes/2012-05-16_unknown_add-new-deletediscou.change.md @@ -0,0 +1,4 @@ +--- +title: Add new deleteDiscount method to com.stripe.model.Customer +released_in_version: 1.1.0 +--- diff --git a/.hark/changes/2012-05-16_unknown_change-type-cvccheck.change.md b/.hark/changes/2012-05-16_unknown_change-type-cvccheck.change.md new file mode 100644 index 000000000000..52b6294a2b9b --- /dev/null +++ b/.hark/changes/2012-05-16_unknown_change-type-cvccheck.change.md @@ -0,0 +1,4 @@ +--- +title: "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)" +released_in_version: 1.1.0 +--- diff --git a/.hark/changes/2012-05-16_unknown_include-parameters-passed.change.md b/.hark/changes/2012-05-16_unknown_include-parameters-passed.change.md new file mode 100644 index 000000000000..67856e46fc8a --- /dev/null +++ b/.hark/changes/2012-05-16_unknown_include-parameters-passed.change.md @@ -0,0 +1,4 @@ +--- +title: "Include parameters passed to any object's delete method in actual API requests (github issue #10)" +released_in_version: 1.1.0 +--- diff --git a/.hark/changes/2012-05-16_unknown_numerous-test-suite.change.md b/.hark/changes/2012-05-16_unknown_numerous-test-suite.change.md new file mode 100644 index 000000000000..7080670414e7 --- /dev/null +++ b/.hark/changes/2012-05-16_unknown_numerous-test-suite.change.md @@ -0,0 +1,4 @@ +--- +title: Numerous test suite improvements +released_in_version: 1.1.0 +--- diff --git a/.hark/changes/2012-05-16_unknown_remove-code-percentoff.change.md b/.hark/changes/2012-05-16_unknown_remove-code-percentoff.change.md new file mode 100644 index 000000000000..e7d82275388e --- /dev/null +++ b/.hark/changes/2012-05-16_unknown_remove-code-percentoff.change.md @@ -0,0 +1,4 @@ +--- +title: 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 +released_in_version: 1.1.0 +--- diff --git a/.hark/changes/2012-05-16_unknown_switch-using-http.change.md b/.hark/changes/2012-05-16_unknown_switch-using-http.change.md new file mode 100644 index 000000000000..7fe9ad0d7d1d --- /dev/null +++ b/.hark/changes/2012-05-16_unknown_switch-using-http.change.md @@ -0,0 +1,4 @@ +--- +title: "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)" +released_in_version: 1.1.0 +--- diff --git a/.hark/changes/2012-05-24_unknown_use-string-length.change.md b/.hark/changes/2012-05-24_unknown_use-string-length.change.md new file mode 100644 index 000000000000..138a30a28306 --- /dev/null +++ b/.hark/changes/2012-05-24_unknown_use-string-length.change.md @@ -0,0 +1,4 @@ +--- +title: Use String.length() == 0 instead of String.isEmpty() for compatibility with JDK 1.5 (needed for Android 2.2) +released_in_version: 1.1.1 +--- diff --git a/.hark/changes/2012-08-06_unknown_allow-specificatio-api.change.md b/.hark/changes/2012-08-06_unknown_allow-specificatio-api.change.md new file mode 100644 index 000000000000..aadb469a98cb --- /dev/null +++ b/.hark/changes/2012-08-06_unknown_allow-specificatio-api.change.md @@ -0,0 +1,4 @@ +--- +title: Allow specification of API key at the API call level +released_in_version: 1.1.2 +--- diff --git a/.hark/changes/2012-08-17_unknown_add-account-api.change.md b/.hark/changes/2012-08-17_unknown_add-account-api.change.md new file mode 100644 index 000000000000..2baff7cb9822 --- /dev/null +++ b/.hark/changes/2012-08-17_unknown_add-account-api.change.md @@ -0,0 +1,4 @@ +--- +title: Add the Account API resource +released_in_version: 1.1.3 +--- diff --git a/.hark/changes/2012-08-31_unknown_add-update-pay.change.md b/.hark/changes/2012-08-31_unknown_add-update-pay.change.md new file mode 100644 index 000000000000..05c8427dae8b --- /dev/null +++ b/.hark/changes/2012-08-31_unknown_add-update-pay.change.md @@ -0,0 +1,4 @@ +--- +title: Add update and pay methods for Invoice resource +released_in_version: 1.1.4 +--- diff --git a/.hark/changes/2012-09-26_unknown_pass-query-parameters.change.md b/.hark/changes/2012-09-26_unknown_pass-query-parameters.change.md new file mode 100644 index 000000000000..d7b58e5a4d07 --- /dev/null +++ b/.hark/changes/2012-09-26_unknown_pass-query-parameters.change.md @@ -0,0 +1,4 @@ +--- +title: "Pass query parameters to DELETE-based methods when using Google App Engine (github issue #17)" +released_in_version: 1.1.5 +--- diff --git a/.hark/changes/2012-10-15_unknown_add-fee-api.change.md b/.hark/changes/2012-10-15_unknown_add-fee-api.change.md new file mode 100644 index 000000000000..a5d365685da3 --- /dev/null +++ b/.hark/changes/2012-10-15_unknown_add-fee-api.change.md @@ -0,0 +1,4 @@ +--- +title: Add Fee API resource, add feeDetails to Charge API resource. +released_in_version: 1.1.6 +--- diff --git a/.hark/changes/2012-10-24_unknown_add-quantity-subscription.change.md b/.hark/changes/2012-10-24_unknown_add-quantity-subscription.change.md new file mode 100644 index 000000000000..8fa82a94e439 --- /dev/null +++ b/.hark/changes/2012-10-24_unknown_add-quantity-subscription.change.md @@ -0,0 +1,4 @@ +--- +title: Add quantity to Subscription +released_in_version: 1.1.7 +--- diff --git a/.hark/changes/2012-10-30_unknown_add-support-creating.change.md b/.hark/changes/2012-10-30_unknown_add-support-creating.change.md new file mode 100644 index 000000000000..56184c8155dd --- /dev/null +++ b/.hark/changes/2012-10-30_unknown_add-support-creating.change.md @@ -0,0 +1,4 @@ +--- +title: Add support for creating invoices +released_in_version: 1.1.8 +--- diff --git a/.hark/changes/2012-10-30_unknown_add-support-new.change.md b/.hark/changes/2012-10-30_unknown_add-support-new.change.md new file mode 100644 index 000000000000..5bcfda0e81bc --- /dev/null +++ b/.hark/changes/2012-10-30_unknown_add-support-new.change.md @@ -0,0 +1,4 @@ +--- +title: Add support for new Invoice.lines return format +released_in_version: 1.1.8 +--- diff --git a/.hark/changes/2012-11-08_unknown_add-new-dispute.change.md b/.hark/changes/2012-11-08_unknown_add-new-dispute.change.md new file mode 100644 index 000000000000..6db3d58467e9 --- /dev/null +++ b/.hark/changes/2012-11-08_unknown_add-new-dispute.change.md @@ -0,0 +1,4 @@ +--- +title: Add new Dispute resource +released_in_version: 1.1.9 +--- diff --git a/.hark/changes/2012-11-08_unknown_add-support-updating.change.md b/.hark/changes/2012-11-08_unknown_add-support-updating.change.md new file mode 100644 index 000000000000..9336a377b1aa --- /dev/null +++ b/.hark/changes/2012-11-08_unknown_add-support-updating.change.md @@ -0,0 +1,4 @@ +--- +title: Add support for updating charge disputes +released_in_version: 1.1.9 +--- diff --git a/.hark/changes/2012-11-15_unknown_add-amountoff-currency.change.md b/.hark/changes/2012-11-15_unknown_add-amountoff-currency.change.md new file mode 100644 index 000000000000..4c82d16afd6e --- /dev/null +++ b/.hark/changes/2012-11-15_unknown_add-amountoff-currency.change.md @@ -0,0 +1,4 @@ +--- +title: Add amountOff and currency to Coupon resource +released_in_version: 1.1.10 +--- diff --git a/.hark/changes/2012-11-15_unknown_add-currency-invoice.change.md b/.hark/changes/2012-11-15_unknown_add-currency-invoice.change.md new file mode 100644 index 000000000000..787be63b8b5a --- /dev/null +++ b/.hark/changes/2012-11-15_unknown_add-currency-invoice.change.md @@ -0,0 +1,4 @@ +--- +title: Add currency to Invoice resource +released_in_version: 1.1.10 +--- diff --git a/.hark/changes/2012-11-17_unknown_explict-cast-javax.change.md b/.hark/changes/2012-11-17_unknown_explict-cast-javax.change.md new file mode 100644 index 000000000000..a11e1749f92a --- /dev/null +++ b/.hark/changes/2012-11-17_unknown_explict-cast-javax.change.md @@ -0,0 +1,4 @@ +--- +title: Explict cast to javax.net.ssl.HttpsURLConnection to prevent issues with user imports +released_in_version: 1.1.11 +--- diff --git a/.hark/changes/2012-12-24_unknown_add-option-provide.change.md b/.hark/changes/2012-12-24_unknown_add-option-provide.change.md new file mode 100644 index 000000000000..02d6987792d1 --- /dev/null +++ b/.hark/changes/2012-12-24_unknown_add-option-provide.change.md @@ -0,0 +1,4 @@ +--- +title: Add option to provide custom URL handler +released_in_version: 1.1.12 +--- diff --git a/.hark/changes/2012-12-29_unknown_add-addresscity-card.change.md b/.hark/changes/2012-12-29_unknown_add-addresscity-card.change.md new file mode 100644 index 000000000000..83bc28643de5 --- /dev/null +++ b/.hark/changes/2012-12-29_unknown_add-addresscity-card.change.md @@ -0,0 +1,4 @@ +--- +title: Add address_city to card +released_in_version: 1.1.13 +--- diff --git a/.hark/changes/2012-12-29_unknown_upgrade-google-gson.change.md b/.hark/changes/2012-12-29_unknown_upgrade-google-gson.change.md new file mode 100644 index 000000000000..606cfb6854b6 --- /dev/null +++ b/.hark/changes/2012-12-29_unknown_upgrade-google-gson.change.md @@ -0,0 +1,4 @@ +--- +title: Upgrade Google GSON to 2.2.2 +released_in_version: 1.1.13 +--- diff --git a/.hark/changes/2013-01-15_unknown_add-support-setting.change.md b/.hark/changes/2013-01-15_unknown_add-support-setting.change.md new file mode 100644 index 000000000000..eb61c46d4976 --- /dev/null +++ b/.hark/changes/2013-01-15_unknown_add-support-setting.change.md @@ -0,0 +1,4 @@ +--- +title: Add support for setting Stripe API version override. +released_in_version: 1.1.14 +--- diff --git a/.hark/changes/2013-02-01_unknown_add-support-plan.change.md b/.hark/changes/2013-02-01_unknown_add-support-plan.change.md new file mode 100644 index 000000000000..2ab18b84a550 --- /dev/null +++ b/.hark/changes/2013-02-01_unknown_add-support-plan.change.md @@ -0,0 +1,4 @@ +--- +title: Add support for plan interval count. +released_in_version: 1.1.15 +--- diff --git a/.hark/changes/2013-02-01_unknown_list-all-checked.change.md b/.hark/changes/2013-02-01_unknown_list-all-checked.change.md new file mode 100644 index 000000000000..2d32ec80b2ab --- /dev/null +++ b/.hark/changes/2013-02-01_unknown_list-all-checked.change.md @@ -0,0 +1,4 @@ +--- +title: List all checked exceptions throws by methods. +released_in_version: 1.1.15 +--- diff --git a/.hark/changes/2013-02-15_unknown_fix-off-one.change.md b/.hark/changes/2013-02-15_unknown_fix-off-one.change.md new file mode 100644 index 000000000000..3d4c5796eed1 --- /dev/null +++ b/.hark/changes/2013-02-15_unknown_fix-off-one.change.md @@ -0,0 +1,4 @@ +--- +title: "Fix off-by-one error in deserializing events (github issue #27)." +released_in_version: 1.1.16 +--- diff --git a/.hark/changes/2013-02-18_unknown_add-ability-deserialize.change.md b/.hark/changes/2013-02-18_unknown_add-ability-deserialize.change.md new file mode 100644 index 000000000000..66dab9e4c5a2 --- /dev/null +++ b/.hark/changes/2013-02-18_unknown_add-ability-deserialize.change.md @@ -0,0 +1,4 @@ +--- +title: Add ability to deserialize account-related events. +released_in_version: 1.1.17 +--- diff --git a/.hark/changes/2013-02-18_unknown_add-user-id.change.md b/.hark/changes/2013-02-18_unknown_add-user-id.change.md new file mode 100644 index 000000000000..303ce429fae8 --- /dev/null +++ b/.hark/changes/2013-02-18_unknown_add-user-id.change.md @@ -0,0 +1,4 @@ +--- +title: Add user ID to Event object. +released_in_version: 1.1.17 +--- diff --git a/.hark/changes/2013-03-18_unknown_add-support-charge.change.md b/.hark/changes/2013-03-18_unknown_add-support-charge.change.md new file mode 100644 index 000000000000..5e884052ea60 --- /dev/null +++ b/.hark/changes/2013-03-18_unknown_add-support-charge.change.md @@ -0,0 +1,4 @@ +--- +title: Add support for charge capture. +released_in_version: 1.1.18 +--- diff --git a/.hark/changes/2013-04-20_unknown_add-new-recipient.change.md b/.hark/changes/2013-04-20_unknown_add-new-recipient.change.md new file mode 100644 index 000000000000..f64ced4d9d0d --- /dev/null +++ b/.hark/changes/2013-04-20_unknown_add-new-recipient.change.md @@ -0,0 +1,4 @@ +--- +title: Add new Recipient resource +released_in_version: 1.2.0 +--- diff --git a/.hark/changes/2013-04-20_unknown_allow-transfers-creatable.change.md b/.hark/changes/2013-04-20_unknown_allow-transfers-creatable.change.md new file mode 100644 index 000000000000..aacc3c4912cf --- /dev/null +++ b/.hark/changes/2013-04-20_unknown_allow-transfers-creatable.change.md @@ -0,0 +1,4 @@ +--- +title: Allow Transfers to be creatable +released_in_version: 1.2.0 +--- diff --git a/.hark/changes/2013-04-20_unknown_fix-transfertran-fee.change.md b/.hark/changes/2013-04-20_unknown_fix-transfertran-fee.change.md new file mode 100644 index 000000000000..0e513486938f --- /dev/null +++ b/.hark/changes/2013-04-20_unknown_fix-transfertran-fee.change.md @@ -0,0 +1,4 @@ +--- +title: Fix TransferTransaction fee retrieval +released_in_version: 1.2.1 +--- diff --git a/.hark/changes/2013-04-25_unknown_add-more-objects.change.md b/.hark/changes/2013-04-25_unknown_add-more-objects.change.md new file mode 100644 index 000000000000..7d091221e52d --- /dev/null +++ b/.hark/changes/2013-04-25_unknown_add-more-objects.change.md @@ -0,0 +1,4 @@ +--- +title: Add more objects to Deserializer +released_in_version: 1.2.2 +--- diff --git a/.hark/changes/2013-05-07_unknown_rename-bankaccount-property.change.md b/.hark/changes/2013-05-07_unknown_rename-bankaccount-property.change.md new file mode 100644 index 000000000000..5c0de52e95ae --- /dev/null +++ b/.hark/changes/2013-05-07_unknown_rename-bankaccount-property.change.md @@ -0,0 +1,4 @@ +--- +title: Rename BankAccount property `valid` to `validated` +released_in_version: 1.2.3 +--- diff --git a/.hark/changes/2013-06-22_unknown_add-more-balance.change.md b/.hark/changes/2013-06-22_unknown_add-more-balance.change.md new file mode 100644 index 000000000000..32d8e1b0fae8 --- /dev/null +++ b/.hark/changes/2013-06-22_unknown_add-more-balance.change.md @@ -0,0 +1,4 @@ +--- +title: Add more Balance API resource, and add to deserializer. +released_in_version: 1.2.4 +--- diff --git a/.hark/changes/2013-07-15_unknown_add-money-class.change.md b/.hark/changes/2013-07-15_unknown_add-money-class.change.md new file mode 100644 index 000000000000..210aea3099a0 --- /dev/null +++ b/.hark/changes/2013-07-15_unknown_add-money-class.change.md @@ -0,0 +1,4 @@ +--- +title: Add a Money class for representing account balances in individual currencies +released_in_version: 1.2.5 +--- diff --git a/.hark/changes/2013-07-15_unknown_add-striperawjso-type.change.md b/.hark/changes/2013-07-15_unknown_add-striperawjso-type.change.md new file mode 100644 index 000000000000..f185292743de --- /dev/null +++ b/.hark/changes/2013-07-15_unknown_add-striperawjso-type.change.md @@ -0,0 +1,4 @@ +--- +title: Add a StripeRawJsonObject type for deserializing webhook events we don't recognize +released_in_version: 1.2.5 +--- diff --git a/.hark/changes/2013-07-15_unknown_add-support-new.change.md b/.hark/changes/2013-07-15_unknown_add-support-new.change.md new file mode 100644 index 000000000000..98fdd4a7a8bd --- /dev/null +++ b/.hark/changes/2013-07-15_unknown_add-support-new.change.md @@ -0,0 +1,6 @@ +--- +title: Add support for new cards API. +released_in_version: 1.2.5 +--- + +* 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://docs.stripe.com/changelog/2013-07-05 and http://bit.ly/13miHM8 diff --git a/.hark/changes/2013-07-30_unknown_add-createcard-customer.change.md b/.hark/changes/2013-07-30_unknown_add-createcard-customer.change.md new file mode 100644 index 000000000000..576e6cd0ae2b --- /dev/null +++ b/.hark/changes/2013-07-30_unknown_add-createcard-customer.change.md @@ -0,0 +1,4 @@ +--- +title: Add 'createCard' to Customer +released_in_version: 1.2.6 +--- diff --git a/.hark/changes/2013-07-30_unknown_parse-card-objects.change.md b/.hark/changes/2013-07-30_unknown_parse-card-objects.change.md new file mode 100644 index 000000000000..76fa343e855b --- /dev/null +++ b/.hark/changes/2013-07-30_unknown_parse-card-objects.change.md @@ -0,0 +1,4 @@ +--- +title: Parse card objects when receiving customer.card.created events +released_in_version: 1.2.6 +--- diff --git a/.hark/changes/2013-07-30_unknown_update-card-collections.change.md b/.hark/changes/2013-07-30_unknown_update-card-collections.change.md new file mode 100644 index 000000000000..18d4f1227dfc --- /dev/null +++ b/.hark/changes/2013-07-30_unknown_update-card-collections.change.md @@ -0,0 +1,4 @@ +--- +title: Update card collections bindings +released_in_version: 1.2.6 +--- diff --git a/.hark/changes/2013-07-31_unknown_enable-createcard-use.change.md b/.hark/changes/2013-07-31_unknown_enable-createcard-use.change.md new file mode 100644 index 000000000000..4b07fad2c371 --- /dev/null +++ b/.hark/changes/2013-07-31_unknown_enable-createcard-use.change.md @@ -0,0 +1,4 @@ +--- +title: Enable createCard() to use a token +released_in_version: 1.2.7 +--- diff --git a/.hark/changes/2013-08-12_unknown_add-support-unsetting.change.md b/.hark/changes/2013-08-12_unknown_add-support-unsetting.change.md new file mode 100644 index 000000000000..ecface1a489f --- /dev/null +++ b/.hark/changes/2013-08-12_unknown_add-support-unsetting.change.md @@ -0,0 +1,4 @@ +--- +title: Add support for unsetting attributes by updating with a null value. Setting properties to a blank string is now an error. +released_in_version: 1.2.8 +--- diff --git a/.hark/changes/2013-08-19_unknown_add-balancetrans-api.change.md b/.hark/changes/2013-08-19_unknown_add-balancetrans-api.change.md new file mode 100644 index 000000000000..c80c69c10824 --- /dev/null +++ b/.hark/changes/2013-08-19_unknown_add-balancetrans-api.change.md @@ -0,0 +1,4 @@ +--- +title: Add BalanceTransaction API resource +released_in_version: 1.3.0 +--- diff --git a/.hark/changes/2013-08-19_unknown_add-refund-resource.change.md b/.hark/changes/2013-08-19_unknown_add-refund-resource.change.md new file mode 100644 index 000000000000..208150814e5d --- /dev/null +++ b/.hark/changes/2013-08-19_unknown_add-refund-resource.change.md @@ -0,0 +1,4 @@ +--- +title: Add Refund resource +released_in_version: 1.3.0 +--- diff --git a/.hark/changes/2013-08-19_unknown_resource-updates.change.md b/.hark/changes/2013-08-19_unknown_resource-updates.change.md new file mode 100644 index 000000000000..c762105cdd32 --- /dev/null +++ b/.hark/changes/2013-08-19_unknown_resource-updates.change.md @@ -0,0 +1,8 @@ +--- +title: Resource updates +released_in_version: 1.3.0 +--- + +* Remove `fee`, `feeDetails` from Transfer and Charge resources +* Add `balanceTransaction` to Transfer, Charge, and Dispute resources +* Add `refunds` to Charge resource diff --git a/.hark/changes/2013-08-21_unknown_patch-release-missing.change.md b/.hark/changes/2013-08-21_unknown_patch-release-missing.change.md new file mode 100644 index 000000000000..57d0080bb8ee --- /dev/null +++ b/.hark/changes/2013-08-21_unknown_patch-release-missing.change.md @@ -0,0 +1,4 @@ +--- +title: Patch release with missing field, added tests +released_in_version: 1.3.1 +--- diff --git a/.hark/changes/2013-08-30_unknown_add-id-field.change.md b/.hark/changes/2013-08-30_unknown_add-id-field.change.md new file mode 100644 index 000000000000..c9f286602ef8 --- /dev/null +++ b/.hark/changes/2013-08-30_unknown_add-id-field.change.md @@ -0,0 +1,4 @@ +--- +title: Add `id` field to `Subscription` +released_in_version: 1.3.2 +--- diff --git a/.hark/changes/2013-08-30_unknown_add-missing-fields.change.md b/.hark/changes/2013-08-30_unknown_add-missing-fields.change.md new file mode 100644 index 000000000000..639ef39fd63a --- /dev/null +++ b/.hark/changes/2013-08-30_unknown_add-missing-fields.change.md @@ -0,0 +1,9 @@ +--- +title: Add missing fields to `BalanceTransaction` +released_in_version: 1.3.2 +--- + +* `id` +* `fee` +* `fee_details` +* `description` diff --git a/.hark/changes/2013-08-30_unknown_add-missing-retrieve.change.md b/.hark/changes/2013-08-30_unknown_add-missing-retrieve.change.md new file mode 100644 index 000000000000..76935581cdf4 --- /dev/null +++ b/.hark/changes/2013-08-30_unknown_add-missing-retrieve.change.md @@ -0,0 +1,4 @@ +--- +title: Add missing `retrieve` method to `BalanceTransaction` +released_in_version: 1.3.2 +--- diff --git a/.hark/changes/2013-09-03_unknown_tweak-card-create.change.md b/.hark/changes/2013-09-03_unknown_tweak-card-create.change.md new file mode 100644 index 000000000000..0e16a2772d14 --- /dev/null +++ b/.hark/changes/2013-09-03_unknown_tweak-card-create.change.md @@ -0,0 +1,4 @@ +--- +title: Tweak card create to align it with docs +released_in_version: 1.4.0 +--- diff --git a/.hark/changes/2013-09-04_unknown_fix-return-type.change.md b/.hark/changes/2013-09-04_unknown_fix-return-type.change.md new file mode 100644 index 000000000000..40430a5481b9 --- /dev/null +++ b/.hark/changes/2013-09-04_unknown_fix-return-type.change.md @@ -0,0 +1,4 @@ +--- +title: Fix return type of CustomerCardCollection.retrieve +released_in_version: 1.4.1 +--- diff --git a/.hark/changes/2013-09-18_unknown_add-support-closing.change.md b/.hark/changes/2013-09-18_unknown_add-support-closing.change.md new file mode 100644 index 000000000000..87720bab7da4 --- /dev/null +++ b/.hark/changes/2013-09-18_unknown_add-support-closing.change.md @@ -0,0 +1,4 @@ +--- +title: Add support for closing disputes +released_in_version: 1.4.2 +--- diff --git a/.hark/changes/2013-10-17_unknown_add-support-metadata.change.md b/.hark/changes/2013-10-17_unknown_add-support-metadata.change.md new file mode 100644 index 000000000000..f83f70bb298a --- /dev/null +++ b/.hark/changes/2013-10-17_unknown_add-support-metadata.change.md @@ -0,0 +1,4 @@ +--- +title: Add support for metadata API +released_in_version: 1.5.0 +--- diff --git a/.hark/changes/2013-10-17_unknown_added-field-transferenab.change.md b/.hark/changes/2013-10-17_unknown_added-field-transferenab.change.md new file mode 100644 index 000000000000..6ccb54dcfeef --- /dev/null +++ b/.hark/changes/2013-10-17_unknown_added-field-transferenab.change.md @@ -0,0 +1,4 @@ +--- +title: Added field transfer_enabled to Account API object (thanks, kurguzov) +released_in_version: 1.5.1 +--- diff --git a/.hark/changes/2013-12-04_unknown_add-applicationf-api.change.md b/.hark/changes/2013-12-04_unknown_add-applicationf-api.change.md new file mode 100644 index 000000000000..65ad72bb093f --- /dev/null +++ b/.hark/changes/2013-12-04_unknown_add-applicationf-api.change.md @@ -0,0 +1,4 @@ +--- +title: Add ApplicationFee API resource +released_in_version: 1.6.1 +--- diff --git a/.hark/changes/2014-01-08_unknown_fix-return-type.change.md b/.hark/changes/2014-01-08_unknown_fix-return-type.change.md new file mode 100644 index 000000000000..ea30d5c285dd --- /dev/null +++ b/.hark/changes/2014-01-08_unknown_fix-return-type.change.md @@ -0,0 +1,4 @@ +--- +title: Fix return type of Coupon.getRedeemBy +released_in_version: 1.6.2 +--- diff --git a/.hark/changes/2014-01-13_unknown_add-default-currency.change.md b/.hark/changes/2014-01-13_unknown_add-default-currency.change.md new file mode 100644 index 000000000000..b69394342231 --- /dev/null +++ b/.hark/changes/2014-01-13_unknown_add-default-currency.change.md @@ -0,0 +1,4 @@ +--- +title: "Add default currency to Account object (fixes #46)" +released_in_version: 1.6.3 +--- diff --git a/.hark/changes/2014-01-13_unknown_add-metadata-plan.change.md b/.hark/changes/2014-01-13_unknown_add-metadata-plan.change.md new file mode 100644 index 000000000000..d02e9cdfa65a --- /dev/null +++ b/.hark/changes/2014-01-13_unknown_add-metadata-plan.change.md @@ -0,0 +1,4 @@ +--- +title: Add metadata to plan object (thanks, desirable-objects) +released_in_version: 1.6.3 +--- diff --git a/.hark/changes/2014-01-13_unknown_remove-plan-customer.change.md b/.hark/changes/2014-01-13_unknown_remove-plan-customer.change.md new file mode 100644 index 000000000000..b38f14575027 --- /dev/null +++ b/.hark/changes/2014-01-13_unknown_remove-plan-customer.change.md @@ -0,0 +1,4 @@ +--- +title: "Remove plan from Customer (fixes #42)" +released_in_version: 1.6.3 +--- diff --git a/.hark/changes/2014-01-13_unknown_style-improvements-see.change.md b/.hark/changes/2014-01-13_unknown_style-improvements-see.change.md new file mode 100644 index 000000000000..c7d1445072ac --- /dev/null +++ b/.hark/changes/2014-01-13_unknown_style-improvements-see.change.md @@ -0,0 +1,4 @@ +--- +title: "Style improvements (see #30) (thanks, steve-nester-uk)" +released_in_version: 1.6.3 +--- diff --git a/.hark/changes/2014-01-13_unknown_support-overriding-base.change.md b/.hark/changes/2014-01-13_unknown_support-overriding-base.change.md new file mode 100644 index 000000000000..e83712b620ab --- /dev/null +++ b/.hark/changes/2014-01-13_unknown_support-overriding-base.change.md @@ -0,0 +1,4 @@ +--- +title: Support overriding base url (for testing) (user request) +released_in_version: 1.6.3 +--- diff --git a/.hark/changes/2014-01-16_unknown_added-metadata-invoiceitem.change.md b/.hark/changes/2014-01-16_unknown_added-metadata-invoiceitem.change.md new file mode 100644 index 000000000000..4af9d5817c90 --- /dev/null +++ b/.hark/changes/2014-01-16_unknown_added-metadata-invoiceitem.change.md @@ -0,0 +1,4 @@ +--- +title: "Added metadata to InvoiceItem and InvoiceLineItem (fixes #59)" +released_in_version: 1.6.4 +--- diff --git a/.hark/changes/2014-01-22_unknown_dry-d-some.change.md b/.hark/changes/2014-01-22_unknown_dry-d-some.change.md new file mode 100644 index 000000000000..05a9148c17d0 --- /dev/null +++ b/.hark/changes/2014-01-22_unknown_dry-d-some.change.md @@ -0,0 +1,4 @@ +--- +title: DRY'd some of the application fee urls +released_in_version: 1.6.5 +--- diff --git a/.hark/changes/2014-01-22_unknown_fixed-url-refund.change.md b/.hark/changes/2014-01-22_unknown_fixed-url-refund.change.md new file mode 100644 index 000000000000..3dfab1a11baa --- /dev/null +++ b/.hark/changes/2014-01-22_unknown_fixed-url-refund.change.md @@ -0,0 +1,4 @@ +--- +title: "Fixed url to refund application fees (fixes #60)" +released_in_version: 1.6.5 +--- diff --git a/.hark/changes/2014-01-29_unknown_add-support-multiple.change.md b/.hark/changes/2014-01-29_unknown_add-support-multiple.change.md new file mode 100644 index 000000000000..19bff0391ea6 --- /dev/null +++ b/.hark/changes/2014-01-29_unknown_add-support-multiple.change.md @@ -0,0 +1,4 @@ +--- +title: Add support for multiple subscriptions per customer +released_in_version: 1.7.0 +--- diff --git a/.hark/changes/2014-01-31_unknown_fix-subscription-cancel.change.md b/.hark/changes/2014-01-31_unknown_fix-subscription-cancel.change.md new file mode 100644 index 000000000000..f044e585e1ed --- /dev/null +++ b/.hark/changes/2014-01-31_unknown_fix-subscription-cancel.change.md @@ -0,0 +1,4 @@ +--- +title: Fix Subscription cancel method call +released_in_version: 1.7.1 +--- diff --git a/.hark/changes/2014-01-31_unknown_miscellaneou-field-fixups.change.md b/.hark/changes/2014-01-31_unknown_miscellaneou-field-fixups.change.md new file mode 100644 index 000000000000..51d8d144f198 --- /dev/null +++ b/.hark/changes/2014-01-31_unknown_miscellaneou-field-fixups.change.md @@ -0,0 +1,8 @@ +--- +title: Miscellaneous field fixups +released_in_version: 1.7.1 +--- + +* Discount on Subscription is an expanded Discount, not string +* Add missing application_fee_percent field on Subscription +* Add missing application_fee field on Invoice diff --git a/.hark/changes/2014-02-27_unknown_add-valid-field.change.md b/.hark/changes/2014-02-27_unknown_add-valid-field.change.md new file mode 100644 index 000000000000..37edb1ddae6a --- /dev/null +++ b/.hark/changes/2014-02-27_unknown_add-valid-field.change.md @@ -0,0 +1,4 @@ +--- +title: Add 'valid' field to coupon +released_in_version: 1.7.2 +--- diff --git a/.hark/changes/2014-03-12_unknown_upgrade-google-gson.change.md b/.hark/changes/2014-03-12_unknown_upgrade-google-gson.change.md new file mode 100644 index 000000000000..55ed72c011e0 --- /dev/null +++ b/.hark/changes/2014-03-12_unknown_upgrade-google-gson.change.md @@ -0,0 +1,4 @@ +--- +title: Upgrade Google GSON to 2.2.4 +released_in_version: 1.8.0 +--- diff --git a/.hark/changes/2014-03-12_unknown_url-encode-object.change.md b/.hark/changes/2014-03-12_unknown_url-encode-object.change.md new file mode 100644 index 000000000000..fb2582c21fdc --- /dev/null +++ b/.hark/changes/2014-03-12_unknown_url-encode-object.change.md @@ -0,0 +1,4 @@ +--- +title: "URL-encode object ids (fixes #62)" +released_in_version: 1.8.0 +--- diff --git a/.hark/changes/2014-03-17_unknown_preserve-original-threaqd.change.md b/.hark/changes/2014-03-17_unknown_preserve-original-threaqd.change.md new file mode 100644 index 000000000000..421e6ade17e4 --- /dev/null +++ b/.hark/changes/2014-03-17_unknown_preserve-original-threaqd.change.md @@ -0,0 +1,4 @@ +--- +title: Preserve original 'threaqd null ids through to requests' behavior +released_in_version: 1.9.0 +--- diff --git a/.hark/changes/2014-03-17_unknown_support-dynamic-statement.change.md b/.hark/changes/2014-03-17_unknown_support-dynamic-statement.change.md new file mode 100644 index 000000000000..0f6f61214c38 --- /dev/null +++ b/.hark/changes/2014-03-17_unknown_support-dynamic-statement.change.md @@ -0,0 +1,4 @@ +--- +title: Support for dynamic statement descriptions +released_in_version: 1.9.0 +--- diff --git a/.hark/changes/2014-03-28_unknown_support-newstyle-pagination.change.md b/.hark/changes/2014-03-28_unknown_support-newstyle-pagination.change.md new file mode 100644 index 000000000000..76be3a96fe13 --- /dev/null +++ b/.hark/changes/2014-03-28_unknown_support-newstyle-pagination.change.md @@ -0,0 +1,4 @@ +--- +title: "Support for newstyle pagination API (https://groups.google.com/a/lists.stripe.com/forum/#!topic/api-announce/29sLxmICA9E)" +released_in_version: 1.10.0 +--- diff --git a/.hark/changes/2014-04-07_unknown_add-missing-fields.change.md b/.hark/changes/2014-04-07_unknown_add-missing-fields.change.md new file mode 100644 index 000000000000..c3162d3b5277 --- /dev/null +++ b/.hark/changes/2014-04-07_unknown_add-missing-fields.change.md @@ -0,0 +1,4 @@ +--- +title: Add missing fields to Account object +released_in_version: 1.11.0 +--- diff --git a/.hark/changes/2014-04-07_unknown_upgrade-customer-charge.change.md b/.hark/changes/2014-04-07_unknown_upgrade-customer-charge.change.md new file mode 100644 index 000000000000..35e392f1797d --- /dev/null +++ b/.hark/changes/2014-04-07_unknown_upgrade-customer-charge.change.md @@ -0,0 +1,4 @@ +--- +title: Upgrade customer, charge, and coupon collections to new pagination style +released_in_version: 1.11.0 +--- diff --git a/.hark/changes/2014-04-09_unknown_test-ssl-certificate.change.md b/.hark/changes/2014-04-09_unknown_test-ssl-certificate.change.md new file mode 100644 index 000000000000..84900ca04362 --- /dev/null +++ b/.hark/changes/2014-04-09_unknown_test-ssl-certificate.change.md @@ -0,0 +1,4 @@ +--- +title: Test SSL certificate against blacklist +released_in_version: 1.12.0 +--- diff --git a/.hark/changes/2014-05-21_unknown_support-cards-recipients.change.md b/.hark/changes/2014-05-21_unknown_support-cards-recipients.change.md new file mode 100644 index 000000000000..7e8ebfcbb685 --- /dev/null +++ b/.hark/changes/2014-05-21_unknown_support-cards-recipients.change.md @@ -0,0 +1,4 @@ +--- +title: Support cards for recipients. +released_in_version: 1.13.0 +--- diff --git a/.hark/changes/2014-05-23_unknown_fix-bug-retrieving.change.md b/.hark/changes/2014-05-23_unknown_fix-bug-retrieving.change.md new file mode 100644 index 000000000000..9cc47aa3ec1f --- /dev/null +++ b/.hark/changes/2014-05-23_unknown_fix-bug-retrieving.change.md @@ -0,0 +1,4 @@ +--- +title: Fix bug with retrieving lines of upcoming invoice. +released_in_version: 1.13.1 +--- diff --git a/.hark/changes/2014-05-28_unknown_add-support-canceling.change.md b/.hark/changes/2014-05-28_unknown_add-support-canceling.change.md new file mode 100644 index 000000000000..fe8087b4ee3e --- /dev/null +++ b/.hark/changes/2014-05-28_unknown_add-support-canceling.change.md @@ -0,0 +1,4 @@ +--- +title: Add support for canceling transfers +released_in_version: 1.14.0 +--- diff --git a/.hark/changes/2014-06-04_unknown_added-metadata-subscription.change.md b/.hark/changes/2014-06-04_unknown_added-metadata-subscription.change.md new file mode 100644 index 000000000000..efdeb53262b4 --- /dev/null +++ b/.hark/changes/2014-06-04_unknown_added-metadata-subscription.change.md @@ -0,0 +1,4 @@ +--- +title: Added metadata to Subscription +released_in_version: 1.14.1 +--- diff --git a/.hark/changes/2014-06-17_unknown_added-metadata-dispute.change.md b/.hark/changes/2014-06-17_unknown_added-metadata-dispute.change.md new file mode 100644 index 000000000000..4b82f645f9f9 --- /dev/null +++ b/.hark/changes/2014-06-17_unknown_added-metadata-dispute.change.md @@ -0,0 +1,4 @@ +--- +title: Added metadata to Dispute +released_in_version: 1.15.0 +--- diff --git a/.hark/changes/2014-06-17_unknown_added-metadata-refund.change.md b/.hark/changes/2014-06-17_unknown_added-metadata-refund.change.md new file mode 100644 index 000000000000..46bb7259746e --- /dev/null +++ b/.hark/changes/2014-06-17_unknown_added-metadata-refund.change.md @@ -0,0 +1,4 @@ +--- +title: Added metadata to Refund +released_in_version: 1.15.0 +--- diff --git a/.hark/changes/2014-06-17_unknown_fixed-incorrect-return.change.md b/.hark/changes/2014-06-17_unknown_fixed-incorrect-return.change.md new file mode 100644 index 000000000000..f76c63c0dd6b --- /dev/null +++ b/.hark/changes/2014-06-17_unknown_fixed-incorrect-return.change.md @@ -0,0 +1,4 @@ +--- +title: Fixed incorrect return types for certain collection resources +released_in_version: 1.15.0 +--- diff --git a/.hark/changes/2014-06-25_unknown_added-brand-funding.change.md b/.hark/changes/2014-06-25_unknown_added-brand-funding.change.md new file mode 100644 index 000000000000..c00e281b1c0f --- /dev/null +++ b/.hark/changes/2014-06-25_unknown_added-brand-funding.change.md @@ -0,0 +1,4 @@ +--- +title: Added brand and funding to Card +released_in_version: 1.15.1 +--- diff --git a/.hark/changes/2014-07-29_unknown_application-fee-refunds.change.md b/.hark/changes/2014-07-29_unknown_application-fee-refunds.change.md new file mode 100644 index 000000000000..0ce7bd1a58b7 --- /dev/null +++ b/.hark/changes/2014-07-29_unknown_application-fee-refunds.change.md @@ -0,0 +1,4 @@ +--- +title: Application Fee refunds now a list instead of array +released_in_version: 1.16.0 +--- diff --git a/.hark/changes/2014-08-19_unknown_added-metadata-coupons.change.md b/.hark/changes/2014-08-19_unknown_added-metadata-coupons.change.md new file mode 100644 index 000000000000..9691bd7b0a04 --- /dev/null +++ b/.hark/changes/2014-08-19_unknown_added-metadata-coupons.change.md @@ -0,0 +1,4 @@ +--- +title: Added metadata to Coupons +released_in_version: 1.17.0 +--- diff --git a/.hark/changes/2014-08-25_unknown_added-ischargerefu-balancetrans.change.md b/.hark/changes/2014-08-25_unknown_added-ischargerefu-balancetrans.change.md new file mode 100644 index 000000000000..ee4dc876148b --- /dev/null +++ b/.hark/changes/2014-08-25_unknown_added-ischargerefu-balancetrans.change.md @@ -0,0 +1,4 @@ +--- +title: Added isChargeRefundable and balanceTransactions to Dispute https://docs.stripe.com/changelog/2014-08-20 +released_in_version: 1.18.0 +--- diff --git a/.hark/changes/2014-09-29_unknown_add-statementdes-field.change.md b/.hark/changes/2014-09-29_unknown_add-statementdes-field.change.md new file mode 100644 index 000000000000..31b249416509 --- /dev/null +++ b/.hark/changes/2014-09-29_unknown_add-statementdes-field.change.md @@ -0,0 +1,4 @@ +--- +title: Add statementDescription field to transfer +released_in_version: 1.19.0 +--- diff --git a/.hark/changes/2014-09-29_unknown_few-non-breaking.change.md b/.hark/changes/2014-09-29_unknown_few-non-breaking.change.md new file mode 100644 index 000000000000..7d793e57b266 --- /dev/null +++ b/.hark/changes/2014-09-29_unknown_few-non-breaking.change.md @@ -0,0 +1,4 @@ +--- +title: A few non-breaking general cleanups +released_in_version: 1.19.0 +--- diff --git a/.hark/changes/2014-10-02_unknown_add-back-explict.change.md b/.hark/changes/2014-10-02_unknown_add-back-explict.change.md new file mode 100644 index 000000000000..4ae80e0649c2 --- /dev/null +++ b/.hark/changes/2014-10-02_unknown_add-back-explict.change.md @@ -0,0 +1,4 @@ +--- +title: "Add back explict autoboxing for Google App Engine reflected HTTP method (fixes issue #106)" +released_in_version: 1.19.1 +--- diff --git a/.hark/changes/2014-11-06_unknown_add-id-currency.change.md b/.hark/changes/2014-11-06_unknown_add-id-currency.change.md new file mode 100644 index 000000000000..335d2428e088 --- /dev/null +++ b/.hark/changes/2014-11-06_unknown_add-id-currency.change.md @@ -0,0 +1,4 @@ +--- +title: Add id, currency, status, fingerprint, and defaultForCurrency to BankAccount +released_in_version: 1.20.0 +--- diff --git a/.hark/changes/2014-11-06_unknown_change-chargeenable-chargesenabl.change.md b/.hark/changes/2014-11-06_unknown_change-chargeenable-chargesenabl.change.md new file mode 100644 index 000000000000..4aa218866907 --- /dev/null +++ b/.hark/changes/2014-11-06_unknown_change-chargeenable-chargesenabl.change.md @@ -0,0 +1,4 @@ +--- +title: Change chargeEnabled to chargesEnabled +released_in_version: 1.20.0 +--- diff --git a/.hark/changes/2014-11-06_unknown_change-transferenab-transfersena.change.md b/.hark/changes/2014-11-06_unknown_change-transferenab-transfersena.change.md new file mode 100644 index 000000000000..46d492763249 --- /dev/null +++ b/.hark/changes/2014-11-06_unknown_change-transferenab-transfersena.change.md @@ -0,0 +1,4 @@ +--- +title: Change transferEnabled to transfersEnabled +released_in_version: 1.20.0 +--- diff --git a/.hark/changes/2014-11-14_unknown_created-charge-receiptemail.change.md b/.hark/changes/2014-11-14_unknown_created-charge-receiptemail.change.md new file mode 100644 index 000000000000..3ee6c7bda1bb --- /dev/null +++ b/.hark/changes/2014-11-14_unknown_created-charge-receiptemail.change.md @@ -0,0 +1,4 @@ +--- +title: Created Charge.receiptEmail field +released_in_version: 1.21.0 +--- diff --git a/.hark/changes/2014-11-14_unknown_created-charge-receiptnumbe.change.md b/.hark/changes/2014-11-14_unknown_created-charge-receiptnumbe.change.md new file mode 100644 index 000000000000..1dea226b68fd --- /dev/null +++ b/.hark/changes/2014-11-14_unknown_created-charge-receiptnumbe.change.md @@ -0,0 +1,4 @@ +--- +title: Created Charge.receiptNumber field +released_in_version: 1.21.0 +--- diff --git a/.hark/changes/2014-12-03_unknown_add-shipping-address.change.md b/.hark/changes/2014-12-03_unknown_add-shipping-address.change.md new file mode 100644 index 000000000000..7dd97ce8f81e --- /dev/null +++ b/.hark/changes/2014-12-03_unknown_add-shipping-address.change.md @@ -0,0 +1,4 @@ +--- +title: Add shipping and address to the charge object +released_in_version: 1.22.0 +--- diff --git a/.hark/changes/2014-12-03_unknown_all-requests-involve.change.md b/.hark/changes/2014-12-03_unknown_all-requests-involve.change.md new file mode 100644 index 000000000000..0f739e0d0d08 --- /dev/null +++ b/.hark/changes/2014-12-03_unknown_all-requests-involve.change.md @@ -0,0 +1,7 @@ +--- +title: "All requests that involve passing the apiKey directly to the method are now deprecated in favor of using RequestOptions instead. Use RequestOptions as follows:" +section: Deprecation +released_in_version: 1.22.0 +--- + +RequestOptions.builder().setApiKey(apiKey).build() diff --git a/.hark/changes/2014-12-03_unknown_convention-call-methods.change.md b/.hark/changes/2014-12-03_unknown_convention-call-methods.change.md new file mode 100644 index 000000000000..a62cd4c49838 --- /dev/null +++ b/.hark/changes/2014-12-03_unknown_convention-call-methods.change.md @@ -0,0 +1,4 @@ +--- +title: Convention is to call methods with a RequestOptions object, instead of an API Key directly +released_in_version: 1.22.0 +--- diff --git a/.hark/changes/2014-12-03_unknown_support-setting-stripe.change.md b/.hark/changes/2014-12-03_unknown_support-setting-stripe.change.md new file mode 100644 index 000000000000..ee98e32501a5 --- /dev/null +++ b/.hark/changes/2014-12-03_unknown_support-setting-stripe.change.md @@ -0,0 +1,4 @@ +--- +title: Support setting the stripe version on a per-request level, via the RequestOptions object +released_in_version: 1.22.0 +--- diff --git a/.hark/changes/2014-12-08_unknown_dispute-evidence-updated.change.md b/.hark/changes/2014-12-08_unknown_dispute-evidence-updated.change.md new file mode 100644 index 000000000000..c10eec74ec40 --- /dev/null +++ b/.hark/changes/2014-12-08_unknown_dispute-evidence-updated.change.md @@ -0,0 +1,4 @@ +--- +title: 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://docs.stripe.com/changelog/2014-12-08 for details +released_in_version: 1.23.0 +--- diff --git a/.hark/changes/2014-12-08_unknown_java-1-5.change.md b/.hark/changes/2014-12-08_unknown_java-1-5.change.md new file mode 100644 index 000000000000..1de9ff737dce --- /dev/null +++ b/.hark/changes/2014-12-08_unknown_java-1-5.change.md @@ -0,0 +1,4 @@ +--- +title: Java 1.5 support dropped. We strongly suggest using newer versions of Java due to runtime, VM, language, and syntax improvements +released_in_version: 1.23.0 +--- diff --git a/.hark/changes/2014-12-23_unknown_ability-post-multipart.change.md b/.hark/changes/2014-12-23_unknown_ability-post-multipart.change.md new file mode 100644 index 000000000000..9af053985e39 --- /dev/null +++ b/.hark/changes/2014-12-23_unknown_ability-post-multipart.change.md @@ -0,0 +1,4 @@ +--- +title: The ability to post multipart/form-data was added +released_in_version: 1.24.0 +--- diff --git a/.hark/changes/2014-12-23_unknown_requests-can-now.change.md b/.hark/changes/2014-12-23_unknown_requests-can-now.change.md new file mode 100644 index 000000000000..7286a0356569 --- /dev/null +++ b/.hark/changes/2014-12-23_unknown_requests-can-now.change.md @@ -0,0 +1,4 @@ +--- +title: Requests can now hit different base endpoints, by passing in `apiBase` when creating URLs +released_in_version: 1.24.0 +--- diff --git a/.hark/changes/2014-12-23_unknown_support-file-upload.change.md b/.hark/changes/2014-12-23_unknown_support-file-upload.change.md new file mode 100644 index 000000000000..e05512b70466 --- /dev/null +++ b/.hark/changes/2014-12-23_unknown_support-file-upload.change.md @@ -0,0 +1,4 @@ +--- +title: "Support for the file upload endpoints was added. Documentation is available at https://stripe.com/docs/api#file_uploads" +released_in_version: 1.24.0 +--- diff --git a/.hark/changes/2014-12-23_unknown_support-fraud-reporting.change.md b/.hark/changes/2014-12-23_unknown_support-fraud-reporting.change.md new file mode 100644 index 000000000000..17da3782462c --- /dev/null +++ b/.hark/changes/2014-12-23_unknown_support-fraud-reporting.change.md @@ -0,0 +1,4 @@ +--- +title: Support for fraud reporting (marking charges as safe or fraudulent) was added +released_in_version: 1.24.0 +--- diff --git a/.hark/changes/2015-01-05_unknown_support-fraud-reporting.change.md b/.hark/changes/2015-01-05_unknown_support-fraud-reporting.change.md new file mode 100644 index 000000000000..977ba5b16adb --- /dev/null +++ b/.hark/changes/2015-01-05_unknown_support-fraud-reporting.change.md @@ -0,0 +1,4 @@ +--- +title: Support for fraud reporting methods was added +released_in_version: 1.24.1 +--- diff --git a/.hark/changes/2015-01-22_unknown_support-making-bitcoin.change.md b/.hark/changes/2015-01-22_unknown_support-making-bitcoin.change.md new file mode 100644 index 000000000000..63d22a2e21bd --- /dev/null +++ b/.hark/changes/2015-01-22_unknown_support-making-bitcoin.change.md @@ -0,0 +1,4 @@ +--- +title: Support making bitcoin charges through BitcoinReceiver source object +released_in_version: 1.25.0 +--- diff --git a/.hark/changes/2015-01-23_unknown_test-new-stripe.change.md b/.hark/changes/2015-01-23_unknown_test-new-stripe.change.md new file mode 100644 index 000000000000..6c1c1e11d859 --- /dev/null +++ b/.hark/changes/2015-01-23_unknown_test-new-stripe.change.md @@ -0,0 +1,4 @@ +--- +title: Test of new stripe-java release process. +released_in_version: 1.25.1 +--- diff --git a/.hark/changes/2015-02-19_unknown_added-update-delete.change.md b/.hark/changes/2015-02-19_unknown_added-update-delete.change.md new file mode 100644 index 000000000000..f57e995f20bc --- /dev/null +++ b/.hark/changes/2015-02-19_unknown_added-update-delete.change.md @@ -0,0 +1,4 @@ +--- +title: Added Update and Delete for Bitcoin Receivers +released_in_version: 1.26.0 +--- diff --git a/.hark/changes/2015-02-19_unknown_support-new-api.change.md b/.hark/changes/2015-02-19_unknown_support-new-api.change.md new file mode 100644 index 000000000000..d0dbac140899 --- /dev/null +++ b/.hark/changes/2015-02-19_unknown_support-new-api.change.md @@ -0,0 +1,6 @@ +--- +title: Support new API version (2015-02-18) by providing source type properties +released_in_version: 1.26.0 +--- + +on Customer and Charge in addition to card type properties diff --git a/.hark/changes/2015-03-19_unknown_added-stripe-account.change.md b/.hark/changes/2015-03-19_unknown_added-stripe-account.change.md new file mode 100644 index 000000000000..89b4c27ddd31 --- /dev/null +++ b/.hark/changes/2015-03-19_unknown_added-stripe-account.change.md @@ -0,0 +1,4 @@ +--- +title: Added STRIPE-ACCOUNT header options in RequestOptions +released_in_version: 1.27.0 +--- diff --git a/.hark/changes/2015-03-19_unknown_added-support-account.change.md b/.hark/changes/2015-03-19_unknown_added-support-account.change.md new file mode 100644 index 000000000000..a953ea36094d --- /dev/null +++ b/.hark/changes/2015-03-19_unknown_added-support-account.change.md @@ -0,0 +1,4 @@ +--- +title: Added support for account creation/updating/retrieval by ID +released_in_version: 1.27.0 +--- diff --git a/.hark/changes/2015-03-19_unknown_added-support-transfer.change.md b/.hark/changes/2015-03-19_unknown_added-support-transfer.change.md new file mode 100644 index 000000000000..93cf2d55ae37 --- /dev/null +++ b/.hark/changes/2015-03-19_unknown_added-support-transfer.change.md @@ -0,0 +1,4 @@ +--- +title: Added support for transfer reversals +released_in_version: 1.27.0 +--- diff --git a/.hark/changes/2015-03-19_unknown_customer-objects-now.change.md b/.hark/changes/2015-03-19_unknown_customer-objects-now.change.md new file mode 100644 index 000000000000..581866a41eac --- /dev/null +++ b/.hark/changes/2015-03-19_unknown_customer-objects-now.change.md @@ -0,0 +1,4 @@ +--- +title: Customer objects now support currency +released_in_version: 1.27.0 +--- diff --git a/.hark/changes/2015-03-30_unknown_charge-objects-now.change.md b/.hark/changes/2015-03-30_unknown_charge-objects-now.change.md new file mode 100644 index 000000000000..ae3d956ffff2 --- /dev/null +++ b/.hark/changes/2015-03-30_unknown_charge-objects-now.change.md @@ -0,0 +1,4 @@ +--- +title: Charge objects now support status +released_in_version: 1.27.1 +--- diff --git a/.hark/changes/2015-05-08_unknown_added-default-source.change.md b/.hark/changes/2015-05-08_unknown_added-default-source.change.md new file mode 100644 index 000000000000..c16b078be1e2 --- /dev/null +++ b/.hark/changes/2015-05-08_unknown_added-default-source.change.md @@ -0,0 +1,4 @@ +--- +title: Added default source when type is unknown +released_in_version: 1.28.0 +--- diff --git a/.hark/changes/2015-05-08_unknown_added-support-alipay.change.md b/.hark/changes/2015-05-08_unknown_added-support-alipay.change.md new file mode 100644 index 000000000000..f7c2568905ad --- /dev/null +++ b/.hark/changes/2015-05-08_unknown_added-support-alipay.change.md @@ -0,0 +1,4 @@ +--- +title: Added support for Alipay accounts +released_in_version: 1.28.0 +--- diff --git a/.hark/changes/2015-05-08_unknown_added-support-dynamiclast4.change.md b/.hark/changes/2015-05-08_unknown_added-support-dynamiclast4.change.md new file mode 100644 index 000000000000..5aca1fe65e8e --- /dev/null +++ b/.hark/changes/2015-05-08_unknown_added-support-dynamiclast4.change.md @@ -0,0 +1,4 @@ +--- +title: Added support dynamicLast4 on Card for Apple Pay integrations +released_in_version: 1.28.0 +--- diff --git a/.hark/changes/2015-05-21_unknown_added-tax-percent.change.md b/.hark/changes/2015-05-21_unknown_added-tax-percent.change.md new file mode 100644 index 000000000000..dd548fcf6ed7 --- /dev/null +++ b/.hark/changes/2015-05-21_unknown_added-tax-percent.change.md @@ -0,0 +1,4 @@ +--- +title: Added tax percent field to subscriptions +released_in_version: 1.29.0 +--- diff --git a/.hark/changes/2015-05-21_unknown_added-tax-tax.change.md b/.hark/changes/2015-05-21_unknown_added-tax-tax.change.md new file mode 100644 index 000000000000..9dafcd720f91 --- /dev/null +++ b/.hark/changes/2015-05-21_unknown_added-tax-tax.change.md @@ -0,0 +1,4 @@ +--- +title: Added tax and tax percent fields to invoices +released_in_version: 1.29.0 +--- diff --git a/.hark/changes/2015-05-28_unknown_add-declinecode-charge.change.md b/.hark/changes/2015-05-28_unknown_add-declinecode-charge.change.md new file mode 100644 index 000000000000..3eb930557fb9 --- /dev/null +++ b/.hark/changes/2015-05-28_unknown_add-declinecode-charge.change.md @@ -0,0 +1,4 @@ +--- +title: Add decline_code, charge to CardException +released_in_version: 1.30.0 +--- diff --git a/.hark/changes/2015-06-01_unknown_account-now-supports.change.md b/.hark/changes/2015-06-01_unknown_account-now-supports.change.md new file mode 100644 index 000000000000..e748e371e11b --- /dev/null +++ b/.hark/changes/2015-06-01_unknown_account-now-supports.change.md @@ -0,0 +1,4 @@ +--- +title: "`Account` now supports `getExternalAccounts`, which allows both `BankAccount` and `Card` attachment." +released_in_version: 1.31.0 +--- diff --git a/.hark/changes/2015-06-01_unknown_bankaccounts-can-now.change.md b/.hark/changes/2015-06-01_unknown_bankaccounts-can-now.change.md new file mode 100644 index 000000000000..c87a92e8c8b1 --- /dev/null +++ b/.hark/changes/2015-06-01_unknown_bankaccounts-can-now.change.md @@ -0,0 +1,4 @@ +--- +title: "`BankAccount`s can now be deleted from `Customer`s (private beta feature) and `Account`s" +released_in_version: 1.31.0 +--- diff --git a/.hark/changes/2015-06-01_unknown_concretepaym-paymentsourc-interface.change.md b/.hark/changes/2015-06-01_unknown_concretepaym-paymentsourc-interface.change.md new file mode 100644 index 000000000000..a6b497f03406 --- /dev/null +++ b/.hark/changes/2015-06-01_unknown_concretepaym-paymentsourc-interface.change.md @@ -0,0 +1,4 @@ +--- +title: "`ConcretePaymentSource` and the `PaymentSource` interface have been combined into one `ExternalAccount` class" +released_in_version: 1.31.0 +--- diff --git a/.hark/changes/2015-06-01_unknown_paymentsourc-renamed-externalacco.change.md b/.hark/changes/2015-06-01_unknown_paymentsourc-renamed-externalacco.change.md new file mode 100644 index 000000000000..ce65a1f74a6a --- /dev/null +++ b/.hark/changes/2015-06-01_unknown_paymentsourc-renamed-externalacco.change.md @@ -0,0 +1,4 @@ +--- +title: "`PaymentSourceCollection` was renamed `ExternalAccountCollection`" +released_in_version: 1.31.0 +--- diff --git a/.hark/changes/2015-07-06_unknown_added-getrequestid-method.change.md b/.hark/changes/2015-07-06_unknown_added-getrequestid-method.change.md new file mode 100644 index 000000000000..0f9e5a1079ea --- /dev/null +++ b/.hark/changes/2015-07-06_unknown_added-getrequestid-method.change.md @@ -0,0 +1,4 @@ +--- +title: Added `getRequestId` method to `StripeException`. +released_in_version: 1.32.0 +--- diff --git a/.hark/changes/2015-07-24_unknown_added-account-applicationf.change.md b/.hark/changes/2015-07-24_unknown_added-account-applicationf.change.md new file mode 100644 index 000000000000..94c6ad896b81 --- /dev/null +++ b/.hark/changes/2015-07-24_unknown_added-account-applicationf.change.md @@ -0,0 +1,4 @@ +--- +title: Added `account` to `ApplicationFee`. +released_in_version: 1.32.1 +--- diff --git a/.hark/changes/2015-08-03_unknown_added-delete-method.change.md b/.hark/changes/2015-08-03_unknown_added-delete-method.change.md new file mode 100644 index 000000000000..f2559e1b1dec --- /dev/null +++ b/.hark/changes/2015-08-03_unknown_added-delete-method.change.md @@ -0,0 +1,4 @@ +--- +title: Added `delete` method to managed `Account`s +released_in_version: 1.33.0 +--- diff --git a/.hark/changes/2015-08-03_unknown_added-retrieve-all.change.md b/.hark/changes/2015-08-03_unknown_added-retrieve-all.change.md new file mode 100644 index 000000000000..384ac3e3cc4e --- /dev/null +++ b/.hark/changes/2015-08-03_unknown_added-retrieve-all.change.md @@ -0,0 +1,4 @@ +--- +title: Added `retrieve`, `all`, `update` and `close` methods to `Dispute` +released_in_version: 1.33.0 +--- diff --git a/.hark/changes/2015-08-17_unknown_added-retrieve-all.change.md b/.hark/changes/2015-08-17_unknown_added-retrieve-all.change.md new file mode 100644 index 000000000000..80a21cea9395 --- /dev/null +++ b/.hark/changes/2015-08-17_unknown_added-retrieve-all.change.md @@ -0,0 +1,4 @@ +--- +title: Added `retrieve`, `all`, `update`, `create` methods to `Refund` +released_in_version: 1.34.0 +--- diff --git a/.hark/changes/2015-08-31_unknown_add-bankaccount-token.change.md b/.hark/changes/2015-08-31_unknown_add-bankaccount-token.change.md new file mode 100644 index 000000000000..186e1fdb05b5 --- /dev/null +++ b/.hark/changes/2015-08-31_unknown_add-bankaccount-token.change.md @@ -0,0 +1,4 @@ +--- +title: Add `bankAccount` to `Token` +released_in_version: 1.35.0 +--- diff --git a/.hark/changes/2015-09-11_unknown_add-support-new.change.md b/.hark/changes/2015-09-11_unknown_add-support-new.change.md new file mode 100644 index 000000000000..74136e29a33f --- /dev/null +++ b/.hark/changes/2015-09-11_unknown_add-support-new.change.md @@ -0,0 +1,4 @@ +--- +title: Add support for new rate limiting responses. +released_in_version: 1.36.0 +--- diff --git a/.hark/changes/2015-09-14_unknown_products-skus-orders.change.md b/.hark/changes/2015-09-14_unknown_products-skus-orders.change.md new file mode 100644 index 000000000000..7b6ac1eef3c2 --- /dev/null +++ b/.hark/changes/2015-09-14_unknown_products-skus-orders.change.md @@ -0,0 +1,4 @@ +--- +title: "Products, SKUs, and Orders -- https://stripe.com/relay" +released_in_version: 1.37.0 +--- diff --git a/.hark/changes/2015-10-07_unknown_bugfix-settransfer-reversal.change.md b/.hark/changes/2015-10-07_unknown_bugfix-settransfer-reversal.change.md new file mode 100644 index 000000000000..fcb0631a2e0f --- /dev/null +++ b/.hark/changes/2015-10-07_unknown_bugfix-settransfer-reversal.change.md @@ -0,0 +1,4 @@ +--- +title: Bugfix `setTransfer` on `Reversal` +released_in_version: 1.37.1 +--- diff --git a/.hark/changes/2015-10-27_unknown_add-pagination-through.change.md b/.hark/changes/2015-10-27_unknown_add-pagination-through.change.md new file mode 100644 index 000000000000..5aaa683a8435 --- /dev/null +++ b/.hark/changes/2015-10-27_unknown_add-pagination-through.change.md @@ -0,0 +1,4 @@ +--- +title: Add pagination through the use of calling `AutoPagingIterable()` for a page +released_in_version: 1.38.0 +--- diff --git a/.hark/changes/2015-10-27_unknown_fix-bug-where.change.md b/.hark/changes/2015-10-27_unknown_fix-bug-where.change.md new file mode 100644 index 000000000000..b9b0530444a3 --- /dev/null +++ b/.hark/changes/2015-10-27_unknown_fix-bug-where.change.md @@ -0,0 +1,4 @@ +--- +title: Fix bug where arrays were not being properly encoded when sent to the API +released_in_version: 1.38.0 +--- diff --git a/.hark/changes/2015-10-27_unknown_fix-bug-where2.change.md b/.hark/changes/2015-10-27_unknown_fix-bug-where2.change.md new file mode 100644 index 000000000000..d10d07f1f734 --- /dev/null +++ b/.hark/changes/2015-10-27_unknown_fix-bug-where2.change.md @@ -0,0 +1,4 @@ +--- +title: Fix bug where setting a `List` to `null` wasn't encoding to an empty string (which is required to unset an array) +released_in_version: 1.38.0 +--- diff --git a/.hark/changes/2015-11-30_unknown_fix-bug-using.change.md b/.hark/changes/2015-11-30_unknown_fix-bug-using.change.md new file mode 100644 index 000000000000..a51eb43ab5df --- /dev/null +++ b/.hark/changes/2015-11-30_unknown_fix-bug-using.change.md @@ -0,0 +1,4 @@ +--- +title: Fix bug when using lazy-paging collection across multiple pages +released_in_version: 1.38.1 +--- diff --git a/.hark/changes/2015-12-01_unknown_add-verification-routine.change.md b/.hark/changes/2015-12-01_unknown_add-verification-routine.change.md new file mode 100644 index 000000000000..2652ee9c2f6e --- /dev/null +++ b/.hark/changes/2015-12-01_unknown_add-verification-routine.change.md @@ -0,0 +1,4 @@ +--- +title: Add a verification routine for external accounts +released_in_version: 1.39.0 +--- diff --git a/.hark/changes/2015-12-03_unknown_add-missing-shippingdeta.change.md b/.hark/changes/2015-12-03_unknown_add-missing-shippingdeta.change.md new file mode 100644 index 000000000000..43e98dee786e --- /dev/null +++ b/.hark/changes/2015-12-03_unknown_add-missing-shippingdeta.change.md @@ -0,0 +1,4 @@ +--- +title: Add missing `ShippingDetails` to `Customer` model +released_in_version: 1.40.0 +--- diff --git a/.hark/changes/2016-01-07_unknown_fix-casting-newer.change.md b/.hark/changes/2016-01-07_unknown_fix-casting-newer.change.md new file mode 100644 index 000000000000..5b0454914857 --- /dev/null +++ b/.hark/changes/2016-01-07_unknown_fix-casting-newer.change.md @@ -0,0 +1,4 @@ +--- +title: Fix casting of newer objects to *typed* models +released_in_version: 1.40.1 +--- diff --git a/.hark/changes/2016-01-13_unknown_add-lots-missing.change.md b/.hark/changes/2016-01-13_unknown_add-lots-missing.change.md new file mode 100644 index 000000000000..9ad1a248f4ce --- /dev/null +++ b/.hark/changes/2016-01-13_unknown_add-lots-missing.change.md @@ -0,0 +1,4 @@ +--- +title: Add lots of missing fields to Account, Event, and Refund +released_in_version: 1.41.0 +--- diff --git a/.hark/changes/2016-01-15_unknown_fix-serializatio-bug.change.md b/.hark/changes/2016-01-15_unknown_fix-serializatio-bug.change.md new file mode 100644 index 000000000000..54c0093d8b6f --- /dev/null +++ b/.hark/changes/2016-01-15_unknown_fix-serializatio-bug.change.md @@ -0,0 +1,4 @@ +--- +title: Fix serialization bug in `LegalEntity`'s `ssnLast4Provided` +released_in_version: 1.41.1 +--- diff --git a/.hark/changes/2016-01-21_unknown_add-detailscode-legalentity.change.md b/.hark/changes/2016-01-21_unknown_add-detailscode-legalentity.change.md new file mode 100644 index 000000000000..beb3a39a978b --- /dev/null +++ b/.hark/changes/2016-01-21_unknown_add-detailscode-legalentity.change.md @@ -0,0 +1,4 @@ +--- +title: Add `details_code` to `LegalEntity` +released_in_version: 1.42.0 +--- diff --git a/.hark/changes/2016-01-21_unknown_add-disabledreas-verification.change.md b/.hark/changes/2016-01-21_unknown_add-disabledreas-verification.change.md new file mode 100644 index 000000000000..e08c76e972ce --- /dev/null +++ b/.hark/changes/2016-01-21_unknown_add-disabledreas-verification.change.md @@ -0,0 +1,4 @@ +--- +title: Add `disabled_reason` to `Verification` +released_in_version: 1.42.0 +--- diff --git a/.hark/changes/2016-01-26_unknown_add-support-deleting.change.md b/.hark/changes/2016-01-26_unknown_add-support-deleting.change.md new file mode 100644 index 000000000000..b60874ceeab7 --- /dev/null +++ b/.hark/changes/2016-01-26_unknown_add-support-deleting.change.md @@ -0,0 +1,4 @@ +--- +title: Add support for deleting Relay SKUs and products +released_in_version: 1.43.0 +--- diff --git a/.hark/changes/2016-02-11_unknown_add-businesstaxi-legalentity.change.md b/.hark/changes/2016-02-11_unknown_add-businesstaxi-legalentity.change.md new file mode 100644 index 000000000000..cee8eea1fdc2 --- /dev/null +++ b/.hark/changes/2016-02-11_unknown_add-businesstaxi-legalentity.change.md @@ -0,0 +1,4 @@ +--- +title: Add `businessTaxIdProvided` to `LegalEntity` +released_in_version: 1.44.0 +--- diff --git a/.hark/changes/2016-02-18_unknown_add-countryspec-model.change.md b/.hark/changes/2016-02-18_unknown_add-countryspec-model.change.md new file mode 100644 index 000000000000..b3c2ebff9b08 --- /dev/null +++ b/.hark/changes/2016-02-18_unknown_add-countryspec-model.change.md @@ -0,0 +1,4 @@ +--- +title: Add `CountrySpec` model for looking up country payment information +released_in_version: 1.45.0 +--- diff --git a/.hark/changes/2016-03-15_unknown_add-reject-action.change.md b/.hark/changes/2016-03-15_unknown_add-reject-action.change.md new file mode 100644 index 000000000000..3770cb668fef --- /dev/null +++ b/.hark/changes/2016-03-15_unknown_add-reject-action.change.md @@ -0,0 +1,4 @@ +--- +title: Add `reject` action on account +released_in_version: 1.46.0 +--- diff --git a/.hark/changes/2016-03-15_unknown_expose-creating-bank.change.md b/.hark/changes/2016-03-15_unknown_expose-creating-bank.change.md new file mode 100644 index 000000000000..6a3eb4dfd936 --- /dev/null +++ b/.hark/changes/2016-03-15_unknown_expose-creating-bank.change.md @@ -0,0 +1,4 @@ +--- +title: Expose creating bank accounts on customer +released_in_version: 1.46.0 +--- diff --git a/.hark/changes/2016-03-21_unknown_allow-request-params.change.md b/.hark/changes/2016-03-21_unknown_allow-request-params.change.md new file mode 100644 index 000000000000..2d53177b0982 --- /dev/null +++ b/.hark/changes/2016-03-21_unknown_allow-request-params.change.md @@ -0,0 +1,4 @@ +--- +title: Allow request params and options to be overridden for `autoPagingIterable` +released_in_version: 1.47.0 +--- diff --git a/.hark/changes/2016-03-29_unknown_add-accessors-defaultcurre.change.md b/.hark/changes/2016-03-29_unknown_add-accessors-defaultcurre.change.md new file mode 100644 index 000000000000..c766413d0373 --- /dev/null +++ b/.hark/changes/2016-03-29_unknown_add-accessors-defaultcurre.change.md @@ -0,0 +1,4 @@ +--- +title: Add accessors for `default_currency` to `CountrySpec` model +released_in_version: 1.48.0 +--- diff --git a/.hark/changes/2016-04-08_unknown_change-getbusinessu-getbusinessu.change.md b/.hark/changes/2016-04-08_unknown_change-getbusinessu-getbusinessu.change.md new file mode 100644 index 000000000000..151e15a01d66 --- /dev/null +++ b/.hark/changes/2016-04-08_unknown_change-getbusinessu-getbusinessu.change.md @@ -0,0 +1,4 @@ +--- +title: Change `getBusinessUrl` to `getBusinessURL` in `Account` model +released_in_version: 2.0.0 +--- diff --git a/.hark/changes/2016-04-08_unknown_change-getsupportur-getsupportur.change.md b/.hark/changes/2016-04-08_unknown_change-getsupportur-getsupportur.change.md new file mode 100644 index 000000000000..2981c17ff444 --- /dev/null +++ b/.hark/changes/2016-04-08_unknown_change-getsupportur-getsupportur.change.md @@ -0,0 +1,4 @@ +--- +title: Change `getSupportUrl` to `getSupportURL` in `Account` model +released_in_version: 2.0.0 +--- diff --git a/.hark/changes/2016-04-08_unknown_change-geturl-geturl.change.md b/.hark/changes/2016-04-08_unknown_change-geturl-geturl.change.md new file mode 100644 index 000000000000..cffdfc486f7b --- /dev/null +++ b/.hark/changes/2016-04-08_unknown_change-geturl-geturl.change.md @@ -0,0 +1,4 @@ +--- +title: Change `getUrl` to `getURL` in `Product` model +released_in_version: 2.0.0 +--- diff --git a/.hark/changes/2016-04-08_unknown_change-geturl-geturl2.change.md b/.hark/changes/2016-04-08_unknown_change-geturl-geturl2.change.md new file mode 100644 index 000000000000..84ef03c9613f --- /dev/null +++ b/.hark/changes/2016-04-08_unknown_change-geturl-geturl2.change.md @@ -0,0 +1,4 @@ +--- +title: Change `getUrl` to `getURL` in `StripeCollection` model +released_in_version: 2.0.0 +--- diff --git a/.hark/changes/2016-04-08_unknown_change-geturl-geturl3.change.md b/.hark/changes/2016-04-08_unknown_change-geturl-geturl3.change.md new file mode 100644 index 000000000000..315c38f30052 --- /dev/null +++ b/.hark/changes/2016-04-08_unknown_change-geturl-geturl3.change.md @@ -0,0 +1,4 @@ +--- +title: Change `getUrl` to `getURL` in `StripeCollectionInterface` +released_in_version: 2.0.0 +--- diff --git a/.hark/changes/2016-04-08_unknown_change-seturl-seturl.change.md b/.hark/changes/2016-04-08_unknown_change-seturl-seturl.change.md new file mode 100644 index 000000000000..6d547701a28e --- /dev/null +++ b/.hark/changes/2016-04-08_unknown_change-seturl-seturl.change.md @@ -0,0 +1,4 @@ +--- +title: Change `setUrl` to `setURL` in `Product` model +released_in_version: 2.0.0 +--- diff --git a/.hark/changes/2016-04-08_unknown_change-seturl-seturl2.change.md b/.hark/changes/2016-04-08_unknown_change-seturl-seturl2.change.md new file mode 100644 index 000000000000..a4f2f62c4eff --- /dev/null +++ b/.hark/changes/2016-04-08_unknown_change-seturl-seturl2.change.md @@ -0,0 +1,4 @@ +--- +title: Change `setUrl` to `setURL` in `StripeCollection` model +released_in_version: 2.0.0 +--- diff --git a/.hark/changes/2016-04-08_unknown_remove-previously-deprecated.change.md b/.hark/changes/2016-04-08_unknown_remove-previously-deprecated.change.md new file mode 100644 index 000000000000..1dcb386d8f97 --- /dev/null +++ b/.hark/changes/2016-04-08_unknown_remove-previously-deprecated.change.md @@ -0,0 +1,4 @@ +--- +title: Remove previously-deprecated `getUrl` in `StripeCollectionAPIResource` model +released_in_version: 2.0.0 +--- diff --git a/.hark/changes/2016-04-12_unknown_add-outcome-charge.change.md b/.hark/changes/2016-04-12_unknown_add-outcome-charge.change.md new file mode 100644 index 000000000000..76a013fba538 --- /dev/null +++ b/.hark/changes/2016-04-12_unknown_add-outcome-charge.change.md @@ -0,0 +1,4 @@ +--- +title: Add `Outcome` to the `Charge` model +released_in_version: 2.2.0 +--- diff --git a/.hark/changes/2016-04-12_unknown_deprecate-getaccount-setaccount.change.md b/.hark/changes/2016-04-12_unknown_deprecate-getaccount-setaccount.change.md new file mode 100644 index 000000000000..85684880a0fa --- /dev/null +++ b/.hark/changes/2016-04-12_unknown_deprecate-getaccount-setaccount.change.md @@ -0,0 +1,4 @@ +--- +title: Deprecate `getAccount` and `setAccount` on `Transfer` +released_in_version: 2.1.0 +--- diff --git a/.hark/changes/2016-04-12_unknown_deprecate-getcard-setcard.change.md b/.hark/changes/2016-04-12_unknown_deprecate-getcard-setcard.change.md new file mode 100644 index 000000000000..f9825e7e12a0 --- /dev/null +++ b/.hark/changes/2016-04-12_unknown_deprecate-getcard-setcard.change.md @@ -0,0 +1,4 @@ +--- +title: Deprecate `getCard` and `setCard` on `Charge` +released_in_version: 2.1.0 +--- diff --git a/.hark/changes/2016-04-12_unknown_deprecate-getothertran-setothertran.change.md b/.hark/changes/2016-04-12_unknown_deprecate-getothertran-setothertran.change.md new file mode 100644 index 000000000000..0c67ff556545 --- /dev/null +++ b/.hark/changes/2016-04-12_unknown_deprecate-getothertran-setothertran.change.md @@ -0,0 +1,4 @@ +--- +title: Deprecate `getOtherTransfers` and `setOtherTransfers` on `Transfer` +released_in_version: 2.1.0 +--- diff --git a/.hark/changes/2016-04-12_unknown_deprecate-getsummary-setsummary.change.md b/.hark/changes/2016-04-12_unknown_deprecate-getsummary-setsummary.change.md new file mode 100644 index 000000000000..ab23ac9aa399 --- /dev/null +++ b/.hark/changes/2016-04-12_unknown_deprecate-getsummary-setsummary.change.md @@ -0,0 +1,4 @@ +--- +title: Deprecate `getSummary` and `setSummary` on `Transfer` +released_in_version: 2.1.0 +--- diff --git a/.hark/changes/2016-04-12_unknown_deprecate-getuser-setuser.change.md b/.hark/changes/2016-04-12_unknown_deprecate-getuser-setuser.change.md new file mode 100644 index 000000000000..805168043646 --- /dev/null +++ b/.hark/changes/2016-04-12_unknown_deprecate-getuser-setuser.change.md @@ -0,0 +1,4 @@ +--- +title: Deprecate `getUser` and `setUser` on `ApplicationFee` +released_in_version: 2.1.0 +--- diff --git a/.hark/changes/2016-04-18_unknown_add-source-types.change.md b/.hark/changes/2016-04-18_unknown_add-source-types.change.md new file mode 100644 index 000000000000..956b1a35e536 --- /dev/null +++ b/.hark/changes/2016-04-18_unknown_add-source-types.change.md @@ -0,0 +1,4 @@ +--- +title: Add source types to `Money` model under the `Balance` model +released_in_version: 2.3.0 +--- diff --git a/.hark/changes/2016-04-21_unknown_add-many-missing.change.md b/.hark/changes/2016-04-21_unknown_add-many-missing.change.md new file mode 100644 index 000000000000..25c0a31da78f --- /dev/null +++ b/.hark/changes/2016-04-21_unknown_add-many-missing.change.md @@ -0,0 +1,4 @@ +--- +title: "Add many missing fields to many models (see #285 for details)" +released_in_version: 2.4.0 +--- diff --git a/.hark/changes/2016-05-04_unknown_add-retrieve-update.change.md b/.hark/changes/2016-05-04_unknown_add-retrieve-update.change.md new file mode 100644 index 000000000000..7700a9e10947 --- /dev/null +++ b/.hark/changes/2016-05-04_unknown_add-retrieve-update.change.md @@ -0,0 +1,4 @@ +--- +title: Add `retrieve`, `update`, `create`, `all`, and `delete` methods to the Subscription class +released_in_version: 2.5.0 +--- diff --git a/.hark/changes/2016-05-23_unknown_give-all-collection.change.md b/.hark/changes/2016-05-23_unknown_give-all-collection.change.md new file mode 100644 index 000000000000..8d0c76d47542 --- /dev/null +++ b/.hark/changes/2016-05-23_unknown_give-all-collection.change.md @@ -0,0 +1,4 @@ +--- +title: Give all collection classes access to auto-paginating helpers that work beyond first page +released_in_version: 2.5.1 +--- diff --git a/.hark/changes/2016-05-25_unknown_add-support-returning.change.md b/.hark/changes/2016-05-25_unknown_add-support-returning.change.md new file mode 100644 index 000000000000..882a2e9ab603 --- /dev/null +++ b/.hark/changes/2016-05-25_unknown_add-support-returning.change.md @@ -0,0 +1,4 @@ +--- +title: Add support for returning Relay orders +released_in_version: 2.6.0 +--- diff --git a/.hark/changes/2016-06-13_unknown_fix-serializatio-businessurl.change.md b/.hark/changes/2016-06-13_unknown_fix-serializatio-businessurl.change.md new file mode 100644 index 000000000000..9c1d7ed9a33b --- /dev/null +++ b/.hark/changes/2016-06-13_unknown_fix-serializatio-businessurl.change.md @@ -0,0 +1,4 @@ +--- +title: Fix serialization of `businessURL` and `supportURL` in `Account` model +released_in_version: 2.6.1 +--- diff --git a/.hark/changes/2016-07-12_unknown_add-threedsecure-model.change.md b/.hark/changes/2016-07-12_unknown_add-threedsecure-model.change.md new file mode 100644 index 000000000000..35520b56dd2e --- /dev/null +++ b/.hark/changes/2016-07-12_unknown_add-threedsecure-model.change.md @@ -0,0 +1,4 @@ +--- +title: Add `ThreeDSecure` model for 3-D secure payments +released_in_version: 2.7.0 +--- diff --git a/.hark/changes/2016-08-05_unknown_add-source-model.change.md b/.hark/changes/2016-08-05_unknown_add-source-model.change.md new file mode 100644 index 000000000000..23c4537e9f59 --- /dev/null +++ b/.hark/changes/2016-08-05_unknown_add-source-model.change.md @@ -0,0 +1,4 @@ +--- +title: Add `Source` model (prototype) +released_in_version: 2.8.0 +--- diff --git a/.hark/changes/2016-09-07_unknown_add-description-iin.change.md b/.hark/changes/2016-09-07_unknown_add-description-iin.change.md new file mode 100644 index 000000000000..d20867283254 --- /dev/null +++ b/.hark/changes/2016-09-07_unknown_add-description-iin.change.md @@ -0,0 +1,4 @@ +--- +title: Add `description`, `iin`, and `issuer` attributes to `Card` model +released_in_version: 2.9.0 +--- diff --git a/.hark/changes/2016-09-16_unknown_add-support-apple.change.md b/.hark/changes/2016-09-16_unknown_add-support-apple.change.md new file mode 100644 index 000000000000..b1018ea38956 --- /dev/null +++ b/.hark/changes/2016-09-16_unknown_add-support-apple.change.md @@ -0,0 +1,4 @@ +--- +title: Add support for Apple Pay domains +released_in_version: 2.10.0 +--- diff --git a/.hark/changes/2016-10-06_unknown_fix-bug-where.change.md b/.hark/changes/2016-10-06_unknown_fix-bug-where.change.md new file mode 100644 index 000000000000..bc8b22a34fe3 --- /dev/null +++ b/.hark/changes/2016-10-06_unknown_fix-bug-where.change.md @@ -0,0 +1,4 @@ +--- +title: Fix bug where the Transfer transactions method wasn't using requestCollection +released_in_version: 2.10.1 +--- diff --git a/.hark/changes/2016-10-13_unknown_fix-nullpointere-sourcedeseri.change.md b/.hark/changes/2016-10-13_unknown_fix-nullpointere-sourcedeseri.change.md new file mode 100644 index 000000000000..ba52900b03be --- /dev/null +++ b/.hark/changes/2016-10-13_unknown_fix-nullpointere-sourcedeseri.change.md @@ -0,0 +1,4 @@ +--- +title: Fix NullPointerException in SourceDeserializer for bitcoin receivers, and refactor tests. +released_in_version: 2.10.2 +--- diff --git a/.hark/changes/2016-10-17_unknown_change-representati-money.change.md b/.hark/changes/2016-10-17_unknown_change-representati-money.change.md new file mode 100644 index 000000000000..287a1a06e17c --- /dev/null +++ b/.hark/changes/2016-10-17_unknown_change-representati-money.change.md @@ -0,0 +1,4 @@ +--- +title: Change representations of money (e.g. "amounts" or "balances") from `Integer` to `Long` +released_in_version: 3.0.0 +--- diff --git a/.hark/changes/2016-10-18_unknown_add-risklevel-attribute.change.md b/.hark/changes/2016-10-18_unknown_add-risklevel-attribute.change.md new file mode 100644 index 000000000000..35140d14add3 --- /dev/null +++ b/.hark/changes/2016-10-18_unknown_add-risklevel-attribute.change.md @@ -0,0 +1,4 @@ +--- +title: Add `risk_level` attribute to `ChargeOutcome` model +released_in_version: 3.2.0 +--- diff --git a/.hark/changes/2016-10-18_unknown_support-403-status.change.md b/.hark/changes/2016-10-18_unknown_support-403-status.change.md new file mode 100644 index 000000000000..31dde2c19d68 --- /dev/null +++ b/.hark/changes/2016-10-18_unknown_support-403-status.change.md @@ -0,0 +1,4 @@ +--- +title: Support for 403 status codes (permission denied) +released_in_version: 3.1.0 +--- diff --git a/.hark/changes/2016-11-22_unknown_add-retrieve-method.change.md b/.hark/changes/2016-11-22_unknown_add-retrieve-method.change.md new file mode 100644 index 000000000000..563b95acb349 --- /dev/null +++ b/.hark/changes/2016-11-22_unknown_add-retrieve-method.change.md @@ -0,0 +1,4 @@ +--- +title: Add retrieve method for 3-D Secure resources +released_in_version: 3.3.0 +--- diff --git a/.hark/changes/2016-12-08_unknown_add-expandable-charge.change.md b/.hark/changes/2016-12-08_unknown_add-expandable-charge.change.md new file mode 100644 index 000000000000..d663eab889c8 --- /dev/null +++ b/.hark/changes/2016-12-08_unknown_add-expandable-charge.change.md @@ -0,0 +1,4 @@ +--- +title: Add expandable Charge to Invoice +released_in_version: 3.5.0 +--- diff --git a/.hark/changes/2017-01-03_unknown_add-non-public.change.md b/.hark/changes/2017-01-03_unknown_add-non-public.change.md new file mode 100644 index 000000000000..60b00c8b3013 --- /dev/null +++ b/.hark/changes/2017-01-03_unknown_add-non-public.change.md @@ -0,0 +1,4 @@ +--- +title: Add non-public `network_reason_code` to `Dispute` model +released_in_version: 3.6.0 +--- diff --git a/.hark/changes/2017-01-06_unknown_add-getobject-setobject.change.md b/.hark/changes/2017-01-06_unknown_add-getobject-setobject.change.md new file mode 100644 index 000000000000..3de973f7f1db --- /dev/null +++ b/.hark/changes/2017-01-06_unknown_add-getobject-setobject.change.md @@ -0,0 +1,4 @@ +--- +title: Add `getObject`/`setObject` to a number of models where it was missing +released_in_version: 3.7.0 +--- diff --git a/.hark/changes/2017-01-06_unknown_add-tojson-method.change.md b/.hark/changes/2017-01-06_unknown_add-tojson-method.change.md new file mode 100644 index 000000000000..5da5cc9c3ac7 --- /dev/null +++ b/.hark/changes/2017-01-06_unknown_add-tojson-method.change.md @@ -0,0 +1,4 @@ +--- +title: Add `toJson` method to `StripeObject` +released_in_version: 3.7.0 +--- diff --git a/.hark/changes/2017-01-23_unknown_add-chargeoutcom-chargeoutcom.change.md b/.hark/changes/2017-01-23_unknown_add-chargeoutcom-chargeoutcom.change.md new file mode 100644 index 000000000000..92df5949887a --- /dev/null +++ b/.hark/changes/2017-01-23_unknown_add-chargeoutcom-chargeoutcom.change.md @@ -0,0 +1,4 @@ +--- +title: Add `ChargeOutcomeRule` to `ChargeOutcome` +released_in_version: 3.8.0 +--- diff --git a/.hark/changes/2017-02-02_unknown_add-variant-account.change.md b/.hark/changes/2017-02-02_unknown_add-variant-account.change.md new file mode 100644 index 000000000000..d3b873361fe5 --- /dev/null +++ b/.hark/changes/2017-02-02_unknown_add-variant-account.change.md @@ -0,0 +1,4 @@ +--- +title: Add variant of account `delete` that doesn't require parameters +released_in_version: 3.9.0 +--- diff --git a/.hark/changes/2017-02-13_unknown_deprecated-sourced-transfers.change.md b/.hark/changes/2017-02-13_unknown_deprecated-sourced-transfers.change.md new file mode 100644 index 000000000000..52b1d9c1cc5e --- /dev/null +++ b/.hark/changes/2017-02-13_unknown_deprecated-sourced-transfers.change.md @@ -0,0 +1,4 @@ +--- +title: Deprecated sourced transfers under balance transactions +released_in_version: 3.10.0 +--- diff --git a/.hark/changes/2017-02-21_unknown_add-missing-api.change.md b/.hark/changes/2017-02-21_unknown_add-missing-api.change.md new file mode 100644 index 000000000000..0a5fa3f124a7 --- /dev/null +++ b/.hark/changes/2017-02-21_unknown_add-missing-api.change.md @@ -0,0 +1,4 @@ +--- +title: Add missing API resources to object deserializer +released_in_version: 3.10.2 +--- diff --git a/.hark/changes/2017-02-21_unknown_release-inadvertentl-empty.change.md b/.hark/changes/2017-02-21_unknown_release-inadvertentl-empty.change.md new file mode 100644 index 000000000000..0378eb52a6a6 --- /dev/null +++ b/.hark/changes/2017-02-21_unknown_release-inadvertentl-empty.change.md @@ -0,0 +1,4 @@ +--- +title: This release was inadvertently empty. See 3.10.2 for changes. +released_in_version: 3.10.1 +--- diff --git a/.hark/changes/2017-02-22_unknown_add-new-parameters.change.md b/.hark/changes/2017-02-22_unknown_add-new-parameters.change.md new file mode 100644 index 000000000000..2769b57ad909 --- /dev/null +++ b/.hark/changes/2017-02-22_unknown_add-new-parameters.change.md @@ -0,0 +1,4 @@ +--- +title: Add new parameters for invoices and subscriptions +released_in_version: 3.11.0 +--- diff --git a/.hark/changes/2017-03-13_unknown_add-missing-fields.change.md b/.hark/changes/2017-03-13_unknown_add-missing-fields.change.md new file mode 100644 index 000000000000..b0a08ef5552b --- /dev/null +++ b/.hark/changes/2017-03-13_unknown_add-missing-fields.change.md @@ -0,0 +1,4 @@ +--- +title: "Add missing fields on order: `amountReturned`, `returns`, and `upstreamId`" +released_in_version: 4.0.0 +--- diff --git a/.hark/changes/2017-03-13_unknown_charge-order-becomes.change.md b/.hark/changes/2017-03-13_unknown_charge-order-becomes.change.md new file mode 100644 index 000000000000..cbff39c98da7 --- /dev/null +++ b/.hark/changes/2017-03-13_unknown_charge-order-becomes.change.md @@ -0,0 +1,4 @@ +--- +title: Charge on order becomes expandable field (not expanded by default) +released_in_version: 4.0.0 +--- diff --git a/.hark/changes/2017-03-13_unknown_customer-order-becomes.change.md b/.hark/changes/2017-03-13_unknown_customer-order-becomes.change.md new file mode 100644 index 000000000000..cfee9543ba0b --- /dev/null +++ b/.hark/changes/2017-03-13_unknown_customer-order-becomes.change.md @@ -0,0 +1,4 @@ +--- +title: Customer on order becomes expandable field (not expanded by default) +released_in_version: 4.0.0 +--- diff --git a/.hark/changes/2017-03-13_unknown_dispute-charge-becomes.change.md b/.hark/changes/2017-03-13_unknown_dispute-charge-becomes.change.md new file mode 100644 index 000000000000..dc02d1adf347 --- /dev/null +++ b/.hark/changes/2017-03-13_unknown_dispute-charge-becomes.change.md @@ -0,0 +1,4 @@ +--- +title: Dispute on charge becomes expandable field (not expanded by default) +released_in_version: 4.0.0 +--- diff --git a/.hark/changes/2017-03-13_unknown_fix-type-orderreturnc.change.md b/.hark/changes/2017-03-13_unknown_fix-type-orderreturnc.change.md new file mode 100644 index 000000000000..1cb3dece6f08 --- /dev/null +++ b/.hark/changes/2017-03-13_unknown_fix-type-orderreturnc.change.md @@ -0,0 +1,4 @@ +--- +title: Fix type of `OrderReturnCollection` (now actually an order return) +released_in_version: 4.0.0 +--- diff --git a/.hark/changes/2017-04-04_unknown_make-rule-under.change.md b/.hark/changes/2017-04-04_unknown_make-rule-under.change.md new file mode 100644 index 000000000000..363f334718ce --- /dev/null +++ b/.hark/changes/2017-04-04_unknown_make-rule-under.change.md @@ -0,0 +1,4 @@ +--- +title: Make `rule` under `ChargeOutcome` expandable +released_in_version: 4.1.0 +--- diff --git a/.hark/changes/2017-04-06_unknown_add-support-payouts.change.md b/.hark/changes/2017-04-06_unknown_add-support-payouts.change.md new file mode 100644 index 000000000000..d70dd448e72d --- /dev/null +++ b/.hark/changes/2017-04-06_unknown_add-support-payouts.change.md @@ -0,0 +1,4 @@ +--- +title: "Add support for payouts; see: https://docs.stripe.com/changelog/2017-04-06" +released_in_version: 4.2.0 +--- diff --git a/.hark/changes/2017-04-12_unknown_add-support-availablepay.change.md b/.hark/changes/2017-04-12_unknown_add-support-availablepay.change.md new file mode 100644 index 000000000000..a94c2b5520ba --- /dev/null +++ b/.hark/changes/2017-04-12_unknown_add-support-availablepay.change.md @@ -0,0 +1,4 @@ +--- +title: Add support for `available_payout_methods` to `Card` model +released_in_version: 4.3.0 +--- diff --git a/.hark/changes/2017-04-24_unknown_add-payout-properties.change.md b/.hark/changes/2017-04-24_unknown_add-payout-properties.change.md new file mode 100644 index 000000000000..eed48662db67 --- /dev/null +++ b/.hark/changes/2017-04-24_unknown_add-payout-properties.change.md @@ -0,0 +1,4 @@ +--- +title: Add payout properties to `Account` model +released_in_version: 4.4.0 +--- diff --git a/.hark/changes/2017-04-28_unknown_make-connect-read.change.md b/.hark/changes/2017-04-28_unknown_make-connect-read.change.md new file mode 100644 index 000000000000..03bbbcdf3145 --- /dev/null +++ b/.hark/changes/2017-04-28_unknown_make-connect-read.change.md @@ -0,0 +1,4 @@ +--- +title: Make connect and read timeouts configurable (see README for details) +released_in_version: 4.5.0 +--- diff --git a/.hark/changes/2017-04-28_unknown_support-checking-webhook.change.md b/.hark/changes/2017-04-28_unknown_support-checking-webhook.change.md new file mode 100644 index 000000000000..1284ad83686b --- /dev/null +++ b/.hark/changes/2017-04-28_unknown_support-checking-webhook.change.md @@ -0,0 +1,4 @@ +--- +title: Support for checking webhook signatures +released_in_version: 4.6.0 +--- diff --git a/.hark/changes/2017-05-02_unknown_add-threedsecure-accessors.change.md b/.hark/changes/2017-05-02_unknown_add-threedsecure-accessors.change.md new file mode 100644 index 000000000000..c895f0d25d47 --- /dev/null +++ b/.hark/changes/2017-05-02_unknown_add-threedsecure-accessors.change.md @@ -0,0 +1,4 @@ +--- +title: Add `three_d_secure` accessors to `Card` model +released_in_version: 4.7.0 +--- diff --git a/.hark/changes/2017-05-25_unknown_add-support-account.change.md b/.hark/changes/2017-05-25_unknown_add-support-account.change.md new file mode 100644 index 000000000000..4e4f093dec0c --- /dev/null +++ b/.hark/changes/2017-05-25_unknown_add-support-account.change.md @@ -0,0 +1,4 @@ +--- +title: Add support for account login links +released_in_version: 4.8.0 +--- diff --git a/.hark/changes/2017-05-25_unknown_release-should-5.change.md b/.hark/changes/2017-05-25_unknown_release-should-5.change.md new file mode 100644 index 000000000000..3866be1fdda2 --- /dev/null +++ b/.hark/changes/2017-05-25_unknown_release-should-5.change.md @@ -0,0 +1,4 @@ +--- +title: This release should have been 5.0.0, see notes for that +released_in_version: 4.9.0 +--- diff --git a/.hark/changes/2017-05-30_unknown_release-should-5.change.md b/.hark/changes/2017-05-30_unknown_release-should-5.change.md new file mode 100644 index 000000000000..265618282b88 --- /dev/null +++ b/.hark/changes/2017-05-30_unknown_release-should-5.change.md @@ -0,0 +1,4 @@ +--- +title: This release should have been 5.0.0, see notes for that +released_in_version: 4.9.1 +--- diff --git a/.hark/changes/2017-05-31_unknown_clarify-tolerance-parameter.change.md b/.hark/changes/2017-05-31_unknown_clarify-tolerance-parameter.change.md new file mode 100644 index 000000000000..b922388da7cb --- /dev/null +++ b/.hark/changes/2017-05-31_unknown_clarify-tolerance-parameter.change.md @@ -0,0 +1,4 @@ +--- +title: Clarify tolerance parameter for webhook signatures is in seconds +released_in_version: 5.0.0 +--- diff --git a/.hark/changes/2017-05-31_unknown_support-expanded-request.change.md b/.hark/changes/2017-05-31_unknown_support-expanded-request.change.md new file mode 100644 index 000000000000..1274bc7ff143 --- /dev/null +++ b/.hark/changes/2017-05-31_unknown_support-expanded-request.change.md @@ -0,0 +1,4 @@ +--- +title: Support expanded request in `Event` model (now with idempotency key) +released_in_version: 5.0.0 +--- diff --git a/.hark/changes/2017-06-07_unknown_add-account-field.change.md b/.hark/changes/2017-06-07_unknown_add-account-field.change.md new file mode 100644 index 000000000000..06280c697ee6 --- /dev/null +++ b/.hark/changes/2017-06-07_unknown_add-account-field.change.md @@ -0,0 +1,4 @@ +--- +title: Add `account` field to the event model +released_in_version: 5.1.0 +--- diff --git a/.hark/changes/2017-06-09_unknown_support-expandable-sources.change.md b/.hark/changes/2017-06-09_unknown_support-expandable-sources.change.md new file mode 100644 index 000000000000..2844c6edebed --- /dev/null +++ b/.hark/changes/2017-06-09_unknown_support-expandable-sources.change.md @@ -0,0 +1,4 @@ +--- +title: Support for expandable sources in balance transactions +released_in_version: 5.2.0 +--- diff --git a/.hark/changes/2017-06-14_unknown_add-missing-expandable.change.md b/.hark/changes/2017-06-14_unknown_add-missing-expandable.change.md new file mode 100644 index 000000000000..911c855b513c --- /dev/null +++ b/.hark/changes/2017-06-14_unknown_add-missing-expandable.change.md @@ -0,0 +1,4 @@ +--- +title: Add missing expandable fields on every model +released_in_version: 5.3.0 +--- diff --git a/.hark/changes/2017-06-19_unknown_add-support-ephemeral.change.md b/.hark/changes/2017-06-19_unknown_add-support-ephemeral.change.md new file mode 100644 index 000000000000..6647620db923 --- /dev/null +++ b/.hark/changes/2017-06-19_unknown_add-support-ephemeral.change.md @@ -0,0 +1,4 @@ +--- +title: Add support for ephemeral keys +released_in_version: 5.4.0 +--- diff --git a/.hark/changes/2017-06-23_unknown_add-support-alternate.change.md b/.hark/changes/2017-06-23_unknown_add-support-alternate.change.md new file mode 100644 index 000000000000..5568d6380289 --- /dev/null +++ b/.hark/changes/2017-06-23_unknown_add-support-alternate.change.md @@ -0,0 +1,4 @@ +--- +title: Add support for alternate statement descriptors on charge +released_in_version: 5.5.0 +--- diff --git a/.hark/changes/2017-06-27_unknown_pay-invoice-can.change.md b/.hark/changes/2017-06-27_unknown_pay-invoice-can.change.md new file mode 100644 index 000000000000..e7bc641f02c7 --- /dev/null +++ b/.hark/changes/2017-06-27_unknown_pay-invoice-can.change.md @@ -0,0 +1,4 @@ +--- +title: "`pay` on invoice can now take parameters" +released_in_version: 5.6.0 +--- diff --git a/.hark/changes/2017-07-11_unknown_force-utf-8.change.md b/.hark/changes/2017-07-11_unknown_force-utf-8.change.md new file mode 100644 index 000000000000..4f07af8d62e3 --- /dev/null +++ b/.hark/changes/2017-07-11_unknown_force-utf-8.change.md @@ -0,0 +1,4 @@ +--- +title: Force UTF-8 encoding for webhook signature verification +released_in_version: 5.7.1 +--- diff --git a/.hark/changes/2017-07-11_unknown_use-standard-library.change.md b/.hark/changes/2017-07-11_unknown_use-standard-library.change.md new file mode 100644 index 000000000000..694b30f4081a --- /dev/null +++ b/.hark/changes/2017-07-11_unknown_use-standard-library.change.md @@ -0,0 +1,4 @@ +--- +title: Use standard library comparison for webhook signature verification +released_in_version: 5.7.0 +--- diff --git a/.hark/changes/2017-08-31_unknown_add-support-all.change.md b/.hark/changes/2017-08-31_unknown_add-support-all.change.md new file mode 100644 index 000000000000..3772e2d4fa80 --- /dev/null +++ b/.hark/changes/2017-08-31_unknown_add-support-all.change.md @@ -0,0 +1,4 @@ +--- +title: Add support for all OAuth actions +released_in_version: 5.8.0 +--- diff --git a/.hark/changes/2017-09-25_unknown_support-java-9.change.md b/.hark/changes/2017-09-25_unknown_support-java-9.change.md new file mode 100644 index 000000000000..6f0680f8eaa0 --- /dev/null +++ b/.hark/changes/2017-09-25_unknown_support-java-9.change.md @@ -0,0 +1,4 @@ +--- +title: Support Java 9 (just involves upgrading a few Maven plugins) +released_in_version: 5.9.0 +--- diff --git a/.hark/changes/2017-10-03_unknown_longer-clobber-global.change.md b/.hark/changes/2017-10-03_unknown_longer-clobber-global.change.md new file mode 100644 index 000000000000..5d2621634122 --- /dev/null +++ b/.hark/changes/2017-10-03_unknown_longer-clobber-global.change.md @@ -0,0 +1,4 @@ +--- +title: No longer clobber global value of DNS cache TTL if it has not been set +released_in_version: 5.9.1 +--- diff --git a/.hark/changes/2017-10-04_unknown_add-failurereaso-field.change.md b/.hark/changes/2017-10-04_unknown_add-failurereaso-field.change.md new file mode 100644 index 000000000000..0909b4d076a4 --- /dev/null +++ b/.hark/changes/2017-10-04_unknown_add-failurereaso-field.change.md @@ -0,0 +1,4 @@ +--- +title: Add `failure_reason` field to the source redirect flow model +released_in_version: 5.10.0 +--- diff --git a/.hark/changes/2017-10-09_brandur_add-support-detaching.change.md b/.hark/changes/2017-10-09_brandur_add-support-detaching.change.md new file mode 100644 index 000000000000..153f0cbebc84 --- /dev/null +++ b/.hark/changes/2017-10-09_brandur_add-support-detaching.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for detaching sources from customers +pr_url: https://github.com/stripe/stripe-java/pull/412 +released_in_version: 5.21.0 +--- diff --git a/.hark/changes/2017-10-09_brandur_rename-verification-code.change.md b/.hark/changes/2017-10-09_brandur_rename-verification-code.change.md new file mode 100644 index 000000000000..82e5a4699ef7 --- /dev/null +++ b/.hark/changes/2017-10-09_brandur_rename-verification-code.change.md @@ -0,0 +1,5 @@ +--- +title: Rename "verification" to "code verification" for sources (should have been unused up to this point) +pr_url: https://github.com/stripe/stripe-java/pull/410 +released_in_version: 5.21.0 +--- diff --git a/.hark/changes/2017-10-09_unknown_note-some-minor.change.md b/.hark/changes/2017-10-09_unknown_note-some-minor.change.md new file mode 100644 index 000000000000..61a243ac66f6 --- /dev/null +++ b/.hark/changes/2017-10-09_unknown_note-some-minor.change.md @@ -0,0 +1,4 @@ +--- +title: 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! +released_in_version: 5.21.0 +--- diff --git a/.hark/changes/2017-10-27_brandur_support-listing-source.change.md b/.hark/changes/2017-10-27_brandur_support-listing-source.change.md new file mode 100644 index 000000000000..26849eb40cbb --- /dev/null +++ b/.hark/changes/2017-10-27_brandur_support-listing-source.change.md @@ -0,0 +1,5 @@ +--- +title: Support for listing source transactions +pr_url: https://github.com/stripe/stripe-java/pull/417 +released_in_version: 5.22.0 +--- diff --git a/.hark/changes/2017-10-27_mrmcduff_move-build-release.change.md b/.hark/changes/2017-10-27_mrmcduff_move-build-release.change.md new file mode 100644 index 000000000000..41490bf39761 --- /dev/null +++ b/.hark/changes/2017-10-27_mrmcduff_move-build-release.change.md @@ -0,0 +1,5 @@ +--- +title: Move build and release system from Maven to Gradle +pr_url: https://github.com/stripe/stripe-java/pull/418 +released_in_version: 5.22.1 +--- diff --git a/.hark/changes/2017-10-31_brandur_support-exchange-rate.change.md b/.hark/changes/2017-10-31_brandur_support-exchange-rate.change.md new file mode 100644 index 000000000000..dc74e0bbe885 --- /dev/null +++ b/.hark/changes/2017-10-31_brandur_support-exchange-rate.change.md @@ -0,0 +1,5 @@ +--- +title: Support for exchange rate APIs +pr_url: https://github.com/stripe/stripe-java/pull/419 +released_in_version: 5.23.0 +--- diff --git a/.hark/changes/2017-11-09_brandur_fix-json-encoding.change.md b/.hark/changes/2017-11-09_brandur_fix-json-encoding.change.md new file mode 100644 index 000000000000..064df3c7c552 --- /dev/null +++ b/.hark/changes/2017-11-09_brandur_fix-json-encoding.change.md @@ -0,0 +1,5 @@ +--- +title: Fix JSON encoding for expandable fields by adding customer encoder +pr_url: https://github.com/stripe/stripe-java/pull/423 +released_in_version: 5.23.1 +--- diff --git a/.hark/changes/2017-11-28_ob_add-automatic-property.change.md b/.hark/changes/2017-11-28_ob_add-automatic-property.change.md new file mode 100644 index 000000000000..40a23e0f3a89 --- /dev/null +++ b/.hark/changes/2017-11-28_ob_add-automatic-property.change.md @@ -0,0 +1,5 @@ +--- +title: Add `automatic` property on `Payout` model +pr_url: https://github.com/stripe/stripe-java/pull/427 +released_in_version: 5.24.0 +--- diff --git a/.hark/changes/2017-11-28_ob_expose-response-objects.change.md b/.hark/changes/2017-11-28_ob_expose-response-objects.change.md new file mode 100644 index 000000000000..23e652b4c7f8 --- /dev/null +++ b/.hark/changes/2017-11-28_ob_expose-response-objects.change.md @@ -0,0 +1,5 @@ +--- +title: Expose response objects +pr_url: https://github.com/stripe/stripe-java/pull/421 +released_in_version: 5.24.0 +--- diff --git a/.hark/changes/2017-12-06_brandur_make-charge-dispute.change.md b/.hark/changes/2017-12-06_brandur_make-charge-dispute.change.md new file mode 100644 index 000000000000..b547f756d91b --- /dev/null +++ b/.hark/changes/2017-12-06_brandur_make-charge-dispute.change.md @@ -0,0 +1,5 @@ +--- +title: Make charge on `Dispute` expandable +pr_url: https://github.com/stripe/stripe-java/pull/432 +released_in_version: 5.25.0 +--- diff --git a/.hark/changes/2017-12-18_brandur_add-proper-set.change.md b/.hark/changes/2017-12-18_brandur_add-proper-set.change.md new file mode 100644 index 000000000000..1c882efd27e9 --- /dev/null +++ b/.hark/changes/2017-12-18_brandur_add-proper-set.change.md @@ -0,0 +1,5 @@ +--- +title: Add the proper set of overloads for account reject method +pr_url: https://github.com/stripe/stripe-java/pull/436 +released_in_version: 5.26.0 +--- diff --git a/.hark/changes/2017-12-18_brandur_fix-bug-where.change.md b/.hark/changes/2017-12-18_brandur_fix-bug-where.change.md new file mode 100644 index 000000000000..c70a4f1704cd --- /dev/null +++ b/.hark/changes/2017-12-18_brandur_fix-bug-where.change.md @@ -0,0 +1,5 @@ +--- +title: Fix bug where `options` were not being plumbed through in an account delete method +pr_url: https://github.com/stripe/stripe-java/pull/436 +released_in_version: 5.26.0 +--- diff --git a/.hark/changes/2017-12-22_brandur_add-support-passing.change.md b/.hark/changes/2017-12-22_brandur_add-support-passing.change.md new file mode 100644 index 000000000000..415c9c8abfb5 --- /dev/null +++ b/.hark/changes/2017-12-22_brandur_add-support-passing.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for passing parameters to `SubscriptionItem.delete()` +pr_url: https://github.com/stripe/stripe-java/pull/438 +released_in_version: 5.27.0 +--- diff --git a/.hark/changes/2018-01-02_brandur_upgrade-gson-dependency.change.md b/.hark/changes/2018-01-02_brandur_upgrade-gson-dependency.change.md new file mode 100644 index 000000000000..8de23665c304 --- /dev/null +++ b/.hark/changes/2018-01-02_brandur_upgrade-gson-dependency.change.md @@ -0,0 +1,5 @@ +--- +title: Upgrade GSON dependency to 2.8.2 +pr_url: https://github.com/stripe/stripe-java/pull/439 +released_in_version: 5.28.0 +--- diff --git a/.hark/changes/2018-02-08_pantera_update-plan-product.change.md b/.hark/changes/2018-02-08_pantera_update-plan-product.change.md new file mode 100644 index 000000000000..c23f40ebabc6 --- /dev/null +++ b/.hark/changes/2018-02-08_pantera_update-plan-product.change.md @@ -0,0 +1,5 @@ +--- +title: Update `Plan`, `Product` and `Subscription` models for latest API version +pr_url: https://github.com/stripe/stripe-java/pull/447 +released_in_version: 5.29.0 +--- diff --git a/.hark/changes/2018-02-13_ob_add-stripe-setappinfo.change.md b/.hark/changes/2018-02-13_ob_add-stripe-setappinfo.change.md new file mode 100644 index 000000000000..aa30160a831f --- /dev/null +++ b/.hark/changes/2018-02-13_ob_add-stripe-setappinfo.change.md @@ -0,0 +1,5 @@ +--- +title: Add `Stripe.setAppInfo()` for passing custom application information in headers +pr_url: https://github.com/stripe/stripe-java/pull/449 +released_in_version: 5.30.0 +--- diff --git a/.hark/changes/2018-02-13_ob_add-support-deserializin.change.md b/.hark/changes/2018-02-13_ob_add-support-deserializin.change.md new file mode 100644 index 000000000000..4b34e6d5cc19 --- /dev/null +++ b/.hark/changes/2018-02-13_ob_add-support-deserializin.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for deserializing `source_mandate_notification` objects +pr_url: https://github.com/stripe/stripe-java/pull/446 +released_in_version: 5.31.0 +--- diff --git a/.hark/changes/2018-02-21_ob_add-support-topups.change.md b/.hark/changes/2018-02-21_ob_add-support-topups.change.md new file mode 100644 index 000000000000..40403b113681 --- /dev/null +++ b/.hark/changes/2018-02-21_ob_add-support-topups.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for topups +pr_url: https://github.com/stripe/stripe-java/pull/453 +released_in_version: 5.32.0 +--- diff --git a/.hark/changes/2018-02-23_ob_add-support-code.change.md b/.hark/changes/2018-02-23_ob_add-support-code.change.md new file mode 100644 index 000000000000..e4479912bd79 --- /dev/null +++ b/.hark/changes/2018-02-23_ob_add-support-code.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `code` attribute on all Stripe exceptions +pr_url: https://github.com/stripe/stripe-java/pull/455 +released_in_version: 5.33.0 +--- diff --git a/.hark/changes/2018-02-27_ob_add-title-version.change.md b/.hark/changes/2018-02-27_ob_add-title-version.change.md new file mode 100644 index 000000000000..4f3076fae428 --- /dev/null +++ b/.hark/changes/2018-02-27_ob_add-title-version.change.md @@ -0,0 +1,5 @@ +--- +title: Add title, version and vendor in JAR manifest file +pr_url: https://github.com/stripe/stripe-java/pull/457 +released_in_version: 5.33.1 +--- diff --git a/.hark/changes/2018-02-28_ob_remove-deprecation-markers.change.md b/.hark/changes/2018-02-28_ob_remove-deprecation-markers.change.md new file mode 100644 index 000000000000..908a9df4a30a --- /dev/null +++ b/.hark/changes/2018-02-28_ob_remove-deprecation-markers.change.md @@ -0,0 +1,5 @@ +--- +title: Remove deprecation markers from `sourceTransaction` accessors on `Transfer` model +pr_url: https://github.com/stripe/stripe-java/pull/458 +released_in_version: 5.33.2 +--- diff --git a/.hark/changes/2018-03-21_ob_add-osgi-headers.change.md b/.hark/changes/2018-03-21_ob_add-osgi-headers.change.md new file mode 100644 index 000000000000..f5aec944d3f0 --- /dev/null +++ b/.hark/changes/2018-03-21_ob_add-osgi-headers.change.md @@ -0,0 +1,5 @@ +--- +title: Add OSGi headers to manifest file +pr_url: https://github.com/stripe/stripe-java/pull/464 +released_in_version: 5.33.3 +--- diff --git a/.hark/changes/2018-03-22_ob_add-support-passing.change.md b/.hark/changes/2018-03-22_ob_add-support-passing.change.md new file mode 100644 index 000000000000..ca8bc9b40375 --- /dev/null +++ b/.hark/changes/2018-03-22_ob_add-support-passing.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for passing parameters to `autoPagingIterable()` +pr_url: https://github.com/stripe/stripe-java/pull/459 +released_in_version: 5.34.0 +--- diff --git a/.hark/changes/2018-03-22_ob_fix-serializatio-null.change.md b/.hark/changes/2018-03-22_ob_fix-serializatio-null.change.md new file mode 100644 index 000000000000..66af5f078c25 --- /dev/null +++ b/.hark/changes/2018-03-22_ob_fix-serializatio-null.change.md @@ -0,0 +1,5 @@ +--- +title: Fix serialization of null expandable attributes +pr_url: https://github.com/stripe/stripe-java/pull/466 +released_in_version: 5.34.0 +--- diff --git a/.hark/changes/2018-03-23_ob_add-support-expanding.change.md b/.hark/changes/2018-03-23_ob_add-support-expanding.change.md new file mode 100644 index 000000000000..d21148f17725 --- /dev/null +++ b/.hark/changes/2018-03-23_ob_add-support-expanding.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for expanding `product` attribute on `Plan` model +pr_url: https://github.com/stripe/stripe-java/pull/469 +released_in_version: 5.34.1 +--- diff --git a/.hark/changes/2018-04-04_alexander_add-support-flexible.change.md b/.hark/changes/2018-04-04_alexander_add-support-flexible.change.md new file mode 100644 index 000000000000..cf6e19e254bb --- /dev/null +++ b/.hark/changes/2018-04-04_alexander_add-support-flexible.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for flexible billing primitives +pr_url: https://github.com/stripe/stripe-java/pull/462 +released_in_version: 5.35.0 +--- diff --git a/.hark/changes/2018-04-06_ob_fix-two-bugs.change.md b/.hark/changes/2018-04-06_ob_fix-two-bugs.change.md new file mode 100644 index 000000000000..9ed843a73bb6 --- /dev/null +++ b/.hark/changes/2018-04-06_ob_fix-two-bugs.change.md @@ -0,0 +1,5 @@ +--- +title: Fix two bugs found by Error Prone +pr_url: https://github.com/stripe/stripe-java/pull/498 +released_in_version: 5.35.1 +--- diff --git a/.hark/changes/2018-05-09_brandur_add-support-issuer.change.md b/.hark/changes/2018-05-09_brandur_add-support-issuer.change.md new file mode 100644 index 000000000000..e2cb0d66993a --- /dev/null +++ b/.hark/changes/2018-05-09_brandur_add-support-issuer.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for issuer fraud records +pr_url: https://github.com/stripe/stripe-java/pull/505 +released_in_version: 5.36.0 +--- diff --git a/.hark/changes/2018-06-04_ob_library-now-uses.change.md b/.hark/changes/2018-06-04_ob_library-now-uses.change.md new file mode 100644 index 000000000000..4329ef4b1527 --- /dev/null +++ b/.hark/changes/2018-06-04_ob_library-now-uses.change.md @@ -0,0 +1,5 @@ +--- +title: The library now uses Project Lombok. All API resource classes now have `equals` and `hashCode` methods. +pr_url: https://github.com/stripe/stripe-java/pull/302 +released_in_version: 5.37.0 +--- diff --git a/.hark/changes/2018-06-06_brandur_add-active-property.change.md b/.hark/changes/2018-06-06_brandur_add-active-property.change.md new file mode 100644 index 000000000000..c03a35ebd72f --- /dev/null +++ b/.hark/changes/2018-06-06_brandur_add-active-property.change.md @@ -0,0 +1,5 @@ +--- +title: Add `active` property to `Plan` model +pr_url: https://github.com/stripe/stripe-java/pull/516 +released_in_version: 5.38.0 +--- diff --git a/.hark/changes/2018-06-06_ob_add-onbehalfof-property.change.md b/.hark/changes/2018-06-06_ob_add-onbehalfof-property.change.md new file mode 100644 index 000000000000..5e174bc18bf9 --- /dev/null +++ b/.hark/changes/2018-06-06_ob_add-onbehalfof-property.change.md @@ -0,0 +1,5 @@ +--- +title: Add `on_behalf_of` property on `Charge` model +pr_url: https://github.com/stripe/stripe-java/pull/513 +released_in_version: 5.37.0 +--- diff --git a/.hark/changes/2018-06-06_ob_fix-update-methods.change.md b/.hark/changes/2018-06-06_ob_fix-update-methods.change.md new file mode 100644 index 000000000000..72bc7921d3aa --- /dev/null +++ b/.hark/changes/2018-06-06_ob_fix-update-methods.change.md @@ -0,0 +1,5 @@ +--- +title: Fix `update()` methods for `FeeRefund` and `Reversal` +pr_url: https://github.com/stripe/stripe-java/pull/512 +released_in_version: 5.37.0 +--- diff --git a/.hark/changes/2018-06-07_ob_add-hostedinvoic-invoicepdf.change.md b/.hark/changes/2018-06-07_ob_add-hostedinvoic-invoicepdf.change.md new file mode 100644 index 000000000000..fd7efb23a9c6 --- /dev/null +++ b/.hark/changes/2018-06-07_ob_add-hostedinvoic-invoicepdf.change.md @@ -0,0 +1,5 @@ +--- +title: Add `hosted_invoice_url` and `invoice_pdf` properties to `Invoice` model +pr_url: https://github.com/stripe/stripe-java/pull/515 +released_in_version: 5.39.0 +--- diff --git a/.hark/changes/2018-06-13_ob_add-documentback-property.change.md b/.hark/changes/2018-06-13_ob_add-documentback-property.change.md new file mode 100644 index 000000000000..2f84f334407e --- /dev/null +++ b/.hark/changes/2018-06-13_ob_add-documentback-property.change.md @@ -0,0 +1,5 @@ +--- +title: Add `documentBack` property to `LegalEntity` model +pr_url: https://github.com/stripe/stripe-java/pull/521 +released_in_version: 5.40.0 +--- diff --git a/.hark/changes/2018-06-14_ob_add-amountpaid-amountremain.change.md b/.hark/changes/2018-06-14_ob_add-amountpaid-amountremain.change.md new file mode 100644 index 000000000000..034abc11a92b --- /dev/null +++ b/.hark/changes/2018-06-14_ob_add-amountpaid-amountremain.change.md @@ -0,0 +1,5 @@ +--- +title: Add `amountPaid`, `amountRemaining` and `billingReason` to `Invoice` model +pr_url: https://github.com/stripe/stripe-java/pull/522 +released_in_version: 5.41.0 +--- diff --git a/.hark/changes/2018-06-16_ob_add-name-coupon.change.md b/.hark/changes/2018-06-16_ob_add-name-coupon.change.md new file mode 100644 index 000000000000..671e9b2bbbc2 --- /dev/null +++ b/.hark/changes/2018-06-16_ob_add-name-coupon.change.md @@ -0,0 +1,5 @@ +--- +title: Add `name` to `Coupon` model +pr_url: https://github.com/stripe/stripe-java/pull/528 +released_in_version: 5.41.1 +--- diff --git a/.hark/changes/2018-06-19_ob_annotate-lot-methods.change.md b/.hark/changes/2018-06-19_ob_annotate-lot-methods.change.md new file mode 100644 index 000000000000..8d9abf40c025 --- /dev/null +++ b/.hark/changes/2018-06-19_ob_annotate-lot-methods.change.md @@ -0,0 +1,5 @@ +--- +title: Annotate a lot of methods as deprecated and flagged for removal in the next major release +pr_url: https://github.com/stripe/stripe-java/pull/529 +released_in_version: 5.42.0 +--- diff --git a/.hark/changes/2018-06-20_ob_remove-deprecated-methods.change.md b/.hark/changes/2018-06-20_ob_remove-deprecated-methods.change.md new file mode 100644 index 000000000000..21a597b6144b --- /dev/null +++ b/.hark/changes/2018-06-20_ob_remove-deprecated-methods.change.md @@ -0,0 +1,5 @@ +--- +title: Remove deprecated methods +pr_url: https://github.com/stripe/stripe-java/pull/532 +released_in_version: 6.0.0 +--- diff --git a/.hark/changes/2018-06-22_ob_change-signatures-throw.change.md b/.hark/changes/2018-06-22_ob_change-signatures-throw.change.md new file mode 100644 index 000000000000..bd692a69344b --- /dev/null +++ b/.hark/changes/2018-06-22_ob_change-signatures-throw.change.md @@ -0,0 +1,5 @@ +--- +title: Change signatures to throw StripeException +pr_url: https://github.com/stripe/stripe-java/pull/535 +released_in_version: 6.0.0 +--- diff --git a/.hark/changes/2018-06-22_ob_only-capitalize-first.change.md b/.hark/changes/2018-06-22_ob_only-capitalize-first.change.md new file mode 100644 index 000000000000..133fae55d835 --- /dev/null +++ b/.hark/changes/2018-06-22_ob_only-capitalize-first.change.md @@ -0,0 +1,5 @@ +--- +title: Only capitalize the first letter of acronyms per Google's style rules +pr_url: https://github.com/stripe/stripe-java/pull/534 +released_in_version: 6.0.0 +--- diff --git a/.hark/changes/2018-06-25_ob_add-level3-property.change.md b/.hark/changes/2018-06-25_ob_add-level3-property.change.md new file mode 100644 index 000000000000..87dabff899b2 --- /dev/null +++ b/.hark/changes/2018-06-25_ob_add-level3-property.change.md @@ -0,0 +1,5 @@ +--- +title: Add `level3` property on `Charge` model +pr_url: https://github.com/stripe/stripe-java/pull/537 +released_in_version: 5.43.0 +--- diff --git a/.hark/changes/2018-06-25_ob_change-all-integer.change.md b/.hark/changes/2018-06-25_ob_change-all-integer.change.md new file mode 100644 index 000000000000..359b8bfe1945 --- /dev/null +++ b/.hark/changes/2018-06-25_ob_change-all-integer.change.md @@ -0,0 +1,5 @@ +--- +title: Change all integer types to `Long` and all floating point types to `Double` +pr_url: https://github.com/stripe/stripe-java/pull/538 +released_in_version: 6.0.0 +--- diff --git a/.hark/changes/2018-06-27_ob_add-customerrefe-shippingfrom.change.md b/.hark/changes/2018-06-27_ob_add-customerrefe-shippingfrom.change.md new file mode 100644 index 000000000000..ee99c0a3e4ab --- /dev/null +++ b/.hark/changes/2018-06-27_ob_add-customerrefe-shippingfrom.change.md @@ -0,0 +1,5 @@ +--- +title: Add `customerReference` and `shippingFromZip` properties on `ChargeLevel3` model +pr_url: https://github.com/stripe/stripe-java/pull/539 +released_in_version: 5.44.0 +--- diff --git a/.hark/changes/2018-06-27_ob_add-support-idempotency.change.md b/.hark/changes/2018-06-27_ob_add-support-idempotency.change.md new file mode 100644 index 000000000000..0e1528c6f042 --- /dev/null +++ b/.hark/changes/2018-06-27_ob_add-support-idempotency.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for idempotency errors +pr_url: https://github.com/stripe/stripe-java/pull/540 +released_in_version: 6.0.0 +--- diff --git a/.hark/changes/2018-06-27_ob_minor-fixes.change.md b/.hark/changes/2018-06-27_ob_minor-fixes.change.md new file mode 100644 index 000000000000..cd2c36d6d5cd --- /dev/null +++ b/.hark/changes/2018-06-27_ob_minor-fixes.change.md @@ -0,0 +1,5 @@ +--- +title: Minor fixes +pr_url: https://github.com/stripe/stripe-java/pull/541 +released_in_version: 6.0.0 +--- diff --git a/.hark/changes/2018-06-28_spastorelli_fix-account-application.change.md b/.hark/changes/2018-06-28_spastorelli_fix-account-application.change.md new file mode 100644 index 000000000000..857fd879a40c --- /dev/null +++ b/.hark/changes/2018-06-28_spastorelli_fix-account-application.change.md @@ -0,0 +1,5 @@ +--- +title: Fix `account.application.*` event data deserialization issue +pr_url: https://github.com/stripe/stripe-java/pull/542 +released_in_version: 5.45.0 +--- diff --git a/.hark/changes/2018-06-29_ob_add-support-payment.change.md b/.hark/changes/2018-06-29_ob_add-support-payment.change.md new file mode 100644 index 000000000000..8c914082a2cf --- /dev/null +++ b/.hark/changes/2018-06-29_ob_add-support-payment.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for payment intents +pr_url: https://github.com/stripe/stripe-java/pull/543 +released_in_version: 5.46.0 +--- diff --git a/.hark/changes/2018-07-02_ob_add-setclientid-requestoptio.change.md b/.hark/changes/2018-07-02_ob_add-setclientid-requestoptio.change.md new file mode 100644 index 000000000000..6308e9a4c225 --- /dev/null +++ b/.hark/changes/2018-07-02_ob_add-setclientid-requestoptio.change.md @@ -0,0 +1,5 @@ +--- +title: Add `setClientId()` to `RequestOptionsBuilder` +pr_url: https://github.com/stripe/stripe-java/pull/546 +released_in_version: 5.47.0 +--- diff --git a/.hark/changes/2018-07-03_ob_add-support-streams.change.md b/.hark/changes/2018-07-03_ob_add-support-streams.change.md new file mode 100644 index 000000000000..8f651cb97e48 --- /dev/null +++ b/.hark/changes/2018-07-03_ob_add-support-streams.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for streams when uploading files +pr_url: https://github.com/stripe/stripe-java/pull/544 +released_in_version: 5.48.0 +--- diff --git a/.hark/changes/2018-07-06_ob_add-subscription-property.change.md b/.hark/changes/2018-07-06_ob_add-subscription-property.change.md new file mode 100644 index 000000000000..021985c89f0c --- /dev/null +++ b/.hark/changes/2018-07-06_ob_add-subscription-property.change.md @@ -0,0 +1,5 @@ +--- +title: Add `subscriptionItem` property to `InvoiceItem` and `InvoiceLineItem` +pr_url: https://github.com/stripe/stripe-java/pull/548 +released_in_version: 5.49.0 +--- diff --git a/.hark/changes/2018-07-06_ob_move-nested-objects.change.md b/.hark/changes/2018-07-06_ob_move-nested-objects.change.md new file mode 100644 index 000000000000..ea8a05c1637d --- /dev/null +++ b/.hark/changes/2018-07-06_ob_move-nested-objects.change.md @@ -0,0 +1,5 @@ +--- +title: Move nested objects into inner static classes +pr_url: https://github.com/stripe/stripe-java/pull/547 +released_in_version: 6.0.0 +--- diff --git a/.hark/changes/2018-07-12_brandur_rename-applicationf-applicationf.change.md b/.hark/changes/2018-07-12_brandur_rename-applicationf-applicationf.change.md new file mode 100644 index 000000000000..04cf0ca74ed9 --- /dev/null +++ b/.hark/changes/2018-07-12_brandur_rename-applicationf-applicationf.change.md @@ -0,0 +1,5 @@ +--- +title: Rename `ApplicationFee` to `ApplicationFeeAmount` on `PaymentIntent` +pr_url: https://github.com/stripe/stripe-java/pull/552 +released_in_version: 5.50.0 +--- diff --git a/.hark/changes/2018-07-12_ob_add-autoadvance-property.change.md b/.hark/changes/2018-07-12_ob_add-autoadvance-property.change.md new file mode 100644 index 000000000000..d044684bb9ed --- /dev/null +++ b/.hark/changes/2018-07-12_ob_add-autoadvance-property.change.md @@ -0,0 +1,5 @@ +--- +title: Add `autoAdvance` property to `Invoice` +pr_url: https://github.com/stripe/stripe-java/pull/551 +released_in_version: 5.51.0 +--- diff --git a/.hark/changes/2018-07-26_ob_add-riskscore-property.change.md b/.hark/changes/2018-07-26_ob_add-riskscore-property.change.md new file mode 100644 index 000000000000..a5c3b893e085 --- /dev/null +++ b/.hark/changes/2018-07-26_ob_add-riskscore-property.change.md @@ -0,0 +1,5 @@ +--- +title: Add `riskScore` property to `ChargeOutcome` +pr_url: https://github.com/stripe/stripe-java/pull/556 +released_in_version: 5.52.0 +--- diff --git a/.hark/changes/2018-07-26_ob_add-support-stripeissuin.change.md b/.hark/changes/2018-07-26_ob_add-support-stripeissuin.change.md new file mode 100644 index 000000000000..fb53204dac41 --- /dev/null +++ b/.hark/changes/2018-07-26_ob_add-support-stripeissuin.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for StripeIssuing +pr_url: https://github.com/stripe/stripe-java/pull/557 +released_in_version: 5.52.0 +--- diff --git a/.hark/changes/2018-07-27_ob_remove-deleted-models.change.md b/.hark/changes/2018-07-27_ob_remove-deleted-models.change.md new file mode 100644 index 000000000000..5ae15e709f85 --- /dev/null +++ b/.hark/changes/2018-07-27_ob_remove-deleted-models.change.md @@ -0,0 +1,5 @@ +--- +title: Remove `Deleted*` models and add `deleted` attribute instead +pr_url: https://github.com/stripe/stripe-java/pull/553 +released_in_version: 6.0.0 +--- diff --git a/.hark/changes/2018-07-28_ob_add-support-scheduled.change.md b/.hark/changes/2018-07-28_ob_add-support-scheduled.change.md new file mode 100644 index 000000000000..16d5d54c9f7d --- /dev/null +++ b/.hark/changes/2018-07-28_ob_add-support-scheduled.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for scheduled query runs (`com.stripe.model.sigma.ScheduledQueryRun`) for Sigma +pr_url: https://github.com/stripe/stripe-java/pull/560 +released_in_version: 5.53.0 +--- diff --git a/.hark/changes/2018-07-28_ob_use-bigdecimal-floating.change.md b/.hark/changes/2018-07-28_ob_use-bigdecimal-floating.change.md new file mode 100644 index 000000000000..0966980de577 --- /dev/null +++ b/.hark/changes/2018-07-28_ob_use-bigdecimal-floating.change.md @@ -0,0 +1,5 @@ +--- +title: Use `BigDecimal` for floating point values +pr_url: https://github.com/stripe/stripe-java/pull/558 +released_in_version: 6.0.0 +--- diff --git a/.hark/changes/2018-07-30_ob_add-created-account.change.md b/.hark/changes/2018-07-30_ob_add-created-account.change.md new file mode 100644 index 000000000000..60286263a452 --- /dev/null +++ b/.hark/changes/2018-07-30_ob_add-created-account.change.md @@ -0,0 +1,5 @@ +--- +title: Add `created` to `Account` +pr_url: https://github.com/stripe/stripe-java/pull/561 +released_in_version: 6.1.0 +--- diff --git a/.hark/changes/2018-08-01_ob_add-object-attribute.change.md b/.hark/changes/2018-08-01_ob_add-object-attribute.change.md new file mode 100644 index 000000000000..42bb4428c8b1 --- /dev/null +++ b/.hark/changes/2018-08-01_ob_add-object-attribute.change.md @@ -0,0 +1,5 @@ +--- +title: Add `object` attribute and accessors to `StripeCollection` +pr_url: https://github.com/stripe/stripe-java/pull/566 +released_in_version: 6.2.0 +--- diff --git a/.hark/changes/2018-08-01_ob_add-retrieve-method.change.md b/.hark/changes/2018-08-01_ob_add-retrieve-method.change.md new file mode 100644 index 000000000000..1daca4511a55 --- /dev/null +++ b/.hark/changes/2018-08-01_ob_add-retrieve-method.change.md @@ -0,0 +1,5 @@ +--- +title: Add a `retrieve()` method that accepts parameters (e.g. for expansion) to all resource classes +pr_url: https://github.com/stripe/stripe-java/pull/565 +released_in_version: 6.2.0 +--- diff --git a/.hark/changes/2018-08-02_ob_use-delomboked-sources.change.md b/.hark/changes/2018-08-02_ob_use-delomboked-sources.change.md new file mode 100644 index 000000000000..4cdd84d4c16e --- /dev/null +++ b/.hark/changes/2018-08-02_ob_use-delomboked-sources.change.md @@ -0,0 +1,5 @@ +--- +title: Use delomboked sources when creating sources JAR +pr_url: https://github.com/stripe/stripe-java/pull/567 +released_in_version: 6.2.1 +--- diff --git a/.hark/changes/2018-08-03_ob_add-cancel-support.change.md b/.hark/changes/2018-08-03_ob_add-cancel-support.change.md new file mode 100644 index 000000000000..35bc6b399e32 --- /dev/null +++ b/.hark/changes/2018-08-03_ob_add-cancel-support.change.md @@ -0,0 +1,5 @@ +--- +title: Add cancel support for topups +pr_url: https://github.com/stripe/stripe-java/pull/568 +released_in_version: 6.3.0 +--- diff --git a/.hark/changes/2018-08-03_ob_add-support-file.change.md b/.hark/changes/2018-08-03_ob_add-support-file.change.md new file mode 100644 index 000000000000..f6d2f5380143 --- /dev/null +++ b/.hark/changes/2018-08-03_ob_add-support-file.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for file links +pr_url: https://github.com/stripe/stripe-java/pull/569 +released_in_version: 6.3.0 +--- diff --git a/.hark/changes/2018-08-15_brandur_serialize-all-arrays.change.md b/.hark/changes/2018-08-15_brandur_serialize-all-arrays.change.md new file mode 100644 index 000000000000..e63dc4be3445 --- /dev/null +++ b/.hark/changes/2018-08-15_brandur_serialize-all-arrays.change.md @@ -0,0 +1,5 @@ +--- +title: Serialize all arrays/lists with integer-indexed encoding +pr_url: https://github.com/stripe/stripe-java/pull/572 +released_in_version: 6.4.0 +--- diff --git a/.hark/changes/2018-08-16_brandur_add-unitlabel-product.change.md b/.hark/changes/2018-08-16_brandur_add-unitlabel-product.change.md new file mode 100644 index 000000000000..87e8708fce18 --- /dev/null +++ b/.hark/changes/2018-08-16_brandur_add-unitlabel-product.change.md @@ -0,0 +1,5 @@ +--- +title: Add `unitLabel` to `Product` +pr_url: https://github.com/stripe/stripe-java/pull/574 +released_in_version: 6.5.0 +--- diff --git a/.hark/changes/2018-08-23_ob_add-support-usage.change.md b/.hark/changes/2018-08-23_ob_add-support-usage.change.md new file mode 100644 index 000000000000..0631e3145ef4 --- /dev/null +++ b/.hark/changes/2018-08-23_ob_add-support-usage.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for usage record summaries +pr_url: https://github.com/stripe/stripe-java/pull/576 +released_in_version: 6.6.0 +--- diff --git a/.hark/changes/2018-08-27_tomer_remove-support-bitcoinrecei.change.md b/.hark/changes/2018-08-27_tomer_remove-support-bitcoinrecei.change.md new file mode 100644 index 000000000000..cec1ba4ae5c7 --- /dev/null +++ b/.hark/changes/2018-08-27_tomer_remove-support-bitcoinrecei.change.md @@ -0,0 +1,5 @@ +--- +title: Remove support for `BitcoinReceiver` write-actions +pr_url: https://github.com/stripe/stripe-java/pull/575 +released_in_version: 6.7.0 +--- diff --git a/.hark/changes/2018-08-28_ob_add-authorizatio-charge.change.md b/.hark/changes/2018-08-28_ob_add-authorizatio-charge.change.md new file mode 100644 index 000000000000..5404444b7329 --- /dev/null +++ b/.hark/changes/2018-08-28_ob_add-authorizatio-charge.change.md @@ -0,0 +1,5 @@ +--- +title: Add `authorizationCode` to `Charge` +pr_url: https://github.com/stripe/stripe-java/pull/579 +released_in_version: 6.8.0 +--- diff --git a/.hark/changes/2018-08-28_ob_update-customer-plan.change.md b/.hark/changes/2018-08-28_ob_update-customer-plan.change.md new file mode 100644 index 000000000000..894685bfada8 --- /dev/null +++ b/.hark/changes/2018-08-28_ob_update-customer-plan.change.md @@ -0,0 +1,5 @@ +--- +title: Update `Customer` and `Plan` models for API version [2018-08-23](https://docs.stripe.com/changelog/2018-08-23) +pr_url: https://github.com/stripe/stripe-java/pull/577 +released_in_version: 6.8.0 +--- diff --git a/.hark/changes/2018-08-29_ob_add-missing-attributes.change.md b/.hark/changes/2018-08-29_ob_add-missing-attributes.change.md new file mode 100644 index 000000000000..2fb0eccf4220 --- /dev/null +++ b/.hark/changes/2018-08-29_ob_add-missing-attributes.change.md @@ -0,0 +1,5 @@ +--- +title: Add missing attributes to `Account` and `LegalEntity` +pr_url: https://github.com/stripe/stripe-java/pull/580 +released_in_version: 6.9.0 +--- diff --git a/.hark/changes/2018-08-29_ob_add-topup-cancel.change.md b/.hark/changes/2018-08-29_ob_add-topup-cancel.change.md new file mode 100644 index 000000000000..3050d0569839 --- /dev/null +++ b/.hark/changes/2018-08-29_ob_add-topup-cancel.change.md @@ -0,0 +1,5 @@ +--- +title: Add `Topup.cancel()` overload with no arguments +pr_url: https://github.com/stripe/stripe-java/pull/581 +released_in_version: 6.9.0 +--- diff --git a/.hark/changes/2018-09-05_ob_add-exchangerate-balancetrans.change.md b/.hark/changes/2018-09-05_ob_add-exchangerate-balancetrans.change.md new file mode 100644 index 000000000000..a139e8dd0066 --- /dev/null +++ b/.hark/changes/2018-09-05_ob_add-exchangerate-balancetrans.change.md @@ -0,0 +1,5 @@ +--- +title: Add `exchangeRate` to `BalanceTransaction` +pr_url: https://github.com/stripe/stripe-java/pull/583 +released_in_version: 6.10.0 +--- diff --git a/.hark/changes/2018-09-05_ob_add-support-reporting.change.md b/.hark/changes/2018-09-05_ob_add-support-reporting.change.md new file mode 100644 index 000000000000..9afdfd268bff --- /dev/null +++ b/.hark/changes/2018-09-05_ob_add-support-reporting.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for reporting resources +pr_url: https://github.com/stripe/stripe-java/pull/584 +released_in_version: 6.11.0 +--- diff --git a/.hark/changes/2018-09-06_ob_add-invoiceprefi-customer.change.md b/.hark/changes/2018-09-06_ob_add-invoiceprefi-customer.change.md new file mode 100644 index 000000000000..371cf70d898e --- /dev/null +++ b/.hark/changes/2018-09-06_ob_add-invoiceprefi-customer.change.md @@ -0,0 +1,5 @@ +--- +title: Add `invoicePrefix` to `Customer` +pr_url: https://github.com/stripe/stripe-java/pull/586 +released_in_version: 6.12.0 +--- diff --git a/.hark/changes/2018-09-22_ob_compatibilit-latest-api.change.md b/.hark/changes/2018-09-22_ob_compatibilit-latest-api.change.md new file mode 100644 index 000000000000..ab3986c6d9f8 --- /dev/null +++ b/.hark/changes/2018-09-22_ob_compatibilit-latest-api.change.md @@ -0,0 +1,5 @@ +--- +title: Compatibility with latest API version +pr_url: https://github.com/stripe/stripe-java/pull/598 +released_in_version: 7.0.0 +--- diff --git a/.hark/changes/2018-09-22_ob_replace-fileupload-class.change.md b/.hark/changes/2018-09-22_ob_replace-fileupload-class.change.md new file mode 100644 index 000000000000..6fbef5bba846 --- /dev/null +++ b/.hark/changes/2018-09-22_ob_replace-fileupload-class.change.md @@ -0,0 +1,5 @@ +--- +title: Replace `FileUpload` class with `File` class +pr_url: https://github.com/stripe/stripe-java/pull/593 +released_in_version: 7.0.0 +--- diff --git a/.hark/changes/2018-09-24_ob_support-terminal-endpoints.change.md b/.hark/changes/2018-09-24_ob_support-terminal-endpoints.change.md new file mode 100644 index 000000000000..adb4a057dcc5 --- /dev/null +++ b/.hark/changes/2018-09-24_ob_support-terminal-endpoints.change.md @@ -0,0 +1,5 @@ +--- +title: Support for terminal endpoints +pr_url: https://github.com/stripe/stripe-java/pull/592 +released_in_version: 7.0.0 +--- diff --git a/.hark/changes/2018-10-10_ob_adds-support-partnerid.change.md b/.hark/changes/2018-10-10_ob_adds-support-partnerid.change.md new file mode 100644 index 000000000000..4ecd872cb355 --- /dev/null +++ b/.hark/changes/2018-10-10_ob_adds-support-partnerid.change.md @@ -0,0 +1,5 @@ +--- +title: Adds support for `partnerId` in `setAppInfo()` +pr_url: https://github.com/stripe/stripe-java/pull/602 +released_in_version: 7.1.0 +--- diff --git a/.hark/changes/2018-10-31_remi_add-support-person.change.md b/.hark/changes/2018-10-31_remi_add-support-person.change.md new file mode 100644 index 000000000000..0004d59da329 --- /dev/null +++ b/.hark/changes/2018-10-31_remi_add-support-person.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for the `Person` resource +pr_url: https://github.com/stripe/stripe-java/pull/603 +released_in_version: 7.2.0 +--- diff --git a/.hark/changes/2018-10-31_remi_add-support-webhookendpo.change.md b/.hark/changes/2018-10-31_remi_add-support-webhookendpo.change.md new file mode 100644 index 000000000000..f69b6eb1b2b5 --- /dev/null +++ b/.hark/changes/2018-10-31_remi_add-support-webhookendpo.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for the `WebhookEndpoint` resource +pr_url: https://github.com/stripe/stripe-java/pull/606 +released_in_version: 7.2.0 +--- diff --git a/.hark/changes/2018-11-07_remi_add-flatamount-plan.change.md b/.hark/changes/2018-11-07_remi_add-flatamount-plan.change.md new file mode 100644 index 000000000000..fa12573c76fb --- /dev/null +++ b/.hark/changes/2018-11-07_remi_add-flatamount-plan.change.md @@ -0,0 +1,5 @@ +--- +title: Add `flatAmount` to `Plan.Tier` +pr_url: https://github.com/stripe/stripe-java/pull/610 +released_in_version: 7.3.0 +--- diff --git a/.hark/changes/2018-11-07_remi_add-supportaddre-account.change.md b/.hark/changes/2018-11-07_remi_add-supportaddre-account.change.md new file mode 100644 index 000000000000..e895aa076b16 --- /dev/null +++ b/.hark/changes/2018-11-07_remi_add-supportaddre-account.change.md @@ -0,0 +1,5 @@ +--- +title: Add `supportAddress` to `Account` +pr_url: https://github.com/stripe/stripe-java/pull/611 +released_in_version: 7.3.0 +--- diff --git a/.hark/changes/2018-11-07_remi_add-supportedtra-countryspec.change.md b/.hark/changes/2018-11-07_remi_add-supportedtra-countryspec.change.md new file mode 100644 index 000000000000..47092f0405f3 --- /dev/null +++ b/.hark/changes/2018-11-07_remi_add-supportedtra-countryspec.change.md @@ -0,0 +1,5 @@ +--- +title: Add `supportedTransferCountries` to `CountrySpec` +pr_url: https://github.com/stripe/stripe-java/pull/611 +released_in_version: 7.3.0 +--- diff --git a/.hark/changes/2018-11-08_remi_support-new-shape.change.md b/.hark/changes/2018-11-08_remi_support-new-shape.change.md new file mode 100644 index 000000000000..a1e088fade40 --- /dev/null +++ b/.hark/changes/2018-11-08_remi_support-new-shape.change.md @@ -0,0 +1,5 @@ +--- +title: Support new shape of the `PaymentIntent` resource. +pr_url: https://github.com/stripe/stripe-java/pull/609 +released_in_version: 7.4.0 +--- diff --git a/.hark/changes/2018-11-09_ob_throw-apiexception-malformed.change.md b/.hark/changes/2018-11-09_ob_throw-apiexception-malformed.change.md new file mode 100644 index 000000000000..80a8f1a6d82e --- /dev/null +++ b/.hark/changes/2018-11-09_ob_throw-apiexception-malformed.change.md @@ -0,0 +1,7 @@ +--- +title: Throw `ApiException` on malformed JSON responses +pr_url: https://github.com/stripe/stripe-java/pull/613 +released_in_version: 7.6.0 +--- + +- Previously, the library would throw `com.google.gson.JsonSyntaxException` in this case. We've chosen to release this as a minor update because we assume that most users are already catching Stripe exceptions. diff --git a/.hark/changes/2018-11-09_remi_add-new-api.change.md b/.hark/changes/2018-11-09_remi_add-new-api.change.md new file mode 100644 index 000000000000..58f25fa58b6e --- /dev/null +++ b/.hark/changes/2018-11-09_remi_add-new-api.change.md @@ -0,0 +1,5 @@ +--- +title: Add new API endpoints for the `Invoice` resource. +pr_url: https://github.com/stripe/stripe-java/pull/604 +released_in_version: 7.5.0 +--- diff --git a/.hark/changes/2018-11-14_remi_add-lastpaymente-paymentinten.change.md b/.hark/changes/2018-11-14_remi_add-lastpaymente-paymentinten.change.md new file mode 100644 index 000000000000..8589cae68c66 --- /dev/null +++ b/.hark/changes/2018-11-14_remi_add-lastpaymente-paymentinten.change.md @@ -0,0 +1,5 @@ +--- +title: Add `last_payment_error` to `PaymentIntent`. +pr_url: https://github.com/stripe/stripe-java/pull/615 +released_in_version: 7.7.0 +--- diff --git a/.hark/changes/2018-11-19_remi_add-missing-properties.change.md b/.hark/changes/2018-11-19_remi_add-missing-properties.change.md new file mode 100644 index 000000000000..63f4b3090bd4 --- /dev/null +++ b/.hark/changes/2018-11-19_remi_add-missing-properties.change.md @@ -0,0 +1,9 @@ +--- +title: "Add missing properties to a few resources:" +pr_url: https://github.com/stripe/stripe-java/pull/616 +released_in_version: 7.8.0 +--- + +* Add `default_source` to `Invoice` and `Subscription` +* Add `livemode` to Subscription +* Add `metadata` and `subscription` to `SubscriptionItem` diff --git a/.hark/changes/2018-11-27_ob_add-support-valuelist.change.md b/.hark/changes/2018-11-27_ob_add-support-valuelist.change.md new file mode 100644 index 000000000000..986b3fa6f814 --- /dev/null +++ b/.hark/changes/2018-11-27_ob_add-support-valuelist.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `ValueList` and `ValueListItem` for Radar +pr_url: https://github.com/stripe/stripe-java/pull/614 +released_in_version: 7.9.0 +--- diff --git a/.hark/changes/2018-11-28_remi_add-missing-properties.change.md b/.hark/changes/2018-11-28_remi_add-missing-properties.change.md new file mode 100644 index 000000000000..700e22059db6 --- /dev/null +++ b/.hark/changes/2018-11-28_remi_add-missing-properties.change.md @@ -0,0 +1,5 @@ +--- +title: Add missing properties on the `Refund` resource. +pr_url: https://github.com/stripe/stripe-java/pull/621 +released_in_version: 7.10.0 +--- diff --git a/.hark/changes/2018-11-28_remi_add-support-review.change.md b/.hark/changes/2018-11-28_remi_add-support-review.change.md new file mode 100644 index 000000000000..092a934f2abf --- /dev/null +++ b/.hark/changes/2018-11-28_remi_add-support-review.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for the `Review` APIs. +pr_url: https://github.com/stripe/stripe-java/pull/623 +released_in_version: 7.10.0 +--- diff --git a/.hark/changes/2018-12-27_remi_add-support-actionable.change.md b/.hark/changes/2018-12-27_remi_add-support-actionable.change.md new file mode 100644 index 000000000000..a721a265848b --- /dev/null +++ b/.hark/changes/2018-12-27_remi_add-support-actionable.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `actionable` and `has_liability_shift` on `IssuerFraudRecord` +pr_url: https://github.com/stripe/stripe-java/pull/629 +released_in_version: 7.11.0 +--- diff --git a/.hark/changes/2019-01-08_remi_add-support-walletprovid.change.md b/.hark/changes/2019-01-08_remi_add-support-walletprovid.change.md new file mode 100644 index 000000000000..57225dc85b0b --- /dev/null +++ b/.hark/changes/2019-01-08_remi_add-support-walletprovid.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `wallet_provider` on `Issuing.Authorization`. +pr_url: https://github.com/stripe/stripe-java/pull/634 +released_in_version: 7.12.0 +--- diff --git a/.hark/changes/2019-01-09_remi_add-support-accountlink.change.md b/.hark/changes/2019-01-09_remi_add-support-accountlink.change.md new file mode 100644 index 000000000000..95bf5a52a5da --- /dev/null +++ b/.hark/changes/2019-01-09_remi_add-support-accountlink.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for the `AccountLink` APIs. +pr_url: https://github.com/stripe/stripe-java/pull/626 +released_in_version: 7.13.0 +--- diff --git a/.hark/changes/2019-01-11_remi_add-support-deserializin.change.md b/.hark/changes/2019-01-11_remi_add-support-deserializin.change.md new file mode 100644 index 000000000000..957cda453a2d --- /dev/null +++ b/.hark/changes/2019-01-11_remi_add-support-deserializin.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for deserializing `IssuerFraudRecord` in events. +pr_url: https://github.com/stripe/stripe-java/pull/647 +released_in_version: 7.14.0 +--- diff --git a/.hark/changes/2019-01-11_remi_add-support-transferdata.change.md b/.hark/changes/2019-01-11_remi_add-support-transferdata.change.md new file mode 100644 index 000000000000..95aacf658aa7 --- /dev/null +++ b/.hark/changes/2019-01-11_remi_add-support-transferdata.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `transfer_data` and `application_fee_amount` on `Charge` and `transfer_data[destination] on `PaymentIntent`. +pr_url: https://github.com/stripe/stripe-java/pull/632 +released_in_version: 7.14.0 +--- diff --git a/.hark/changes/2019-01-14_remi_add-support-expandable.change.md b/.hark/changes/2019-01-14_remi_add-support-expandable.change.md new file mode 100644 index 000000000000..1dcc352d35f3 --- /dev/null +++ b/.hark/changes/2019-01-14_remi_add-support-expandable.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for expandable `transfer_data[destination]` on `Charge` and `PaymentIntent`. +pr_url: https://github.com/stripe/stripe-java/pull/652 +released_in_version: 7.15.0 +--- diff --git a/.hark/changes/2019-01-17_remi_add-support-billing.change.md b/.hark/changes/2019-01-17_remi_add-support-billing.change.md new file mode 100644 index 000000000000..540cf283b13d --- /dev/null +++ b/.hark/changes/2019-01-17_remi_add-support-billing.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for billing thresholds. +pr_url: https://github.com/stripe/stripe-java/pull/655 +released_in_version: 7.16.0 +--- diff --git a/.hark/changes/2019-01-17_remi_add-support-customfields.change.md b/.hark/changes/2019-01-17_remi_add-support-customfields.change.md new file mode 100644 index 000000000000..aa06e75ed273 --- /dev/null +++ b/.hark/changes/2019-01-17_remi_add-support-customfields.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `custom_fields` and `footer` on `Invoice`. +pr_url: https://github.com/stripe/stripe-java/pull/653 +released_in_version: 7.16.0 +--- diff --git a/.hark/changes/2019-01-18_remi_added-receipturl-property.change.md b/.hark/changes/2019-01-18_remi_added-receipturl-property.change.md new file mode 100644 index 000000000000..2dae48a776c1 --- /dev/null +++ b/.hark/changes/2019-01-18_remi_added-receipturl-property.change.md @@ -0,0 +1,5 @@ +--- +title: Added `receipt_url` property to `Charge`. +pr_url: https://github.com/stripe/stripe-java/pull/656 +released_in_version: 7.17.0 +--- diff --git a/.hark/changes/2019-01-25_remi_add-support-destinationp.change.md b/.hark/changes/2019-01-25_remi_add-support-destinationp.change.md new file mode 100644 index 000000000000..b43359bd16d2 --- /dev/null +++ b/.hark/changes/2019-01-25_remi_add-support-destinationp.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `destination_payment_refund` and `source_refund` on the `Reversal` resource. +pr_url: https://github.com/stripe/stripe-java/pull/649 +released_in_version: 7.18.0 +--- diff --git a/.hark/changes/2019-02-04_ob_better-handling-namespaced.change.md b/.hark/changes/2019-02-04_ob_better-handling-namespaced.change.md new file mode 100644 index 000000000000..f7ae2e316ece --- /dev/null +++ b/.hark/changes/2019-02-04_ob_better-handling-namespaced.change.md @@ -0,0 +1,5 @@ +--- +title: Better handling of namespaced resources +pr_url: https://github.com/stripe/stripe-java/pull/657 +released_in_version: 7.18.1 +--- diff --git a/.hark/changes/2019-02-04_ob_configure-gradle-signing.change.md b/.hark/changes/2019-02-04_ob_configure-gradle-signing.change.md new file mode 100644 index 000000000000..e0113384e3cc --- /dev/null +++ b/.hark/changes/2019-02-04_ob_configure-gradle-signing.change.md @@ -0,0 +1,5 @@ +--- +title: Configure Gradle signing plugin to use gpg-agent +pr_url: https://github.com/stripe/stripe-java/pull/665 +released_in_version: 7.18.1 +--- diff --git a/.hark/changes/2019-02-06_ob_add-configurable-telemetry.change.md b/.hark/changes/2019-02-06_ob_add-configurable-telemetry.change.md new file mode 100644 index 000000000000..d7537c5d1f53 --- /dev/null +++ b/.hark/changes/2019-02-06_ob_add-configurable-telemetry.change.md @@ -0,0 +1,5 @@ +--- +title: Add configurable telemetry to gather information on client-side request latency +pr_url: https://github.com/stripe/stripe-java/pull/661 +released_in_version: 7.19.0 +--- diff --git a/.hark/changes/2019-02-12_remi_add-support-api.change.md b/.hark/changes/2019-02-12_remi_add-support-api.change.md new file mode 100644 index 000000000000..159129031328 --- /dev/null +++ b/.hark/changes/2019-02-12_remi_add-support-api.change.md @@ -0,0 +1,8 @@ +--- +title: Add support for API version `2019-02-11` with changes to Payment Intents +pr_url: https://github.com/stripe/stripe-java/pull/670 +released_in_version: 7.20.0 +--- + +* `PaymentIntentSourceAction`, `PaymentIntentSourceActionValueAuthorizeWithUrl` and `next_source_action` are now depreacated. Use `PaymentIntent.NextAction`, `PaymentIntent.NextActionRedirectToUrl` and `next_action` instead. +* `allowed_source_types` is now depreacated. Use `payment_method_types` instead. diff --git a/.hark/changes/2019-02-12_remi_add-support-subscription.change.md b/.hark/changes/2019-02-12_remi_add-support-subscription.change.md new file mode 100644 index 000000000000..0958d68ad823 --- /dev/null +++ b/.hark/changes/2019-02-12_remi_add-support-subscription.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `SubscriptionSchedule` and `SubscriptionScheduleRevision`. Also add support for `invoice_settings` on `Customer`. +pr_url: https://github.com/stripe/stripe-java/pull/673 +released_in_version: 7.20.0 +--- diff --git a/.hark/changes/2019-02-12_remi_add-support-transferdata.change.md b/.hark/changes/2019-02-12_remi_add-support-transferdata.change.md new file mode 100644 index 000000000000..dd91a6532ecb --- /dev/null +++ b/.hark/changes/2019-02-12_remi_add-support-transferdata.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `transfer_data[amount]` on `Charge`. +pr_url: https://github.com/stripe/stripe-java/pull/677 +released_in_version: 7.20.0 +--- diff --git a/.hark/changes/2019-02-12_remi_customer-property-now.change.md b/.hark/changes/2019-02-12_remi_customer-property-now.change.md new file mode 100644 index 000000000000..ee3d49342bef --- /dev/null +++ b/.hark/changes/2019-02-12_remi_customer-property-now.change.md @@ -0,0 +1,5 @@ +--- +title: The `customer` property is now expandable on `Invoice`. +pr_url: https://github.com/stripe/stripe-java/pull/675 +released_in_version: 7.20.0 +--- diff --git a/.hark/changes/2019-02-13_remi_add-support-transferdata.change.md b/.hark/changes/2019-02-13_remi_add-support-transferdata.change.md new file mode 100644 index 000000000000..9ec0974108b4 --- /dev/null +++ b/.hark/changes/2019-02-13_remi_add-support-transferdata.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `transfer_data[destination]` on `Invoice` and `Subscription`. +pr_url: https://github.com/stripe/stripe-java/pull/648 +released_in_version: 7.21.0 +--- diff --git a/.hark/changes/2019-02-16_ob_add-stripeexcept-getstripeerr.change.md b/.hark/changes/2019-02-16_ob_add-stripeexcept-getstripeerr.change.md new file mode 100644 index 000000000000..0809ecabfbd6 --- /dev/null +++ b/.hark/changes/2019-02-16_ob_add-stripeexcept-getstripeerr.change.md @@ -0,0 +1,5 @@ +--- +title: Add `StripeException.getStripeError()` and `OAuthException.getOauthError()` accessors +pr_url: https://github.com/stripe/stripe-java/pull/678 +released_in_version: 7.22.0 +--- diff --git a/.hark/changes/2019-02-19_remi_add-support-api.change.md b/.hark/changes/2019-02-19_remi_add-support-api.change.md new file mode 100644 index 000000000000..48e12e8b0993 --- /dev/null +++ b/.hark/changes/2019-02-19_remi_add-support-api.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for API version `2019-02-19` and related changes to `Account` and `Person`. +pr_url: https://github.com/stripe/stripe-java/pull/660 +released_in_version: 7.23.0 +--- diff --git a/.hark/changes/2019-02-22_remi_add-support-statustransi.change.md b/.hark/changes/2019-02-22_remi_add-support-statustransi.change.md new file mode 100644 index 000000000000..9e179df326b7 --- /dev/null +++ b/.hark/changes/2019-02-22_remi_add-support-statustransi.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `status_transitions` and marked `date` as deprecated on `Invoice`. +pr_url: https://github.com/stripe/stripe-java/pull/681 +released_in_version: 7.24.0 +--- diff --git a/.hark/changes/2019-02-28_remi_add-apiversion-webhookendpo.change.md b/.hark/changes/2019-02-28_remi_add-apiversion-webhookendpo.change.md new file mode 100644 index 000000000000..7613ff034007 --- /dev/null +++ b/.hark/changes/2019-02-28_remi_add-apiversion-webhookendpo.change.md @@ -0,0 +1,5 @@ +--- +title: Add `api_version` to the `WebhookEndpoint` resource. +pr_url: https://github.com/stripe/stripe-java/pull/685 +released_in_version: 7.25.0 +--- diff --git a/.hark/changes/2019-02-28_remi_add-support-latestinvoic.change.md b/.hark/changes/2019-02-28_remi_add-support-latestinvoic.change.md new file mode 100644 index 000000000000..0f86b5fa3737 --- /dev/null +++ b/.hark/changes/2019-02-28_remi_add-support-latestinvoic.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `latest_invoice` on `Subscription`. +pr_url: https://github.com/stripe/stripe-java/pull/684 +released_in_version: 7.25.0 +--- diff --git a/.hark/changes/2019-03-07_remi_add-support-cancelat.change.md b/.hark/changes/2019-03-07_remi_add-support-cancelat.change.md new file mode 100644 index 000000000000..f16f588610f7 --- /dev/null +++ b/.hark/changes/2019-03-07_remi_add-support-cancelat.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `cancel_at` on `Subscription`. +pr_url: https://github.com/stripe/stripe-java/pull/686 +released_in_version: 7.26.0 +--- diff --git a/.hark/changes/2019-03-14_remi_add-support-columns.change.md b/.hark/changes/2019-03-14_remi_add-support-columns.change.md new file mode 100644 index 000000000000..a1d2d2113070 --- /dev/null +++ b/.hark/changes/2019-03-14_remi_add-support-columns.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `columns` on `ReportRun` and `default_columns` on `ReportType`. +pr_url: https://github.com/stripe/stripe-java/pull/689 +released_in_version: 7.27.0 +--- diff --git a/.hark/changes/2019-03-19_mickjermsurawong_major-version-release.change.md b/.hark/changes/2019-03-19_mickjermsurawong_major-version-release.change.md new file mode 100644 index 000000000000..5bb5941df75b --- /dev/null +++ b/.hark/changes/2019-03-19_mickjermsurawong_major-version-release.change.md @@ -0,0 +1,5 @@ +--- +title: Major version release. Supports a pinned API version [2019-03-14](https://docs.stripe.com/changelog/2019-03-14). Refer to our [migration guide for v8](https://github.com/stripe/stripe-java/wiki/Migration-guide-for-v8) for API upgrade guide and lists of backwards incompatible changes to watch out for. +pr_url: https://github.com/stripe/stripe-java/pull/662 +released_in_version: 8.0.0 +--- diff --git a/.hark/changes/2019-03-19_remi_add-support-deleting.change.md b/.hark/changes/2019-03-19_remi_add-support-deleting.change.md new file mode 100644 index 000000000000..c38ae5d2d687 --- /dev/null +++ b/.hark/changes/2019-03-19_remi_add-support-deleting.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for deleting a Terminal `Location` and `Reader` +pr_url: https://github.com/stripe/stripe-java/pull/691 +released_in_version: 7.28.0 +--- diff --git a/.hark/changes/2019-03-19_remi_add-support-paymentinten.change.md b/.hark/changes/2019-03-19_remi_add-support-paymentinten.change.md new file mode 100644 index 000000000000..82467f926b7f --- /dev/null +++ b/.hark/changes/2019-03-19_remi_add-support-paymentinten.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `payment_intent` on `Charge`. +pr_url: https://github.com/stripe/stripe-java/pull/695 +released_in_version: 7.29.0 +--- diff --git a/.hark/changes/2019-03-19_remi_add-support-paymentmetho.change.md b/.hark/changes/2019-03-19_remi_add-support-paymentmetho.change.md new file mode 100644 index 000000000000..86b5e41b06d6 --- /dev/null +++ b/.hark/changes/2019-03-19_remi_add-support-paymentmetho.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for the `PaymentMethod` resource and APIs +pr_url: https://github.com/stripe/stripe-java/pull/688 +released_in_version: 7.28.0 +--- diff --git a/.hark/changes/2019-03-20_mickjermsurawong_fix-java-doc.change.md b/.hark/changes/2019-03-20_mickjermsurawong_fix-java-doc.change.md new file mode 100644 index 000000000000..b87f2029f611 --- /dev/null +++ b/.hark/changes/2019-03-20_mickjermsurawong_fix-java-doc.change.md @@ -0,0 +1,5 @@ +--- +title: "Fix java doc on deprecated `EventData#getObject` and `Event#getDataObjectDeserializer`" +pr_url: https://github.com/stripe/stripe-java/pull/701 +released_in_version: 8.0.1 +--- diff --git a/.hark/changes/2019-03-20_mickjermsurawong_fix-test-compiler.change.md b/.hark/changes/2019-03-20_mickjermsurawong_fix-test-compiler.change.md new file mode 100644 index 000000000000..b2c56e28aee7 --- /dev/null +++ b/.hark/changes/2019-03-20_mickjermsurawong_fix-test-compiler.change.md @@ -0,0 +1,5 @@ +--- +title: Fix test compiler error by removing an accidental line +pr_url: https://github.com/stripe/stripe-java/pull/704 +released_in_version: 8.0.2 +--- diff --git a/.hark/changes/2019-03-20_ob_dev-dependency-version.change.md b/.hark/changes/2019-03-20_ob_dev-dependency-version.change.md new file mode 100644 index 000000000000..b81958ff7157 --- /dev/null +++ b/.hark/changes/2019-03-20_ob_dev-dependency-version.change.md @@ -0,0 +1,5 @@ +--- +title: Dev dependency version upgrades +pr_url: https://github.com/stripe/stripe-java/pull/702 +released_in_version: 9.0.0 +--- diff --git a/.hark/changes/2019-03-20_ob_dev-dependency-version2.change.md b/.hark/changes/2019-03-20_ob_dev-dependency-version2.change.md new file mode 100644 index 000000000000..595e486ffaf2 --- /dev/null +++ b/.hark/changes/2019-03-20_ob_dev-dependency-version2.change.md @@ -0,0 +1,5 @@ +--- +title: Dev dependency version upgrades (Junit 5) +pr_url: https://github.com/stripe/stripe-java/pull/706 +released_in_version: 9.0.0 +--- diff --git a/.hark/changes/2019-03-20_ob_drop-support-java.change.md b/.hark/changes/2019-03-20_ob_drop-support-java.change.md new file mode 100644 index 000000000000..2a1a5f02ad04 --- /dev/null +++ b/.hark/changes/2019-03-20_ob_drop-support-java.change.md @@ -0,0 +1,5 @@ +--- +title: Drop support for Java 1.7 +pr_url: https://github.com/stripe/stripe-java/pull/698 +released_in_version: 9.0.0 +--- diff --git a/.hark/changes/2019-03-25_mickjermsurawong_add-support-paymentmetho.change.md b/.hark/changes/2019-03-25_mickjermsurawong_add-support-paymentmetho.change.md new file mode 100644 index 000000000000..647b20fdb985 --- /dev/null +++ b/.hark/changes/2019-03-25_mickjermsurawong_add-support-paymentmetho.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `PaymentMethod.BillingDetails` on `Charge`. +pr_url: https://github.com/stripe/stripe-java/pull/710 +released_in_version: 8.1.0 +--- diff --git a/.hark/changes/2019-03-25_ob_fix-issues-reported.change.md b/.hark/changes/2019-03-25_ob_fix-issues-reported.change.md new file mode 100644 index 000000000000..0f6a936881b5 --- /dev/null +++ b/.hark/changes/2019-03-25_ob_fix-issues-reported.change.md @@ -0,0 +1,5 @@ +--- +title: Fix issues reported by `ErrorProne` Nothing major or user visible. +pr_url: https://github.com/stripe/stripe-java/pull/708 +released_in_version: 8.1.0 +--- diff --git a/.hark/changes/2019-04-08_mickjermsurawong_add-support-typed.change.md b/.hark/changes/2019-04-08_mickjermsurawong_add-support-typed.change.md new file mode 100644 index 000000000000..e6e26b9d8f89 --- /dev/null +++ b/.hark/changes/2019-04-08_mickjermsurawong_add-support-typed.change.md @@ -0,0 +1,5 @@ +--- +title: "Add support for typed parameters, change deserialization of array in `Event#previousAttributes` from `Object[]` to `List`" +pr_url: https://github.com/stripe/stripe-java/pull/705 +released_in_version: 9.0.0 +--- diff --git a/.hark/changes/2019-04-08_mickjermsurawong_use-optional-unsafe.change.md b/.hark/changes/2019-04-08_mickjermsurawong_use-optional-unsafe.change.md new file mode 100644 index 000000000000..bbd3e7118e39 --- /dev/null +++ b/.hark/changes/2019-04-08_mickjermsurawong_use-optional-unsafe.change.md @@ -0,0 +1,5 @@ +--- +title: Use `Optional` for unsafe event data object deserialization +pr_url: https://github.com/stripe/stripe-java/pull/723 +released_in_version: 9.0.0 +--- diff --git a/.hark/changes/2019-04-08_ob_use-errorprone-builds.change.md b/.hark/changes/2019-04-08_ob_use-errorprone-builds.change.md new file mode 100644 index 000000000000..c0d64639e029 --- /dev/null +++ b/.hark/changes/2019-04-08_ob_use-errorprone-builds.change.md @@ -0,0 +1,5 @@ +--- +title: Use ErrorProne in builds +pr_url: https://github.com/stripe/stripe-java/pull/713 +released_in_version: 9.0.0 +--- diff --git a/.hark/changes/2019-04-09_mickjermsurawong_add-support-typed.change.md b/.hark/changes/2019-04-09_mickjermsurawong_add-support-typed.change.md new file mode 100644 index 000000000000..67d9a20281a8 --- /dev/null +++ b/.hark/changes/2019-04-09_mickjermsurawong_add-support-typed.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for typed parameters for non-autogenerated classes (`EphemeralKey`, `Event` and `File`) +pr_url: https://github.com/stripe/stripe-java/pull/730 +released_in_version: 9.0.0 +--- diff --git a/.hark/changes/2019-04-09_mickjermsurawong_major-version-release.change.md b/.hark/changes/2019-04-09_mickjermsurawong_major-version-release.change.md new file mode 100644 index 000000000000..8ebee9fceb73 --- /dev/null +++ b/.hark/changes/2019-04-09_mickjermsurawong_major-version-release.change.md @@ -0,0 +1,7 @@ +--- +title: Major version release. Refer to our [migration guide for v9](https://github.com/stripe/stripe-java/wiki/Migration-guide-for-v9) for a list of backward incompatible changes to watch out for. +pr_url: https://github.com/stripe/stripe-java/pull/700 +released_in_version: 9.0.0 +--- + +Pull requests included in this release: diff --git a/.hark/changes/2019-04-09_ob_add-missing-javadoc.change.md b/.hark/changes/2019-04-09_ob_add-missing-javadoc.change.md new file mode 100644 index 000000000000..6e6eccf6eac2 --- /dev/null +++ b/.hark/changes/2019-04-09_ob_add-missing-javadoc.change.md @@ -0,0 +1,5 @@ +--- +title: Add missing Javadoc for non-autogenerated classes (`EphemeralKey`, `Event` and `File`) +pr_url: https://github.com/stripe/stripe-java/pull/729 +released_in_version: 9.0.0 +--- diff --git a/.hark/changes/2019-04-09_ob_dev-dependency-version.change.md b/.hark/changes/2019-04-09_ob_dev-dependency-version.change.md new file mode 100644 index 000000000000..c322bdbe609a --- /dev/null +++ b/.hark/changes/2019-04-09_ob_dev-dependency-version.change.md @@ -0,0 +1,5 @@ +--- +title: Dev dependency version upgrades +pr_url: https://github.com/stripe/stripe-java/pull/728 +released_in_version: 9.0.0 +--- diff --git a/.hark/changes/2019-04-11_mickjermsurawong_fix-encoding-nested.change.md b/.hark/changes/2019-04-11_mickjermsurawong_fix-encoding-nested.change.md new file mode 100644 index 000000000000..873d60a3a6be --- /dev/null +++ b/.hark/changes/2019-04-11_mickjermsurawong_fix-encoding-nested.change.md @@ -0,0 +1,5 @@ +--- +title: Fix encoding of nested parameters in multipart requests +pr_url: https://github.com/stripe/stripe-java/pull/735 +released_in_version: 9.1.0 +--- diff --git a/.hark/changes/2019-04-11_mickjermsurawong_upgrade-gradle-5.change.md b/.hark/changes/2019-04-11_mickjermsurawong_upgrade-gradle-5.change.md new file mode 100644 index 000000000000..e1c4e8482c0f --- /dev/null +++ b/.hark/changes/2019-04-11_mickjermsurawong_upgrade-gradle-5.change.md @@ -0,0 +1,5 @@ +--- +title: Upgrade Gradle to 5.3.1 +pr_url: https://github.com/stripe/stripe-java/pull/734 +released_in_version: 9.1.0 +--- diff --git a/.hark/changes/2019-04-12_mickjermsurawong_add-support-confirmation.change.md b/.hark/changes/2019-04-12_mickjermsurawong_add-support-confirmation.change.md new file mode 100644 index 000000000000..c2d41e8aba19 --- /dev/null +++ b/.hark/changes/2019-04-12_mickjermsurawong_add-support-confirmation.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `ConfirmationMethod` in `PaymentIntentCreateParams`, `AuthorizationControls` in cardholders mode/params +pr_url: https://github.com/stripe/stripe-java/pull/739 +released_in_version: 9.1.0 +--- diff --git a/.hark/changes/2019-04-12_mickjermsurawong_fix-issue-736.change.md b/.hark/changes/2019-04-12_mickjermsurawong_fix-issue-736.change.md new file mode 100644 index 000000000000..c136b4226a7b --- /dev/null +++ b/.hark/changes/2019-04-12_mickjermsurawong_fix-issue-736.change.md @@ -0,0 +1,5 @@ +--- +title: "Fix issue #736 on un-encoded ID in url path" +pr_url: https://github.com/stripe/stripe-java/pull/737 +released_in_version: 9.1.0 +--- diff --git a/.hark/changes/2019-04-16_mickjermsurawong_update-generated-code.change.md b/.hark/changes/2019-04-16_mickjermsurawong_update-generated-code.change.md new file mode 100644 index 000000000000..39212400c48f --- /dev/null +++ b/.hark/changes/2019-04-16_mickjermsurawong_update-generated-code.change.md @@ -0,0 +1,9 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/744 +released_in_version: 9.2.0 +--- + +* Make `paymentIntent` on `Invoice` expandable instead of full-model +* Add support for issuing `SpendingLimit` in `Card` and `CardHolder` +* Add support for fields in `PaymentMethodDetails.Card.ThreeDSecure` diff --git a/.hark/changes/2019-04-17_remi_add-support-checkout.change.md b/.hark/changes/2019-04-17_remi_add-support-checkout.change.md new file mode 100644 index 000000000000..2961b8f667fb --- /dev/null +++ b/.hark/changes/2019-04-17_remi_add-support-checkout.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for the Checkout `Session` resource and APIs +pr_url: https://github.com/stripe/stripe-java/pull/745 +released_in_version: 9.3.0 +--- diff --git a/.hark/changes/2019-04-18_remi_update-generated-code.change.md b/.hark/changes/2019-04-18_remi_update-generated-code.change.md new file mode 100644 index 000000000000..9a2ec6fe2f3c --- /dev/null +++ b/.hark/changes/2019-04-18_remi_update-generated-code.change.md @@ -0,0 +1,10 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/748 +is_stripe_api_change: true +released_in_version: 9.4.0 +--- + +* Add support for `address`, `name`, `phone` and `preferredLocales` on `Customer` +* Add support for the `CreditNote` resource and APIs +* Add support for account and customer related fields on the `Invoice` resource diff --git a/.hark/changes/2019-04-22_remi_add-support-taxid.change.md b/.hark/changes/2019-04-22_remi_add-support-taxid.change.md new file mode 100644 index 000000000000..ef92899e0a8f --- /dev/null +++ b/.hark/changes/2019-04-22_remi_add-support-taxid.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for the `TaxId` resource and APIs +pr_url: https://github.com/stripe/stripe-java/pull/750 +released_in_version: 9.5.0 +--- diff --git a/.hark/changes/2019-04-24_mickjermsurawong_add-support-cardissuing.change.md b/.hark/changes/2019-04-24_mickjermsurawong_add-support-cardissuing.change.md new file mode 100644 index 000000000000..8070858adfe8 --- /dev/null +++ b/.hark/changes/2019-04-24_mickjermsurawong_add-support-cardissuing.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `CARD_ISSUING` enum in `RequestedCapability` for Account create/update params. +pr_url: https://github.com/stripe/stripe-java/pull/755 +released_in_version: 9.6.0 +--- diff --git a/.hark/changes/2019-04-24_mickjermsurawong_fix-form-encoding.change.md b/.hark/changes/2019-04-24_mickjermsurawong_fix-form-encoding.change.md new file mode 100644 index 000000000000..4da3ed607df3 --- /dev/null +++ b/.hark/changes/2019-04-24_mickjermsurawong_fix-form-encoding.change.md @@ -0,0 +1,5 @@ +--- +title: Fix form-encoding to support `Collection` in untyped params as array. Previously only `List` is form-encoded as array. +pr_url: https://github.com/stripe/stripe-java/pull/756 +released_in_version: 9.6.0 +--- diff --git a/.hark/changes/2019-04-25_mickjermsurawong_add-support-taxrate.change.md b/.hark/changes/2019-04-25_mickjermsurawong_add-support-taxrate.change.md new file mode 100644 index 000000000000..9854aacb1743 --- /dev/null +++ b/.hark/changes/2019-04-25_mickjermsurawong_add-support-taxrate.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `TaxRate` resource and APIs +pr_url: https://github.com/stripe/stripe-java/pull/761 +released_in_version: 9.7.0 +--- diff --git a/.hark/changes/2019-04-30_remi_add-support-acss.change.md b/.hark/changes/2019-04-30_remi_add-support-acss.change.md new file mode 100644 index 000000000000..44cebc5ceab4 --- /dev/null +++ b/.hark/changes/2019-04-30_remi_add-support-acss.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for ACSS debit Sources +pr_url: https://github.com/stripe/stripe-java/pull/766 +released_in_version: 9.8.0 +--- diff --git a/.hark/changes/2019-05-04_remi_update-generated-code.change.md b/.hark/changes/2019-05-04_remi_update-generated-code.change.md new file mode 100644 index 000000000000..1b7de34817cc --- /dev/null +++ b/.hark/changes/2019-05-04_remi_update-generated-code.change.md @@ -0,0 +1,8 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/768 +released_in_version: 9.9.0 +--- + +* Add support for `customer` filter when listing `PaymentIntent` +* Add support for `replacement_for` and `replacement_reason` on Issuing `card` creation diff --git a/.hark/changes/2019-05-07_mickjermsurawong_update-generated-code.change.md b/.hark/changes/2019-05-07_mickjermsurawong_update-generated-code.change.md new file mode 100644 index 000000000000..48b85212dd9b --- /dev/null +++ b/.hark/changes/2019-05-07_mickjermsurawong_update-generated-code.change.md @@ -0,0 +1,11 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/773 +is_stripe_api_change: true +released_in_version: 9.10.0 +--- + +* Add support for `extraParams` in all sub-classes of ApiRequestParams their nested classes +* Add support for webhook event `payment_method.updated` +* Add support for `payment_intent` filter when listing `Charge` +* Add support for `legacy_payments` enum `RequestedCapability` in `AccountCreateParams` and `AccountUpdateParams` diff --git a/.hark/changes/2019-05-11_mickjermsurawong_update-generated-code.change.md b/.hark/changes/2019-05-11_mickjermsurawong_update-generated-code.change.md new file mode 100644 index 000000000000..d6f4b40c09df --- /dev/null +++ b/.hark/changes/2019-05-11_mickjermsurawong_update-generated-code.change.md @@ -0,0 +1,8 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/776 +released_in_version: 9.11.0 +--- + +* Add support for `startDate` in `Subscription` +* Removed one unsupported enum on `PaymentIntentCancelParams` diff --git a/.hark/changes/2019-05-15_mickjermsurawong_update-generated-code.change.md b/.hark/changes/2019-05-15_mickjermsurawong_update-generated-code.change.md new file mode 100644 index 000000000000..1593995d4b59 --- /dev/null +++ b/.hark/changes/2019-05-15_mickjermsurawong_update-generated-code.change.md @@ -0,0 +1,10 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/777 +released_in_version: 9.12.0 +--- + +* Add support for `Capability` +* Add enum `off_session` for `PaymentIntentConfirmParams` and `PaymentIntentCreateParams` +* Add enum `abandoned` for `PaymentIntentCancellationParams`. +* Add support for `statementDescriptorKana` and `statementDescriptorKanji` in `Account.SettingsPayments` diff --git a/.hark/changes/2019-05-23_ob_update-generated-code.change.md b/.hark/changes/2019-05-23_ob_update-generated-code.change.md new file mode 100644 index 000000000000..864d0d7c4f12 --- /dev/null +++ b/.hark/changes/2019-05-23_ob_update-generated-code.change.md @@ -0,0 +1,9 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/780 +released_in_version: 9.13.0 +--- + +* Add support for new `radar.early_fraud_warning` resource and methods +* Add new in_gst and no_vat tax ID types +* Add `spending_limits_currency` attribute and parameter in Issuing resources diff --git a/.hark/changes/2019-05-24_ob_pin-library-api.change.md b/.hark/changes/2019-05-24_ob_pin-library-api.change.md new file mode 100644 index 000000000000..45ebd62d7e8a --- /dev/null +++ b/.hark/changes/2019-05-24_ob_pin-library-api.change.md @@ -0,0 +1,5 @@ +--- +title: Pin library to API version `2019-05-16` +pr_url: https://github.com/stripe/stripe-java/pull/781 +released_in_version: 10.0.0 +--- diff --git a/.hark/changes/2019-05-28_mickjermsurawong_fix-url-encoding.change.md b/.hark/changes/2019-05-28_mickjermsurawong_fix-url-encoding.change.md new file mode 100644 index 000000000000..ea225311874b --- /dev/null +++ b/.hark/changes/2019-05-28_mickjermsurawong_fix-url-encoding.change.md @@ -0,0 +1,5 @@ +--- +title: Fix url-encoding for string id to throw exception on passing null +pr_url: https://github.com/stripe/stripe-java/pull/783 +released_in_version: 10.0.1 +--- diff --git a/.hark/changes/2019-05-30_brandur_make-headers-access.change.md b/.hark/changes/2019-05-30_brandur_make-headers-access.change.md new file mode 100644 index 000000000000..84fcd840fc72 --- /dev/null +++ b/.hark/changes/2019-05-30_brandur_make-headers-access.change.md @@ -0,0 +1,5 @@ +--- +title: Make headers access case insensitive +pr_url: https://github.com/stripe/stripe-java/pull/784 +released_in_version: 10.0.2 +--- diff --git a/.hark/changes/2019-06-19_ob_update-generated-code.change.md b/.hark/changes/2019-06-19_ob_update-generated-code.change.md new file mode 100644 index 000000000000..f07d0a13df17 --- /dev/null +++ b/.hark/changes/2019-06-19_ob_update-generated-code.change.md @@ -0,0 +1,12 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/789 +released_in_version: 10.1.0 +--- + +* Add support for SEPA Credit Transfer sources +* Add support for `CustomerBalanceTransaction` resource and APIs +* Add `balance` property on `Customer` +* Add `submitType` property on `checkout.Session` +* Add `merchantAmount` and `merchantCurrency` properties on `issuing.Transaction` +* Add `location` property on `terminal.ConnectionToken` diff --git a/.hark/changes/2019-06-24_remi_update-generated-code.change.md b/.hark/changes/2019-06-24_remi_update-generated-code.change.md new file mode 100644 index 000000000000..eefa3dd6a1b9 --- /dev/null +++ b/.hark/changes/2019-06-24_remi_update-generated-code.change.md @@ -0,0 +1,10 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/794 +released_in_version: 10.2.0 +--- + +* Add `collection_method` to `Invoice`, `Subscription` and `SubscriptionSchedule` +* Add `unified_propration` to `InvoiceLineItem` +* Support unsetting `dob` on an `Account` +* Removed `native_url` from WeChat `Source`. While technically breaking, this field has never been used diff --git a/.hark/changes/2019-06-25_ob_enable-request-latency.change.md b/.hark/changes/2019-06-25_ob_enable-request-latency.change.md new file mode 100644 index 000000000000..4974e8eea334 --- /dev/null +++ b/.hark/changes/2019-06-25_ob_enable-request-latency.change.md @@ -0,0 +1,5 @@ +--- +title: Enable request latency telemetry by default +pr_url: https://github.com/stripe/stripe-java/pull/792 +released_in_version: 10.3.0 +--- diff --git a/.hark/changes/2019-07-01_remi_update-generated-code.change.md b/.hark/changes/2019-07-01_remi_update-generated-code.change.md new file mode 100644 index 000000000000..ee03a26cb697 --- /dev/null +++ b/.hark/changes/2019-07-01_remi_update-generated-code.change.md @@ -0,0 +1,10 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/796 +released_in_version: 10.4.0 +--- + +* Add support for the `SetupIntent` resource and APIs +* Add support for `PlatformTaxFee` resource +* Add `unified_proration` on `InvoiceItem` and `InvoiceLineItem` +* Add `default_payment_method` and `default_source` to `SubscriptionSchedule` diff --git a/.hark/changes/2019-07-09_remi_update-generated-code.change.md b/.hark/changes/2019-07-09_remi_update-generated-code.change.md new file mode 100644 index 000000000000..f460909f22ba --- /dev/null +++ b/.hark/changes/2019-07-09_remi_update-generated-code.change.md @@ -0,0 +1,12 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/798 +is_stripe_api_change: true +released_in_version: 10.5.0 +--- + +* Add support for `transfer_data[amount]` on PaymentIntent +* Add support for passing `setup_future_usage` on PaymentIntent Update and Confirm APIs +* Add support for `confirm` and `return_url` on SetupIntent creation +* Add support for `setup_future_usage` on Checkout Session creation +* Add support for `subscription_start_date` on the Upcoming Invoice API diff --git a/.hark/changes/2019-07-12_ob_add-getrawjsonob-accessor.change.md b/.hark/changes/2019-07-12_ob_add-getrawjsonob-accessor.change.md new file mode 100644 index 000000000000..2d221cd349ae --- /dev/null +++ b/.hark/changes/2019-07-12_ob_add-getrawjsonob-accessor.change.md @@ -0,0 +1,5 @@ +--- +title: Add `getRawJsonObject()` accessor +pr_url: https://github.com/stripe/stripe-java/pull/799 +released_in_version: 10.6.0 +--- diff --git a/.hark/changes/2019-07-15_remi_update-generated-code.change.md b/.hark/changes/2019-07-15_remi_update-generated-code.change.md new file mode 100644 index 000000000000..e9e24303895e --- /dev/null +++ b/.hark/changes/2019-07-15_remi_update-generated-code.change.md @@ -0,0 +1,8 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/801 +released_in_version: 10.8.0 +--- + +* Add support for `pending_setup_intent` on Subscription +* Add support for `off_session` on Subscription creation and update and Invoice pay diff --git a/.hark/changes/2019-07-15_remi_update-generated-code2.change.md b/.hark/changes/2019-07-15_remi_update-generated-code2.change.md new file mode 100644 index 000000000000..3c16bab3650a --- /dev/null +++ b/.hark/changes/2019-07-15_remi_update-generated-code2.change.md @@ -0,0 +1,8 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/800 +released_in_version: 10.7.0 +--- + +* Add support for Sources of type `klarna` +* Add support for `payment_behavior` on Subscription and SubscriptionItem to control their behaviour on creation or update. diff --git a/.hark/changes/2019-07-16_ob_add-support-unsetting.change.md b/.hark/changes/2019-07-16_ob_add-support-unsetting.change.md new file mode 100644 index 000000000000..0019673a9909 --- /dev/null +++ b/.hark/changes/2019-07-16_ob_add-support-unsetting.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for unsetting metadata keys +pr_url: https://github.com/stripe/stripe-java/pull/804 +released_in_version: 10.9.1 +--- diff --git a/.hark/changes/2019-07-16_ob_bump-dependencies.change.md b/.hark/changes/2019-07-16_ob_bump-dependencies.change.md new file mode 100644 index 000000000000..aabdd9b2ddd2 --- /dev/null +++ b/.hark/changes/2019-07-16_ob_bump-dependencies.change.md @@ -0,0 +1,5 @@ +--- +title: Bump dependencies +pr_url: https://github.com/stripe/stripe-java/pull/805 +released_in_version: 10.9.1 +--- diff --git a/.hark/changes/2019-07-16_remi_add-support-paymentmetho.change.md b/.hark/changes/2019-07-16_remi_add-support-paymentmetho.change.md new file mode 100644 index 000000000000..ffa0833c3432 --- /dev/null +++ b/.hark/changes/2019-07-16_remi_add-support-paymentmetho.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `payment_method_options` on `PaymentIntent` and `SetupIntent` +pr_url: https://github.com/stripe/stripe-java/pull/802 +released_in_version: 10.9.0 +--- diff --git a/.hark/changes/2019-07-17_remi_add-support-voidedat.change.md b/.hark/changes/2019-07-17_remi_add-support-voidedat.change.md new file mode 100644 index 000000000000..4f11a25bdf44 --- /dev/null +++ b/.hark/changes/2019-07-17_remi_add-support-voidedat.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `voided_at` on `CreditNote` +pr_url: https://github.com/stripe/stripe-java/pull/806 +released_in_version: 10.10.0 +--- diff --git a/.hark/changes/2019-07-22_remi_update-generated-code.change.md b/.hark/changes/2019-07-22_remi_update-generated-code.change.md new file mode 100644 index 000000000000..c3b29db8b34c --- /dev/null +++ b/.hark/changes/2019-07-22_remi_update-generated-code.change.md @@ -0,0 +1,8 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/809 +released_in_version: 10.12.0 +--- + +* Add support for `statement_descriptor` on `PaymentIntent` capture +* Add support for unsetting `setup_future_usage` on `PaymentIntent` diff --git a/.hark/changes/2019-07-30_ob_fix-potential-nullpointere.change.md b/.hark/changes/2019-07-30_ob_fix-potential-nullpointere.change.md new file mode 100644 index 000000000000..fa04207ce2cf --- /dev/null +++ b/.hark/changes/2019-07-30_ob_fix-potential-nullpointere.change.md @@ -0,0 +1,5 @@ +--- +title: Fix potential `NullPointerException` when calling `getRawJsonObject()` +pr_url: https://github.com/stripe/stripe-java/pull/812 +released_in_version: 10.12.1 +--- diff --git a/.hark/changes/2019-08-07_ob_set-default-timeouts.change.md b/.hark/changes/2019-08-07_ob_set-default-timeouts.change.md new file mode 100644 index 000000000000..b0dc68bee91d --- /dev/null +++ b/.hark/changes/2019-08-07_ob_set-default-timeouts.change.md @@ -0,0 +1,5 @@ +--- +title: Set default timeouts in `RequestOptionsBuilder` +pr_url: https://github.com/stripe/stripe-java/pull/818 +released_in_version: 10.12.2 +--- diff --git a/.hark/changes/2019-08-08_remi_update-generated-code.change.md b/.hark/changes/2019-08-08_remi_update-generated-code.change.md new file mode 100644 index 000000000000..d84ccf13af14 --- /dev/null +++ b/.hark/changes/2019-08-08_remi_update-generated-code.change.md @@ -0,0 +1,10 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/819 +released_in_version: 10.13.0 +--- + +* Add support for `payment_method_details[card][moto]` on `Charge` +* Add support for `statement_descriptor_suffix` on `Charge` and `PaymentIntent` +* Add support `subscription_data[application_fee_percent]` on Checkout `Session` +* Rename `uk_credit_transfer` to `gbp_credit_transfer` on Source. This is technically a breaking change, but we've chosen to release this as a minor version as the previous name was virtually unused. diff --git a/.hark/changes/2019-08-09_ob_update-generated-code.change.md b/.hark/changes/2019-08-09_ob_update-generated-code.change.md new file mode 100644 index 000000000000..e2ba1e7c3af1 --- /dev/null +++ b/.hark/changes/2019-08-09_ob_update-generated-code.change.md @@ -0,0 +1,8 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/820 +released_in_version: 10.14.0 +--- + +* Add support for unsetting `receipt_email` on `PaymentIntent` +* Remove support for `SubscriptionScheduleRevision`. This is technicall a breaking change, but we've chosen to release this as a minor version as this resource and its APIs were virtually unused. diff --git a/.hark/changes/2019-08-14_ob_move-api-version.change.md b/.hark/changes/2019-08-14_ob_move-api-version.change.md new file mode 100644 index 000000000000..8295500725de --- /dev/null +++ b/.hark/changes/2019-08-14_ob_move-api-version.change.md @@ -0,0 +1,8 @@ +--- +title: Move to API version [`2019-08-14`](https://docs.stripe.com/changelog/2019-08-14) +pr_url: https://github.com/stripe/stripe-java/pull/825 +released_in_version: 11.0.0 +--- + +* Rename `platform_payments` to `transfers` in `Account` +* Introduce `executive` as a relationship on `Person` diff --git a/.hark/changes/2019-08-14_ob_update-generated-code.change.md b/.hark/changes/2019-08-14_ob_update-generated-code.change.md new file mode 100644 index 000000000000..db0b48f18906 --- /dev/null +++ b/.hark/changes/2019-08-14_ob_update-generated-code.change.md @@ -0,0 +1,12 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/824 +is_stripe_api_change: true +released_in_version: 10.15.0 +--- + +* Add support for `au_becs_debit` sources +* Add support for `mandate` parameter in source creation and update requests +* Add support for `amount` in source update requests +* Add support for `pin` attribute on `issuing.card` objects +* Add support for `digital_goods_applications` category for Issuing diff --git a/.hark/changes/2019-08-15_remi_add-support-executive.change.md b/.hark/changes/2019-08-15_remi_add-support-executive.change.md new file mode 100644 index 000000000000..61c935602889 --- /dev/null +++ b/.hark/changes/2019-08-15_remi_add-support-executive.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `executive` on `Person` create, update and list +pr_url: https://github.com/stripe/stripe-java/pull/826 +released_in_version: 11.1.0 +--- diff --git a/.hark/changes/2019-08-21_richardm_update-generated-code.change.md b/.hark/changes/2019-08-21_richardm_update-generated-code.change.md new file mode 100644 index 000000000000..8d52c3066cf9 --- /dev/null +++ b/.hark/changes/2019-08-21_richardm_update-generated-code.change.md @@ -0,0 +1,12 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/828 +is_stripe_api_change: true +released_in_version: 11.2.0 +--- + +* Add support for `schedule` on `Subscription` +* Add support for `defaultPaymentMethod`, `invoiceSettings`, `collectionMethod` and `billingThresholds` to `SubscriptionSchedule` and its update and create APIs +* Add support for `mode` and `setupIntent` on Checkout `Session` and its create API +* Add support for `schedule` and `subscriptionCancelAt` to the `Invoice` Upcoming API +* Add support for new event types `subscription_schedule.*` diff --git a/.hark/changes/2019-08-23_ob_update-generated-code.change.md b/.hark/changes/2019-08-23_ob_update-generated-code.change.md new file mode 100644 index 000000000000..4f6ed965ca15 --- /dev/null +++ b/.hark/changes/2019-08-23_ob_update-generated-code.change.md @@ -0,0 +1,7 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/829 +released_in_version: 11.3.0 +--- + +* Release support for decimal values on Billing resources such as `Plan` or `InvoiceItem` diff --git a/.hark/changes/2019-08-28_remi_add-support-pendingverif.change.md b/.hark/changes/2019-08-28_remi_add-support-pendingverif.change.md new file mode 100644 index 000000000000..483443e88f8f --- /dev/null +++ b/.hark/changes/2019-08-28_remi_add-support-pendingverif.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `pendingVerification` on `Account`, `Person` and `Capability` +pr_url: https://github.com/stripe/stripe-java/pull/830 +released_in_version: 11.4.0 +--- diff --git a/.hark/changes/2019-08-29_remi_add-support-endbehavior.change.md b/.hark/changes/2019-08-29_remi_add-support-endbehavior.change.md new file mode 100644 index 000000000000..000ab6b2d7dd --- /dev/null +++ b/.hark/changes/2019-08-29_remi_add-support-endbehavior.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `endBehavior` on `SubscriptionSchedule` +pr_url: https://github.com/stripe/stripe-java/pull/833 +released_in_version: 11.5.0 +--- diff --git a/.hark/changes/2019-08-30_ob_make-stripeerror-transient.change.md b/.hark/changes/2019-08-30_ob_make-stripeerror-transient.change.md new file mode 100644 index 000000000000..a63ca679697a --- /dev/null +++ b/.hark/changes/2019-08-30_ob_make-stripeerror-transient.change.md @@ -0,0 +1,5 @@ +--- +title: Make `stripeError` transient on `StripeException` +pr_url: https://github.com/stripe/stripe-java/pull/834 +released_in_version: 11.5.1 +--- diff --git a/.hark/changes/2019-09-03_ob_deprecate-totalcount.change.md b/.hark/changes/2019-09-03_ob_deprecate-totalcount.change.md new file mode 100644 index 000000000000..a859495c26c1 --- /dev/null +++ b/.hark/changes/2019-09-03_ob_deprecate-totalcount.change.md @@ -0,0 +1,5 @@ +--- +title: Deprecate `total_count` +pr_url: https://github.com/stripe/stripe-java/pull/839 +released_in_version: 11.6.1 +--- diff --git a/.hark/changes/2019-09-03_remi_support-authenticati-issuing.change.md b/.hark/changes/2019-09-03_remi_support-authenticati-issuing.change.md new file mode 100644 index 000000000000..cfe13a804b1a --- /dev/null +++ b/.hark/changes/2019-09-03_remi_support-authenticati-issuing.change.md @@ -0,0 +1,5 @@ +--- +title: Support `authentication` on Issuing `Authorization` and `url` on `MerchantData` +pr_url: https://github.com/stripe/stripe-java/pull/838 +released_in_version: 11.6.0 +--- diff --git a/.hark/changes/2019-09-05_ob_update-generated-code.change.md b/.hark/changes/2019-09-05_ob_update-generated-code.change.md new file mode 100644 index 000000000000..9bcd30a6a899 --- /dev/null +++ b/.hark/changes/2019-09-05_ob_update-generated-code.change.md @@ -0,0 +1,7 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/841 +released_in_version: 11.7.0 +--- + +* Just a trivial comment update diff --git a/.hark/changes/2019-09-05_richardm_switch-new-prettier.change.md b/.hark/changes/2019-09-05_richardm_switch-new-prettier.change.md new file mode 100644 index 000000000000..f054999caad0 --- /dev/null +++ b/.hark/changes/2019-09-05_richardm_switch-new-prettier.change.md @@ -0,0 +1,5 @@ +--- +title: Switch to new "prettier" codegen +pr_url: https://github.com/stripe/stripe-java/pull/827 +released_in_version: 11.7.0 +--- diff --git a/.hark/changes/2019-09-09_ob_update-generated-code.change.md b/.hark/changes/2019-09-09_ob_update-generated-code.change.md new file mode 100644 index 000000000000..ca0fea2e9466 --- /dev/null +++ b/.hark/changes/2019-09-09_ob_update-generated-code.change.md @@ -0,0 +1,8 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/842 +released_in_version: 11.8.0 +--- + +* Add support for `company[verification]` on `Account` +* Add support for `verification[additional_document]` on `Person` diff --git a/.hark/changes/2019-09-10_ob_update-api-version.change.md b/.hark/changes/2019-09-10_ob_update-api-version.change.md new file mode 100644 index 000000000000..4d035a97ca7e --- /dev/null +++ b/.hark/changes/2019-09-10_ob_update-api-version.change.md @@ -0,0 +1,5 @@ +--- +title: Update to API version 2019-09-09 +pr_url: https://github.com/stripe/stripe-java/pull/844 +released_in_version: 12.0.0 +--- diff --git a/.hark/changes/2019-09-27_richardm_add-add-addall.change.md b/.hark/changes/2019-09-27_richardm_add-add-addall.change.md new file mode 100644 index 000000000000..129f43ccfa6f --- /dev/null +++ b/.hark/changes/2019-09-27_richardm_add-add-addall.change.md @@ -0,0 +1,13 @@ +--- +title: Add add/addAll support for "emptyable" params +pr_url: https://github.com/stripe/stripe-java/pull/849 +released_in_version: 12.1.0 +--- + +* Add `addAttribute` and `addAllAttribute` methods to `ProductUpdateParams` +* Add `addCustomField` and `addAllCustomField` methods to `CustomerCreateParams`, `CustomerUpdateParams`, `InvoiceCreateParams` and `InvoiceUpdateParams` +* Add `addDefaultTaxRate` and `addAllDefaultTaxRate` methods to `InvoiceUpdateParams`, `SubscriptionCreateParams`, `SubscriptionScheduleCreateParams`, `SubscriptionScheduleUpdateParams` and `SubscriptionUpdateParams` +* Add `addImage` and `addAllImage` methods to `ProductUpdateParams` +* Add `addItem` and `addAllItem` methods to `OrderReturnOrderParams` +* Add `addSubscriptionDefaultTaxRate` and `addAllSubscriptionDefaultTaxRate` methods to `InvoiceUpcomingParams` +* Add `addTaxRate` and `addAllTaxRate` methods to `InvoiceItemUpdateParams`, `InvoiceUpcomingParams`, `SubscriptionCreateParams`, `SubscriptionItemCreateParams`, `SubscriptionItemUpdateParams`, `SubscriptionScheduleCreateParams`, `SubscriptionScheduleUpdateParams` and `SubscriptionUpdateParams` diff --git a/.hark/changes/2019-09-27_richardm_codegen-openapi-4d4a107.change.md b/.hark/changes/2019-09-27_richardm_codegen-openapi-4d4a107.change.md new file mode 100644 index 000000000000..f4c3adba678c --- /dev/null +++ b/.hark/changes/2019-09-27_richardm_codegen-openapi-4d4a107.change.md @@ -0,0 +1,13 @@ +--- +title: Codegen for openapi 4d4a107 +pr_url: https://github.com/stripe/stripe-java/pull/850 +released_in_version: 12.1.0 +--- + +* Add support for `mandate` on `Charge`. +* Add support for `reference` on `SourceTransaction`. +* Add support for `person` on `TokenCreateParams`. +* Add support for new event types `payment_intent.canceled` and `setup_intent.canceled` +* Add support for `metadata` on `AuthorizationApproveParams` and `AuthorizationDeclineParams` +* Add `setMetadata` method on `AuthorizationUpdateParams` +* Rename `chidrens_and_infants_wear_stores` to `childrens_and_infants_wear_stores`. This is technically a breaking change, but we've chosen to release this as a minor version as the previous name was virtually unused. diff --git a/.hark/changes/2019-10-07_ob_update-readme-md.change.md b/.hark/changes/2019-10-07_ob_update-readme-md.change.md new file mode 100644 index 000000000000..19453edd7a75 --- /dev/null +++ b/.hark/changes/2019-10-07_ob_update-readme-md.change.md @@ -0,0 +1,5 @@ +--- +title: Update `README.md` +pr_url: https://github.com/stripe/stripe-java/pull/851 +released_in_version: 12.2.0 +--- diff --git a/.hark/changes/2019-10-08_ob_bump-dependencies.change.md b/.hark/changes/2019-10-08_ob_bump-dependencies.change.md new file mode 100644 index 000000000000..13adb07300d2 --- /dev/null +++ b/.hark/changes/2019-10-08_ob_bump-dependencies.change.md @@ -0,0 +1,5 @@ +--- +title: Bump dependencies +pr_url: https://github.com/stripe/stripe-java/pull/835 +released_in_version: 12.2.0 +--- diff --git a/.hark/changes/2019-10-08_ob_setters-string-properties.change.md b/.hark/changes/2019-10-08_ob_setters-string-properties.change.md new file mode 100644 index 000000000000..2180714ed2b0 --- /dev/null +++ b/.hark/changes/2019-10-08_ob_setters-string-properties.change.md @@ -0,0 +1,5 @@ +--- +title: Setters for string properties in update params now all accept `EmptyParam` +pr_url: https://github.com/stripe/stripe-java/pull/852 +released_in_version: 12.2.0 +--- diff --git a/.hark/changes/2019-10-09_ob_upgrade-new-api.change.md b/.hark/changes/2019-10-09_ob_upgrade-new-api.change.md new file mode 100644 index 000000000000..25dfdaae8ef0 --- /dev/null +++ b/.hark/changes/2019-10-09_ob_upgrade-new-api.change.md @@ -0,0 +1,5 @@ +--- +title: Upgrade to new API version [`2019-10-08`](https://docs.stripe.com/changelog/2019-10-08) +pr_url: https://github.com/stripe/stripe-java/pull/853 +released_in_version: 13.0.0 +--- diff --git a/.hark/changes/2019-10-10_ob_update-generated-code.change.md b/.hark/changes/2019-10-10_ob_update-generated-code.change.md new file mode 100644 index 000000000000..f033c1e52d42 --- /dev/null +++ b/.hark/changes/2019-10-10_ob_update-generated-code.change.md @@ -0,0 +1,8 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/854 +released_in_version: 13.1.0 +--- + +* Add support for `description`, `iin` and `issuer` on `Source.Card`, `Source.CardPresent` and `Source.ThreeDSecure` +* Add support for `deviceType` on `ReaderListParams` diff --git a/.hark/changes/2019-10-16_ob_add-getters-parameters.change.md b/.hark/changes/2019-10-16_ob_add-getters-parameters.change.md new file mode 100644 index 000000000000..30b3b9dc3899 --- /dev/null +++ b/.hark/changes/2019-10-16_ob_add-getters-parameters.change.md @@ -0,0 +1,5 @@ +--- +title: Add getters to parameters classes +pr_url: https://github.com/stripe/stripe-java/pull/861 +released_in_version: 13.2.0 +--- diff --git a/.hark/changes/2019-10-16_ob_stop-propagating-unsupportede.change.md b/.hark/changes/2019-10-16_ob_stop-propagating-unsupportede.change.md new file mode 100644 index 000000000000..a6f0e47095b2 --- /dev/null +++ b/.hark/changes/2019-10-16_ob_stop-propagating-unsupportede.change.md @@ -0,0 +1,5 @@ +--- +title: Stop propagating UnsupportedEncodingException +pr_url: https://github.com/stripe/stripe-java/pull/858 +released_in_version: 13.3.0 +--- diff --git a/.hark/changes/2019-10-17_remi_codegen-update-api.change.md b/.hark/changes/2019-10-17_remi_codegen-update-api.change.md new file mode 100644 index 000000000000..8792293ea73c --- /dev/null +++ b/.hark/changes/2019-10-17_remi_codegen-update-api.change.md @@ -0,0 +1,12 @@ +--- +title: "[codegen] Update API Resources" +pr_url: https://github.com/stripe/stripe-java/pull/862 +released_in_version: 13.3.0 +--- + +* `requirements` on Issuing `Cardholder` +* `payment_method_details[au_becs_debit][mandate]` on `Charge` +* new types of tax id for Customer `TaxId`. +* `payment_behavior` on `Subscription` creation can now take the value `pending_if_incomplete`. +* `payment_behavior` on `SubscriptionItem` creation and update is now supported. +* `subscription_data[trial_from_plan]` is now supported on Checkout `Session` creation. diff --git a/.hark/changes/2019-10-18_ob_upgrade-new-api.change.md b/.hark/changes/2019-10-18_ob_upgrade-new-api.change.md new file mode 100644 index 000000000000..f6c0a5e57dc4 --- /dev/null +++ b/.hark/changes/2019-10-18_ob_upgrade-new-api.change.md @@ -0,0 +1,12 @@ +--- +title: Upgrade to new API version [`2019-10-17`](https://docs.stripe.com/changelog/2019-10-17) +pr_url: https://github.com/stripe/stripe-java/pull/863 +released_in_version: 14.0.0 +--- + +* Pin to API version `2019-10-17` +* Remove `account_balance` from Customer model and parameter classes +* Remove `billing` from Invoice, Subscription and Subscription Schedule model and parameter classes +* Remove `start` from Subscription model +* Remove `renewal_behavior` from Subscription Schedule parameter classes +* **Note:** This release was missing some breaking changes. Please use 14.0.1 instead. diff --git a/.hark/changes/2019-10-19_ob_update-generated-code.change.md b/.hark/changes/2019-10-19_ob_update-generated-code.change.md new file mode 100644 index 000000000000..83c3cf44dd70 --- /dev/null +++ b/.hark/changes/2019-10-19_ob_update-generated-code.change.md @@ -0,0 +1,9 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/864 +released_in_version: 14.0.1 +--- + +* Remove `renewal_behavior` on Subscription Schedule model class +* Remove `renewal_interval` on Subscription Schedule parameter classes +* The above are technically breaking changes and should have been released with 14.0.0. diff --git a/.hark/changes/2019-10-23_remi_various-api-changes.change.md b/.hark/changes/2019-10-23_remi_various-api-changes.change.md new file mode 100644 index 000000000000..caab2ec096d1 --- /dev/null +++ b/.hark/changes/2019-10-23_remi_various-api-changes.change.md @@ -0,0 +1,12 @@ +--- +title: Various API changes +pr_url: https://github.com/stripe/stripe-java/pull/866 +is_stripe_api_change: true +released_in_version: 14.1.0 +--- + +* Add support for `mx_rfc` on `TaxId` +* Add support for `pending_invoice_item_interval` on `Subscription` creation and update +* Add support for `next_pending_invoice_item_invoice` on `Subscription +* Add support for `installments` which is a feature on `PaymentIntent` and `PaymentMethod` available on MX Stripe accounts. It's also added inside `payment_method_details[card]` on `Charge` +* Add support for `next_pending_invoice_item_invoice` as a new `Capability` diff --git a/.hark/changes/2019-10-24_ob_contributor-convenant.change.md b/.hark/changes/2019-10-24_ob_contributor-convenant.change.md new file mode 100644 index 000000000000..0063e3ea5f2c --- /dev/null +++ b/.hark/changes/2019-10-24_ob_contributor-convenant.change.md @@ -0,0 +1,5 @@ +--- +title: Contributor Convenant +pr_url: https://github.com/stripe/stripe-java/pull/867 +released_in_version: 14.2.0 +--- diff --git a/.hark/changes/2019-10-24_ob_refactor-form-encoding.change.md b/.hark/changes/2019-10-24_ob_refactor-form-encoding.change.md new file mode 100644 index 000000000000..7f0173134700 --- /dev/null +++ b/.hark/changes/2019-10-24_ob_refactor-form-encoding.change.md @@ -0,0 +1,5 @@ +--- +title: Refactor form encoding +pr_url: https://github.com/stripe/stripe-java/pull/857 +released_in_version: 17.0.0 +--- diff --git a/.hark/changes/2019-10-24_ob_update-generated-code.change.md b/.hark/changes/2019-10-24_ob_update-generated-code.change.md new file mode 100644 index 000000000000..698063680215 --- /dev/null +++ b/.hark/changes/2019-10-24_ob_update-generated-code.change.md @@ -0,0 +1,7 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/868 +released_in_version: 14.2.0 +--- + +* Add support for typed parameters in `Event.retrieve` method diff --git a/.hark/changes/2019-10-25_ob_refactor-request-telemetry.change.md b/.hark/changes/2019-10-25_ob_refactor-request-telemetry.change.md new file mode 100644 index 000000000000..0dacf9df44f8 --- /dev/null +++ b/.hark/changes/2019-10-25_ob_refactor-request-telemetry.change.md @@ -0,0 +1,6 @@ +--- +title: Refactor request telemetry +pr_url: https://github.com/stripe/stripe-java/pull/870 +semver_level: major +released_in_version: 17.0.0 +--- diff --git a/.hark/changes/2019-10-25_remi_codegen-openapi-d8f9ddf.change.md b/.hark/changes/2019-10-25_remi_codegen-openapi-d8f9ddf.change.md new file mode 100644 index 000000000000..03577e667a31 --- /dev/null +++ b/.hark/changes/2019-10-25_remi_codegen-openapi-d8f9ddf.change.md @@ -0,0 +1,7 @@ +--- +title: Codegen for openapi d8f9ddf +pr_url: https://github.com/stripe/stripe-java/pull/871 +released_in_version: 14.3.0 +--- + +* Remove `max_amount` from Issuing `Card`. This is technically a breaking change but only one integration was using this feature which changed a while ago diff --git a/.hark/changes/2019-10-26_ob_move-http-request.change.md b/.hark/changes/2019-10-26_ob_move-http-request.change.md new file mode 100644 index 000000000000..d062df416a57 --- /dev/null +++ b/.hark/changes/2019-10-26_ob_move-http-request.change.md @@ -0,0 +1,5 @@ +--- +title: Move HTTP request methods into new `HttpClient` class +pr_url: https://github.com/stripe/stripe-java/pull/872 +released_in_version: 17.0.0 +--- diff --git a/.hark/changes/2019-10-26_ob_suppress-unchecked-cast.change.md b/.hark/changes/2019-10-26_ob_suppress-unchecked-cast.change.md new file mode 100644 index 000000000000..2c4254480a4c --- /dev/null +++ b/.hark/changes/2019-10-26_ob_suppress-unchecked-cast.change.md @@ -0,0 +1,5 @@ +--- +title: Suppress unchecked cast warnings in test +pr_url: https://github.com/stripe/stripe-java/pull/873 +released_in_version: 14.4.0 +--- diff --git a/.hark/changes/2019-10-30_remi_add-support-invoicecusto.change.md b/.hark/changes/2019-10-30_remi_add-support-invoicecusto.change.md new file mode 100644 index 000000000000..2d1e8e7c3cb2 --- /dev/null +++ b/.hark/changes/2019-10-30_remi_add-support-invoicecusto.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `invoice_customer_balance_settings` on `Invoice` +pr_url: https://github.com/stripe/stripe-java/pull/876 +released_in_version: 14.4.0 +--- diff --git a/.hark/changes/2019-10-31_remi_fix-docstring-parameter.change.md b/.hark/changes/2019-10-31_remi_fix-docstring-parameter.change.md new file mode 100644 index 000000000000..0de9ee55d215 --- /dev/null +++ b/.hark/changes/2019-10-31_remi_fix-docstring-parameter.change.md @@ -0,0 +1,5 @@ +--- +title: Fix docstring for a parameter to reflect the correct behaviour +pr_url: https://github.com/stripe/stripe-java/pull/877 +released_in_version: 14.4.1 +--- diff --git a/.hark/changes/2019-11-01_ob_add-httpclient-abstract.change.md b/.hark/changes/2019-11-01_ob_add-httpclient-abstract.change.md new file mode 100644 index 000000000000..0aab69557888 --- /dev/null +++ b/.hark/changes/2019-11-01_ob_add-httpclient-abstract.change.md @@ -0,0 +1,5 @@ +--- +title: Add `HttpClient` abstract class +pr_url: https://github.com/stripe/stripe-java/pull/879 +released_in_version: 17.0.0 +--- diff --git a/.hark/changes/2019-11-01_ob_add-stripereques-object.change.md b/.hark/changes/2019-11-01_ob_add-stripereques-object.change.md new file mode 100644 index 000000000000..913a7872f11a --- /dev/null +++ b/.hark/changes/2019-11-01_ob_add-stripereques-object.change.md @@ -0,0 +1,5 @@ +--- +title: Add `StripeRequest` object +pr_url: https://github.com/stripe/stripe-java/pull/878 +released_in_version: 17.0.0 +--- diff --git a/.hark/changes/2019-11-01_ob_stop-disabling-dns.change.md b/.hark/changes/2019-11-01_ob_stop-disabling-dns.change.md new file mode 100644 index 000000000000..ddcefd4f3e49 --- /dev/null +++ b/.hark/changes/2019-11-01_ob_stop-disabling-dns.change.md @@ -0,0 +1,6 @@ +--- +title: Stop disabling the DNS cache +pr_url: https://github.com/stripe/stripe-java/pull/880 +semver_level: major +released_in_version: 17.0.0 +--- diff --git a/.hark/changes/2019-11-04_remi_add-support-usestripesdk.change.md b/.hark/changes/2019-11-04_remi_add-support-usestripesdk.change.md new file mode 100644 index 000000000000..a81e818cd69b --- /dev/null +++ b/.hark/changes/2019-11-04_remi_add-support-usestripesdk.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `use_stripe_sdk` on `PaymentIntent` creation and confirmation +pr_url: https://github.com/stripe/stripe-java/pull/881 +released_in_version: 14.5.0 +--- diff --git a/.hark/changes/2019-11-06_ob_add-support-sepa.change.md b/.hark/changes/2019-11-06_ob_add-support-sepa.change.md new file mode 100644 index 000000000000..5c7a05d84411 --- /dev/null +++ b/.hark/changes/2019-11-06_ob_add-support-sepa.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for SEPA and iDEAL on `PaymentMethod` and `Mandate` +pr_url: https://github.com/stripe/stripe-java/pull/888 +released_in_version: 15.1.0 +--- diff --git a/.hark/changes/2019-11-06_remi_move-latest-api.change.md b/.hark/changes/2019-11-06_remi_move-latest-api.change.md new file mode 100644 index 000000000000..5998aa3367a8 --- /dev/null +++ b/.hark/changes/2019-11-06_remi_move-latest-api.change.md @@ -0,0 +1,10 @@ +--- +title: Move to the latest API version and add new changes +pr_url: https://github.com/stripe/stripe-java/pull/886 +released_in_version: 15.0.0 +--- + +* Move to API version `2019-11-05` +* Add `default_settings` on `SubscritionSchedule` +* Remove `billing_thresholds`, `collection_method`, `default_payment_method`, `default_source` and `invoice_settings` from `SubscriptionSchedule +* Add `charge` filter when listing `Dispute` diff --git a/.hark/changes/2019-11-07_remi_multiple-api-changes.change.md b/.hark/changes/2019-11-07_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..176dd74dc8a9 --- /dev/null +++ b/.hark/changes/2019-11-07_remi_multiple-api-changes.change.md @@ -0,0 +1,10 @@ +--- +title: "Multiple API changes:" +pr_url: https://github.com/stripe/stripe-java/pull/889 +released_in_version: 15.2.0 +--- + +* Add `disputed` on `Charge`. +* Add `payment_intent` on ` Dispute` and `Refund`. +* Add `payment_intent` when creating a `Refund`. +* Add `payment_intent` filter when listing `Refund` and `Dispute`. diff --git a/.hark/changes/2019-11-08_ob_replace-cobertura-jacoco.change.md b/.hark/changes/2019-11-08_ob_replace-cobertura-jacoco.change.md new file mode 100644 index 000000000000..c77222e63d18 --- /dev/null +++ b/.hark/changes/2019-11-08_ob_replace-cobertura-jacoco.change.md @@ -0,0 +1,5 @@ +--- +title: Replace Cobertura with JaCoCo +pr_url: https://github.com/stripe/stripe-java/pull/891 +released_in_version: 15.3.0 +--- diff --git a/.hark/changes/2019-11-08_remi_multiple-api-changes.change.md b/.hark/changes/2019-11-08_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..ff5c0af969ad --- /dev/null +++ b/.hark/changes/2019-11-08_remi_multiple-api-changes.change.md @@ -0,0 +1,9 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/890 +is_stripe_api_change: true +released_in_version: 15.3.0 +--- + +* Add `company` and `individual` to Issuing `Cardholder` +* Add `sepa_debit` to `PaymentMethodUpdateParams` diff --git a/.hark/changes/2019-11-11_ob_fix-deprecation-warnings.change.md b/.hark/changes/2019-11-11_ob_fix-deprecation-warnings.change.md new file mode 100644 index 000000000000..18197291f233 --- /dev/null +++ b/.hark/changes/2019-11-11_ob_fix-deprecation-warnings.change.md @@ -0,0 +1,5 @@ +--- +title: Fix deprecation warnings +pr_url: https://github.com/stripe/stripe-java/pull/895 +released_in_version: 17.0.0 +--- diff --git a/.hark/changes/2019-11-11_ob_upgrade-gradle-other.change.md b/.hark/changes/2019-11-11_ob_upgrade-gradle-other.change.md new file mode 100644 index 000000000000..c75b39c730a4 --- /dev/null +++ b/.hark/changes/2019-11-11_ob_upgrade-gradle-other.change.md @@ -0,0 +1,5 @@ +--- +title: Upgrade Gradle and other dependencies +pr_url: https://github.com/stripe/stripe-java/pull/894 +released_in_version: 15.3.1 +--- diff --git a/.hark/changes/2019-11-12_ob_add-httpcontent-class.change.md b/.hark/changes/2019-11-12_ob_add-httpcontent-class.change.md new file mode 100644 index 000000000000..6cf0743628c5 --- /dev/null +++ b/.hark/changes/2019-11-12_ob_add-httpcontent-class.change.md @@ -0,0 +1,5 @@ +--- +title: Add `HttpContent` class +pr_url: https://github.com/stripe/stripe-java/pull/896 +released_in_version: 17.0.0 +--- diff --git a/.hark/changes/2019-11-12_ob_add-stopwatch-class.change.md b/.hark/changes/2019-11-12_ob_add-stopwatch-class.change.md new file mode 100644 index 000000000000..099d1820abd8 --- /dev/null +++ b/.hark/changes/2019-11-12_ob_add-stopwatch-class.change.md @@ -0,0 +1,5 @@ +--- +title: Add `Stopwatch` class +pr_url: https://github.com/stripe/stripe-java/pull/897 +released_in_version: 17.0.0 +--- diff --git a/.hark/changes/2019-11-13_ob_move-all-request.change.md b/.hark/changes/2019-11-13_ob_move-all-request.change.md new file mode 100644 index 000000000000..df1fbf61a076 --- /dev/null +++ b/.hark/changes/2019-11-13_ob_move-all-request.change.md @@ -0,0 +1,5 @@ +--- +title: Move all request properties in `StripeRequest` +pr_url: https://github.com/stripe/stripe-java/pull/898 +released_in_version: 17.0.0 +--- diff --git a/.hark/changes/2019-11-13_ob_remove-apiresource-requesttype.change.md b/.hark/changes/2019-11-13_ob_remove-apiresource-requesttype.change.md new file mode 100644 index 000000000000..8714cb483abc --- /dev/null +++ b/.hark/changes/2019-11-13_ob_remove-apiresource-requesttype.change.md @@ -0,0 +1,6 @@ +--- +title: Remove `ApiResource.RequestType` +pr_url: https://github.com/stripe/stripe-java/pull/899 +semver_level: major +released_in_version: 17.0.0 +--- diff --git a/.hark/changes/2019-11-14_ob_add-support-automatic.change.md b/.hark/changes/2019-11-14_ob_add-support-automatic.change.md new file mode 100644 index 000000000000..24a433226e72 --- /dev/null +++ b/.hark/changes/2019-11-14_ob_add-support-automatic.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for automatic request retries +pr_url: https://github.com/stripe/stripe-java/pull/900 +released_in_version: 17.0.0 +--- diff --git a/.hark/changes/2019-11-15_ob_minor-code-quality.change.md b/.hark/changes/2019-11-15_ob_minor-code-quality.change.md new file mode 100644 index 000000000000..bb6ebc963a04 --- /dev/null +++ b/.hark/changes/2019-11-15_ob_minor-code-quality.change.md @@ -0,0 +1,5 @@ +--- +title: Minor code quality fixes +pr_url: https://github.com/stripe/stripe-java/pull/901 +released_in_version: 15.3.1 +--- diff --git a/.hark/changes/2019-11-15_ob_minor-fixes.change.md b/.hark/changes/2019-11-15_ob_minor-fixes.change.md new file mode 100644 index 000000000000..9b9f51087e5a --- /dev/null +++ b/.hark/changes/2019-11-15_ob_minor-fixes.change.md @@ -0,0 +1,5 @@ +--- +title: Minor fixes +pr_url: https://github.com/stripe/stripe-java/pull/902 +released_in_version: 17.0.0 +--- diff --git a/.hark/changes/2019-11-16_ob_serialize-null-values.change.md b/.hark/changes/2019-11-16_ob_serialize-null-values.change.md new file mode 100644 index 000000000000..f99facf558af --- /dev/null +++ b/.hark/changes/2019-11-16_ob_serialize-null-values.change.md @@ -0,0 +1,5 @@ +--- +title: Serialize null values in all maps +pr_url: https://github.com/stripe/stripe-java/pull/903 +released_in_version: 15.3.1 +--- diff --git a/.hark/changes/2019-11-18_remi_add-support-violatedauth.change.md b/.hark/changes/2019-11-18_remi_add-support-violatedauth.change.md new file mode 100644 index 000000000000..ebd6bfdda478 --- /dev/null +++ b/.hark/changes/2019-11-18_remi_add-support-violatedauth.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `violated_authorization_controls` on Issuing `Authorization` +pr_url: https://github.com/stripe/stripe-java/pull/904 +released_in_version: 15.4.0 +--- diff --git a/.hark/changes/2019-11-21_remi_add-support-paymentinten.change.md b/.hark/changes/2019-11-21_remi_add-support-paymentinten.change.md new file mode 100644 index 000000000000..8c32c3c8150e --- /dev/null +++ b/.hark/changes/2019-11-21_remi_add-support-paymentinten.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `payment_intent` filter when listing `Dispute`s. +pr_url: https://github.com/stripe/stripe-java/pull/905 +released_in_version: 15.5.0 +--- diff --git a/.hark/changes/2019-11-25_remi_add-support-outofbandamo.change.md b/.hark/changes/2019-11-25_remi_add-support-outofbandamo.change.md new file mode 100644 index 000000000000..ea9634c5dce9 --- /dev/null +++ b/.hark/changes/2019-11-25_remi_add-support-outofbandamo.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `out_of_band_amount` on `CreditNote` creation +pr_url: https://github.com/stripe/stripe-java/pull/907 +released_in_version: 15.6.0 +--- diff --git a/.hark/changes/2019-11-26_ob_add-support-preview.change.md b/.hark/changes/2019-11-26_ob_add-support-preview.change.md new file mode 100644 index 000000000000..889a63ccf9a3 --- /dev/null +++ b/.hark/changes/2019-11-26_ob_add-support-preview.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for Preview endpoint on CreditNote +pr_url: https://github.com/stripe/stripe-java/pull/908 +released_in_version: 15.7.0 +--- diff --git a/.hark/changes/2019-12-04_remi_add-support-network.change.md b/.hark/changes/2019-12-04_remi_add-support-network.change.md new file mode 100644 index 000000000000..60875eb6e5e1 --- /dev/null +++ b/.hark/changes/2019-12-04_remi_add-support-network.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `network` on `Charge` and `funding_method` on `SourceTransaction` +pr_url: https://github.com/stripe/stripe-java/pull/912 +released_in_version: 16.1.0 +--- diff --git a/.hark/changes/2019-12-04_remi_multiple-api-changes.change.md b/.hark/changes/2019-12-04_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..bf933bcfc871 --- /dev/null +++ b/.hark/changes/2019-12-04_remi_multiple-api-changes.change.md @@ -0,0 +1,11 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/911 +is_stripe_api_change: true +released_in_version: 16.0.0 +--- + +* Pin to API version `2019-12-03` +* Remove `tax_info` and `tax_info_verification` on `Customer` +* Remove `cardholder` on Issuing `Card` update +* Remove `invoice_customer_balance_settings` from `Subscription` diff --git a/.hark/changes/2019-12-04_remi_use-global-timeouts.change.md b/.hark/changes/2019-12-04_remi_use-global-timeouts.change.md new file mode 100644 index 000000000000..fb07dc8458bd --- /dev/null +++ b/.hark/changes/2019-12-04_remi_use-global-timeouts.change.md @@ -0,0 +1,5 @@ +--- +title: Use global timeouts in RequestOptions +pr_url: https://github.com/stripe/stripe-java/pull/910 +released_in_version: 16.0.0 +--- diff --git a/.hark/changes/2019-12-05_richardm_add-documentatio-enum.change.md b/.hark/changes/2019-12-05_richardm_add-documentatio-enum.change.md new file mode 100644 index 000000000000..8143eb18b571 --- /dev/null +++ b/.hark/changes/2019-12-05_richardm_add-documentatio-enum.change.md @@ -0,0 +1,5 @@ +--- +title: Add documentation for enum values +pr_url: https://github.com/stripe/stripe-java/pull/906 +released_in_version: 16.2.0 +--- diff --git a/.hark/changes/2019-12-09_remi_add-support-au.change.md b/.hark/changes/2019-12-09_remi_add-support-au.change.md new file mode 100644 index 000000000000..d33564d3eb30 --- /dev/null +++ b/.hark/changes/2019-12-09_remi_add-support-au.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for AU BECS Debit on `PaymentMethod` +pr_url: https://github.com/stripe/stripe-java/pull/914 +released_in_version: 16.2.0 +--- diff --git a/.hark/changes/2019-12-20_remi_add-executivespr-account.change.md b/.hark/changes/2019-12-20_remi_add-executivespr-account.change.md new file mode 100644 index 000000000000..db56f16c9f2c --- /dev/null +++ b/.hark/changes/2019-12-20_remi_add-executivespr-account.change.md @@ -0,0 +1,5 @@ +--- +title: Add `executives_provided` on `Account` +pr_url: https://github.com/stripe/stripe-java/pull/921 +released_in_version: 16.4.0 +--- diff --git a/.hark/changes/2019-12-20_remi_multiple-api-changes.change.md b/.hark/changes/2019-12-20_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..972e5903c956 --- /dev/null +++ b/.hark/changes/2019-12-20_remi_multiple-api-changes.change.md @@ -0,0 +1,9 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/918 +is_stripe_api_change: true +released_in_version: 16.3.0 +--- + +* Adds `livemode` and `metadata` to Terminal `Reader` and `Location` +* Adds `ms` as a valid locale on Checkout `Session` diff --git a/.hark/changes/2020-01-08_richardm_codegen-openapi-c896d1f.change.md b/.hark/changes/2020-01-08_richardm_codegen-openapi-c896d1f.change.md new file mode 100644 index 000000000000..2ade8e06b77a --- /dev/null +++ b/.hark/changes/2020-01-08_richardm_codegen-openapi-c896d1f.change.md @@ -0,0 +1,10 @@ +--- +title: Codegen for openapi c896d1f +pr_url: https://github.com/stripe/stripe-java/pull/922 +is_stripe_api_change: true +released_in_version: 16.5.0 +--- + +* Add support for custom properties on `Source.detach` method +* Add support for property expansion in `Subscription.cancel` method. +* Add support for `sg_uen` on `TaxId` diff --git a/.hark/changes/2020-01-10_remi_doc-changes-core.change.md b/.hark/changes/2020-01-10_remi_doc-changes-core.change.md new file mode 100644 index 000000000000..db7840d42d42 --- /dev/null +++ b/.hark/changes/2020-01-10_remi_doc-changes-core.change.md @@ -0,0 +1,5 @@ +--- +title: Doc changes for core properties or parameters such as `metadata` or `livemode` +pr_url: https://github.com/stripe/stripe-java/pull/924 +released_in_version: 16.5.1 +--- diff --git a/.hark/changes/2020-01-13_ob_remove-support-custom.change.md b/.hark/changes/2020-01-13_ob_remove-support-custom.change.md new file mode 100644 index 000000000000..d5b373f71450 --- /dev/null +++ b/.hark/changes/2020-01-13_ob_remove-support-custom.change.md @@ -0,0 +1,6 @@ +--- +title: Remove support for custom `URLStreamHandler` +pr_url: https://github.com/stripe/stripe-java/pull/927 +semver_level: major +released_in_version: 17.0.0 +--- diff --git a/.hark/changes/2020-01-13_ob_stringutils-class-better.change.md b/.hark/changes/2020-01-13_ob_stringutils-class-better.change.md new file mode 100644 index 000000000000..0ba4a10e932e --- /dev/null +++ b/.hark/changes/2020-01-13_ob_stringutils-class-better.change.md @@ -0,0 +1,5 @@ +--- +title: "`StringUtils` class & better API key validation" +pr_url: https://github.com/stripe/stripe-java/pull/928 +released_in_version: 17.0.0 +--- diff --git a/.hark/changes/2020-01-14_ob_bump-stripe-mock.change.md b/.hark/changes/2020-01-14_ob_bump-stripe-mock.change.md new file mode 100644 index 000000000000..97049b459330 --- /dev/null +++ b/.hark/changes/2020-01-14_ob_bump-stripe-mock.change.md @@ -0,0 +1,5 @@ +--- +title: Bump stripe-mock to 0.79.0 +pr_url: https://github.com/stripe/stripe-java/pull/930 +released_in_version: 16.7.0 +--- diff --git a/.hark/changes/2020-01-14_ob_modernize-striperespon.change.md b/.hark/changes/2020-01-14_ob_modernize-striperespon.change.md new file mode 100644 index 000000000000..250a46b6fd0a --- /dev/null +++ b/.hark/changes/2020-01-14_ob_modernize-striperespon.change.md @@ -0,0 +1,6 @@ +--- +title: Modernize `StripeResponse` +pr_url: https://github.com/stripe/stripe-java/pull/932 +semver_level: major +released_in_version: 17.0.0 +--- diff --git a/.hark/changes/2020-01-14_ob_refactor-http-headers.change.md b/.hark/changes/2020-01-14_ob_refactor-http-headers.change.md new file mode 100644 index 000000000000..bbccc015e524 --- /dev/null +++ b/.hark/changes/2020-01-14_ob_refactor-http-headers.change.md @@ -0,0 +1,6 @@ +--- +title: Refactor HTTP headers handling +pr_url: https://github.com/stripe/stripe-java/pull/931 +semver_level: major +released_in_version: 17.0.0 +--- diff --git a/.hark/changes/2020-01-14_remi_add-support-creditnoteli.change.md b/.hark/changes/2020-01-14_remi_add-support-creditnoteli.change.md new file mode 100644 index 000000000000..10839b6f16a8 --- /dev/null +++ b/.hark/changes/2020-01-14_remi_add-support-creditnoteli.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `CreditNoteLineItem` +pr_url: https://github.com/stripe/stripe-java/pull/929 +released_in_version: 16.6.0 +--- diff --git a/.hark/changes/2020-01-15_ob_add-maxnetworkre-global.change.md b/.hark/changes/2020-01-15_ob_add-maxnetworkre-global.change.md new file mode 100644 index 000000000000..f4a71eb50a31 --- /dev/null +++ b/.hark/changes/2020-01-15_ob_add-maxnetworkre-global.change.md @@ -0,0 +1,5 @@ +--- +title: Add `maxNetworkRetries` as a global and per-request setting +pr_url: https://github.com/stripe/stripe-java/pull/934 +released_in_version: 17.0.0 +--- diff --git a/.hark/changes/2020-01-15_ob_add-streamutils-class.change.md b/.hark/changes/2020-01-15_ob_add-streamutils-class.change.md new file mode 100644 index 000000000000..a86a7faeee27 --- /dev/null +++ b/.hark/changes/2020-01-15_ob_add-streamutils-class.change.md @@ -0,0 +1,6 @@ +--- +title: Add `StreamUtils` class +pr_url: https://github.com/stripe/stripe-java/pull/935 +semver_level: major +released_in_version: 17.0.0 +--- diff --git a/.hark/changes/2020-01-15_ob_major-version-release.change.md b/.hark/changes/2020-01-15_ob_major-version-release.change.md new file mode 100644 index 000000000000..3e5db7843ae7 --- /dev/null +++ b/.hark/changes/2020-01-15_ob_major-version-release.change.md @@ -0,0 +1,5 @@ +--- +title: Major version release. Refer to our [migration guide for v17](https://github.com/stripe/stripe-java/wiki/Migration-guide-for-v17) for a list of new features and backwards incompatible changes to watch out for. +pr_url: https://github.com/stripe/stripe-java/pull/869 +released_in_version: 17.0.0 +--- diff --git a/.hark/changes/2020-01-15_ob_remove-deprecated-properties.change.md b/.hark/changes/2020-01-15_ob_remove-deprecated-properties.change.md new file mode 100644 index 000000000000..987e43f73a2a --- /dev/null +++ b/.hark/changes/2020-01-15_ob_remove-deprecated-properties.change.md @@ -0,0 +1,6 @@ +--- +title: Remove deprecated properties and parameters +pr_url: https://github.com/stripe/stripe-java/pull/938 +semver_level: major +released_in_version: 17.0.0 +--- diff --git a/.hark/changes/2020-01-15_ob_remove-support-count.change.md b/.hark/changes/2020-01-15_ob_remove-support-count.change.md new file mode 100644 index 000000000000..55e01bee6bbd --- /dev/null +++ b/.hark/changes/2020-01-15_ob_remove-support-count.change.md @@ -0,0 +1,6 @@ +--- +title: Remove support for `count` and `total_count` in list objects +pr_url: https://github.com/stripe/stripe-java/pull/936 +semver_level: major +released_in_version: 17.0.0 +--- diff --git a/.hark/changes/2020-01-15_ob_update-readme.change.md b/.hark/changes/2020-01-15_ob_update-readme.change.md new file mode 100644 index 000000000000..3e62b0ac1c29 --- /dev/null +++ b/.hark/changes/2020-01-15_ob_update-readme.change.md @@ -0,0 +1,5 @@ +--- +title: Update README +pr_url: https://github.com/stripe/stripe-java/pull/939 +released_in_version: 17.0.0 +--- diff --git a/.hark/changes/2020-01-15_remi_add-support-pendingupdat.change.md b/.hark/changes/2020-01-15_remi_add-support-pendingupdat.change.md new file mode 100644 index 000000000000..f07a08c4a014 --- /dev/null +++ b/.hark/changes/2020-01-15_remi_add-support-pendingupdat.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `pending_update` on `Subscription` +pr_url: https://github.com/stripe/stripe-java/pull/933 +released_in_version: 16.7.0 +--- diff --git a/.hark/changes/2020-01-15_remi_adding-missing-events.change.md b/.hark/changes/2020-01-15_remi_adding-missing-events.change.md new file mode 100644 index 000000000000..6093f7053134 --- /dev/null +++ b/.hark/changes/2020-01-15_remi_adding-missing-events.change.md @@ -0,0 +1,5 @@ +--- +title: Adding missing events for pending updates on `Subscription` +pr_url: https://github.com/stripe/stripe-java/pull/937 +released_in_version: 16.8.0 +--- diff --git a/.hark/changes/2020-01-16_ob_add-stripeobject-interface.change.md b/.hark/changes/2020-01-16_ob_add-stripeobject-interface.change.md new file mode 100644 index 000000000000..92db694d10d9 --- /dev/null +++ b/.hark/changes/2020-01-16_ob_add-stripeobject-interface.change.md @@ -0,0 +1,5 @@ +--- +title: Add `StripeObjectInterface` interface +pr_url: https://github.com/stripe/stripe-java/pull/940 +released_in_version: 17.1.0 +--- diff --git a/.hark/changes/2020-01-18_remi_add-support-metadata.change.md b/.hark/changes/2020-01-18_remi_add-support-metadata.change.md new file mode 100644 index 000000000000..52befdc50226 --- /dev/null +++ b/.hark/changes/2020-01-18_remi_add-support-metadata.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `metadata` on Checkout `Session` +pr_url: https://github.com/stripe/stripe-java/pull/943 +released_in_version: 17.1.0 +--- diff --git a/.hark/changes/2020-01-22_remi_improve-docstrings-many.change.md b/.hark/changes/2020-01-22_remi_improve-docstrings-many.change.md new file mode 100644 index 000000000000..b2f2aa2f97cb --- /dev/null +++ b/.hark/changes/2020-01-22_remi_improve-docstrings-many.change.md @@ -0,0 +1,5 @@ +--- +title: Improve docstrings for many properties and parameters +pr_url: https://github.com/stripe/stripe-java/pull/944 +released_in_version: 17.1.1 +--- diff --git a/.hark/changes/2020-01-24_ob_changes-custom-http.change.md b/.hark/changes/2020-01-24_ob_changes-custom-http.change.md new file mode 100644 index 000000000000..bb30366dd8db --- /dev/null +++ b/.hark/changes/2020-01-24_ob_changes-custom-http.change.md @@ -0,0 +1,5 @@ +--- +title: Changes for custom HTTP clients +pr_url: https://github.com/stripe/stripe-java/pull/947 +released_in_version: 17.2.0 +--- diff --git a/.hark/changes/2020-01-24_remi_add-support-shipping.change.md b/.hark/changes/2020-01-24_remi_add-support-shipping.change.md new file mode 100644 index 000000000000..69c61cc71413 --- /dev/null +++ b/.hark/changes/2020-01-24_remi_add-support-shipping.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `shipping.speed` on Issuing `Card` and new `TaxID` types +pr_url: https://github.com/stripe/stripe-java/pull/948 +released_in_version: 17.3.0 +--- diff --git a/.hark/changes/2020-01-27_remi_move-examples-customer.change.md b/.hark/changes/2020-01-27_remi_move-examples-customer.change.md new file mode 100644 index 000000000000..cc1c3ff41cf5 --- /dev/null +++ b/.hark/changes/2020-01-27_remi_move-examples-customer.change.md @@ -0,0 +1,5 @@ +--- +title: Move examples to Customer instead of Charge +pr_url: https://github.com/stripe/stripe-java/pull/949 +released_in_version: 17.4.0 +--- diff --git a/.hark/changes/2020-01-28_remi_add-new-type.change.md b/.hark/changes/2020-01-28_remi_add-new-type.change.md new file mode 100644 index 000000000000..cf9ceec002a9 --- /dev/null +++ b/.hark/changes/2020-01-28_remi_add-new-type.change.md @@ -0,0 +1,5 @@ +--- +title: Add new type for `TaxId` and `sender_account_name` on `SourceTransaction` +pr_url: https://github.com/stripe/stripe-java/pull/953 +released_in_version: 17.4.0 +--- diff --git a/.hark/changes/2020-01-30_remi_add-support-fpx.change.md b/.hark/changes/2020-01-30_remi_add-support-fpx.change.md new file mode 100644 index 000000000000..3e885386c37a --- /dev/null +++ b/.hark/changes/2020-01-30_remi_add-support-fpx.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for FPX as a `PaymentMethod` +pr_url: https://github.com/stripe/stripe-java/pull/955 +released_in_version: 17.5.0 +--- diff --git a/.hark/changes/2020-01-31_remi_add-support-company.change.md b/.hark/changes/2020-01-31_remi_add-support-company.change.md new file mode 100644 index 000000000000..5372afdc7fc5 --- /dev/null +++ b/.hark/changes/2020-01-31_remi_add-support-company.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `company.structure` on `Account` and new types of `TaxId` +pr_url: https://github.com/stripe/stripe-java/pull/959 +released_in_version: 17.6.0 +--- diff --git a/.hark/changes/2020-02-03_remi_add-additional-verification.change.md b/.hark/changes/2020-02-03_remi_add-additional-verification.change.md new file mode 100644 index 000000000000..ebb5bed97378 --- /dev/null +++ b/.hark/changes/2020-02-03_remi_add-additional-verification.change.md @@ -0,0 +1,5 @@ +--- +title: Add additional verification file purpose +pr_url: https://github.com/stripe/stripe-java/pull/957 +released_in_version: 17.7.0 +--- diff --git a/.hark/changes/2020-02-04_ob_rename-sortcode-sendersortco.change.md b/.hark/changes/2020-02-04_ob_rename-sortcode-sendersortco.change.md new file mode 100644 index 000000000000..2655ab45040c --- /dev/null +++ b/.hark/changes/2020-02-04_ob_rename-sortcode-sendersortco.change.md @@ -0,0 +1,5 @@ +--- +title: Rename `sort_code` to `sender_sort_code` on `SourceTransaction` for BACS debit. (This is technically a breaking change.) +pr_url: https://github.com/stripe/stripe-java/pull/961 +released_in_version: 17.8.0 +--- diff --git a/.hark/changes/2020-02-04_remi_add-support-erroronrequi.change.md b/.hark/changes/2020-02-04_remi_add-support-erroronrequi.change.md new file mode 100644 index 000000000000..51ba0a0bfebd --- /dev/null +++ b/.hark/changes/2020-02-04_remi_add-support-erroronrequi.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `error_on_requires_action` on `PaymentIntent` +pr_url: https://github.com/stripe/stripe-java/pull/960 +released_in_version: 17.7.0 +--- diff --git a/.hark/changes/2020-02-11_ob_add-gradle-plugin.change.md b/.hark/changes/2020-02-11_ob_add-gradle-plugin.change.md new file mode 100644 index 000000000000..433b092b1b2b --- /dev/null +++ b/.hark/changes/2020-02-11_ob_add-gradle-plugin.change.md @@ -0,0 +1,5 @@ +--- +title: Add Gradle plugin for publishing JavaDoc to GitHub Pages +pr_url: https://github.com/stripe/stripe-java/pull/965 +released_in_version: 17.9.1 +--- diff --git a/.hark/changes/2020-02-11_ob_convert-markdown-html.change.md b/.hark/changes/2020-02-11_ob_convert-markdown-html.change.md new file mode 100644 index 000000000000..7cde736a6b3a --- /dev/null +++ b/.hark/changes/2020-02-11_ob_convert-markdown-html.change.md @@ -0,0 +1,5 @@ +--- +title: Convert Markdown to HTML in Javadoc +pr_url: https://github.com/stripe/stripe-java/pull/964 +released_in_version: 17.9.1 +--- diff --git a/.hark/changes/2020-02-11_remi_multiple-api-changes.change.md b/.hark/changes/2020-02-11_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..838fdb7f05b1 --- /dev/null +++ b/.hark/changes/2020-02-11_remi_multiple-api-changes.change.md @@ -0,0 +1,9 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/963 +is_stripe_api_change: true +released_in_version: 17.9.0 +--- + +* Add support for new `type` values for `TaxId`. +* Add support for `payment_intent_data[statement_descriptor_suffix]` on Checkout `Session`. diff --git a/.hark/changes/2020-02-12_remi_add-support-paymentinten.change.md b/.hark/changes/2020-02-12_remi_add-support-paymentinten.change.md new file mode 100644 index 000000000000..6f2d803175fa --- /dev/null +++ b/.hark/changes/2020-02-12_remi_add-support-paymentinten.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `payment_intent_data[transfer_data][amount]` on Checkout `Session` +pr_url: https://github.com/stripe/stripe-java/pull/968 +released_in_version: 17.11.0 +--- diff --git a/.hark/changes/2020-02-12_remi_multiple-api-changes.change.md b/.hark/changes/2020-02-12_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..143df6921323 --- /dev/null +++ b/.hark/changes/2020-02-12_remi_multiple-api-changes.change.md @@ -0,0 +1,11 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/967 +is_stripe_api_change: true +released_in_version: 17.10.0 +--- + +* Add `fpx` as a valid `source_type` on `Balance`, `Payout` and `Transfer` +* Add `fpx` support on Checkout `Session` +* Fields inside `verification_data` on Issuing `Authorization` are now enums +* Support updating `payment_method_options` on `PaymentIntent` and `SetupIntent` diff --git a/.hark/changes/2020-02-21_remi_multiple-api-changes.change.md b/.hark/changes/2020-02-21_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..a0c6caaab737 --- /dev/null +++ b/.hark/changes/2020-02-21_remi_multiple-api-changes.change.md @@ -0,0 +1,9 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/970 +is_stripe_api_change: true +released_in_version: 17.12.0 +--- + +* Add support for `timezone` on `ReportRun` +* Add support for `proration_behavior` on `SubscriptionSchedule` diff --git a/.hark/changes/2020-02-24_remi_add-support-listing.change.md b/.hark/changes/2020-02-24_remi_add-support-listing.change.md new file mode 100644 index 000000000000..a43e3ddc9746 --- /dev/null +++ b/.hark/changes/2020-02-24_remi_add-support-listing.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for listing Checkout `Session` and passing tax rate information +pr_url: https://github.com/stripe/stripe-java/pull/973 +released_in_version: 17.13.0 +--- diff --git a/.hark/changes/2020-02-25_remi_add-new-enum.change.md b/.hark/changes/2020-02-25_remi_add-new-enum.change.md new file mode 100644 index 000000000000..7c66281d7e31 --- /dev/null +++ b/.hark/changes/2020-02-25_remi_add-new-enum.change.md @@ -0,0 +1,5 @@ +--- +title: Add new enum values in `reason` for Issuing `Dispute` creation +pr_url: https://github.com/stripe/stripe-java/pull/974 +released_in_version: 17.14.0 +--- diff --git a/.hark/changes/2020-02-27_remi_make-type-accountlink.change.md b/.hark/changes/2020-02-27_remi_make-type-accountlink.change.md new file mode 100644 index 000000000000..686e3279ada0 --- /dev/null +++ b/.hark/changes/2020-02-27_remi_make-type-accountlink.change.md @@ -0,0 +1,5 @@ +--- +title: Make `type` on `AccountLink` an enum +pr_url: https://github.com/stripe/stripe-java/pull/975 +released_in_version: 17.15.0 +--- diff --git a/.hark/changes/2020-02-28_remi_add-mysst-valid.change.md b/.hark/changes/2020-02-28_remi_add-mysst-valid.change.md new file mode 100644 index 000000000000..788d2aa28063 --- /dev/null +++ b/.hark/changes/2020-02-28_remi_add-mysst-valid.change.md @@ -0,0 +1,5 @@ +--- +title: Add `my_sst` as a valid value for `type` on `TaxId` +pr_url: https://github.com/stripe/stripe-java/pull/976 +released_in_version: 17.16.0 +--- diff --git a/.hark/changes/2020-03-03_remi_multiple-api-changes.change.md b/.hark/changes/2020-03-03_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..20f89aefbb18 --- /dev/null +++ b/.hark/changes/2020-03-03_remi_multiple-api-changes.change.md @@ -0,0 +1,10 @@ +--- +title: "Multiple API changes:" +pr_url: https://github.com/stripe/stripe-java/pull/977 +released_in_version: 18.0.0 +--- + +* Pin to API version `2020-03-02` +* Remove `uob_regional` as a value on `bank` for FPX as this is deprecated and was never used +* Add support for `next_invoice_sequence` on `Customer` +* Add support for `proration_behavior` on `SubscriptionItem` delete diff --git a/.hark/changes/2020-03-04_remi_multiple-api-changes.change.md b/.hark/changes/2020-03-04_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..136df0939e16 --- /dev/null +++ b/.hark/changes/2020-03-04_remi_multiple-api-changes.change.md @@ -0,0 +1,10 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/979 +is_stripe_api_change: true +released_in_version: 18.2.0 +--- + +* Add support for `account` as a parameter on `Token` to create Account tokens +* Add support for `verification_data.expiry_check` on Issuing `Authorization` +* Add support for `incorrect_cvc` and `incorrect_expiry` as a value for `request_history.reason` on Issuing `Authorization` diff --git a/.hark/changes/2020-03-04_remi_multiple-api-changes2.change.md b/.hark/changes/2020-03-04_remi_multiple-api-changes2.change.md new file mode 100644 index 000000000000..d4cf32f3fa3c --- /dev/null +++ b/.hark/changes/2020-03-04_remi_multiple-api-changes2.change.md @@ -0,0 +1,9 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/978 +is_stripe_api_change: true +released_in_version: 18.1.0 +--- + +* Add support for `errors` in `requirements` on `Account`, `Capability` and `Person` +* Add support for `payment_intent.processing` as a new `type` on `Event`. diff --git a/.hark/changes/2020-03-05_remi_add-support-metadata.change.md b/.hark/changes/2020-03-05_remi_add-support-metadata.change.md new file mode 100644 index 000000000000..ce8ddcbb5d50 --- /dev/null +++ b/.hark/changes/2020-03-05_remi_add-support-metadata.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `metadata` on `WebhookEndpoint` +pr_url: https://github.com/stripe/stripe-java/pull/980 +released_in_version: 18.3.0 +--- diff --git a/.hark/changes/2020-03-06_remi_make-metadata-nullable.change.md b/.hark/changes/2020-03-06_remi_make-metadata-nullable.change.md new file mode 100644 index 000000000000..50947a206800 --- /dev/null +++ b/.hark/changes/2020-03-06_remi_make-metadata-nullable.change.md @@ -0,0 +1,5 @@ +--- +title: Make metadata nullable in many methods +pr_url: https://github.com/stripe/stripe-java/pull/981 +released_in_version: 18.4.0 +--- diff --git a/.hark/changes/2020-03-12_remi_add-support-shipping.change.md b/.hark/changes/2020-03-12_remi_add-support-shipping.change.md new file mode 100644 index 000000000000..9506f5ba5567 --- /dev/null +++ b/.hark/changes/2020-03-12_remi_add-support-shipping.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `shipping` and `shipping_address_collection` on Checkout `Session` +pr_url: https://github.com/stripe/stripe-java/pull/985 +released_in_version: 18.6.0 +--- diff --git a/.hark/changes/2020-03-12_remi_add-support-threedsecure.change.md b/.hark/changes/2020-03-12_remi_add-support-threedsecure.change.md new file mode 100644 index 000000000000..a3a1c3fc0be5 --- /dev/null +++ b/.hark/changes/2020-03-12_remi_add-support-threedsecure.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `ThreeDSecure` on Issuing `Authorization` +pr_url: https://github.com/stripe/stripe-java/pull/984 +released_in_version: 18.5.0 +--- diff --git a/.hark/changes/2020-03-13_remi_multiple-api-changes.change.md b/.hark/changes/2020-03-13_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..34c2b10729cd --- /dev/null +++ b/.hark/changes/2020-03-13_remi_multiple-api-changes.change.md @@ -0,0 +1,9 @@ +--- +title: "Multiple API changes for Issuing:" +pr_url: https://github.com/stripe/stripe-java/pull/986 +released_in_version: 18.7.0 +--- + +* Rename `speed` to `service` on Issuing `Card` +* Rename `wallet_provider` to `wallet` and `address_zip_check` to `address_postal_code_check` on Issuing `Authorization` +* Mark `is_default` as deprecated on Issuing `Cardholder` diff --git a/.hark/changes/2020-03-20_remi_multiple-api-changes.change.md b/.hark/changes/2020-03-20_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..d5ba8a154a54 --- /dev/null +++ b/.hark/changes/2020-03-20_remi_multiple-api-changes.change.md @@ -0,0 +1,11 @@ +--- +title: "Multiple API changes for Issuing:" +pr_url: https://github.com/stripe/stripe-java/pull/989 +released_in_version: 18.8.0 +--- + +* Add `amount`, `currency`, `merchant_amount` and `merchant_currency` on `Authorization` +* Add `amount`, `currency`, `merchant_amount` and `merchant_currency` inside `request_history` on `Authorization` +* Add `pending_request` on `Authorization` +* Add `amount` when approving an `Authorization` +* Add `replaced_by` on `Card`. diff --git a/.hark/changes/2020-03-24_remi_add-support-capabilities.change.md b/.hark/changes/2020-03-24_remi_add-support-capabilities.change.md new file mode 100644 index 000000000000..a14ffbb6e1ab --- /dev/null +++ b/.hark/changes/2020-03-24_remi_add-support-capabilities.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for capabilities for AU Becs Debit and Tax reporting +pr_url: https://github.com/stripe/stripe-java/pull/991 +released_in_version: 18.9.0 +--- diff --git a/.hark/changes/2020-03-24_remi_add-support-pausecollect.change.md b/.hark/changes/2020-03-24_remi_add-support-pausecollect.change.md new file mode 100644 index 000000000000..41d5f53f7a1c --- /dev/null +++ b/.hark/changes/2020-03-24_remi_add-support-pausecollect.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `pause_collection` on `Subscription` +pr_url: https://github.com/stripe/stripe-java/pull/992 +released_in_version: 18.10.0 +--- diff --git a/.hark/changes/2020-03-25_remi_multiple-api-changes.change.md b/.hark/changes/2020-03-25_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..f115922943e9 --- /dev/null +++ b/.hark/changes/2020-03-25_remi_multiple-api-changes.change.md @@ -0,0 +1,9 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/993 +is_stripe_api_change: true +released_in_version: 18.11.0 +--- + +* Add support for `pt-BR` as a `locale` on Checkout `Session` +* Add support for `company` as a `type` on Issuing `Cardholder` diff --git a/.hark/changes/2020-03-26_remi_add-support-spendingcont.change.md b/.hark/changes/2020-03-26_remi_add-support-spendingcont.change.md new file mode 100644 index 000000000000..564039ed38cc --- /dev/null +++ b/.hark/changes/2020-03-26_remi_add-support-spendingcont.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `spending_controls` on Issuing `Card` and `Cardholder` +pr_url: https://github.com/stripe/stripe-java/pull/994 +released_in_version: 18.12.0 +--- diff --git a/.hark/changes/2020-04-03_remi_add-support-calculatedst.change.md b/.hark/changes/2020-04-03_remi_add-support-calculatedst.change.md new file mode 100644 index 000000000000..aee97020d4eb --- /dev/null +++ b/.hark/changes/2020-04-03_remi_add-support-calculatedst.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `calculatedStatementDescriptor` on `Charge` +pr_url: https://github.com/stripe/stripe-java/pull/998 +released_in_version: 18.13.0 +--- diff --git a/.hark/changes/2020-04-04_ob_bump-gradle-other.change.md b/.hark/changes/2020-04-04_ob_bump-gradle-other.change.md new file mode 100644 index 000000000000..96fe3249375e --- /dev/null +++ b/.hark/changes/2020-04-04_ob_bump-gradle-other.change.md @@ -0,0 +1,5 @@ +--- +title: Bump Gradle and other dependencies +pr_url: https://github.com/stripe/stripe-java/pull/999 +released_in_version: 18.13.1 +--- diff --git a/.hark/changes/2020-04-04_ob_update-generated-code.change.md b/.hark/changes/2020-04-04_ob_update-generated-code.change.md new file mode 100644 index 000000000000..6c6af181e495 --- /dev/null +++ b/.hark/changes/2020-04-04_ob_update-generated-code.change.md @@ -0,0 +1,9 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/999 +released_in_version: 10.11.0 +--- + +* Add `off_session` to `SubscriptionItem` update +* Add `customer` when listing `CreditNote` +* Remove `challenge_only` enum value. This is technically a breaking change, but we've chosen to release this as a minor version in light of the fact that this value was virtually unused. diff --git a/.hark/changes/2020-04-06_ob_improve-connection-reuse.change.md b/.hark/changes/2020-04-06_ob_improve-connection-reuse.change.md new file mode 100644 index 000000000000..97618d4e96a5 --- /dev/null +++ b/.hark/changes/2020-04-06_ob_improve-connection-reuse.change.md @@ -0,0 +1,5 @@ +--- +title: Improve connection reuse +pr_url: https://github.com/stripe/stripe-java/pull/971 +released_in_version: 18.13.1 +--- diff --git a/.hark/changes/2020-04-10_remi_multiple-api-changes.change.md b/.hark/changes/2020-04-10_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..f3992a8eebf8 --- /dev/null +++ b/.hark/changes/2020-04-10_remi_multiple-api-changes.change.md @@ -0,0 +1,10 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/1002 +is_stripe_api_change: true +released_in_version: 18.14.0 +--- + +* Make `payment_intent` expandable on `Charge` +* Add support for `sg_gst` as a value for `type` on `TaxId` and related APIs +* Add `cancellation_reason` and new enum values for `replacement_reason` on Issuing `Card` diff --git a/.hark/changes/2020-04-14_remi_add-support-description.change.md b/.hark/changes/2020-04-14_remi_add-support-description.change.md new file mode 100644 index 000000000000..1e5a349758d1 --- /dev/null +++ b/.hark/changes/2020-04-14_remi_add-support-description.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `description` on `WebhookEndpoint` +pr_url: https://github.com/stripe/stripe-java/pull/1003 +released_in_version: 18.15.0 +--- diff --git a/.hark/changes/2020-04-14_remi_add-support-settings.change.md b/.hark/changes/2020-04-14_remi_add-support-settings.change.md new file mode 100644 index 000000000000..1a17f39bee3f --- /dev/null +++ b/.hark/changes/2020-04-14_remi_add-support-settings.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `settings[branding][secondary_color]` on `Account` +pr_url: https://github.com/stripe/stripe-java/pull/1006 +released_in_version: 18.16.0 +--- diff --git a/.hark/changes/2020-04-15_remi_multiple-breaking-api.change.md b/.hark/changes/2020-04-15_remi_multiple-breaking-api.change.md new file mode 100644 index 000000000000..3d5a7fb11fd5 --- /dev/null +++ b/.hark/changes/2020-04-15_remi_multiple-breaking-api.change.md @@ -0,0 +1,38 @@ +--- +title: "Multiple breaking API changes while removing deprecated Issuing features:" +pr_url: https://github.com/stripe/stripe-java/pull/1009 +released_in_version: 19.0.0 +--- + +* Moved `SettingsBranding` on `Account` is now `Branding` inside the `Settings` on `Account` +* Removed `percentage` filter from the List `TaxRate` API +* Remove `country` and `routing_number` from `payment_method_details.acss_debit` on `Charge` as this is going to be reworked +* Moved `transfer_data` on `Subscription` to its own class separate from the one on `Invoice` +* Removing all deprecated features on Issuing: + * Remove `renewal_interval` on `SubscriptionSchedule` which was deprecated + * Remove `email` on `Token` as this was only supported for an internal product + * Removed deprecated properties and parameters on Issuing `Authorization` that have been renamed or replaced: + * `authorized_amount`, `authorized_currency`, `held_amount`, `held_currency`, `is_held_amount_controllable`, `pending_authorized_amount`, `pending_held_amount`, `wallet_provider` + * Removed `url` inside `merchant_data` + * Removed `address_zip_check`, `authentication` and `three_d_secure` inside `verification_data` + * Removed `authorized_amount`, `authorized_currency`, `held_amount`, `held_currency`, `violated_authorization_controls` from `pending_request` + * Removed deprecated properties and parameters on Issuing `Card`: + * Removed `authorization_controls`, `name`, `pin` and `speed` + * Renamed the inner class from `AuthorizationControls` to `SpendingControls` + * Moved `SpendingLimit` as an inner class inside `SpendingControls`. + * Moved `MerchantData` from being its own class to being an inner class inside `Authorization` + * Removed the `details()` API method + * Removed `CardDetails` API resource + * Removed deprecated properties and parameters on Issuing `Cardholder`: + * Removed `authorization_controls`, `is_default` + * Removed `name` inside `billing` + * Renamed the inner class from `AuthorizationControls` to `SpendingControls` + * Moved `MerchantData` from being its own class to being an inner class inside `Authorization` + * Moved `SpendingLimit` as an inner class inside `SpendingControls` + * Removed the `details()` API method + * Clean up the `Dispute` resource and APIs to remove most features as this is still in beta and not yet stable + * Removed `issuing_dispute.*` and `issuing_settlement.*` events as those are not public yet + * Removed deprecated properties and parameters on Issuing `Transaction`: + * Removed `dispute` + * Reference `merchant_data` from the inner class in `Authorization` + * Removed enum values for `type` to only have `capture` and `refund` diff --git a/.hark/changes/2020-04-16_remi_multiple-api-changes.change.md b/.hark/changes/2020-04-16_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..952af67adbeb --- /dev/null +++ b/.hark/changes/2020-04-16_remi_multiple-api-changes.change.md @@ -0,0 +1,9 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/1010 +is_stripe_api_change: true +released_in_version: 19.1.0 +--- + +* Add `institution_number` and `transit_number` in `payment_method_details[acss]` on `Charge` +* Add `cvc` and `number` as properties that can be included when retrieving an Issuing `Card` diff --git a/.hark/changes/2020-04-18_remi_multiple-api-changes.change.md b/.hark/changes/2020-04-18_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..0df4155e8ff0 --- /dev/null +++ b/.hark/changes/2020-04-18_remi_multiple-api-changes.change.md @@ -0,0 +1,9 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/1013 +is_stripe_api_change: true +released_in_version: 19.2.0 +--- + +* Add support for `cardholder_name` in `payment_method_details[card_present]` on `Charge` +* Add new enum values for `company[structure]` on `Account` diff --git a/.hark/changes/2020-04-22_remi_add-support-billingporta.change.md b/.hark/changes/2020-04-22_remi_add-support-billingporta.change.md new file mode 100644 index 000000000000..486fbde02d03 --- /dev/null +++ b/.hark/changes/2020-04-22_remi_add-support-billingporta.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `billingportal` namespace and `Session` resource and APIs +pr_url: https://github.com/stripe/stripe-java/pull/1014 +released_in_version: 19.3.0 +--- diff --git a/.hark/changes/2020-04-22_remi_add-support-coupon.change.md b/.hark/changes/2020-04-22_remi_add-support-coupon.change.md new file mode 100644 index 000000000000..a9f5f82ee57e --- /dev/null +++ b/.hark/changes/2020-04-22_remi_add-support-coupon.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `coupon` for subscriptions on Checkout +pr_url: https://github.com/stripe/stripe-java/pull/1015 +released_in_version: 19.4.0 +--- diff --git a/.hark/changes/2020-04-24_remi_add-support-jcbpayments.change.md b/.hark/changes/2020-04-24_remi_add-support-jcbpayments.change.md new file mode 100644 index 000000000000..8482484acc5d --- /dev/null +++ b/.hark/changes/2020-04-24_remi_add-support-jcbpayments.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `jcb_payments` as a `Capability` +pr_url: https://github.com/stripe/stripe-java/pull/1016 +released_in_version: 19.5.0 +--- diff --git a/.hark/changes/2020-04-29_remi_add-support-brcpf.change.md b/.hark/changes/2020-04-29_remi_add-support-brcpf.change.md new file mode 100644 index 000000000000..6d2a00be5fd8 --- /dev/null +++ b/.hark/changes/2020-04-29_remi_add-support-brcpf.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `br_cpf` and `br_cnpj` as `type` on `TaxId` +pr_url: https://github.com/stripe/stripe-java/pull/1020 +released_in_version: 19.7.0 +--- diff --git a/.hark/changes/2020-04-29_remi_add-support-price.change.md b/.hark/changes/2020-04-29_remi_add-support-price.change.md new file mode 100644 index 000000000000..a97e09af9b76 --- /dev/null +++ b/.hark/changes/2020-04-29_remi_add-support-price.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for the `Price` resource and APIs +pr_url: https://github.com/stripe/stripe-java/pull/1019 +released_in_version: 19.6.0 +--- diff --git a/.hark/changes/2020-05-01_remi_add-support-issuing.change.md b/.hark/changes/2020-05-01_remi_add-support-issuing.change.md new file mode 100644 index 000000000000..b52c4d58f093 --- /dev/null +++ b/.hark/changes/2020-05-01_remi_add-support-issuing.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `issuing` on `Balance` +pr_url: https://github.com/stripe/stripe-java/pull/1022 +released_in_version: 19.8.0 +--- diff --git a/.hark/changes/2020-05-07_remi_multiple-api-changes.change.md b/.hark/changes/2020-05-07_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..1e5a581ef7b5 --- /dev/null +++ b/.hark/changes/2020-05-07_remi_multiple-api-changes.change.md @@ -0,0 +1,10 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/1025 +is_stripe_api_change: true +released_in_version: 19.9.0 +--- + +* Remove parameters in `price_data[recurring]` across APIs as they were never supported +* Move `payment_method_details[card][three_d_secure]` to a list of enum values on `Charge` +* Add support for for `business_profile[support_address]` on `Account` create and update diff --git a/.hark/changes/2020-05-12_remi_add-support-lineitem.change.md b/.hark/changes/2020-05-12_remi_add-support-lineitem.change.md new file mode 100644 index 000000000000..8f155711f0ab --- /dev/null +++ b/.hark/changes/2020-05-12_remi_add-support-lineitem.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for the `LineItem` resource and APIs +pr_url: https://github.com/stripe/stripe-java/pull/1028 +released_in_version: 19.10.0 +--- diff --git a/.hark/changes/2020-05-13_remi_add-support-purchasedeta.change.md b/.hark/changes/2020-05-13_remi_add-support-purchasedeta.change.md new file mode 100644 index 000000000000..f7b571647be0 --- /dev/null +++ b/.hark/changes/2020-05-13_remi_add-support-purchasedeta.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `purchase_details` on Issuing `Transaction` +pr_url: https://github.com/stripe/stripe-java/pull/1030 +released_in_version: 19.11.0 +--- diff --git a/.hark/changes/2020-05-19_remi_multiple-api-changes.change.md b/.hark/changes/2020-05-19_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..b8b60c24af99 --- /dev/null +++ b/.hark/changes/2020-05-19_remi_multiple-api-changes.change.md @@ -0,0 +1,13 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/1032 +is_stripe_api_change: true +released_in_version: 19.12.0 +--- + +* Add support for `issuing_dispute` as a `type` on `BalanceTransaction` +* Add `balance_transactions` as an array of `BalanceTransaction` on Issuing `Dispute` +* Add `fingerprint` and `transaction_id` in `payment_method_details[alipay]` on `Charge` +* Add `transfer_data[amount]` on `Invoice` +* Add `transfer_data[amount_percent]` on `Subscription` +* Add `price.created`, `price.deleted` and `price.updated` on `Event`. diff --git a/.hark/changes/2020-05-20_remi_multiple-api-changes.change.md b/.hark/changes/2020-05-20_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..5c0ad40e7e20 --- /dev/null +++ b/.hark/changes/2020-05-20_remi_multiple-api-changes.change.md @@ -0,0 +1,11 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/1033 +is_stripe_api_change: true +released_in_version: 19.13.0 +--- + +* Add `anticipation_repayment` as a `type` on `BalanceTransaction` +* Add `interac_present` as a `type` on `PaymentMethod` +* Add `payment_method_details[interac_present]` on `Charge` +* Add `transfer_data` on `SubscriptionSchedule` diff --git a/.hark/changes/2020-05-22_remi_multiple-api-changes.change.md b/.hark/changes/2020-05-22_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..b09d7b1397af --- /dev/null +++ b/.hark/changes/2020-05-22_remi_multiple-api-changes.change.md @@ -0,0 +1,9 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/1034 +is_stripe_api_change: true +released_in_version: 19.14.0 +--- + +* Add support for `ae_trn`, `cl_tin` and `sa_vat` as `type` on `TaxId` +* Add `result` and `result_reason` inside `payment_method_details[card][three_d_secure]` on `Charge` diff --git a/.hark/changes/2020-05-28_remi_multiple-api-changes.change.md b/.hark/changes/2020-05-28_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..b3fb00eac14c --- /dev/null +++ b/.hark/changes/2020-05-28_remi_multiple-api-changes.change.md @@ -0,0 +1,9 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/1035 +is_stripe_api_change: true +released_in_version: 19.15.0 +--- + +* Add `payment_method_details[card][three_d_secure][authentication_flow]` on `Charge` +* Add `line_items[][price_data][product_data]` on Checkout `Session` creation diff --git a/.hark/changes/2020-05-29_remi_add-support-bacs.change.md b/.hark/changes/2020-05-29_remi_add-support-bacs.change.md new file mode 100644 index 000000000000..8862fb7d73cf --- /dev/null +++ b/.hark/changes/2020-05-29_remi_add-support-bacs.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for BACS Debit as a `PaymentMethod` +pr_url: https://github.com/stripe/stripe-java/pull/1036 +released_in_version: 19.16.0 +--- diff --git a/.hark/changes/2020-06-03_remi_add-support-bancontact.change.md b/.hark/changes/2020-06-03_remi_add-support-bancontact.change.md new file mode 100644 index 000000000000..63c54c242763 --- /dev/null +++ b/.hark/changes/2020-06-03_remi_add-support-bancontact.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for Bancontact, EPS, Giropay and P24 on Checkout `Session` +pr_url: https://github.com/stripe/stripe-java/pull/1040 +released_in_version: 19.19.0 +--- diff --git a/.hark/changes/2020-06-03_remi_add-support-paymentinten.change.md b/.hark/changes/2020-06-03_remi_add-support-paymentinten.change.md new file mode 100644 index 000000000000..897c7dedaa30 --- /dev/null +++ b/.hark/changes/2020-06-03_remi_add-support-paymentinten.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `payment_intent_data[transfer_group]` on Checkout `Session` +pr_url: https://github.com/stripe/stripe-java/pull/1041 +released_in_version: 19.20.0 +--- diff --git a/.hark/changes/2020-06-03_remi_multiple-api-changes.change.md b/.hark/changes/2020-06-03_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..00faaaa62ef2 --- /dev/null +++ b/.hark/changes/2020-06-03_remi_multiple-api-changes.change.md @@ -0,0 +1,10 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/1039 +is_stripe_api_change: true +released_in_version: 19.18.0 +--- + +* Add `bacs_debit_payments` as a `Capability` +* Add support for BACS Debit on Checkout `Session` +* Add support for `checkout.session.async_payment_failed` and `checkout.session.async_payment_succeeded` as `type` on `Event` diff --git a/.hark/changes/2020-06-03_remi_multiple-api-changes2.change.md b/.hark/changes/2020-06-03_remi_multiple-api-changes2.change.md new file mode 100644 index 000000000000..fb10bab1ce6f --- /dev/null +++ b/.hark/changes/2020-06-03_remi_multiple-api-changes2.change.md @@ -0,0 +1,11 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/1038 +is_stripe_api_change: true +released_in_version: 19.17.0 +--- + +* Add support for bg, cs, el, et, hu, lt, lv, mt, ro, ru, sk, sl and tr as new locale on Checkout `Session` +* Add `settings[sepa_debit_payments][creditor_id]` on `Account` +* Add support for Bancontact, EPS, Giropay and P24 on `PaymentMethod`, `PaymentIntent` and `SetupIntent` +* Add support for `order_item[parent]` on `Source` for Klarna diff --git a/.hark/changes/2020-06-09_remi_add-support-idnpwp.change.md b/.hark/changes/2020-06-09_remi_add-support-idnpwp.change.md new file mode 100644 index 000000000000..9985ac7011ef --- /dev/null +++ b/.hark/changes/2020-06-09_remi_add-support-idnpwp.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `id_npwp` and `my_frp` as `type` on `TaxId` +pr_url: https://github.com/stripe/stripe-java/pull/1042 +released_in_version: 19.21.0 +--- diff --git a/.hark/changes/2020-06-11_remi_add-support-cartes.change.md b/.hark/changes/2020-06-11_remi_add-support-cartes.change.md new file mode 100644 index 000000000000..b758d85f1a59 --- /dev/null +++ b/.hark/changes/2020-06-11_remi_add-support-cartes.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for Cartes Bancaires payments on `PaymentIntent` and `Pay… +pr_url: https://github.com/stripe/stripe-java/pull/1043 +released_in_version: 19.22.0 +--- diff --git a/.hark/changes/2020-06-11_remi_multiple-api-changes.change.md b/.hark/changes/2020-06-11_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..976f9e87a7bb --- /dev/null +++ b/.hark/changes/2020-06-11_remi_multiple-api-changes.change.md @@ -0,0 +1,9 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/1044 +is_stripe_api_change: true +released_in_version: 19.23.0 +--- + +* Add `transaction` on Issuing `Dispute` +* Add `payment_method_details[acss_debit][mandate]` on `Charge` diff --git a/.hark/changes/2020-06-18_remi_multiple-api-changes.change.md b/.hark/changes/2020-06-18_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..478be343f296 --- /dev/null +++ b/.hark/changes/2020-06-18_remi_multiple-api-changes.change.md @@ -0,0 +1,9 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/1047 +is_stripe_api_change: true +released_in_version: 19.24.0 +--- + +* Add support for `refresh_url` and `return_url` on `AccountLink` +* Add support for `issuing_dispute.*` events diff --git a/.hark/changes/2020-06-23_remi_multiple-api-changes.change.md b/.hark/changes/2020-06-23_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..51ccdb83bffb --- /dev/null +++ b/.hark/changes/2020-06-23_remi_multiple-api-changes.change.md @@ -0,0 +1,11 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/1048 +is_stripe_api_change: true +released_in_version: 19.25.0 +--- + +* Add `discounts` on `LineItem` +* Add `document_provider_identity_document` as a `purpose` on `File` +* Support nullable `metadata` on Issuing `Dispute` +* Add `klarna[shipping_delay]` on `Source` diff --git a/.hark/changes/2020-06-24_remi_add-support-paymentmetho.change.md b/.hark/changes/2020-06-24_remi_add-support-paymentmetho.change.md new file mode 100644 index 000000000000..885f0a5cca6a --- /dev/null +++ b/.hark/changes/2020-06-24_remi_add-support-paymentmetho.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `payment_method_data` on `PaymentIntent` +pr_url: https://github.com/stripe/stripe-java/pull/1049 +released_in_version: 19.26.0 +--- diff --git a/.hark/changes/2020-06-25_remi_add-support-invoice.change.md b/.hark/changes/2020-06-25_remi_add-support-invoice.change.md new file mode 100644 index 000000000000..bfe860c011e4 --- /dev/null +++ b/.hark/changes/2020-06-25_remi_add-support-invoice.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `invoice.paid` event +pr_url: https://github.com/stripe/stripe-java/pull/1052 +released_in_version: 19.27.0 +--- diff --git a/.hark/changes/2020-07-13_cjavilla_multiple-api-changes.change.md b/.hark/changes/2020-07-13_cjavilla_multiple-api-changes.change.md new file mode 100644 index 000000000000..e64ac37b7396 --- /dev/null +++ b/.hark/changes/2020-07-13_cjavilla_multiple-api-changes.change.md @@ -0,0 +1,9 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/1055 +is_stripe_api_change: true +released_in_version: 19.28.0 +--- + +* Adds `es-419` as a `locale` to Checkout `Session` +* Adds `billing_cycle_anchor` to `default_settings` and `phases` for `SubscriptionSchedule` diff --git a/.hark/changes/2020-07-16_remi_add-support-amounttotal.change.md b/.hark/changes/2020-07-16_remi_add-support-amounttotal.change.md new file mode 100644 index 000000000000..aee6bbbdadd2 --- /dev/null +++ b/.hark/changes/2020-07-16_remi_add-support-amounttotal.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `amount_total`, `amount_subtotal`, `currency` and `total_details` on Checkout `Session` +pr_url: https://github.com/stripe/stripe-java/pull/1057 +released_in_version: 19.29.0 +--- diff --git a/.hark/changes/2020-07-16_remi_add-support-en.change.md b/.hark/changes/2020-07-16_remi_add-support-en.change.md new file mode 100644 index 000000000000..5d18dac8d133 --- /dev/null +++ b/.hark/changes/2020-07-16_remi_add-support-en.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `en-GB`, `fr-CA` and `id` as `locale` on Checkout `Session` +pr_url: https://github.com/stripe/stripe-java/pull/1058 +released_in_version: 19.30.0 +--- diff --git a/.hark/changes/2020-07-17_remi_add-support-politicalexp.change.md b/.hark/changes/2020-07-17_remi_add-support-politicalexp.change.md new file mode 100644 index 000000000000..2c65bbc71b15 --- /dev/null +++ b/.hark/changes/2020-07-17_remi_add-support-politicalexp.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `political_exposure` on `Person` +pr_url: https://github.com/stripe/stripe-java/pull/1062 +released_in_version: 19.32.0 +--- diff --git a/.hark/changes/2020-07-17_remi_multiple-api-changes.change.md b/.hark/changes/2020-07-17_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..5a0aa5b9fe9c --- /dev/null +++ b/.hark/changes/2020-07-17_remi_multiple-api-changes.change.md @@ -0,0 +1,9 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/1061 +is_stripe_api_change: true +released_in_version: 19.31.0 +--- + +* Add `deleted` on `LineItem` +* Add support for `account_onboarding` and `account_update` as `type` on `AccountLink` diff --git a/.hark/changes/2020-07-20_remi_add-support-capabilities.change.md b/.hark/changes/2020-07-20_remi_add-support-capabilities.change.md new file mode 100644 index 000000000000..391ef3ffa1ff --- /dev/null +++ b/.hark/changes/2020-07-20_remi_add-support-capabilities.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `capabilities` as a parameter on `Account` create and update +pr_url: https://github.com/stripe/stripe-java/pull/1066 +released_in_version: 19.33.0 +--- diff --git a/.hark/changes/2020-07-22_remi_add-support-cartesbancai.change.md b/.hark/changes/2020-07-22_remi_add-support-cartesbancai.change.md new file mode 100644 index 000000000000..83a5faa487c0 --- /dev/null +++ b/.hark/changes/2020-07-22_remi_add-support-cartesbancai.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `cartes_bancaires_payments` as a `Capability` +pr_url: https://github.com/stripe/stripe-java/pull/1067 +released_in_version: 19.34.0 +--- diff --git a/.hark/changes/2020-07-25_remi_add-capabilities-fpxpayments.change.md b/.hark/changes/2020-07-25_remi_add-capabilities-fpxpayments.change.md new file mode 100644 index 000000000000..c8dedfa1eab0 --- /dev/null +++ b/.hark/changes/2020-07-25_remi_add-capabilities-fpxpayments.change.md @@ -0,0 +1,5 @@ +--- +title: Add `capabilities[fpx_payments]` on `Account` create and update +pr_url: https://github.com/stripe/stripe-java/pull/1068 +released_in_version: 19.35.0 +--- diff --git a/.hark/changes/2020-07-29_remi_multiple-api-changes.change.md b/.hark/changes/2020-07-29_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..d4eb388f4d54 --- /dev/null +++ b/.hark/changes/2020-07-29_remi_multiple-api-changes.change.md @@ -0,0 +1,11 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/1070 +is_stripe_api_change: true +released_in_version: 19.36.0 +--- + +* Add support for `id`, `invoice` and `invoice_item` on `Discount` +* Add support for `discount_amounts` on `CreditNote`, `CreditNoteLineItem`, `InvoiceLineItem` +* Add support for `discounts` on `InvoiceItem`, `InvoiceLineItem` and `Invoice` +* Add support for `total_discount_amounts` on `Invoice` diff --git a/.hark/changes/2020-07-30_richardm_socket-timeout-exceptions.change.md b/.hark/changes/2020-07-30_richardm_socket-timeout-exceptions.change.md new file mode 100644 index 000000000000..08614f032ab7 --- /dev/null +++ b/.hark/changes/2020-07-30_richardm_socket-timeout-exceptions.change.md @@ -0,0 +1,5 @@ +--- +title: Socket timeout exceptions are now also subject to retries +pr_url: https://github.com/stripe/stripe-java/pull/1072 +released_in_version: 19.37.0 +--- diff --git a/.hark/changes/2020-07-31_richardm_support-setting-proxy.change.md b/.hark/changes/2020-07-31_richardm_support-setting-proxy.change.md new file mode 100644 index 000000000000..8fa8c8180efa --- /dev/null +++ b/.hark/changes/2020-07-31_richardm_support-setting-proxy.change.md @@ -0,0 +1,5 @@ +--- +title: Support setting "proxy" per-request +pr_url: https://github.com/stripe/stripe-java/pull/1065 +released_in_version: 19.37.0 +--- diff --git a/.hark/changes/2020-08-04_remi_multiple-api-changes.change.md b/.hark/changes/2020-08-04_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..da86e3c3b4ac --- /dev/null +++ b/.hark/changes/2020-08-04_remi_multiple-api-changes.change.md @@ -0,0 +1,9 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/1076 +is_stripe_api_change: true +released_in_version: 19.38.0 +--- + +* Add `zh-HK` and `zh-TW` as `locale` on Checkout `Session`. +* Add `payment_method_details[card_present][receipt][account_type]` on `Charge` diff --git a/.hark/changes/2020-08-05_remi_multiple-api-changes.change.md b/.hark/changes/2020-08-05_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..81fc2b28604a --- /dev/null +++ b/.hark/changes/2020-08-05_remi_multiple-api-changes.change.md @@ -0,0 +1,12 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/1077 +is_stripe_api_change: true +released_in_version: 19.39.0 +--- + +* Add support for the `PromotionCode` resource and APIs +* Add support for `allow_promotion_codes` on Checkout `Session` +* Add support for `applies_to[products]` on `Coupon` +* Add support for `promotion_code` on `Customer` and `Subscription` +* Add support for `promotion_code` on `Discount` diff --git a/.hark/changes/2020-08-07_remi_add-support-alipay.change.md b/.hark/changes/2020-08-07_remi_add-support-alipay.change.md new file mode 100644 index 000000000000..2e5bef52d85a --- /dev/null +++ b/.hark/changes/2020-08-07_remi_add-support-alipay.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for Alipay on `PaymentMethod` and `PaymentIntent` +pr_url: https://github.com/stripe/stripe-java/pull/1078 +released_in_version: 19.40.0 +--- diff --git a/.hark/changes/2020-08-13_richardm_add-paymentmetho-acssdebit.change.md b/.hark/changes/2020-08-13_richardm_add-paymentmetho-acssdebit.change.md new file mode 100644 index 000000000000..7ac791e66b5f --- /dev/null +++ b/.hark/changes/2020-08-13_richardm_add-paymentmetho-acssdebit.change.md @@ -0,0 +1,5 @@ +--- +title: Add `payment_method_details[acss_debit][bank_name]` on `Charge` +pr_url: https://github.com/stripe/stripe-java/pull/1081 +released_in_version: 19.41.0 +--- diff --git a/.hark/changes/2020-08-14_remi_add-support-alipay.change.md b/.hark/changes/2020-08-14_remi_add-support-alipay.change.md new file mode 100644 index 000000000000..b26ca0ea7808 --- /dev/null +++ b/.hark/changes/2020-08-14_remi_add-support-alipay.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for Alipay on Checkout `Session` +pr_url: https://github.com/stripe/stripe-java/pull/1082 +released_in_version: 19.42.0 +--- diff --git a/.hark/changes/2020-08-17_remi_multiple-api-changes.change.md b/.hark/changes/2020-08-17_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..d29d932f97ff --- /dev/null +++ b/.hark/changes/2020-08-17_remi_multiple-api-changes.change.md @@ -0,0 +1,9 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/1083 +is_stripe_api_change: true +released_in_version: 19.43.0 +--- + +* Add `alipay` on `type` for the List PaymentMethods API +* Add `payment_intent.requires_action` as a new `type` on `Event` diff --git a/.hark/changes/2020-08-18_remi_add-support-amountdetail.change.md b/.hark/changes/2020-08-18_remi_add-support-amountdetail.change.md new file mode 100644 index 000000000000..6f59e01da0b5 --- /dev/null +++ b/.hark/changes/2020-08-18_remi_add-support-amountdetail.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `amount_details` on Issuing `Authorization` and `Transaction` +pr_url: https://github.com/stripe/stripe-java/pull/1084 +released_in_version: 19.44.0 +--- diff --git a/.hark/changes/2020-08-19_remi_add-support-expiresat.change.md b/.hark/changes/2020-08-19_remi_add-support-expiresat.change.md new file mode 100644 index 000000000000..fb85a071ae59 --- /dev/null +++ b/.hark/changes/2020-08-19_remi_add-support-expiresat.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `expires_at` on `File` +pr_url: https://github.com/stripe/stripe-java/pull/1085 +released_in_version: 19.45.0 +--- diff --git a/.hark/changes/2020-08-27_matthewling_fix-retrieval-upcoming.change.md b/.hark/changes/2020-08-27_matthewling_fix-retrieval-upcoming.change.md new file mode 100644 index 000000000000..4b90c2a84ce8 --- /dev/null +++ b/.hark/changes/2020-08-27_matthewling_fix-retrieval-upcoming.change.md @@ -0,0 +1,5 @@ +--- +title: Fix retrieval of upcoming Invoice line items +pr_url: https://github.com/stripe/stripe-java/pull/1087 +released_in_version: 20.0.0 +--- diff --git a/.hark/changes/2020-08-31_remi_add-support-paymentmetho.change.md b/.hark/changes/2020-08-31_remi_add-support-paymentmetho.change.md new file mode 100644 index 000000000000..db5303f8d2d1 --- /dev/null +++ b/.hark/changes/2020-08-31_remi_add-support-paymentmetho.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `payment_method.automatically_updated` on `WebhookEndpoint` +pr_url: https://github.com/stripe/stripe-java/pull/1089 +released_in_version: 20.1.0 +--- diff --git a/.hark/changes/2020-08-31_remi_multiple-api-changes.change.md b/.hark/changes/2020-08-31_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..134375eacc54 --- /dev/null +++ b/.hark/changes/2020-08-31_remi_multiple-api-changes.change.md @@ -0,0 +1,20 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/1088 +is_stripe_api_change: true +released_in_version: 20.0.0 +--- + +* Pin to API version `2020-08-27` +* Removed `authenticated` and `succeeded` on `payment_method_details[card][three_d_secure]` on `Charge` +* Removed `tax_percent` and `prorate` across all Billing APIs +* Renamed `plans` to `items` on `SubscriptionSchedule` +* Removed `display_items` on Checkout `Session` +* Removed `save_payment_method` and `source` on `PaymentIntent` confirm, create and update. Those parameters still work in the API but are removed from the library +* Removed `payment_method_details[bitcoin]` on `Charge` +* Removed `unified_proration` on Billing API as this is a deprecated feature that never shipped publicly +* Removed `plan` and `quantity` from `Subscription`, use `items` instead +* Removed `requested_capabilities` on `Account` creation, use `capabilities` instead +* Removed `failure_url` and `success_url` from `AccountLink`, use `refresh_url` and `return_url` instead +* Removed `invoice.payment_succeeded` and `payment_method.card_automatically_updated` events +* `sources` and `tax_ids` on `Customer` are now includable sub-lists and not returned by default when retrieving a customer. You need to explicitly expand those properties to call `getTaxIds()` or `getSources()` now to create those sub-resources. Our API Reference has been updated to reflect this. diff --git a/.hark/changes/2020-09-02_remi_multiple-api-changes.change.md b/.hark/changes/2020-09-02_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..f8a2cb595042 --- /dev/null +++ b/.hark/changes/2020-09-02_remi_multiple-api-changes.change.md @@ -0,0 +1,11 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/1092 +is_stripe_api_change: true +released_in_version: 20.2.0 +--- + +* Improve support for the Issuing `Dispute` APIs. Added the Submit API, missing parameters on creation, update and list and returned evidence details +* Add support for `dispute` on Issuing `Transaction` +* Add `available_payout_methods` on `BankAccount` +* Add `payment_status` on Checkout `Session` diff --git a/.hark/changes/2020-09-08_remi_add-support-sofort.change.md b/.hark/changes/2020-09-08_remi_add-support-sofort.change.md new file mode 100644 index 000000000000..493c6a908190 --- /dev/null +++ b/.hark/changes/2020-09-08_remi_add-support-sofort.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for Sofort on `PaymentMethod` and `PaymentIntent` +pr_url: https://github.com/stripe/stripe-java/pull/1096 +released_in_version: 20.3.0 +--- diff --git a/.hark/changes/2020-09-09_remi_multiple-api-changes.change.md b/.hark/changes/2020-09-09_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..e941b9f7fa11 --- /dev/null +++ b/.hark/changes/2020-09-09_remi_multiple-api-changes.change.md @@ -0,0 +1,9 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/1098 +is_stripe_api_change: true +released_in_version: 20.4.0 +--- + +* Add support for `sofort` as a `type` on the List PaymentMethods API +* Add back support for `invoice.payment_succeeded` diff --git a/.hark/changes/2020-09-09_suz_oauth-deauthorize-longer.change.md b/.hark/changes/2020-09-09_suz_oauth-deauthorize-longer.change.md new file mode 100644 index 000000000000..122184dd7fe5 --- /dev/null +++ b/.hark/changes/2020-09-09_suz_oauth-deauthorize-longer.change.md @@ -0,0 +1,5 @@ +--- +title: OAuth.deauthorize no longer mutates params +pr_url: https://github.com/stripe/stripe-java/pull/1095 +released_in_version: 20.3.1 +--- diff --git a/.hark/changes/2020-09-09_unknown_increase-delaybetween-deploy.change.md b/.hark/changes/2020-09-09_unknown_increase-delaybetween-deploy.change.md new file mode 100644 index 000000000000..eb40b25abd8f --- /dev/null +++ b/.hark/changes/2020-09-09_unknown_increase-delaybetween-deploy.change.md @@ -0,0 +1,4 @@ +--- +title: Increase `delayBetweenRetriesInMillis` deploy property from default of 2000 to 4000 to help mitigate close timeouts +released_in_version: 20.3.2 +--- diff --git a/.hark/changes/2020-09-10_remi_add-support-sepa.change.md b/.hark/changes/2020-09-10_remi_add-support-sepa.change.md new file mode 100644 index 000000000000..c64681a10e63 --- /dev/null +++ b/.hark/changes/2020-09-10_remi_add-support-sepa.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for SEPA debit on Checkout +pr_url: https://github.com/stripe/stripe-java/pull/1099 +released_in_version: 20.5.0 +--- diff --git a/.hark/changes/2020-09-13_remi_add-support-promotioncod.change.md b/.hark/changes/2020-09-13_remi_add-support-promotioncod.change.md new file mode 100644 index 000000000000..55d4400aa279 --- /dev/null +++ b/.hark/changes/2020-09-13_remi_add-support-promotioncod.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `promotion_code.created` and `promotion_code.updated` on `Event` +pr_url: https://github.com/stripe/stripe-java/pull/1102 +released_in_version: 20.6.0 +--- diff --git a/.hark/changes/2020-09-21_remi_multiple-api-changes.change.md b/.hark/changes/2020-09-21_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..27a4f48222b4 --- /dev/null +++ b/.hark/changes/2020-09-21_remi_multiple-api-changes.change.md @@ -0,0 +1,9 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/1106 +is_stripe_api_change: true +released_in_version: 20.7.0 +--- + +* Add support for `amount_captured` on `Charge` +* Add `checkout_session` on `Discount` diff --git a/.hark/changes/2020-09-23_remi_multiple-api-changes.change.md b/.hark/changes/2020-09-23_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..74dbee49dd6a --- /dev/null +++ b/.hark/changes/2020-09-23_remi_multiple-api-changes.change.md @@ -0,0 +1,9 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/1109 +is_stripe_api_change: true +released_in_version: 20.8.0 +--- + +* Add support for `issuing_dispute.closed` and `issuing_dispute.submitted` events +* Add support for `instant_available` on `Balance` diff --git a/.hark/changes/2020-09-25_ctrudeau_add-support-oxxo.change.md b/.hark/changes/2020-09-25_ctrudeau_add-support-oxxo.change.md new file mode 100644 index 000000000000..e3a34d9995ff --- /dev/null +++ b/.hark/changes/2020-09-25_ctrudeau_add-support-oxxo.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for OXXO on `PaymentMethod` and `PaymentIntent` +pr_url: https://github.com/stripe/stripe-java/pull/1112 +released_in_version: 20.9.0 +--- diff --git a/.hark/changes/2020-09-25_remi_add-support-oxxo.change.md b/.hark/changes/2020-09-25_remi_add-support-oxxo.change.md new file mode 100644 index 000000000000..04756ead0d2e --- /dev/null +++ b/.hark/changes/2020-09-25_remi_add-support-oxxo.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `oxxo` as a valid `type` on the List PaymentMethod API +pr_url: https://github.com/stripe/stripe-java/pull/1113 +released_in_version: 20.10.0 +--- diff --git a/.hark/changes/2020-09-29_remi_add-support-contribution.change.md b/.hark/changes/2020-09-29_remi_add-support-contribution.change.md new file mode 100644 index 000000000000..6c76479c5019 --- /dev/null +++ b/.hark/changes/2020-09-29_remi_add-support-contribution.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `contribution` in `reporting_category` on `ReportRun` +pr_url: https://github.com/stripe/stripe-java/pull/1117 +released_in_version: 20.12.0 +--- diff --git a/.hark/changes/2020-09-29_remi_add-support-oxxopayments.change.md b/.hark/changes/2020-09-29_remi_add-support-oxxopayments.change.md new file mode 100644 index 000000000000..67d0ada92da1 --- /dev/null +++ b/.hark/changes/2020-09-29_remi_add-support-oxxopayments.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `oxxo_payments` capability on `Account` +pr_url: https://github.com/stripe/stripe-java/pull/1116 +released_in_version: 20.11.0 +--- diff --git a/.hark/changes/2020-09-30_remi_add-support-setupattempt.change.md b/.hark/changes/2020-09-30_remi_add-support-setupattempt.change.md new file mode 100644 index 000000000000..eb241fd6c0f8 --- /dev/null +++ b/.hark/changes/2020-09-30_remi_add-support-setupattempt.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for the `SetupAttempt` resource and List API +pr_url: https://github.com/stripe/stripe-java/pull/1118 +released_in_version: 20.13.0 +--- diff --git a/.hark/changes/2020-10-02_remi_add-support-new.change.md b/.hark/changes/2020-10-02_remi_add-support-new.change.md new file mode 100644 index 000000000000..ab5513a7c6e0 --- /dev/null +++ b/.hark/changes/2020-10-02_remi_add-support-new.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for new payments capabilities on `Account` +pr_url: https://github.com/stripe/stripe-java/pull/1119 +released_in_version: 20.14.0 +--- diff --git a/.hark/changes/2020-10-02_remi_add-support-tosacceptanc.change.md b/.hark/changes/2020-10-02_remi_add-support-tosacceptanc.change.md new file mode 100644 index 000000000000..63057ad14746 --- /dev/null +++ b/.hark/changes/2020-10-02_remi_add-support-tosacceptanc.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `TosAcceptance.ServiceAgreement` on `Account` +pr_url: https://github.com/stripe/stripe-java/pull/1120 +released_in_version: 20.14.0 +--- diff --git a/.hark/changes/2020-10-08_unknown_add-support-generatedfro.change.md b/.hark/changes/2020-10-08_unknown_add-support-generatedfro.change.md new file mode 100644 index 000000000000..35fa53267c10 --- /dev/null +++ b/.hark/changes/2020-10-08_unknown_add-support-generatedfro.change.md @@ -0,0 +1,4 @@ +--- +title: Add support for `generated_from` on `PaymentMethod.sepa_debit` +released_in_version: 20.15.0 +--- diff --git a/.hark/changes/2020-10-08_unknown_add-support-generatedsep.change.md b/.hark/changes/2020-10-08_unknown_add-support-generatedsep.change.md new file mode 100644 index 000000000000..7bb09f6b8752 --- /dev/null +++ b/.hark/changes/2020-10-08_unknown_add-support-generatedsep.change.md @@ -0,0 +1,4 @@ +--- +title: Add support for `generated_sepa_debit` and `generated_sepa_debit_mandate` on `Charge.payment_method_details.ideal`, `Charge.payment_method_details.bancontact` and `Charge.payment_method_details.sofort` +released_in_version: 20.15.0 +--- diff --git a/.hark/changes/2020-10-08_unknown_add-support-ideal.change.md b/.hark/changes/2020-10-08_unknown_add-support-ideal.change.md new file mode 100644 index 000000000000..db28177dbfea --- /dev/null +++ b/.hark/changes/2020-10-08_unknown_add-support-ideal.change.md @@ -0,0 +1,4 @@ +--- +title: Add support for `ideal`, `bancontact` and `sofort` on `SetupAttempt.payment_method_details` +released_in_version: 20.15.0 +--- diff --git a/.hark/changes/2020-10-09_richardm_add-support-internal.change.md b/.hark/changes/2020-10-09_richardm_add-support-internal.change.md new file mode 100644 index 000000000000..55e4c0a89d7c --- /dev/null +++ b/.hark/changes/2020-10-09_richardm_add-support-internal.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for internal-only `description`, `iin`, and `issuer` for `card_present` and `interac_present` on `Charge.payment_method_details`. +pr_url: https://github.com/stripe/stripe-java/pull/1126 +released_in_version: 20.16.0 +--- diff --git a/.hark/changes/2020-10-14_remi_add-support-payout.change.md b/.hark/changes/2020-10-14_remi_add-support-payout.change.md new file mode 100644 index 000000000000..4d8d807b19d8 --- /dev/null +++ b/.hark/changes/2020-10-14_remi_add-support-payout.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for the Payout Reverse API +pr_url: https://github.com/stripe/stripe-java/pull/1129 +released_in_version: 20.18.0 +--- diff --git a/.hark/changes/2020-10-14_richardm_add-support-discounts.change.md b/.hark/changes/2020-10-14_richardm_add-support-discounts.change.md new file mode 100644 index 000000000000..405f41e30ba9 --- /dev/null +++ b/.hark/changes/2020-10-14_richardm_add-support-discounts.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `discounts` to SessionCreateParams +pr_url: https://github.com/stripe/stripe-java/pull/1130 +released_in_version: 20.19.0 +--- diff --git a/.hark/changes/2020-10-20_remi_add-support-jprn.change.md b/.hark/changes/2020-10-20_remi_add-support-jprn.change.md new file mode 100644 index 000000000000..a5d49db48913 --- /dev/null +++ b/.hark/changes/2020-10-20_remi_add-support-jprn.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `jp_rn` and `ru_kpp` as a `type` on `TaxId` +pr_url: https://github.com/stripe/stripe-java/pull/1133 +released_in_version: 20.20.0 +--- diff --git a/.hark/changes/2020-10-21_ob_bump-spotless-plugin.change.md b/.hark/changes/2020-10-21_ob_bump-spotless-plugin.change.md new file mode 100644 index 000000000000..4f404bffb08c --- /dev/null +++ b/.hark/changes/2020-10-21_ob_bump-spotless-plugin.change.md @@ -0,0 +1,5 @@ +--- +title: Bump Spotless plugin version +pr_url: https://github.com/stripe/stripe-java/pull/1137 +released_in_version: 20.21.0 +--- diff --git a/.hark/changes/2020-10-21_ob_fix-deprecation-warning.change.md b/.hark/changes/2020-10-21_ob_fix-deprecation-warning.change.md new file mode 100644 index 000000000000..6a4aaac81e93 --- /dev/null +++ b/.hark/changes/2020-10-21_ob_fix-deprecation-warning.change.md @@ -0,0 +1,5 @@ +--- +title: Fix deprecation warning in test file +pr_url: https://github.com/stripe/stripe-java/pull/1135 +released_in_version: 20.21.0 +--- diff --git a/.hark/changes/2020-10-22_ob_bump-errorprone-latest.change.md b/.hark/changes/2020-10-22_ob_bump-errorprone-latest.change.md new file mode 100644 index 000000000000..52c787fb46b8 --- /dev/null +++ b/.hark/changes/2020-10-22_ob_bump-errorprone-latest.change.md @@ -0,0 +1,5 @@ +--- +title: Bump ErrorProne to latest version +pr_url: https://github.com/stripe/stripe-java/pull/1138 +released_in_version: 20.21.0 +--- diff --git a/.hark/changes/2020-10-22_ob_upgrade-gradle-6.change.md b/.hark/changes/2020-10-22_ob_upgrade-gradle-6.change.md new file mode 100644 index 000000000000..0ae3bc571c36 --- /dev/null +++ b/.hark/changes/2020-10-22_ob_upgrade-gradle-6.change.md @@ -0,0 +1,5 @@ +--- +title: Upgrade Gradle to 6.7 +pr_url: https://github.com/stripe/stripe-java/pull/1134 +released_in_version: 20.21.0 +--- diff --git a/.hark/changes/2020-10-22_ob_upgrade-lombok-plugin.change.md b/.hark/changes/2020-10-22_ob_upgrade-lombok-plugin.change.md new file mode 100644 index 000000000000..2613cf6b534b --- /dev/null +++ b/.hark/changes/2020-10-22_ob_upgrade-lombok-plugin.change.md @@ -0,0 +1,5 @@ +--- +title: Upgrade Lombok plugin +pr_url: https://github.com/stripe/stripe-java/pull/1139 +released_in_version: 20.21.0 +--- diff --git a/.hark/changes/2020-10-23_remi_add-support-passing.change.md b/.hark/changes/2020-10-23_remi_add-support-passing.change.md new file mode 100644 index 000000000000..5c8294c0442d --- /dev/null +++ b/.hark/changes/2020-10-23_remi_add-support-passing.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for passing `p24[bank]` for P24 on `PaymentIntent` or `PaymentMethod` +pr_url: https://github.com/stripe/stripe-java/pull/1142 +released_in_version: 20.22.0 +--- diff --git a/.hark/changes/2020-10-23_remi_support-passing-taxrates.change.md b/.hark/changes/2020-10-23_remi_support-passing-taxrates.change.md new file mode 100644 index 000000000000..21776e980c0f --- /dev/null +++ b/.hark/changes/2020-10-23_remi_support-passing-taxrates.change.md @@ -0,0 +1,5 @@ +--- +title: Support passing `tax_rates` when creating invoice items through `Subscription` or `SubscriptionSchedule` +pr_url: https://github.com/stripe/stripe-java/pull/1141 +released_in_version: 20.21.0 +--- diff --git a/.hark/changes/2020-10-26_remi_multiple-api-changes.change.md b/.hark/changes/2020-10-26_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..076f07ab6d7c --- /dev/null +++ b/.hark/changes/2020-10-26_remi_multiple-api-changes.change.md @@ -0,0 +1,9 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/1143 +is_stripe_api_change: true +released_in_version: 20.23.0 +--- + +* Add support for `payment_method_options[card][cvc_token]` on `PaymentIntent` +* Add support for `cvc_update[cvc]` on `Token` creation diff --git a/.hark/changes/2020-10-27_remi_add-paymentmetho-interacprese.change.md b/.hark/changes/2020-10-27_remi_add-paymentmetho-interacprese.change.md new file mode 100644 index 000000000000..6c8405b87a54 --- /dev/null +++ b/.hark/changes/2020-10-27_remi_add-paymentmetho-interacprese.change.md @@ -0,0 +1,5 @@ +--- +title: Add `payment_method_details[interac_present][preferred_locales]` on `Charge` +pr_url: https://github.com/stripe/stripe-java/pull/1144 +released_in_version: 20.24.0 +--- diff --git a/.hark/changes/2020-11-04_remi_add-support-company.change.md b/.hark/changes/2020-11-04_remi_add-support-company.change.md new file mode 100644 index 000000000000..850f7db41480 --- /dev/null +++ b/.hark/changes/2020-11-04_remi_add-support-company.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `company[registration_number]` on `Account` +pr_url: https://github.com/stripe/stripe-java/pull/1147 +released_in_version: 20.25.0 +--- diff --git a/.hark/changes/2020-11-09_remi_add-invoice-finalization.change.md b/.hark/changes/2020-11-09_remi_add-invoice-finalization.change.md new file mode 100644 index 000000000000..7f74abb967e1 --- /dev/null +++ b/.hark/changes/2020-11-09_remi_add-invoice-finalization.change.md @@ -0,0 +1,5 @@ +--- +title: Add `invoice.finalization_error` as a `type` on `Event` +pr_url: https://github.com/stripe/stripe-java/pull/1149 +released_in_version: 20.26.0 +--- diff --git a/.hark/changes/2020-11-09_remi_multiple-api-changes.change.md b/.hark/changes/2020-11-09_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..9ce16c31c087 --- /dev/null +++ b/.hark/changes/2020-11-09_remi_multiple-api-changes.change.md @@ -0,0 +1,10 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/1148 +is_stripe_api_change: true +released_in_version: 20.26.0 +--- + +* Add support for `last_finalization_error` on `Invoice` +* Add support for deserializing Issuing `Dispute` as a `source` on `BalanceTransaction` +* Add support for `payment_method_type` on `StripeError` used by other API resources diff --git a/.hark/changes/2020-11-17_ctrudeau_multiple-api-changes.change.md b/.hark/changes/2020-11-17_ctrudeau_multiple-api-changes.change.md new file mode 100644 index 000000000000..aae395d2628f --- /dev/null +++ b/.hark/changes/2020-11-17_ctrudeau_multiple-api-changes.change.md @@ -0,0 +1,8 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/1152 +is_stripe_api_change: true +released_in_version: 20.27.0 +--- + +* Add support for sepa_debit on SetupIntentCreateParams, SetupIntentUpdateParams, and SetupIntentConfirmParams. diff --git a/.hark/changes/2020-11-17_unknown_identical-7-29.change.md b/.hark/changes/2020-11-17_unknown_identical-7-29.change.md new file mode 100644 index 000000000000..f684c51ee2ab --- /dev/null +++ b/.hark/changes/2020-11-17_unknown_identical-7-29.change.md @@ -0,0 +1,4 @@ +--- +title: Identical to 7.29.0 +released_in_version: 7.63.1 +--- diff --git a/.hark/changes/2020-11-17_unknown_published-error-do.change.md b/.hark/changes/2020-11-17_unknown_published-error-do.change.md new file mode 100644 index 000000000000..73e629e3f71f --- /dev/null +++ b/.hark/changes/2020-11-17_unknown_published-error-do.change.md @@ -0,0 +1,4 @@ +--- +title: Published in error. Do not use. This is identical to 20.27.0. +released_in_version: 7.63.0 +--- diff --git a/.hark/changes/2020-11-18_richardm_add-support-grabpay.change.md b/.hark/changes/2020-11-18_richardm_add-support-grabpay.change.md new file mode 100644 index 000000000000..4f01404e4f26 --- /dev/null +++ b/.hark/changes/2020-11-18_richardm_add-support-grabpay.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `grabpay` on `PaymentMethod`. +pr_url: https://github.com/stripe/stripe-java/pull/1154 +released_in_version: 20.28.0 +--- diff --git a/.hark/changes/2020-11-19_richardm_add-support-mandateoptio.change.md b/.hark/changes/2020-11-19_richardm_add-support-mandateoptio.change.md new file mode 100644 index 000000000000..00c040681c85 --- /dev/null +++ b/.hark/changes/2020-11-19_richardm_add-support-mandateoptio.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `mandate_options` on `SetupIntent.payment_method_options.sepa_debit` +pr_url: https://github.com/stripe/stripe-java/pull/1156 +released_in_version: 20.29.0 +--- diff --git a/.hark/changes/2020-11-20_remi_add-support-capabilities.change.md b/.hark/changes/2020-11-20_remi_add-support-capabilities.change.md new file mode 100644 index 000000000000..e2f541a053f5 --- /dev/null +++ b/.hark/changes/2020-11-20_remi_add-support-capabilities.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `capabilities[grabpay_payments]` on `Account` +pr_url: https://github.com/stripe/stripe-java/pull/1157 +released_in_version: 20.29.0 +--- diff --git a/.hark/changes/2020-11-24_remi_better-log-error.change.md b/.hark/changes/2020-11-24_remi_better-log-error.change.md new file mode 100644 index 000000000000..2cf917932e38 --- /dev/null +++ b/.hark/changes/2020-11-24_remi_better-log-error.change.md @@ -0,0 +1,5 @@ +--- +title: Better log the error causing the JSON parsing to fail on deserialization +pr_url: https://github.com/stripe/stripe-java/pull/1158 +released_in_version: 20.30.0 +--- diff --git a/.hark/changes/2020-11-24_remi_multiple-api-changes.change.md b/.hark/changes/2020-11-24_remi_multiple-api-changes.change.md new file mode 100644 index 000000000000..9026f838e2b1 --- /dev/null +++ b/.hark/changes/2020-11-24_remi_multiple-api-changes.change.md @@ -0,0 +1,9 @@ +--- +title: Multiple API changes +pr_url: https://github.com/stripe/stripe-java/pull/1159 +is_stripe_api_change: true +released_in_version: 20.30.0 +--- + +* Add support for `account_tax_ids` on `Invoice` +* Add support for `payment_method_options[sepa_debit]` on `PaymentIntent` diff --git a/.hark/changes/2020-12-04_remi_add-support-documents.change.md b/.hark/changes/2020-12-04_remi_add-support-documents.change.md new file mode 100644 index 000000000000..4db37744422f --- /dev/null +++ b/.hark/changes/2020-12-04_remi_add-support-documents.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `documents` on `Account` create and update +pr_url: https://github.com/stripe/stripe-java/pull/1161 +released_in_version: 20.31.0 +--- diff --git a/.hark/changes/2020-12-11_ctrudeau_codegen-multiple-api.change.md b/.hark/changes/2020-12-11_ctrudeau_codegen-multiple-api.change.md new file mode 100644 index 000000000000..dfd262e1d794 --- /dev/null +++ b/.hark/changes/2020-12-11_ctrudeau_codegen-multiple-api.change.md @@ -0,0 +1,8 @@ +--- +title: "[codegen] Multiple API changes" +pr_url: https://github.com/stripe/stripe-java/pull/1163 +released_in_version: 20.32.0 +--- + +* Add support for `bank` on `PaymentMethod` +* Add support for `tos_shown_and_accepted` to `payment_method_options[p24]` on `PaymentMethod`. diff --git a/.hark/changes/2020-12-15_suz_pass-mutated-copy.change.md b/.hark/changes/2020-12-15_suz_pass-mutated-copy.change.md new file mode 100644 index 000000000000..223ccdd0d77b --- /dev/null +++ b/.hark/changes/2020-12-15_suz_pass-mutated-copy.change.md @@ -0,0 +1,5 @@ +--- +title: Pass mutated copy of params into oauth request +pr_url: https://github.com/stripe/stripe-java/pull/1162 +released_in_version: 20.33.0 +--- diff --git a/.hark/changes/2020-12-16_ctrudeau_api-updates.change.md b/.hark/changes/2020-12-16_ctrudeau_api-updates.change.md new file mode 100644 index 000000000000..bbd9f53c9aad --- /dev/null +++ b/.hark/changes/2020-12-16_ctrudeau_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1165 +is_stripe_api_change: true +released_in_version: 20.33.0 +--- + +* Add support for card_present on SetupAttempt.payment_method_details diff --git a/.hark/changes/2021-01-04_ctrudeau_adding-getusermessa-exceptions.change.md b/.hark/changes/2021-01-04_ctrudeau_adding-getusermessa-exceptions.change.md new file mode 100644 index 000000000000..030e7606d05c --- /dev/null +++ b/.hark/changes/2021-01-04_ctrudeau_adding-getusermessa-exceptions.change.md @@ -0,0 +1,5 @@ +--- +title: Adding getUserMessage() to exceptions +pr_url: https://github.com/stripe/stripe-java/pull/1167 +released_in_version: 20.34.0 +--- diff --git a/.hark/changes/2021-01-07_ctrudeau_api-updates.change.md b/.hark/changes/2021-01-07_ctrudeau_api-updates.change.md new file mode 100644 index 000000000000..a6f3ba182092 --- /dev/null +++ b/.hark/changes/2021-01-07_ctrudeau_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1169 +is_stripe_api_change: true +released_in_version: 20.34.0 +--- + +* Add support for `company_registration_verification`, `company_ministerial_decree`, `company_memorandum_of_association`, `company_license` and `company_tax_id_verification` on `AccountUpdateParams.documents` and `AccountCreateParams.documents` diff --git a/.hark/changes/2021-01-15_richardm_api-updates.change.md b/.hark/changes/2021-01-15_richardm_api-updates.change.md new file mode 100644 index 000000000000..d191bb80cfbb --- /dev/null +++ b/.hark/changes/2021-01-15_richardm_api-updates.change.md @@ -0,0 +1,11 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1171 +is_stripe_api_change: true +released_in_version: 20.35.0 +--- + +* Add support for `dynamic_tax_rates` on `SessionCreateParams.line_items[]` +* Add support for `customer_details` on `Checkout.Session` +* Add support for `type` on `TransactionListParams` +* Add support for `country` and `state` on `TaxRateUpdateParams`, `TaxRateCreateParams` and `TaxRate` diff --git a/.hark/changes/2021-01-23_cjavilla_add-link-youtube.change.md b/.hark/changes/2021-01-23_cjavilla_add-link-youtube.change.md new file mode 100644 index 000000000000..c03f828129ab --- /dev/null +++ b/.hark/changes/2021-01-23_cjavilla_add-link-youtube.change.md @@ -0,0 +1,5 @@ +--- +title: Add link to YouTube from readme +pr_url: https://github.com/stripe/stripe-java/pull/1173 +released_in_version: 20.36.0 +--- diff --git a/.hark/changes/2021-02-03_richardm_update-generated-code.change.md b/.hark/changes/2021-02-03_richardm_update-generated-code.change.md new file mode 100644 index 000000000000..64efafa705dd --- /dev/null +++ b/.hark/changes/2021-02-03_richardm_update-generated-code.change.md @@ -0,0 +1,8 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1179 +released_in_version: 20.36.0 +--- + +* Add support for `nationality` on `Person`, `PersonUpdateParams`, `PersonCreateParams` and `TokenCreateParams.person` +* Add `gb_vat` to `TaxId.type` enum diff --git a/.hark/changes/2021-02-09_richardm_api-updates.change.md b/.hark/changes/2021-02-09_richardm_api-updates.change.md new file mode 100644 index 000000000000..84109b6f3540 --- /dev/null +++ b/.hark/changes/2021-02-09_richardm_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1182 +is_stripe_api_change: true +released_in_version: 20.37.0 +--- + +* Add support for `afterpay_clearpay_payments` on `Account.capabilities` +* Add support for `payment_settings` on `Invoice` diff --git a/.hark/changes/2021-02-10_richardm_accept-all-inputstreams.change.md b/.hark/changes/2021-02-10_richardm_accept-all-inputstreams.change.md new file mode 100644 index 000000000000..b64f9d6ccb6f --- /dev/null +++ b/.hark/changes/2021-02-10_richardm_accept-all-inputstreams.change.md @@ -0,0 +1,5 @@ +--- +title: Accept all InputStreams for FileCreateParams.setFile +pr_url: https://github.com/stripe/stripe-java/pull/1180 +released_in_version: 20.38.0 +--- diff --git a/.hark/changes/2021-02-17_richardm_api-updates.change.md b/.hark/changes/2021-02-17_richardm_api-updates.change.md new file mode 100644 index 000000000000..bf16f5e1456a --- /dev/null +++ b/.hark/changes/2021-02-17_richardm_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1186 +is_stripe_api_change: true +released_in_version: 20.40.0 +--- + +* Add support for `on_behalf_of` to `Invoice` +* Add support `revolut` as an enum member on `PaymentMethodCreateParams.Ideal.Bank`, `PaymentIntentConfirmParams.Ideal.Bank`, `PaymentIntentUpdateParams.Ideal.Bank`, and `PaymentIntentCreateParams.Ideal.Bank` diff --git a/.hark/changes/2021-02-17_richardm_api-updates2.change.md b/.hark/changes/2021-02-17_richardm_api-updates2.change.md new file mode 100644 index 000000000000..3d267e72b7a9 --- /dev/null +++ b/.hark/changes/2021-02-17_richardm_api-updates2.change.md @@ -0,0 +1,11 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1185 +is_stripe_api_change: true +released_in_version: 20.39.0 +--- + +* Add support for `afterpay_clearpay` on `PaymentMethod`, `PaymentIntent.payment_method_data`, and `Charge.payment_method_details`. +* Add support for `afterpay_clearpay` as a payment method type on `PaymentMethod.type`, `PaymentIntent.PaymentMethodData.type`, and `Checkout.SessionCreateParams.payment_method_types`. +* Add support for `adjustable_quantity` on `SessionCreateParams.LineItem` +* Add support for `bacs_debit`, `au_becs_debit` and `sepa_debit` on `SetupAttempt.payment_method_details` diff --git a/.hark/changes/2021-02-22_richardm_api-updates.change.md b/.hark/changes/2021-02-22_richardm_api-updates.change.md new file mode 100644 index 000000000000..4439862ce8ab --- /dev/null +++ b/.hark/changes/2021-02-22_richardm_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1187 +is_stripe_api_change: true +released_in_version: 20.41.0 +--- + +* Add support for Billing Portal Configuration API diff --git a/.hark/changes/2021-03-22_richardm_api-updates.change.md b/.hark/changes/2021-03-22_richardm_api-updates.change.md new file mode 100644 index 000000000000..ee949a0323f0 --- /dev/null +++ b/.hark/changes/2021-03-22_richardm_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1189 +is_stripe_api_change: true +released_in_version: 20.42.0 +--- + +* Add support for `shipping_rates` on `Checkout.SessionCreateParams` +* Add support for `amount_shipping` on `Checkout.Session.total_details` diff --git a/.hark/changes/2021-03-25_richardm_api-updates.change.md b/.hark/changes/2021-03-25_richardm_api-updates.change.md new file mode 100644 index 000000000000..b612342e49fc --- /dev/null +++ b/.hark/changes/2021-03-25_richardm_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1191 +is_stripe_api_change: true +released_in_version: 20.43.0 +--- + +* Add support for new locale `th` on `SessionCreateParams`. diff --git a/.hark/changes/2021-03-26_richardm_api-updates.change.md b/.hark/changes/2021-03-26_richardm_api-updates.change.md new file mode 100644 index 000000000000..147643b3ef6b --- /dev/null +++ b/.hark/changes/2021-03-26_richardm_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1192 +is_stripe_api_change: true +released_in_version: 20.44.0 +--- + +* Add support for `card_issuing` on `AccountCreateParams.settings`, `AccountUpdateParams.settings` and `Account.settings` diff --git a/.hark/changes/2021-03-31_richardm_api-updates.change.md b/.hark/changes/2021-03-31_richardm_api-updates.change.md new file mode 100644 index 000000000000..72006105a87b --- /dev/null +++ b/.hark/changes/2021-03-31_richardm_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1193 +is_stripe_api_change: true +released_in_version: 20.45.0 +--- + +* Add support for `transfer_data` on `Checkout.SessionCreateParams.subscription_data` diff --git a/.hark/changes/2021-04-02_richardm_api-updates.change.md b/.hark/changes/2021-04-02_richardm_api-updates.change.md new file mode 100644 index 000000000000..8078ea7880e3 --- /dev/null +++ b/.hark/changes/2021-04-02_richardm_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1194 +is_stripe_api_change: true +released_in_version: 20.46.0 +--- + +* Add support for `subscription_pause` on `BillingPortal.ConfigurationUpdateParams.features`, `BillingPortalCreateParams.features` and `BillingPortal.Configuration.features` diff --git a/.hark/changes/2021-04-12_richardm_add-support-acss.change.md b/.hark/changes/2021-04-12_richardm_add-support-acss.change.md new file mode 100644 index 000000000000..16f1d8ebf657 --- /dev/null +++ b/.hark/changes/2021-04-12_richardm_add-support-acss.change.md @@ -0,0 +1,12 @@ +--- +title: Add support for ACSS Debit +pr_url: https://github.com/stripe/stripe-java/pull/1195 +is_stripe_api_change: true +released_in_version: 20.47.0 +--- + +* Add support for `acss_debit_payments` on `Account.capabilities` +* Add support for `payment_method_options` on `Checkout.Session` +* Add support for `acss_debit` on `SetupIntent.payment_method_options`, `SetupAttempt.payment_method_details`, `PaymentMethod`, `PaymentIntent.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_data`, `Mandate.payment_method_details` and `SetupIntent.payment_method_options` +* Add support for `verify_with_microdeposits` on `PaymentIntent.next_action` and `SetupIntent.next_action` +* Add support for `acss_debit` as member of the `type` enum on `PaymentMethod` and `PaymentIntent`, and inside `Checkout.SessionCreateParams.payment_method_types[]`. diff --git a/.hark/changes/2021-04-22_richardm_fix-gson-error.change.md b/.hark/changes/2021-04-22_richardm_fix-gson-error.change.md new file mode 100644 index 000000000000..d54667e9aff2 --- /dev/null +++ b/.hark/changes/2021-04-22_richardm_fix-gson-error.change.md @@ -0,0 +1,5 @@ +--- +title: "Fix GSON error in JDK16 (#1190) by marking RequestOptions transient" +pr_url: https://github.com/stripe/stripe-java/pull/1197 +released_in_version: 20.47.1 +--- diff --git a/.hark/changes/2021-05-05_richardm_api-updates.change.md b/.hark/changes/2021-05-05_richardm_api-updates.change.md new file mode 100644 index 000000000000..550f337390e2 --- /dev/null +++ b/.hark/changes/2021-05-05_richardm_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1202 +is_stripe_api_change: true +released_in_version: 20.49.0 +--- + +* Add support for `payment_intent` on `EarlyFraudWarning` diff --git a/.hark/changes/2021-05-05_richardm_api-updates2.change.md b/.hark/changes/2021-05-05_richardm_api-updates2.change.md new file mode 100644 index 000000000000..6b20508c8092 --- /dev/null +++ b/.hark/changes/2021-05-05_richardm_api-updates2.change.md @@ -0,0 +1,10 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1201 +is_stripe_api_change: true +released_in_version: 20.48.0 +--- + +* Add support for `card_present` on `PaymentIntent.payment_method_options` +* Add support for `default_incomplete` as a `payment_behavior` on `SubscriptionItemCreateParams`, `SubscriptionUpdateParams`, and `SubscriptionCreateParams`. +* Add support for `single_member_llc` as a `structure` on `AccountCreateParams.company` and `AccountUpdateParams.company`. diff --git a/.hark/changes/2021-05-06_richardm_api-updates.change.md b/.hark/changes/2021-05-06_richardm_api-updates.change.md new file mode 100644 index 000000000000..fb1e285d660a --- /dev/null +++ b/.hark/changes/2021-05-06_richardm_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1204 +is_stripe_api_change: true +released_in_version: 20.50.0 +--- + +* Add support for `reference` on `Charge.payment_method_details.afterpay_clearpay` +* Add support for `afterpay_clearpay` on `PaymentIntent.payment_method_options` diff --git a/.hark/changes/2021-05-06_richardm_fix-flaky-test.change.md b/.hark/changes/2021-05-06_richardm_fix-flaky-test.change.md new file mode 100644 index 000000000000..2d51cf639018 --- /dev/null +++ b/.hark/changes/2021-05-06_richardm_fix-flaky-test.change.md @@ -0,0 +1,5 @@ +--- +title: "Fix flaky test: no telemetry by default in test suite" +pr_url: https://github.com/stripe/stripe-java/pull/1203 +released_in_version: 20.50.0 +--- diff --git a/.hark/changes/2021-05-11_richardm_api-updates.change.md b/.hark/changes/2021-05-11_richardm_api-updates.change.md new file mode 100644 index 000000000000..d6e249173dbc --- /dev/null +++ b/.hark/changes/2021-05-11_richardm_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1206 +is_stripe_api_change: true +released_in_version: 20.51.0 +--- + +* Add support for setting `AccountUpdateParams.business_profile.support_url` and `AccountCreateParams.support_url` to `EmptyParam`. diff --git a/.hark/changes/2021-05-20_richardm_1205-api-updates.change.md b/.hark/changes/2021-05-20_richardm_1205-api-updates.change.md new file mode 100644 index 000000000000..b32bb801ce40 --- /dev/null +++ b/.hark/changes/2021-05-20_richardm_1205-api-updates.change.md @@ -0,0 +1,7 @@ +--- +title: ", [#1205](https://github.com/stripe/stripe-java/pull/1205) API Updates" +pr_url: https://github.com/stripe/stripe-java/pull/1211 +released_in_version: 20.51.0 +--- + +* Add support for the `Identity.VerificationSession` and `Identity.VerificationReport` APIs. diff --git a/.hark/changes/2021-05-26_dcr_api-updates.change.md b/.hark/changes/2021-05-26_dcr_api-updates.change.md new file mode 100644 index 000000000000..b12e319d74ba --- /dev/null +++ b/.hark/changes/2021-05-26_dcr_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1212 +is_stripe_api_change: true +released_in_version: 20.52.0 +--- + +* Added support for `documents` on `PersonUpdateParams`, `PersonCollectionCreateParams` and `TokenCreateParams.person` diff --git a/.hark/changes/2021-06-02_richardm_api-updates.change.md b/.hark/changes/2021-06-02_richardm_api-updates.change.md new file mode 100644 index 000000000000..b2b1d175661a --- /dev/null +++ b/.hark/changes/2021-06-02_richardm_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1214 +is_stripe_api_change: true +released_in_version: 20.53.0 +--- + +* Added support for `llc`, `free_zone_llc`, `free_zone_establishment` and `sole_establishment` to the `structure` enum on `Account.company`, `AccountCreateParams.company`, `AccountUpdateParams.company` and `TokenCreateParams.account.company`. diff --git a/.hark/changes/2021-06-04_richardm_api-updates.change.md b/.hark/changes/2021-06-04_richardm_api-updates.change.md new file mode 100644 index 000000000000..ad9147227f34 --- /dev/null +++ b/.hark/changes/2021-06-04_richardm_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1217 +is_stripe_api_change: true +released_in_version: 20.55.0 +--- + +* Added support for `controller` on `Account` diff --git a/.hark/changes/2021-06-04_richardm_api-updates2.change.md b/.hark/changes/2021-06-04_richardm_api-updates2.change.md new file mode 100644 index 000000000000..3dd1aeeee119 --- /dev/null +++ b/.hark/changes/2021-06-04_richardm_api-updates2.change.md @@ -0,0 +1,22 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1215 +is_stripe_api_change: true +released_in_version: 20.54.0 +--- + +* Add support for new `TaxCode` API. +* Add support for `tax_code` on `Product`, `ProductCreateParams`, `ProductUpdateParams`, `PriceCreateParams.product_data`, `PlanCreateParams.product`, and Checkout `SessionCreateParams.line_items[].price_data.product_data`. +* Add support for `tax` to `Customer`, `CustomerCreateParams`, `CustomerUpdateParams`. +* Add support for `default_settings[automatic_tax]` and `phases[].automatic_tax` on `SubscriptionSchedule`, `SubscriptionScheduleCreateParams`, and `SubscriptionScheduleUpdateParams`. +* Add support for `automatic_tax` on `Subscription`, `SubscriptionCreateParams`, `SubscriptionUpdateParams`; `Invoice`, `InvoiceCreateParams`, and `InvoiceUpcomingParams`; Checkout `Session` and Checkout `SessionCreateParams`. +* Add support for `tax_behavior` to `Price`, `PriceCreateParams`, `PriceUpdateParams` and to the many Param objects that contain `price_data`: + - `SubscriptionScheduleCreateParams` and `SubscriptionScheduleUpdateParams`, beneath `phases[].add_invoice_items[]` and `phases[].items[]` + - `SubscriptionItemCreateParams` and `SubscriptionItemUpdateParams`, on the top-level + - `SubscriptionCreateParams` create and `UpdateCreateParams`, beneath `items[]` and `add_invoice_items[]` + - `InvoiceItemCreateParams` and `InvoiceItemUpdateParams`, on the top-level + - `InvoiceUpcomingParams` and `InvoiceUpcomingLinesParams` beneath `subscription_items[]` and `invoice_items[]`. + - Checkout `SessionCreateParams`, beneath `line_items[]`. +* Add support for `customer_update` to Checkout `SessionCreateParams`. +* Add support for `customer_details` to `InvoiceUpcomingParams`. +* Add support for `tax_type` to `TaxRate`, `TaxRateCreateParams`, and `TaxRateUpdateParams`. diff --git a/.hark/changes/2021-06-07_dcr_api-updates.change.md b/.hark/changes/2021-06-07_dcr_api-updates.change.md new file mode 100644 index 000000000000..b7584c286715 --- /dev/null +++ b/.hark/changes/2021-06-07_dcr_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1219 +is_stripe_api_change: true +released_in_version: 20.56.0 +--- + +* Added support for `TaxIdCollection` on `SessionCreateParams` and `Session.taxIdCollection` +* Update `Location` to be expandable on `Reader` diff --git a/.hark/changes/2021-06-16_richardm_api-updates.change.md b/.hark/changes/2021-06-16_richardm_api-updates.change.md new file mode 100644 index 000000000000..328c8128d948 --- /dev/null +++ b/.hark/changes/2021-06-16_richardm_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1221 +is_stripe_api_change: true +released_in_version: 20.57.0 +--- + +* Add support for `url` on Checkout `Session` diff --git a/.hark/changes/2021-06-18_richardm_api-updates.change.md b/.hark/changes/2021-06-18_richardm_api-updates.change.md new file mode 100644 index 000000000000..9fef6411843d --- /dev/null +++ b/.hark/changes/2021-06-18_richardm_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1222 +is_stripe_api_change: true +released_in_version: 20.58.0 +--- + +* Add support for new TaxId types: `ca_pst_mb`, `ca_pst_bc`, `ca_gst_hst`, and `ca_pst_sk`. diff --git a/.hark/changes/2021-06-24_richardm_remove-travis-ci.change.md b/.hark/changes/2021-06-24_richardm_remove-travis-ci.change.md new file mode 100644 index 000000000000..4e0f6982fb53 --- /dev/null +++ b/.hark/changes/2021-06-24_richardm_remove-travis-ci.change.md @@ -0,0 +1,5 @@ +--- +title: Remove Travis CI +pr_url: https://github.com/stripe/stripe-java/pull/1218 +released_in_version: 20.59.0 +--- diff --git a/.hark/changes/2021-06-25_richardm_api-updates.change.md b/.hark/changes/2021-06-25_richardm_api-updates.change.md new file mode 100644 index 000000000000..42a731abf39a --- /dev/null +++ b/.hark/changes/2021-06-25_richardm_api-updates.change.md @@ -0,0 +1,11 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1225 +is_stripe_api_change: true +released_in_version: 20.59.0 +--- + +* Added support for `boleto` on `PaymentMethodCreateParams`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `Charge.payment_method_details` and `PaymentMethod` +* `PaymentMethodListParams.type`, `PaymentMethodCreateParams.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type` added new enum members: `boleto` +* Added support for `boleto_display_details` on `PaymentIntent.next_action` +* `TaxIdCreateParams.type`, `InvoiceLineItemListUpcomingParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, and `CustomerCreateParams.tax_id_data[].type`, added new enum members: `il_vat`. diff --git a/.hark/changes/2021-06-25_richardm_streaming-requests.change.md b/.hark/changes/2021-06-25_richardm_streaming-requests.change.md new file mode 100644 index 000000000000..a7de5823b4f4 --- /dev/null +++ b/.hark/changes/2021-06-25_richardm_streaming-requests.change.md @@ -0,0 +1,5 @@ +--- +title: Streaming requests +pr_url: https://github.com/stripe/stripe-java/pull/1207 +released_in_version: 20.60.0 +--- diff --git a/.hark/changes/2021-06-29_dcr_api-updates.change.md b/.hark/changes/2021-06-29_dcr_api-updates.change.md new file mode 100644 index 000000000000..9064196d2f82 --- /dev/null +++ b/.hark/changes/2021-06-29_dcr_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1227 +is_stripe_api_change: true +released_in_version: 20.60.0 +--- + +* Added support for `boleto_payments` on `Account.capabilities` +* Added support for `boleto` and `oxxo` on `SessionCreateParams` and `Session` diff --git a/.hark/changes/2021-06-30_dcr_api-updates.change.md b/.hark/changes/2021-06-30_dcr_api-updates.change.md new file mode 100644 index 000000000000..8901d91424e5 --- /dev/null +++ b/.hark/changes/2021-06-30_dcr_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1229 +is_stripe_api_change: true +released_in_version: 20.62.0 +--- + +* Add support for new value `boleto` on enums `InvoiceCreateParams.payment_settings.payment_method_types[]`, and `InvoiceUpdateParams.payment_settings.payment_method_types[]`. diff --git a/.hark/changes/2021-06-30_dcr_api-updates2.change.md b/.hark/changes/2021-06-30_dcr_api-updates2.change.md new file mode 100644 index 000000000000..d716ae7fd3c0 --- /dev/null +++ b/.hark/changes/2021-06-30_dcr_api-updates2.change.md @@ -0,0 +1,10 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1228 +is_stripe_api_change: true +released_in_version: 20.61.0 +--- + +* Add support for `wechat_pay` on `Charge.payment_method_details`, `checkout.SessionCreateParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntent.payment_method_options`, `PaymentMethodCreateParams`, and `PaymentMethod` +* Add support for new value `wechat_pay` on enums `checkout.SessionCreateParams.payment_method_types[]` `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`,`PaymentIntentConfirmParams.payment_method_data.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` +* Add support for `wechat_pay_display_qr_code`, `wechat_pay_redirect_to_android_app`, and `wechat_pay_redirect_to_ios_app` on `PaymentIntent.next_action` diff --git a/.hark/changes/2021-07-09_richardm_api-updates.change.md b/.hark/changes/2021-07-09_richardm_api-updates.change.md new file mode 100644 index 000000000000..63986debccb9 --- /dev/null +++ b/.hark/changes/2021-07-09_richardm_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1231 +is_stripe_api_change: true +released_in_version: 20.63.0 +--- + +* Add support for new resource `Quote` +* Add support for `quote` on `Invoice` diff --git a/.hark/changes/2021-07-09_richardm_remove-inappropriat-list.change.md b/.hark/changes/2021-07-09_richardm_remove-inappropriat-list.change.md new file mode 100644 index 000000000000..57e23d82db96 --- /dev/null +++ b/.hark/changes/2021-07-09_richardm_remove-inappropriat-list.change.md @@ -0,0 +1,5 @@ +--- +title: Remove inappropriate list method from QuoteCollection +pr_url: https://github.com/stripe/stripe-java/pull/1233 +released_in_version: 20.63.1 +--- diff --git a/.hark/changes/2021-07-14_dcr_api-updates.change.md b/.hark/changes/2021-07-14_dcr_api-updates.change.md new file mode 100644 index 000000000000..3416ba9c910a --- /dev/null +++ b/.hark/changes/2021-07-14_dcr_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1237 +is_stripe_api_change: true +released_in_version: 20.64.0 +--- + +* Add support for `quote.accepted`, `quote.canceled`, `quote.created`, and `quote.finalized` events. diff --git a/.hark/changes/2021-07-14_dcr_api-updates2.change.md b/.hark/changes/2021-07-14_dcr_api-updates2.change.md new file mode 100644 index 000000000000..47726803047e --- /dev/null +++ b/.hark/changes/2021-07-14_dcr_api-updates2.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1236 +is_stripe_api_change: true +released_in_version: 20.64.0 +--- + +* Add support for `list_computed_upfront_line_items` method on resource `Quote` diff --git a/.hark/changes/2021-07-21_richardm_api-updates.change.md b/.hark/changes/2021-07-21_richardm_api-updates.change.md new file mode 100644 index 000000000000..93211d53330c --- /dev/null +++ b/.hark/changes/2021-07-21_richardm_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1238 +is_stripe_api_change: true +released_in_version: 20.65.0 +--- + +* Add support for `wallet` on `Issuing.Transaction` +* Add support for `ideal` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options` diff --git a/.hark/changes/2021-07-22_dcr_api-updates.change.md b/.hark/changes/2021-07-22_dcr_api-updates.change.md new file mode 100644 index 000000000000..75dc7dc40885 --- /dev/null +++ b/.hark/changes/2021-07-22_dcr_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1239 +is_stripe_api_change: true +released_in_version: 20.66.0 +--- + +* Add support for new values `hr`, `ko`, and `vi` on enum `checkout.SessionCreateParams.locale` +* Add support for `payment_settings` on `SubscriptionCreateParams`, `SubscriptionUpdateParams`, and `Subscription` diff --git a/.hark/changes/2021-07-27_richardm_api-updates.change.md b/.hark/changes/2021-07-27_richardm_api-updates.change.md new file mode 100644 index 000000000000..6ce25a94a107 --- /dev/null +++ b/.hark/changes/2021-07-27_richardm_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1241 +is_stripe_api_change: true +released_in_version: 20.67.0 +--- + +* Add support for `category_code` on `Issuing.Authorization.merchant_data` and `Issuing.Transaction.merchant_data` diff --git a/.hark/changes/2021-07-28_dcr_api-updates.change.md b/.hark/changes/2021-07-28_dcr_api-updates.change.md new file mode 100644 index 000000000000..6598af1f9d20 --- /dev/null +++ b/.hark/changes/2021-07-28_dcr_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1242 +is_stripe_api_change: true +released_in_version: 20.67.0 +--- + +* Add support for `account_type` on `BankAccount`, `ExternalAccountUpdateParams`, and `TokenCreateParams.bank_account` diff --git a/.hark/changes/2021-08-04_richardm_api-updates.change.md b/.hark/changes/2021-08-04_richardm_api-updates.change.md new file mode 100644 index 000000000000..ba9aa3314697 --- /dev/null +++ b/.hark/changes/2021-08-04_richardm_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1246 +is_stripe_api_change: true +released_in_version: 20.68.0 +--- + +* Change type of `PaymentIntentCreateParams.payment_method_options.sofort.preferred_language`, `PaymentIntentUpdateParams.payment_method_options.sofort.preferred_language`, and `PaymentIntentConfirmParams.payment_method_options.sofort.preferred_language` from `enum` to `emptyStringable(enum)` diff --git a/.hark/changes/2021-08-11_dcr_api-updates.change.md b/.hark/changes/2021-08-11_dcr_api-updates.change.md new file mode 100644 index 000000000000..87a0b5509602 --- /dev/null +++ b/.hark/changes/2021-08-11_dcr_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1248 +is_stripe_api_change: true +released_in_version: 20.69.0 +--- + +* Add support for `locale` on `billingportal.SessionCreateParams` and `BillingPortal.Session` diff --git a/.hark/changes/2021-08-19_dcr_api-updates.change.md b/.hark/changes/2021-08-19_dcr_api-updates.change.md new file mode 100644 index 000000000000..ce3b6005fd50 --- /dev/null +++ b/.hark/changes/2021-08-19_dcr_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1249 +is_stripe_api_change: true +released_in_version: 20.70.0 +--- + +* Add support for new value `fil` on enum `checkout.SessionCreateParams.locale` +* Add support for new value `au_arn` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` diff --git a/.hark/changes/2021-08-27_richardm_api-updates.change.md b/.hark/changes/2021-08-27_richardm_api-updates.change.md new file mode 100644 index 000000000000..082537110900 --- /dev/null +++ b/.hark/changes/2021-08-27_richardm_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1250 +is_stripe_api_change: true +released_in_version: 20.71.0 +--- + +* Add support for `cancellation_reason` on `billingportal.ConfigurationCreateParams.features.subscription_cancel`, `billingportal.ConfigurationUpdateParams.features.subscription_cancel`, and `BillingPortal.Configuration.features.subscription_cancel` diff --git a/.hark/changes/2021-08-31_richardm_add-support-auto.change.md b/.hark/changes/2021-08-31_richardm_add-support-auto.change.md new file mode 100644 index 000000000000..317f4cc295de --- /dev/null +++ b/.hark/changes/2021-08-31_richardm_add-support-auto.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for auto-paginatable `SearchResult` type +pr_url: https://github.com/stripe/stripe-java/pull/1252 +released_in_version: 20.72.0 +--- diff --git a/.hark/changes/2021-09-01_richardm_api-updates.change.md b/.hark/changes/2021-09-01_richardm_api-updates.change.md new file mode 100644 index 000000000000..5fc2ef3e5b67 --- /dev/null +++ b/.hark/changes/2021-09-01_richardm_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1254 +is_stripe_api_change: true +released_in_version: 20.72.0 +--- + +* Add support for `after_expiration`, `consent_collection`, and `expires_at` on `checkout.SessionCreateParams` and `Checkout.Session` +* Add support for `consent` and `recovered_from` on `Checkout.Session` diff --git a/.hark/changes/2021-09-02_richardm_api-updates.change.md b/.hark/changes/2021-09-02_richardm_api-updates.change.md new file mode 100644 index 000000000000..4503ce0c9fb1 --- /dev/null +++ b/.hark/changes/2021-09-02_richardm_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1255 +is_stripe_api_change: true +released_in_version: 20.73.0 +--- + +* Add support for `future_requirements` on `Account`, `Capability`, and `Person` +* Add support for `alternatives` on `Account.requirements`, `Capability.requirements`, and `Person.requirements` diff --git a/.hark/changes/2021-09-07_richardm_api-updates.change.md b/.hark/changes/2021-09-07_richardm_api-updates.change.md new file mode 100644 index 000000000000..cc0861ced3bc --- /dev/null +++ b/.hark/changes/2021-09-07_richardm_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1257 +is_stripe_api_change: true +released_in_version: 20.74.0 +--- + +* Add support for new value `rst` on enums `TaxRateCreateParams.tax_type` and `TaxRateUpdateParams.tax_type` +* Add support for new value `checkout.session.expired` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` diff --git a/.hark/changes/2021-09-09_richardm_add-missing-constant.change.md b/.hark/changes/2021-09-09_richardm_add-missing-constant.change.md new file mode 100644 index 000000000000..1e2805360fa6 --- /dev/null +++ b/.hark/changes/2021-09-09_richardm_add-missing-constant.change.md @@ -0,0 +1,5 @@ +--- +title: Add missing constant for `account_requirement` as a `purpose` on File create and List APIs +pr_url: https://github.com/stripe/stripe-java/pull/1259 +released_in_version: 20.75.0 +--- diff --git a/.hark/changes/2021-09-15_richardm_api-updates.change.md b/.hark/changes/2021-09-15_richardm_api-updates.change.md new file mode 100644 index 000000000000..45b799be3d6d --- /dev/null +++ b/.hark/changes/2021-09-15_richardm_api-updates.change.md @@ -0,0 +1,11 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1263 +is_stripe_api_change: true +released_in_version: 20.76.0 +--- + +* Add support for `default_for` on `checkout.SessionCreateParams.payment_method_options.acss_debit.mandate_options`, `Checkout.Session.payment_method_options.acss_debit.mandate_options`, `Mandate.payment_method_details.acss_debit`, `SetupIntentCreateParams.payment_method_options.acss_debit.mandate_options`, `SetupIntentUpdateParams.payment_method_options.acss_debit.mandate_options`, `SetupIntentConfirmParams.payment_method_options.acss_debit.mandate_options`, and `SetupIntent.payment_method_options.acss_debit.mandate_options` +* Add support for `acss_debit` on `InvoiceCreateParams.payment_settings.payment_method_options`, `InvoiceUpdateParams.payment_settings.payment_method_options`, `Invoice.payment_settings.payment_method_options`, `SubscriptionCreateParams.payment_settings.payment_method_options`, `SubscriptionUpdateParams.payment_settings.payment_method_options`, and `Subscription.payment_settings.payment_method_options` +* Add support for new value `acss_debit` on enums `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` +* Add support for `livemode` on `Reporting.ReportType` diff --git a/.hark/changes/2021-09-16_dcr_api-updates.change.md b/.hark/changes/2021-09-16_dcr_api-updates.change.md new file mode 100644 index 000000000000..359bd3ed2ae0 --- /dev/null +++ b/.hark/changes/2021-09-16_dcr_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1264 +is_stripe_api_change: true +released_in_version: 20.77.0 +--- + +* Add support for `full_name_aliases` on `AccountUpdateParams.individual`, `AccountCreateParams.individual`, `PersonCreateParams`, `PersonUpdateParams`, `Person`, `TokenCreateParams.account.individual`, and `TokenCreateParams.person` diff --git a/.hark/changes/2021-09-20_richardm_fix-typo-readme.change.md b/.hark/changes/2021-09-20_richardm_fix-typo-readme.change.md new file mode 100644 index 000000000000..68fb21c1a101 --- /dev/null +++ b/.hark/changes/2021-09-20_richardm_fix-typo-readme.change.md @@ -0,0 +1,5 @@ +--- +title: Fix typo in README.md +pr_url: https://github.com/stripe/stripe-java/pull/1209 +released_in_version: 20.78.0 +--- diff --git a/.hark/changes/2021-09-20_richardm_upgrade-gradle.change.md b/.hark/changes/2021-09-20_richardm_upgrade-gradle.change.md new file mode 100644 index 000000000000..2584ec54cb61 --- /dev/null +++ b/.hark/changes/2021-09-20_richardm_upgrade-gradle.change.md @@ -0,0 +1,5 @@ +--- +title: Upgrade Gradle +pr_url: https://github.com/stripe/stripe-java/pull/1261 +released_in_version: 20.78.0 +--- diff --git a/.hark/changes/2021-09-24_richardm_api-updates.change.md b/.hark/changes/2021-09-24_richardm_api-updates.change.md new file mode 100644 index 000000000000..4ed67616a3fb --- /dev/null +++ b/.hark/changes/2021-09-24_richardm_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1265 +is_stripe_api_change: true +released_in_version: 20.78.0 +--- + +* Add support for `amount_authorized` and `overcapture_supported` on `Charge.payment_method_details.card_present` diff --git a/.hark/changes/2021-09-29_dcr_api-updates.change.md b/.hark/changes/2021-09-29_dcr_api-updates.change.md new file mode 100644 index 000000000000..3411b9f75ac9 --- /dev/null +++ b/.hark/changes/2021-09-29_dcr_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1266 +is_stripe_api_change: true +released_in_version: 20.79.0 +--- + +* Add support for `klarna_payments` on `AccountUpdateParams.capabilities`, `AccountCreateParams.capabilities`, and `Account.capabilities` diff --git a/.hark/changes/2021-10-07_richardm_api-updates.change.md b/.hark/changes/2021-10-07_richardm_api-updates.change.md new file mode 100644 index 000000000000..18e27be3bff7 --- /dev/null +++ b/.hark/changes/2021-10-07_richardm_api-updates.change.md @@ -0,0 +1,12 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1268 +is_stripe_api_change: true +released_in_version: 20.80.0 +--- + +* Add support for `phone_number_collection` on `checkout.SessionCreateParams` and `Checkout.Session` +* Add support for `phone` on `Checkout.Session.customer_details` +* Change `PaymentMethodListParams.customer` to be optional +* Add support for new value `customer_id` on enum `radar.ValueListCreateParams.item_type` +* Add support for new value `bbpos_wisepos_e` on enum `terminal.ReaderListParams.device_type` diff --git a/.hark/changes/2021-10-11_dcr_api-updates.change.md b/.hark/changes/2021-10-11_dcr_api-updates.change.md new file mode 100644 index 000000000000..5928e6379565 --- /dev/null +++ b/.hark/changes/2021-10-11_dcr_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1269 +is_stripe_api_change: true +released_in_version: 20.81.0 +--- + +* Add support for `list_payment_methods` method on resource `Customer` diff --git a/.hark/changes/2021-10-11_richardm_api-updates.change.md b/.hark/changes/2021-10-11_richardm_api-updates.change.md new file mode 100644 index 000000000000..4f40a1263a4e --- /dev/null +++ b/.hark/changes/2021-10-11_richardm_api-updates.change.md @@ -0,0 +1,12 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1271 +is_stripe_api_change: true +released_in_version: 20.82.0 +--- + +* Add support for `payment_method_category` and `preferred_locale` on `Charge.payment_method_details.klarna` +* Add support for new value `klarna` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` +* Add support for `klarna` on `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntent.payment_method_options`, `PaymentMethodCreateParams`, and `PaymentMethod` +* Add support for new value `klarna` on enums `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, and `PaymentIntentConfirmParams.payment_method_data.type` +* Add support for new value `klarna` on enum `PaymentMethodCreateParams.type` diff --git a/.hark/changes/2021-10-14_richardm_api-updates.change.md b/.hark/changes/2021-10-14_richardm_api-updates.change.md new file mode 100644 index 000000000000..b2054d3360f9 --- /dev/null +++ b/.hark/changes/2021-10-14_richardm_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1272 +is_stripe_api_change: true +released_in_version: 20.83.0 +--- + +* Add support for new value `klarna` on enum `checkout.SessionCreateParams.payment_method_types[]` diff --git a/.hark/changes/2021-10-15_dcr_api-updates.change.md b/.hark/changes/2021-10-15_dcr_api-updates.change.md new file mode 100644 index 000000000000..f86a7708cad0 --- /dev/null +++ b/.hark/changes/2021-10-15_dcr_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1273 +is_stripe_api_change: true +released_in_version: 20.84.0 +--- + +* Change type of `UsageRecordCreateParams.timestamp` from `integer` to `literal('now') | integer` +* Change `UsageRecordCreateParams.timestamp` to be optional diff --git a/.hark/changes/2021-10-20_richardm_api-updates.change.md b/.hark/changes/2021-10-20_richardm_api-updates.change.md new file mode 100644 index 000000000000..43655187e253 --- /dev/null +++ b/.hark/changes/2021-10-20_richardm_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1274 +is_stripe_api_change: true +released_in_version: 20.85.0 +--- + +* Add support for `buyer_id` on `Charge.payment_method_details.alipay` diff --git a/.hark/changes/2021-10-20_richardm_reorder-fields.change.md b/.hark/changes/2021-10-20_richardm_reorder-fields.change.md new file mode 100644 index 000000000000..1dca40686cc9 --- /dev/null +++ b/.hark/changes/2021-10-20_richardm_reorder-fields.change.md @@ -0,0 +1,5 @@ +--- +title: Reorder fields +pr_url: https://github.com/stripe/stripe-java/pull/1275 +released_in_version: 20.85.0 +--- diff --git a/.hark/changes/2021-11-01_dcr_api-updates.change.md b/.hark/changes/2021-11-01_dcr_api-updates.change.md new file mode 100644 index 000000000000..cd0000c1cab1 --- /dev/null +++ b/.hark/changes/2021-11-01_dcr_api-updates.change.md @@ -0,0 +1,10 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1278 +is_stripe_api_change: true +released_in_version: 20.86.0 +--- + +* Add support for `ownership_declaration` on `AccountUpdateParams.company`, `AccountCreateParams.company`, `Account.company`, and `TokenCreateParams.account.company` +* Add support for `proof_of_registration` on `AccountUpdateParams.documents` and `AccountCreateParams.documents` +* Add support for `ownership_declaration_shown_and_signed` on `TokenCreateParams.account` diff --git a/.hark/changes/2021-11-04_dcr_api-updates.change.md b/.hark/changes/2021-11-04_dcr_api-updates.change.md new file mode 100644 index 000000000000..6a2ef09f9692 --- /dev/null +++ b/.hark/changes/2021-11-04_dcr_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1279 +is_stripe_api_change: true +released_in_version: 20.86.1 +--- + +* Remove support for `ownership_declaration_shown_and_signed` on `TokenCreateParams.account`. This API was unused. +* Add support for `ownership_declaration_shown_and_signed` on `TokenCreateParams.account.company` diff --git a/.hark/changes/2021-11-11_richardm_api-updates.change.md b/.hark/changes/2021-11-11_richardm_api-updates.change.md new file mode 100644 index 000000000000..6ba33fc09b8f --- /dev/null +++ b/.hark/changes/2021-11-11_richardm_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1281 +is_stripe_api_change: true +released_in_version: 20.87.0 +--- + +* Add support for `expire` method on resource `Checkout.Session` +* Add support for `status` on `Checkout.Session` diff --git a/.hark/changes/2021-11-16_dcr_api-updates.change.md b/.hark/changes/2021-11-16_dcr_api-updates.change.md new file mode 100644 index 000000000000..8f7ab5c3d3a5 --- /dev/null +++ b/.hark/changes/2021-11-16_dcr_api-updates.change.md @@ -0,0 +1,10 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1284 +is_stripe_api_change: true +released_in_version: 20.88.0 +--- + +* Add support for new resource `ShippingRate` +* Add support for `shipping_options` on `checkout.SessionCreateParams` and `Checkout.Session` +* Add support for `shipping_rate` on `Checkout.Session` diff --git a/.hark/changes/2021-11-17_dcr_api-updates.change.md b/.hark/changes/2021-11-17_dcr_api-updates.change.md new file mode 100644 index 000000000000..ab404a0ff842 --- /dev/null +++ b/.hark/changes/2021-11-17_dcr_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1286 +is_stripe_api_change: true +released_in_version: 20.89.0 +--- + +* Add support for `automatic_payment_methods` on `PaymentIntentCreateParams` and `PaymentIntent` diff --git a/.hark/changes/2021-11-19_richardm_api-updates.change.md b/.hark/changes/2021-11-19_richardm_api-updates.change.md new file mode 100644 index 000000000000..a5bcc9c1ee55 --- /dev/null +++ b/.hark/changes/2021-11-19_richardm_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1289 +is_stripe_api_change: true +released_in_version: 20.90.0 +--- + +* Add support for `wallets` on `Issuing.Card` diff --git a/.hark/changes/2021-11-19_richardm_api-updates2.change.md b/.hark/changes/2021-11-19_richardm_api-updates2.change.md new file mode 100644 index 000000000000..80f4c00ce3cd --- /dev/null +++ b/.hark/changes/2021-11-19_richardm_api-updates2.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1288 +is_stripe_api_change: true +released_in_version: 20.90.0 +--- + +* Add support for `interac_present` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options` +* Add support for new value `jct` on enums `TaxRateCreateParams.tax_type` and `TaxRateUpdateParams.tax_type` diff --git a/.hark/changes/2021-11-29_richardm_update-javadoc-task.change.md b/.hark/changes/2021-11-29_richardm_update-javadoc-task.change.md new file mode 100644 index 000000000000..0a25c5f03ccb --- /dev/null +++ b/.hark/changes/2021-11-29_richardm_update-javadoc-task.change.md @@ -0,0 +1,5 @@ +--- +title: Update Javadoc task to not use module directories. +pr_url: https://github.com/stripe/stripe-java/pull/1290 +released_in_version: 20.91.0 +--- diff --git a/.hark/changes/2021-12-03_dcr_pass-credentials-nexusstaging.change.md b/.hark/changes/2021-12-03_dcr_pass-credentials-nexusstaging.change.md new file mode 100644 index 000000000000..bbf95801bbd2 --- /dev/null +++ b/.hark/changes/2021-12-03_dcr_pass-credentials-nexusstaging.change.md @@ -0,0 +1,5 @@ +--- +title: Pass credentials to nexusStaging rule. +pr_url: https://github.com/stripe/stripe-java/pull/1292 +released_in_version: 20.91.0 +--- diff --git a/.hark/changes/2021-12-04_ob_test-java-16.change.md b/.hark/changes/2021-12-04_ob_test-java-16.change.md new file mode 100644 index 000000000000..06e4a37fb2ec --- /dev/null +++ b/.hark/changes/2021-12-04_ob_test-java-16.change.md @@ -0,0 +1,5 @@ +--- +title: Test Java 16 and 17 +pr_url: https://github.com/stripe/stripe-java/pull/1291 +released_in_version: 20.91.0 +--- diff --git a/.hark/changes/2021-12-09_dcr_api-updates.change.md b/.hark/changes/2021-12-09_dcr_api-updates.change.md new file mode 100644 index 000000000000..b5a6030e0f84 --- /dev/null +++ b/.hark/changes/2021-12-09_dcr_api-updates.change.md @@ -0,0 +1,11 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1294 +is_stripe_api_change: true +released_in_version: 20.91.0 +--- + +* Add support for new values `ge_vat` and `ua_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` +* Change type of `PaymentIntentCreateParams.payment_method_data.billing_details.email`, `PaymentIntentUpdateParams.payment_method_data.billing_details.email`, `PaymentIntentConfirmParams.payment_method_data.billing_details.email`, `PaymentMethodCreateParams.billing_details.email`, and `PaymentMethodUpdateParams.billing_details.email` from `string` to `emptyStringable(string)` +* Add support for `giropay` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options` +* Add support for new value `en-IE` on enums `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale` diff --git a/.hark/changes/2021-12-09_yejia_api-updates.change.md b/.hark/changes/2021-12-09_yejia_api-updates.change.md new file mode 100644 index 000000000000..29a296b42d9b --- /dev/null +++ b/.hark/changes/2021-12-09_yejia_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1295 +is_stripe_api_change: true +released_in_version: 20.92.0 +--- + +* Add support for `metadata` on `billingportal.ConfigurationCreateParams`, `billingportal.ConfigurationUpdateParams`, and `BillingPortal.Configuration` diff --git a/.hark/changes/2021-12-15_yejia_api-updates.change.md b/.hark/changes/2021-12-15_yejia_api-updates.change.md new file mode 100644 index 000000000000..5235479455c2 --- /dev/null +++ b/.hark/changes/2021-12-15_yejia_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1296 +is_stripe_api_change: true +released_in_version: 20.93.0 +--- + +* Add support for new resource `PaymentIntentTypeSpecificPaymentMethodOptionsClient` +* Add support for `setup_future_usage` on `PaymentIntentCreateParams.payment_method_options.card`, `PaymentIntentUpdateParams.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card`, and `PaymentIntent.payment_method_options.card` diff --git a/.hark/changes/2021-12-21_dcr_api-updates.change.md b/.hark/changes/2021-12-21_dcr_api-updates.change.md new file mode 100644 index 000000000000..54dad9454c24 --- /dev/null +++ b/.hark/changes/2021-12-21_dcr_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1297 +is_stripe_api_change: true +released_in_version: 20.94.0 +--- + +* Add support for `processing` on `PaymentIntent` diff --git a/.hark/changes/2021-12-22_dcr_api-updates.change.md b/.hark/changes/2021-12-22_dcr_api-updates.change.md new file mode 100644 index 000000000000..81ce0626ae04 --- /dev/null +++ b/.hark/changes/2021-12-22_dcr_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1299 +is_stripe_api_change: true +released_in_version: 20.94.0 +--- + +* Add support for `au_becs_debit` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options` diff --git a/.hark/changes/2021-12-22_dcr_api-updates2.change.md b/.hark/changes/2021-12-22_dcr_api-updates2.change.md new file mode 100644 index 000000000000..c05ef7e097fa --- /dev/null +++ b/.hark/changes/2021-12-22_dcr_api-updates2.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1298 +is_stripe_api_change: true +released_in_version: 20.94.0 +--- + +* Add support for new values `en-FR`, `es-US`, and `fr-FR` on enums `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale` +* Add support for `boleto` on `SetupAttempt.payment_method_details` diff --git a/.hark/changes/2022-01-12_dcr_api-updates.change.md b/.hark/changes/2022-01-12_dcr_api-updates.change.md new file mode 100644 index 000000000000..f2a24510f7a6 --- /dev/null +++ b/.hark/changes/2022-01-12_dcr_api-updates.change.md @@ -0,0 +1,10 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1301 +is_stripe_api_change: true +released_in_version: 20.95.0 +--- + +* Add support for `customer_creation` on `checkout.SessionCreateParams` and `Checkout.Session` +* Add support for `fpx` and `grabpay` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options` +* Add support for `PaidOutOfBand` on `Invoice` diff --git a/.hark/changes/2022-01-12_dcr_api-updates2.change.md b/.hark/changes/2022-01-12_dcr_api-updates2.change.md new file mode 100644 index 000000000000..7ca080206ea0 --- /dev/null +++ b/.hark/changes/2022-01-12_dcr_api-updates2.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1300 +is_stripe_api_change: true +released_in_version: 20.95.0 +--- + +* Add support for `mandate_options` on `SubscriptionCreateParams.payment_settings.payment_method_options.card`, `SubscriptionUpdateParams.payment_settings.payment_method_options.card`, and `Subscription.payment_settings.payment_method_options.card` diff --git a/.hark/changes/2022-01-19_dcr_api-updates.change.md b/.hark/changes/2022-01-19_dcr_api-updates.change.md new file mode 100644 index 000000000000..b51c687c0de4 --- /dev/null +++ b/.hark/changes/2022-01-19_dcr_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1302 +is_stripe_api_change: true +released_in_version: 20.96.0 +--- + +* Add support for `bacs_debit` and `eps` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options` +* Add support for `image_url_png` and `image_url_svg` on `PaymentIntent.next_action.wechat_pay_display_qr_code` diff --git a/.hark/changes/2022-01-19_richardm_api-updates.change.md b/.hark/changes/2022-01-19_richardm_api-updates.change.md new file mode 100644 index 000000000000..a233901f7c53 --- /dev/null +++ b/.hark/changes/2022-01-19_richardm_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1304 +is_stripe_api_change: true +released_in_version: 20.97.0 +--- + +* Add support for new resource `PaymentLink` +* Add support for `payment_link` on `Checkout.Session` diff --git a/.hark/changes/2022-01-25_yejia_api-updates.change.md b/.hark/changes/2022-01-25_yejia_api-updates.change.md new file mode 100644 index 000000000000..cfb75ea44055 --- /dev/null +++ b/.hark/changes/2022-01-25_yejia_api-updates.change.md @@ -0,0 +1,10 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1306 +is_stripe_api_change: true +released_in_version: 20.98.0 +--- + +* Add support for `phone_number_collection` on `PaymentLinkCreateParams` and `PaymentLink` +* Add support for new values `payment_link.created` and `payment_link.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` +* Add support for new value `is_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` diff --git a/.hark/changes/2022-02-03_yejia_api-updates.change.md b/.hark/changes/2022-02-03_yejia_api-updates.change.md new file mode 100644 index 000000000000..0a5394dea9ac --- /dev/null +++ b/.hark/changes/2022-02-03_yejia_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1307 +is_stripe_api_change: true +released_in_version: 20.99.0 +--- + +* Add support for new value `au_becs_debit` on enum `checkout.SessionCreateParams.payment_method_types[]` diff --git a/.hark/changes/2022-02-09_dcr_pin-grgit-version.change.md b/.hark/changes/2022-02-09_dcr_pin-grgit-version.change.md new file mode 100644 index 000000000000..d1084d8904db --- /dev/null +++ b/.hark/changes/2022-02-09_dcr_pin-grgit-version.change.md @@ -0,0 +1,5 @@ +--- +title: Pin grgit version to 4.1.1. +pr_url: https://github.com/stripe/stripe-java/pull/1311 +released_in_version: 20.100.0 +--- diff --git a/.hark/changes/2022-02-09_richardm_api-updates.change.md b/.hark/changes/2022-02-09_richardm_api-updates.change.md new file mode 100644 index 000000000000..698f926dd3af --- /dev/null +++ b/.hark/changes/2022-02-09_richardm_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1310 +is_stripe_api_change: true +released_in_version: 20.100.0 +--- + +* Add support for `pin` on `issuing.CardUpdateParams` diff --git a/.hark/changes/2022-02-14_richardm_api-updates.change.md b/.hark/changes/2022-02-14_richardm_api-updates.change.md new file mode 100644 index 000000000000..b3f802918b46 --- /dev/null +++ b/.hark/changes/2022-02-14_richardm_api-updates.change.md @@ -0,0 +1,10 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1312 +is_stripe_api_change: true +released_in_version: 20.100.0 +--- + +* Add support for `verify_microdeposits` method on resources `PaymentIntent` and `SetupIntent` +* Add support for new value `grabpay` on enums `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[] +` diff --git a/.hark/changes/2022-02-23_yejia_api-updates.change.md b/.hark/changes/2022-02-23_yejia_api-updates.change.md new file mode 100644 index 000000000000..85ef86f44ea4 --- /dev/null +++ b/.hark/changes/2022-02-23_yejia_api-updates.change.md @@ -0,0 +1,10 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1313 +is_stripe_api_change: true +released_in_version: 20.101.0 +--- + +* Add support for `setup_future_usage` on `PaymentIntentCreateParams.payment_method_options.acss_debit`, `PaymentIntentCreateParams.payment_method_options.afterpay_clearpay`, `PaymentIntentCreateParams.payment_method_options.alipay`, `PaymentIntentCreateParams.payment_method_options.au_becs_debit`, `PaymentIntentCreateParams.payment_method_options.bacs_debit`, `PaymentIntentCreateParams.payment_method_options.bancontact`, `PaymentIntentCreateParams.payment_method_options.boleto`, `PaymentIntentCreateParams.payment_method_options.eps`, `PaymentIntentCreateParams.payment_method_options.fpx`, `PaymentIntentCreateParams.payment_method_options.giropay`, `PaymentIntentCreateParams.payment_method_options.grabpay`, `PaymentIntentCreateParams.payment_method_options.ideal`, `PaymentIntentCreateParams.payment_method_options.klarna`, `PaymentIntentCreateParams.payment_method_options.oxxo`, `PaymentIntentCreateParams.payment_method_options.p24`, `PaymentIntentCreateParams.payment_method_options.sepa_debit`, `PaymentIntentCreateParams.payment_method_options.sofort`, `PaymentIntentCreateParams.payment_method_options.wechat_pay`, `PaymentIntentUpdateParams.payment_method_options.acss_debit`, `PaymentIntentUpdateParams.payment_method_options.afterpay_clearpay`, `PaymentIntentUpdateParams.payment_method_options.alipay`, `PaymentIntentUpdateParams.payment_method_options.au_becs_debit`, `PaymentIntentUpdateParams.payment_method_options.bacs_debit`, `PaymentIntentUpdateParams.payment_method_options.bancontact`, `PaymentIntentUpdateParams.payment_method_options.boleto`, `PaymentIntentUpdateParams.payment_method_options.eps`, `PaymentIntentUpdateParams.payment_method_options.fpx`, `PaymentIntentUpdateParams.payment_method_options.giropay`, `PaymentIntentUpdateParams.payment_method_options.grabpay`, `PaymentIntentUpdateParams.payment_method_options.ideal`, `PaymentIntentUpdateParams.payment_method_options.klarna`, `PaymentIntentUpdateParams.payment_method_options.oxxo`, `PaymentIntentUpdateParams.payment_method_options.p24`, `PaymentIntentUpdateParams.payment_method_options.sepa_debit`, `PaymentIntentUpdateParams.payment_method_options.sofort`, `PaymentIntentUpdateParams.payment_method_options.wechat_pay`, `PaymentIntentConfirmParams.payment_method_options.acss_debit`, `PaymentIntentConfirmParams.payment_method_options.afterpay_clearpay`, `PaymentIntentConfirmParams.payment_method_options.alipay`, `PaymentIntentConfirmParams.payment_method_options.au_becs_debit`, `PaymentIntentConfirmParams.payment_method_options.bacs_debit`, `PaymentIntentConfirmParams.payment_method_options.bancontact`, `PaymentIntentConfirmParams.payment_method_options.boleto`, `PaymentIntentConfirmParams.payment_method_options.eps`, `PaymentIntentConfirmParams.payment_method_options.fpx`, `PaymentIntentConfirmParams.payment_method_options.giropay`, `PaymentIntentConfirmParams.payment_method_options.grabpay`, `PaymentIntentConfirmParams.payment_method_options.ideal`, `PaymentIntentConfirmParams.payment_method_options.klarna`, `PaymentIntentConfirmParams.payment_method_options.oxxo`, `PaymentIntentConfirmParams.payment_method_options.p24`, `PaymentIntentConfirmParams.payment_method_options.sepa_debit`, `PaymentIntentConfirmParams.payment_method_options.sofort`, `PaymentIntentConfirmParams.payment_method_options.wechat_pay`, `PaymentIntent.payment_method_options.acss_debit`, `PaymentIntent.payment_method_options.afterpay_clearpay`, `PaymentIntent.payment_method_options.alipay`, `PaymentIntent.payment_method_options.au_becs_debit`, `PaymentIntent.payment_method_options.bacs_debit`, `PaymentIntent.payment_method_options.bancontact`, `PaymentIntent.payment_method_options.boleto`, `PaymentIntent.payment_method_options.eps`, `PaymentIntent.payment_method_options.fpx`, `PaymentIntent.payment_method_options.giropay`, `PaymentIntent.payment_method_options.grabpay`, `PaymentIntent.payment_method_options.ideal`, `PaymentIntent.payment_method_options.klarna`, `PaymentIntent.payment_method_options.oxxo`, `PaymentIntent.payment_method_options.p24`, `PaymentIntent.payment_method_options.sepa_debit`, `PaymentIntent.payment_method_options.sofort`, and `PaymentIntent.payment_method_options.wechat_pay` +* Add support for new values `bbpos_wisepad3` and `stripe_m2` on enum `terminal.ReaderListParams.device_type` +* Add generated test for the endpoints introduced in #1312 diff --git a/.hark/changes/2022-02-26_richardm_api-updates.change.md b/.hark/changes/2022-02-26_richardm_api-updates.change.md new file mode 100644 index 000000000000..34cf3c954380 --- /dev/null +++ b/.hark/changes/2022-02-26_richardm_api-updates.change.md @@ -0,0 +1,13 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1315 +is_stripe_api_change: true +released_in_version: 20.102.0 +--- + +* Add support for `konbini_payments` on `AccountUpdateParams.capabilities`, `AccountCreateParams.capabilities`, and `Account.capabilities` +* Add support for .payment_method_options.konbini and .payment_method_data.konbini on the PaymentIntent API. +* Add support for .payment_settings.payment_method_options.konbini on the Invoice API. +* Add support for .payment_method_options.konbini on the Subscription API +* Add support for .payment_method_options.konbini on the checkout.Session API +* Add support for `konbini_display_details` on `PaymentIntent.next_action` diff --git a/.hark/changes/2022-03-01_richardm_api-updates.change.md b/.hark/changes/2022-03-01_richardm_api-updates.change.md new file mode 100644 index 000000000000..1aa6f2091aa0 --- /dev/null +++ b/.hark/changes/2022-03-01_richardm_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1319 +is_stripe_api_change: true +released_in_version: 20.103.0 +--- + +* Add support for `deletes_after` on `TestHelpers.TestClock` diff --git a/.hark/changes/2022-03-01_richardm_api-updates2.change.md b/.hark/changes/2022-03-01_richardm_api-updates2.change.md new file mode 100644 index 000000000000..ece215f4979e --- /dev/null +++ b/.hark/changes/2022-03-01_richardm_api-updates2.change.md @@ -0,0 +1,12 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1318 +is_stripe_api_change: true +released_in_version: 20.103.0 +--- + +* Add support for new resource `TestHelpers.TestClock` +* Add support for `test_clock` on `CustomerCreateParams`, `Customer`, `Invoice`, `InvoiceItem`, `QuoteCreateParams`, `Quote`, `Subscription`, and `SubscriptionSchedule` +* Add support for `pending_invoice_items_behavior` on `InvoiceCreateParams` +* Change type of `ProductUpdateParams.url` from `string` to `emptyStringable(string)` +* Add support for `next_action` on `Refund` diff --git a/.hark/changes/2022-03-02_dcr_api-updates.change.md b/.hark/changes/2022-03-02_dcr_api-updates.change.md new file mode 100644 index 000000000000..cd0a9e6b1c01 --- /dev/null +++ b/.hark/changes/2022-03-02_dcr_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1320 +is_stripe_api_change: true +released_in_version: 20.104.0 +--- + +* Add support for new resources `CreditedItems` and `ProrationDetails` +* Add support for `proration_details` on `InvoiceLineItem` diff --git a/.hark/changes/2022-03-09_dcr_api-updates.change.md b/.hark/changes/2022-03-09_dcr_api-updates.change.md new file mode 100644 index 000000000000..49a25a05e8bc --- /dev/null +++ b/.hark/changes/2022-03-09_dcr_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1323 +is_stripe_api_change: true +released_in_version: 20.105.0 +--- + +* Add support for `test_clock` on `CustomerListParams` diff --git a/.hark/changes/2022-03-11_richardm_api-updates.change.md b/.hark/changes/2022-03-11_richardm_api-updates.change.md new file mode 100644 index 000000000000..20481c80780f --- /dev/null +++ b/.hark/changes/2022-03-11_richardm_api-updates.change.md @@ -0,0 +1,12 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1324 +is_stripe_api_change: true +released_in_version: 20.106.0 +--- + +* Add support for `mandate` on `Charge.payment_method_details.card` +* Add support for `mandate_options` on `PaymentIntentCreateParams.payment_method_options.card`, `PaymentIntentUpdateParams.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntent.payment_method_options.card`, `SetupIntentCreateParams.payment_method_options.card`, `SetupIntentUpdateParams.payment_method_options.card`, `SetupIntentConfirmParams.payment_method_options.card`, and `SetupIntent.payment_method_options.card` +* Add support for `card_await_notification` on `PaymentIntent.next_action` +* Add support for `customer_notification` on `PaymentIntent.processing.card` +* Change `PaymentLinkCreateParams.line_items` to be required diff --git a/.hark/changes/2022-03-11_yejia_delete-paymentinten-java.change.md b/.hark/changes/2022-03-11_yejia_delete-paymentinten-java.change.md new file mode 100644 index 000000000000..9c8195345c16 --- /dev/null +++ b/.hark/changes/2022-03-11_yejia_delete-paymentinten-java.change.md @@ -0,0 +1,5 @@ +--- +title: Delete PaymentIntentTypeSpecificPaymentMethodOptionsClient.java +pr_url: https://github.com/stripe/stripe-java/pull/1321 +released_in_version: 20.106.0 +--- diff --git a/.hark/changes/2022-03-17_pakrym_update-searchresult-pagination.change.md b/.hark/changes/2022-03-17_pakrym_update-searchresult-pagination.change.md new file mode 100644 index 000000000000..4558a26c8b45 --- /dev/null +++ b/.hark/changes/2022-03-17_pakrym_update-searchresult-pagination.change.md @@ -0,0 +1,5 @@ +--- +title: Update SearchResult pagination to match new API shape. This is a breaking change but the object shape is not exposed in the API currently and is therefore not being used. +pr_url: https://github.com/stripe/stripe-java/pull/1326 +released_in_version: 20.107.0 +--- diff --git a/.hark/changes/2022-03-18_dcr_api-updates.change.md b/.hark/changes/2022-03-18_dcr_api-updates.change.md new file mode 100644 index 000000000000..48c43c578fef --- /dev/null +++ b/.hark/changes/2022-03-18_dcr_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1327 +is_stripe_api_change: true +released_in_version: 20.107.0 +--- + +* Add support for `status` on `Card` diff --git a/.hark/changes/2022-03-18_dcr_upgrade-gson-dependency.change.md b/.hark/changes/2022-03-18_dcr_upgrade-gson-dependency.change.md new file mode 100644 index 000000000000..5be64ac227d4 --- /dev/null +++ b/.hark/changes/2022-03-18_dcr_upgrade-gson-dependency.change.md @@ -0,0 +1,5 @@ +--- +title: Upgrade GSON dependency to 2.9.0 +pr_url: https://github.com/stripe/stripe-java/pull/1322 +released_in_version: 20.107.0 +--- diff --git a/.hark/changes/2022-03-23_dcr_api-updates.change.md b/.hark/changes/2022-03-23_dcr_api-updates.change.md new file mode 100644 index 000000000000..4afae46fe5ae --- /dev/null +++ b/.hark/changes/2022-03-23_dcr_api-updates.change.md @@ -0,0 +1,11 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1328 +is_stripe_api_change: true +released_in_version: 20.108.0 +--- + +* Add support for `cancel` method on resource `Refund` +* Add support for new values `bg_uic`, `hu_tin`, and `si_tin` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` +* Add support for `test_clock` on `QuoteListParams` +* Add support for new values `test_helpers.test_clock.advancing`, `test_helpers.test_clock.created`, `test_helpers.test_clock.deleted`, `test_helpers.test_clock.internal_failure`, and `test_helpers.test_clock.ready` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` diff --git a/.hark/changes/2022-03-25_yejia_api-updates.change.md b/.hark/changes/2022-03-25_yejia_api-updates.change.md new file mode 100644 index 000000000000..d0a0d76e29a2 --- /dev/null +++ b/.hark/changes/2022-03-25_yejia_api-updates.change.md @@ -0,0 +1,45 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1329 +is_stripe_api_change: true +released_in_version: 20.109.0 +--- + +* Add support for PayNow and US Bank Accounts Debits payments + * **Charge** ([API ref](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details)) + * Add support for `paynow` and `us_bank_account` on `Charge.payment_method_details` + * **Customer** ([API ref](https://stripe.com/docs/api/payment_methods/customer_list#list_customer_payment_methods-type)) + * Add support for new values `paynow` and `us_bank_account` on enum `CustomerListPaymentMethodsParams.type` + * **Mandate** ([API ref](https://stripe.com/docs/api/mandates/object#mandate_object-payment_method_details)) + * Add support for `us_bank_account` on `Mandate.payment_method_details` + * **Payment Intent** ([API ref](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-payment_method_options)) + * Add support for `paynow` and `us_bank_account` on `payment_method_options` on `PaymentIntent`, `PaymentIntentCreateParams`, `PaymentIntentUpdateParams`, and `PaymentIntentConfirmParams` + * Add support for `paynow` and `us_bank_account` on `payment_method_data` on `PaymentIntentCreateParams`, `PaymentIntentUpdateParams`, and `PaymentIntentConfirmParams` + * Add support for `paynow_display_qr_code` on `PaymentIntent.next_action` + * Add support for new values `paynow` and `us_bank_account` on enums `payment_method_data.type` on `PaymentIntentCreateParams`, and `PaymentIntentUpdateParams`, and `PaymentIntentConfirmParams` + * **Setup Intent** ([API ref](https://stripe.com/docs/api/setup_intents/object#setup_intent_object-payment_method_options)) + * Add support for `us_bank_account` on `payment_method_options` on `SetupIntent`, `SetupIntentCreateParams`, `SetupIntentUpdateParams`, and `SetupIntentConfirmParams` + * **Setup Attempt** ([API ref](https://stripe.com/docs/api/setup_attempts/object#setup_attempt_object-payment_method_details)) + * Add support for `us_bank_account` on `SetupAttempt.payment_method_details` + * **Payment Method** ([API ref](https://stripe.com/docs/api/payment_methods/object#payment_method_object-paynow)) + * Add support for `paynow` and `us_bank_account` on `PaymentMethod` and `PaymentMethodCreateParams` + * Add support for `us_bank_account` on `PaymentMethodUpdateParams` + * Add support for new values `paynow` and `us_bank_account` on enums `PaymentMethod.type`, `PaymentMethodCreateParams.type`. and `PaymentMethodListParams.type` + * **Checkout Session** ([API ref](https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_method_types)) + * Add support for `us_bank_account` on `payment_method_options` on `Checkout.Session` and `checkout.SessionCreateParams` + * Add support for new values `paynow` and `us_bank_account` on enum `checkout.SessionCreateParams.payment_method_types[]` + * **Invoice** ([API ref](https://stripe.com/docs/api/invoices/object#invoice_object-payment_settings-payment_method_types)) + * Add support for `us_bank_account` on `payment_settings.payment_method_options` on `Invoice`, `InvoiceCreateParams`, and `InvoiceUpdateParams` + * Add support for new values `paynow` and `us_bank_account` on enums `payment_settings.payment_method_types[]` on `Invoice`, `InvoiceCreateParams`, and `InvoiceUpdateParams` + * **Subscription** ([API ref](https://stripe.com/docs/api/subscriptions/object#subscription_object-payment_settings-payment_method_types)) + * Add support for `us_bank_account` on `Subscription.payment_settings.payment_method_options`, `SubscriptionCreateParams.payment_settings.payment_method_options`, and `SubscriptionUpdateParams.payment_settings.payment_method_options` + * Add support for new values `paynow` and `us_bank_account` on enums `payment_settings.payment_method_types[]` on `Subscription`, `SubscriptionCreateParams`, and `SubscriptionUpdateParams` + * **Account capabilities** ([API ref](https://stripe.com/docs/api/accounts/object#account_object-capabilities)) + * Add support for `paynow_payments` on `capabilities` on `Account`, `AccountCreateParams`, and `AccountUpdateParams` +* Add support for `failure_balance_transaction` on `Charge` +* Add support for `capture_method` on `afterpay_clearpay`, `card`, and `klarna` on `payment_method_options` on +`PaymentIntent`, `PaymentIntentCreateParams`, `PaymentIntentUpdateParams`, and `PaymentIntentConfirmParams` ([API ref](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-payment_method_options-afterpay_clearpay-capture_method)) +* Add additional support for verify microdeposits on Payment Intent and Setup Intent ([API ref](https://stripe.com/docs/api/payment_intents/verify_microdeposits)) + * Add support for `microdeposit_type` on `next_action.verify_with_microdeposits` on `PaymentIntent` and `SetupIntent` + * Add support for `descriptor_code` on `PaymentIntentVerifyMicrodepositsParams` and `SetupIntentVerifyMicrodepositsParams` +* Add support for `test_clock` on `SubscriptionListParams` ([API ref](https://stripe.com/docs/api/subscriptions/list#list_subscriptions-test_clock)) diff --git a/.hark/changes/2022-03-28_pakrym_api-updates.change.md b/.hark/changes/2022-03-28_pakrym_api-updates.change.md new file mode 100644 index 000000000000..1d230115f5ef --- /dev/null +++ b/.hark/changes/2022-03-28_pakrym_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1330 +is_stripe_api_change: true +released_in_version: 20.110.0 +--- + +* Add support for Search API + * Add support for `search` method on resources `Charge`, `Customer`, `Invoice`, `PaymentIntent`, `Price`, `Product`, and `Subscription` diff --git a/.hark/changes/2022-03-29_pakrym_api-updates.change.md b/.hark/changes/2022-03-29_pakrym_api-updates.change.md new file mode 100644 index 000000000000..b68d6f3a058c --- /dev/null +++ b/.hark/changes/2022-03-29_pakrym_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1332 +is_stripe_api_change: true +released_in_version: 20.111.0 +--- + +* Add support for `cancel_action`, `process_payment_intent`, `process_setup_intent`, and `set_reader_display` methods on resource `Terminal.Reader` +* Add support for `action` on `Terminal.Reader` diff --git a/.hark/changes/2022-03-30_pakrym_pin-jdk-version.change.md b/.hark/changes/2022-03-30_pakrym_pin-jdk-version.change.md new file mode 100644 index 000000000000..f60763a3fcbb --- /dev/null +++ b/.hark/changes/2022-03-30_pakrym_pin-jdk-version.change.md @@ -0,0 +1,7 @@ +--- +title: Pin JDK version and always build using Java 18 +pr_url: https://github.com/stripe/stripe-java/pull/1331 +released_in_version: 20.112.0 +--- + +* This only impacts development and it's not a breaking change for users. We still support Java 1.8 and later. diff --git a/.hark/changes/2022-04-01_kamil_api-updates.change.md b/.hark/changes/2022-04-01_kamil_api-updates.change.md new file mode 100644 index 000000000000..a469f9f18e6d --- /dev/null +++ b/.hark/changes/2022-04-01_kamil_api-updates.change.md @@ -0,0 +1,14 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1333 +is_stripe_api_change: true +released_in_version: 20.112.0 +--- + +* Add support for `bank_transfer_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` +* Add support for `capture_before` on `Charge.payment_method_details.card_present` +* Add support for `address` and `name` on `Checkout.Session.customer_details` +* Add support for `customer_balance` on `Invoice.payment_settings.payment_method_options`, `InvoiceCreateParams.payment_settings.payment_method_options`, `InvoiceUpdateParams.payment_settings.payment_method_options`, `Subscription.payment_settings.payment_method_options`, `SubscriptionCreateParams.payment_settings.payment_method_options`, and `SubscriptionUpdateParams.payment_settings.payment_method_options` +* Add support for new value `customer_balance` on enums `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` +* Add support for `request_extended_authorization` on `PaymentIntent.payment_method_options.card_present`, `PaymentIntentConfirmParams.payment_method_options.card_present`, `PaymentIntentCreateParams.payment_method_options.card_present`, and `PaymentIntentUpdateParams.payment_method_options.card_present` +* Add support for new values `payment_intent.partially_funded`, `terminal.reader.action_failed`, and `terminal.reader.action_succeeded` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` diff --git a/.hark/changes/2022-04-08_kamil_api-updates.change.md b/.hark/changes/2022-04-08_kamil_api-updates.change.md new file mode 100644 index 000000000000..9e32ad1e6769 --- /dev/null +++ b/.hark/changes/2022-04-08_kamil_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1335 +is_stripe_api_change: true +released_in_version: 20.113.0 +--- + +* Add support for `apply_customer_balance` method on resource `PaymentIntent` +* Add support for new value `cash_balance.funds_available` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` diff --git a/.hark/changes/2022-04-13_richardm_api-updates.change.md b/.hark/changes/2022-04-13_richardm_api-updates.change.md new file mode 100644 index 000000000000..8d15fe3f5df7 --- /dev/null +++ b/.hark/changes/2022-04-13_richardm_api-updates.change.md @@ -0,0 +1,10 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1336 +is_stripe_api_change: true +released_in_version: 20.114.0 +--- + +* Add support for `increment_authorization` method on resource `PaymentIntent` +* Add support for `incremental_authorization_supported` on `Charge.payment_method_details.card_present` +* Add support for `request_incremental_authorization_support` on `PaymentIntent.payment_method_options.card_present`, `PaymentIntentConfirmParams.payment_method_options.card_present`, `PaymentIntentCreateParams.payment_method_options.card_present`, and `PaymentIntentUpdateParams.payment_method_options.card_present` diff --git a/.hark/changes/2022-04-14_richardm_add-support-putextrapara.change.md b/.hark/changes/2022-04-14_richardm_add-support-putextrapara.change.md new file mode 100644 index 000000000000..4e2df0197697 --- /dev/null +++ b/.hark/changes/2022-04-14_richardm_add-support-putextrapara.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for putExtraParam on EphemeralKeyCreateParams +pr_url: https://github.com/stripe/stripe-java/pull/1338 +released_in_version: 20.114.0 +--- diff --git a/.hark/changes/2022-04-20_richardm_api-updates.change.md b/.hark/changes/2022-04-20_richardm_api-updates.change.md new file mode 100644 index 000000000000..7b65c8244849 --- /dev/null +++ b/.hark/changes/2022-04-20_richardm_api-updates.change.md @@ -0,0 +1,16 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1339 +is_stripe_api_change: true +released_in_version: 20.115.0 +--- + +* Add support for new resources `FundingInstructions` and `Terminal.Configuration` +* Add support for `create_funding_instructions` method on resource `Customer` +* Add support for `customer_balance` on `Charge.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentParams.payment_method_data`, `PaymentIntentParams.payment_method_options`, `PaymentMethodCreateParams`, and `PaymentMethod` +* Add support for `cash_balance` on `CustomerCreateParams` and `CustomerUpdateParams` +* Add support for new value `customer_balance` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodListParams.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, and `PaymentIntentUpdateParams.payment_method_data.type` +* Add support for `amount_details` on `PaymentIntent` +* Add support for `display_bank_transfer_instructions` on `PaymentIntent.next_action` +* Add support for new value `customer_balance` on enum `PaymentMethodCreateParams.type` +* Add support for `configuration_overrides` on `Terminal.Location`, `terminal.LocationCreateParams`, and `terminal.LocationUpdateParams` diff --git a/.hark/changes/2022-04-21_dcr_add-null-checks.change.md b/.hark/changes/2022-04-21_dcr_add-null-checks.change.md new file mode 100644 index 000000000000..061908359260 --- /dev/null +++ b/.hark/changes/2022-04-21_dcr_add-null-checks.change.md @@ -0,0 +1,5 @@ +--- +title: Add null checks before streaming expandable IDs in setters. +pr_url: https://github.com/stripe/stripe-java/pull/1342 +released_in_version: 20.116.0 +--- diff --git a/.hark/changes/2022-04-21_richardm_api-updates.change.md b/.hark/changes/2022-04-21_richardm_api-updates.change.md new file mode 100644 index 000000000000..de0faa9fa734 --- /dev/null +++ b/.hark/changes/2022-04-21_richardm_api-updates.change.md @@ -0,0 +1,10 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1345 +is_stripe_api_change: true +released_in_version: 20.116.0 +--- + +* Add support for `expire` test helper method on resource `Refund` +* Change type of `BillingPortal.Configuration.application` from `string` to `expandable($Application)` +* Change `issuing.DisputeCreateParams.transaction` to be optional diff --git a/.hark/changes/2022-05-03_dcr_api-updates.change.md b/.hark/changes/2022-05-03_dcr_api-updates.change.md new file mode 100644 index 000000000000..3b3d0a267bd5 --- /dev/null +++ b/.hark/changes/2022-05-03_dcr_api-updates.change.md @@ -0,0 +1,13 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1346 +is_stripe_api_change: true +released_in_version: 20.117.0 +--- + +* Add support for new resource `CashBalance` +* Change type of `BillingPortal.Configuration.application` from `$Application` to `deletable($Application)` +* Add support for `alipay` on `Checkout.Session.payment_method_options` and `checkout.SessionCreateParams.payment_method_options` +* Add support for new value `eu_oss_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` +* Add support for `cash_balance` on `Customer` +* Add support for `application` on `Invoice`, `Quote`, `SubscriptionSchedule`, and `Subscription` diff --git a/.hark/changes/2022-05-04_dcr_api-updates.change.md b/.hark/changes/2022-05-04_dcr_api-updates.change.md new file mode 100644 index 000000000000..a2f9d1915c36 --- /dev/null +++ b/.hark/changes/2022-05-04_dcr_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1347 +is_stripe_api_change: true +released_in_version: 20.118.0 +--- + +* Add support for `registered_address` on `AccountCreateParams.individual`, `AccountUpdateParams.individual`, `PersonCreateParams`, `PersonUpdateParams`, `Person`, `TokenCreateParams.account.individual`, and `TokenCreateParams.person` +* Add support for `payment_method_data` on `SetupIntentConfirmParams`, `SetupIntentCreateParams`, and `SetupIntentUpdateParams` diff --git a/.hark/changes/2022-05-05_dcr_api-updates.change.md b/.hark/changes/2022-05-05_dcr_api-updates.change.md new file mode 100644 index 000000000000..02be87ea5f96 --- /dev/null +++ b/.hark/changes/2022-05-05_dcr_api-updates.change.md @@ -0,0 +1,10 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1349 +is_stripe_api_change: true +released_in_version: 20.119.0 +--- + +* Add support for `default_price_data` on `ProductCreateParams` +* Add support for `default_price` on `ProductUpdateParams` and `Product` +* Add support for `instructions_email` on `RefundCreateParams` and `Refund` diff --git a/.hark/changes/2022-05-05_dcr_api-updates2.change.md b/.hark/changes/2022-05-05_dcr_api-updates2.change.md new file mode 100644 index 000000000000..a5bde9554117 --- /dev/null +++ b/.hark/changes/2022-05-05_dcr_api-updates2.change.md @@ -0,0 +1,10 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1348 +is_stripe_api_change: true +released_in_version: 20.118.0 +--- + +* Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session` +* Add support for `financial_connections` on `Checkout.Session.payment_method_options.us_bank_account`, `checkout.SessionCreateParams.payment_method_options.us_bank_account`, `Invoice.payment_settings.payment_method_options.us_bank_account`, `InvoiceCreateParams.payment_settings.payment_method_options.us_bank_account`, `InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account`, `PaymentIntent.payment_method_options.us_bank_account`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account`, `PaymentIntentCreateParams.payment_method_options.us_bank_account`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account`, `SetupIntent.payment_method_options.us_bank_account`, `SetupIntentConfirmParams.payment_method_options.us_bank_account`, `SetupIntentCreateParams.payment_method_options.us_bank_account`, `SetupIntentUpdateParams.payment_method_options.us_bank_account`, `Subscription.payment_settings.payment_method_options.us_bank_account`, `SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account` +* Add support for `financial_connections_account` on `PaymentIntentConfirmParams.payment_method_data.us_bank_account`, `PaymentIntentCreateParams.payment_method_data.us_bank_account`, `PaymentIntentUpdateParams.payment_method_data.us_bank_account`, `PaymentMethod.us_bank_account`, `PaymentMethodCreateParams.us_bank_account`, `SetupIntentConfirmParams.payment_method_data.us_bank_account`, `SetupIntentCreateParams.payment_method_data.us_bank_account`, and `SetupIntentUpdateParams.payment_method_data.us_bank_account` diff --git a/.hark/changes/2022-05-11_richardm_api-updates.change.md b/.hark/changes/2022-05-11_richardm_api-updates.change.md new file mode 100644 index 000000000000..c597c8273620 --- /dev/null +++ b/.hark/changes/2022-05-11_richardm_api-updates.change.md @@ -0,0 +1,12 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1351 +is_stripe_api_change: true +released_in_version: 20.120.0 +--- + +* Add support for `description` on `checkout.SessionCreateParams.subscription_data`, `SubscriptionCreateParams`, `SubscriptionUpdateParams`, and `Subscription` +* Add support for `consent_collection`, `payment_intent_data`, `shipping_options`, `submit_type`, and `tax_id_collection` on `PaymentLinkCreateParams` and `PaymentLink` +* Add support for `customer_creation` on `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink` +* Add support for `metadata` on `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.phases[]`, and `SubscriptionScheduleUpdateParams.phases[]` +* Add support for new value `billing_portal.session.created` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` diff --git a/.hark/changes/2022-05-11_richardm_api-updates2.change.md b/.hark/changes/2022-05-11_richardm_api-updates2.change.md new file mode 100644 index 000000000000..d47c99048a16 --- /dev/null +++ b/.hark/changes/2022-05-11_richardm_api-updates2.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1350 +is_stripe_api_change: true +released_in_version: 20.120.0 +--- + +* Add support for `amount_discount`, `amount_tax`, and `product` on `LineItem` diff --git a/.hark/changes/2022-05-12_pakrym_publish-java-package.change.md b/.hark/changes/2022-05-12_pakrym_publish-java-package.change.md new file mode 100644 index 000000000000..c4a57e432ea8 --- /dev/null +++ b/.hark/changes/2022-05-12_pakrym_publish-java-package.change.md @@ -0,0 +1,5 @@ +--- +title: Publish Java package from Github actions +pr_url: https://github.com/stripe/stripe-java/pull/1340 +released_in_version: 20.121.0 +--- diff --git a/.hark/changes/2022-05-13_pakrym_finish-automated-java.change.md b/.hark/changes/2022-05-13_pakrym_finish-automated-java.change.md new file mode 100644 index 000000000000..e3d9bedaba7a --- /dev/null +++ b/.hark/changes/2022-05-13_pakrym_finish-automated-java.change.md @@ -0,0 +1,5 @@ +--- +title: Finish automated Java releases +pr_url: https://github.com/stripe/stripe-java/pull/1352 +released_in_version: 20.121.0 +--- diff --git a/.hark/changes/2022-05-13_pakrym_update-readme-new.change.md b/.hark/changes/2022-05-13_pakrym_update-readme-new.change.md new file mode 100644 index 000000000000..24b1088f649d --- /dev/null +++ b/.hark/changes/2022-05-13_pakrym_update-readme-new.change.md @@ -0,0 +1,5 @@ +--- +title: Update readme with new jar download URL +pr_url: https://github.com/stripe/stripe-java/pull/1353 +released_in_version: 20.121.0 +--- diff --git a/.hark/changes/2022-05-20_dcr_api-updates.change.md b/.hark/changes/2022-05-20_dcr_api-updates.change.md new file mode 100644 index 000000000000..7a5def59189b --- /dev/null +++ b/.hark/changes/2022-05-20_dcr_api-updates.change.md @@ -0,0 +1,20 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1354 +is_stripe_api_change: true +released_in_version: 20.121.0 +--- + +* Add support for new resources `Treasury.CreditReversal`, `Treasury.DebitReversal`, `Treasury.FinancialAccountFeatures`, `Treasury.FinancialAccount`, `Treasury.FlowDetails`, `Treasury.InboundTransfer`, `Treasury.OutboundPayment`, `Treasury.OutboundTransfer`, `Treasury.ReceivedCredit`, `Treasury.ReceivedDebit`, `Treasury.TransactionEntry`, and `Treasury.Transaction` +* Add support for `retrieve_payment_method` method on resource `Customer` +* Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account` +* Change `billingportal.ConfigurationCreateParams.features.customer_update.allowed_updates` to be optional +* Add support for `afterpay_clearpay`, `au_becs_debit`, `bacs_debit`, `eps`, `fpx`, `giropay`, `grabpay`, `klarna`, `paynow`, and `sepa_debit` on `Checkout.Session.payment_method_options` +* Add support for `treasury` on `Issuing.Authorization`, `Issuing.Dispute`, `Issuing.Transaction`, and `issuing.DisputeCreateParams` +* Add support for `financial_account` on `Issuing.Card` and `issuing.CardCreateParams` +* Add support for `client_secret` on `Order` +* Add support for `networks` on `PaymentIntentConfirmParams.payment_method_options.us_bank_account`, `PaymentIntentCreateParams.payment_method_options.us_bank_account`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account`, `PaymentMethod.us_bank_account`, `SetupIntentConfirmParams.payment_method_options.us_bank_account`, `SetupIntentCreateParams.payment_method_options.us_bank_account`, and `SetupIntentUpdateParams.payment_method_options.us_bank_account` +* Add support for `attach_to_self` and `flow_directions` on `SetupIntent` +* Add support for `save_default_payment_method` on `Subscription.payment_settings`, `SubscriptionCreateParams.payment_settings`, and `SubscriptionUpdateParams.payment_settings` +* Add support for `czk` on `Terminal.Configuration.tipping`, `terminal.ConfigurationCreateParams.tipping`, and `terminal.ConfigurationUpdateParams.tipping` +* Add support for new values `treasury.credit_reversal.created`, `treasury.credit_reversal.posted`, `treasury.debit_reversal.completed`, `treasury.debit_reversal.created`, `treasury.debit_reversal.initial_credit_granted`, `treasury.financial_account.closed`, `treasury.financial_account.created`, `treasury.financial_account.features_status_updated`, `treasury.inbound_transfer.canceled`, `treasury.inbound_transfer.created`, `treasury.inbound_transfer.failed`, `treasury.inbound_transfer.succeeded`, `treasury.outbound_payment.canceled`, `treasury.outbound_payment.created`, `treasury.outbound_payment.expected_arrival_date_updated`, `treasury.outbound_payment.failed`, `treasury.outbound_payment.posted`, `treasury.outbound_payment.returned`, `treasury.outbound_transfer.canceled`, `treasury.outbound_transfer.created`, `treasury.outbound_transfer.expected_arrival_date_updated`, `treasury.outbound_transfer.failed`, `treasury.outbound_transfer.posted`, `treasury.outbound_transfer.returned`, `treasury.received_credit.created`, `treasury.received_credit.failed`, `treasury.received_credit.reversed`, `treasury.received_credit.succeeded`, and `treasury.received_debit.created` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` diff --git a/.hark/changes/2022-05-20_pakrym_revert-master-trigger.change.md b/.hark/changes/2022-05-20_pakrym_revert-master-trigger.change.md new file mode 100644 index 000000000000..71ffe2a64b48 --- /dev/null +++ b/.hark/changes/2022-05-20_pakrym_revert-master-trigger.change.md @@ -0,0 +1,5 @@ +--- +title: Revert master trigger +pr_url: https://github.com/stripe/stripe-java/pull/1357 +released_in_version: 20.122.0 +--- diff --git a/.hark/changes/2022-05-20_pakrym_temporary-allow-triggering.change.md b/.hark/changes/2022-05-20_pakrym_temporary-allow-triggering.change.md new file mode 100644 index 000000000000..33b206e7d339 --- /dev/null +++ b/.hark/changes/2022-05-20_pakrym_temporary-allow-triggering.change.md @@ -0,0 +1,5 @@ +--- +title: Temporary allow triggering docs push from master +pr_url: https://github.com/stripe/stripe-java/pull/1356 +released_in_version: 20.122.0 +--- diff --git a/.hark/changes/2022-05-20_pakrym_use-github-actor.change.md b/.hark/changes/2022-05-20_pakrym_use-github-actor.change.md new file mode 100644 index 000000000000..ccce0dc08248 --- /dev/null +++ b/.hark/changes/2022-05-20_pakrym_use-github-actor.change.md @@ -0,0 +1,5 @@ +--- +title: Use github.actor as GRGIT_USER +pr_url: https://github.com/stripe/stripe-java/pull/1355 +released_in_version: 20.122.0 +--- diff --git a/.hark/changes/2022-05-23_pakrym_api-updates.change.md b/.hark/changes/2022-05-23_pakrym_api-updates.change.md new file mode 100644 index 000000000000..7ef559f01386 --- /dev/null +++ b/.hark/changes/2022-05-23_pakrym_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1360 +is_stripe_api_change: true +released_in_version: 20.124.0 +--- + +* Add support for `treasury` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` diff --git a/.hark/changes/2022-05-23_pakrym_api-updates2.change.md b/.hark/changes/2022-05-23_pakrym_api-updates2.change.md new file mode 100644 index 000000000000..c8ef2a2423e9 --- /dev/null +++ b/.hark/changes/2022-05-23_pakrym_api-updates2.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1360 +is_stripe_api_change: true +released_in_version: 20.123.0 +--- + +* Add support for `treasury` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` diff --git a/.hark/changes/2022-05-23_pakrym_api-updates3.change.md b/.hark/changes/2022-05-23_pakrym_api-updates3.change.md new file mode 100644 index 000000000000..57cbce62927d --- /dev/null +++ b/.hark/changes/2022-05-23_pakrym_api-updates3.change.md @@ -0,0 +1,14 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1359 +is_stripe_api_change: true +released_in_version: 20.122.0 +--- + +* Add support for new resource `Apps.Secret` +* Add support for `affirm` on `Charge.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` +* Add support for `link` on `Charge.payment_method_details`, `Mandate.payment_method_details`, `OrderCreateParams.payment.settings.payment_method_options`, `OrderUpdateParams.payment.settings.payment_method_options`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_data`, `SetupIntentCreateParams.payment_method_options`, `SetupIntentUpdateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_options` +* Add support for new values `affirm` and `link` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` +* Add support for new value `link` on enums `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` +* Add support for new values `affirm` and `link` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` +* Add support for new values `affirm` and `link` on enum `PaymentMethodCreateParams.type` diff --git a/.hark/changes/2022-05-23_pakrym_fix-version-update.change.md b/.hark/changes/2022-05-23_pakrym_fix-version-update.change.md new file mode 100644 index 000000000000..187db4327c02 --- /dev/null +++ b/.hark/changes/2022-05-23_pakrym_fix-version-update.change.md @@ -0,0 +1,5 @@ +--- +title: Fix version update script and the version in README.md +pr_url: https://github.com/stripe/stripe-java/pull/1361 +released_in_version: 20.124.0 +--- diff --git a/.hark/changes/2022-05-26_pakrym_api-updates.change.md b/.hark/changes/2022-05-26_pakrym_api-updates.change.md new file mode 100644 index 000000000000..3372e9b0c0c0 --- /dev/null +++ b/.hark/changes/2022-05-26_pakrym_api-updates.change.md @@ -0,0 +1,13 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1363 +is_stripe_api_change: true +released_in_version: 20.124.0 +--- + +* Add support for `affirm_payments` and `link_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` +* Add support for `id_number_secondary` on `AccountCreateParams.individual`, `AccountUpdateParams.individual`, `PersonCreateParams`, `PersonUpdateParams`, `TokenCreateParams.account.individual`, and `TokenCreateParams.person` +* Add support for new value `affirm` on enum `checkout.SessionCreateParams.payment_method_types[]` +* Add support for `hosted_instructions_url` on `PaymentIntent.next_action.display_bank_transfer_instructions` +* Add support for `id_number_secondary_provided` on `Person` +* Add support for `card_issuing` on `treasury.FinancialAccountCreateParams.features`, `treasury.FinancialAccountUpdateFeaturesParams`, and `treasury.FinancialAccountUpdateParams.features` diff --git a/.hark/changes/2022-06-01_dcr_api-updates.change.md b/.hark/changes/2022-06-01_dcr_api-updates.change.md new file mode 100644 index 000000000000..7597ed648838 --- /dev/null +++ b/.hark/changes/2022-06-01_dcr_api-updates.change.md @@ -0,0 +1,13 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1366 +is_stripe_api_change: true +released_in_version: 20.125.0 +--- + +* Add support for `radar_options` on `ChargeCreateParams`, `Charge`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` +* Add support for `account_holder_name`, `account_number`, `account_type`, `bank_code`, `bank_name`, `branch_code`, and `branch_name` on `FundingInstructions.bank_transfer.financial_addresses[].zengin` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].zengin` +* Add support for new values `en-AU` and `en-NZ` on enums `OrderCreateParams.payment.settings.payment_method_options.klarna.preferred_locale`, `OrderUpdateParams.payment.settings.payment_method_options.klarna.preferred_locale`, `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale` +* Change type of `Order.payment.settings.payment_method_options.customer_balance.bank_transfer.type` and `PaymentIntent.payment_method_options.customer_balance.bank_transfer.type` from `enum` to `literal('jp_bank_transfer')` +* Add support for `network` on `SetupIntent.payment_method_options.card` +* Add support for new value `simulated_wisepos_e` on enum `terminal.ReaderListParams.device_type` diff --git a/.hark/changes/2022-06-02_pakrym_api-updates.change.md b/.hark/changes/2022-06-02_pakrym_api-updates.change.md new file mode 100644 index 000000000000..0b8736b6d964 --- /dev/null +++ b/.hark/changes/2022-06-02_pakrym_api-updates.change.md @@ -0,0 +1,10 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1367 +is_stripe_api_change: true +released_in_version: 20.126.0 +--- + +* Add support for `create` test helper on `ReceivedCredit`. +* Add support for `create` test helper on `ReceivedDebit`. +* Deprecates the ability to directly create instances of inner `TestHelper` classes. diff --git a/.hark/changes/2022-06-08_pakrym_api-updates.change.md b/.hark/changes/2022-06-08_pakrym_api-updates.change.md new file mode 100644 index 000000000000..e7e08d515fe6 --- /dev/null +++ b/.hark/changes/2022-06-08_pakrym_api-updates.change.md @@ -0,0 +1,12 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1369 +is_stripe_api_change: true +released_in_version: 20.127.0 +--- + +* Add support for `affirm`, `bancontact`, `card`, `ideal`, `p24`, and `sofort` on `Checkout.Session.payment_method_options` and `checkout.SessionCreateParams.payment_method_options` +* Add support for `afterpay_clearpay`, `au_becs_debit`, `bacs_debit`, `eps`, `fpx`, `giropay`, `grabpay`, `klarna`, `paynow`, and `sepa_debit` on `checkout.SessionCreateParams.payment_method_options` +* Add support for `setup_future_usage` on `Checkout.Session.payment_method_options.acss_debit`, `Checkout.Session.payment_method_options.afterpay_clearpay`, `Checkout.Session.payment_method_options.alipay`, `Checkout.Session.payment_method_options.au_becs_debit`, `Checkout.Session.payment_method_options.bacs_debit`, `Checkout.Session.payment_method_options.boleto`, `Checkout.Session.payment_method_options.eps`, `Checkout.Session.payment_method_options.fpx`, `Checkout.Session.payment_method_options.giropay`, `Checkout.Session.payment_method_options.grabpay`, `Checkout.Session.payment_method_options.klarna`, `Checkout.Session.payment_method_options.konbini`, `Checkout.Session.payment_method_options.oxxo`, `Checkout.Session.payment_method_options.paynow`, `Checkout.Session.payment_method_options.sepa_debit`, `Checkout.Session.payment_method_options.us_bank_account`, `checkout.SessionCreateParams.payment_method_options.acss_debit`, `checkout.SessionCreateParams.payment_method_options.alipay`, `checkout.SessionCreateParams.payment_method_options.boleto`, `checkout.SessionCreateParams.payment_method_options.konbini`, `checkout.SessionCreateParams.payment_method_options.oxxo`, `checkout.SessionCreateParams.payment_method_options.us_bank_account`, and `checkout.SessionCreateParams.payment_method_options.wechat_pay` +* Add support for `attach_to_self` on `SetupAttempt`, `SetupIntentCreateParams`, `SetupIntentListParams`, and `SetupIntentUpdateParams` +* Add support for `flow_directions` on `SetupAttempt`, `SetupIntentCreateParams`, and `SetupIntentUpdateParams` diff --git a/.hark/changes/2022-06-09_pakrym_api-updates.change.md b/.hark/changes/2022-06-09_pakrym_api-updates.change.md new file mode 100644 index 000000000000..0540cba10c93 --- /dev/null +++ b/.hark/changes/2022-06-09_pakrym_api-updates.change.md @@ -0,0 +1,15 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1370 +is_stripe_api_change: true +released_in_version: 20.128.0 +--- + +* Add support for `treasury` on `Account.settings`, `AccountCreateParams.settings`, and `AccountUpdateParams.settings` +* Add support for `rendering_options` on `CustomerCreateParams.invoice_settings` and `CustomerUpdateParams.invoice_settings` +* Add support for `eu_bank_transfer` on `CustomerCreateFundingInstructionsParams.bank_transfer`, `Invoice.payment_settings.payment_method_options.customer_balance.bank_transfer`, `InvoiceCreateParams.payment_settings.payment_method_options.customer_balance.bank_transfer`, `InvoiceUpdateParams.payment_settings.payment_method_options.customer_balance.bank_transfer`, `Order.payment.settings.payment_method_options.customer_balance.bank_transfer`, `OrderCreateParams.payment.settings.payment_method_options.customer_balance.bank_transfer`, `OrderUpdateParams.payment.settings.payment_method_options.customer_balance.bank_transfer`, `PaymentIntent.payment_method_options.customer_balance.bank_transfer`, `PaymentIntentConfirmParams.payment_method_options.customer_balance.bank_transfer`, `PaymentIntentCreateParams.payment_method_options.customer_balance.bank_transfer`, `PaymentIntentUpdateParams.payment_method_options.customer_balance.bank_transfer`, `Subscription.payment_settings.payment_method_options.customer_balance.bank_transfer`, `SubscriptionCreateParams.payment_settings.payment_method_options.customer_balance.bank_transfer`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.customer_balance.bank_transfer` +* Change type of `CustomerCreateFundingInstructionsParams.bank_transfer.requested_address_types[]` from `literal('zengin')` to `enum('iban'|'sort_code'|'spei'|'zengin')` +* Change type of `CustomerCreateFundingInstructionsParams.bank_transfer.type`, `Order.payment.settings.payment_method_options.customer_balance.bank_transfer.type`, `OrderCreateParams.payment.settings.payment_method_options.customer_balance.bank_transfer.type`, `OrderUpdateParams.payment.settings.payment_method_options.customer_balance.bank_transfer.type`, `PaymentIntent.next_action.display_bank_transfer_instructions.type`, `PaymentIntent.payment_method_options.customer_balance.bank_transfer.type`, `PaymentIntentConfirmParams.payment_method_options.customer_balance.bank_transfer.type`, `PaymentIntentCreateParams.payment_method_options.customer_balance.bank_transfer.type`, and `PaymentIntentUpdateParams.payment_method_options.customer_balance.bank_transfer.type` from `literal('jp_bank_transfer')` to `enum('eu_bank_transfer'|'gb_bank_transfer'|'jp_bank_transfer'|'mx_bank_transfer')` +* Add support for `iban`, `sort_code`, and `spei` on `FundingInstructions.bank_transfer.financial_addresses[]` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[]` +* Change type of `Order.payment.settings.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `OrderCreateParams.payment.settings.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `OrderUpdateParams.payment.settings.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntent.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntentConfirmParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntentCreateParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, and `PaymentIntentUpdateParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]` from `literal('zengin')` to `enum` +* Add support for `custom_unit_amount` on `PriceCreateParams` and `Price` diff --git a/.hark/changes/2022-06-13_dcr_update-readme-example.change.md b/.hark/changes/2022-06-13_dcr_update-readme-example.change.md new file mode 100644 index 000000000000..4581c81a234d --- /dev/null +++ b/.hark/changes/2022-06-13_dcr_update-readme-example.change.md @@ -0,0 +1,5 @@ +--- +title: Update readme example to use typed params. +pr_url: https://github.com/stripe/stripe-java/pull/1372 +released_in_version: 20.129.0 +--- diff --git a/.hark/changes/2022-06-14_pakrym_trigger-workflows-beta.change.md b/.hark/changes/2022-06-14_pakrym_trigger-workflows-beta.change.md new file mode 100644 index 000000000000..83427d004b19 --- /dev/null +++ b/.hark/changes/2022-06-14_pakrym_trigger-workflows-beta.change.md @@ -0,0 +1,5 @@ +--- +title: Trigger workflows on beta branches +pr_url: https://github.com/stripe/stripe-java/pull/1373 +released_in_version: 20.129.0 +--- diff --git a/.hark/changes/2022-06-17_kamil_api-updates.change.md b/.hark/changes/2022-06-17_kamil_api-updates.change.md new file mode 100644 index 000000000000..3990a1d80e2b --- /dev/null +++ b/.hark/changes/2022-06-17_kamil_api-updates.change.md @@ -0,0 +1,13 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1375 +is_stripe_api_change: true +released_in_version: 20.129.0 +--- + +* Add support for `fund_cash_balance` test helper method on resource `Customer` +* Add support for `statement_descriptor_prefix_kana` and `statement_descriptor_prefix_kanji` on `Account.settings.card_payments`, `Account.settings.payments`, `AccountCreateParams.settings.card_payments`, and `AccountUpdateParams.settings.card_payments` +* Add support for `statement_descriptor_suffix_kana` and `statement_descriptor_suffix_kanji` on `Checkout.Session.payment_method_options.card`, `checkout.SessionCreateParams.payment_method_options.card`, `PaymentIntent.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntentCreateParams.payment_method_options.card`, and `PaymentIntentUpdateParams.payment_method_options.card` +* Add support for `total_excluding_tax` on `CreditNote` +* Change type of `CustomerCreateParams.invoice_settings.rendering_options` and `CustomerUpdateParams.invoice_settings.rendering_options` from `rendering_options_param` to `emptyStringable(rendering_options_param)` +* Add support for `rendering_options` on `Customer.invoice_settings` and `Invoice` diff --git a/.hark/changes/2022-06-17_remi_document-how-access.change.md b/.hark/changes/2022-06-17_remi_document-how-access.change.md new file mode 100644 index 000000000000..3a42dae9dba3 --- /dev/null +++ b/.hark/changes/2022-06-17_remi_document-how-access.change.md @@ -0,0 +1,5 @@ +--- +title: Document how to access unsupported parameters and properties +pr_url: https://github.com/stripe/stripe-java/pull/1376 +released_in_version: 20.130.0 +--- diff --git a/.hark/changes/2022-06-22_pakrym_use-generated-api.change.md b/.hark/changes/2022-06-22_pakrym_use-generated-api.change.md new file mode 100644 index 000000000000..40867dda9e2d --- /dev/null +++ b/.hark/changes/2022-06-22_pakrym_use-generated-api.change.md @@ -0,0 +1,5 @@ +--- +title: Use the generated API version +pr_url: https://github.com/stripe/stripe-java/pull/1379 +released_in_version: 20.130.0 +--- diff --git a/.hark/changes/2022-06-23_dcr_api-updates.change.md b/.hark/changes/2022-06-23_dcr_api-updates.change.md new file mode 100644 index 000000000000..00f41c405039 --- /dev/null +++ b/.hark/changes/2022-06-23_dcr_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1380 +is_stripe_api_change: true +released_in_version: 20.130.0 +--- + +* Add support for `capture_method` on `PaymentIntentConfirmParams` and `PaymentIntentUpdateParams` diff --git a/.hark/changes/2022-06-23_dcr_api-updates2.change.md b/.hark/changes/2022-06-23_dcr_api-updates2.change.md new file mode 100644 index 000000000000..948b31e239f1 --- /dev/null +++ b/.hark/changes/2022-06-23_dcr_api-updates2.change.md @@ -0,0 +1,20 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1378 +is_stripe_api_change: true +released_in_version: 20.130.0 +--- + +* Add support for `promptpay_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` +* Add support for `promptpay` on `Charge.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` +* Add support for new value `promptpay` on enum `checkout.SessionCreateParams.payment_method_types[]` +* Add support for `subtotal_excluding_tax` on `CreditNote` and `Invoice` +* Add support for `amount_excluding_tax` and `unit_amount_excluding_tax` on `CreditNoteLineItem` and `InvoiceLineItem` +* Add support for new value `promptpay` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` +* Add support for `rendering_options` on `InvoiceCreateParams` and `InvoiceUpdateParams` +* Add support for new value `promptpay` on enums `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` +* Add support for `total_excluding_tax` on `Invoice` +* Add support for `automatic_payment_methods` on `Order.payment.settings` +* Add support for new value `promptpay` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` +* Add support for `promptpay_display_qr_code` on `PaymentIntent.next_action` +* Add support for new value `promptpay` on enum `PaymentMethodCreateParams.type` diff --git a/.hark/changes/2022-06-29_dcr_api-updates.change.md b/.hark/changes/2022-06-29_dcr_api-updates.change.md new file mode 100644 index 000000000000..bcb4997476f0 --- /dev/null +++ b/.hark/changes/2022-06-29_dcr_api-updates.change.md @@ -0,0 +1,10 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1384 +is_stripe_api_change: true +released_in_version: 20.131.0 +--- + +* Add support for `deliver_card`, `fail_card`, `return_card`, and `ship_card` test helper methods on resource `Issuing.Card` +* Change type of `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` from `literal('card')` to `enum` +* Add support for `hosted_regulatory_receipt_url` on `Treasury.ReceivedCredit` and `Treasury.ReceivedDebit` diff --git a/.hark/changes/2022-07-05_pakrym_support-serializing-nested.change.md b/.hark/changes/2022-07-05_pakrym_support-serializing-nested.change.md new file mode 100644 index 000000000000..f0dff9f6f7e0 --- /dev/null +++ b/.hark/changes/2022-07-05_pakrym_support-serializing-nested.change.md @@ -0,0 +1,5 @@ +--- +title: Support serializing nested objects in map +pr_url: https://github.com/stripe/stripe-java/pull/1386 +released_in_version: 20.132.0 +--- diff --git a/.hark/changes/2022-07-06_pakrym_api-updates.change.md b/.hark/changes/2022-07-06_pakrym_api-updates.change.md new file mode 100644 index 000000000000..194448ce0a2e --- /dev/null +++ b/.hark/changes/2022-07-06_pakrym_api-updates.change.md @@ -0,0 +1,10 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1387 +is_stripe_api_change: true +released_in_version: 20.132.0 +--- + +* Add support for `customer` on `checkout.SessionListParams` and `RefundCreateParams` +* Add support for `currency` and `origin` on `RefundCreateParams` +* Add support for new values `financial_connections.account.created`, `financial_connections.account.deactivated`, `financial_connections.account.disconnected`, `financial_connections.account.reactivated`, and `financial_connections.account.refreshed_balance` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` diff --git a/.hark/changes/2022-07-07_pakrym_api-updates.change.md b/.hark/changes/2022-07-07_pakrym_api-updates.change.md new file mode 100644 index 000000000000..d8a7d9896b83 --- /dev/null +++ b/.hark/changes/2022-07-07_pakrym_api-updates.change.md @@ -0,0 +1,11 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1388 +is_stripe_api_change: true +released_in_version: 20.132.0 +--- + +* Add support for `currency` on `checkout.SessionCreateParams`, `InvoiceUpcomingLinesParams`, `InvoiceUpcomingParams`, `PaymentLinkCreateParams`, `SubscriptionCreateParams`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.phases[]`, and `Subscription` +* Add support for `currency_options` on `checkout.SessionCreateParams.shipping_options[].shipping_rate_data.fixed_amount`, `CouponCreateParams`, `CouponUpdateParams`, `Coupon`, `OrderCreateParams.shipping_cost.shipping_rate_data.fixed_amount`, `OrderUpdateParams.shipping_cost.shipping_rate_data.fixed_amount`, `PriceCreateParams`, `PriceUpdateParams`, `Price`, `ProductCreateParams.default_price_data`, `PromotionCode.restrictions`, `PromotionCodeCreateParams.restrictions`, `ShippingRate.fixed_amount`, and `ShippingRateCreateParams.fixed_amount` +* Add support for `restrictions` on `PromotionCodeUpdateParams` +* Add support for `fixed_amount` and `tax_behavior` on `ShippingRateUpdateParams` diff --git a/.hark/changes/2022-07-12_yejia_api-updates.change.md b/.hark/changes/2022-07-12_yejia_api-updates.change.md new file mode 100644 index 000000000000..e2a65ab4eca5 --- /dev/null +++ b/.hark/changes/2022-07-12_yejia_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1390 +is_stripe_api_change: true +released_in_version: 20.133.0 +--- + +* Add support for `customer_details` on `checkout.SessionListParams` diff --git a/.hark/changes/2022-07-18_pakrym_api-updates.change.md b/.hark/changes/2022-07-18_pakrym_api-updates.change.md new file mode 100644 index 000000000000..767028ce9b55 --- /dev/null +++ b/.hark/changes/2022-07-18_pakrym_api-updates.change.md @@ -0,0 +1,15 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1391 +is_stripe_api_change: true +released_in_version: 20.134.0 +--- + +* Add support for `blik_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` +* Add support for `blik` on `Charge.payment_method_details`, `Mandate.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_data`, `SetupIntentCreateParams.payment_method_options`, `SetupIntentUpdateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_options` +* Change type of `Checkout.Session.consent_collection.promotions`, `checkout.SessionCreateParams.consent_collection.promotions`, `PaymentLink.consent_collection.promotions`, and `PaymentLinkCreateParams.consent_collection.promotions` from `literal('auto')` to `enum('auto'|'none')` +* Add support for new value `blik` on enum `checkout.SessionCreateParams.payment_method_types[]` +* Add support for new value `blik` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` +* Add support for new value `blik` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` +* Add support for new value `blik` on enums `PaymentLinkCreateParams.payment_method_types[]` and `PaymentLinkUpdateParams.payment_method_types[]` +* Add support for new value `blik` on enum `PaymentMethodCreateParams.type` diff --git a/.hark/changes/2022-07-25_dcr_api-updates.change.md b/.hark/changes/2022-07-25_dcr_api-updates.change.md new file mode 100644 index 000000000000..65a4ae297ec8 --- /dev/null +++ b/.hark/changes/2022-07-25_dcr_api-updates.change.md @@ -0,0 +1,12 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1402 +is_stripe_api_change: true +released_in_version: 20.135.0 +--- + +* Add support for `installments` on `Checkout.Session.payment_method_options.card`, `checkout.SessionCreateParams.payment_method_options.card`, `Invoice.payment_settings.payment_method_options.card`, `InvoiceCreateParams.payment_settings.payment_method_options.card`, and `InvoiceUpdateParams.payment_settings.payment_method_options.card` +* Add support for `default_currency` and `invoice_credit_balance` on `Customer` +* Add support for `currency` on `InvoiceCreateParams` +* Add support for `default_mandate` on `Invoice.payment_settings`, `InvoiceCreateParams.payment_settings`, and `InvoiceUpdateParams.payment_settings` +* Add support for `mandate` on `InvoicePayParams` diff --git a/.hark/changes/2022-07-26_dcr_api-updates.change.md b/.hark/changes/2022-07-26_dcr_api-updates.change.md new file mode 100644 index 000000000000..5d85342cd516 --- /dev/null +++ b/.hark/changes/2022-07-26_dcr_api-updates.change.md @@ -0,0 +1,10 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1406 +is_stripe_api_change: true +released_in_version: 20.136.0 +--- + +* Add support for `customer_balance` on `Checkout.Session.payment_method_options` and `checkout.SessionCreateParams.payment_method_options` +* Add support for new value `customer_balance` on enum `checkout.SessionCreateParams.payment_method_types[]` +* Add support for new values `en-CA` and `fr-CA` on enums `OrderCreateParams.payment.settings.payment_method_options.klarna.preferred_locale`, `OrderUpdateParams.payment.settings.payment_method_options.klarna.preferred_locale`, `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale` diff --git a/.hark/changes/2022-07-26_dcr_chore-update-gson.change.md b/.hark/changes/2022-07-26_dcr_chore-update-gson.change.md new file mode 100644 index 000000000000..5fb44c6e5eda --- /dev/null +++ b/.hark/changes/2022-07-26_dcr_chore-update-gson.change.md @@ -0,0 +1,5 @@ +--- +title: "chore: Update gson version in README." +pr_url: https://github.com/stripe/stripe-java/pull/1405 +released_in_version: 20.136.0 +--- diff --git a/.hark/changes/2022-08-01_pakrym_next-major-release.change.md b/.hark/changes/2022-08-01_pakrym_next-major-release.change.md new file mode 100644 index 000000000000..b57110c642ca --- /dev/null +++ b/.hark/changes/2022-08-01_pakrym_next-major-release.change.md @@ -0,0 +1,6 @@ +--- +title: Next major release changes +pr_url: https://github.com/stripe/stripe-java/pull/1407 +is_stripe_api_change: true +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_pakrym_api-updates.change.md b/.hark/changes/2022-08-02_pakrym_api-updates.change.md new file mode 100644 index 000000000000..f2f560523a6b --- /dev/null +++ b/.hark/changes/2022-08-02_pakrym_api-updates.change.md @@ -0,0 +1,6 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1409 +is_stripe_api_change: true +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_unknown_add-apikeymissin.change.md b/.hark/changes/2022-08-02_unknown_add-apikeymissin.change.md new file mode 100644 index 000000000000..f19d2f4174f0 --- /dev/null +++ b/.hark/changes/2022-08-02_unknown_add-apikeymissin.change.md @@ -0,0 +1,5 @@ +--- +title: Add `ApiKeyMissingException`. +section: Added +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_unknown_add-shippingcost-shippingdeta.change.md b/.hark/changes/2022-08-02_unknown_add-shippingcost-shippingdeta.change.md new file mode 100644 index 000000000000..0c059609b0e9 --- /dev/null +++ b/.hark/changes/2022-08-02_unknown_add-shippingcost-shippingdeta.change.md @@ -0,0 +1,5 @@ +--- +title: Add `shippingCost`, `shippingDetails`, and `shippingOptions` properties to `checkout.Session` resource. +section: Added +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_unknown_add-support-new.change.md b/.hark/changes/2022-08-02_unknown_add-support-new.change.md new file mode 100644 index 000000000000..b97e0bc24389 --- /dev/null +++ b/.hark/changes/2022-08-02_unknown_add-support-new.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for new value `2022-08-01` on enum `WebhookEndpointCreateParams.api_version` +section: Added +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_unknown_add-support-shippingcost.change.md b/.hark/changes/2022-08-02_unknown_add-support-shippingcost.change.md new file mode 100644 index 000000000000..fdb888252710 --- /dev/null +++ b/.hark/changes/2022-08-02_unknown_add-support-shippingcost.change.md @@ -0,0 +1,5 @@ +--- +title: Add support for `shipping_cost` and `shipping_details` on `Checkout.Session` +section: Added +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_unknown_add-validate-field.change.md b/.hark/changes/2022-08-02_unknown_add-validate-field.change.md new file mode 100644 index 000000000000..53dc98f278d6 --- /dev/null +++ b/.hark/changes/2022-08-02_unknown_add-validate-field.change.md @@ -0,0 +1,5 @@ +--- +title: Add `validate` field to `CustomerCreateParams`. +section: Added +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_unknown_add-validate-field2.change.md b/.hark/changes/2022-08-02_unknown_add-validate-field2.change.md new file mode 100644 index 000000000000..da69a2d3a547 --- /dev/null +++ b/.hark/changes/2022-08-02_unknown_add-validate-field2.change.md @@ -0,0 +1,5 @@ +--- +title: Add `validate` field to `CustomerUpdateParams`. +section: Added +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_unknown_add-validate-field3.change.md b/.hark/changes/2022-08-02_unknown_add-validate-field3.change.md new file mode 100644 index 000000000000..8161264600de --- /dev/null +++ b/.hark/changes/2022-08-02_unknown_add-validate-field3.change.md @@ -0,0 +1,5 @@ +--- +title: Add `validate` field to `PaymentSourceCollectionCreateParams`. +section: Added +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_unknown_changed-cashbalance-retrieve.change.md b/.hark/changes/2022-08-02_unknown_changed-cashbalance-retrieve.change.md new file mode 100644 index 000000000000..5c9bcdecf197 --- /dev/null +++ b/.hark/changes/2022-08-02_unknown_changed-cashbalance-retrieve.change.md @@ -0,0 +1,6 @@ +--- +title: Changed `CashBalance.retrieve` method from an instance to a static. +semver_level: major +section: ⚠️ Changed +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_unknown_changed-type-businesstype.change.md b/.hark/changes/2022-08-02_unknown_changed-type-businesstype.change.md new file mode 100644 index 000000000000..36bc54bcf3df --- /dev/null +++ b/.hark/changes/2022-08-02_unknown_changed-type-businesstype.change.md @@ -0,0 +1,6 @@ +--- +title: Changed type of `businessType` field in `AccountCreateParams` from `Object` to `BusinessType` +semver_level: major +section: ⚠️ Changed +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_unknown_check-apikey-set.change.md b/.hark/changes/2022-08-02_unknown_check-apikey-set.change.md new file mode 100644 index 000000000000..08aff6d40d4f --- /dev/null +++ b/.hark/changes/2022-08-02_unknown_check-apikey-set.change.md @@ -0,0 +1,6 @@ +--- +title: Check that apiKey is set (either globally or via request options) in `StripeCollection.autoPagingIterable` and `StripeSearchResult.autoPagingIterable`, and throw an exception if it is not. +semver_level: major +section: ⚠️ Changed +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_unknown_cleaning-up-sdk.change.md b/.hark/changes/2022-08-02_unknown_cleaning-up-sdk.change.md new file mode 100644 index 000000000000..ee94810d9205 --- /dev/null +++ b/.hark/changes/2022-08-02_unknown_cleaning-up-sdk.change.md @@ -0,0 +1,4 @@ +--- +title: Cleaning up the SDK to remove deprecated/unused APIs and rename classes/methods/properties to sync with product APIs. Read more detailed description at https://github.com/stripe/stripe-java/wiki/Migration-guide-for-v21. +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_unknown_default-api-version.change.md b/.hark/changes/2022-08-02_unknown_default-api-version.change.md new file mode 100644 index 000000000000..d8c57f7b4ebc --- /dev/null +++ b/.hark/changes/2022-08-02_unknown_default-api-version.change.md @@ -0,0 +1,6 @@ +--- +title: Default API version changed to "2022-07-28". +semver_level: major +section: ⚠️ Changed +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_unknown_moving-use-new.change.md b/.hark/changes/2022-08-02_unknown_moving-use-new.change.md new file mode 100644 index 000000000000..94d5f8ea9d12 --- /dev/null +++ b/.hark/changes/2022-08-02_unknown_moving-use-new.change.md @@ -0,0 +1,4 @@ +--- +title: Moving to use the new API version "2022-08-01". To learn more about these changes to Stripe products, see https://docs.stripe.com/changelog/2022-08-01 +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_unknown_removed-cashbalance-retrievecash.change.md b/.hark/changes/2022-08-02_unknown_removed-cashbalance-retrievecash.change.md new file mode 100644 index 000000000000..f76609c23028 --- /dev/null +++ b/.hark/changes/2022-08-02_unknown_removed-cashbalance-retrievecash.change.md @@ -0,0 +1,6 @@ +--- +title: Removed `CashBalance.retrieveCashBalance` method. Prefer `CashBalance.retrieve`. +semver_level: major +section: ⚠️ Removed +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_unknown_removed-defaultcurre-property.change.md b/.hark/changes/2022-08-02_unknown_removed-defaultcurre-property.change.md new file mode 100644 index 000000000000..d073d4ceacac --- /dev/null +++ b/.hark/changes/2022-08-02_unknown_removed-defaultcurre-property.change.md @@ -0,0 +1,6 @@ +--- +title: Removed `defaultCurrency` property from `Customer` resource. Please use `Currency` property instead. +semver_level: major +section: ⚠️ Removed +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_unknown_removed-deprecated-alipayaccoun.change.md b/.hark/changes/2022-08-02_unknown_removed-deprecated-alipayaccoun.change.md new file mode 100644 index 000000000000..657edb91b954 --- /dev/null +++ b/.hark/changes/2022-08-02_unknown_removed-deprecated-alipayaccoun.change.md @@ -0,0 +1,6 @@ +--- +title: Removed deprecated `AlipayAccount` and related classes. +semver_level: major +section: ⚠️ Removed +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_unknown_removed-deprecated-bitcoinrecei.change.md b/.hark/changes/2022-08-02_unknown_removed-deprecated-bitcoinrecei.change.md new file mode 100644 index 000000000000..9f684cf1217f --- /dev/null +++ b/.hark/changes/2022-08-02_unknown_removed-deprecated-bitcoinrecei.change.md @@ -0,0 +1,6 @@ +--- +title: Removed deprecated `BitcoinReceiver` and related classes. +semver_level: major +section: ⚠️ Removed +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_unknown_removed-deprecated-bitcointrans.change.md b/.hark/changes/2022-08-02_unknown_removed-deprecated-bitcointrans.change.md new file mode 100644 index 000000000000..1f4e14beb88d --- /dev/null +++ b/.hark/changes/2022-08-02_unknown_removed-deprecated-bitcointrans.change.md @@ -0,0 +1,6 @@ +--- +title: Removed deprecated `BitcoinTransaction` and related classes. +semver_level: major +section: ⚠️ Removed +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_unknown_removed-deprecated-card.change.md b/.hark/changes/2022-08-02_unknown_removed-deprecated-card.change.md new file mode 100644 index 000000000000..f333891b7f95 --- /dev/null +++ b/.hark/changes/2022-08-02_unknown_removed-deprecated-card.change.md @@ -0,0 +1,6 @@ +--- +title: Removed deprecated `Card.recipient` property. +semver_level: major +section: ⚠️ Removed +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_unknown_removed-deprecated-charge.change.md b/.hark/changes/2022-08-02_unknown_removed-deprecated-charge.change.md new file mode 100644 index 000000000000..de17af7e3de6 --- /dev/null +++ b/.hark/changes/2022-08-02_unknown_removed-deprecated-charge.change.md @@ -0,0 +1,6 @@ +--- +title: Removed deprecated `Charge.order` property. +semver_level: major +section: ⚠️ Removed +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_unknown_removed-deprecated-issuerfraudr.change.md b/.hark/changes/2022-08-02_unknown_removed-deprecated-issuerfraudr.change.md new file mode 100644 index 000000000000..4a85cd6eae12 --- /dev/null +++ b/.hark/changes/2022-08-02_unknown_removed-deprecated-issuerfraudr.change.md @@ -0,0 +1,6 @@ +--- +title: Removed deprecated `IssuerFraudRecord` and related classes. +semver_level: major +section: ⚠️ Removed +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_unknown_removed-deprecated-loginlink.change.md b/.hark/changes/2022-08-02_unknown_removed-deprecated-loginlink.change.md new file mode 100644 index 000000000000..2c2ec8161073 --- /dev/null +++ b/.hark/changes/2022-08-02_unknown_removed-deprecated-loginlink.change.md @@ -0,0 +1,6 @@ +--- +title: Removed deprecated `LoginLink.redirectUrl` property. +semver_level: major +section: ⚠️ Removed +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_unknown_removed-deprecated-order.change.md b/.hark/changes/2022-08-02_unknown_removed-deprecated-order.change.md new file mode 100644 index 000000000000..4e8473f8fb99 --- /dev/null +++ b/.hark/changes/2022-08-02_unknown_removed-deprecated-order.change.md @@ -0,0 +1,6 @@ +--- +title: Removed deprecated `Order` and related classes. +semver_level: major +section: ⚠️ Removed +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_unknown_removed-deprecated-recipient.change.md b/.hark/changes/2022-08-02_unknown_removed-deprecated-recipient.change.md new file mode 100644 index 000000000000..64db72f66d7e --- /dev/null +++ b/.hark/changes/2022-08-02_unknown_removed-deprecated-recipient.change.md @@ -0,0 +1,6 @@ +--- +title: Removed deprecated `Recipient` and related classes. +semver_level: major +section: ⚠️ Removed +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_unknown_removed-deprecated-threedsecure.change.md b/.hark/changes/2022-08-02_unknown_removed-deprecated-threedsecure.change.md new file mode 100644 index 000000000000..65898c5d5f7a --- /dev/null +++ b/.hark/changes/2022-08-02_unknown_removed-deprecated-threedsecure.change.md @@ -0,0 +1,6 @@ +--- +title: Removed deprecated `ThreeDSecure` and related classes. +semver_level: major +section: ⚠️ Removed +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_unknown_removed-deprecated-treasuryrece.change.md b/.hark/changes/2022-08-02_unknown_removed-deprecated-treasuryrece.change.md new file mode 100644 index 000000000000..9b4656e75210 --- /dev/null +++ b/.hark/changes/2022-08-02_unknown_removed-deprecated-treasuryrece.change.md @@ -0,0 +1,6 @@ +--- +title: Removed deprecated `TREASURY__RECEIVED_CREDIT__REVERSED`, `TREASURY__RECEIVED_DEBIT__CREATED`, `ORDER__UPDATED`, `ORDER_RETURN__CREATED`, `ORDER__PAYMENT_SUCCEEDED`, `TRANSFER__FAILED`, `TRANSFER__PAID` webhook events. +semver_level: major +section: ⚠️ Removed +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_unknown_removed-initiatingpa-class.change.md b/.hark/changes/2022-08-02_unknown_removed-initiatingpa-class.change.md new file mode 100644 index 000000000000..af1eab6dcea9 --- /dev/null +++ b/.hark/changes/2022-08-02_unknown_removed-initiatingpa-class.change.md @@ -0,0 +1,6 @@ +--- +title: Removed `InitiatingPaymentMethodDetails` class +semver_level: major +section: ⚠️ Removed +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_unknown_removed-instance-account.change.md b/.hark/changes/2022-08-02_unknown_removed-instance-account.change.md new file mode 100644 index 000000000000..bbd53e5343fb --- /dev/null +++ b/.hark/changes/2022-08-02_unknown_removed-instance-account.change.md @@ -0,0 +1,6 @@ +--- +title: Removed instance `Account.refresh`, `Account.disconnect` methods. +semver_level: major +section: ⚠️ Removed +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_unknown_removed-lineitem-getdeleted.change.md b/.hark/changes/2022-08-02_unknown_removed-lineitem-getdeleted.change.md new file mode 100644 index 000000000000..22ab7f7b1a4a --- /dev/null +++ b/.hark/changes/2022-08-02_unknown_removed-lineitem-getdeleted.change.md @@ -0,0 +1,6 @@ +--- +title: Removed `LineItem.getDeleted` method. The property was never populated and always had the default value of `false`. +semver_level: major +section: ⚠️ Removed +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_unknown_removed-public-constructors.change.md b/.hark/changes/2022-08-02_unknown_removed-public-constructors.change.md new file mode 100644 index 000000000000..7df3dff80c01 --- /dev/null +++ b/.hark/changes/2022-08-02_unknown_removed-public-constructors.change.md @@ -0,0 +1,6 @@ +--- +title: Removed public constructors from `TestHelper` inner classes and made them static. +semver_level: major +section: ⚠️ Removed +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_unknown_removed-rule-getdeleted.change.md b/.hark/changes/2022-08-02_unknown_removed-rule-getdeleted.change.md new file mode 100644 index 000000000000..aaeffb11f93b --- /dev/null +++ b/.hark/changes/2022-08-02_unknown_removed-rule-getdeleted.change.md @@ -0,0 +1,6 @@ +--- +title: Removed `Rule.getDeleted` method. The property was never populated and always had the default value of `false`. +semver_level: major +section: ⚠️ Removed +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_unknown_removed-shipping-shippingopti.change.md b/.hark/changes/2022-08-02_unknown_removed-shipping-shippingopti.change.md new file mode 100644 index 000000000000..8d733676c9b5 --- /dev/null +++ b/.hark/changes/2022-08-02_unknown_removed-shipping-shippingopti.change.md @@ -0,0 +1,6 @@ +--- +title: Removed `shipping` and `shippingOptions` properties from `checkout.Session` resource. Please use `shippingCost`, `shippingDetails`, and `shippingOptions` properties instead. +semver_level: major +section: ⚠️ Removed +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_unknown_removed-unused-billingdetai.change.md b/.hark/changes/2022-08-02_unknown_removed-unused-billingdetai.change.md new file mode 100644 index 000000000000..ed40328d9665 --- /dev/null +++ b/.hark/changes/2022-08-02_unknown_removed-unused-billingdetai.change.md @@ -0,0 +1,6 @@ +--- +title: Removed unused `BillingDetails` class. +semver_level: major +section: ⚠️ Removed +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_unknown_removed-unused-quotefinaliz.change.md b/.hark/changes/2022-08-02_unknown_removed-unused-quotefinaliz.change.md new file mode 100644 index 000000000000..a13eb8114d63 --- /dev/null +++ b/.hark/changes/2022-08-02_unknown_removed-unused-quotefinaliz.change.md @@ -0,0 +1,6 @@ +--- +title: Removed unused `QuoteFinalizeParams`, `QuoteCollectionListParams` classes. +semver_level: major +section: ⚠️ Removed +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-02_unknown_renamed-paymentinten-financialadd.change.md b/.hark/changes/2022-08-02_unknown_renamed-paymentinten-financialadd.change.md new file mode 100644 index 000000000000..5d72432e1ec7 --- /dev/null +++ b/.hark/changes/2022-08-02_unknown_renamed-paymentinten-financialadd.change.md @@ -0,0 +1,6 @@ +--- +title: Renamed `PaymentIntent.FinancialAddresses` class to `FinancialAddress`. +semver_level: major +section: ⚠️ Changed +released_in_version: 21.0.0 +--- diff --git a/.hark/changes/2022-08-05_pakrym_api-updates.change.md b/.hark/changes/2022-08-05_pakrym_api-updates.change.md new file mode 100644 index 000000000000..f42c147cae5c --- /dev/null +++ b/.hark/changes/2022-08-05_pakrym_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1412 +is_stripe_api_change: true +released_in_version: 21.1.0 +--- + +* Add support for `expires_at` on `Apps.Secret` and `apps.SecretCreateParams` diff --git a/.hark/changes/2022-08-09_yejia_api-updates.change.md b/.hark/changes/2022-08-09_yejia_api-updates.change.md new file mode 100644 index 000000000000..977de3e29113 --- /dev/null +++ b/.hark/changes/2022-08-09_yejia_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1413 +is_stripe_api_change: true +released_in_version: 21.1.0 +--- + +* Add support for `process_config` on `Terminal.Reader.action.process_payment_intent` diff --git a/.hark/changes/2022-08-09_yejia_stop-publishing-javadoc.change.md b/.hark/changes/2022-08-09_yejia_stop-publishing-javadoc.change.md new file mode 100644 index 000000000000..ad9e870eaa2d --- /dev/null +++ b/.hark/changes/2022-08-09_yejia_stop-publishing-javadoc.change.md @@ -0,0 +1,5 @@ +--- +title: Stop publishing javadoc for beta Java SDKs +pr_url: https://github.com/stripe/stripe-java/pull/1414 +released_in_version: 21.2.0 +--- diff --git a/.hark/changes/2022-08-11_anniel_api-updates.change.md b/.hark/changes/2022-08-11_anniel_api-updates.change.md new file mode 100644 index 000000000000..84c897a8604e --- /dev/null +++ b/.hark/changes/2022-08-11_anniel_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1416 +is_stripe_api_change: true +released_in_version: 21.2.0 +--- + +* Add support for `payment_method_collection` on `Checkout.Session`, `checkout.SessionCreateParams`, `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink` diff --git a/.hark/changes/2022-08-16_kamil_fix-latest-jar.change.md b/.hark/changes/2022-08-16_kamil_fix-latest-jar.change.md new file mode 100644 index 000000000000..3ab2e8617aa0 --- /dev/null +++ b/.hark/changes/2022-08-16_kamil_fix-latest-jar.change.md @@ -0,0 +1,5 @@ +--- +title: Fix latest JAR hyperlink and related tests +pr_url: https://github.com/stripe/stripe-java/pull/1418 +released_in_version: 21.3.0 +--- diff --git a/.hark/changes/2022-08-16_kamil_fix-makefile-indentation.change.md b/.hark/changes/2022-08-16_kamil_fix-makefile-indentation.change.md new file mode 100644 index 000000000000..a9b8b0715721 --- /dev/null +++ b/.hark/changes/2022-08-16_kamil_fix-makefile-indentation.change.md @@ -0,0 +1,5 @@ +--- +title: Fix makefile indentation and improve regex +pr_url: https://github.com/stripe/stripe-java/pull/1419 +released_in_version: 21.3.0 +--- diff --git a/.hark/changes/2022-08-17_kamil_fix-outdated-test.change.md b/.hark/changes/2022-08-17_kamil_fix-outdated-test.change.md new file mode 100644 index 000000000000..e71b4b30e9db --- /dev/null +++ b/.hark/changes/2022-08-17_kamil_fix-outdated-test.change.md @@ -0,0 +1,5 @@ +--- +title: Fix outdated test comment +pr_url: https://github.com/stripe/stripe-java/pull/1420 +released_in_version: 21.3.0 +--- diff --git a/.hark/changes/2022-08-17_ramya_add-support-section.change.md b/.hark/changes/2022-08-17_ramya_add-support-section.change.md new file mode 100644 index 000000000000..3efc3a93d05f --- /dev/null +++ b/.hark/changes/2022-08-17_ramya_add-support-section.change.md @@ -0,0 +1,5 @@ +--- +title: Add a support section to the readme +pr_url: https://github.com/stripe/stripe-java/pull/1421 +released_in_version: 21.3.0 +--- diff --git a/.hark/changes/2022-08-19_dcr_chore-remove-unused.change.md b/.hark/changes/2022-08-19_dcr_chore-remove-unused.change.md new file mode 100644 index 000000000000..028be789f7a0 --- /dev/null +++ b/.hark/changes/2022-08-19_dcr_chore-remove-unused.change.md @@ -0,0 +1,5 @@ +--- +title: "chore: Remove unused variable from SearchPagingIteratorTest." +pr_url: https://github.com/stripe/stripe-java/pull/1423 +released_in_version: 21.3.0 +--- diff --git a/.hark/changes/2022-08-23_dcr_api-updates.change.md b/.hark/changes/2022-08-23_dcr_api-updates.change.md new file mode 100644 index 000000000000..f44e40eea8c5 --- /dev/null +++ b/.hark/changes/2022-08-23_dcr_api-updates.change.md @@ -0,0 +1,15 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1422 +is_stripe_api_change: true +released_in_version: 21.3.0 +--- + +* Add support for new resource `CustomerCashBalanceTransaction` +* Remove support for value `paypal` from enums `OrderCreateParams.payment.settings.payment_method_types[]` and `OrderUpdateParams.payment.settings.payment_method_types[]` +* Add support for `currency` on `PaymentLink` +* Add support for `network` on `SetupIntentConfirmParams.payment_method_options.card`, `SetupIntentCreateParams.payment_method_options.card`, `SetupIntentUpdateParams.payment_method_options.card`, `Subscription.payment_settings.payment_method_options.card`, `SubscriptionCreateParams.payment_settings.payment_method_options.card`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.card` +* Change `treasury.OutboundTransferCreateParams.destination_payment_method` to be optional +* Add support for new value `customer_cash_balance_transaction.created` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` +* Change the return type of `Customer.fundCashBalance` test helper from `CustomerBalanceTransaction` to `CustomerCashBalanceTransaction`. + * This would generally be considered a breaking change, but we've worked with all existing users to migrate and are comfortable releasing this as a minor as it is solely a test helper method. This was essentially broken prior to this change. diff --git a/.hark/changes/2022-08-23_pakrym_add-beta-readme.change.md b/.hark/changes/2022-08-23_pakrym_add-beta-readme.change.md new file mode 100644 index 000000000000..756fc7706f28 --- /dev/null +++ b/.hark/changes/2022-08-23_pakrym_add-beta-readme.change.md @@ -0,0 +1,5 @@ +--- +title: Add beta readme.md section +pr_url: https://github.com/stripe/stripe-java/pull/1425 +released_in_version: 21.3.0 +--- diff --git a/.hark/changes/2022-08-24_anniel_show-test-coverage.change.md b/.hark/changes/2022-08-24_anniel_show-test-coverage.change.md new file mode 100644 index 000000000000..88c7c960a361 --- /dev/null +++ b/.hark/changes/2022-08-24_anniel_show-test-coverage.change.md @@ -0,0 +1,5 @@ +--- +title: Show test coverage in README +pr_url: https://github.com/stripe/stripe-java/pull/1428 +released_in_version: 21.4.0 +--- diff --git a/.hark/changes/2022-08-24_pakrym_update-readme-md.change.md b/.hark/changes/2022-08-24_pakrym_update-readme-md.change.md new file mode 100644 index 000000000000..7bbda6daae8c --- /dev/null +++ b/.hark/changes/2022-08-24_pakrym_update-readme-md.change.md @@ -0,0 +1,5 @@ +--- +title: Update README.md to clarify that API version can only be change in beta +pr_url: https://github.com/stripe/stripe-java/pull/1427 +released_in_version: 21.4.0 +--- diff --git a/.hark/changes/2022-08-26_anniel_update-coveralls-only.change.md b/.hark/changes/2022-08-26_anniel_update-coveralls-only.change.md new file mode 100644 index 000000000000..4b15bbfc3d29 --- /dev/null +++ b/.hark/changes/2022-08-26_anniel_update-coveralls-only.change.md @@ -0,0 +1,5 @@ +--- +title: Update coveralls to only run for one java version +pr_url: https://github.com/stripe/stripe-java/pull/1431 +released_in_version: 21.5.0 +--- diff --git a/.hark/changes/2022-08-26_dcr_api-updates.change.md b/.hark/changes/2022-08-26_dcr_api-updates.change.md new file mode 100644 index 000000000000..8c7c669fa402 --- /dev/null +++ b/.hark/changes/2022-08-26_dcr_api-updates.change.md @@ -0,0 +1,11 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1430 +is_stripe_api_change: true +released_in_version: 21.4.0 +--- + +* Add support for `login_page` on `BillingPortal.Configuration`, `billingportal.ConfigurationCreateParams`, and `billingportal.ConfigurationUpdateParams` +* Add support for `customs` and `phone_number` on `Issuing.Card.shipping` and `issuing.CardCreateParams.shipping` +* Add support for new value `deutsche_bank_ag` on enums `PaymentIntentConfirmParams.payment_method_data.eps.bank`, `PaymentIntentCreateParams.payment_method_data.eps.bank`, `PaymentIntentUpdateParams.payment_method_data.eps.bank`, `PaymentMethodCreateParams.eps.bank`, `SetupIntentConfirmParams.payment_method_data.eps.bank`, `SetupIntentCreateParams.payment_method_data.eps.bank`, and `SetupIntentUpdateParams.payment_method_data.eps.bank` +* Add support for `description` on `Quote.subscription_data`, `QuoteCreateParams.subscription_data`, `QuoteUpdateParams.subscription_data`, `SubscriptionSchedule.default_settings`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.default_settings`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.default_settings`, and `SubscriptionScheduleUpdateParams.phases[]` diff --git a/.hark/changes/2022-08-29_anniel_update-readme-badge.change.md b/.hark/changes/2022-08-29_anniel_update-readme-badge.change.md new file mode 100644 index 000000000000..89a5645b3402 --- /dev/null +++ b/.hark/changes/2022-08-29_anniel_update-readme-badge.change.md @@ -0,0 +1,5 @@ +--- +title: Update README badge +pr_url: https://github.com/stripe/stripe-java/pull/1432 +released_in_version: 21.5.0 +--- diff --git a/.hark/changes/2022-08-31_pakrym_api-updates.change.md b/.hark/changes/2022-08-31_pakrym_api-updates.change.md new file mode 100644 index 000000000000..cfd47ad682e7 --- /dev/null +++ b/.hark/changes/2022-08-31_pakrym_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1433 +is_stripe_api_change: true +released_in_version: 21.5.0 +--- + +* Add support for new values `de-CH`, `en-CH`, `en-PL`, `en-PT`, `fr-CH`, `it-CH`, `pl-PL`, and `pt-PT` on enums `OrderCreateParams.payment.settings.payment_method_options.klarna.preferred_locale`, `OrderUpdateParams.payment.settings.payment_method_options.klarna.preferred_locale`, `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale` +* Add support for `description` on `PaymentLink.subscription_data` and `PaymentLinkCreateParams.subscription_data` diff --git a/.hark/changes/2022-09-06_yejia_api-updates.change.md b/.hark/changes/2022-09-06_yejia_api-updates.change.md new file mode 100644 index 000000000000..7ae4365b0777 --- /dev/null +++ b/.hark/changes/2022-09-06_yejia_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1434 +is_stripe_api_change: true +released_in_version: 21.6.0 +--- + +* Add support for new value `terminal_reader_splashscreen` on enum `FileListParams.purpose` +* Fix `LineItem.Discount.discount` to reference the correct `Discount` class (`com.stripe.model.Discount`) diff --git a/.hark/changes/2022-09-09_yejia_api-updates.change.md b/.hark/changes/2022-09-09_yejia_api-updates.change.md new file mode 100644 index 000000000000..7093b9aedad0 --- /dev/null +++ b/.hark/changes/2022-09-09_yejia_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1435 +is_stripe_api_change: true +released_in_version: 21.7.0 +--- + +* Add support for `require_signature` on `Issuing.Card.shipping` and `issuing.CardCreateParams.shipping` diff --git a/.hark/changes/2022-09-15_kamil_api-updates.change.md b/.hark/changes/2022-09-15_kamil_api-updates.change.md new file mode 100644 index 000000000000..75d6aaeabd0c --- /dev/null +++ b/.hark/changes/2022-09-15_kamil_api-updates.change.md @@ -0,0 +1,17 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1444 +is_stripe_api_change: true +released_in_version: 21.8.0 +--- + +* Add support for `pix` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `checkout.SessionCreateParams.payment_method_options`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` +* Add support for new value `pix` on enum `checkout.SessionCreateParams.payment_method_types[]` +* Add support for new value `pix` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` +* Add support for `from_invoice` on `InvoiceCreateParams` and `Invoice` +* Add support for `latest_revision` on `Invoice` +* Add support for new value `pix` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` +* Add support for `pix_display_qr_code` on `PaymentIntent.next_action` +* Add support for new value `pix` on enums `PaymentLinkCreateParams.payment_method_types[]` and `PaymentLinkUpdateParams.payment_method_types[]` +* Add support for new value `pix` on enum `PaymentMethodCreateParams.type` +* Add support for `created` on `Treasury.CreditReversal` and `Treasury.DebitReversal` diff --git a/.hark/changes/2022-09-22_pakrym_api-updates.change.md b/.hark/changes/2022-09-22_pakrym_api-updates.change.md new file mode 100644 index 000000000000..6553fcc86783 --- /dev/null +++ b/.hark/changes/2022-09-22_pakrym_api-updates.change.md @@ -0,0 +1,13 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1445 +semver_level: major +is_stripe_api_change: true +released_in_version: 21.9.0 +--- + +* Add support for `terms_of_service` on `Checkout.Session.consent_collection`, `Checkout.Session.consent`, `checkout.SessionCreateParams.consent_collection`, `PaymentLink.consent_collection`, and `PaymentLinkCreateParams.consent_collection` +* ⚠️ Remove support for `plan` on `checkout.SessionCreateParams.payment_method_options.card.installments`. The property was mistakenly released and never worked. +* Add support for `amount` on `issuing.DisputeCreateParams` and `issuing.DisputeUpdateParams` +* Add support for `statement_descriptor` on `PaymentIntentIncrementAuthorizationParams` +* Add `upcomingLines` method to `Invoice` resource. diff --git a/.hark/changes/2022-09-29_yejia_api-updates.change.md b/.hark/changes/2022-09-29_yejia_api-updates.change.md new file mode 100644 index 000000000000..d75114874744 --- /dev/null +++ b/.hark/changes/2022-09-29_yejia_api-updates.change.md @@ -0,0 +1,10 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1448 +is_stripe_api_change: true +released_in_version: 21.10.0 +--- + +* Add support for `created` on `Checkout.Session` +* Add support for `setup_future_usage` on `PaymentIntent.payment_method_options.pix`, `PaymentIntentConfirmParams.payment_method_options.pix`, `PaymentIntentCreateParams.payment_method_options.pix`, and `PaymentIntentUpdateParams.payment_method_options.pix` +* Deprecate `SessionCreateParams.subscription_data.items` (use the `line_items` param instead). This will be removed in the next major version. diff --git a/.hark/changes/2022-10-04_kamil_set-jdk-17.change.md b/.hark/changes/2022-10-04_kamil_set-jdk-17.change.md new file mode 100644 index 000000000000..9075f83eb1f8 --- /dev/null +++ b/.hark/changes/2022-10-04_kamil_set-jdk-17.change.md @@ -0,0 +1,5 @@ +--- +title: Set JDK to 17 LTS +pr_url: https://github.com/stripe/stripe-java/pull/1450 +released_in_version: 21.11.0 +--- diff --git a/.hark/changes/2022-10-06_kamil_api-updates.change.md b/.hark/changes/2022-10-06_kamil_api-updates.change.md new file mode 100644 index 000000000000..c45e0ef65d9f --- /dev/null +++ b/.hark/changes/2022-10-06_kamil_api-updates.change.md @@ -0,0 +1,10 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1451 +is_stripe_api_change: true +released_in_version: 21.11.0 +--- + +* Add support for new value `bank_of_china` on enums `PaymentIntentConfirmParams.payment_method_data.fpx.bank`, `PaymentIntentCreateParams.payment_method_data.fpx.bank`, `PaymentIntentUpdateParams.payment_method_data.fpx.bank`, `PaymentMethodCreateParams.fpx.bank`, `SetupIntentConfirmParams.payment_method_data.fpx.bank`, `SetupIntentCreateParams.payment_method_data.fpx.bank`, and `SetupIntentUpdateParams.payment_method_data.fpx.bank` +* Add support for new values `America/Nuuk`, `Europe/Kyiv`, and `Pacific/Kanton` on enum `reporting.ReportRunCreateParams.parameters.timezone` +* Add support for `klarna` on `SetupAttempt.payment_method_details` diff --git a/.hark/changes/2022-10-12_anniel_removed-lineitem-product.change.md b/.hark/changes/2022-10-12_anniel_removed-lineitem-product.change.md new file mode 100644 index 000000000000..ac97ec56deb1 --- /dev/null +++ b/.hark/changes/2022-10-12_anniel_removed-lineitem-product.change.md @@ -0,0 +1,6 @@ +--- +title: Removed `LineItem.Product` property that was released by mistake. +pr_url: https://github.com/stripe/stripe-java/pull/1456 +semver_level: major +released_in_version: 22.0.0 +--- diff --git a/.hark/changes/2022-10-12_pakrym_inline-several-shared.change.md b/.hark/changes/2022-10-12_pakrym_inline-several-shared.change.md new file mode 100644 index 000000000000..b4b2e1c5cc79 --- /dev/null +++ b/.hark/changes/2022-10-12_pakrym_inline-several-shared.change.md @@ -0,0 +1,6 @@ +--- +title: Inline several "shared" classes for consistency +pr_url: https://github.com/stripe/stripe-java/pull/1455 +semver_level: major +released_in_version: 22.0.0 +--- diff --git a/.hark/changes/2022-10-13_richardm_api-updates.change.md b/.hark/changes/2022-10-13_richardm_api-updates.change.md new file mode 100644 index 000000000000..ee4e61f2eb05 --- /dev/null +++ b/.hark/changes/2022-10-13_richardm_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1458 +is_stripe_api_change: true +released_in_version: 21.12.0 +--- + +* Add support for `request_log_url` on `StripeError` +* Add support for `network_data` on `Issuing.Authorization` diff --git a/.hark/changes/2022-10-14_richardm_bugfix-don-t.change.md b/.hark/changes/2022-10-14_richardm_bugfix-don-t.change.md new file mode 100644 index 000000000000..4c6f3c3d5e83 --- /dev/null +++ b/.hark/changes/2022-10-14_richardm_bugfix-don-t.change.md @@ -0,0 +1,5 @@ +--- +title: "Bugfix: Don't require global API Key when API Key is propagated from list request" +pr_url: https://github.com/stripe/stripe-java/pull/1457 +released_in_version: 21.12.0 +--- diff --git a/.hark/changes/2022-10-17_anniel_removed-deprecated-sku.change.md b/.hark/changes/2022-10-17_anniel_removed-deprecated-sku.change.md new file mode 100644 index 000000000000..2edc92446253 --- /dev/null +++ b/.hark/changes/2022-10-17_anniel_removed-deprecated-sku.change.md @@ -0,0 +1,6 @@ +--- +title: Removed deprecated `Sku` resource +pr_url: https://github.com/stripe/stripe-java/pull/1459 +semver_level: major +released_in_version: 22.0.0 +--- diff --git a/.hark/changes/2022-10-20_richardm_api-updates.change.md b/.hark/changes/2022-10-20_richardm_api-updates.change.md new file mode 100644 index 000000000000..cc49050d7504 --- /dev/null +++ b/.hark/changes/2022-10-20_richardm_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1461 +is_stripe_api_change: true +released_in_version: 21.13.0 +--- + +* Add support for new values `jp_trn` and `ke_pin` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `OrderCreateParams.tax_details.tax_ids[].type`, `OrderUpdateParams.tax_details.tax_ids[].type`, and `TaxIdCreateParams.type` +* Add support for `tipping` on `Terminal.Reader.action.process_payment_intent.process_config` and `terminal.ReaderProcessPaymentIntentParams.process_config` diff --git a/.hark/changes/2022-11-02_kamil_api-updates.change.md b/.hark/changes/2022-11-02_kamil_api-updates.change.md new file mode 100644 index 000000000000..5b8a483f4fd8 --- /dev/null +++ b/.hark/changes/2022-11-02_kamil_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1466 +is_stripe_api_change: true +released_in_version: 21.14.0 +--- + +* Add support for `on_behalf_of` on `checkout.SessionCreateParams.subscription_data`, `SubscriptionCreateParams`, `SubscriptionSchedule.default_settings`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.default_settings`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.default_settings`, `SubscriptionScheduleUpdateParams.phases[]`, `SubscriptionUpdateParams`, and `Subscription` +* Add support for `tax_behavior` and `tax_code` on `InvoiceItemCreateParams`, `InvoiceItemUpdateParams`, `InvoiceUpcomingLinesParams.invoice_items[]`, and `InvoiceUpcomingParams.invoice_items[]` diff --git a/.hark/changes/2022-11-04_richardm_removed-requestoptio-getstripever.change.md b/.hark/changes/2022-11-04_richardm_removed-requestoptio-getstripever.change.md new file mode 100644 index 000000000000..831d5fc38b1f --- /dev/null +++ b/.hark/changes/2022-11-04_richardm_removed-requestoptio-getstripever.change.md @@ -0,0 +1,6 @@ +--- +title: Removed `RequestOptions.getStripeVersionOverride`, `RequestOptions.setStripeVersionOverride`, and `RequestOptions.clearStripeVersionOverride` +pr_url: https://github.com/stripe/stripe-java/pull/1464 +semver_level: major +released_in_version: 22.0.0 +--- diff --git a/.hark/changes/2022-11-07_pakrym_api-updates.change.md b/.hark/changes/2022-11-07_pakrym_api-updates.change.md new file mode 100644 index 000000000000..66b6852db13b --- /dev/null +++ b/.hark/changes/2022-11-07_pakrym_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1472 +is_stripe_api_change: true +released_in_version: 21.15.0 +--- + +* Add support for new values `eg_tin`, `ph_tin`, and `tr_tin` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `OrderCreateParams.tax_details.tax_ids[].type`, `OrderUpdateParams.tax_details.tax_ids[].type`, and `TaxIdCreateParams.type` +* Add support for `reason_message` on `Issuing.Authorization.request_history[]` diff --git a/.hark/changes/2022-11-07_richardm_removed-deprecated-ephemeralkey.change.md b/.hark/changes/2022-11-07_richardm_removed-deprecated-ephemeralkey.change.md new file mode 100644 index 000000000000..9fb534a8f7fd --- /dev/null +++ b/.hark/changes/2022-11-07_richardm_removed-deprecated-ephemeralkey.change.md @@ -0,0 +1,6 @@ +--- +title: Removed deprecated `EphemeralKey.associatedObjects` field. +pr_url: https://github.com/stripe/stripe-java/pull/1470 +semver_level: major +released_in_version: 22.0.0 +--- diff --git a/.hark/changes/2022-11-09_richardm_remove-support-tosshownanda.change.md b/.hark/changes/2022-11-09_richardm_remove-support-tosshownanda.change.md new file mode 100644 index 000000000000..13d44e98adf2 --- /dev/null +++ b/.hark/changes/2022-11-09_richardm_remove-support-tosshownanda.change.md @@ -0,0 +1,6 @@ +--- +title: Remove support for `tos_shown_and_accepted` on `checkout.SessionCreateParams.payment_method_options.paynow` +pr_url: https://github.com/stripe/stripe-java/pull/1473 +semver_level: major +released_in_version: 22.0.0 +--- diff --git a/.hark/changes/2022-11-09_richardm_removed-charges-property.change.md b/.hark/changes/2022-11-09_richardm_removed-charges-property.change.md new file mode 100644 index 000000000000..1e6acb736aad --- /dev/null +++ b/.hark/changes/2022-11-09_richardm_removed-charges-property.change.md @@ -0,0 +1,6 @@ +--- +title: Removed `Charges` property on `PaymentIntent` and replace it with `LatestCharge` +pr_url: https://github.com/stripe/stripe-java/pull/1473 +semver_level: major +released_in_version: 22.0.0 +--- diff --git a/.hark/changes/2022-11-09_richardm_removed-deprecated-amount.change.md b/.hark/changes/2022-11-09_richardm_removed-deprecated-amount.change.md new file mode 100644 index 000000000000..6470951e0333 --- /dev/null +++ b/.hark/changes/2022-11-09_richardm_removed-deprecated-amount.change.md @@ -0,0 +1,6 @@ +--- +title: Removed deprecated `Amount`, `Currency`, `Description`, `Images`, `Name` properties from `SessionCreateParams.LineItem` +pr_url: https://github.com/stripe/stripe-java/pull/1473 +semver_level: major +released_in_version: 22.0.0 +--- diff --git a/.hark/changes/2022-11-10_anniel_api-updates.change.md b/.hark/changes/2022-11-10_anniel_api-updates.change.md new file mode 100644 index 000000000000..45251834ff48 --- /dev/null +++ b/.hark/changes/2022-11-10_anniel_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1474 +semver_level: major +is_stripe_api_change: true +released_in_version: 22.0.0 +--- + +* ⚠️ Remove support for `tos_shown_and_accepted` on `checkout.SessionCreateParams.payment_method_options.paynow`. The property was mistakenly released and never worked. diff --git a/.hark/changes/2022-11-16_richardm_next-major-release.change.md b/.hark/changes/2022-11-16_richardm_next-major-release.change.md new file mode 100644 index 000000000000..c0b75bfc4b09 --- /dev/null +++ b/.hark/changes/2022-11-16_richardm_next-major-release.change.md @@ -0,0 +1,6 @@ +--- +title: Next major release changes +pr_url: https://github.com/stripe/stripe-java/pull/1471 +is_stripe_api_change: true +released_in_version: 22.0.0 +--- diff --git a/.hark/changes/2022-11-17_pakrym_api-updates.change.md b/.hark/changes/2022-11-17_pakrym_api-updates.change.md new file mode 100644 index 000000000000..87ee92f4a881 --- /dev/null +++ b/.hark/changes/2022-11-17_pakrym_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1480 +is_stripe_api_change: true +released_in_version: 22.1.0 +--- + +* Add support for `hosted_instructions_url` on `PaymentIntent.next_action.wechat_pay_display_qr_code` diff --git a/.hark/changes/2022-11-17_pakrym_api-updates2.change.md b/.hark/changes/2022-11-17_pakrym_api-updates2.change.md new file mode 100644 index 000000000000..2d4252dfe36d --- /dev/null +++ b/.hark/changes/2022-11-17_pakrym_api-updates2.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1479 +is_stripe_api_change: true +released_in_version: 22.1.0 +--- + +* Add support for `custom_text` on `Checkout.Session`, `checkout.SessionCreateParams`, `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink` +* Add support for `hosted_instructions_url` on `PaymentIntent.next_action.paynow_display_qr_code` diff --git a/.hark/changes/2022-12-06_richardm_api-updates.change.md b/.hark/changes/2022-12-06_richardm_api-updates.change.md new file mode 100644 index 000000000000..0a0e1b495a0c --- /dev/null +++ b/.hark/changes/2022-12-06_richardm_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1484 +is_stripe_api_change: true +released_in_version: 22.2.0 +--- + +* Add support for `flow_data` on `billingportal.SessionCreateParams` +* Add support for `flow` on `BillingPortal.Session` diff --git a/.hark/changes/2022-12-06_richardm_api-updates2.change.md b/.hark/changes/2022-12-06_richardm_api-updates2.change.md new file mode 100644 index 000000000000..8af1767989af --- /dev/null +++ b/.hark/changes/2022-12-06_richardm_api-updates2.change.md @@ -0,0 +1,11 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1483 +is_stripe_api_change: true +released_in_version: 22.2.0 +--- + +* Add support for `india_international_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` +* Add support for `invoice_creation` on `Checkout.Session` and `checkout.SessionCreateParams` +* Add support for `invoice` on `Checkout.Session` +* Add support for `metadata` on `SubscriptionSchedule.phases[].items[]`, `SubscriptionScheduleCreateParams.phases[].items[]`, and `SubscriptionScheduleUpdateParams.phases[].items[]` diff --git a/.hark/changes/2022-12-08_pakrym_api-updates.change.md b/.hark/changes/2022-12-08_pakrym_api-updates.change.md new file mode 100644 index 000000000000..79ed615e9d3b --- /dev/null +++ b/.hark/changes/2022-12-08_pakrym_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1487 +is_stripe_api_change: true +released_in_version: 22.3.0 +--- + +* Change `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type`. +* Added parameterless overload of `Customer.listPaymentMethods`. diff --git a/.hark/changes/2022-12-13_richardm_don-t-delombok.change.md b/.hark/changes/2022-12-13_richardm_don-t-delombok.change.md new file mode 100644 index 000000000000..7b5468c81911 --- /dev/null +++ b/.hark/changes/2022-12-13_richardm_don-t-delombok.change.md @@ -0,0 +1,5 @@ +--- +title: Don't delombok sources +pr_url: https://github.com/stripe/stripe-java/pull/1491 +released_in_version: 22.4.0 +--- diff --git a/.hark/changes/2022-12-21_richardm_replace-reflectionch-reflectionac.change.md b/.hark/changes/2022-12-21_richardm_replace-reflectionch-reflectionac.change.md new file mode 100644 index 000000000000..aa86a87f8c79 --- /dev/null +++ b/.hark/changes/2022-12-21_richardm_replace-reflectionch-reflectionac.change.md @@ -0,0 +1,5 @@ +--- +title: Replace ReflectionCheckingTypeAdapterFactory with a ReflectionAccessFilter +pr_url: https://github.com/stripe/stripe-java/pull/1496 +released_in_version: 22.4.0 +--- diff --git a/.hark/changes/2022-12-22_anniel_fix-publish-command.change.md b/.hark/changes/2022-12-22_anniel_fix-publish-command.change.md new file mode 100644 index 000000000000..c9e7e9714aad --- /dev/null +++ b/.hark/changes/2022-12-22_anniel_fix-publish-command.change.md @@ -0,0 +1,5 @@ +--- +title: Fix publish command +pr_url: https://github.com/stripe/stripe-java/pull/1499 +released_in_version: 22.5.0 +--- diff --git a/.hark/changes/2022-12-22_richardm_api-updates.change.md b/.hark/changes/2022-12-22_richardm_api-updates.change.md new file mode 100644 index 000000000000..7fe03d88d299 --- /dev/null +++ b/.hark/changes/2022-12-22_richardm_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1497 +is_stripe_api_change: true +released_in_version: 22.4.0 +--- + +* Add support for new value `merchant_default` on enums `CashBalanceUpdateParams.settings.reconciliation_mode`, `CustomerCreateParams.cash_balance.settings.reconciliation_mode`, and `CustomerUpdateParams.cash_balance.settings.reconciliation_mode` +* Add support for `using_merchant_default` on `CashBalance.settings` diff --git a/.hark/changes/2022-12-23_richardm_deprecate-apiresource-classurl.change.md b/.hark/changes/2022-12-23_richardm_deprecate-apiresource-classurl.change.md new file mode 100644 index 000000000000..3853c482ea3d --- /dev/null +++ b/.hark/changes/2022-12-23_richardm_deprecate-apiresource-classurl.change.md @@ -0,0 +1,7 @@ +--- +title: Deprecate ApiResource.classUrl, etc. +pr_url: https://github.com/stripe/stripe-java/pull/1500 +released_in_version: 22.5.0 +--- + +* Mark `ApiResource.className`, `ApiResource.singleClassUrl`, `ApiResource.classUrl`, `ApiResource.instanceUrl`, and `ApiResource.subresourceUrl` as deprecated diff --git a/.hark/changes/2022-12-29_richardm_solution-regarding-ability.change.md b/.hark/changes/2022-12-29_richardm_solution-regarding-ability.change.md new file mode 100644 index 000000000000..35224abd4814 --- /dev/null +++ b/.hark/changes/2022-12-29_richardm_solution-regarding-ability.change.md @@ -0,0 +1,5 @@ +--- +title: Solution For "Regarding ability to override stripe api url per API re… +pr_url: https://github.com/stripe/stripe-java/pull/1476 +released_in_version: 22.5.0 +--- diff --git a/.hark/changes/2023-01-04_richardm_add-fix-per.change.md b/.hark/changes/2023-01-04_richardm_add-fix-per.change.md new file mode 100644 index 000000000000..1f681cce73c8 --- /dev/null +++ b/.hark/changes/2023-01-04_richardm_add-fix-per.change.md @@ -0,0 +1,5 @@ +--- +title: Add fix for per-request ApiBase +pr_url: https://github.com/stripe/stripe-java/pull/1501 +released_in_version: 22.5.0 +--- diff --git a/.hark/changes/2023-01-05_anniel_api-updates.change.md b/.hark/changes/2023-01-05_anniel_api-updates.change.md new file mode 100644 index 000000000000..018b4847a9eb --- /dev/null +++ b/.hark/changes/2023-01-05_anniel_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1502 +is_stripe_api_change: true +released_in_version: 22.5.0 +--- + +* Add support for `card_issuing` on `Issuing.Cardholder.individual` diff --git a/.hark/changes/2023-01-11_richardm_bump-gson-2.change.md b/.hark/changes/2023-01-11_richardm_bump-gson-2.change.md new file mode 100644 index 000000000000..3734ef544045 --- /dev/null +++ b/.hark/changes/2023-01-11_richardm_bump-gson-2.change.md @@ -0,0 +1,5 @@ +--- +title: Bump Gson to 2.10.1 +pr_url: https://github.com/stripe/stripe-java/pull/1505 +released_in_version: 22.5.1 +--- diff --git a/.hark/changes/2023-01-19_pakrym_api-updates.change.md b/.hark/changes/2023-01-19_pakrym_api-updates.change.md new file mode 100644 index 000000000000..f08088ba95f6 --- /dev/null +++ b/.hark/changes/2023-01-19_pakrym_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1507 +is_stripe_api_change: true +released_in_version: 22.6.0 +--- + +* Add support for `verification_session` on `EphemeralKeyCreateParams` +* Add support for new values `refund.created` and `refund.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` diff --git a/.hark/changes/2023-01-26_anniel_api-updates.change.md b/.hark/changes/2023-01-26_anniel_api-updates.change.md new file mode 100644 index 000000000000..d48be1cc6f3e --- /dev/null +++ b/.hark/changes/2023-01-26_anniel_api-updates.change.md @@ -0,0 +1,8 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1510 +is_stripe_api_change: true +released_in_version: 22.7.0 +--- + +* Add support for new values `cs-CZ`, `el-GR`, `en-CZ`, and `en-GR` on enums `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale` diff --git a/.hark/changes/2023-02-02_richardm_api-updates.change.md b/.hark/changes/2023-02-02_richardm_api-updates.change.md new file mode 100644 index 000000000000..a0a473c903e6 --- /dev/null +++ b/.hark/changes/2023-02-02_richardm_api-updates.change.md @@ -0,0 +1,19 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1512 +is_stripe_api_change: true +released_in_version: 22.8.0 +--- + +* Add support for `resume` method on resource `Subscription` +* Add support for `payment_link` on `checkout.SessionListParams` +* Add support for `trial_settings` on `checkout.SessionCreateParams.subscription_data`, `SubscriptionCreateParams`, `SubscriptionUpdateParams`, and `Subscription` +* Add support for `shipping_cost` on `CreditNoteCreateParams`, `CreditNotePreviewLinesParams`, `CreditNotePreviewParams`, `CreditNote`, `InvoiceCreateParams`, `InvoiceUpdateParams`, and `Invoice` +* Add support for `amount_shipping` on `CreditNote` and `Invoice` +* Add support for `shipping_details` on `InvoiceCreateParams`, `InvoiceUpdateParams`, and `Invoice` +* Add support for `subscription_resume_at` on `InvoiceUpcomingLinesParams` and `InvoiceUpcomingParams` +* Change `issuing.CardholderCreateParams.individual.first_name`, `issuing.CardholderCreateParams.individual.last_name`, `issuing.CardholderUpdateParams.individual.first_name`, and `issuing.CardholderUpdateParams.individual.last_name` to be optional +* Add support for `invoice_creation` on `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink` +* Add support for new value `America/Ciudad_Juarez` on enum `reporting.ReportRunCreateParams.parameters.timezone` +* Add support for new value `paused` on enum `SubscriptionListParams.status` +* Add support for new values `customer.subscription.paused` and `customer.subscription.resumed` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` diff --git a/.hark/changes/2023-02-16_anniel_api-updates.change.md b/.hark/changes/2023-02-16_anniel_api-updates.change.md new file mode 100644 index 000000000000..411f660f5a6d --- /dev/null +++ b/.hark/changes/2023-02-16_anniel_api-updates.change.md @@ -0,0 +1,13 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1514 +is_stripe_api_change: true +released_in_version: 22.9.0 +--- + +* Add support for `refund_payment` method on resource `Terminal.Reader` +* Add support for new value `name` on enums `billingportal.ConfigurationCreateParams.features.customer_update.allowed_updates[]` and `billingportal.ConfigurationUpdateParams.features.customer_update.allowed_updates[]` +* Add support for `custom_fields` on `Checkout.Session`, `checkout.SessionCreateParams`, `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink` +* Add support for `interac_present` on `terminal.ReaderPresentPaymentMethodParams` +* Change type of `terminal.ReaderPresentPaymentMethodParams.type` from `literal('card_present')` to `enum('card_present'|'interac_present')` +* Add support for `refund_payment` on `Terminal.Reader.action` diff --git a/.hark/changes/2023-02-23_richardm_api-updates.change.md b/.hark/changes/2023-02-23_richardm_api-updates.change.md new file mode 100644 index 000000000000..6883d922c085 --- /dev/null +++ b/.hark/changes/2023-02-23_richardm_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1517 +is_stripe_api_change: true +released_in_version: 22.10.0 +--- + +* Add support for new value `yoursafe` on enums `PaymentIntentConfirmParams.payment_method_data.ideal.bank`, `PaymentIntentCreateParams.payment_method_data.ideal.bank`, `PaymentIntentUpdateParams.payment_method_data.ideal.bank`, `PaymentMethodCreateParams.ideal.bank`, `SetupIntentConfirmParams.payment_method_data.ideal.bank`, `SetupIntentCreateParams.payment_method_data.ideal.bank`, and `SetupIntentUpdateParams.payment_method_data.ideal.bank` +* Add support for new value `igst` on enums `TaxRateCreateParams.tax_type` and `TaxRateUpdateParams.tax_type` diff --git a/.hark/changes/2023-03-02_pakrym_api-updates.change.md b/.hark/changes/2023-03-02_pakrym_api-updates.change.md new file mode 100644 index 000000000000..d85282a80acc --- /dev/null +++ b/.hark/changes/2023-03-02_pakrym_api-updates.change.md @@ -0,0 +1,10 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1520 +is_stripe_api_change: true +released_in_version: 22.11.0 +--- + +* Add support for new values `electric_vehicle_charging`, `emergency_services_gcas_visa_use_only`, `government_licensed_horse_dog_racing_us_region_only`, `government_licensed_online_casions_online_gambling_us_region_only`, `government_owned_lotteries_non_us_region`, `government_owned_lotteries_us_region_only`, and `marketplaces` on enums `issuing.CardCreateParams.spending_controls.allowed_categories[]`, `issuing.CardCreateParams.spending_controls.blocked_categories[]`, `issuing.CardCreateParams.spending_controls.spending_limits[].categories[]`, `issuing.CardUpdateParams.spending_controls.allowed_categories[]`, `issuing.CardUpdateParams.spending_controls.blocked_categories[]`, `issuing.CardUpdateParams.spending_controls.spending_limits[].categories[]`, `issuing.CardholderCreateParams.spending_controls.allowed_categories[]`, `issuing.CardholderCreateParams.spending_controls.blocked_categories[]`, `issuing.CardholderCreateParams.spending_controls.spending_limits[].categories[]`, `issuing.CardholderUpdateParams.spending_controls.allowed_categories[]`, `issuing.CardholderUpdateParams.spending_controls.blocked_categories[]`, and `issuing.CardholderUpdateParams.spending_controls.spending_limits[].categories[]` +* Add support for `reconciliation_status` on `Payout` +* Add support for new value `lease_tax` on enums `TaxRateCreateParams.tax_type` and `TaxRateUpdateParams.tax_type` diff --git a/.hark/changes/2023-03-09_anniel_api-updates.change.md b/.hark/changes/2023-03-09_anniel_api-updates.change.md new file mode 100644 index 000000000000..56c9f51eded4 --- /dev/null +++ b/.hark/changes/2023-03-09_anniel_api-updates.change.md @@ -0,0 +1,9 @@ +--- +title: API Updates +pr_url: https://github.com/stripe/stripe-java/pull/1523 +is_stripe_api_change: true +released_in_version: 22.12.0 +--- + +* Add support for `card_issuing` on `issuing.CardholderCreateParams.individual` and `issuing.CardholderUpdateParams.individual` +* Add support for `cancellation_details` on `SubscriptionCancelParams`, `SubscriptionUpdateParams`, and `Subscription` diff --git a/.hark/changes/2023-03-15_stripe-openapi_update-generated-code.change.md b/.hark/changes/2023-03-15_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000000..7c4f931ab2a9 --- /dev/null +++ b/.hark/changes/2023-03-15_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,8 @@ +--- +title: Update generated code (new) +pr_url: https://github.com/stripe/stripe-java/pull/1526 +is_stripe_api_change: true +released_in_version: 22.13.0 +--- + +Release specs are identical. diff --git a/.hark/changes/2023-03-30_anniel_add-missing-file.change.md b/.hark/changes/2023-03-30_anniel_add-missing-file.change.md new file mode 100644 index 000000000000..f064301e8026 --- /dev/null +++ b/.hark/changes/2023-03-30_anniel_add-missing-file.change.md @@ -0,0 +1,5 @@ +--- +title: Add missing file purpose terminal_reader_splashscreen +pr_url: https://github.com/stripe/stripe-java/pull/1538 +released_in_version: 22.15.0 +--- diff --git a/.hark/changes/2023-06-01_anniel_move-deserializes-stripeobject.change.md b/.hark/changes/2023-06-01_anniel_move-deserializes-stripeobject.change.md new file mode 100644 index 000000000000..ce7939e10d25 --- /dev/null +++ b/.hark/changes/2023-06-01_anniel_move-deserializes-stripeobject.change.md @@ -0,0 +1,5 @@ +--- +title: Move deserializeStripeObject to StripeObject +pr_url: https://github.com/stripe/stripe-java/pull/1572 +released_in_version: 22.22.0 +--- diff --git a/.hark/changes/2023-06-09_richardm_bugfix-fix-customer.change.md b/.hark/changes/2023-06-09_richardm_bugfix-fix-customer.change.md new file mode 100644 index 000000000000..69e1fce93427 --- /dev/null +++ b/.hark/changes/2023-06-09_richardm_bugfix-fix-customer.change.md @@ -0,0 +1,5 @@ +--- +title: "Bugfix: fix `Customer.retrievePaymentMethod` URL interpolation" +pr_url: https://github.com/stripe/stripe-java/pull/1582 +released_in_version: 22.23.1 +--- diff --git a/.hark/changes/2023-06-29_stripe-openapi_update-generated-code.change.md b/.hark/changes/2023-06-29_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000000..8ff942b90eb4 --- /dev/null +++ b/.hark/changes/2023-06-29_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,9 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1597 +is_stripe_api_change: true +released_in_version: 22.25.0 +--- + +* Add support for `effective_at` on `CreditNoteCreateParams`, `CreditNotePreviewLinesParams`, `CreditNotePreviewParams`, `CreditNote`, `InvoiceCreateParams`, `InvoiceUpdateParams`, and `Invoice` +* Add support for new values `ad_nrt`, `ar_cuit`, `bo_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `pe_ruc`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, and `vn_tin` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, and `TaxCalculationCreateParams.customer_details.tax_ids[].type` diff --git a/.hark/changes/2023-07-18_richardm_changelog-fix-namespaced.change.md b/.hark/changes/2023-07-18_richardm_changelog-fix-namespaced.change.md new file mode 100644 index 000000000000..f3f5747e8798 --- /dev/null +++ b/.hark/changes/2023-07-18_richardm_changelog-fix-namespaced.change.md @@ -0,0 +1,5 @@ +--- +title: "Changelog: fix namespaced param names" +pr_url: https://github.com/stripe/stripe-java/pull/1610 +released_in_version: 22.28.0 +--- diff --git a/.hark/changes/2023-07-20_stripe-openapi_update-generated-code.change.md b/.hark/changes/2023-07-20_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000000..637ff2f0657b --- /dev/null +++ b/.hark/changes/2023-07-20_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,10 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1611 +is_stripe_api_change: true +released_in_version: 22.28.0 +--- + +* Add support for new value `ro_tin` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, and `tax.CalculationCreateParams.customer_details.tax_ids[].type` +* Add support for `use_stripe_sdk` on `SetupIntentConfirmParams` and `SetupIntentCreateParams` +* Add support for new value `service_tax` on enums `TaxRateCreateParams.tax_type` and `TaxRateUpdateParams.tax_type` diff --git a/.hark/changes/2023-07-20_stripe-openapi_update-generated-code2.change.md b/.hark/changes/2023-07-20_stripe-openapi_update-generated-code2.change.md new file mode 100644 index 000000000000..1ab62a73c093 --- /dev/null +++ b/.hark/changes/2023-07-20_stripe-openapi_update-generated-code2.change.md @@ -0,0 +1,10 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1609 +is_stripe_api_change: true +released_in_version: 22.28.0 +--- + +* Add support for new value `ro_tin` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, and `tax.CalculationCreateParams.customer_details.tax_ids[].type` +* Add support for `use_stripe_sdk` on `SetupIntentConfirmParams` and `SetupIntentCreateParams` +* Add support for new value `service_tax` on enums `TaxRateCreateParams.tax_type` and `TaxRateUpdateParams.tax_type` diff --git a/.hark/changes/2023-07-27_stripe-openapi_update-generated-code.change.md b/.hark/changes/2023-07-27_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000000..1cd056c02b3d --- /dev/null +++ b/.hark/changes/2023-07-27_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,8 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1614 +is_stripe_api_change: true +released_in_version: 22.29.0 +--- + +* Add support for `monthly_estimated_revenue` on `Account.business_profile`, `AccountCreateParams.business_profile`, and `AccountUpdateParams.business_profile` diff --git a/.hark/changes/2023-08-16_pakrym_stripeclient.change.md b/.hark/changes/2023-08-16_pakrym_stripeclient.change.md new file mode 100644 index 000000000000..1655481f614b --- /dev/null +++ b/.hark/changes/2023-08-16_pakrym_stripeclient.change.md @@ -0,0 +1,28 @@ +--- +title: StripeClient +pr_url: https://github.com/stripe/stripe-java/pull/1622 +semver_level: major +released_in_version: 23.0.0 +--- + +* Introduces `StripeClient` and the service-based pattern, a new interface for calling the Stripe API with many benefits over the existing resource-based paradigm. + * No global config: you can simultaneously use multiple clients with different configuration options (such as API keys) + * No extra API calls. All API endpoints can be accessed with a single method call. You don't have to call `retrieve` before doing an `update`. + * No static methods. Much easier mocking. + * Visit the [migration guide](https://github.com/stripe/stripe-java/wiki/Migration-guide-for-v23) to learn more. +* **Removals** + * ⚠️ `ApiResource.request()`, `requestStream()`, `requestCollection()`, `requestSearchResult()` methods removed. + * ⚠️ `StripeResponseGetter.oauthRequest(...)` was removed. OAuth requests are now performed via `StripeResponseGetter.request` with `ApiMode.OAuth`. + * ⚠️ Deprecated `ApiResource.className()` `singleClassUrl()`, `classUrl()`, `instanceUrl()`, `subresourceUrl()` methods removed. +* **Type changes** + * ⚠️ `StripeResponseGetter.request(...)`, `streamRequest(...)` signatures changed. + * `BaseAddress` parameter added. + * `url` renamed to `path` and is a relative to the base address + * `apiMode` parameter added to control how request is sent and response is handled, `V1` and `OAuth` are supported values. + * ⚠️ `RequestOptions.getReadTimeout()`, `getConnectTimeout()`, `getMaxNetworkRetries()` now return `Integer` instead of `int`. +* **Renames** + * ⚠️ `addFullNameAliase` renamed to `addFullNameAlias` in `AccountCreateParams`, `AccountUpdateParams`, `PersonCollectionCreateParams`, `TokenCreateParams`, `PersonCollectionCreateParams`, `PersonUpdateParams`. + * ⚠️ `addLookupKeys` renamed to `addLookupKey` in `PriceListParams` +* **Behavior Changes** + * ⚠️ `RequestOptions.getDefault()` does not apply global configuration options from `Stripe` class, all fields are initialized to `null`. + * ⚠️ `RequestOptionsBuilder` does not apply global configuration options from `Stripe` class, all fields are initialized to `null`. diff --git a/.hark/changes/2023-08-16_stripe-openapi_update-generated-code.change.md b/.hark/changes/2023-08-16_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000000..159ba12e9412 --- /dev/null +++ b/.hark/changes/2023-08-16_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,31 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1632 +semver_level: major +is_stripe_api_change: true +released_in_version: 23.0.0 +--- + +* ⚠️Remove support for values `custom_account_update` and `custom_account_verification` from enum `AccountLinkCreateParams.type` + * These values are not fully operational. Please use `account_update` and `account_onboarding` instead (see [API reference](https://stripe.com/docs/api/account_links/create#create_account_link-type)). +* ⚠️Remove support for `available_on` on `BalanceTransactionListParams` + * Use of this parameter is discouraged. You may use [`.putExtraParam`](https://github.com/stripe/stripe-java/#parameters) if sending the parameter is still required. +* ⚠️Remove support for `alternate_statement_descriptors`, `destination`, and `dispute` on `Charge` + * Use of these fields is discouraged. +* ⚠️Remove support for `shipping_rates` on `checkout.SessionCreateParams` + * Please use `shipping_options` instead. +* ⚠️Remove support for `coupon` and `trial_from_plan` on `checkout.SessionCreateParams.subscription_data` + * Please [migrate to the Prices API](https://stripe.com/docs/billing/migration/migrating-prices), or use [`.putExtraParam`](https://github.com/stripe/stripe-java/#parameters) if sending the parameter is still required. +* ⚠️Remove support for value `card_present` from enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` + * This value was not fully operational. +* ⚠️Remove support for `blik` on `Mandate.payment_method_details`, `PaymentMethodUpdateParams`, `SetupAttempt.payment_method_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_options`, and `SetupIntentUpdateParams.payment_method_options` + * These fields were mistakenly released. +* ⚠️Remove support for `acss_debit`, `affirm`, `au_becs_debit`, `bacs_debit`, `cashapp`, `sepa_debit`, and `zip` on `PaymentMethodUpdateParams` + * These fields are empty. +* ⚠️Remove support for `country` on `PaymentMethod.link` + * This field was not fully operational. +* ⚠️Remove support for `recurring` on `PriceUpdateParams` + * This property should be set on create only. +* ⚠️Remove support for `attributes`, `caption`, and `deactivate_on` on `ProductCreateParams`, `ProductUpdateParams`, and `Product` + * These fields are not fully operational. +* Add support for new value `2023-08-16` on enum `WebhookEndpointCreateParams.api_version` diff --git a/.hark/changes/2023-08-16_unknown_more-information-available.change.md b/.hark/changes/2023-08-16_unknown_more-information-available.change.md new file mode 100644 index 000000000000..28752075bb46 --- /dev/null +++ b/.hark/changes/2023-08-16_unknown_more-information-available.change.md @@ -0,0 +1,4 @@ +--- +title: More information is available in the [stripe-java v23 migration guide](https://github.com/stripe/stripe-java/wiki/Migration-guide-for-v23) +released_in_version: 23.0.0 +--- diff --git a/.hark/changes/2023-08-16_unknown_please-read-api.change.md b/.hark/changes/2023-08-16_unknown_please-read-api.change.md new file mode 100644 index 000000000000..ff1964a62fa4 --- /dev/null +++ b/.hark/changes/2023-08-16_unknown_please-read-api.change.md @@ -0,0 +1,4 @@ +--- +title: Please read the [API Changelog](https://docs.stripe.com/changelog/2023-08-16) and carefully review the API changes before upgrading `stripe-java`. +released_in_version: 23.0.0 +--- diff --git a/.hark/changes/2023-08-17_stripe-openapi_update-generated-code.change.md b/.hark/changes/2023-08-17_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000000..3395d617cfac --- /dev/null +++ b/.hark/changes/2023-08-17_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,8 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1634 +is_stripe_api_change: true +released_in_version: 23.1.0 +--- + +* Add support for `flat_amount` on `tax.TransactionCreateReversalParams` diff --git a/.hark/changes/2023-08-21_anniel_update-v23-0.change.md b/.hark/changes/2023-08-21_anniel_update-v23-0.change.md new file mode 100644 index 000000000000..ab5a72666693 --- /dev/null +++ b/.hark/changes/2023-08-21_anniel_update-v23-0.change.md @@ -0,0 +1,5 @@ +--- +title: Update v23.0.0 Changelog +pr_url: https://github.com/stripe/stripe-java/pull/1636 +released_in_version: 23.1.1 +--- diff --git a/.hark/changes/2023-08-21_pakrym_set-default-api.change.md b/.hark/changes/2023-08-21_pakrym_set-default-api.change.md new file mode 100644 index 000000000000..6fff7482bafe --- /dev/null +++ b/.hark/changes/2023-08-21_pakrym_set-default-api.change.md @@ -0,0 +1,5 @@ +--- +title: Set default API endpoints in StripeClient builder +pr_url: https://github.com/stripe/stripe-java/pull/1638 +released_in_version: 23.1.1 +--- diff --git a/.hark/changes/2023-08-31_stripe-openapi_update-generated-code.change.md b/.hark/changes/2023-08-31_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000000..859540f26f8f --- /dev/null +++ b/.hark/changes/2023-08-31_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,11 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1640 +is_stripe_api_change: true +released_in_version: 23.3.0 +--- + +* Add support for new resource `AccountSession` +* Add support for `create` method on resource `AccountSession` +* Add support for `application` on `PaymentLink` +* Add support for new value `obligation` on enum `reporting.ReportRunCreateParams.parameters.reporting_category` diff --git a/.hark/changes/2023-09-07_pakrym_fix-ephemeralkey-create.change.md b/.hark/changes/2023-09-07_pakrym_fix-ephemeralkey-create.change.md new file mode 100644 index 000000000000..0ed82dc4514b --- /dev/null +++ b/.hark/changes/2023-09-07_pakrym_fix-ephemeralkey-create.change.md @@ -0,0 +1,5 @@ +--- +title: Fix EphemeralKeyService.create +pr_url: https://github.com/stripe/stripe-java/pull/1646 +released_in_version: 23.4.0 +--- diff --git a/.hark/changes/2023-09-13_pakrym_flow-response-getters.change.md b/.hark/changes/2023-09-13_pakrym_flow-response-getters.change.md new file mode 100644 index 000000000000..746a679fc9cc --- /dev/null +++ b/.hark/changes/2023-09-13_pakrym_flow-response-getters.change.md @@ -0,0 +1,5 @@ +--- +title: Flow response getters into Event.data.object and models deserialized via ApiResource.GSON +pr_url: https://github.com/stripe/stripe-java/pull/1650 +released_in_version: 23.5.0 +--- diff --git a/.hark/changes/2023-09-18_pakrym_ci-drop-testing.change.md b/.hark/changes/2023-09-18_pakrym_ci-drop-testing.change.md new file mode 100644 index 000000000000..71ec7122b5be --- /dev/null +++ b/.hark/changes/2023-09-18_pakrym_ci-drop-testing.change.md @@ -0,0 +1,5 @@ +--- +title: "CI: Drop testing for 9, 10, 12-16" +pr_url: https://github.com/stripe/stripe-java/pull/1655 +released_in_version: 23.6.0 +--- diff --git a/.hark/changes/2023-09-28_stripe-openapi_update-generated-code.change.md b/.hark/changes/2023-09-28_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000000..07dbae788072 --- /dev/null +++ b/.hark/changes/2023-09-28_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,8 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1657 +is_stripe_api_change: true +released_in_version: 23.7.0 +--- + +* Add support for `rendering` on `InvoiceCreateParams`, `InvoiceUpdateParams`, and `Invoice` diff --git a/.hark/changes/2023-10-05_richardm_flow-type-information.change.md b/.hark/changes/2023-10-05_richardm_flow-type-information.change.md new file mode 100644 index 000000000000..d3e635af307a --- /dev/null +++ b/.hark/changes/2023-10-05_richardm_flow-type-information.change.md @@ -0,0 +1,5 @@ +--- +title: Flow type information further into autopagination requests +pr_url: https://github.com/stripe/stripe-java/pull/1663 +released_in_version: 23.8.0 +--- diff --git a/.hark/changes/2023-10-11_stripe-openapi_update-generated-code.change.md b/.hark/changes/2023-10-11_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000000..25591b0f7728 --- /dev/null +++ b/.hark/changes/2023-10-11_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,12 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1668 +is_stripe_api_change: true +released_in_version: 23.9.0 +--- + +* Add support for `redirect_on_completion`, `return_url`, and `ui_mode` on `Checkout.Session` and `checkout.SessionCreateParams` +* Change `checkout.SessionCreateParams.success_url` to be optional +* Add support for `client_secret` on `Checkout.Session` +* Add support for `postal_code` on `Issuing.Authorization.verification_data` +* Add support for `offline` on `Terminal.Configuration`, `terminal.ConfigurationCreateParams`, and `terminal.ConfigurationUpdateParams` diff --git a/.hark/changes/2023-10-13_pakrym_disallow-falback-global.change.md b/.hark/changes/2023-10-13_pakrym_disallow-falback-global.change.md new file mode 100644 index 000000000000..b90ea1840c62 --- /dev/null +++ b/.hark/changes/2023-10-13_pakrym_disallow-falback-global.change.md @@ -0,0 +1,5 @@ +--- +title: Disallow falback to global response getter only in tests +pr_url: https://github.com/stripe/stripe-java/pull/1671 +released_in_version: 23.10.0 +--- diff --git a/.hark/changes/2023-10-16_stripe-openapi_update-generated-code2.change.md b/.hark/changes/2023-10-16_stripe-openapi_update-generated-code2.change.md new file mode 100644 index 000000000000..071ef5ddb803 --- /dev/null +++ b/.hark/changes/2023-10-16_stripe-openapi_update-generated-code2.change.md @@ -0,0 +1,8 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1670 +is_stripe_api_change: true +released_in_version: 23.10.0 +--- + +* Add support for new values `issuing_token.created` and `issuing_token.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` diff --git a/.hark/changes/2023-10-16_unknown_please-read-api.change.md b/.hark/changes/2023-10-16_unknown_please-read-api.change.md new file mode 100644 index 000000000000..0fa9f8b758dd --- /dev/null +++ b/.hark/changes/2023-10-16_unknown_please-read-api.change.md @@ -0,0 +1,4 @@ +--- +title: Please read the [API Changelog](https://docs.stripe.com/changelog/2023-10-16) and carefully review the API changes before upgrading `stripe-java`. +released_in_version: 24.0.0 +--- diff --git a/.hark/changes/2023-11-09_stripe-openapi_update-generated-code.change.md b/.hark/changes/2023-11-09_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000000..8663b52606c8 --- /dev/null +++ b/.hark/changes/2023-11-09_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,8 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1679 +is_stripe_api_change: true +released_in_version: 24.2.0 +--- + +* Add support for `metadata` on `Quote.subscription_data`, `QuoteCreateParams.subscription_data`, and `QuoteUpdateParams.subscription_data` diff --git a/.hark/changes/2023-11-16_stripe-openapi_update-generated-code.change.md b/.hark/changes/2023-11-16_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000000..fa64502b8572 --- /dev/null +++ b/.hark/changes/2023-11-16_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,8 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1685 +is_stripe_api_change: true +released_in_version: 24.3.0 +--- + +* Add support for `status` on `checkout.SessionListParams` diff --git a/.hark/changes/2023-11-16_stripe-openapi_update-generated-code2.change.md b/.hark/changes/2023-11-16_stripe-openapi_update-generated-code2.change.md new file mode 100644 index 000000000000..173b8a3c83bd --- /dev/null +++ b/.hark/changes/2023-11-16_stripe-openapi_update-generated-code2.change.md @@ -0,0 +1,13 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1683 +is_stripe_api_change: true +released_in_version: 24.3.0 +--- + +* Add support for `bacs_debit_payments` on `AccountCreateParams.settings` and `AccountUpdateParams.settings` +* Add support for `service_user_number` on `Account.settings.bacs_debit_payments` +* Add support for `capture_before` on `Charge.payment_method_details.card` +* Add support for `paypal` on `Checkout.Session.payment_method_options` +* Add support for `tax_amounts` on `CreditNoteCreateParams.lines[]`, `CreditNotePreviewLinesParams.lines[]`, and `CreditNotePreviewParams.lines[]` +* Add support for `network_data` on `Issuing.Transaction` diff --git a/.hark/changes/2023-11-21_stripe-openapi_update-generated-code.change.md b/.hark/changes/2023-11-21_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000000..edbfe6ef07d8 --- /dev/null +++ b/.hark/changes/2023-11-21_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,13 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1690 +is_stripe_api_change: true +released_in_version: 24.4.0 +--- + +* Add support for `offline` on `Charge.payment_method_details.card_present` +* Add support for `system_trace_audit_number` on `Issuing.Authorization.network_data` +* Add support for `transaction_id` on `Issuing.Authorization.network_data` and `Issuing.Transaction.network_data` +* Add support for `network_risk_score` on `Issuing.Authorization.pending_request` and `Issuing.Authorization.request_history[]` +* Add support for `requested_at` on `Issuing.Authorization.request_history[]` +* Add support for `authorization_code` on `Issuing.Transaction.network_data` diff --git a/.hark/changes/2023-12-07_stripe-openapi_update-generated-code.change.md b/.hark/changes/2023-12-07_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000000..5f8285b36200 --- /dev/null +++ b/.hark/changes/2023-12-07_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,12 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1700 +is_stripe_api_change: true +released_in_version: 24.7.0 +--- + +* Add support for `payment_details`, `payments`, and `payouts` on `AccountSession.components` and `AccountSessionCreateParams.components` +* Add support for `features` on `AccountSession.components.account_onboarding` and `AccountSessionCreateParams.components.account_onboarding` +* Add support for `inactive_message` and `restrictions` on `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink` +* Add support for `transfer_group` on `PaymentLink.payment_intent_data`, `PaymentLinkCreateParams.payment_intent_data`, and `PaymentLinkUpdateParams.payment_intent_data` +* Add support for `trial_settings` on `PaymentLink.subscription_data`, `PaymentLinkCreateParams.subscription_data`, and `PaymentLinkUpdateParams.subscription_data` diff --git a/.hark/changes/2023-12-14_stripe-openapi_update-generated-code.change.md b/.hark/changes/2023-12-14_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000000..f59e7c977d3f --- /dev/null +++ b/.hark/changes/2023-12-14_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,10 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1704 +is_stripe_api_change: true +released_in_version: 24.8.0 +--- + +* Add support for `payment_method_reuse_agreement` on `Checkout.Session.consent_collection`, `PaymentLink.consent_collection`, `PaymentLinkCreateParams.consent_collection`, and `checkout.SessionCreateParams.consent_collection` +* Add support for `after_submit` on `Checkout.Session.custom_text`, `PaymentLink.custom_text`, `PaymentLinkCreateParams.custom_text`, `PaymentLinkUpdateParams.custom_text`, and +* Add support for `created` on `radar.EarlyFraudWarningListParams` diff --git a/.hark/changes/2023-12-22_stripe-openapi_update-generated-code2.change.md b/.hark/changes/2023-12-22_stripe-openapi_update-generated-code2.change.md new file mode 100644 index 000000000000..bb40bb431244 --- /dev/null +++ b/.hark/changes/2023-12-22_stripe-openapi_update-generated-code2.change.md @@ -0,0 +1,24 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1707 +is_stripe_api_change: true +released_in_version: 24.9.0 +--- + +* Add support for new resource `FinancialConnections.Transaction` +* Add support for `list` and `retrieve` methods on resource `Transaction` +* Add support for `subscribe` and `unsubscribe` methods on resource `FinancialConnections.Account` +* Add support for `features` on `AccountSessionCreateParams.components.payouts` +* Add support for `edit_payout_schedule`, `instant_payouts`, and `standard_payouts` on `AccountSession.components.payouts.features` +* Change type of `Checkout.Session.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Invoice.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `InvoiceCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntent.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntent.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentConfirmParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentUpdateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Subscription.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, and `checkout.SessionCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]` from `literal('balances')` to `enum('balances'|'transactions')` +* Add support for new value `transactions` on enum `financialconnections.AccountRefreshParams.features[]` +* Add support for `subscriptions` and `transaction_refresh` on `FinancialConnections.Account` +* Add support for `next_refresh_available_at` on `FinancialConnections.Account.balance_refresh` +* Add support for new value `transactions` on enum `financialconnections.SessionCreateParams.prefetch[]` +* Add support for new value `unknown` on enum `issuing.AuthorizationCreateParams.verification_data.authentication_exemption.type` +* Add support for `collection_method` on `Mandate.payment_method_details.us_bank_account` +* Add support for new value `challenge` on enums `PaymentIntentConfirmParams.payment_method_options.card.request_three_d_secure`, `PaymentIntentCreateParams.payment_method_options.card.request_three_d_secure`, `PaymentIntentUpdateParams.payment_method_options.card.request_three_d_secure`, `SetupIntentConfirmParams.payment_method_options.card.request_three_d_secure`, `SetupIntentCreateParams.payment_method_options.card.request_three_d_secure`, and `SetupIntentUpdateParams.payment_method_options.card.request_three_d_secure` +* Add support for `mandate_options` on `PaymentIntent.payment_method_options.us_bank_account`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account`, `PaymentIntentCreateParams.payment_method_options.us_bank_account`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account`, `SetupIntent.payment_method_options.us_bank_account`, `SetupIntentConfirmParams.payment_method_options.us_bank_account`, `SetupIntentCreateParams.payment_method_options.us_bank_account`, and `SetupIntentUpdateParams.payment_method_options.us_bank_account` +* Add support for `revolut_pay` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` +* Add support for `destination_details` on `Refund` +* Add support for new value `financial_connections.account.refreshed_transactions` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` diff --git a/.hark/changes/2024-01-09_richardm_add-missing-method.change.md b/.hark/changes/2024-01-09_richardm_add-missing-method.change.md new file mode 100644 index 000000000000..027804f5197e --- /dev/null +++ b/.hark/changes/2024-01-09_richardm_add-missing-method.change.md @@ -0,0 +1,5 @@ +--- +title: Add missing method overloads +pr_url: https://github.com/stripe/stripe-java/pull/1716 +released_in_version: 24.11.0 +--- diff --git a/.hark/changes/2024-01-10_richardm_change-striperespon-take.change.md b/.hark/changes/2024-01-10_richardm_change-striperespon-take.change.md new file mode 100644 index 000000000000..ff87a4ecb098 --- /dev/null +++ b/.hark/changes/2024-01-10_richardm_change-striperespon-take.change.md @@ -0,0 +1,5 @@ +--- +title: Change StripeResponseGetter to take a single APIRequest object +pr_url: https://github.com/stripe/stripe-java/pull/1702 +released_in_version: 24.11.0 +--- diff --git a/.hark/changes/2024-01-16_richardm_refactor-livestripere.change.md b/.hark/changes/2024-01-16_richardm_refactor-livestripere.change.md new file mode 100644 index 000000000000..de6324653fb7 --- /dev/null +++ b/.hark/changes/2024-01-16_richardm_refactor-livestripere.change.md @@ -0,0 +1,5 @@ +--- +title: Refactor LiveStripeResponseGetter +pr_url: https://github.com/stripe/stripe-java/pull/1722 +released_in_version: 24.12.0 +--- diff --git a/.hark/changes/2024-01-17_richardm_move-request-telemetry.change.md b/.hark/changes/2024-01-17_richardm_move-request-telemetry.change.md new file mode 100644 index 000000000000..6ca975f0664f --- /dev/null +++ b/.hark/changes/2024-01-17_richardm_move-request-telemetry.change.md @@ -0,0 +1,5 @@ +--- +title: Move request telemetry to LiveStripeResponseGetter +pr_url: https://github.com/stripe/stripe-java/pull/1725 +released_in_version: 24.12.0 +--- diff --git a/.hark/changes/2024-01-17_richardm_report-usage-stripeclient.change.md b/.hark/changes/2024-01-17_richardm_report-usage-stripeclient.change.md new file mode 100644 index 000000000000..16badb614580 --- /dev/null +++ b/.hark/changes/2024-01-17_richardm_report-usage-stripeclient.change.md @@ -0,0 +1,11 @@ +--- +title: Report usage of `stripe_client` +pr_url: https://github.com/stripe/stripe-java/pull/1721 +released_in_version: 24.12.0 +--- + +* Reports use of the new `StripeClient` in `X-Stripe-Client-Telemetry`. (You can disable telemetry via `Stripe.enableTelemetry = false;`, see the [README](https://github.com/stripe/stripe-java/blob/master/README.md#telemetry).) + +## Details +* A different approach to #1698. This one sets `usage` on each callsite to `StripeResponseGetter.request` from `StripeClient`, rather than attempting to wrap `LiveStripeResponseGetter`. +* Modifies `RequestTelemetry` to accept usage and set it appropriately on `X-Stripe-Client-Telemetry`. Had to add a parameter to a public method, so I made a new overload and deprecated the old one. Had to disable a linter rule to do this. diff --git a/.hark/changes/2024-01-18_pakrym_add-webhook-parsing.change.md b/.hark/changes/2024-01-18_pakrym_add-webhook-parsing.change.md new file mode 100644 index 000000000000..9aed91497c26 --- /dev/null +++ b/.hark/changes/2024-01-18_pakrym_add-webhook-parsing.change.md @@ -0,0 +1,7 @@ +--- +title: Add webhook parsing method on StripeClient +pr_url: https://github.com/stripe/stripe-java/pull/1724 +released_in_version: 24.12.0 +--- + +* Add support for `constructEvent()` instance method on `StripeClient` that parses Webhook events and uses the settings inherited from the StripeClient instance to make further requests. diff --git a/.hark/changes/2024-01-18_stripe-openapi_update-generated-code2.change.md b/.hark/changes/2024-01-18_stripe-openapi_update-generated-code2.change.md new file mode 100644 index 000000000000..ef97ae6ce8f8 --- /dev/null +++ b/.hark/changes/2024-01-18_stripe-openapi_update-generated-code2.change.md @@ -0,0 +1,15 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1723 +is_stripe_api_change: true +released_in_version: 24.12.0 +--- + +* Add support for `issuer` on `InvoiceCreateParams`, `InvoiceUpcomingLinesParams`, `InvoiceUpcomingParams`, `InvoiceUpdateParams`, and `Invoice` +* Add support for `liability` on `Invoice.automatic_tax`, `InvoiceCreateParams.automatic_tax`, `InvoiceUpcomingLinesParams.automatic_tax`, `InvoiceUpcomingParams.automatic_tax`, `InvoiceUpdateParams.automatic_tax`, `Subscription.automatic_tax`, `SubscriptionCreateParams.automatic_tax`, and `SubscriptionUpdateParams.automatic_tax` +* Add support for `on_behalf_of` on `InvoiceUpcomingLinesParams` and `InvoiceUpcomingParams` +* Add support for `pin` on `issuing.CardCreateParams` +* Add support for `revocation_reason` on `Mandate.payment_method_details.bacs_debit` +* Add support for new value `nn` on enums `PaymentIntentConfirmParams.payment_method_data.ideal.bank`, `PaymentIntentCreateParams.payment_method_data.ideal.bank`, `PaymentIntentUpdateParams.payment_method_data.ideal.bank`, `PaymentMethodCreateParams.ideal.bank`, `SetupIntentConfirmParams.payment_method_data.ideal.bank`, `SetupIntentCreateParams.payment_method_data.ideal.bank`, and `SetupIntentUpdateParams.payment_method_data.ideal.bank` +* Add support for `customer_balance` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` +* Add support for `invoice_settings` on `SubscriptionCreateParams` and `SubscriptionUpdateParams` diff --git a/.hark/changes/2024-01-25_pakrym_add-clock-instance.change.md b/.hark/changes/2024-01-25_pakrym_add-clock-instance.change.md new file mode 100644 index 000000000000..afb9aad3ccc9 --- /dev/null +++ b/.hark/changes/2024-01-25_pakrym_add-clock-instance.change.md @@ -0,0 +1,5 @@ +--- +title: Add clock instance on webhook +pr_url: https://github.com/stripe/stripe-java/pull/1739 +released_in_version: 24.14.0 +--- diff --git a/.hark/changes/2024-02-01_helenye_update-generated-code.change.md b/.hark/changes/2024-02-01_helenye_update-generated-code.change.md new file mode 100644 index 000000000000..d1971ba89f18 --- /dev/null +++ b/.hark/changes/2024-02-01_helenye_update-generated-code.change.md @@ -0,0 +1,12 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1740 +semver_level: major +is_stripe_api_change: true +released_in_version: 24.14.0 +--- + +* Add support for `swish` payment method throughout the API +* Add support for `relationship` on `AccountCreateParams.individual`, `AccountUpdateParams.individual`, and `TokenCreateParams.account.individual` +* Add support for `jurisdiction_level` on `TaxRate` +* ⚠️ Fix broken reference to `com.stripe.model.Discount` from `checkout.Session.TotalDetails.Breakdown.Discount` (this represents a bugfix as this class would never have worked, but might be a breaking type change) diff --git a/.hark/changes/2024-02-05_richardm_define-stripeclient-usage.change.md b/.hark/changes/2024-02-05_richardm_define-stripeclient-usage.change.md new file mode 100644 index 000000000000..bc810b467946 --- /dev/null +++ b/.hark/changes/2024-02-05_richardm_define-stripeclient-usage.change.md @@ -0,0 +1,5 @@ +--- +title: Define StripeClient "usage" in a single place +pr_url: https://github.com/stripe/stripe-java/pull/1744 +released_in_version: 24.15.0 +--- diff --git a/.hark/changes/2024-02-15_stripe-openapi_update-generated-code.change.md b/.hark/changes/2024-02-15_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000000..86ba382373ab --- /dev/null +++ b/.hark/changes/2024-02-15_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,11 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1745 +is_stripe_api_change: true +released_in_version: 24.16.0 +--- + +* Add support for `networks` on `Card`, `PaymentMethodCreateParams.CardDetails`, `PaymentMethodUpdateParams.Card`, and `TokenCreateParams.Card` +* Add support for new value `no_voec` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `TaxIdCreateParams.type`, and `tax.CalculationCreateParams.customer_details.tax_ids[].type` +* Add support for `display_brand` on `PaymentMethod.card` +* Add support for new value `financial_connections.account.refreshed_ownership` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` diff --git a/.hark/changes/2024-02-23_helenye_update-readme-reference.change.md b/.hark/changes/2024-02-23_helenye_update-readme-reference.change.md new file mode 100644 index 000000000000..67f230a3d233 --- /dev/null +++ b/.hark/changes/2024-02-23_helenye_update-readme-reference.change.md @@ -0,0 +1,5 @@ +--- +title: Update README to reference addBetaVersion helper +pr_url: https://github.com/stripe/stripe-java/pull/1753 +released_in_version: 24.18.0 +--- diff --git a/.hark/changes/2024-03-14_ramya_update-generated-code.change.md b/.hark/changes/2024-03-14_ramya_update-generated-code.change.md new file mode 100644 index 000000000000..c2ecbaa0b821 --- /dev/null +++ b/.hark/changes/2024-03-14_ramya_update-generated-code.change.md @@ -0,0 +1,13 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1763 +is_stripe_api_change: true +released_in_version: 24.20.0 +--- + +* Add support for new resources `Issuing.PersonalizationDesign` and `Issuing.PhysicalBundle` +* Add support for `create`, `list`, `retrieve`, and `update` methods on resource `PersonalizationDesign` +* Add support for `list` and `retrieve` methods on resource `PhysicalBundle` +* Add support for `personalization_design` on `Issuing.Card`, `issuing.CardCreateParams`, `issuing.CardListParams`, and `issuing.CardUpdateParams` +* Change type of `SubscriptionCreateParams.application_fee_percent` and `SubscriptionUpdateParams.application_fee_percent` from `number` to `emptyStringable(number)` +* Add support for `sepa_debit` on `Subscription.payment_settings.payment_method_options`, `SubscriptionCreateParams.payment_settings.payment_method_options`, and `SubscriptionUpdateParams.payment_settings.payment_method_options` diff --git a/.hark/changes/2024-04-04_ramya_update-generated-code.change.md b/.hark/changes/2024-04-04_ramya_update-generated-code.change.md new file mode 100644 index 000000000000..28abb674b4d5 --- /dev/null +++ b/.hark/changes/2024-04-04_ramya_update-generated-code.change.md @@ -0,0 +1,20 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1774 +is_stripe_api_change: true +released_in_version: 24.23.0 +--- + +* Change type of `checkout.SessionCreateParams.payment_method_options.swish.reference` from `emptyable(string)` to `string` +* Add support for `subscription_item` on `Discount` +* Add support for `email` and `phone` on `Identity.VerificationReport`, `Identity.VerificationSession.options`, `Identity.VerificationSession.verified_outputs`, `identity.VerificationSessionCreateParams.options`, and `identity.VerificationSessionUpdateParams.options` +* Add support for `verification_flow` on `Identity.VerificationReport`, `Identity.VerificationSession`, and `identity.VerificationSessionCreateParams` +* Add support for `provided_details` on `Identity.VerificationSession`, `identity.VerificationSessionCreateParams`, and `identity.VerificationSessionUpdateParams` +* Change `identity.VerificationSessionCreateParams.type` to be optional +* Add support for `promotion_code` on `InvoiceCreateParams.discounts[]`, `InvoiceItemCreateParams.discounts[]`, `InvoiceItemUpdateParams.discounts[]`, `InvoiceUpdateParams.discounts[]`, `QuoteCreateParams.discounts[]`, and `QuoteUpdateParams.discounts[]` +* Add support for `discounts` on `InvoiceUpcomingLinesParams.subscription_items[]`, `InvoiceUpcomingParams.subscription_items[]`, `QuoteCreateParams.line_items[]`, `QuoteUpdateParams.line_items[]`, `SubscriptionCreateParams.add_invoice_items[]`, `SubscriptionCreateParams.items[]`, `SubscriptionCreateParams`, `SubscriptionItemCreateParams`, `SubscriptionItemUpdateParams`, `SubscriptionItem`, `SubscriptionSchedule.phases[].add_invoice_items[]`, `SubscriptionSchedule.phases[].items[]`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.phases[].add_invoice_items[]`, `SubscriptionScheduleCreateParams.phases[].items[]`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.phases[].add_invoice_items[]`, `SubscriptionScheduleUpdateParams.phases[].items[]`, `SubscriptionScheduleUpdateParams.phases[]`, `SubscriptionUpdateParams.add_invoice_items[]`, `SubscriptionUpdateParams.items[]`, `SubscriptionUpdateParams`, and `Subscription` +* Add support for `allowed_merchant_countries` and `blocked_merchant_countries` on `Issuing.Card.spending_controls`, `Issuing.Cardholder.spending_controls`, `issuing.CardCreateParams.spending_controls`, `issuing.CardUpdateParams.spending_controls`, `issuing.CardholderCreateParams.spending_controls`, and `issuing.CardholderUpdateParams.spending_controls` +* Add support for `zip` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` +* Add support for `offline` on `SetupAttempt.payment_method_details.card_present` +* Add support for `card_present` on `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_options`, and `SetupIntentUpdateParams.payment_method_options` +* Add support for new value `mobile_phone_reader` on enum `terminal.ReaderListParams.device_type` diff --git a/.hark/changes/2024-04-09_stripe-openapi_update-generated-code.change.md b/.hark/changes/2024-04-09_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000000..f19ace647fa0 --- /dev/null +++ b/.hark/changes/2024-04-09_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,14 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1778 +is_stripe_api_change: true +released_in_version: 24.24.0 +--- + +* Add support for new resources `Entitlements.ActiveEntitlement` and `Entitlements.Feature` +* Add support for `list` and `retrieve` methods on resource `ActiveEntitlement` +* Add support for `create`, `list`, `retrieve`, and `update` methods on resource `Feature` +* Add support for `controller` on `AccountCreateParams` +* Add support for `fees`, `losses`, `requirement_collection`, and `stripe_dashboard` on `Account.controller` +* Add support for `event_name` on `Billing.MeterEventAdjustment` and `billing.MeterEventAdjustmentCreateParams` +* Add support for `cancel` and `type` on `Billing.MeterEventAdjustment` diff --git a/.hark/changes/2024-04-10_ramya_update-generated-code.change.md b/.hark/changes/2024-04-10_ramya_update-generated-code.change.md new file mode 100644 index 000000000000..914cc55d0590 --- /dev/null +++ b/.hark/changes/2024-04-10_ramya_update-generated-code.change.md @@ -0,0 +1,70 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1776 +released_in_version: 25.0.0 +--- + +* This release changes the pinned API version to `2024-04-10`. Please read the [API Changelog](https://docs.stripe.com/changelog/2024-04-10) and carefully review the API changes before upgrading. + +* Add a new `TaxIdService` for operations on `/v1/tax_ids` endpoints. + +### ⚠️ Breaking changes + +* Rename `features` to `marketing_features` on `ProductCreateParams`, `ProductUpdateParams`, and `Product` +* Rename "child" services to be prefixed with the associated parent service to allow for the same resource to be exposed at top level (e.g., `/v1/tax_ids` via `client.taxIds()`) and as a child (e.g., `/v1/customers/{}/tax_ids` via `client.customers().taxIds()`). + * Rename `CapabilityService` -> `AccountCapabilityService` + * Rename `ExternalAccountService` -> `AccountExternalAccountService` + * Rename `LoginLinkService` -> `AccountLoginLinkService` + * Rename `PersonService` -> `AccountPersonService` + * Rename `FeeRefundService` -> `ApplicationFeeRefundService` + * Rename `CashBalanceService` -> `CustomerCashBalanceService` + * Rename `PaymentSourceService` -> `CustomerPaymentSourceService` + * Rename `UsageRecordService` -> `SubscriptionItemUsageRecordService` + * Rename `UsageRecordSummaryService` -> `SubscriptionItemUsageRecordSummaryService` + * Rename `TaxIdService` -> `CustomerTaxIdService`. +* Remove support for `verify` method on `BankAccountService`. + * Please use the `verify` method on `CustomerPaymentSourceService` instead + ```java + // BEFORE + client.bankAccounts().verify("cus_...", "ba_..."); + + // AFTER + client.customers().paymentSources().verify("cus_...", "ba_..."); + ``` +* Remove support for `list` and `create` methods on `treasury.FinancialAccountFeaturesService`. These methods were incorrectly named. + * Please migrate `list` -> `retrieve` and `create` -> `update`. +* Update `setPageTypeToken` method on `StripeCollectionInterface` to be required and remove default implementation. +* Remove deprecated `setUsage` method on `BaseApiRequest`. +* Update `usage` on `BaseApiRequest` class to be `final`. +* Remove deprecated `maybeEnqueueMetrics` method on `RequestTelemetry`. + +#### ⚠️ Removal of enum values, properties and events that are no longer part of the publicly documented Stripe API + +* Remove `Configuration.SubscriptionPause` for Billing Portal as the feature to pause subscription on the portal has been deprecated. +* Remove the support for the below deprecated values in `BalanceTransaction.Type` + * `obligation_inbound` + * `obligation_payout` + * `obligation_payout_failure` + * `obligation_reversal_outbound` +* Remove the below deprecated events from `Event.Type`, `WebhookEndpointCreateOptions.EnabledEvent`, `WebhookEndpointUpdateOptions.EnabledEvent` + * `invoiceitem.updated` + * `order.created` + * `recipient.created` + * `recipient.deleted` + * `recipient.updated` + * `sku.created` + * `sku.deleted` + * `sku.updated` +* Remove support for `id_bank_transfer`, `multibanco`, `netbanking`, `pay_by_bank`, and `upi` on `PaymentMethodConfiguration` by removing the below classes + * `PaymentMethodConfiguration.IdBankTransfer` + * `PaymentMethodConfiguration.Multibanco` + * `PaymentMethodConfiguration.Netbanking` + * `PaymentMethodConfiguration.PayByBank` + * `PaymentMethodConfiguration.Upi` +* Remove the support for `challenge_only` in `SetupIntent.PaymentMethodOptions.Card.RequestThreeDSecure` +* Remove the support for deprecated value `service_tax` in `TaxRate.TaxType`, `InvoiceLinetItemUpdateParams.TaxAmount.TaxRateData.TaxType`,pweb`TaxRateCreateParams.TaxType`, `TaxRateUpdateParams.TaxType` +* Remove the support for `various` in `Climate.Supplier.removalPathway` +* Remove the deprecated value `INCLUDE_AND_REQUIRE` on the enum `InvoiceCreateParams.PendingInvoiceItemsBehavior` +* Remove the property `RequestIncrementalAuthorization` on `PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent`, `PaymentIntentCreateParams.PaymentMethodOptions.CardPresent` and `PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent`. This was shipped by mistake. +* Remove the support for deprecated value `obligation` on `ReportRunCreateParams.ReportingCategory` +* Remove the legacy field `rendering_options` on `InvoiceCreateParams`, `InvoiceUpdateParams`, and `Invoice`. Use `rendering` instead. diff --git a/.hark/changes/2024-04-11_stripe-openapi_update-generated-code.change.md b/.hark/changes/2024-04-11_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000000..35692265d6f3 --- /dev/null +++ b/.hark/changes/2024-04-11_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,19 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1779 +is_stripe_api_change: true +released_in_version: 25.1.0 +--- + +* Add support for `account_management` and `notification_banner` on `AccountSession.components` and `AccountSessionCreateParams.components` +* Add support for `external_account_collection` on `AccountSession.components.account_onboarding.features` and `AccountSessionCreateParams.components.account_onboarding.features` +* Change `billing.MeterEventAdjustmentCreateParams.cancel.identifier` and `billing.MeterEventAdjustmentCreateParams.cancel` to be optional +* Change `billing.MeterEventAdjustmentCreateParams.type` to be required +* Change type of `Billing.MeterEventAdjustment.cancel` from `BillingMeterResourceBillingMeterEventAdjustmentCancel` to `nullable(BillingMeterResourceBillingMeterEventAdjustmentCancel)` +* Add support for `amazon_pay` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `Refund.destination_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_data`, `SetupIntentCreateParams.payment_method_options`, `SetupIntentUpdateParams.payment_method_data`, `SetupIntentUpdateParams.payment_method_options`, and `checkout.SessionCreateParams.payment_method_options` +* Add support for new value `ownership` on enums `InvoiceCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentConfirmParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentUpdateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, and `checkout.SessionCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]` +* Add support for new value `amazon_pay` on enum `checkout.SessionCreateParams.payment_method_types[]` +* Add support for new value `amazon_pay` on enums `ConfirmationTokenCreateParams.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` +* Add support for new values `bh_vat`, `kz_bin`, `ng_tin`, and `om_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `TaxIdCreateParams.type`, and `tax.CalculationCreateParams.customer_details.tax_ids[].type` +* Add support for new value `amazon_pay` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` +* Add support for `next_refresh_available_at` on `FinancialConnections.Account.ownership_refresh` diff --git a/.hark/changes/2024-04-16_ramya_update-generated-code.change.md b/.hark/changes/2024-04-16_ramya_update-generated-code.change.md new file mode 100644 index 000000000000..9837be85514e --- /dev/null +++ b/.hark/changes/2024-04-16_ramya_update-generated-code.change.md @@ -0,0 +1,14 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1780 +is_stripe_api_change: true +released_in_version: 25.2.0 +--- + +* Add support for new resource `Entitlements.ActiveEntitlementSummary` +* Add support for `balances` and `payouts_list` on `AccountSession.components` and `AccountSessionCreateParams.components` +* Change `billing.MeterEventCreateParams.timestamp` to be optional +* Remove support for `config` on `Forwarding.Request` and `forwarding.RequestCreateParams`. This field is no longer used by the Forwarding Request API. +* Add support for `capture_method` on `PaymentIntent.payment_method_options.revolut_pay`, `PaymentIntentConfirmParams.payment_method_options.revolut_pay`, `PaymentIntentCreateParams.payment_method_options.revolut_pay`, and `PaymentIntentUpdateParams.payment_method_options.revolut_pay` +* Add support for `swish` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` +* Add support for new value `entitlements.active_entitlement_summary.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` diff --git a/.hark/changes/2024-04-25_anniel_update-generated-code.change.md b/.hark/changes/2024-04-25_anniel_update-generated-code.change.md new file mode 100644 index 000000000000..eae205260ea8 --- /dev/null +++ b/.hark/changes/2024-04-25_anniel_update-generated-code.change.md @@ -0,0 +1,14 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1784 +is_stripe_api_change: true +released_in_version: 25.4.0 +--- + +* Add support for `setup_future_usage` on `Checkout.Session.payment_method_options.amazon_pay`, `Checkout.Session.payment_method_options.revolut_pay`, `PaymentIntent.payment_method_options.amazon_pay`, and `PaymentIntent.payment_method_options.revolut_pay` +* Change type of `Entitlements.ActiveEntitlement.feature` from `string` to `expandable($Entitlements.Feature)` +* Remove support for inadvertently released identity verification features `email` and `phone` on `identity.VerificationSessionCreateParams.options` and `identity.VerificationSessionUpdateParams.options` +* Add support for new values `amazon_pay` and `revolut_pay` on enums `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` +* Add support for `amazon_pay` and `revolut_pay` on `Mandate.payment_method_details` and `SetupAttempt.payment_method_details` +* Add support for `ending_before`, `limit`, and `starting_after` on `PaymentMethodConfigurationListParams` +* Add support for `mobilepay` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` diff --git a/.hark/changes/2024-04-25_unknown_deprecate-java-methods.change.md b/.hark/changes/2024-04-25_unknown_deprecate-java-methods.change.md new file mode 100644 index 000000000000..5f42931588a1 --- /dev/null +++ b/.hark/changes/2024-04-25_unknown_deprecate-java-methods.change.md @@ -0,0 +1,6 @@ +--- +title: Deprecate Java methods based on OpenAPI spec +released_in_version: 25.4.0 +--- + +* Mark as deprecated the `approve` and `decline` methods on Authorization. Instead, [respond directly to the webhook request to approve an authorization](https://docs.stripe.com/issuing/controls/real-time-authorizations#authorization-handling). diff --git a/.hark/changes/2024-05-02_helenye_update-generated-code.change.md b/.hark/changes/2024-05-02_helenye_update-generated-code.change.md new file mode 100644 index 000000000000..467e6ef11be7 --- /dev/null +++ b/.hark/changes/2024-05-02_helenye_update-generated-code.change.md @@ -0,0 +1,13 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1785 +is_stripe_api_change: true +released_in_version: 25.5.0 +--- + +* Add support for `paypal` on `Dispute.payment_method_details` +* Change type of `Dispute.payment_method_details.type` from `literal('card')` to `enum('card'|'paypal')` +* Change type of `entitlements.FeatureUpdateParams.metadata` from `map(string: string)` to `emptyable(map(string: string))` +* Add support for `payment_method_types` on `PaymentIntentConfirmParams` +* Add support for `ship_from_details` on `Tax.Calculation`, `Tax.Transaction`, and `tax.CalculationCreateParams` +* Add support for `bh`, `eg`, `ge`, `ke`, `kz`, `ng`, and `om` on `Tax.Registration.country_options` and `tax.RegistrationCreateParams.country_options` diff --git a/.hark/changes/2024-05-02_prathmesh_deprecate-java-params.change.md b/.hark/changes/2024-05-02_prathmesh_deprecate-java-params.change.md new file mode 100644 index 000000000000..33a66facc645 --- /dev/null +++ b/.hark/changes/2024-05-02_prathmesh_deprecate-java-params.change.md @@ -0,0 +1,7 @@ +--- +title: Deprecate Java params based on OpenAPI spec +pr_url: https://github.com/stripe/stripe-java/pull/1787 +released_in_version: 25.5.0 +--- + +- Mark as deprecated the `persistent_token` property on `ConfirmationToken.Link.persistentToken`, `PaymentIntent.Link.persistentToken`, `PaymentMethod.Link.persistentToken`, `SetupIntent.Link.persistentToken`, `PaymentIntentConfirmParams.Link.persistentToken`, `PaymentIntentCreateParams.Link.persistentToken`, `PaymentIntentUpdateParams.Link.persistentToken`, `SetupIntentConfirmParams.Link.persistentToken`, `SetupIntentCreateParams.Link.persistentToken`, `SetupIntentUpdateParams.Link.persistentToken`. This is a legacy parameter that no longer has any function. diff --git a/.hark/changes/2024-05-09_ramya_update-generated-code.change.md b/.hark/changes/2024-05-09_ramya_update-generated-code.change.md new file mode 100644 index 000000000000..43f2a9732349 --- /dev/null +++ b/.hark/changes/2024-05-09_ramya_update-generated-code.change.md @@ -0,0 +1,8 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1801 +is_stripe_api_change: true +released_in_version: 25.7.0 +--- + +* Remove support for `pending_invoice_items_behavior` on `SubscriptionCreateParams` that was prematurely added in the previous release on the same day diff --git a/.hark/changes/2024-05-13_prathmesh_added-deprecated-annotation.change.md b/.hark/changes/2024-05-13_prathmesh_added-deprecated-annotation.change.md new file mode 100644 index 000000000000..7a3642fec04f --- /dev/null +++ b/.hark/changes/2024-05-13_prathmesh_added-deprecated-annotation.change.md @@ -0,0 +1,8 @@ +--- +title: Added deprecated annotation to builder methods +pr_url: https://github.com/stripe/stripe-java/pull/1804 +released_in_version: 25.8.0 +--- + +* Deprecate Java builder params based on OpenAPI spec + * Mark as deprecated the setters for persistent_token property on `PaymentIntentConfirmParams`, `PaymentIntentCreateParams`, `PaymentIntentUpdateParams`, `SetupIntentConfirmParams`, `SetupIntentCreateParams`, `SetupIntentUpdateParams`. This is a legacy parameter that no longer has any function. diff --git a/.hark/changes/2024-05-20_anniel_track-usage-unsafesetstr.change.md b/.hark/changes/2024-05-20_anniel_track-usage-unsafesetstr.change.md new file mode 100644 index 000000000000..b1dbdce946e2 --- /dev/null +++ b/.hark/changes/2024-05-20_anniel_track-usage-unsafesetstr.change.md @@ -0,0 +1,5 @@ +--- +title: Track usage for unsafeSetStripeVersionOverride +pr_url: https://github.com/stripe/stripe-java/pull/1808 +released_in_version: 25.9.0 +--- diff --git a/.hark/changes/2024-06-17_stripe-openapi_update-generated-code.change.md b/.hark/changes/2024-06-17_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000000..2ee8a0312f96 --- /dev/null +++ b/.hark/changes/2024-06-17_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,9 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1823 +is_stripe_api_change: true +released_in_version: 25.13.0 +--- + +* Add support for new value `mobilepay` on enums `PaymentLinkCreateParams.payment_method_types[]` and `PaymentLinkUpdateParams.payment_method_types[]` +* Add support for `tax_id_collection` on `PaymentLinkUpdateParams` diff --git a/.hark/changes/2024-06-24_ramya_please-read-api.change.md b/.hark/changes/2024-06-24_ramya_please-read-api.change.md new file mode 100644 index 000000000000..1c6dca5a8da4 --- /dev/null +++ b/.hark/changes/2024-06-24_ramya_please-read-api.change.md @@ -0,0 +1,25 @@ +--- +title: Please read the [API Changelog](https://docs.stripe.com/changelog/2024-06-20) and carefully review the API changes before upgrading. +pr_url: https://github.com/stripe/stripe-java/pull/1825 +released_in_version: 26.0.0 +--- + +### ⚠️ Breaking changes + + * Remove the unused resource `PlatformTaxFee` + * Rename `volume_decimal` to `quantity_decimal` on + * `Issuing.Transaction.purchase_details.fuel`, + * `issuing.AuthorizationCaptureParams.purchase_details.fuel`, + * `issuing.TransactionCreateForceCaptureParams.purchase_details.fuel`, and + * `issuing.TransactionCreateUnlinkedRefundParams.purchase_details.fuel` + +### Additions + +* Add support for `finalize_amount` test helper method on resource `Issuing.Authorization` +* Add support for new values `platform_disabled`, `paused.inactivity` and `other` on enums `Capability.Requirements.disabledReason` and `Capability.FutureRequirements.disabledReason` +* Add support for new value `ch_uid` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `TaxIdCreateParams.type`, and `tax.CalculationCreateParams.customer_details.tax_ids[].type` +* Add support for `fleet` on `Issuing.Authorization`, `Issuing.Transaction.purchase_details`, `issuing.AuthorizationCaptureParams.purchase_details`, `issuing.AuthorizationCreateParams`, `issuing.TransactionCreateForceCaptureParams.purchase_details`, and `issuing.TransactionCreateUnlinkedRefundParams.purchase_details` +* Add support for `fuel` on `Issuing.Authorization` and `issuing.AuthorizationCreateParams` +* Add support for `industry_product_code` and `quantity_decimal` on `Issuing.Transaction.purchase_details.fuel`, `issuing.AuthorizationCaptureParams.purchase_details.fuel`, `issuing.TransactionCreateForceCaptureParams.purchase_details.fuel`, and `issuing.TransactionCreateUnlinkedRefundParams.purchase_details.fuel` +* Add support for new values `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, and `pound` on enums `issuing.AuthorizationCaptureParams.purchase_details.fuel.unit`, `issuing.TransactionCreateForceCaptureParams.purchase_details.fuel.unit`, and `issuing.TransactionCreateUnlinkedRefundParams.purchase_details.fuel.unit` +* Add support for new value `2024-06-20` on enum `WebhookEndpointCreateParams.api_version` diff --git a/.hark/changes/2024-07-03_xavdid_update-formatting-settings.change.md b/.hark/changes/2024-07-03_xavdid_update-formatting-settings.change.md new file mode 100644 index 000000000000..f1fb85c323a2 --- /dev/null +++ b/.hark/changes/2024-07-03_xavdid_update-formatting-settings.change.md @@ -0,0 +1,5 @@ +--- +title: Update formatting settings for VSCode +pr_url: https://github.com/stripe/stripe-java/pull/1833 +released_in_version: 26.2.0 +--- diff --git a/.hark/changes/2024-07-11_stripe-openapi_update-generated-code.change.md b/.hark/changes/2024-07-11_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000000..889248047b1a --- /dev/null +++ b/.hark/changes/2024-07-11_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,11 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1835 +is_stripe_api_change: true +released_in_version: 26.3.0 +--- + +* Add support for `payment_method_options` on `ConfirmationToken` +* Add support for `payment_element` on `CustomerSession.components` and `CustomerSessionCreateParams.components` +* Add support for `address_validation` on `Issuing.Card.shipping` and `issuing.CardCreateParams.shipping` +* Add support for `shipping` on `issuing.CardUpdateParams` diff --git a/.hark/changes/2024-07-18_prathmesh_added-missing-log.change.md b/.hark/changes/2024-07-18_prathmesh_added-missing-log.change.md new file mode 100644 index 000000000000..f5925f6e2365 --- /dev/null +++ b/.hark/changes/2024-07-18_prathmesh_added-missing-log.change.md @@ -0,0 +1,5 @@ +--- +title: Added missing log to changelog +pr_url: https://github.com/stripe/stripe-java/pull/1805 +released_in_version: 26.4.0 +--- diff --git a/.hark/changes/2024-07-18_stripe-openapi_update-generated-code.change.md b/.hark/changes/2024-07-18_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000000..ddfd41e72e49 --- /dev/null +++ b/.hark/changes/2024-07-18_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,11 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1836 +is_stripe_api_change: true +released_in_version: 26.4.0 +--- + +* Add support for `customer` on `ConfirmationToken.payment_method_preview` +* Add support for new value `multibanco` on enums `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` +* Add support for new value `stripe_s700` on enum `terminal.ReaderListParams.device_type` +* Add support for new value `issuing_dispute.funds_rescinded` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` diff --git a/.hark/changes/2024-07-25_stripe-openapi_update-generated-code2.change.md b/.hark/changes/2024-07-25_stripe-openapi_update-generated-code2.change.md new file mode 100644 index 000000000000..1fc91b6ac3c0 --- /dev/null +++ b/.hark/changes/2024-07-25_stripe-openapi_update-generated-code2.change.md @@ -0,0 +1,16 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1837 +is_stripe_api_change: true +released_in_version: 26.5.0 +--- + +* Add support for `update` method on resource `Checkout.Session` +* Add support for `transaction_id` on `Charge.payment_method_details.affirm` +* Add support for `buyer_id` on `Charge.payment_method_details.blik` +* Add support for `authorization_code` on `Charge.payment_method_details.card` +* Add support for `brand_product` on `Charge.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card_present`, `PaymentMethod.card.generated_from.payment_method_details.card_present`, and `PaymentMethod.card_present` +* Add support for `network_transaction_id` on `Charge.payment_method_details.card_present`, `Charge.payment_method_details.interac_present`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present`, and `PaymentMethod.card.generated_from.payment_method_details.card_present` +* Add support for `case_type` on `Dispute.payment_method_details.card` +* Add support for `twint` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` +* Add support for new values `invoice.overdue` and `invoice.will_be_due` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` diff --git a/.hark/changes/2024-08-01_prathmesh_update-generated-code.change.md b/.hark/changes/2024-08-01_prathmesh_update-generated-code.change.md new file mode 100644 index 000000000000..6ec91b61af3d --- /dev/null +++ b/.hark/changes/2024-08-01_prathmesh_update-generated-code.change.md @@ -0,0 +1,11 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1841 +semver_level: major +is_stripe_api_change: true +released_in_version: 26.6.0 +--- + +* Add support for new resources `Billing.AlertTriggered` and `Billing.Alert` +* ⚠️ Remove support for `authorization_code` on `Charge.payment_method_details.card`. This was accidentally released last week. +* Add support for new value `billing.alert.triggered` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` diff --git a/.hark/changes/2024-08-08_stripe-openapi_update-generated-code.change.md b/.hark/changes/2024-08-08_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000000..70fe35f32134 --- /dev/null +++ b/.hark/changes/2024-08-08_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,14 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1843 +is_stripe_api_change: true +released_in_version: 26.7.0 +--- + +* Add support for `activate`, `archive`, `create`, `deactivate`, `list`, and `retrieve` methods on resource `Billing.Alert` +* Add support for `retrieve` method on resource `Tax.Calculation` +* Add support for `type` on `Charge.payment_method_details.card_present.offline`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present.offline`, `PaymentMethod.card.generated_from.payment_method_details.card_present.offline`, and `SetupAttempt.payment_method_details.card_present.offline` +* Add support for `offline` on `ConfirmationToken.payment_method_preview.card_present` and `PaymentMethod.card_present` +* Add support for `related_customer` on `Identity.VerificationSession`, `identity.VerificationSessionCreateParams`, and `identity.VerificationSessionListParams` +* Change `InvoiceCreateParams.payment_settings.payment_method_options.card.installments.plan.count`, `InvoiceCreateParams.payment_settings.payment_method_options.card.installments.plan.interval`, `InvoiceUpdateParams.payment_settings.payment_method_options.card.installments.plan.count`, `InvoiceUpdateParams.payment_settings.payment_method_options.card.installments.plan.interval`, `PaymentIntentConfirmParams.payment_method_options.card.installments.plan.count`, `PaymentIntentConfirmParams.payment_method_options.card.installments.plan.interval`, `PaymentIntentCreateParams.payment_method_options.card.installments.plan.count`, `PaymentIntentCreateParams.payment_method_options.card.installments.plan.interval`, `PaymentIntentUpdateParams.payment_method_options.card.installments.plan.count`, and `PaymentIntentUpdateParams.payment_method_options.card.installments.plan.interval` to be optional +* Add support for new value `girocard` on enums `PaymentIntentConfirmParams.payment_method_options.card.network`, `PaymentIntentCreateParams.payment_method_options.card.network`, `PaymentIntentUpdateParams.payment_method_options.card.network`, `SetupIntentConfirmParams.payment_method_options.card.network`, `SetupIntentCreateParams.payment_method_options.card.network`, `SetupIntentUpdateParams.payment_method_options.card.network`, `SubscriptionCreateParams.payment_settings.payment_method_options.card.network`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.card.network` diff --git a/.hark/changes/2024-08-13_xavdid_update-recommended-vscode.change.md b/.hark/changes/2024-08-13_xavdid_update-recommended-vscode.change.md new file mode 100644 index 000000000000..5eb49b6f8a3d --- /dev/null +++ b/.hark/changes/2024-08-13_xavdid_update-recommended-vscode.change.md @@ -0,0 +1,5 @@ +--- +title: Update recommended VSCode extensions +pr_url: https://github.com/stripe/stripe-java/pull/1849 +released_in_version: 26.8.0 +--- diff --git a/.hark/changes/2024-08-29_ramya_generate-sdk-openapi.change.md b/.hark/changes/2024-08-29_ramya_generate-sdk-openapi.change.md new file mode 100644 index 000000000000..90cc039bc4bc --- /dev/null +++ b/.hark/changes/2024-08-29_ramya_generate-sdk-openapi.change.md @@ -0,0 +1,12 @@ +--- +title: Generate SDK for OpenAPI spec version 1230 +pr_url: https://github.com/stripe/stripe-java/pull/1856 +is_stripe_api_change: true +released_in_version: 26.9.0 +--- + +* Change `AccountLinkCreateParams.collection_options.fields` to be optional +* Add support for new value `hr_oib` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `TaxIdCreateParams.type`, and `tax.CalculationCreateParams.customer_details.tax_ids[].type` +* Add support for new value `issuing_regulatory_reporting` on enum `FileListParams.purpose` +* Add support for new value `issuing_regulatory_reporting` on enum `FileCreateParams.purpose` +* Add support for `status_details` on `TestHelpers.TestClock` diff --git a/.hark/changes/2024-09-12_stripe-openapi_update-generated-code.change.md b/.hark/changes/2024-09-12_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000000..13e8b7600607 --- /dev/null +++ b/.hark/changes/2024-09-12_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,12 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1864 +is_stripe_api_change: true +released_in_version: 26.11.0 +--- + +* Add support for new resource `InvoiceRenderingTemplate` +* Add support for `archive`, `list`, `retrieve`, and `unarchive` methods on resource `InvoiceRenderingTemplate` +* Add support for `required` on `Checkout.Session.tax_id_collection`, `PaymentLink.tax_id_collection`, `PaymentLinkCreateParams.tax_id_collection`, `PaymentLinkUpdateParams.tax_id_collection`, and `checkout.SessionCreateParams.tax_id_collection` +* Add support for `template` on `Customer.invoice_settings.rendering_options`, `CustomerCreateParams.invoice_settings.rendering_options`, `CustomerUpdateParams.invoice_settings.rendering_options`, `Invoice.rendering`, `InvoiceCreateParams.rendering`, and `InvoiceUpdateParams.rendering` +* Add support for `template_version` on `Invoice.rendering`, `InvoiceCreateParams.rendering`, and `InvoiceUpdateParams.rendering` diff --git a/.hark/changes/2024-10-01_ramya_support-apis-new.change.md b/.hark/changes/2024-10-01_ramya_support-apis-new.change.md new file mode 100644 index 000000000000..aa063dca4612 --- /dev/null +++ b/.hark/changes/2024-10-01_ramya_support-apis-new.change.md @@ -0,0 +1,40 @@ +--- +title: Support for APIs in the new API version 2024-09-30.acacia +pr_url: https://github.com/stripe/stripe-java/pull/1880 +is_stripe_api_change: true +released_in_version: 27.0.0 +--- + +This release changes the pinned API version to `2024-09-30.acacia`. Please read the [API Changelog](https://docs.stripe.com/changelog/acacia#2024-09-30.acacia) and carefully review the API changes before upgrading. + +### ⚠️ Breaking changes due to changes in the API + +* Rename `usage_threshold_config` to `usage_threshold` on `Billing.Alert` and `billing.AlertCreateParams` +* Remove support for `filter` on `Billing.Alert` and `billing.AlertCreateParams`. Use the filters on the `usage_threshold` instead +* Remove support for `customer_consent_collected` on `terminal.ReaderProcessSetupIntentParams` + +### ⚠️ Other Breaking changes in the SDK + +* Adjusted default values for HTTP requests. You can use the old defaults by setting them explicitly. New values are: + - max retries: `0` -> `2` +* Add method `parseThinEvent()` on the `StripeClient` class to parse [thin events](https://docs.corp.stripe.com/event-destinations#events-overview). Rename `constructEvent()` method on the same class to `parseSnapshotEvent()` to clearly distinguish between the two kinds of events. +* Breaking changes to public classes that are meant for internal use only and should not affect you + * Renamed `setStripeResponseGetter` on `ApiResource` to `setGlobalResponseGetter + * Added another parameter to FormEncoder.flattenParams() + * Removed the deprecated constructor overload on `APIRequest` + * Removed `GlobalStripeResponseGetterOptions.getAPiKey` & `StripeResponseGetterOptions.getApiKey`. We now use a higher abstraction called `Authenticator` instead of passing around api keys + * Changed return type of `RequestOptions.RequestOptionsBuilder.getConnectTimeout` from int to java.lang.Integer. + * Removed the public constructor on `StripeRequest` in favor of a static `StripeRequest.create()` + * The unused field `partnerId` on class `Stripe` is removed + +### Additions + +* Add support for `usage_threshold` on `Billing.Alert` and `billing.AlertCreateParams` +* Add support for `custom_unit_amount` on `ProductCreateParams.default_price_data` +* Add support for `allow_redisplay` on `terminal.ReaderProcessPaymentIntentParams.process_config` and `terminal.ReaderProcessSetupIntentParams` +* Add support for new value `2024-09-30.acacia` on enum `WebhookEndpointCreateParams.api_version` +* Add support for new Usage Billing APIs `Billing.MeterEvent`, `Billing.MeterEventAdjustments`, `Billing.MeterEventSession`, `Billing.MeterEventStream` and the new Events API `Core.Events` under the [v2 namespace ](https://docs.corp.stripe.com/api-v2-overview) +* Add methods [rawRequest()](https://github.com/stripe/stripe-java/tree/master?tab=readme-ov-file#custom-requests) on the `StripeClient` class that takes a HTTP method type, url and relevant parameters to make requests to the Stripe API that are not yet supported in the SDK. + +### Changes +* Change `billingportal.ConfigurationCreateParams.features.subscription_update.default_allowed_updates` and `billingportal.ConfigurationCreateParams.features.subscription_update.products` to be optional diff --git a/.hark/changes/2024-10-03_ramya_removed-class-requestsigni.change.md b/.hark/changes/2024-10-03_ramya_removed-class-requestsigni.change.md new file mode 100644 index 000000000000..445fb7fa3bb7 --- /dev/null +++ b/.hark/changes/2024-10-03_ramya_removed-class-requestsigni.change.md @@ -0,0 +1,5 @@ +--- +title: Removed the class `RequestSigningAuthenticator` that was added in the previous release. Request Signing is not supported yet. +pr_url: https://github.com/stripe/stripe-java/pull/1891 +released_in_version: 27.1.0 +--- diff --git a/.hark/changes/2024-10-03_ramya_update-class-thinevent.change.md b/.hark/changes/2024-10-03_ramya_update-class-thinevent.change.md new file mode 100644 index 000000000000..a8b6fec8554c --- /dev/null +++ b/.hark/changes/2024-10-03_ramya_update-class-thinevent.change.md @@ -0,0 +1,5 @@ +--- +title: Update the class for `ThinEvent` to include `livemode` and `reason` +pr_url: https://github.com/stripe/stripe-java/pull/1890 +released_in_version: 27.1.0 +--- diff --git a/.hark/changes/2024-10-09_ramya_fixed-example-raw.change.md b/.hark/changes/2024-10-09_ramya_fixed-example-raw.change.md new file mode 100644 index 000000000000..6cd4c8eb416b --- /dev/null +++ b/.hark/changes/2024-10-09_ramya_fixed-example-raw.change.md @@ -0,0 +1,5 @@ +--- +title: Fixed example for raw request in readme file +pr_url: https://github.com/stripe/stripe-java/pull/1894 +released_in_version: 27.1.1 +--- diff --git a/.hark/changes/2024-10-11_jar_clean-up-examples.change.md b/.hark/changes/2024-10-11_jar_clean-up-examples.change.md new file mode 100644 index 000000000000..f2439b680395 --- /dev/null +++ b/.hark/changes/2024-10-11_jar_clean-up-examples.change.md @@ -0,0 +1,5 @@ +--- +title: Clean up examples +pr_url: https://github.com/stripe/stripe-java/pull/1898 +released_in_version: 27.1.1 +--- diff --git a/.hark/changes/2024-10-18_xavdid_update-object-tags.change.md b/.hark/changes/2024-10-18_xavdid_update-object-tags.change.md new file mode 100644 index 000000000000..02bcb7cd2e05 --- /dev/null +++ b/.hark/changes/2024-10-18_xavdid_update-object-tags.change.md @@ -0,0 +1,7 @@ +--- +title: update object tags for meter-related classes +pr_url: https://github.com/stripe/stripe-java/pull/1901 +released_in_version: 27.1.1 +--- + +- fixes a bug where the `object` property of the `MeterEvent`, `MeterEventAdjustment`, and `MeterEventSession` didn't match the server. diff --git a/.hark/changes/2024-10-23_jar_update-webhook-api.change.md b/.hark/changes/2024-10-23_jar_update-webhook-api.change.md new file mode 100644 index 000000000000..a4e3f95668d6 --- /dev/null +++ b/.hark/changes/2024-10-23_jar_update-webhook-api.change.md @@ -0,0 +1,7 @@ +--- +title: Update webhook API version validation +pr_url: https://github.com/stripe/stripe-java/pull/1906 +released_in_version: 27.1.2 +--- + +- Update webhook event processing to accept events from any API version within the supported major release diff --git a/.hark/changes/2024-10-25_jar_fixes-bug-1899.change.md b/.hark/changes/2024-10-25_jar_fixes-bug-1899.change.md new file mode 100644 index 000000000000..1dcd566ad9f3 --- /dev/null +++ b/.hark/changes/2024-10-25_jar_fixes-bug-1899.change.md @@ -0,0 +1,7 @@ +--- +title: "Fixes bug [#1899](https://github.com/stripe/stripe-java/issues/1899)" +pr_url: https://github.com/stripe/stripe-java/pull/1911 +released_in_version: 27.1.2 +--- + +- Fixes the bug introduced in v27 where StripeException#getUserMessage on v1 API errors would return null instead of the error message. diff --git a/.hark/changes/2024-10-28_xavdid_add-tolerance-argument.change.md b/.hark/changes/2024-10-28_xavdid_add-tolerance-argument.change.md new file mode 100644 index 000000000000..3b443757bd47 --- /dev/null +++ b/.hark/changes/2024-10-28_xavdid_add-tolerance-argument.change.md @@ -0,0 +1,7 @@ +--- +title: add `tolerance` argument to `parseThinEvent` +pr_url: https://github.com/stripe/stripe-java/pull/1912 +released_in_version: 27.1.2 +--- + +- The default `tolerance` value is still what most users will want, but this fixes an oversight where it wasn't possible to set `tolerance` at all when parsing thin events diff --git a/.hark/changes/2024-11-06_helenye_catch-jsonsyntaxex-processing.change.md b/.hark/changes/2024-11-06_helenye_catch-jsonsyntaxex-processing.change.md new file mode 100644 index 000000000000..b24093b3b1d6 --- /dev/null +++ b/.hark/changes/2024-11-06_helenye_catch-jsonsyntaxex-processing.change.md @@ -0,0 +1,5 @@ +--- +title: Catch `JsonSyntaxException` when processing all errors +pr_url: https://github.com/stripe/stripe-java/pull/1919 +released_in_version: 28.0.1 +--- diff --git a/.hark/changes/2024-11-20_stripe-openapi_update-generated-code.change.md b/.hark/changes/2024-11-20_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000000..c24be2dc46a5 --- /dev/null +++ b/.hark/changes/2024-11-20_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,26 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1923 +is_stripe_api_change: true +released_in_version: 28.1.0 +--- + +* Add support for `respond` test helper method on resource `Issuing.Authorization` +* Add support for `authorizer` on `AccountPersonsParams.relationship` and `TokenCreateParams.person.relationship` +* Add support for `adaptive_pricing` on `Checkout.Session` and `checkout.SessionCreateParams` +* Add support for `mandate_options` on `Checkout.Session.payment_method_options.bacs_debit`, `Checkout.Session.payment_method_options.sepa_debit`, `checkout.SessionCreateParams.payment_method_options.bacs_debit`, and `checkout.SessionCreateParams.payment_method_options.sepa_debit` +* Add support for `request_extended_authorization`, `request_incremental_authorization`, `request_multicapture`, and `request_overcapture` on `Checkout.Session.payment_method_options.card` and `checkout.SessionCreateParams.payment_method_options.card` +* Add support for `capture_method` on `checkout.SessionCreateParams.payment_method_options.kakao_pay`, `checkout.SessionCreateParams.payment_method_options.kr_card`, `checkout.SessionCreateParams.payment_method_options.naver_pay`, `checkout.SessionCreateParams.payment_method_options.payco`, and `checkout.SessionCreateParams.payment_method_options.samsung_pay` +* Add support for new value `subscribe` on enums `PaymentLinkCreateParams.submit_type` and `checkout.SessionCreateParams.submit_type` +* Add support for new value `li_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `TaxIdCreateParams.type`, and `tax.CalculationCreateParams.customer_details.tax_ids[].type` +* Add support for new value `financial_account_statement` on enum `FileListParams.purpose` +* Add support for `account_holder_address`, `account_holder_name`, `account_type`, and `bank_address` on `FundingInstructions.bank_transfer.financial_addresses[].aba`, `FundingInstructions.bank_transfer.financial_addresses[].swift`, `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].aba`, and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].swift` +* Add support for new value `service_tax` on enums `InvoiceAddLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `InvoiceUpdateLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type` +* Add support for `merchant_amount` and `merchant_currency` on `issuing.AuthorizationCreateParams` +* Change `issuing.AuthorizationCreateParams.amount` to be optional +* Add support for `fraud_challenges` and `verified_by_fraud_challenge` on `Issuing.Authorization` +* Add support for new value `link` on enums `PaymentIntentConfirmParams.payment_method_options.card.network`, `PaymentIntentCreateParams.payment_method_options.card.network`, `PaymentIntentUpdateParams.payment_method_options.card.network`, `SetupIntentConfirmParams.payment_method_options.card.network`, `SetupIntentCreateParams.payment_method_options.card.network`, `SetupIntentUpdateParams.payment_method_options.card.network`, `SubscriptionCreateParams.payment_settings.payment_method_options.card.network`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.card.network` +* Add support for `submit_type` on `PaymentLinkUpdateParams` +* Add support for `trace_id` on `Payout` +* Add support for `network_decline_code` on `Refund.destination_details.blik` and `Refund.destination_details.swish` +* Add support for new value `2024-11-20.acacia` on enum `WebhookEndpointCreateParams.api_version` diff --git a/.hark/changes/2024-12-18_stripe-openapi_update-generated-code.change.md b/.hark/changes/2024-12-18_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000000..c9db4b7493be --- /dev/null +++ b/.hark/changes/2024-12-18_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,25 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1931 +is_stripe_api_change: true +released_in_version: 28.2.0 +--- + +* Add support for `network_advice_code` and `network_decline_code` on `Charge.outcome`, `Invoice.last_finalization_error`, `PaymentIntent.last_payment_error`, `SetupAttempt.setup_error`, `SetupIntent.last_setup_error`, and `StripeError` +* Add support for `credits_application_invoice_voided` on `Billing.CreditBalanceTransaction.credit` +* Change type of `Billing.CreditBalanceTransaction.credit.type` from `literal('credits_granted')` to `enum('credits_application_invoice_voided'|'credits_granted')` +* Add support for `allow_redisplay` on `Card` and `Source` +* Add support for `regulated_status` on `Card`, `Charge.payment_method_details.card`, `ConfirmationToken.payment_method_preview.card`, and `PaymentMethod.card` +* Add support for `funding` on `Charge.payment_method_details.amazon_pay` and `Charge.payment_method_details.revolut_pay` +* Add support for `network_transaction_id` on `Charge.payment_method_details.card` +* Add support for `reference_prefix` on `Checkout.Session.payment_method_options.bacs_debit.mandate_options`, `Checkout.Session.payment_method_options.sepa_debit.mandate_options`, `PaymentIntent.payment_method_options.bacs_debit.mandate_options`, `PaymentIntent.payment_method_options.sepa_debit.mandate_options`, `PaymentIntentConfirmParams.payment_method_options.bacs_debit.mandate_options`, `PaymentIntentConfirmParams.payment_method_options.sepa_debit.mandate_options`, `PaymentIntentCreateParams.payment_method_options.bacs_debit.mandate_options`, `PaymentIntentCreateParams.payment_method_options.sepa_debit.mandate_options`, `PaymentIntentUpdateParams.payment_method_options.bacs_debit.mandate_options`, `PaymentIntentUpdateParams.payment_method_options.sepa_debit.mandate_options`, `SetupIntent.payment_method_options.bacs_debit.mandate_options`, `SetupIntent.payment_method_options.sepa_debit.mandate_options`, `SetupIntentConfirmParams.payment_method_options.bacs_debit.mandate_options`, `SetupIntentConfirmParams.payment_method_options.sepa_debit.mandate_options`, `SetupIntentCreateParams.payment_method_options.bacs_debit.mandate_options`, `SetupIntentCreateParams.payment_method_options.sepa_debit.mandate_options`, `SetupIntentUpdateParams.payment_method_options.bacs_debit.mandate_options`, `SetupIntentUpdateParams.payment_method_options.sepa_debit.mandate_options`, `checkout.SessionCreateParams.payment_method_options.bacs_debit.mandate_options`, and `checkout.SessionCreateParams.payment_method_options.sepa_debit.mandate_options` +* Add support for new values `al_tin`, `am_tin`, `ao_tin`, `ba_tin`, `bb_tin`, `bs_tin`, `cd_nif`, `gn_nif`, `kh_tin`, `me_pib`, `mk_vat`, `mr_nif`, `np_pan`, `sn_ninea`, `sr_fin`, `tj_tin`, `ug_tin`, `zm_tin`, and `zw_tin` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `TaxIdCreateParams.type`, and `tax.CalculationCreateParams.customer_details.tax_ids[].type` +* Add support for `visa_compliance` on `Dispute.evidence.enhanced_evidence`, `Dispute.evidence_details.enhanced_eligibility`, and `DisputeUpdateParams.evidence.enhanced_evidence` +* Add support for new value `request_signature` on enum `forwarding.RequestCreateParams.replacements[]` +* Add support for `account_holder_address` and `bank_address` on `FundingInstructions.bank_transfer.financial_addresses[].iban`, `FundingInstructions.bank_transfer.financial_addresses[].sort_code`, `FundingInstructions.bank_transfer.financial_addresses[].spei`, `FundingInstructions.bank_transfer.financial_addresses[].zengin`, `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].iban`, `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].sort_code`, `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].spei`, and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].zengin` +* Add support for `account_holder_name` on `FundingInstructions.bank_transfer.financial_addresses[].spei` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].spei` +* Add support for `disabled_reason` on `Invoice.automatic_tax`, `Subscription.automatic_tax`, `SubscriptionSchedule.default_settings.automatic_tax`, and `SubscriptionSchedule.phases[].automatic_tax` +* Add support for `tax_id` on `Issuing.Authorization.merchant_data` and `Issuing.Transaction.merchant_data` +* Add support for `trial_period_days` on `PaymentLinkUpdateParams.subscription_data` +* Add support for `al`, `am`, `ao`, `ba`, `bb`, `bs`, `cd`, `gn`, `kh`, `me`, `mk`, `mr`, `np`, `pe`, `sn`, `sr`, `tj`, `ug`, `uy`, `zm`, and `zw` on `Tax.Registration.country_options` and `tax.RegistrationCreateParams.country_options` +* Add support for new value `2024-12-18.acacia` on enum `WebhookEndpointCreateParams.api_version` diff --git a/.hark/changes/2024-12-19_jar_added-pull-request.change.md b/.hark/changes/2024-12-19_jar_added-pull-request.change.md new file mode 100644 index 000000000000..6a4f7290e158 --- /dev/null +++ b/.hark/changes/2024-12-19_jar_added-pull-request.change.md @@ -0,0 +1,5 @@ +--- +title: Added pull request template +pr_url: https://github.com/stripe/stripe-java/pull/1933 +released_in_version: 28.3.0 +--- diff --git a/.hark/changes/2025-01-13_xavdid_add-justfile-tweak.change.md b/.hark/changes/2025-01-13_xavdid_add-justfile-tweak.change.md new file mode 100644 index 000000000000..438c935ca2af --- /dev/null +++ b/.hark/changes/2025-01-13_xavdid_add-justfile-tweak.change.md @@ -0,0 +1,5 @@ +--- +title: add justfile tweak readme, remove coveralls +pr_url: https://github.com/stripe/stripe-java/pull/1934 +released_in_version: 28.3.0 +--- diff --git a/.hark/changes/2025-01-16_jar_added-contributing-md.change.md b/.hark/changes/2025-01-16_jar_added-contributing-md.change.md new file mode 100644 index 000000000000..e2f8ac1a340a --- /dev/null +++ b/.hark/changes/2025-01-16_jar_added-contributing-md.change.md @@ -0,0 +1,5 @@ +--- +title: Added CONTRIBUTING.md file +pr_url: https://github.com/stripe/stripe-java/pull/1937 +released_in_version: 28.3.0 +--- diff --git a/.hark/changes/2025-01-16_xavdid_update-justfile-import.change.md b/.hark/changes/2025-01-16_xavdid_update-justfile-import.change.md new file mode 100644 index 000000000000..1f7d8e7b03e9 --- /dev/null +++ b/.hark/changes/2025-01-16_xavdid_update-justfile-import.change.md @@ -0,0 +1,5 @@ +--- +title: update justfile import & pin CI ubuntu +pr_url: https://github.com/stripe/stripe-java/pull/1938 +released_in_version: 28.3.0 +--- diff --git a/.hark/changes/2025-01-25_prathmesh_updated-upload-artifact.change.md b/.hark/changes/2025-01-25_prathmesh_updated-upload-artifact.change.md new file mode 100644 index 000000000000..4f55204b5223 --- /dev/null +++ b/.hark/changes/2025-01-25_prathmesh_updated-upload-artifact.change.md @@ -0,0 +1,5 @@ +--- +title: Updated upload artifact ci action +pr_url: https://github.com/stripe/stripe-java/pull/1941 +released_in_version: 28.3.0 +--- diff --git a/.hark/changes/2025-01-27_stripe-openapi_update-generated-code.change.md b/.hark/changes/2025-01-27_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000000..2c268f4a1388 --- /dev/null +++ b/.hark/changes/2025-01-27_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,31 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1936 +is_stripe_api_change: true +released_in_version: 28.3.0 +--- + +* Add support for `close` method on resource `Treasury.FinancialAccount` +* Add support for `pay_by_bank_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` +* Add support for `directorship_declaration` and `ownership_exemption_reason` on `Account.company`, `AccountCreateParams.company`, `AccountUpdateParams.company`, and `TokenCreateParams.account.company` +* Add support for `proof_of_ultimate_beneficial_ownership` on `AccountCreateParams.documents` and `AccountUpdateParams.documents` +* Add support for `financial_account` on `AccountSession.components`, `AccountSessionCreateParams.components`, and `Treasury.OutboundTransfer.destination_payment_method_details` +* Add support for `financial_account_transactions`, `issuing_card`, and `issuing_cards_list` on `AccountSession.components` and `AccountSessionCreateParams.components` +* Add support for `advice_code` on `Charge.outcome`, `Invoice.last_finalization_error`, `PaymentIntent.last_payment_error`, `SetupAttempt.setup_error`, `SetupIntent.last_setup_error`, and `StripeError` +* Add support for `pay_by_bank` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, `SetupIntentUpdateParams.payment_method_data`, and `checkout.SessionCreateParams.payment_method_options` +* Add support for `country` on `Charge.payment_method_details.paypal`, `ConfirmationToken.payment_method_preview.paypal`, and `PaymentMethod.paypal` +* Add support for new value `pay_by_bank` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, `PaymentMethodListParams.type`, and `checkout.SessionCreateParams.payment_method_types[]` +* Add support for new value `SD` on enums `PaymentLinkCreateParams.shipping_address_collection.allowed_countries[]`, `PaymentLinkUpdateParams.shipping_address_collection.allowed_countries[]`, and `checkout.SessionCreateParams.shipping_address_collection.allowed_countries[]` +* Add support for `discounts` on `Checkout.Session` +* Add support for new value `pay_by_bank` on enums `ConfirmationTokenCreateParams.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` +* Add support for new value `pay_by_bank` on enums `PaymentLinkCreateParams.payment_method_types[]` and `PaymentLinkUpdateParams.payment_method_types[]` +* Add support for `phone_number_collection` on `PaymentLinkUpdateParams` +* Add support for `jpy` on `Terminal.Configuration.tipping`, `terminal.ConfigurationCreateParams.tipping`, and `terminal.ConfigurationUpdateParams.tipping` +* Add support for `nickname` on `Treasury.FinancialAccount`, `treasury.FinancialAccountCreateParams`, and `treasury.FinancialAccountUpdateParams` +* Add support for `forwarding_settings` on `treasury.FinancialAccountUpdateParams` +* Add support for `is_default` on `Treasury.FinancialAccount` +* Add support for `destination_payment_method_data` on `treasury.OutboundTransferCreateParams` +* Change type of `Treasury.OutboundTransfer.destination_payment_method_details.type` from `literal('us_bank_account')` to `enum('financial_account'|'us_bank_account')` +* Add support for new value `outbound_transfer` on enum `treasury.ReceivedCreditListParams.linked_flows.source_flow_type` +* Add support for `outbound_transfer` on `Treasury.ReceivedCredit.linked_flows.source_flow_details` +* Add support for new value `2025-01-27.acacia` on enum `WebhookEndpointCreateParams.api_version` diff --git a/.hark/changes/2025-02-05_xavdid_ensure-getrawjsonob-returns.change.md b/.hark/changes/2025-02-05_xavdid_ensure-getrawjsonob-returns.change.md new file mode 100644 index 000000000000..ad25cf046282 --- /dev/null +++ b/.hark/changes/2025-02-05_xavdid_ensure-getrawjsonob-returns.change.md @@ -0,0 +1,5 @@ +--- +title: Ensure `getRawJsonObject` returns data for constructed webhooks +pr_url: https://github.com/stripe/stripe-java/pull/1946 +released_in_version: 28.3.1 +--- diff --git a/.hark/changes/2025-02-13_xavdid_add-codeowners-file.change.md b/.hark/changes/2025-02-13_xavdid_add-codeowners-file.change.md new file mode 100644 index 000000000000..44a6ef3b819f --- /dev/null +++ b/.hark/changes/2025-02-13_xavdid_add-codeowners-file.change.md @@ -0,0 +1,5 @@ +--- +title: add codeowners file +pr_url: https://github.com/stripe/stripe-java/pull/1948 +released_in_version: 28.4.0 +--- diff --git a/.hark/changes/2025-02-24_stripe-openapi_update-generated-code.change.md b/.hark/changes/2025-02-24_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000000..67a456084454 --- /dev/null +++ b/.hark/changes/2025-02-24_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,16 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/1943 +is_stripe_api_change: true +released_in_version: 28.4.0 +--- + +* Add support for `prices` on `Billing.CreditGrant.applicability_config.scope`, `billing.CreditBalanceSummaryRetrieveParams.filter.applicability_scope`, and `billing.CreditGrantCreateParams.applicability_config.scope` +* Change `billing.CreditBalanceSummaryRetrieveParams.filter.applicability_scope.price_type` and `billing.CreditGrantCreateParams.applicability_config.scope.price_type` to be optional +* Add support for `priority` on `Billing.CreditGrant` and `billing.CreditGrantCreateParams` +* Add support for `target_date` on `Checkout.Session.payment_method_options.acss_debit`, `Checkout.Session.payment_method_options.au_becs_debit`, `Checkout.Session.payment_method_options.bacs_debit`, `Checkout.Session.payment_method_options.sepa_debit`, `Checkout.Session.payment_method_options.us_bank_account`, `PaymentIntent.payment_method_options.acss_debit`, `PaymentIntent.payment_method_options.au_becs_debit`, `PaymentIntent.payment_method_options.bacs_debit`, `PaymentIntent.payment_method_options.sepa_debit`, `PaymentIntent.payment_method_options.us_bank_account`, `PaymentIntentConfirmParams.payment_method_options.acss_debit`, `PaymentIntentConfirmParams.payment_method_options.au_becs_debit`, `PaymentIntentConfirmParams.payment_method_options.bacs_debit`, `PaymentIntentConfirmParams.payment_method_options.sepa_debit`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account`, `PaymentIntentCreateParams.payment_method_options.acss_debit`, `PaymentIntentCreateParams.payment_method_options.au_becs_debit`, `PaymentIntentCreateParams.payment_method_options.bacs_debit`, `PaymentIntentCreateParams.payment_method_options.sepa_debit`, `PaymentIntentCreateParams.payment_method_options.us_bank_account`, `PaymentIntentUpdateParams.payment_method_options.acss_debit`, `PaymentIntentUpdateParams.payment_method_options.au_becs_debit`, `PaymentIntentUpdateParams.payment_method_options.bacs_debit`, `PaymentIntentUpdateParams.payment_method_options.sepa_debit`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account`, `checkout.SessionCreateParams.payment_method_options.acss_debit`, `checkout.SessionCreateParams.payment_method_options.au_becs_debit`, `checkout.SessionCreateParams.payment_method_options.bacs_debit`, `checkout.SessionCreateParams.payment_method_options.sepa_debit`, and `checkout.SessionCreateParams.payment_method_options.us_bank_account` +* Add support for `restrictions` on `Checkout.Session.payment_method_options.card` and `checkout.SessionCreateParams.payment_method_options.card` +* Add support for `collected_information` on `Checkout.Session` and `checkout.SessionUpdateParams` +* Add support for `metadata` on `ProductCreateParams.default_price_data` +* Change type of `TokenCreateParams.person.political_exposure` from `string` to `enum('existing'|'none')` +* Add support for new value `2025-02-24.acacia` on enum `WebhookEndpointCreateParams.api_version` diff --git a/.hark/changes/2025-03-17_mbroshi_add-equalsandhas-annotations.change.md b/.hark/changes/2025-03-17_mbroshi_add-equalsandhas-annotations.change.md new file mode 100644 index 000000000000..ca66ebbc0bc5 --- /dev/null +++ b/.hark/changes/2025-03-17_mbroshi_add-equalsandhas-annotations.change.md @@ -0,0 +1,7 @@ +--- +title: Add @EqualsAndHashCode annotations +pr_url: https://github.com/stripe/stripe-java/pull/1955 +released_in_version: 29.0.0 +--- + +- Adds `@EqualsAndHashCode(callSuper = false)` to all Params objects which is useful for unit test assertions and caching scenarios. diff --git a/.hark/changes/2025-03-19_ramya_support-stripeaccoun-stripeclient.change.md b/.hark/changes/2025-03-19_ramya_support-stripeaccoun-stripeclient.change.md new file mode 100644 index 000000000000..3e5ed385dd23 --- /dev/null +++ b/.hark/changes/2025-03-19_ramya_support-stripeaccoun-stripeclient.change.md @@ -0,0 +1,9 @@ +--- +title: Support for StripeAccount in StripeClient, and StripeContext on V1 +pr_url: https://github.com/stripe/stripe-java/pull/1958 +semver_level: major +released_in_version: 29.0.0 +--- + +* ⚠️ Adds `getStripeAccount` to `StripeResponseGetterOptions`. If you have a class that extends `StripeResponseGetterOptions` you will need to implement this method. +* Adds `setStripeAccount` to StripeClientBuilder, so you can specify the Stripe-Account header at the client (instead of the individual request) level. diff --git a/.hark/changes/2025-03-31_ramya_support-apis-new.change.md b/.hark/changes/2025-03-31_ramya_support-apis-new.change.md new file mode 100644 index 000000000000..164bd780d55b --- /dev/null +++ b/.hark/changes/2025-03-31_ramya_support-apis-new.change.md @@ -0,0 +1,78 @@ +--- +title: Support for APIs in the new API version 2025-03-31.basil +pr_url: https://github.com/stripe/stripe-java/pull/1950 +is_stripe_api_change: true +released_in_version: 29.0.0 +--- + +This release changes the pinned API version to `2025-03-31.basil`. + +### ⚠️ Breaking changes due to changes in the Stripe API + +Please review details for the breaking changes and alternatives in the [Stripe API changelog](https://docs.stripe.com/changelog/basil) before upgrading. + +* Remove support for resources `SubscriptionItemUsageRecordSummary` and `SubscriptionItemUsageRecord` +* Remove support for `create` method on resource `SubscriptionItemUsageRecord` +* Remove support for `list` method on resource `SubscriptionItemUsageRecordSummary` +* Remove support for `upcomingLines` and `upcoming` methods on resource `Invoice` +* Remove support for `invoice` on `Charge` and `PaymentIntent` +* Remove support for `shippingDetails` on `Checkout.Session` +* Remove support for `carrier`, `phone`, and `trackingNumber` on `Checkout.Session.collected_information.shipping_details` +* Remove support for `refund` on `CreditNoteCreateParams`, `CreditNotePreviewLinesListParams`, `CreditNotePreviewParams`, and `CreditNote` +* Remove support for `taxAmounts` on `CreditNoteLineItem`, `CreditNote`, and `InvoiceLineItem` +* Remove support for `amountExcludingTax` and `unitAmountExcludingTax` on `CreditNoteLineItem` and `InvoiceLineItem` +* Remove support for `coupon` on `CustomerCreateParams`, `CustomerUpdateParams`, `InvoiceCreatePreviewParams.schedule_details.phases[]`, `InvoiceCreatePreviewParams`, `SubscriptionCreateParams`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.phases[]`, and `SubscriptionUpdateParams` +* Remove support for `promotionCode` on `CustomerCreateParams`, `CustomerUpdateParams`, `SubscriptionCreateParams`, and `SubscriptionUpdateParams` +* Remove support for `price` on `InvoiceAddLinesParams.lines[]`, `InvoiceItemCreateParams`, `InvoiceItemUpdateParams`, `InvoiceItem`, `InvoiceLineItemUpdateParams`, `InvoiceLineItem`, and `InvoiceUpdateLinesParams.lines[]` +* Remove support for `billingThresholds` on `InvoiceCreatePreviewParams.schedule_details.phases[].items[]`, `InvoiceCreatePreviewParams.schedule_details.phases[]`, `InvoiceCreatePreviewParams.subscription_details.items[]`, `SubscriptionCreateParams.items[]`, `SubscriptionCreateParams`, `SubscriptionItemCreateParams`, `SubscriptionItemUpdateParams`, `SubscriptionItem`, `SubscriptionSchedule.default_settings`, `SubscriptionSchedule.phases[].items[]`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.default_settings`, `SubscriptionScheduleCreateParams.phases[].items[]`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.default_settings`, `SubscriptionScheduleUpdateParams.phases[].items[]`, `SubscriptionScheduleUpdateParams.phases[]`, `SubscriptionUpdateParams.items[]`, `SubscriptionUpdateParams`, and `Subscription` +* Remove support for `applicationFeeAmount`, `charge`, `paidOutOfBand`, `paid`, `paymentIntent`, `quote`, `subscription`, `subscriptionDetails`, `subscriptionProrationDate`, `tax`, `totalTaxAmounts`, and `transferData` on `Invoice` +* Remove support for `discount` on `Invoice` and `Subscription` +* Remove support for `invoiceItem`, `prorationDetails`, `proration`, `taxRates`, and `type` on `InvoiceLineItem` +* Remove support for `plan` and `subscriptionItem` on `InvoiceItem` and `InvoiceLineItem` +* Remove support for `unitAmount` on `InvoiceItemCreateParams`, `InvoiceItemUpdateParams`, and `InvoiceItem` +* Remove support for `subscription` and `unitAmountDecimal` on `InvoiceItem` +* Remove support for `naverPay` on `PaymentMethodUpdateParams` +* Remove support for `aggregateUsage` on `PlanCreateParams`, `Plan`, `Price.recurring`, and `PriceCreateParams.recurring` +* Remove support for `currentPeriodEnd` and `currentPeriodStart` on `Subscription` +* Remove support for page on `V2.EventDestinationListParams` and `V2.EventListParams` + +### Changes to the Stripe API + +* Change `PaymentIntentConfirmParams.payment_method_options.wechat_pay.client`, `PaymentIntentCreateParams.payment_method_options.wechat_pay.client`, and `PaymentIntentUpdateParams.payment_method_options.wechat_pay.client` to be optional +* Change `politicalExposure` on `AccountPersonUpdateParams`, `AccountPersonCreateParams` from `string` to `PoliticalExposure` enum. + +### Additions to the Stripe API + +* Add support for new resource `InvoicePayment` +* Add support for `list` and `retrieve` methods on resource `InvoicePayment` +* Add support for `billiePayments`, `nzBankAccountBecsDebitPayments`, and `satispayPayments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` +* Add support for `hostedPaymentMethodSave` on `Account.settings.invoices` and `AccountUpdateParams.settings.invoices` +* Add support for `invoices` on `AccountCreateParams.settings` +* Add support for new value `last` on enum `billing.MeterCreateParams.default_aggregation.formula` +* Add support for `presentmentDetails` on `Charge`, `Checkout.Session`, `PaymentIntent`, and `Refund` +* Add support for `billie` and `satispay` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.payment_method_data`, `CustomerPaymentMethod`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` +* Add support for `nzBankAccount` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.payment_method_data`, `CustomerPaymentMethod`, `Mandate.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` +* Add support for `optionalItems` on `Checkout.Session`, `PaymentLinkCreateParams`, `PaymentLink`, and `checkout.SessionCreateParams` +* Add support for `permissions` on `Checkout.Session` and `checkout.SessionCreateParams` +* Add support for new values `billie` and `satispay` on enum `checkout.SessionCreateParams.paymentMethodTypes` +* Add support for new value `custom` on enum `checkout.SessionCreateParams.uiMode` +* Add support for `shippingOptions` on `checkout.SessionUpdateParams` +* Add support for new values `billie`, `nz_bank_account`, and `satispay` on enums `ConfirmationTokenCreateParams.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` +* Add support for `buyerId` on `ConfirmationToken.payment_method_preview.naver_pay`, `CustomerPaymentMethod.naver_pay`, and `PaymentMethod.naver_pay` +* Add support for `refunds` on `CreditNoteCreateParams`, `CreditNotePreviewLinesListParams`, `CreditNotePreviewParams`, and `CreditNote` +* Add support for `totalTaxes` on `CreditNote` and `Invoice` +* Add support for `taxes` on `CreditNoteLineItem` and `InvoiceLineItem` +* Add support for `taxabilityReason` on `InvoiceAddLinesParams.lines[].tax_amounts[]`, `InvoiceLineItemUpdateParams.tax_amounts[]`, and `InvoiceUpdateLinesParams.lines[].tax_amounts[]` +* Add support for `jurisdictionLevel` on `InvoiceAddLinesParams.lines[].tax_amounts[].tax_rate_data`, `InvoiceLineItemUpdateParams.tax_amounts[].tax_rate_data`, and `InvoiceUpdateLinesParams.lines[].tax_amounts[].tax_rate_data` +* Add support for `amountOverpaid`, `confirmationSecret`, and `payments` on `Invoice` +* Add support for `parent` on `InvoiceItem`, `InvoiceLineItem`, and `Invoice` +* Add support for new values `klarna` and `nz_bank_account` on enums `InvoiceCreateParams.payment_settings.paymentMethodTypes`, `InvoiceUpdateParams.payment_settings.paymentMethodTypes`, `SubscriptionCreateParams.payment_settings.paymentMethodTypes`, and `SubscriptionUpdateParams.payment_settings.paymentMethodTypes` +* Add support for `pricing` on `InvoiceAddLinesParams.lines[]`, `InvoiceItemCreateParams`, `InvoiceItemUpdateParams`, `InvoiceItem`, `InvoiceLineItemUpdateParams`, `InvoiceLineItem`, and `InvoiceUpdateLinesParams.lines[]` +* Add support for `taxabilityReason` on `InvoiceAddLinesParams.lines[].tax_amounts[]`, `InvoiceLineItemUpdateParams.tax_amounts[]`, and `InvoiceUpdateLinesParams.lines[].tax_amounts[]` +* Add support for `defaultValue` on `PaymentLink.custom_fields[].dropdown`, `PaymentLink.custom_fields[].numeric`, `PaymentLink.custom_fields[].text`, `PaymentLinkCreateParams.custom_fields[].dropdown`, `PaymentLinkCreateParams.custom_fields[].numeric`, `PaymentLinkCreateParams.custom_fields[].text`, `PaymentLinkUpdateParams.custom_fields[].dropdown`, `PaymentLinkUpdateParams.custom_fields[].numeric`, and `PaymentLinkUpdateParams.custom_fields[].text` +* Add support for new values `billie` and `satispay` on enums `PaymentLinkCreateParams.paymentMethodTypes` and `PaymentLinkUpdateParams.paymentMethodTypes` +* Add support for `nzBankTransfer` on `Refund.destination_details` +* Add support for `currentPeriodEnd` and `currentPeriodStart` on `SubscriptionItem` +* Add support for `wifi` on `Terminal.Configuration`, `terminal.ConfigurationCreateParams`, and `terminal.ConfigurationUpdateParams` +* Add support for new value `invoice.overpaid` on enums `WebhookEndpointCreateParams.enabledEvents` and `WebhookEndpointUpdateParams.enabledEvents` +* Add support for new values `2025-03-01.dashboard` and `2025-03-31.basil` on enum `WebhookEndpointCreateParams.apiVersion` diff --git a/.hark/changes/2025-04-02_xavdid_require-beta-sdks.change.md b/.hark/changes/2025-04-02_xavdid_require-beta-sdks.change.md new file mode 100644 index 000000000000..12c67613fc24 --- /dev/null +++ b/.hark/changes/2025-04-02_xavdid_require-beta-sdks.change.md @@ -0,0 +1,9 @@ +--- +title: require beta SDKs match event versions exactly when deserializing +pr_url: https://github.com/stripe/stripe-java/pull/1971 +semver_level: major +released_in_version: 29.1.0 +--- + +- ⚠️ Public Preview SDKs now require an exact API version match when deserializing webhooks + - To deserialize events from another API version, use `EventDataObjectDeserializer .deserializeUnsafe()` instead of `.deserialize()`. diff --git a/.hark/changes/2025-04-08_ramya_update-readme-clarificatio.change.md b/.hark/changes/2025-04-08_ramya_update-readme-clarificatio.change.md new file mode 100644 index 000000000000..309e275df9ff --- /dev/null +++ b/.hark/changes/2025-04-08_ramya_update-readme-clarificatio.change.md @@ -0,0 +1,5 @@ +--- +title: Update readme with clarification on resource based call patterns +pr_url: https://github.com/stripe/stripe-java/pull/1982 +released_in_version: 29.1.0 +--- diff --git a/.hark/changes/2025-04-08_xavdid_backport-beta-fixes.change.md b/.hark/changes/2025-04-08_xavdid_backport-beta-fixes.change.md new file mode 100644 index 000000000000..1c2d8d1a31be --- /dev/null +++ b/.hark/changes/2025-04-08_xavdid_backport-beta-fixes.change.md @@ -0,0 +1,5 @@ +--- +title: backport beta fixes +pr_url: https://github.com/stripe/stripe-java/pull/1976 +released_in_version: 29.1.0 +--- diff --git a/.hark/changes/2025-04-21_mbroshi_update-manual-installation.change.md b/.hark/changes/2025-04-21_mbroshi_update-manual-installation.change.md new file mode 100644 index 000000000000..cbaf8d215eb7 --- /dev/null +++ b/.hark/changes/2025-04-21_mbroshi_update-manual-installation.change.md @@ -0,0 +1,5 @@ +--- +title: Update manual installation instructions in README.md +pr_url: https://github.com/stripe/stripe-java/pull/1989 +released_in_version: 29.1.0 +--- diff --git a/.hark/changes/2025-05-02_jar_adds-contributing-md.change.md b/.hark/changes/2025-05-02_jar_adds-contributing-md.change.md new file mode 100644 index 000000000000..ce001a40f5b5 --- /dev/null +++ b/.hark/changes/2025-05-02_jar_adds-contributing-md.change.md @@ -0,0 +1,5 @@ +--- +title: Adds CONTRIBUTING.md +pr_url: https://github.com/stripe/stripe-java/pull/1997 +released_in_version: 29.2.0 +--- diff --git a/.hark/changes/2025-05-27_jar_adds-generated-customer.change.md b/.hark/changes/2025-05-27_jar_adds-generated-customer.change.md new file mode 100644 index 000000000000..4e8590382487 --- /dev/null +++ b/.hark/changes/2025-05-27_jar_adds-generated-customer.change.md @@ -0,0 +1,7 @@ +--- +title: Adds generated Customer retrievePaymentMethod overload +pr_url: https://github.com/stripe/stripe-java/pull/2002 +released_in_version: 29.2.0 +--- + +* Adds `retrievePaymentMethod` overload to `Customer` that accepts a payment method id and `RequestOptions` object diff --git a/.hark/changes/2025-06-03_prathmesh_include-java-versions.change.md b/.hark/changes/2025-06-03_prathmesh_include-java-versions.change.md new file mode 100644 index 000000000000..bd844820cf70 --- /dev/null +++ b/.hark/changes/2025-06-03_prathmesh_include-java-versions.change.md @@ -0,0 +1,5 @@ +--- +title: Include Java versions 21, 22, 23, 24 in CI +pr_url: https://github.com/stripe/stripe-java/pull/1987 +released_in_version: 29.3.0 +--- diff --git a/.hark/changes/2025-08-21_prathmesh_introduce-v1-namespaces.change.md b/.hark/changes/2025-08-21_prathmesh_introduce-v1-namespaces.change.md new file mode 100644 index 000000000000..df99864c764c --- /dev/null +++ b/.hark/changes/2025-08-21_prathmesh_introduce-v1-namespaces.change.md @@ -0,0 +1,15 @@ +--- +title: Introduce V1 namespaces in StripeClient +pr_url: https://github.com/stripe/stripe-java/pull/2032 +released_in_version: 29.5.0 +--- + +- All the top level non-namespaced services under StripeClient services(eg. customers, products) are copied under the new V1 namespace. These top level non-namespaced services will be marked as deprecated in the next major release and will be removed in a future release. Eg. +```diff +StripeClient client = new StripeClient("sk_test...") + +# Accessing V1 Stripe services on a StripeClient should be through the V1 namespace +- client.customers().list() ++ client.v1().customers().list() +``` +Refer to the [migration guide](https://github.com/stripe/stripe-java/wiki/v1-namespace-in-StripeClient) for help upgrading. diff --git a/.hark/changes/2025-08-27_ramya_add-section-private.change.md b/.hark/changes/2025-08-27_ramya_add-section-private.change.md new file mode 100644 index 000000000000..d075e184438a --- /dev/null +++ b/.hark/changes/2025-08-27_ramya_add-section-private.change.md @@ -0,0 +1,5 @@ +--- +title: Add section on private preview SDKs in readme +pr_url: https://github.com/stripe/stripe-java/pull/2034 +released_in_version: 29.5.0 +--- diff --git a/.hark/changes/2025-09-04_mbroshi_fix-type-bounds.change.md b/.hark/changes/2025-09-04_mbroshi_fix-type-bounds.change.md new file mode 100644 index 000000000000..41f708c54f0d --- /dev/null +++ b/.hark/changes/2025-09-04_mbroshi_fix-type-bounds.change.md @@ -0,0 +1,8 @@ +--- +title: Fix type bounds on request +pr_url: https://github.com/stripe/stripe-java/pull/2037 +semver_level: major +released_in_version: 30.0.0 +--- + +* ⚠️ Changes the signature of `LiveResponseGetter#request`, `ApiService#request`, and `StripeResponseGetter#request` to return `` instead of ``. This only affects advanced use cases where users are extending `StripeObjectInterface` with their own objects to deserialize Stripe responses. Those objects will now need to extend `StripeObject`. diff --git a/.hark/changes/2025-09-08_xavdid_build-sdk-w.change.md b/.hark/changes/2025-09-08_xavdid_build-sdk-w.change.md new file mode 100644 index 000000000000..1331223d82bd --- /dev/null +++ b/.hark/changes/2025-09-08_xavdid_build-sdk-w.change.md @@ -0,0 +1,10 @@ +--- +title: Build SDK w/ V2 OpenAPI spec +pr_url: https://github.com/stripe/stripe-java/pull/2039 +semver_level: major +released_in_version: 30.0.0 +--- + +- ⚠️ The delete methods for v2 APIs (the ones in the `StripeClient.v2` namespace) now return a `V2DeletedObject` which has the id of the object that has been deleted and a string representing the type of the object that has been deleted. +- ⚠️ Query params on v2 APIs (like `limit`) are now `Long` instead of `Integer` (to match v1 APIs) +- ⚠️ Deeply nested param hashes with no properties no longer have classes generated for them. Instead, they're typed as `Map`. Because there were no params, it's unlikely you were using these classes. diff --git a/.hark/changes/2025-09-18_xavdid_throw-apikeymissin-instead.change.md b/.hark/changes/2025-09-18_xavdid_throw-apikeymissin-instead.change.md new file mode 100644 index 000000000000..2c07b098308b --- /dev/null +++ b/.hark/changes/2025-09-18_xavdid_throw-apikeymissin-instead.change.md @@ -0,0 +1,8 @@ +--- +title: Throw `ApiKeyMissingException` instead of `IllegalArgumentException` for unset API keys +pr_url: https://github.com/stripe/stripe-java/pull/2041 +semver_level: major +released_in_version: 30.0.0 +--- + +- ⚠️ throw `ApiKeyMissingException` instead of `IllegalArgumentException` when making a request before setting an API key initializing a client without an API key. Tweak the wording of that message to better indicate how to fix. diff --git a/.hark/changes/2025-09-23_helenye_adds-v2-support.change.md b/.hark/changes/2025-09-23_helenye_adds-v2-support.change.md new file mode 100644 index 000000000000..fb47757c078f --- /dev/null +++ b/.hark/changes/2025-09-23_helenye_adds-v2-support.change.md @@ -0,0 +1,8 @@ +--- +title: Adds v2 support to RateLimitException +pr_url: https://github.com/stripe/stripe-java/pull/2046 +semver_level: major +released_in_version: 30.0.0 +--- + +* ⚠️ The base class of `RateLimitException` has been changed from `InvalidRequestException` to `ApiException`. There is no change to the public interface for the `RateLimitException` class. diff --git a/.hark/changes/2025-09-23_ramya_2058-2059-2073.change.md b/.hark/changes/2025-09-23_ramya_2058-2059-2073.change.md new file mode 100644 index 000000000000..19887cfdbd8c --- /dev/null +++ b/.hark/changes/2025-09-23_ramya_2058-2059-2073.change.md @@ -0,0 +1,43 @@ +--- +title: ", [#2058](https://github.com/stripe/stripe-java/pull/2058), [#2059](https://github.com/stripe/stripe-java/pull/2059), [#2073](https://github.com/stripe/stripe-java/pull/2073) Update generated code based on incoming API changes in the `2025-09-30.clover` API version." +pr_url: https://github.com/stripe/stripe-java/pull/2040 +semver_level: major +is_stripe_api_change: true +released_in_version: 30.0.0 +--- + +* ⚠️ Remove support for `balanceReport` and `payoutReconciliationReport` on `AccountSession.components` and `AccountSessionCreateParams.components` +* ⚠️ Change type of `InvoiceCreatePreviewParams.subscription_details.cancelAt`, `SubscriptionCreateParams.cancelAt` and `SubscriptionUpdateParams.cancelAt` from `DateTime` to `DateTime | enum('max_period_end'|'min_period_end')` +* ⚠️ Remove support for values `saturday` and `sunday` from enums `AccountCreateParams.settings.payouts.schedule.weeklyPayoutDays` and `AccountUpdateParams.settings.payouts.schedule.weeklyPayoutDays` +* ⚠️ Remove support for `iterations` on `InvoiceCreatePreviewParams.schedule_details.phases[]`, `SubscriptionScheduleCreateParams.phases[]`, and `SubscriptionScheduleUpdateParams.phases[]` +* ⚠️ Remove support for `link` and `payByBank` on `PaymentMethodUpdateParams` +* ⚠️ Remove support for `coupon` on `Discount`, `PromotionCodeCreateParams`, and `PromotionCode`. Use `Discount.source.coupon`, `PromotionCodeCreateParams.promotion.coupon`, and `PromotionCode.promotion.coupon` instead +* Add support for new resource `BalanceSettings` +* Add support for `retrieve` and `update` methods on resource `BalanceSettings` +* Add support for `source` on `Discount` +* Add support for `mbWayPayments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` +* Add support for `trialUpdateBehavior` on `billingportal.Configuration.features.subscription_update`, `billingportal.ConfigurationCreateParams.features.subscription_update`, and `billingportal.ConfigurationUpdateParams.features.subscription_update` +* Add support for `mbWay` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` +* Add support for `brandingSettings` and `nameCollection` on `checkout.SessionCreateParams` and `checkout.Session` +* Add support for `excludedPaymentMethodTypes` on `PaymentIntentConfirmParams`, `PaymentIntentUpdateParams`, `checkout.SessionCreateParams`, and `checkout.Session` +* Add support for `unitLabel` on `InvoiceAddLinesParams.lines[].price_data.product_data`, `InvoiceLineItemUpdateParams.price_data.product_data`, `InvoiceUpdateLinesParams.lines[].price_data.product_data`, `PaymentLinkCreateParams.line_items[].price_data.product_data`, and `checkout.SessionCreateParams.line_items[].price_data.product_data` +* Add support for `alma`, `billie`, and `satispay` on `checkout.Session.payment_method_options` and `checkout.SessionCreateParams.payment_method_options` +* Add support for `demoPay` on `checkout.SessionCreateParams.payment_method_options` +* Add support for `captureMethod` on `checkout.Session.payment_method_options.affirm`, `checkout.Session.payment_method_options.afterpay_clearpay`, `checkout.Session.payment_method_options.amazon_pay`, `checkout.Session.payment_method_options.card`, `checkout.Session.payment_method_options.cashapp`, `checkout.Session.payment_method_options.klarna`, `checkout.Session.payment_method_options.link`, `checkout.Session.payment_method_options.mobilepay`, `checkout.Session.payment_method_options.revolut_pay`, `checkout.SessionCreateParams.payment_method_options.affirm`, `checkout.SessionCreateParams.payment_method_options.afterpay_clearpay`, `checkout.SessionCreateParams.payment_method_options.amazon_pay`, `checkout.SessionCreateParams.payment_method_options.card`, `checkout.SessionCreateParams.payment_method_options.cashapp`, `checkout.SessionCreateParams.payment_method_options.klarna`, `checkout.SessionCreateParams.payment_method_options.link`, `checkout.SessionCreateParams.payment_method_options.mobilepay`, and `checkout.SessionCreateParams.payment_method_options.revolut_pay` +* Add support for `flexible` on `InvoiceCreatePreviewParams.schedule_details.billing_mode`, `InvoiceCreatePreviewParams.subscription_details.billing_mode`, `Quote.subscription_data.billing_mode`, `QuoteCreateParams.subscription_data.billing_mode`, `Subscription.billing_mode`, `SubscriptionCreateParams.billing_mode`, `SubscriptionMigrateParams.billing_mode`, `SubscriptionSchedule.billing_mode`, `SubscriptionScheduleCreateParams.billing_mode`, and `checkout.SessionCreateParams.subscription_data.billing_mode` +* Add support for `businessName` and `individualName` on `CustomerCreateParams`, `CustomerUpdateParams`, `Customer`, `checkout.Session.collected_information`, and `checkout.Session.customer_details` +* Add support for new values `mb_way`on enums `ConfirmationTokenCreateParams.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` +* Add support for new values `mb_way`on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` +* Add support for `chargebackLossReasonCode` on `Dispute.payment_method_details.klarna` +* Add support for `netAmount` and `prorationDetails` on `InvoiceItem` +* Add support for `fraudDisputabilityLikelihood` and `riskAssessment` on `issuing.AuthorizationCreateParams` +* Add support for `secondLine` on `issuing.Card` +* Add support for new values `mb_way`on enum `PaymentIntentCreateParams.excludedPaymentMethodTypes` +* Add support for `frMealVoucherConecs` on `PaymentMethodConfigurationCreateParams` and `PaymentMethodConfigurationUpdateParams` +* Add support for `promotion` on `PromotionCodeCreateParams` and `PromotionCode` +* Add support for `provider` on `tax.Settings.defaults` +* Add support for `bbposWisepad3` on `terminal.ConfigurationCreateParams`, `terminal.ConfigurationUpdateParams`, and `terminal.Configuration` +* Add support for `addressKana`, `addressKanji`, `displayNameKana`, `displayNameKanji`, and `phone` on `terminal.LocationCreateParams`, `terminal.LocationUpdateParams`, and `terminal.Location` +* Change `terminal.LocationCreateParams.address` to be optional +* Change `terminal.LocationCreateParams.displayName` to be optional +* Add support for new value `2025-09-30.clover` on enum `WebhookEndpointCreateParams.apiVersion` diff --git a/.hark/changes/2025-09-25_xavdid_add-strongly-typed.change.md b/.hark/changes/2025-09-25_xavdid_add-strongly-typed.change.md new file mode 100644 index 000000000000..2291915d24e2 --- /dev/null +++ b/.hark/changes/2025-09-25_xavdid_add-strongly-typed.change.md @@ -0,0 +1,12 @@ +--- +title: Add strongly typed EventNotifications +pr_url: https://github.com/stripe/stripe-java/pull/2036 +semver_level: major +released_in_version: 30.0.0 +--- + +We've overhauled how V2 Events are handled in the SDK! This approach should provide a lot more information at authoring and compile time, leading to more robust integrations. As part of this process, there are a number of changes to be aware of. +- Added matching `EventNotification` classes to every v2 `Event`. For example, there's now a `V1BillingMeterErrorReportTriggeredEventNotification` to match the existing `V1BillingMeterErrorReportTriggeredEvent`. Each notification class defines a `fetchEvent()` method to retrieve its corresponding event. For events with related objects, there's a `fetchRelatedObject()` method that performs the API call and casts the response to the correct type. +- ⚠️ Rename function `StripeClient.parseThinEvent` to `StripeClient.parseEventNotification` and remove the `Stripe.ThinEvent` class. + - This function now returns a `Stripe.V2.Core.EventNotification` (which is the shared base class that all of the more specific `Stripe.Events.*EventNotification` classes share) instead of `Stripe.ThinEvent`. When applicable, these event notifications will have the `relatedObject` property and a `fetchRelatedObject()` function. They also have a `fetchEvent()` method to retrieve their corresponding `Stripe.Event.*Event` instance. + - If you parse an event the SDK doesn't have types for (e.g. it's newer than the SDK you're using), you'll get an instance of `Stripe.Events.UnknownEventNotification` instead of a more specific type. It has both the `relatedObject` property and the `fetchRelatedObject()` function (but they may be/return `null`) diff --git a/.hark/changes/2025-09-26_xavdid_add-stripecontex-object.change.md b/.hark/changes/2025-09-26_xavdid_add-stripecontex-object.change.md new file mode 100644 index 000000000000..edc83a6fdf77 --- /dev/null +++ b/.hark/changes/2025-09-26_xavdid_add-stripecontex-object.change.md @@ -0,0 +1,9 @@ +--- +title: Add `StripeContext` object +pr_url: https://github.com/stripe/stripe-java/pull/2057 +semver_level: major +released_in_version: 30.0.0 +--- + +- Add the `StripeContext` class. Previously, you could set the stripe context only as a string via `StripeClientBuilder .setStripeContext()`. The same method can now take an instance of the `StripeContext` class as well +- ⚠️ Change `EventNotification` (formerly known as `ThinEvent`)'s `context` property from `string` to `StripeContext` diff --git a/.hark/changes/2025-09-29_xavdid_move-v2-event.change.md b/.hark/changes/2025-09-29_xavdid_move-v2-event.change.md new file mode 100644 index 000000000000..ec56a85f181b --- /dev/null +++ b/.hark/changes/2025-09-29_xavdid_move-v2-event.change.md @@ -0,0 +1,10 @@ +--- +title: Move `V2.Event` API resources to `V2.Core.Events` +pr_url: https://github.com/stripe/stripe-java/pull/2069 +semver_level: major +released_in_version: 30.0.0 +--- + +- ⚠️ Move the below event related classes from `com.stripe.model.v2` to `com.stripe.model.v2.core`. This enables us to correctly match the API path to the namespace + - `com.stripe.model.v2.Event` -> `com.stripe.model.v2.core.Event` + - `com.stripe.model.v2.EventDestination` -> `com.stripe.model.v2.core.EventDestination` diff --git a/.hark/changes/2025-09-30_unknown_deprecated-v1-service.change.md b/.hark/changes/2025-09-30_unknown_deprecated-v1-service.change.md new file mode 100644 index 000000000000..5a548aa37fa0 --- /dev/null +++ b/.hark/changes/2025-09-30_unknown_deprecated-v1-service.change.md @@ -0,0 +1,14 @@ +--- +title: Deprecated the V1 service accessors living directly under StripeClient(e.g. customers, products) as they were copied under the new V1 service in our [last release](https://github.com/stripe/stripe-java/releases/tag/v29.5.0). Service accessors living directly under StripeClient(e.g. customers, products) will be removed from StripeClient in a future release. E.g. +semver_level: major +released_in_version: 30.0.0 +--- + +```diff +StripeClient client = new StripeClient("sk_test...") + +# Accessing V1 Stripe services on a StripeClient should be through the V1 namespace +- client.customers().list() ++ client.v1().customers().list() +``` +Refer to the [migration guide](https://github.com/stripe/stripe-java/wiki/v1-namespace-in-StripeClient) for help upgrading. diff --git a/.hark/changes/2025-11-05_stripe-openapi_update-generated-code.change.md b/.hark/changes/2025-11-05_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000000..6dbc5e39c000 --- /dev/null +++ b/.hark/changes/2025-11-05_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,8 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/2102 +is_stripe_api_change: true +released_in_version: 30.2.0 +--- + +* Add support for `captureMethod` on `PaymentIntent.payment_method_options.card_present`, `PaymentIntentConfirmParams.payment_method_options.card_present`, `PaymentIntentCreateParams.payment_method_options.card_present`, and `PaymentIntentUpdateParams.payment_method_options.card_present` diff --git a/.hark/changes/2025-11-15_stripe-openapi_update-generated-code.change.md b/.hark/changes/2025-11-15_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000000..2cadc4508e62 --- /dev/null +++ b/.hark/changes/2025-11-15_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,21 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/2108 +is_stripe_api_change: true +released_in_version: 31.0.0 +--- + +* Add support for new resources `tax.Association` and `terminal.OnboardingLink` +* Add support for `find` method on resource `tax.Association` +* Add support for `create` method on resource `terminal.OnboardingLink` +* Add support for `paymentMethodConfiguration` on `billingportal.Configuration.features.payment_method_update` +* Add support for `transactionId` on `Charge.payment_method_details.ideal`, `PaymentAttemptRecord.payment_method_details.ideal`, and `PaymentRecord.payment_method_details.ideal` +* Add support for new value `finom` on enums `ConfirmationTokenCreateParams.payment_method_data.ideal.bank`, `PaymentIntentConfirmParams.payment_method_data.ideal.bank`, `PaymentIntentCreateParams.payment_method_data.ideal.bank`, `PaymentIntentUpdateParams.payment_method_data.ideal.bank`, `PaymentMethodCreateParams.ideal.bank`, `SetupIntentConfirmParams.payment_method_data.ideal.bank`, `SetupIntentCreateParams.payment_method_data.ideal.bank`, and `SetupIntentUpdateParams.payment_method_data.ideal.bank` +* Add support for `created` on `CustomerBalanceTransactionListParams` and `InvoicePaymentListParams` +* Add support for `accountNumbers` on `financialconnections.Account` +* Add support for `fraudRisk` on `issuing.AuthorizationCreateParams.risk_assessment` +* Add support for `latestFraudWarning` on `issuing.Card` +* Add support for `hooks` on `PaymentIntentCaptureParams`, `PaymentIntentConfirmParams`, `PaymentIntentCreateParams`, `PaymentIntentIncrementAuthorizationParams`, `PaymentIntentUpdateParams`, and `PaymentIntent` +* Add support for `mbWay` and `twint` on `Refund.destination_details` +* Add support for new values `financial_connections.account.account_numbers_updated` and `financial_connections.account.upcoming_account_number_expiry` on enums `WebhookEndpointCreateParams.enabledEvents` and `WebhookEndpointUpdateParams.enabledEvents` +* Add support for snapshot events `financial_connections.account.account_numbers_updated` and `financial_connections.account.upcoming_account_number_expiry` with resource `financialconnections.Account` diff --git a/.hark/changes/2025-11-17_ramya_update-generated-code.change.md b/.hark/changes/2025-11-17_ramya_update-generated-code.change.md new file mode 100644 index 000000000000..79b157375b26 --- /dev/null +++ b/.hark/changes/2025-11-17_ramya_update-generated-code.change.md @@ -0,0 +1,9 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/2113 +semver_level: major +is_stripe_api_change: true +released_in_version: 31.0.0 +--- + +* ⚠️ Remove support for `gt`, `gte`, `lt`, and `lte` on `v2.core.EventListParams` in favor of `created`. diff --git a/.hark/changes/2025-11-17_ramya_update-v2-array.change.md b/.hark/changes/2025-11-17_ramya_update-v2-array.change.md new file mode 100644 index 000000000000..2fb90ef98690 --- /dev/null +++ b/.hark/changes/2025-11-17_ramya_update-v2-array.change.md @@ -0,0 +1,8 @@ +--- +title: Update v2 array parameter serialization to use indexed format +pr_url: https://github.com/stripe/stripe-java/pull/2110 +released_in_version: 31.0.0 +--- + +- `Retrieve` and `List` calls for `/v2` endpoints now use indexed format (e.g., `?include[0]=foo&include[1]=bar`) instead of repeated parameter format (e.g., `?include=foo&include=bar`) when communicating with the Stripe API. This may break any unit tests that expect the latter behavior when setting up a mock server. Instead, they should now expect the former. +- The `arraysAsRepeated` parameter was removed from the internal-use-only method `FormEncoder#createQueryString` diff --git a/.hark/changes/2025-12-02_mbroshi_adds-automatic-module.change.md b/.hark/changes/2025-12-02_mbroshi_adds-automatic-module.change.md new file mode 100644 index 000000000000..c558cdcaabb9 --- /dev/null +++ b/.hark/changes/2025-12-02_mbroshi_adds-automatic-module.change.md @@ -0,0 +1,5 @@ +--- +title: "Adds `Automatic-Module-Name: stripe.java` to the jar's manifest entry" +pr_url: https://github.com/stripe/stripe-java/pull/2121 +released_in_version: 31.1.0 +--- diff --git a/.hark/changes/2025-12-06_mbroshi_adds-gson-version.change.md b/.hark/changes/2025-12-06_mbroshi_adds-gson-version.change.md new file mode 100644 index 000000000000..5847c5e45114 --- /dev/null +++ b/.hark/changes/2025-12-06_mbroshi_adds-gson-version.change.md @@ -0,0 +1,5 @@ +--- +title: Adds the Gson version included at runtime to the X-STRIPE-CLIENT-USER-AGENT header hash +pr_url: https://github.com/stripe/stripe-java/pull/2124 +released_in_version: 31.1.0 +--- diff --git a/.hark/changes/2026-01-16_stripe-openapi_update-generated-code.change.md b/.hark/changes/2026-01-16_stripe-openapi_update-generated-code.change.md new file mode 100644 index 000000000000..da0af06fe6d8 --- /dev/null +++ b/.hark/changes/2026-01-16_stripe-openapi_update-generated-code.change.md @@ -0,0 +1,10 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/2144 +is_stripe_api_change: true +released_in_version: 31.2.0 +--- + +* Add support for event notifications `V2CoreAccountClosedEvent`, `V2CoreAccountCreatedEvent`, `V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent`, `V2CoreAccountIncludingConfigurationCustomerUpdatedEvent`, `V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent`, `V2CoreAccountIncludingConfigurationMerchantUpdatedEvent`, `V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent`, `V2CoreAccountIncludingConfigurationRecipientUpdatedEvent`, `V2CoreAccountIncludingDefaultsUpdatedEvent`, `V2CoreAccountIncludingFutureRequirementsUpdatedEvent`, `V2CoreAccountIncludingIdentityUpdatedEvent`, `V2CoreAccountIncludingRequirementsUpdatedEvent`, and `V2CoreAccountUpdatedEvent` with related object `v2.core.Account` +* Add support for event notification `V2CoreAccountLinkReturnedEvent` +* Add support for event notifications `V2CoreAccountPersonCreatedEvent`, `V2CoreAccountPersonDeletedEvent`, and `V2CoreAccountPersonUpdatedEvent` with related object `v2.core.AccountPerson` diff --git a/.hark/changes/2026-01-28_ramya_update-generated-code.change.md b/.hark/changes/2026-01-28_ramya_update-generated-code.change.md new file mode 100644 index 000000000000..78814f8442a8 --- /dev/null +++ b/.hark/changes/2026-01-28_ramya_update-generated-code.change.md @@ -0,0 +1,20 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/2147 +is_stripe_api_change: true +released_in_version: 31.3.0 +--- + +* Add support for new resource `radar.PaymentEvaluation` +* Add support for `create` method on resource `radar.PaymentEvaluation` +* Add support for `adjustableQuantity` on `LineItem` +* Add support for new value `adyen` on enums `ConfirmationTokenCreateParams.payment_method_data.ideal.bank`, `PaymentIntentConfirmParams.payment_method_data.ideal.bank`, `PaymentIntentCreateParams.payment_method_data.ideal.bank`, `PaymentIntentUpdateParams.payment_method_data.ideal.bank`, `PaymentMethodCreateParams.ideal.bank`, `SetupIntentConfirmParams.payment_method_data.ideal.bank`, `SetupIntentCreateParams.payment_method_data.ideal.bank`, and `SetupIntentUpdateParams.payment_method_data.ideal.bank` +* Add support for new value `pl_nip` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `TaxIdCreateParams.type`, and `tax.CalculationCreateParams.customer_details.tax_ids[].type` +* Add support for `enforceArithmeticValidation` on `PaymentIntentCaptureParams.amount_details`, `PaymentIntentConfirmParams.amount_details`, `PaymentIntentCreateParams.amount_details`, `PaymentIntentIncrementAuthorizationParams.amount_details`, and `PaymentIntentUpdateParams.amount_details` +* Add support for new values `2.3.0` and `2.3.1` on enums `PaymentIntentConfirmParams.payment_method_options.card.three_d_secure.version`, `PaymentIntentCreateParams.payment_method_options.card.three_d_secure.version`, `PaymentIntentUpdateParams.payment_method_options.card.three_d_secure.version`, `SetupIntentConfirmParams.payment_method_options.card.three_d_secure.version`, `SetupIntentCreateParams.payment_method_options.card.three_d_secure.version`, and `SetupIntentUpdateParams.payment_method_options.card.three_d_secure.version` +* Add support for `error` on `PaymentIntent.amount_details` +* Remove support for `bgn` on `terminal.Configuration.tipping`, `terminal.ConfigurationCreateParams.tipping`, and `terminal.ConfigurationUpdateParams.tipping` +* Add support for `topup` on `treasury.ReceivedDebit.linked_flows` +* Add support for `contactPhone` on `v2.core.AccountCreateParams`, `v2.core.AccountTokenCreateParams`, `v2.core.AccountUpdateParams`, and `v2.core.Account` +* Add support for `registrationDate` on `v2.core.Account.identity.business_details`, `v2.core.AccountCreateParams.identity.business_details`, `v2.core.AccountTokenCreateParams.identity.business_details`, and `v2.core.AccountUpdateParams.identity.business_details` +* Add support for new value `gb_vat` on enums `v2.core.AccountCreateParams.identity.business_details.id_numbers[].type`, `v2.core.AccountTokenCreateParams.identity.business_details.id_numbers[].type`, and `v2.core.AccountUpdateParams.identity.business_details.id_numbers[].type` diff --git a/.hark/changes/2026-02-23_ramya_update-generated-code.change.md b/.hark/changes/2026-02-23_ramya_update-generated-code.change.md new file mode 100644 index 000000000000..38e3b5c128c3 --- /dev/null +++ b/.hark/changes/2026-02-23_ramya_update-generated-code.change.md @@ -0,0 +1,26 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/2158 +is_stripe_api_change: true +released_in_version: 31.4.0 +--- + +* Add support for new resources `reserve.Hold`, `reserve.Plan`, and `reserve.Release` +* Add support for `location` and `reader` on `Charge.payment_method_details.card_present`, `Charge.payment_method_details.interac_present`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present`, `PaymentAttemptRecord.payment_method_details.card_present`, `PaymentAttemptRecord.payment_method_details.interac_present`, `PaymentMethod.card.generated_from.payment_method_details.card_present`, `PaymentRecord.payment_method_details.card_present`, and `PaymentRecord.payment_method_details.interac_present` +* Add support for new value `lk_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `TaxIdCreateParams.type`, and `tax.CalculationCreateParams.customer_details.tax_ids[].type` +* Add support for new values `terminal_wifi_certificate` and `terminal_wifi_private_key` on enum `FileListParams.purpose` +* Add support for new values `terminal_wifi_certificate` and `terminal_wifi_private_key` on enum `FileCreateParams.purpose` +* Add support for new value `pay_by_bank` on enums `InvoiceCreateParams.payment_settings.paymentMethodTypes`, `InvoiceUpdateParams.payment_settings.paymentMethodTypes`, `SubscriptionCreateParams.payment_settings.paymentMethodTypes`, and `SubscriptionUpdateParams.payment_settings.paymentMethodTypes` +* Add support for `displayName` and `serviceUserNumber` on `Mandate.payment_method_details.bacs_debit` +* Add support for `transactionPurpose` on `PaymentIntent.payment_method_options.us_bank_account`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account`, `PaymentIntentCreateParams.payment_method_options.us_bank_account`, and `PaymentIntentUpdateParams.payment_method_options.us_bank_account` +* Add support for `optionalItems` on `PaymentLinkUpdateParams` +* Remove support for unused `cardIssuerDecline` on `radar.PaymentEvaluation.insights` +* Add support for `paymentBehavior` on `SubscriptionItemDeleteParams` +* Add support for `lk` on `tax.Registration.country_options` and `tax.RegistrationCreateParams.country_options` +* Add support for `cellular` and `stripeS710` on `terminal.ConfigurationCreateParams`, `terminal.ConfigurationUpdateParams`, and `terminal.Configuration` +* Add support for new values `simulated_stripe_s710` and `stripe_s710` on enum `terminal.ReaderListParams.deviceType` +* Add support for new values `reserve.hold.created`, `reserve.hold.updated`, `reserve.plan.created`, `reserve.plan.disabled`, `reserve.plan.expired`, `reserve.plan.updated`, and `reserve.release.created` on enums `WebhookEndpointCreateParams.enabledEvents` and `WebhookEndpointUpdateParams.enabledEvents` +* Add support for new value `2026-02-25.clover` on enum `WebhookEndpointCreateParams.apiVersion` +* Add support for snapshot events `reserve.hold.created` and `reserve.hold.updated` with resource `reserve.Hold` +* Add support for snapshot events `reserve.plan.created`, `reserve.plan.disabled`, `reserve.plan.expired`, and `reserve.plan.updated` with resource `reserve.Plan` +* Add support for snapshot event `reserve.release.created` with resource `reserve.Release` diff --git a/.hark/changes/2026-03-03_xavdid_add-ai-agent.change.md b/.hark/changes/2026-03-03_xavdid_add-ai-agent.change.md new file mode 100644 index 000000000000..44ac8bd97390 --- /dev/null +++ b/.hark/changes/2026-03-03_xavdid_add-ai-agent.change.md @@ -0,0 +1,5 @@ +--- +title: Add AI Agent information to UserAgent +pr_url: https://github.com/stripe/stripe-java/pull/2165 +released_in_version: 31.4.1 +--- diff --git a/.hark/changes/2026-03-04_jar_support-serializing-stripe.change.md b/.hark/changes/2026-03-04_jar_support-serializing-stripe.change.md new file mode 100644 index 000000000000..69505135dda9 --- /dev/null +++ b/.hark/changes/2026-03-04_jar_support-serializing-stripe.change.md @@ -0,0 +1,7 @@ +--- +title: Support serializing Stripe objects with ApiResource.GSON +pr_url: https://github.com/stripe/stripe-java/pull/2168 +released_in_version: 31.4.1 +--- + +* `ApiResource.GSON` now supports serializing Stripe objects back into compatible JSON diff --git a/.hark/changes/2026-03-17_mbroshi_add-runtime-support.change.md b/.hark/changes/2026-03-17_mbroshi_add-runtime-support.change.md new file mode 100644 index 000000000000..727a78ae6f52 --- /dev/null +++ b/.hark/changes/2026-03-17_mbroshi_add-runtime-support.change.md @@ -0,0 +1,5 @@ +--- +title: Add runtime support for V2 int64 string-encoded fields +pr_url: https://github.com/stripe/stripe-java/pull/2179 +released_in_version: 32.0.0 +--- diff --git a/.hark/changes/2026-03-17_mbroshi_change-automatic-module.change.md b/.hark/changes/2026-03-17_mbroshi_change-automatic-module.change.md new file mode 100644 index 000000000000..c2cf08d7b4c0 --- /dev/null +++ b/.hark/changes/2026-03-17_mbroshi_change-automatic-module.change.md @@ -0,0 +1,8 @@ +--- +title: Change Automatic-Module-Name to com.stripe +pr_url: https://github.com/stripe/stripe-java/pull/2181 +semver_level: major +released_in_version: 32.0.0 +--- + +- Changes `Automatic-Module-Name` from `stripe.java` to `com.stripe`. Users with `requires stripe.java;` in their `module-info.java` will need to update to `requires com.stripe;`. diff --git a/.hark/changes/2026-03-18_mbroshi_add-sethttpclien-stripeclient.change.md b/.hark/changes/2026-03-18_mbroshi_add-sethttpclien-stripeclient.change.md new file mode 100644 index 000000000000..3a6d77dc29dd --- /dev/null +++ b/.hark/changes/2026-03-18_mbroshi_add-sethttpclien-stripeclient.change.md @@ -0,0 +1,9 @@ +--- +title: Add setHttpClient to StripeClientBuilder; clean up apiKey/authenticator coupling +pr_url: https://github.com/stripe/stripe-java/pull/2182 +semver_level: major +released_in_version: 32.0.0 +--- + +- ⚠️ Removed `RequestOptions.getApiKey()`, `RequestOptions.RequestOptionsBuilder.getApiKey()`, and `StripeClient.StripeClientBuilder.getApiKey()`. Use `getAuthenticator()` instead. +- Added `StripeClient.StripeClientBuilder.setHttpClient(HttpClient)` to allow injecting a custom HTTP client. diff --git a/.hark/changes/2026-03-18_mbroshi_make-requestoptio-rawrequestop.change.md b/.hark/changes/2026-03-18_mbroshi_make-requestoptio-rawrequestop.change.md new file mode 100644 index 000000000000..2b309f1bd8f2 --- /dev/null +++ b/.hark/changes/2026-03-18_mbroshi_make-requestoptio-rawrequestop.change.md @@ -0,0 +1,6 @@ +--- +title: Make `RequestOptions` & `RawRequestOptions` constructors private and add Stripe-Request-Trigger header +pr_url: https://github.com/stripe/stripe-java/pull/2172 +semver_level: major +released_in_version: 32.0.0 +--- diff --git a/.hark/changes/2026-03-20_jar_regenerate-decimalstrin-enabled.change.md b/.hark/changes/2026-03-20_jar_regenerate-decimalstrin-enabled.change.md new file mode 100644 index 000000000000..fd291c03b77a --- /dev/null +++ b/.hark/changes/2026-03-20_jar_regenerate-decimalstrin-enabled.change.md @@ -0,0 +1,12 @@ +--- +title: Regenerate with decimal_string enabled for v2 APIs +pr_url: https://github.com/stripe/stripe-java/pull/2187 +semver_level: major +released_in_version: 32.0.0 +--- + +- V2 API decimal fields changed type from `String` to `BigDecimal`. Code that reads or writes these fields as `String` will need to use `BigDecimal` instead. Affected fields: + - **V2.Core.Account** / **V2.Core.AccountPerson**: `percentOwnership` + - **PaymentEvaluation.Signals.FraudulentPayment**: `score` + - Params: `AccountCreateParams`, `PersonCreateParams`, `AccountTokenCreateParams`, `PersonTokenCreateParams` (all: `percentOwnership`) + - Params: `InvoiceItemCreateParams`, `InvoiceAddLinesParams`, `InvoiceUpdateLinesParams`, `InvoiceCreatePreviewParams` (all: `quantityDecimal`) diff --git a/.hark/changes/2026-03-20_xavdid_throw-error-using.change.md b/.hark/changes/2026-03-20_xavdid_throw-error-using.change.md new file mode 100644 index 000000000000..9fb0fa4fa1ca --- /dev/null +++ b/.hark/changes/2026-03-20_xavdid_throw-error-using.change.md @@ -0,0 +1,6 @@ +--- +title: Throw an error when using the wrong webhook parsing method +pr_url: https://github.com/stripe/stripe-java/pull/2190 +semver_level: major +released_in_version: 32.0.0 +--- diff --git a/.hark/changes/2026-03-24_mbroshi_use-http-status.change.md b/.hark/changes/2026-03-24_mbroshi_use-http-status.change.md new file mode 100644 index 000000000000..15cbea93aa7c --- /dev/null +++ b/.hark/changes/2026-03-24_mbroshi_use-http-status.change.md @@ -0,0 +1,9 @@ +--- +title: Use HTTP status code in V2 errors +pr_url: https://github.com/stripe/stripe-java/pull/2131 +semver_level: major +released_in_version: 32.0.0 +--- + +- `RateLimitException` now extends `StripeException` rather than `ApiException` +- Non-200 status codes from V2 endpoints will throw a `StripeException` (e.g. `RateLimitException`, `InvalidRequestException`, etc.) like in V1 instead of a generic `ApiException` diff --git a/.hark/changes/2026-03-25_unknown_generated-changes-2170.change.md b/.hark/changes/2026-03-25_unknown_generated-changes-2170.change.md new file mode 100644 index 000000000000..79f89027a7a9 --- /dev/null +++ b/.hark/changes/2026-03-25_unknown_generated-changes-2170.change.md @@ -0,0 +1,31 @@ +--- +title: "Generated changes from [#2170](https://github.com/stripe/stripe-java/pull/2170), [#2193](https://github.com/stripe/stripe-java/pull/2193), [#2191](https://github.com/stripe/stripe-java/pull/2191)" +semver_level: major +is_stripe_api_change: true +section: ⚠️ Breaking changes due to changes in the Stripe API +released_in_version: 32.0.0 +--- + +* Add support for `upiPayments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` +* Add support for `upi` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.payment_method_data`, `Mandate.payment_method_details`, `PaymentAttemptRecord.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `PaymentRecord.payment_method_details`, `SetupAttempt.payment_method_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_data`, `SetupIntentCreateParams.payment_method_options`, `SetupIntentUpdateParams.payment_method_data`, `SetupIntentUpdateParams.payment_method_options`, `checkout.Session.payment_method_options`, and `checkout.SessionCreateParams.payment_method_options` +* Add support for `integrationIdentifier` on `checkout.SessionCreateParams` and `checkout.Session` +* Add support for new value `upi` on enums `PaymentIntentConfirmParams.excludedPaymentMethodTypes`, `PaymentIntentCreateParams.excludedPaymentMethodTypes`, `PaymentIntentUpdateParams.excludedPaymentMethodTypes`, `SetupIntentCreateParams.excludedPaymentMethodTypes`, `SetupIntentUpdateParams.excludedPaymentMethodTypes`, and `checkout.SessionCreateParams.excludedPaymentMethodTypes` +* Add support for `crypto` on `checkout.SessionCreateParams.payment_method_options` +* Add support for new value `upi` on enum `checkout.SessionCreateParams.paymentMethodTypes` +* Add support for `pendingInvoiceItemInterval` on `checkout.SessionCreateParams.subscription_data` +* Add support for new values `elements`, `embedded_page`, `form`, and `hosted_page` on enum `checkout.SessionCreateParams.uiMode` +* Add support for new value `upi` on enums `ConfirmationTokenCreateParams.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` +* Add support for `metadata` on `CreditNoteCreateParams.lines[]`, `CreditNoteLineItem`, `CreditNotePreviewLinesParams.lines[]`, and `CreditNotePreviewParams.lines[]` +* Add support for new value `upi` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` +* Add support for `quantityDecimal` on `InvoiceAddLinesParams.lines[]`, `InvoiceCreatePreviewParams.invoice_items[]`, `InvoiceItemCreateParams`, `InvoiceItemUpdateParams`, `InvoiceItem`, `InvoiceLineItemUpdateParams`, `InvoiceLineItem`, and `InvoiceUpdateLinesParams.lines[]` +* ⚠️ Add support for `level` on `issuing.AuthorizationCreateParams.risk_assessment.card_testing_risk` and `issuing.AuthorizationCreateParams.risk_assessment.merchant_dispute_risk` +* ⚠️ Remove support for `riskLevel` on `issuing.AuthorizationCreateParams.risk_assessment.card_testing_risk` and `issuing.AuthorizationCreateParams.risk_assessment.merchant_dispute_risk` +* Add support for `lifecycleControls` on `issuing.CardCreateParams` and `issuing.Card` +* Add support for `cryptogram`, `electronicCommerceIndicator`, `exemptionIndicatorApplied`, and `exemptionIndicator` on `PaymentAttemptRecord.payment_method_details.card.three_d_secure` and `PaymentRecord.payment_method_details.card.three_d_secure` +* Add support for `upiHandleRedirectOrDisplayQrCode` on `PaymentIntent.next_action` and `SetupIntent.next_action` +* Add support for new value `upi` on enums `PaymentLinkCreateParams.paymentMethodTypes` and `PaymentLinkUpdateParams.paymentMethodTypes` +* Add support for `recommendedAction` and `signals` on `radar.PaymentEvaluation` +* ⚠️ Remove support for `insights` on `radar.PaymentEvaluation` +* Add support for new value `crypto_fingerprint` on enum `radar.ValueListCreateParams.itemType` +* Add support for new value `2026-03-25.dahlia` on enum `WebhookEndpointCreateParams.apiVersion` +* ⚠️ Change type of `v2.core.EventDestinationCreateParams.eventsFrom` from `enum('other_accounts'|'self')` to `string` diff --git a/.hark/changes/2026-04-20_mbroshi_fix-missing-stripecontex.change.md b/.hark/changes/2026-04-20_mbroshi_fix-missing-stripecontex.change.md new file mode 100644 index 000000000000..1dc583b93e0c --- /dev/null +++ b/.hark/changes/2026-04-20_mbroshi_fix-missing-stripecontex.change.md @@ -0,0 +1,7 @@ +--- +title: Fix missing stripeContext in RequestOptions.toBuilderFullCopy() +pr_url: https://github.com/stripe/stripe-java/pull/2208 +released_in_version: 32.1.0 +--- + +- Fixes a bug where an existing `stripeContext` was being reset to `null` when calling `RequestOptions#toBuilderFullCopy()` diff --git a/.hark/changes/2026-05-20_xavdid_add-better-example.change.md b/.hark/changes/2026-05-20_xavdid_add-better-example.change.md new file mode 100644 index 000000000000..9dbde9d9cc23 --- /dev/null +++ b/.hark/changes/2026-05-20_xavdid_add-better-example.change.md @@ -0,0 +1,5 @@ +--- +title: Add better example for accessing non-documented properties in a list response +pr_url: https://github.com/stripe/stripe-java/pull/2218 +released_in_version: 32.2.0 +--- diff --git a/.hark/changes/2026-05-26_xavdid_emit-warning-stripe.change.md b/.hark/changes/2026-05-26_xavdid_emit-warning-stripe.change.md new file mode 100644 index 000000000000..62618a3bc2bd --- /dev/null +++ b/.hark/changes/2026-05-26_xavdid_emit-warning-stripe.change.md @@ -0,0 +1,5 @@ +--- +title: Emit warning when `stripe-notify` header is present in response +pr_url: https://github.com/stripe/stripe-java/pull/2219 +released_in_version: 32.2.0 +--- diff --git a/.hark/changes/2026-06-05_xavdid_add-source-field.change.md b/.hark/changes/2026-06-05_xavdid_add-source-field.change.md new file mode 100644 index 000000000000..cacb079915e2 --- /dev/null +++ b/.hark/changes/2026-06-05_xavdid_add-source-field.change.md @@ -0,0 +1,5 @@ +--- +title: Add "source" field to user-agent header +pr_url: https://github.com/stripe/stripe-java/pull/2230 +released_in_version: 33.0.0 +--- diff --git a/.hark/changes/2026-06-05_xavdid_make-taxrate-taxdetails.change.md b/.hark/changes/2026-06-05_xavdid_make-taxrate-taxdetails.change.md new file mode 100644 index 000000000000..b3a0b038c05a --- /dev/null +++ b/.hark/changes/2026-06-05_xavdid_make-taxrate-taxdetails.change.md @@ -0,0 +1,6 @@ +--- +title: Make `tax_rate.tax_details` expandable +pr_url: https://github.com/stripe/stripe-java/pull/2234 +semver_level: major +released_in_version: 33.0.0 +--- diff --git a/.hark/changes/2026-06-24_xavdid_update-generated-code.change.md b/.hark/changes/2026-06-24_xavdid_update-generated-code.change.md new file mode 100644 index 000000000000..d917def5a2cb --- /dev/null +++ b/.hark/changes/2026-06-24_xavdid_update-generated-code.change.md @@ -0,0 +1,31 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/2240 +semver_level: major +is_stripe_api_change: true +released_in_version: 33.1.0 +--- + +* Add support for `releaseDetails` on `reserve.Hold` +* Add support for `buyerId` on `Charge.payment_method_details.bizum`, `ConfirmationToken.payment_method_preview.bizum`, `ConfirmationToken.payment_method_preview.blik`, `PaymentAttemptRecord.payment_method_details.bizum`, `PaymentMethod.bizum`, `PaymentMethod.blik`, and `PaymentRecord.payment_method_details.bizum` +* Add support for `transactionLinkId` on `Charge.payment_method_details.card` +* Add support for `fingerprint` on `Charge.payment_method_details.pix`, `ConfirmationToken.payment_method_preview.pix`, `PaymentMethod.pix`, and `SetupAttempt.payment_method_details.pix` +* Add support for `sunbit` on `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `checkout.Session.payment_method_options`, and `checkout.SessionCreateParams.payment_method_options` +* Add support for `billingCycleAnchorConfig` on `checkout.SessionCreateParams.subscription_data` +* Add support for `wechatPay` on `checkout.Session.payment_method_options` +* Add support for `mastercardCompliance` on `Dispute.evidence.enhanced_evidence`, `Dispute.evidence_details.enhanced_eligibility`, and `DisputeUpdateParams.evidence.enhanced_evidence` +* Add support for `statusDetails` on `financialconnections.Account` +* Add support for new value `satispay` on enums `InvoiceCreateParams.payment_settings.paymentMethodTypes`, `InvoiceUpdateParams.payment_settings.paymentMethodTypes`, `SubscriptionCreateParams.payment_settings.paymentMethodTypes`, and `SubscriptionUpdateParams.payment_settings.paymentMethodTypes` +* ⚠️ Remove support for `storedCredentialUsage` on `PaymentAttemptRecord.payment_method_details.card` and `PaymentRecord.payment_method_details.card` +* Add support for `setupFutureUsage` on `PaymentIntent.payment_method_options.satispay`, `PaymentIntentConfirmParams.payment_method_options.satispay`, `PaymentIntentCreateParams.payment_method_options.satispay`, and `PaymentIntentUpdateParams.payment_method_options.satispay` +* Change `PaymentRecordReportRefundParams.refunded` to be optional +* Add support for `satispay` on `SetupAttempt.payment_method_details` +* Add support for `customFields`, `description`, and `footer` on `Subscription.invoice_settings`, `SubscriptionCreateParams.invoice_settings`, and `SubscriptionUpdateParams.invoice_settings` +* Add support for `paymentMethodOptions` and `paymentMethod` on `TopupCreateParams` +* Add support for new value `2026-06-24.dahlia` on enum `WebhookEndpointCreateParams.apiVersion` +* Add support for `mode` on `v2.commerce.ProductCatalogImport` +* Add support for `sunbitPayments` on `v2.core.Account.configuration.merchant.capabilities`, `v2.core.AccountCreateParams.configuration.merchant.capabilities`, and `v2.core.AccountUpdateParams.configuration.merchant.capabilities` +* Add support for `cryptoMoneyManager` and `moneyManager` on `v2.core.AccountUpdateParams.identity.attestations.terms_of_service` +* ⚠️ Remove support for `cryptoStorer` and `storer` on `v2.core.AccountUpdateParams.identity.attestations.terms_of_service` +* Add support for new value `promotion` on enum `v2.commerce.ProductCatalogImportCreateParams.feedType` +* Add support for new value `sunbit_payments` on enum `EventsV2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent.updatedCapability` diff --git a/.hark/changes/2026-07-16_xavdid_replace-source-hash.change.md b/.hark/changes/2026-07-16_xavdid_replace-source-hash.change.md new file mode 100644 index 000000000000..0d4ab167e782 --- /dev/null +++ b/.hark/changes/2026-07-16_xavdid_replace-source-hash.change.md @@ -0,0 +1,5 @@ +--- +title: Replace source hash with Telemetry UUID +pr_url: https://github.com/stripe/stripe-java/pull/2244 +released_in_version: 33.1.1 +--- diff --git a/.hark/changes/2026-07-29_jar_update-generated-code.change.md b/.hark/changes/2026-07-29_jar_update-generated-code.change.md new file mode 100644 index 000000000000..d564fe21fd87 --- /dev/null +++ b/.hark/changes/2026-07-29_jar_update-generated-code.change.md @@ -0,0 +1,42 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/2257 +is_stripe_api_change: true +released_in_version: 33.2.0 +--- + +* Add support for new resource `financialconnections.Authorization` +* Add support for `unreject` method on resource `Account` +* Add support for `list` method on resource `PaymentRecord` +* Add support for `smartDisputesManagement` on `AccountSession.components.disputes_list.features`, `AccountSession.components.payment_details.features`, `AccountSession.components.payment_disputes.features`, `AccountSession.components.payments.features`, `AccountSessionCreateParams.components.disputes_list.features`, `AccountSessionCreateParams.components.payment_details.features`, `AccountSessionCreateParams.components.payment_disputes.features`, and `AccountSessionCreateParams.components.payments.features` +* Add support for `administrativeAddress` and `principalPlaceOfBusiness` on `Account.company`, `AccountCreateParams.company`, `AccountUpdateParams.company`, and `TokenCreateParams.account.company` +* Add support for `sepaDebitPayments` on `AccountUpdateParams.settings` +* Remove support for `proofOfRegistration` on `AccountCreateParams.documents`. This field was limited-use and is being deprecated. +* Add support for `payoutsAction` on `AccountRejectParams` +* Remove support for `dynamicTaxRates` on `checkout.SessionCreateParams.line_items[]`. This field was limited-use and is being deprecated. +* Add support for `setupFutureUsage` on `PaymentIntent.payment_method_options.payco`, `PaymentIntent.payment_method_options.samsung_pay`, `PaymentIntentConfirmParams.payment_method_options.payco`, `PaymentIntentConfirmParams.payment_method_options.samsung_pay`, `PaymentIntentCreateParams.payment_method_options.payco`, `PaymentIntentCreateParams.payment_method_options.samsung_pay`, `PaymentIntentUpdateParams.payment_method_options.payco`, `PaymentIntentUpdateParams.payment_method_options.samsung_pay`, `PaymentLinkUpdateParams.payment_intent_data`, `checkout.Session.payment_method_options.payco`, `checkout.Session.payment_method_options.samsung_pay`, `checkout.SessionCreateParams.payment_method_options.payco`, and `checkout.SessionCreateParams.payment_method_options.samsung_pay` +* Add support for new values `bnp_paribas`, `citibank`, and `mbsb_bank` on enums `ConfirmationTokenCreateParams.payment_method_data.fpx.bank`, `PaymentIntentConfirmParams.payment_method_data.fpx.bank`, `PaymentIntentCreateParams.payment_method_data.fpx.bank`, `PaymentIntentUpdateParams.payment_method_data.fpx.bank`, `PaymentMethodCreateParams.fpx.bank`, `SetupIntentConfirmParams.payment_method_data.fpx.bank`, `SetupIntentCreateParams.payment_method_data.fpx.bank`, and `SetupIntentUpdateParams.payment_method_data.fpx.bank` +* Add support for new value `ic_nif` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `TaxIdCreateParams.type`, and `tax.CalculationCreateParams.customer_details.tax_ids[].type` +* Add support for `network` on `Dispute.payment_method_details.card` +* Add support for `limits` and `manualEntry` on `financialconnections.SessionCreateParams` and `financialconnections.Session` +* Add support for `requirePaymentMethodSupport` on `financialconnections.Session.filters` and `financialconnections.SessionCreateParams.filters` +* Add support for `bankAccountToken` on `financialconnections.Session` +* Add support for new values `alipay` and `mb_way` on enums `InvoiceCreateParams.payment_settings.paymentMethodTypes`, `InvoiceUpdateParams.payment_settings.paymentMethodTypes`, `SubscriptionCreateParams.payment_settings.paymentMethodTypes`, and `SubscriptionUpdateParams.payment_settings.paymentMethodTypes` +* Add support for new values `mass_transit_parking_tax` and `parking_tax` on enums `InvoiceAddLinesParams.lines[].tax_amounts[].tax_rate_data.taxType`, `InvoiceLineItemUpdateParams.tax_amounts[].tax_rate_data.taxType`, `InvoiceUpdateLinesParams.lines[].tax_amounts[].tax_rate_data.taxType`, `TaxRateCreateParams.taxType`, and `TaxRateUpdateParams.taxType` +* Add support for `metadata` on `InvoiceCreatePreviewParams.subscription_details` +* Add support for `businessName` on `issuing.Card.shipping`, `issuing.CardCreateParams.shipping`, and `issuing.CardUpdateParams.shipping` +* Add support for `allowedPaymentMethodTypes` on `PaymentIntentConfirmParams`, `PaymentIntentCreateParams`, `PaymentIntentUpdateParams`, `PaymentIntent`, `SetupIntentConfirmParams`, `SetupIntentCreateParams`, `SetupIntentUpdateParams`, and `SetupIntent` +* Add support for `referrer` on `PaymentIntentConfirmParams.radar_options` and `PaymentIntentCreateParams.radar_options` +* Add support for `consentCollection` and `shippingOptions` on `PaymentLinkUpdateParams` +* Add support for `customFields`, `description`, and `footer` on `Quote.invoice_settings`, `QuoteCreateParams.invoice_settings`, `QuoteUpdateParams.invoice_settings`, `SubscriptionSchedule.default_settings.invoice_settings`, `SubscriptionSchedule.phases[].invoice_settings`, `SubscriptionScheduleCreateParams.default_settings.invoice_settings`, `SubscriptionScheduleCreateParams.phases[].invoice_settings`, `SubscriptionScheduleUpdateParams.default_settings.invoice_settings`, and `SubscriptionScheduleUpdateParams.phases[].invoice_settings` +* Add support for `customerAccount` and `customer` on `Refund` +* Add support for `paymentMethod` on `Refund` and `Topup` +* Add support for `trial` on `SubscriptionSchedule.phases[]` +* Add support for `massTransitParkingTax` and `parkingTax` on `tax.Registration.country_options.us` and `tax.RegistrationCreateParams.country_options.us` +* Add support for new values `mass_transit_parking_tax` and `parking_tax` on enum `tax.RegistrationCreateParams.country_options.us.type` +* Add support for `initiatedBy` and `paymentMethodOptions` on `Topup` +* Add support for new values `financial_connections.account.expected_deactivation_date_updated`, `financial_connections.account.supported_payment_method_types_updated`, `financial_connections.account.upcoming_deactivation`, `financial_connections.authorization.expected_deactivation_date_updated`, and `financial_connections.authorization.upcoming_deactivation` on enums `WebhookEndpointCreateParams.enabledEvents` and `WebhookEndpointUpdateParams.enabledEvents` +* Add support for new value `2026-07-29.dahlia` on enum `WebhookEndpointCreateParams.apiVersion` +* Add support for `additionalAddresses` on `v2.core.Account.identity.business_details`, `v2.core.AccountCreateParams.identity.business_details`, `v2.core.AccountTokenCreateParams.identity.business_details`, and `v2.core.AccountUpdateParams.identity.business_details` +* Add support for snapshot events `financial_connections.account.expected_deactivation_date_updated`, `financial_connections.account.supported_payment_method_types_updated`, and `financial_connections.account.upcoming_deactivation` with resource `financialconnections.Account` +* Add support for snapshot events `financial_connections.authorization.expected_deactivation_date_updated` and `financial_connections.authorization.upcoming_deactivation` with resource `financialconnections.Authorization` diff --git a/.hark/changes/2026-08-03_xavdid_add-stripe-majorapivers.change.md b/.hark/changes/2026-08-03_xavdid_add-stripe-majorapivers.change.md new file mode 100644 index 000000000000..4e0b50cd07d9 --- /dev/null +++ b/.hark/changes/2026-08-03_xavdid_add-stripe-majorapivers.change.md @@ -0,0 +1,5 @@ +--- +title: Add `stripe.major_api_version` constant +pr_url: https://github.com/stripe/stripe-java/pull/2261 +released_in_version: 33.3.0 +--- diff --git a/.hark/changes/2026-08-05_xavdid_add-stripeobject-deserializat.change.md b/.hark/changes/2026-08-05_xavdid_add-stripeobject-deserializat.change.md new file mode 100644 index 000000000000..6f017201ac95 --- /dev/null +++ b/.hark/changes/2026-08-05_xavdid_add-stripeobject-deserializat.change.md @@ -0,0 +1,5 @@ +--- +title: add stripeobject deserialization helper for JsonObject +pr_url: https://github.com/stripe/stripe-java/pull/2263 +released_in_version: 33.3.0 +--- diff --git a/.hark/changes/2026-08-06_xavdid_add-adjust-event.change.md b/.hark/changes/2026-08-06_xavdid_add-adjust-event.change.md new file mode 100644 index 000000000000..352364b24584 --- /dev/null +++ b/.hark/changes/2026-08-06_xavdid_add-adjust-event.change.md @@ -0,0 +1,11 @@ +--- +title: add/adjust event parsing helpers +pr_url: https://github.com/stripe/stripe-java/pull/2256 +released_in_version: 33.3.0 +--- + +- Added methods that return their respective `Event`/`EventNotification` class instances without verifying authenticity. Use them when you've previously verified an event (e.g. you verified, put the event in a queue, and are now processing). Supports events from [AWS EventBridge](https://docs.stripe.com/event-destinations/eventbridge) and [Azure Event Grid](https://docs.stripe.com/event-destinations/eventgrid) natively. + - `Webhook.constructEventWithoutVerification(payload)` + - `StripeClient.constructEventWithoutVerification(payload)` + - `StripeClient.parseEventNotificationWithoutVerification(payload)` +- Added `Webhook.Signature.generateSignatureHeader(payload, secret)`, which computes a full `Stripe-Signature` header for the given payload. Useful for unit tests! diff --git a/.hark/changes/2026-08-07_xavdid_surface-object-property.change.md b/.hark/changes/2026-08-07_xavdid_surface-object-property.change.md new file mode 100644 index 000000000000..a5bcdd24a704 --- /dev/null +++ b/.hark/changes/2026-08-07_xavdid_surface-object-property.change.md @@ -0,0 +1,5 @@ +--- +title: Surface `object` property on `EventNotification` +pr_url: https://github.com/stripe/stripe-java/pull/2265 +released_in_version: 33.3.0 +--- diff --git a/.hark/changes/2026-08-19_xavdid_add-new-eventnotific.change.md b/.hark/changes/2026-08-19_xavdid_add-new-eventnotific.change.md new file mode 100644 index 000000000000..420434d8878a --- /dev/null +++ b/.hark/changes/2026-08-19_xavdid_add-new-eventnotific.change.md @@ -0,0 +1,10 @@ +--- +title: Add new `EventNotificationHandler` class for better thin event management +pr_url: https://github.com/stripe/stripe-java/pull/2269 +released_in_version: 33.4.0 +--- + +- We've been putting a lot of time into rethinking the event handling experience in the SDKs. This new class is the culmination [of that effort](https://stripe.dev/blog/event-notification-handlers-thin-events). +- They're designed for a tight coupling with both `StripeClient` and the fully-typed nature of [thin events](https://docs.stripe.com/event-destinations#thin-events). This delivers painless event destination upgrades, in-editor checks for common mistakes, and better code modularity. +- Now that we've released [thin event notifications for v1 objects](https://docs.stripe.com/changelog#2026-08-26.dahlia), these new handlers are our recommended path for all integrations using thin event notifications. +- See more detailed docs here: https://docs.stripe.com/webhooks/event-notification-handlers diff --git a/.hark/changes/2026-08-26_xavdid_update-generated-code.change.md b/.hark/changes/2026-08-26_xavdid_update-generated-code.change.md new file mode 100644 index 000000000000..947e88f80235 --- /dev/null +++ b/.hark/changes/2026-08-26_xavdid_update-generated-code.change.md @@ -0,0 +1,28 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-java/pull/2262 +semver_level: major +is_stripe_api_change: true +released_in_version: 33.4.0 +--- + +* Add support for new resource `billing.FeedbackOption` +* Add support for `create`, `deactivate`, `list`, `retrieve`, and `update` methods on resource `billing.FeedbackOption` +* Add support for `paymentMethodSettings` on `AccountSession.components` and `AccountSessionCreateParams.components` +* Add support for `feedbackOptions` on `billingportal.Configuration.features.subscription_cancel.cancellation_reason`, `billingportal.ConfigurationCreateParams.features.subscription_cancel.cancellation_reason`, and `billingportal.ConfigurationUpdateParams.features.subscription_cancel.cancellation_reason` +* Add support for new value `customer_update` on enum `billingportal.SessionCreateParams.flow_data.type` +* Add support for `customerUpdate` on `billingportal.Session.flow` +* Add support for `fundingSourceGroup` on `Charge.payment_method_details.card.wallet.link` and `Charge.payment_method_details.link` +* Add support for `fundingTypesBlocked` on `checkout.Session.payment_method_options.card.restrictions` and `checkout.SessionCreateParams.payment_method_options.card.restrictions` +* Add support for `metadata` on `ConfirmationToken` +* Add support for `activeEntitlements` and `customerPortal` on `CustomerSession.components` and `CustomerSessionCreateParams.components` +* Add support for `country` on `financialconnections.Session.filters` +* Add support for `frozenFields` on `InvoiceItem` +* Add support for `billie` on `Invoice.payment_settings.payment_method_options`, `InvoiceCreateParams.payment_settings.payment_method_options`, `InvoiceUpdateParams.payment_settings.payment_method_options`, `Subscription.payment_settings.payment_method_options`, `SubscriptionCreateParams.payment_settings.payment_method_options`, and `SubscriptionUpdateParams.payment_settings.payment_method_options` +* Add support for new value `billie` on enums `InvoiceCreateParams.payment_settings.paymentMethodTypes`, `InvoiceUpdateParams.payment_settings.paymentMethodTypes`, `SubscriptionCreateParams.payment_settings.paymentMethodTypes`, and `SubscriptionUpdateParams.payment_settings.paymentMethodTypes` +* ⚠️ Remove support for `cryptogram` on `PaymentAttemptRecord.payment_method_details.card.three_d_secure` and `PaymentRecord.payment_method_details.card.three_d_secure` +* Add support for new value `touch_n_go` on enums `PaymentIntentConfirmParams.allowedPaymentMethodTypes`, `PaymentIntentCreateParams.allowedPaymentMethodTypes`, `PaymentIntentUpdateParams.allowedPaymentMethodTypes`, `SetupIntentConfirmParams.allowedPaymentMethodTypes`, `SetupIntentCreateParams.allowedPaymentMethodTypes`, and `SetupIntentUpdateParams.allowedPaymentMethodTypes` +* Add support for `applicationFeeAmount`, `applicationFeePercent`, `onBehalfOf`, and `transferData` on `PaymentLinkUpdateParams` +* Add support for `feedbackOption` on `Subscription.cancellation_details`, `SubscriptionCancelParams.cancellation_details`, and `SubscriptionUpdateParams.cancellation_details` +* Add support for `igic` on `tax.Registration.country_options.at`, `tax.Registration.country_options.be`, `tax.Registration.country_options.bg`, `tax.Registration.country_options.cy`, `tax.Registration.country_options.cz`, `tax.Registration.country_options.de`, `tax.Registration.country_options.dk`, `tax.Registration.country_options.ee`, `tax.Registration.country_options.es`, `tax.Registration.country_options.fi`, `tax.Registration.country_options.fr`, `tax.Registration.country_options.gr`, `tax.Registration.country_options.hr`, `tax.Registration.country_options.hu`, `tax.Registration.country_options.ie`, `tax.Registration.country_options.it`, `tax.Registration.country_options.lt`, `tax.Registration.country_options.lu`, `tax.Registration.country_options.lv`, `tax.Registration.country_options.mt`, `tax.Registration.country_options.nl`, `tax.Registration.country_options.pl`, `tax.Registration.country_options.pt`, `tax.Registration.country_options.ro`, `tax.Registration.country_options.se`, `tax.Registration.country_options.si`, `tax.Registration.country_options.sk`, `tax.RegistrationCreateParams.country_options.at`, `tax.RegistrationCreateParams.country_options.be`, `tax.RegistrationCreateParams.country_options.bg`, `tax.RegistrationCreateParams.country_options.cy`, `tax.RegistrationCreateParams.country_options.cz`, `tax.RegistrationCreateParams.country_options.de`, `tax.RegistrationCreateParams.country_options.dk`, `tax.RegistrationCreateParams.country_options.ee`, `tax.RegistrationCreateParams.country_options.es`, `tax.RegistrationCreateParams.country_options.fi`, `tax.RegistrationCreateParams.country_options.fr`, `tax.RegistrationCreateParams.country_options.gr`, `tax.RegistrationCreateParams.country_options.hr`, `tax.RegistrationCreateParams.country_options.hu`, `tax.RegistrationCreateParams.country_options.ie`, `tax.RegistrationCreateParams.country_options.it`, `tax.RegistrationCreateParams.country_options.lt`, `tax.RegistrationCreateParams.country_options.lu`, `tax.RegistrationCreateParams.country_options.lv`, `tax.RegistrationCreateParams.country_options.mt`, `tax.RegistrationCreateParams.country_options.nl`, `tax.RegistrationCreateParams.country_options.pl`, `tax.RegistrationCreateParams.country_options.pt`, `tax.RegistrationCreateParams.country_options.ro`, `tax.RegistrationCreateParams.country_options.se`, `tax.RegistrationCreateParams.country_options.si`, and `tax.RegistrationCreateParams.country_options.sk` +* Add support for new value `2026-08-26.dahlia` on enum `WebhookEndpointCreateParams.apiVersion` diff --git a/.hark/changes/2026-08-31_xavdid_harden-api-requestor.change.md b/.hark/changes/2026-08-31_xavdid_harden-api-requestor.change.md new file mode 100644 index 000000000000..83d7947114ad --- /dev/null +++ b/.hark/changes/2026-08-31_xavdid_harden-api-requestor.change.md @@ -0,0 +1,5 @@ +--- +title: Harden API requestor code against malicious URLs +pr_url: https://github.com/stripe/stripe-java/pull/2284 +released_in_version: 33.4.1 +--- diff --git a/.hark/changes/2026-09-09_xavdid_validate-webhook-secrets.change.md b/.hark/changes/2026-09-09_xavdid_validate-webhook-secrets.change.md new file mode 100644 index 000000000000..833635d73b69 --- /dev/null +++ b/.hark/changes/2026-09-09_xavdid_validate-webhook-secrets.change.md @@ -0,0 +1,5 @@ +--- +title: Validate that webhook secrets are non-empty +pr_url: https://github.com/stripe/stripe-java/pull/2286 +released_in_version: 33.4.2 +--- diff --git a/.hark/changes/2026-09-11_xavdid_support-eventnotifica-singleton.change.md b/.hark/changes/2026-09-11_xavdid_support-eventnotifica-singleton.change.md new file mode 100644 index 000000000000..c1b5879dfc66 --- /dev/null +++ b/.hark/changes/2026-09-11_xavdid_support-eventnotifica-singleton.change.md @@ -0,0 +1,5 @@ +--- +title: Support `EventNotification`s with singleton related objects +pr_url: https://github.com/stripe/stripe-java/pull/2288 +semver_level: minor +--- diff --git a/.hark/changes/2026-09-15_zacchua_add-stripe-suppress-notices.change.md b/.hark/changes/2026-09-15_zacchua_add-stripe-suppress-notices.change.md new file mode 100644 index 000000000000..4f82effe0de4 --- /dev/null +++ b/.hark/changes/2026-09-15_zacchua_add-stripe-suppress-notices.change.md @@ -0,0 +1,7 @@ +--- +title: Allow suppressing Stripe notices +pr_url: https://github.com/stripe/stripe-java/pull/2293 +semver_level: minor +--- + +Set the `STRIPE_SUPPRESS_NOTICES` environment variable to `true` to suppress Stripe notices in test and sandbox environments when not running under a detected AI agent. Notices remain enabled by default and continue to be shown to AI agents. diff --git a/.hark/changes/2026-09-16_zacchua_fix-event-handler-account-scoping.change.md b/.hark/changes/2026-09-16_zacchua_fix-event-handler-account-scoping.change.md new file mode 100644 index 000000000000..36603fc6d4fc --- /dev/null +++ b/.hark/changes/2026-09-16_zacchua_fix-event-handler-account-scoping.change.md @@ -0,0 +1,8 @@ +--- +title: Fix account scoping for event notification handler callback clients +pr_url: https://github.com/stripe/stripe-java/pull/2294 +semver_level: patch +--- + +- Fix callback clients to use the event's Stripe context and preserve the original client's non-account configuration. +- Fix API errors when using an event notification handler with a client configured with a Stripe account. diff --git a/.hark/intros/intro-17.0.0.md b/.hark/intros/intro-17.0.0.md new file mode 100644 index 000000000000..4cad20139542 --- /dev/null +++ b/.hark/intros/intro-17.0.0.md @@ -0,0 +1 @@ +Pull requests included in this release (cf. [#869](https://github.com/stripe/stripe-java/pull/869)) (⚠️ = breaking changes): diff --git a/.hark/intros/intro-21.0.0.md b/.hark/intros/intro-21.0.0.md new file mode 100644 index 000000000000..8bd7d7a205fc --- /dev/null +++ b/.hark/intros/intro-21.0.0.md @@ -0,0 +1,3 @@ +This release includes breaking changes resulting from: + +"⚠️" symbol highlights breaking changes. diff --git a/.hark/intros/intro-22.0.0.md b/.hark/intros/intro-22.0.0.md new file mode 100644 index 000000000000..d6e416bd7667 --- /dev/null +++ b/.hark/intros/intro-22.0.0.md @@ -0,0 +1,21 @@ +Breaking changes that arose during code generation of the library that we postponed for the next major version. For changes to the Stripe products, read more at https://docs.stripe.com/changelog/2022-11-15. + +"⚠️" symbol highlights breaking changes. + +Use of `setStripeVersionOverride` is discouraged and can lead to unexpected errors during service calls because Java SDK class shapes are not guaranteed to match API responses on arbitrary versions. + +If you were using these methods in conjunction with `EphemeralKey` resource prefer the `EphemeralKeyCreateParamsBuilder.setStripeVersion`. +```java +EphemeralKeyCreateParams params = EphemeralKeyCreateParams.builder() + .setStripeVersion("XXXX-YY-ZZ") + .build(); +``` + +If you have a use case that requires per-request version overrides, please file an issue on [stripe-java](https://github.com/stripe/stripe-java/issues) repository to ensure we are aware and can add first-class support for it. In the meantime you can use `unsafeSetStripeVersionOverride` method as a workaround. +```java +RequestOptions.RequestOptionsBuilder builder = RequestOptions.builder(); +builder.setApiKey(...) + .setClientId(...); + +RequestOptionsBuilder.unsafeSetStripeVersionOverride(builder, "2022-11-15"); +``` diff --git a/.hark/intros/intro-23.0.0.md b/.hark/intros/intro-23.0.0.md new file mode 100644 index 000000000000..9063146eaf4c --- /dev/null +++ b/.hark/intros/intro-23.0.0.md @@ -0,0 +1 @@ +"⚠️" symbol highlights breaking changes. diff --git a/.hark/intros/intro-28.0.0.md b/.hark/intros/intro-28.0.0.md new file mode 100644 index 000000000000..6ed3563b2ba2 --- /dev/null +++ b/.hark/intros/intro-28.0.0.md @@ -0,0 +1,3 @@ +Historically, when upgrading webhooks to a new API version, you also had to upgrade your SDK version. Your webhook's API version needed to match the API version pinned by the SDK you were using to ensure successful deserialization of events. With the `2024-09-30.acacia` release, Stripe follows a [new API release process](https://stripe.com/blog/introducing-stripes-new-api-release-process). As a result, you can safely upgrade your webhook endpoints to any API version within a biannual release (like `acacia`) without upgrading the SDK. + +However, [a bug](https://github.com/stripe/stripe-java/pull/1906) in the `27.x.y` SDK releases meant that webhook version upgrades from the SDK's pinned `2024-09-30.acacia` version to the new `2024-10-28.acacia` version would fail. Therefore, we are shipping SDK support for `2024-10-28.acacia` as a major version to enforce the idea that an SDK upgrade is also required. Future API versions in the `acacia` line will be released as minor versions. diff --git a/.hark/intros/intro-30.0.0.md b/.hark/intros/intro-30.0.0.md new file mode 100644 index 000000000000..caec7ed1d3f9 --- /dev/null +++ b/.hark/intros/intro-30.0.0.md @@ -0,0 +1 @@ +This release contains breaking changes (prefixed with ⚠️ below) diff --git a/.hark/intros/intro-32.0.0.md b/.hark/intros/intro-32.0.0.md new file mode 100644 index 000000000000..e98f6f33cecf --- /dev/null +++ b/.hark/intros/intro-32.0.0.md @@ -0,0 +1,3 @@ +This release contains breaking changes (prefixed with ⚠️ below). There's also a [detailed migration guide](https://github.com/stripe/stripe-java/wiki/Migration-guide-for-v32) to simplify your upgrade process. + +Please review details for the breaking changes and alternatives in the [Stripe API changelog](https://docs.stripe.com/changelog/dahlia) before upgrading. diff --git a/.hark/intros/intro-33.0.0.md b/.hark/intros/intro-33.0.0.md new file mode 100644 index 000000000000..8f91e7c5d288 --- /dev/null +++ b/.hark/intros/intro-33.0.0.md @@ -0,0 +1,3 @@ +This release **doesn't** change the pinned API version; it still uses `2026-05-27.dahlia`. + +We're doing an out-of-band-major to update a field type that changed. If you're not using `tax_details`, this is a no-op release when compared with the last one. If you _are_ using `tax_details` its type has changed slightly and you'll have to update your code when upgrading. diff --git a/.hark/intros/intro-6.0.0.md b/.hark/intros/intro-6.0.0.md new file mode 100644 index 000000000000..eec96564f263 --- /dev/null +++ b/.hark/intros/intro-6.0.0.md @@ -0,0 +1,3 @@ +Major version release. Refer to our [migration guide for v6](https://github.com/stripe/stripe-java/wiki/Migration-guide-for-v6) for a list of backwards incompatible changes to watch out for. + +Pull requests included in this release: diff --git a/.hark/intros/intro-7.0.0.md b/.hark/intros/intro-7.0.0.md new file mode 100644 index 000000000000..443f9533aa70 --- /dev/null +++ b/.hark/intros/intro-7.0.0.md @@ -0,0 +1,3 @@ +Major version release. Refer to our [migration guide for v7](https://github.com/stripe/stripe-java/wiki/Migration-guide-for-v7) for a list of backwards incompatible changes to watch out for. + +Pull requests included in this release: diff --git a/README.md b/README.md index cb0eee807bbc..267b8b935b9e 100644 --- a/README.md +++ b/README.md @@ -128,6 +128,10 @@ client.v1().customers().list(requestOptions); client.v1().customers().retrieve("cus_123456789", requestOptions); ``` +### Suppressing Stripe notices + +The SDK may print notices from Stripe that it receives in the `Stripe-Notice` header. These notices are always printed when the SDK runs in an agent environment. For API calls to test accounts or sandboxes, notices are also printed when the SDK runs outside an agent environment. To suppress notices when the SDK runs outside an agent environment, set the `STRIPE_SUPPRESS_NOTICES` environment variable to `true` before running your integration. + ### Configuring automatic retries The library can be configured to automatically retry requests that fail due to diff --git a/src/main/java/com/stripe/StripeClient.java b/src/main/java/com/stripe/StripeClient.java index f77aa78516a1..ede029433b99 100644 --- a/src/main/java/com/stripe/StripeClient.java +++ b/src/main/java/com/stripe/StripeClient.java @@ -92,7 +92,11 @@ public StripeClient withStripeContext(StripeContext context) { ClientStripeResponseGetterOptions existingOptions = (ClientStripeResponseGetterOptions) options; - return existingOptions.toBuilder().stripeContext(contextString).build(); + return existingOptions + .toBuilder() + .stripeAccount(null) + .stripeContext(contextString) + .build(); }); // Create and return a new StripeClient with the new response getter diff --git a/src/main/java/com/stripe/model/v2/core/Event.java b/src/main/java/com/stripe/model/v2/core/Event.java index 2bda3093996c..8de0c45dd3ee 100644 --- a/src/main/java/com/stripe/model/v2/core/Event.java +++ b/src/main/java/com/stripe/model/v2/core/Event.java @@ -90,12 +90,25 @@ protected StripeObject fetchRelatedObject(RelatedObject relatedObject) throws St if (relatedObject == null) { return null; } - if (relatedObject.getUrl() == null) { + return fetchRelatedObjectByTypeAndUrl(relatedObject.getType(), relatedObject.getUrl()); + } + + /** Retrieves the object associated with the event. */ + protected StripeObject fetchRelatedObject(RelatedSingletonObject relatedObject) + throws StripeException { + if (relatedObject == null) { return null; } + return fetchRelatedObjectByTypeAndUrl(relatedObject.getType(), relatedObject.getUrl()); + } - Class objectClass = - EventDataClassLookup.classLookup.get(relatedObject.getType()); + private StripeObject fetchRelatedObjectByTypeAndUrl(String type, String url) + throws StripeException { + if (url == null) { + return null; + } + + Class objectClass = EventDataClassLookup.classLookup.get(type); if (objectClass == null) { objectClass = StripeRawJsonObject.class; } @@ -110,8 +123,7 @@ protected StripeObject fetchRelatedObject(RelatedObject relatedObject) throws St RequestOptions opts = optsBuilder.build(); return this.responseGetter.request( - new ApiRequest( - BaseAddress.API, ApiResource.RequestMethod.GET, relatedObject.getUrl(), null, opts), + new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, url, null, opts), objectClass); } @@ -139,7 +151,21 @@ public static class RelatedObject extends StripeObject implements HasId { @SerializedName("type") String type; + /** URL to retrieve the resource. */ + @SerializedName("url") + String url; + } + + /** The related object map for a singleton object who has no {@code id}. */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class RelatedSingletonObject extends StripeObject { /** Type of the object relevant to the event. */ + @SerializedName("type") + String type; + + /** URL to retrieve the resource. */ @SerializedName("url") String url; } diff --git a/src/main/java/com/stripe/model/v2/core/EventNotification.java b/src/main/java/com/stripe/model/v2/core/EventNotification.java index 96f637d45440..d69623646fb1 100644 --- a/src/main/java/com/stripe/model/v2/core/EventNotification.java +++ b/src/main/java/com/stripe/model/v2/core/EventNotification.java @@ -10,6 +10,7 @@ import com.stripe.model.StripeObject; import com.stripe.model.v2.EventNotificationClassLookup; import com.stripe.model.v2.core.Event.RelatedObject; +import com.stripe.model.v2.core.Event.RelatedSingletonObject; import com.stripe.net.ApiMode; import com.stripe.net.ApiResource; import com.stripe.net.ApiResource.RequestMethod; @@ -144,9 +145,14 @@ private RawRequestOptions getRequestOptions() { /* retrieves the full payload for an event. Protected because individual push classes use it, but type it correctly */ protected Event fetchEvent() throws StripeException { + // `id` comes from the notification body, so encode it the way the generated + // services do -- otherwise it can inject extra path or query segments. StripeResponse response = client.rawRequest( - RequestMethod.GET, String.format("/v2/core/events/%s", id), null, getRequestOptions()); + RequestMethod.GET, + String.format("/v2/core/events/%s", ApiResource.urlEncodeId(id)), + null, + getRequestOptions()); return (Event) client.deserialize(response.body(), ApiMode.V2); } @@ -158,8 +164,19 @@ protected StripeObject fetchRelatedObject(RelatedObject relatedObject) throws St return null; } - String relativeUrl = relatedObject.getUrl(); + return fetchRelatedObjectByUrl(relatedObject.getUrl()); + } + + protected StripeObject fetchRelatedObject(RelatedSingletonObject relatedObject) + throws StripeException { + if (relatedObject == null) { + return null; + } + + return fetchRelatedObjectByUrl(relatedObject.getUrl()); + } + private StripeObject fetchRelatedObjectByUrl(String relativeUrl) throws StripeException { StripeResponse response = client.rawRequest(RequestMethod.GET, relativeUrl, null, getRequestOptions()); diff --git a/src/main/java/com/stripe/net/LiveStripeResponseGetter.java b/src/main/java/com/stripe/net/LiveStripeResponseGetter.java index b04b29f1fcbb..6422d77c1dff 100644 --- a/src/main/java/com/stripe/net/LiveStripeResponseGetter.java +++ b/src/main/java/com/stripe/net/LiveStripeResponseGetter.java @@ -26,6 +26,8 @@ public class LiveStripeResponseGetter implements StripeResponseGetter { private static final Logger logger = Logger.getLogger("Stripe"); + private static final String STRIPE_NOTICE_SUPPRESSION_MESSAGE = + "To suppress Stripe notices in test and sandbox environments, set the STRIPE_SUPPRESS_NOTICES environment variable to true."; private final HttpClient httpClient; private final StripeResponseGetterOptions options; @@ -283,7 +285,24 @@ public InputStream requestStream( } private static void maybeEmitStripeNotice(HttpHeaders headers) { - headers.firstValue("Stripe-Notice").ifPresent(logger::warning); + buildStripeNoticeMessage(headers, System::getenv).ifPresent(logger::warning); + } + + static Optional buildStripeNoticeMessage( + HttpHeaders headers, Function getEnv) { + Optional notice = headers.firstValue("Stripe-Notice"); + if (!notice.isPresent()) { + return Optional.empty(); + } + + String aiAgent = HttpClient.detectAIAgent(getEnv); + if (aiAgent.isEmpty() && "true".equalsIgnoreCase(getEnv.apply("STRIPE_SUPPRESS_NOTICES"))) { + return Optional.empty(); + } + + return aiAgent.isEmpty() + ? Optional.of(notice.get() + "\n" + STRIPE_NOTICE_SUPPRESSION_MESSAGE) + : notice; } private static HttpClient buildDefaultHttpClient() { @@ -475,6 +494,27 @@ public void validateRequestOptions(RequestOptions options) { } } + /** + * Asserts that a request path is origin-relative: that it begins with a single {@code "/"}. + * + *

The absolute URL is built by concatenating a base URL onto this path, and no base URL ends + * in a slash. A path like {@code "@evil.example/v1/x"} or {@code ".evil.example/v1/x"} would + * modify the resulting host and direct the request (including the API key) to a non-Stripe host. + * + *

Because some relative urls arrive from potentially untrusted sources (like webhook bodies), + * we have to be a little defensive. + * + *

So, we require that a path starts with a leading slash. Deliberately not using {@link + * java.net.URI} to parse -- it enforces RFC 2396 strictly and would reject paths containing + * characters that callers have always been able to send. + */ + static void validatePath(String path) { + if (path == null || !path.startsWith("/") || path.startsWith("//")) { + throw new IllegalArgumentException( + "Request path must begin with a single \"/\", got: " + path); + } + } + private String fullUrl(BaseApiRequest apiRequest) { BaseAddress baseAddress = apiRequest.getBaseAddress(); RequestOptions options = apiRequest.getOptions(); @@ -499,6 +539,7 @@ private String fullUrl(BaseApiRequest apiRequest) { if (options != null && options.getBaseUrl() != null) { baseUrl = options.getBaseUrl(); } + validatePath(relativeUrl); return String.format("%s%s", baseUrl, relativeUrl); } } diff --git a/src/main/java/com/stripe/net/Webhook.java b/src/main/java/com/stripe/net/Webhook.java index e5b8b5d0681e..6f04bb9a822b 100644 --- a/src/main/java/com/stripe/net/Webhook.java +++ b/src/main/java/com/stripe/net/Webhook.java @@ -204,6 +204,11 @@ public static boolean verifyHeader( "No signatures found with expected scheme", sigHeader); } + if (secret == null || secret.isEmpty()) { + throw new SignatureVerificationException( + "No webhook secret value was provided. It should start with `whsec_`", sigHeader); + } + // Compute expected signature String signedPayload = String.format("%d.%s", timestamp, payload); String expectedSignature; diff --git a/src/test/java/com/stripe/StripeEventNotificationHandlerTest.java b/src/test/java/com/stripe/StripeEventNotificationHandlerTest.java index 8c67471b0f55..3ef25d09a308 100644 --- a/src/test/java/com/stripe/StripeEventNotificationHandlerTest.java +++ b/src/test/java/com/stripe/StripeEventNotificationHandlerTest.java @@ -17,6 +17,7 @@ import com.stripe.events.V2CoreAccountCreatedEventNotification; import com.stripe.exception.SignatureVerificationException; import com.stripe.model.v2.core.EventNotification; +import com.stripe.net.LiveStripeResponseGetter; import com.stripe.net.Webhook; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; @@ -46,6 +47,7 @@ public void setUp() { stripeClient = StripeClient.builder() .setApiKey("sk_test_1234") + .setStripeAccount("acct_123") .setStripeContext("original_context_123") .build(); @@ -270,9 +272,13 @@ public void testHandlerUsesEventStripeContext() throws SignatureVerificationException, NoSuchAlgorithmException, InvalidKeyException { // Test that the handler receives a client with stripe_context from the event AtomicReference receivedContext = new AtomicReference<>(); + AtomicReference receivedAccount = new AtomicReference<>(); EventNotificationCallback handler = (event, client) -> { + LiveStripeResponseGetter responseGetter = + (LiveStripeResponseGetter) client.getResponseGetter(); + receivedAccount.set(responseGetter.getOptions().getStripeAccount()); receivedContext.set(client.getContext()); }; @@ -284,6 +290,7 @@ public void testHandlerUsesEventStripeContext() eventNotificationHandler.handle(v1BillingMeterPayload, sigHeader); assertEquals("event_context_456", receivedContext.get()); + assertNull(receivedAccount.get()); } @Test diff --git a/src/test/java/com/stripe/functional/LiveStripeResponseGetterTest.java b/src/test/java/com/stripe/functional/LiveStripeResponseGetterTest.java index e4e93fb31a8a..3c1ede103539 100644 --- a/src/test/java/com/stripe/functional/LiveStripeResponseGetterTest.java +++ b/src/test/java/com/stripe/functional/LiveStripeResponseGetterTest.java @@ -88,8 +88,12 @@ public void testStripeNoticeHeaderEmitsWarning() throws StripeException { assertEquals(1, logHandler.records.size()); assertEquals(Level.WARNING, logHandler.records.get(0).getLevel()); - assertEquals( - "This API version will be deprecated soon.", logHandler.records.get(0).getMessage()); + assertTrue( + logHandler + .records + .get(0) + .getMessage() + .startsWith("This API version will be deprecated soon.")); } @Test diff --git a/src/test/java/com/stripe/model/v2/EventTests.java b/src/test/java/com/stripe/model/v2/EventTests.java index 62517ce4f57e..6576090970c4 100644 --- a/src/test/java/com/stripe/model/v2/EventTests.java +++ b/src/test/java/com/stripe/model/v2/EventTests.java @@ -5,8 +5,11 @@ import com.stripe.BaseStripeTest; import com.stripe.events.V1BillingMeterErrorReportTriggeredEvent; import com.stripe.exception.StripeException; +import com.stripe.model.StripeObject; import com.stripe.model.billing.Meter; import com.stripe.model.v2.core.Event; +import com.stripe.model.v2.core.Event.RelatedSingletonObject; +import com.stripe.model.v2.core.EventNotification; import com.stripe.net.ApiResource; import com.stripe.net.HttpHeaders; import com.stripe.net.StripeResponse; @@ -154,6 +157,46 @@ public void retrieveObjectFetchesAndDeserializesObject() throws StripeException, "event=evt_234", req.headers().firstValue("Stripe-Request-Trigger").orElse(null))); } + /** + * The type singleton events point at instead of {@link Event.RelatedObject}. There's no generated + * singleton event yet, so exercise the type directly. + */ + @Test + public void deserializesRelatedSingletonObject() { + String json = "{\n" + " \"type\": \"balance\",\n" + " \"url\": \"/v1/balance\"\n" + "}"; + + RelatedSingletonObject relatedObject = + ApiResource.GSON.fromJson(json, RelatedSingletonObject.class); + + assertEquals("balance", relatedObject.getType()); + assertEquals("/v1/balance", relatedObject.getUrl()); + + // the whole point of the type: no `id` field, and so no accessor for one either + assertThrows( + NoSuchFieldException.class, () -> RelatedSingletonObject.class.getDeclaredField("id")); + assertThrows( + NoSuchMethodException.class, () -> RelatedSingletonObject.class.getMethod("getId")); + } + + /** + * Generated singleton event classes call {@code super.fetchRelatedObject(this.relatedObject)}, so + * both base classes need an overload that takes the singleton type. Asserted reflectively because + * no generated singleton event exists to exercise it yet. + */ + @Test + public void baseClassesAcceptRelatedSingletonObject() throws NoSuchMethodException { + assertEquals( + StripeObject.class, + Event.class + .getDeclaredMethod("fetchRelatedObject", RelatedSingletonObject.class) + .getReturnType()); + assertEquals( + StripeObject.class, + EventNotification.class + .getDeclaredMethod("fetchRelatedObject", RelatedSingletonObject.class) + .getReturnType()); + } + // FIXME (jar) this should no longer be possible; confirm this and remove before merge // @Test // public void retrieveObjectFetchesAndDeserializesUnknownObject() diff --git a/src/test/java/com/stripe/net/DiscriminatedUnionSerializationTest.java b/src/test/java/com/stripe/net/DiscriminatedUnionSerializationTest.java new file mode 100644 index 000000000000..82417d7448ee --- /dev/null +++ b/src/test/java/com/stripe/net/DiscriminatedUnionSerializationTest.java @@ -0,0 +1,351 @@ +package com.stripe.net; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertTrue; + +import com.google.gson.FieldNamingPolicy; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonObject; +import com.google.gson.JsonParser; +import com.google.gson.TypeAdapter; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.annotations.SerializedName; +import com.google.gson.reflect.TypeToken; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.stripe.model.StripeObject; +import java.io.IOException; +import java.util.Map; +import org.junit.jupiter.api.Test; + +public class DiscriminatedUnionSerializationTest { + private final ApiRequestParamsConverter converter = new ApiRequestParamsConverter(); + + private final Gson testGson = + new GsonBuilder() + .registerTypeAdapterFactory(new TestColorTypeAdapterFactory()) + .setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES) + .create(); + + // --------------------------------------------------------------------------- + // Request-side fixtures — standalone union + // The parent params hold an Object-typed field that can hold any variant. + // --------------------------------------------------------------------------- + + @SuppressWarnings("UnusedVariable") + private static class TestCreateParams extends ApiRequestParams { + @SerializedName("color") + Object color; + + @SerializedName("name") + String name; + } + + @SuppressWarnings("UnusedVariable") + private static class TestRgbColorParams extends ApiRequestParams { + @SerializedName("model") + String model = "rgb"; + + @SerializedName("r") + Long r; + + @SerializedName("g") + Long g; + + @SerializedName("b") + Long b; + } + + @SuppressWarnings("UnusedVariable") + private static class TestHsvColorParams extends ApiRequestParams { + @SerializedName("model") + String model = "hsv"; + + @SerializedName("h") + Long h; + + @SerializedName("s") + Long s; + + @SerializedName("v") + Long v; + } + + // --------------------------------------------------------------------------- + // Request-side fixtures — inline union + // The parent params hold the discriminator and each variant's fields directly. + // --------------------------------------------------------------------------- + + @SuppressWarnings("UnusedVariable") + private static class TestInlineParams extends ApiRequestParams { + @SerializedName("type") + String type; + + @SerializedName("card") + TestCardParams card; + + @SerializedName("bank") + TestBankParams bank; + } + + @SuppressWarnings("UnusedVariable") + private static class TestCardParams extends ApiRequestParams { + @SerializedName("number") + String number; + + @SerializedName("exp_month") + Long expMonth; + } + + @SuppressWarnings("UnusedVariable") + private static class TestBankParams extends ApiRequestParams { + @SerializedName("routing_number") + String routingNumber; + + @SerializedName("account_number") + String accountNumber; + } + + // --------------------------------------------------------------------------- + // Response-side fixtures + // --------------------------------------------------------------------------- + + private static class TestColorEntity extends StripeObject { + @SerializedName("model") + String model; + } + + private static class TestRgbColorEntity extends TestColorEntity { + @SerializedName("r") + Long r; + + @SerializedName("g") + Long g; + + @SerializedName("b") + Long b; + } + + private static class TestHsvColorEntity extends TestColorEntity { + @SerializedName("h") + Long h; + + @SerializedName("s") + Long s; + + @SerializedName("v") + Long v; + } + + private static class TestColorTypeAdapterFactory implements TypeAdapterFactory { + @Override + @SuppressWarnings("unchecked") + public TypeAdapter create(Gson gson, TypeToken type) { + if (!TestColorEntity.class.isAssignableFrom(type.getRawType())) { + return null; + } + return (TypeAdapter) + new TypeAdapter() { + @Override + @SuppressWarnings("unchecked") + public void write(JsonWriter out, TestColorEntity value) throws IOException { + ((TypeAdapter) gson.getAdapter(value.getClass())).write(out, value); + } + + @Override + public TestColorEntity read(JsonReader in) throws IOException { + JsonObject obj = JsonParser.parseReader(in).getAsJsonObject(); + String model = obj.has("model") ? obj.get("model").getAsString() : null; + if ("rgb".equals(model)) { + return gson.getDelegateAdapter( + TestColorTypeAdapterFactory.this, TypeToken.get(TestRgbColorEntity.class)) + .fromJsonTree(obj); + } else if ("hsv".equals(model)) { + return gson.getDelegateAdapter( + TestColorTypeAdapterFactory.this, TypeToken.get(TestHsvColorEntity.class)) + .fromJsonTree(obj); + } + return gson.getDelegateAdapter( + TestColorTypeAdapterFactory.this, TypeToken.get(TestColorEntity.class)) + .fromJsonTree(obj); + } + }; + } + } + + private static class TestColorContainer extends StripeObject { + @SerializedName("color") + TestColorEntity color; + + @SerializedName("name") + String name; + } + + private static class TestPaymentEntity extends StripeObject { + @SerializedName("type") + String type; + + @SerializedName("card") + TestCardEntity card; + + @SerializedName("bank") + TestBankEntity bank; + } + + private static class TestCardEntity extends StripeObject { + @SerializedName("number") + String number; + + @SerializedName("exp_month") + Long expMonth; + } + + private static class TestBankEntity extends StripeObject { + @SerializedName("routing_number") + String routingNumber; + + @SerializedName("account_number") + String accountNumber; + } + + // --------------------------------------------------------------------------- + // Tests — request side (params → map) + // --------------------------------------------------------------------------- + + @Test + @SuppressWarnings("unchecked") + public void testStandaloneUnion_RgbVariant_Serialization() { + TestRgbColorParams rgb = new TestRgbColorParams(); + rgb.r = 255L; + rgb.g = 128L; + rgb.b = 0L; + + TestCreateParams params = new TestCreateParams(); + params.color = rgb; + params.name = "sunset"; + + Map map = converter.convert(params); + assertEquals("sunset", map.get("name")); + + Map colorMap = (Map) map.get("color"); + assertEquals("rgb", colorMap.get("model")); + assertEquals(255L, colorMap.get("r")); + assertEquals(128L, colorMap.get("g")); + assertEquals(0L, colorMap.get("b")); + } + + @Test + @SuppressWarnings("unchecked") + public void testStandaloneUnion_HsvVariant_Serialization() { + TestHsvColorParams hsv = new TestHsvColorParams(); + hsv.h = 30L; + hsv.s = 100L; + hsv.v = 100L; + + TestCreateParams params = new TestCreateParams(); + params.color = hsv; + params.name = "orange"; + + Map map = converter.convert(params); + assertEquals("orange", map.get("name")); + + Map colorMap = (Map) map.get("color"); + assertEquals("hsv", colorMap.get("model")); + assertEquals(30L, colorMap.get("h")); + assertEquals(100L, colorMap.get("s")); + assertEquals(100L, colorMap.get("v")); + } + + @Test + @SuppressWarnings("unchecked") + public void testInlineUnion_CardVariant_Serialization() { + TestCardParams card = new TestCardParams(); + card.number = "4242424242424242"; + card.expMonth = 12L; + + TestInlineParams params = new TestInlineParams(); + params.type = "card"; + params.card = card; + + Map map = converter.convert(params); + assertEquals("card", map.get("type")); + + Map cardMap = (Map) map.get("card"); + assertEquals("4242424242424242", cardMap.get("number")); + assertEquals(12L, cardMap.get("exp_month")); + + // Non-selected variant is not present in serialized output. + assertEquals(null, map.get("bank")); + } + + @Test + @SuppressWarnings("unchecked") + public void testInlineUnion_BankVariant_Serialization() { + TestBankParams bank = new TestBankParams(); + bank.routingNumber = "110000000"; + bank.accountNumber = "000123456789"; + + TestInlineParams params = new TestInlineParams(); + params.type = "bank"; + params.bank = bank; + + Map map = converter.convert(params); + assertEquals("bank", map.get("type")); + + Map bankMap = (Map) map.get("bank"); + assertEquals("110000000", bankMap.get("routing_number")); + assertEquals("000123456789", bankMap.get("account_number")); + } + + // --------------------------------------------------------------------------- + // Tests — response side (JSON → object) + // --------------------------------------------------------------------------- + + @Test + public void testStandaloneUnion_RgbVariant_Deserialization() { + String json = + "{\"color\": {\"model\": \"rgb\", \"r\": 255, \"g\": 128, \"b\": 0}, \"name\": \"sunset\"}"; + + TestColorContainer container = testGson.fromJson(json, TestColorContainer.class); + + assertEquals("sunset", container.name); + assertTrue(container.color instanceof TestRgbColorEntity); + TestRgbColorEntity rgb = (TestRgbColorEntity) container.color; + assertEquals("rgb", rgb.model); + assertEquals(Long.valueOf(255L), rgb.r); + assertEquals(Long.valueOf(128L), rgb.g); + assertEquals(Long.valueOf(0L), rgb.b); + } + + @Test + public void testStandaloneUnion_HsvVariant_Deserialization() { + String json = + "{\"color\": {\"model\": \"hsv\", \"h\": 30, \"s\": 100, \"v\": 50}, \"name\": \"orange\"}"; + + TestColorContainer container = testGson.fromJson(json, TestColorContainer.class); + + assertEquals("orange", container.name); + assertTrue(container.color instanceof TestHsvColorEntity); + TestHsvColorEntity hsv = (TestHsvColorEntity) container.color; + assertEquals("hsv", hsv.model); + assertEquals(Long.valueOf(30L), hsv.h); + assertEquals(Long.valueOf(100L), hsv.s); + assertEquals(Long.valueOf(50L), hsv.v); + } + + @Test + public void testInlineUnion_CardVariant_Deserialization() { + String json = + "{\"type\": \"card\", \"card\": {\"number\": \"4242424242424242\", \"exp_month\": 12}}"; + + TestPaymentEntity entity = ApiResource.GSON.fromJson(json, TestPaymentEntity.class); + + assertEquals("card", entity.type); + assertEquals("4242424242424242", entity.card.number); + assertEquals(Long.valueOf(12L), entity.card.expMonth); + + // Non-selected variant remains null. + assertEquals(null, entity.bank); + } +} diff --git a/src/test/java/com/stripe/net/LiveStripeResponseGetterNoticeTest.java b/src/test/java/com/stripe/net/LiveStripeResponseGetterNoticeTest.java new file mode 100644 index 000000000000..d64a1c6c4042 --- /dev/null +++ b/src/test/java/com/stripe/net/LiveStripeResponseGetterNoticeTest.java @@ -0,0 +1,60 @@ +package com.stripe.net; + +import static org.junit.jupiter.api.Assertions.assertEquals; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Optional; +import java.util.function.Function; +import org.junit.jupiter.api.Test; + +public class LiveStripeResponseGetterNoticeTest { + private static final HttpHeaders NOTICE_HEADERS = + HttpHeaders.of( + Collections.singletonMap("Stripe-Notice", Collections.singletonList("test notice"))); + + @Test + public void testTellsHumansHowToSuppressNotices() { + assertEquals( + Optional.of( + "test notice\nTo suppress Stripe notices in test and sandbox environments, set the STRIPE_SUPPRESS_NOTICES environment variable to true."), + LiveStripeResponseGetter.buildStripeNoticeMessage(NOTICE_HEADERS, key -> null)); + } + + @Test + public void testSuppressesNoticesForHumans() { + for (String value : new String[] {"true", "TRUE"}) { + assertEquals( + Optional.empty(), + LiveStripeResponseGetter.buildStripeNoticeMessage( + NOTICE_HEADERS, environmentWith("STRIPE_SUPPRESS_NOTICES", value))); + } + } + + @Test + public void testDoesNotSuppressNoticesForOtherValues() { + for (String value : new String[] {"", "false", "1", "invalid"}) { + assertEquals( + Optional.of( + "test notice\nTo suppress Stripe notices in test and sandbox environments, set the STRIPE_SUPPRESS_NOTICES environment variable to true."), + LiveStripeResponseGetter.buildStripeNoticeMessage( + NOTICE_HEADERS, environmentWith("STRIPE_SUPPRESS_NOTICES", value))); + } + } + + @Test + public void testDoesNotSuppressNoticesForAIAgents() { + Map environment = new HashMap<>(); + environment.put("STRIPE_SUPPRESS_NOTICES", "true"); + environment.put("CODEX_SANDBOX", "1"); + + assertEquals( + Optional.of("test notice"), + LiveStripeResponseGetter.buildStripeNoticeMessage(NOTICE_HEADERS, environment::get)); + } + + private static Function environmentWith(String key, String value) { + return requestedKey -> requestedKey.equals(key) ? value : null; + } +} diff --git a/src/test/java/com/stripe/net/OriginRelativePathTest.java b/src/test/java/com/stripe/net/OriginRelativePathTest.java new file mode 100644 index 000000000000..9e4f8c5eac4f --- /dev/null +++ b/src/test/java/com/stripe/net/OriginRelativePathTest.java @@ -0,0 +1,65 @@ +package com.stripe.net; + +import static org.junit.jupiter.api.Assertions.*; + +import com.stripe.BaseStripeTest; +import org.junit.jupiter.api.Test; + +public class OriginRelativePathTest extends BaseStripeTest { + + private static final String[] ORIGIN_RELATIVE_PATHS = { + "/v1/customers/cus_123", + "/v1/customers", + "/v2/core/accounts?page=page_123&limit=2", + // '@' is legal inside a path or query string -- it only opens an authority + // when it precedes the first '/'. + "/v1/customers?email=user%40example.com", + "/v1/invoices/in_123@456", + // A backslash does not open an authority: the '/' already closed it. + "/v1/\\evil.example", + }; + + private static final String[] HOSTILE_PATHS = { + // Concatenated onto a base URL with no trailing slash, each of these moves + // the request's authority off api.stripe.com. + "@evil.example/v1/leak", + ":pw@evil.example/v1/leak", + ":80@evil.example/v1/leak", + // Extends the host into an attacker-owned subdomain + // (api.stripe.com.evil.example), which has a valid certificate. + ".evil.example/v1/leak", + "-evil.example/v1/leak", + "https://evil.example/v1/leak", + "//evil.example/v1/leak", + "", + "v1/customers", + null, + }; + + @Test + public void testAcceptsOriginRelativePaths() { + for (String path : ORIGIN_RELATIVE_PATHS) { + assertDoesNotThrow( + () -> LiveStripeResponseGetter.validatePath(path), "expected to accept: " + path); + } + } + + @Test + public void testRejectsHostilePaths() { + for (String path : HOSTILE_PATHS) { + assertThrows( + IllegalArgumentException.class, + () -> LiveStripeResponseGetter.validatePath(path), + "expected to reject: " + path); + } + } + + @Test + public void testRejectionMessageNamesThePath() { + IllegalArgumentException e = + assertThrows( + IllegalArgumentException.class, + () -> LiveStripeResponseGetter.validatePath("@evil.example/v1/leak")); + assertTrue(e.getMessage().contains("@evil.example/v1/leak")); + } +} diff --git a/src/test/java/com/stripe/net/WebhookTest.java b/src/test/java/com/stripe/net/WebhookTest.java index cf7a7c7d9c70..d1f8f153aa27 100644 --- a/src/test/java/com/stripe/net/WebhookTest.java +++ b/src/test/java/com/stripe/net/WebhookTest.java @@ -170,6 +170,38 @@ public void testNoSignaturesWithExpectedScheme() assertEquals("No signatures found with expected scheme", exception.getMessage()); } + @Test + public void testEmptySecret() + throws SignatureVerificationException, NoSuchAlgorithmException, InvalidKeyException { + final String sigHeader = generateSigHeader(); + + Throwable exception = + assertThrows( + SignatureVerificationException.class, + () -> { + Webhook.Signature.verifyHeader(payload, sigHeader, "", 0, null); + }); + assertEquals( + "No webhook secret value was provided. It should start with `whsec_`", + exception.getMessage()); + } + + @Test + public void testNullSecret() + throws SignatureVerificationException, NoSuchAlgorithmException, InvalidKeyException { + final String sigHeader = generateSigHeader(); + + Throwable exception = + assertThrows( + SignatureVerificationException.class, + () -> { + Webhook.Signature.verifyHeader(payload, sigHeader, null, 0, null); + }); + assertEquals( + "No webhook secret value was provided. It should start with `whsec_`", + exception.getMessage()); + } + @Test public void testNoValidSignatureForPayload() throws SignatureVerificationException, NoSuchAlgorithmException, InvalidKeyException {