composer package updates
[openemr.git] / vendor / stripe / stripe-php / CHANGELOG.md
blob219c61baf686d4d4349df3313a41b094a5549ac8
1 # Changelog
3 ## 6.10.0 - 2018-06-28
4 * [#488](https://github.com/stripe/stripe-php/pull/488) Add support for `$appPartnerId` to `Stripe::setAppInfo()`
6 ## 6.9.0 - 2018-06-28
7 * [#487](https://github.com/stripe/stripe-php/pull/487) Add support for payment intents
9 ## 6.8.2 - 2018-06-24
10 * [#486](https://github.com/stripe/stripe-php/pull/486) Make `Account.deauthorize()` return the `StripeObject` from the API
12 ## 6.8.1 - 2018-06-13
13 * [#472](https://github.com/stripe/stripe-php/pull/472) Added phpDoc for `ApiRequestor` and others, especially regarding thrown errors
15 ## 6.8.0 - 2018-06-13
16 * [#481](https://github.com/stripe/stripe-php/pull/481) Add new `\Stripe\Discount` and `\Stripe\OrderItem` classes, add more PHPDoc describing object attributes
18 ## 6.7.4 - 2018-05-29
19 * [#480](https://github.com/stripe/stripe-php/pull/480) PHPDoc changes for API version 2018-05-21 and the addition of the new `CHARGE_EXPIRED` event type
21 ## 6.7.3 - 2018-05-28
22 * [#479](https://github.com/stripe/stripe-php/pull/479) Fix unnecessary traits on `\Stripe\InvoiceLineItem`
24 ## 6.7.2 - 2018-05-28
25 * [#471](https://github.com/stripe/stripe-php/pull/471) Add `OBJECT_NAME` constant to all API resource classes, add `\Stripe\InvoiceLineItem` class
27 ## 6.7.1 - 2018-05-13
28 * [#468](https://github.com/stripe/stripe-php/pull/468) Update fields in PHP docs for accuracy
30 ## 6.7.0 - 2018-05-09
31 * [#466](https://github.com/stripe/stripe-php/pull/466) Add support for issuer fraud records
33 ## 6.6.0 - 2018-04-11
34 * [#460](https://github.com/stripe/stripe-php/pull/460) Add support for flexible billing primitives
36 ## 6.5.0 - 2018-04-05
37 * [#461](https://github.com/stripe/stripe-php/pull/461) Don't zero keys on non-`metadata` subobjects
39 ## 6.4.2 - 2018-03-17
40 * [#458](https://github.com/stripe/stripe-php/pull/458) Add PHPDoc for `account` on `\Stripe\Event`
42 ## 6.4.1 - 2018-03-02
43 * [#455](https://github.com/stripe/stripe-php/pull/455) Fix namespaces in PHPDoc
44 * [#456](https://github.com/stripe/stripe-php/pull/456) Fix namespaces for some exceptions
46 ## 6.4.0 - 2018-02-28
47 * [#453](https://github.com/stripe/stripe-php/pull/453) Add constants for `reason` (`REASON_*`) and `status` (`STATUS_*`) on `\Stripe\Dispute`
49 ## 6.3.2 - 2018-02-27
50 * [#452](https://github.com/stripe/stripe-php/pull/452) Add PHPDoc for `amount_paid` and `amount_remaining` on `\Stripe\Invoice`
52 ## 6.3.1 - 2018-02-26
53 * [#443](https://github.com/stripe/stripe-php/pull/443) Add event types as constants to `\Stripe\Event` class
55 ## 6.3.0 - 2018-02-23
56 * [#450](https://github.com/stripe/stripe-php/pull/450) Add support for `code` attribute on all Stripe exceptions
58 ## 6.2.0 - 2018-02-21
59 * [#440](https://github.com/stripe/stripe-php/pull/440) Add support for topups
60 * [#442](https://github.com/stripe/stripe-php/pull/442) Fix PHPDoc for `\Stripe\Error\SignatureVerification`
62 ## 6.1.0 - 2018-02-12
63 * [#435](https://github.com/stripe/stripe-php/pull/435) Fix header persistence on `Collection` objects
64 * [#436](https://github.com/stripe/stripe-php/pull/436) Introduce new `Idempotency` error class
66 ## 6.0.0 - 2018-02-07
67 Major version release. List of backwards incompatible changes to watch out for:
68 + The minimum PHP version is now 5.4.0. If you're using PHP 5.3 or older, consider upgrading to a more recent version.
69 * `\Stripe\AttachedObject` no longer exists. Attributes that used to be instances of `\Stripe\AttachedObject` (such as `metadata`) are now instances of `\Stripe\StripeObject`.
70 + Attributes that used to be PHP arrays (such as `legal_entity->additional_owners` on `\Stripe\Account` instances) are now instances of `\Stripe\StripeObject`, except when they are empty. `\Stripe\StripeObject` has array semantics so this should not be an issue unless you are actively checking types.
71 * `\Stripe\Collection` now derives from `\Stripe\StripeObject` rather than from `\Stripe\ApiResource`.
73 Pull requests included in this release:
74 * [#410](https://github.com/stripe/stripe-php/pull/410) Drop support for PHP 5.3
75 * [#411](https://github.com/stripe/stripe-php/pull/411) Use traits for common API operations
76 * [#414](https://github.com/stripe/stripe-php/pull/414) Use short array syntax
77 * [#404](https://github.com/stripe/stripe-php/pull/404) Fix serialization logic
78 * [#417](https://github.com/stripe/stripe-php/pull/417) Remove `ExternalAccount` class
79 * [#418](https://github.com/stripe/stripe-php/pull/418) Increase test coverage
80 * [#421](https://github.com/stripe/stripe-php/pull/421) Update CA bundle and add script for future updates
81 * [#422](https://github.com/stripe/stripe-php/pull/422) Use vendored CA bundle for all requests
82 * [#428](https://github.com/stripe/stripe-php/pull/428) Support for automatic request retries
84 ## 5.9.2 - 2018-02-07
85 * [#431](https://github.com/stripe/stripe-php/pull/431) Update PHPDoc @property tags for latest API version
87 ## 5.9.1 - 2018-02-06
88 * [#427](https://github.com/stripe/stripe-php/pull/427) Add and update PHPDoc @property tags on all API resources
90 ## 5.9.0 - 2018-01-17
91 * [#421](https://github.com/stripe/stripe-php/pull/421) Updated bundled CA certificates
92 * [#423](https://github.com/stripe/stripe-php/pull/423) Escape unsanitized input in OAuth example
94 ## 5.8.0 - 2017-12-20
95 * [#403](https://github.com/stripe/stripe-php/pull/403) Add `__debugInfo()` magic method to `StripeObject`
97 ## 5.7.0 - 2017-11-28
98 * [#390](https://github.com/stripe/stripe-php/pull/390) Remove some unsupported API methods
99 * [#391](https://github.com/stripe/stripe-php/pull/391) Alphabetize the list of API resources in `Util::convertToStripeObject()` and add missing resources
100 * [#393](https://github.com/stripe/stripe-php/pull/393) Fix expiry date update for card sources
102 ## 5.6.0 - 2017-10-31
103 * [#386](https://github.com/stripe/stripe-php/pull/386) Support for exchange rates APIs
105 ## 5.5.1 - 2017-10-30
106 * [#387](https://github.com/stripe/stripe-php/pull/387) Allow `personal_address_kana` and `personal_address_kanji` to be updated on an account
108 ## 5.5.0 - 2017-10-27
109 * [#385](https://github.com/stripe/stripe-php/pull/385) Support for listing source transactions
111 ## 5.4.0 - 2017-10-24
112 * [#383](https://github.com/stripe/stripe-php/pull/383) Add static methods to manipulate resources from parent
113     * `Account` gains methods for external accounts and login links (e.g. `createExternalAccount`, `createLoginLink`)
114     * `ApplicationFee` gains methods for refunds
115     * `Customer` gains methods for sources
116     * `Transfer` gains methods for reversals
118 ## 5.3.0 - 2017-10-11
119 * [#378](https://github.com/stripe/stripe-php/pull/378) Rename source `delete` to `detach` (and deprecate the former)
121 ## 5.2.3 - 2017-09-27
122 * Add PHPDoc for `Card`
124 ## 5.2.2 - 2017-09-20
125 * Fix deserialization mapping of `FileUpload` objects
127 ## 5.2.1 - 2017-09-14
128 * Serialized `shipping` nested attribute
130 ## 5.2.0 - 2017-08-29
131 * Add support for `InvalidClient` OAuth error
133 ## 5.1.3 - 2017-08-14
134 * Allow `address_kana` and `address_kanji` to be updated for custom accounts
136 ## 5.1.2 - 2017-08-01
137 * Fix documented return type of `autoPagingIterator()` (was missing namespace)
139 ## 5.1.1 - 2017-07-03
140 * Fix order returns to use the right URL `/v1/order_returns`
142 ## 5.1.0 - 2017-06-30
143 * Add support for OAuth
145 ## 5.0.0 - 2017-06-27
146 * `pay` on invoice now takes params as well as opts
148 ## 4.13.0 - 2017-06-19
149 * Add support for ephemeral keys
151 ## 4.12.0 - 2017-06-05
152 * Clients can implement `getUserAgentInfo()` to add additional user agent information
154 ## 4.11.0 - 2017-06-05
155 * Implement `Countable` for `AttachedObject` (`metadata` and `additional_owners`)
157 ## 4.10.0 - 2017-05-25
158 * Add support for login links
160 ## 4.9.1 - 2017-05-10
161 * Fix docs to include arrays on `$id` parameter for retrieve methods
163 ## 4.9.0 - 2017-04-28
164 * Support for checking webhook signatures
166 ## 4.8.1 - 2017-04-24
167 * Allow nested field `payout_schedule` to be updated
169 ## 4.8.0 - 2017-04-20
170 * Add `\Stripe\Stripe::setLogger()` to support an external PSR-3 compatible logger
172 ## 4.7.0 - 2017-04-10
173 * Add support for payouts and recipient transfers
175 ## 4.6.0 - 2017-04-06
176 * Please see 4.7.0 instead (no-op release)      
178 ## 4.5.1 - 2017-03-22
179 * Remove hard dependency on cURL
181 ## 4.5.0 - 2017-03-20
182 * Support for detaching sources from customers
184 ## 4.4.2 - 2017-02-27
185 * Correct handling of `owner` parameter when updating sources
187 ## 4.4.1 - 2017-02-24
188 * Correct the error check on a bad JSON decoding
190 ## 4.4.0 - 2017-01-18
191 * Add support for updating sources
193 ## 4.3.0 - 2016-11-30
194 * Add support for verifying sources
196 ## 4.2.0 - 2016-11-21
197 * Add retrieve method for 3-D Secure resources
199 ## 4.1.1 - 2016-10-21
200 * Add docblock with model properties for `Plan`
202 ## 4.1.0 - 2016-10-18
203 * Support for 403 status codes (permission denied)
205 ## 4.0.1 - 2016-10-17
206 * Fix transfer reversal materialization
207 * Fixes for some property definitions in docblocks
209 ## 4.0.0 - 2016-09-28
210 * Support for subscription items
211 * Drop attempt to force TLS 1.2: please note that this could be breaking if you're using old OS distributions or packages and upgraded recently (so please make sure to test your integration!)
213 ## 3.23.0 - 2016-09-15
214 * Add support for Apple Pay domains
216 ## 3.22.0 - 2016-09-13
217 * Add `Stripe::setAppInfo` to allow plugins to register user agent information
219 ## 3.21.0 - 2016-08-25
220 * Add `Source` model for generic payment sources
222 ## 3.20.0 - 2016-08-08
223 * Add `getDeclineCode` to card errors
225 ## 3.19.0 - 2016-07-29
226 * Opt requests directly into TLS 1.2 where OpenSSL >= 1.0.1 (see #277 for context)
228 ## 3.18.0 - 2016-07-28
229 * Add new `STATUS_` constants for subscriptions
231 ## 3.17.1 - 2016-07-28
232 * Fix auto-paging iterator so that it plays nicely with `iterator_to_array`
234 ## 3.17.0 - 2016-07-14
235 * Add field annotations to model classes for better editor hinting
237 ## 3.16.0 - 2016-07-12
238 * Add `ThreeDSecure` model for 3-D secure payments
240 ## 3.15.0 - 2016-06-29
241 * Add static `update` method to all resources that can be changed.
243 ## 3.14.3 - 2016-06-20
244 * Make sure that cURL never sends `Expects: 100-continue`, even on large request bodies
246 ## 3.14.2 - 2016-06-03
247 * Add `inventory` under `SKU` to list of keys that have nested data and can be updated
249 ## 3.14.1 - 2016-05-27
250 * Fix some inconsistencies in PHPDoc
252 ## 3.14.0 - 2016-05-25
253 * Add support for returning Relay orders
255 ## 3.13.0 - 2016-05-04
256 * Add `list`, `create`, `update`, `retrieve`, and `delete` methods to the Subscription class
258 ## 3.12.1 - 2016-04-07
259 * Additional check on value arrays for some extra safety
261 ## 3.12.0 - 2016-03-31
262 * Fix bug `refreshFrom` on `StripeObject` would not take an `$opts` array
263 * Fix bug where `$opts` not passed to parent `save` method in `Account`
264 * Fix bug where non-existent variable was referenced in `reverse` in `Transfer`
265 * Update CA cert bundle for compatibility with OpenSSL versions below 1.0.1
267 ## 3.11.0 - 2016-03-22
268 * Allow `CurlClient` to be initialized with default `CURLOPT_*` options
270 ## 3.10.1 - 2016-03-22
271 * Fix bug where request params and options were ignored in `ApplicationFee`'s `refund.`
273 ## 3.10.0 - 2016-03-15
274 * Add `reject` on `Account` to support the new API feature
276 ## 3.9.2 - 2016-03-04
277 * Fix error when an object's metadata is set more than once
279 ## 3.9.1 - 2016-02-24
280 * Fix encoding behavior of nested arrays for requests (see #227)
282 ## 3.9.0 - 2016-02-09
283 * Add automatic pagination mechanism with `autoPagingIterator()`
284 * Allow global account ID to be set with `Stripe::setAccountId()`
286 ## 3.8.0 - 2016-02-08
287 * Add `CountrySpec` model for looking up country payment information
289 ## 3.7.1 - 2016-02-01
290 * Update bundled CA certs
292 ## 3.7.0 - 2016-01-27
293 * Support deleting Relay products and SKUs
295 ## 3.6.0 - 2016-01-05
296 * Allow configuration of HTTP client timeouts
298 ## 3.5.0 - 2015-12-01
299 * Add a verification routine for external accounts
301 ## 3.4.0 - 2015-09-14
302 * Products, SKUs, and Orders -- https://stripe.com/relay
304 ## 3.3.0 - 2015-09-11
305 * Add support for 429 Rate Limit response
307 ## 3.2.0 - 2015-08-17
308 * Add refund listing and retrieval without an associated charge
310 ## 3.1.0 - 2015-08-03
311 * Add dispute listing and retrieval
312 * Add support for manage account deletion
314 ## 3.0.0 - 2015-07-28
315 * Rename `\Stripe\Object` to `\Stripe\StripeObject` (PHP 7 compatibility)
316 * Rename `getCode` and `getParam` in exceptions to `getStripeCode` and `getStripeParam`
317 * Add support for calling `json_encode` on Stripe objects in PHP 5.4+
318 * Start supporting/testing PHP 7
320 ## 2.3.0 - 2015-07-06
321 * Add request ID to all Stripe exceptions
323 ## 2.2.0 - 2015-06-01
324 * Add support for Alipay accounts as sources
325 * Add support for bank accounts as sources (private beta)
326 * Add support for bank accounts and cards as external_accounts on Account objects
328 ## 2.1.4 - 2015-05-13
329 * Fix CA certificate file path (thanks @lphilps & @matthewarkin)
331 ## 2.1.3 - 2015-05-12
332 * Fix to account updating to permit `tos_acceptance` and `personal_address` to be set properly
333 * Fix to Transfer reversal creation (thanks @neatness!)
334 * Network requests are now done through a swappable class for easier mocking
336 ## 2.1.2 - 2015-04-10
337 * Remove SSL cert revokation checking (all pre-Heartbleed certs have expired)
338 * Bug fixes to account updating
340 ## 2.1.1 - 2015-02-27
341 * Support transfer reversals
343 ## 2.1.0 - 2015-02-19
344 * Support new API version (2015-02-18)
345 * Added Bitcoin Receiever update and delete actions
346 * Edited tests to prefer "source" over "card" as per new API version
348 ## 2.0.1 - 2015-02-16
349 * Fix to fetching endpoints that use a non-default baseUrl (`FileUpload`)
351 ## 2.0.0 - 2015-02-14
352 * Bumped minimum version to 5.3.3
353 * Switched to Stripe namespace instead of Stripe_ class name prefiexes (thanks @chadicus!)
354 * Switched tests to PHPUnit (thanks @chadicus!)
355 * Switched style guide to PSR2 (thanks @chadicus!)
356 * Added $opts hash to the end of most methods: this permits passing 'idempotency_key', 'stripe_account', or 'stripe_version'. The last 2 will persist across multiple object loads.
357 * Added support for retrieving Account by ID
359 ## 1.18.0 - 2015-01-21
360 * Support making bitcoin charges through BitcoinReceiver source object
362 ## 1.17.5 - 2014-12-23
363 * Adding support for creating file uploads.
365 ## 1.17.4 - 2014-12-15
366 * Saving objects fetched with a custom key now works (thanks @JustinHook & @jpasilan)
367 * Added methods for reporting charges as safe or fraudulent and for specifying the reason for refunds
369 ## 1.17.3 - 2014-11-06
370 * Better handling of HHVM support for SSL certificate blacklist checking.
372 ## 1.17.2 - 2014-09-23
373 * Coupons now are backed by a `Stripe_Coupon` instead of `Stripe_Object`, and support updating metadata
374 * Running operations (`create`, `retrieve`, `all`) on upcoming invoice items now works
376 ## 1.17.1 - 2014-07-31
377 * Requests now send Content-Type header
379 ## 1.17.0 - 2014-07-29
380 * Application Fee refunds now a list instead of array
381 * HHVM now works
382 * Small bug fixes (thanks @bencromwell & @fastest963)
383 * `__toString` now returns the name of the object in addition to its JSON representation
385 ## 1.16.0 - 2014-06-17
386 * Add metadata for refunds and disputes
388 ## 1.15.0 - 2014-05-28
389 * Support canceling transfers
391 ## 1.14.1 - 2014-05-21
392 * Support cards for recipients.
394 ## 1.13.1 - 2014-05-15
395 * Fix bug in account resource where `id` wasn't in the result
397 ## 1.13.0 - 2014-04-10
398 * Add support for certificate blacklisting
399 * Update ca bundle
400 * Drop support for HHVM (Temporarily)
402 ## 1.12.0 - 2014-04-01
403 * Add Stripe_RateLimitError for catching rate limit errors.
404 * Update to Zend coding style (thanks,  @jpiasetz)
406 ## 1.11.0 - 2014-01-29
407 * Add support for multiple subscriptions per customer
409 ## 1.10.1 - 2013-12-02
410 * Add new ApplicationFee
412 ## 1.9.1 - 2013-11-08
413 * Fix a bug where a null nestable object causes warnings to fire.
415 ## 1.9.0 - 2013-10-16
416 * Add support for metadata API.
418 ## 1.8.4 - 2013-09-18
419 * Add support for closing disputes.
421 ## 1.8.3 - 2013-08-13
422 * Add new Balance and BalanceTransaction
424 ## 1.8.2 - 2013-08-12
425 * Add support for unsetting attributes by updating to NULL. Setting properties to a blank string is now an error.
427 ## 1.8.1 - 2013-07-12
428 * Add support for multiple cards API (Stripe API version 2013-07-12: https://stripe.com/docs/upgrades#2013-07-05)
430 ## 1.8.0 - 2013-04-11
431 * Allow Transfers to be creatable
432 * Add new Recipient resource
434 ## 1.7.15 - 2013-02-21
435 * Add 'id' to the list of permanent object attributes
437 ## 1.7.14 - 2013-02-20
439 * Don't re-encode strings that are already encoded in UTF-8. If you were previously using plan or coupon objects with UTF-8 IDs, they may have been treated as ISO-8859-1 (Latin-1) and encoded to UTF-8 a 2nd time. You may now need to pass the IDs to utf8_encode before passing them to Stripe_Plan::retrieve or Stripe_Coupon::retrieve.
440 * Ensure that all input is encoded in UTF-8 before submitting it to Stripe's servers. (github issue #27)
442 ## 1.7.13 - 2013-02-01
443 * Add support for passing options when retrieving Stripe objects e.g., Stripe_Charge::retrieve(array("id"=>"foo", "expand" => array("customer"))); Stripe_Charge::retrieve("foo") will continue to work
445 ## 1.7.12 - 2013-01-15
446 * Add support for setting a Stripe API version override
448 ## 1.7.11 - 2012-12-30
449 * Version bump to cleanup constants and such (fix issue #26)
451 ## 1.7.10 - 2012-11-08
452 * Add support for updating charge disputes.
453 * Fix bug preventing retrieval of null attributes
455 ## 1.7.9 - 2012-11-08
456 * Fix usage under autoloaders such as the one generated by composer (fix issue #22)
458 ## 1.7.8 - 2012-10-30
459 * Add support for creating invoices.
460 * Add support for new invoice lines return format
461 * Add support for new list objects
463 ## 1.7.7 - 2012-09-14
464 * Get all of the various version numbers in the repo in sync (no other changes)
466 ## 1.7.6 - 2012-08-31
467 * Add update and pay methods to Invoice resource
469 ## 1.7.5 - 2012-08-23
470 * Change internal function names so that Stripe_SingletonApiRequest is E_STRICT-clean (github issue #16)
472 ## 1.7.4 - 2012-08-21
473 * Bugfix so that Stripe objects (e.g. Customer, Charge objects) used in API calls are transparently converted to their object IDs
475 ## 1.7.3 - 2012-08-15
476 * Add new Account resource
478 ## 1.7.2 - 2012-06-26
479 * Make clearer that you should be including lib/Stripe.php, not test/Stripe.php (github issue #14)
481 ## 1.7.1 - 2012-05-24
482 * Add missing argument to Stripe_InvalidRequestError constructor in Stripe_ApiResource::instanceUrl. Fixes a warning when Stripe_ApiResource::instanceUrl is called on a resource with no ID (fix issue #12)
484 ## 1.7.0 - 2012-05-17
485 * Support Composer and Packagist (github issue #9)
486 * Add new deleteDiscount method to Stripe_Customer
487 * Add new Transfer resource
488 * 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)
489 * Numerous test suite improvements