Releases: PaddleHQ/paddle-php-sdk
Releases · PaddleHQ/paddle-php-sdk
v1.1.0
v1.0.1
What's Changed
Added
AddressandBusinessentities now includecustomer_idproperty, see related changelog.- Two new report types
product_pricesanddiscounts, see related changelog. ProductandPricesentities now supportcreated_atandupdated_atproperties
Full Changelog: v1.0.0...v1.0.1
v1.0.0
The first stable release of the Paddle PHP SDK is here 🎉. It comes with a few breaking changes from the minor versions before it as we ensure we're set up to minimise API changes affecting the SDK in the future.
Feedback and PRs are always welcome.
What's Changed
Changed
- Migrated away from native enums to reduce the risk of breaking changes
- Made entities consistent with
array<Entity>usage where Collections were used instead - Notification classes are split from main API classes to allow for long term backwards compatability
- Subscription item
pricere-uses thePriceentity - Dropped
@internalon most entities to prevent IDE warnings, utilising private constructors instead - Events now utilise their type specific classes
Added
- Update resume subscription
effective_fromfield to accept RFC 3339 datetime orimmediately - Subscription notifications support newly added price object fields
v0.3.0
What's Changed
Added
- Support for installing within Symfony 7 projects
EventTypeNameenum support forcustomer.imported,address.importedandbusiness.importedReportFilterNameenum support foractionpayment_method_idtoTransactionPaymentAttemptentity for Transaction payments- List credit balances for a customer now supports filtering by
currency_code - Support for
receipt_dataon create and preview of a one-time charge for Subscriptions - Support for
receipt_dataon Transactions - Support for
import_metaon Subscription notifications - Support for
import_metaandcustom_dataon Discount notifications
Fixed
- Using the correct arguments for testing a Notification list
frominNotificationsClientTest - Refactored out duplicate entities where both
<Entity>and<Entity>WithIncludesexisted - Renamed
AdjustmentsAdjustmentCollectiontoAdjustmentCollectionso it aligns with naming conventions - Renamed Report objects for consistency within the SDK
- PHPCS has been upgraded and configured for
nullable_type_declarationas well asordered_types ListNotificationoperation uses consistent naming conventions with other operations- Correct type of
current_billing_periodfor Subscription notifications to be nullable - Subscription preview fields
immediate_transaction,next_transactionandrecurring_transaction_detailsare optional Transactionentity now re-usesAdjustmententity for theadjustmentsfieldSubscriptionNextTransactionnow mapsadjustmentstoSubscriptionAdjustmentPreviewobjects- Shared objects between
SubscriptionAdjustmentItemandAdjustmentItemhave been consolidated into theSharednamespace - Conflicting request object
AdjustmentItemhas moved into the Operations namespace - Make
currentBillingPeriodnullable for Subscription notifications - Status enums use consistent naming for
AdjustmentStatus,TransactionStatusandPaymentAttemptStatus - Renamed
TotalAdjustmentstoAdjustmentTotalsto align with naming conventions
Deprecated
stored_payment_method_idonTransactionPaymentAttempt, usepayment_method_idinstead
Removed
- Unused Subscription objects have been removed,
SubscriptionTransaction,SubscriptionAdjustmentandSubscriptionsTransactionCollection
Full Changelog: v0.2.2...0.3.0
v0.2.2
v0.2.1
What's Changed
Added
- Added
importMetato product, price, address, business, customer, discount and subscription entities - Added
creditToBalancetotransaction.details.payoutTotalsandtransaction.details.totals - Added
originquery parameter to list transactions, see related changelog. - Added
available_payment_methodsto transaction with includes entity - Added
emailquery parameter to list customers, see related changelog
v0.2.0
Changed
- Operations have been renamed to reduce import conflicts and the use of aliases
- Unused and abandoned dependency php-http/message-factory was removed
BREAKING CHANGE: All operation classes have been renamed, see UPGRADING.md