Releases: bitpay/php-bitpay-client-v2
Releases · bitpay/php-bitpay-client-v2
7.1.0
Overview
This release adds new GitHub checks, upgrades Guzzle, and addresses an issue with toArray() on the Invoice object.
Changed
- Added initial PHPDoc, with more detail coming in the next few minor releases
- PHPUnit now runs checks on pull requests (one check for each supported version of PHP: 7.4, 8.0, and 8.1)
- PHP_CodeSniffer now runs as a check on pull requests
- Upgraded Guzzle to
^7.0 - Addressed issue #113 Unable to call toArray() on Invoice, "Call to a member function toArray() on array"
7.0.1
7.0.0
Overview
This is a major release that is laying the ground work for further iteration. It gives us a testable base to build upon and refactor. The 7.x version will have iterations focused on:
- Testing
- Refactoring implementations
- Exception alignment with the API
Changed
⚠️ Updated logic forupdateInvoice: Updating the invoice will require EITHER SMS or E-mail, but not both.⚠️ Updated logic forcancelInvoice: Changed thecompleteparameter tostatus- Addressed deprecation warnings for PHP 8.1
- Cleaned up exception usage to be more readable and make better use of inheritance
- Added new fields to
Invoice\BuyerProvidedInfo- sms
- smsVerified
- Added new fields to
Invoice- buyerSms
- selectedTransactionCurrency
- transactionDetails
- Added new fields to
Invoice\RefundInfo- reference
- Added
xrpas a supported currency toInvoice\SupportedTransactionCurrencies - Added new fields to
Invoice\SupportedTransactionCurrency- reason
- Added new model:
Invoice\TransactionDetails - Added new fields to
Ledger- entries
- Added new fields to
Payout- account
- btc
- dateExecuted
- depositTotal
- fee
- percentFee
- rate
- redirectUrl
- supportPhone
- Added new fields to
Payout\PayoutBatch- guid
- pricingMethod
- redirectUrl
- Added new fields to
Payout\PayoutRecipient- account
- guid
- reference
- supportPhone
Added
- Added PHPUnit support, which runs against PHP 7.4, 8.0, and 8.1 in branches (with master branch runs coming soon)
- Added PHP_CodeSniffer support and PSR-12 (with some exceptions -- see pull request)
- Added unit tests for the vast majority of the SDK
v6.0.2111
What's New (⚠️ = breaking changes):
Changed
- RESTCli updated to support API codes
⚠️ Payroll facade/token fully deprecated⚠️ Payout Batch request now requires Payout token
Added
- Single payouts functionality
- Rate Pair resource
- New Payout facade and token creation on ConfigGenerator