Skip to content

Releases: PaddleHQ/paddle-php-sdk

v1.1.2

23 Aug 13:49
efba315
Compare
Choose a tag to compare

Version 1.1.2

What's Changed

  • Fixes issues: TransactionTimePeriod - should it be public constructor… by @dutypro in #61
  • docs(release):v1.1.2 by @vifer in #62

Full Changelog: v1.1.1...v1.1.2

v1.1.1

21 Aug 08:13
73892e4
Compare
Choose a tag to compare

Version 1.1.1

What's Changed

  • Docs: New example of how to verify a webhook when framework does not support PSR7 by @vifer in #53
  • CI: Introduce label checker & Auto release by @vifer in #54
  • CreateDiscount and UpdateDiscount Ops are missing Custom Data #57 by @dutypro in #58
  • docs(release):v1.1.1 by @vifer in #59

New Contributors

Full Changelog: v1.1.0...v1.1.1

v1.1.0

01 May 07:59
bb0339f
Compare
Choose a tag to compare

What's Changed

  • Feat: New error code for payments by @vifer in #52

Full Changelog: v1.0.1...v1.1.0

v1.0.1

13 Mar 14:48
d4d9112
Compare
Choose a tag to compare

What's Changed

Added

  • Address and Business entities now include customer_id property, see related changelog.
  • Two new report types product_prices and discounts, see related changelog.
  • Product and Prices entities now support created_at and updated_at properties

Full Changelog: v1.0.0...v1.0.1

v1.0.0

20 Feb 15:28
3066721
Compare
Choose a tag to compare

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 price re-uses the Price entity
  • Dropped @internal on most entities to prevent IDE warnings, utilising private constructors instead
  • Events now utilise their type specific classes

Added

  • Update resume subscription effective_from field to accept RFC 3339 datetime or immediately
  • Subscription notifications support newly added price object fields

v0.3.0

13 Feb 11:55
1481d1c
Compare
Choose a tag to compare

What's Changed

Added

  • Support for installing within Symfony 7 projects
  • EventTypeName enum support for customer.imported, address.imported and business.imported
  • ReportFilterName enum support for action
  • payment_method_id to TransactionPaymentAttempt entity for Transaction payments
  • List credit balances for a customer now supports filtering by currency_code
  • Support for receipt_data on create and preview of a one-time charge for Subscriptions
  • Support for receipt_data on Transactions
  • Support for import_meta on Subscription notifications
  • Support for import_meta and custom_data on Discount notifications

Fixed

  • Using the correct arguments for testing a Notification list from in NotificationsClientTest
  • Refactored out duplicate entities where both <Entity> and <Entity>WithIncludes existed
  • Renamed AdjustmentsAdjustmentCollection to AdjustmentCollection so it aligns with naming conventions
  • Renamed Report objects for consistency within the SDK
  • PHPCS has been upgraded and configured for nullable_type_declaration as well as ordered_types
  • ListNotification operation uses consistent naming conventions with other operations
  • Correct type of current_billing_period for Subscription notifications to be nullable
  • Subscription preview fields immediate_transaction, next_transaction and recurring_transaction_details are optional
  • Transaction entity now re-uses Adjustment entity for the adjustments field
  • SubscriptionNextTransaction now maps adjustments to SubscriptionAdjustmentPreview objects
  • Shared objects between SubscriptionAdjustmentItem and AdjustmentItem have been consolidated into the Shared namespace
  • Conflicting request object AdjustmentItem has moved into the Operations namespace
  • Make currentBillingPeriod nullable for Subscription notifications
  • Status enums use consistent naming for AdjustmentStatus, TransactionStatus and PaymentAttemptStatus
  • Renamed TotalAdjustments to AdjustmentTotals to align with naming conventions

Deprecated

  • stored_payment_method_id on TransactionPaymentAttempt, use payment_method_id instead

Removed

  • Unused Subscription objects have been removed, SubscriptionTransaction, SubscriptionAdjustment and SubscriptionsTransactionCollection

Full Changelog: v0.2.2...0.3.0

v0.2.2

29 Jan 13:54
3631f94
Compare
Choose a tag to compare

What's Changed

Fixed

  • Fixed PDF invoice for transaction endpoint to correctly hit /transactions/{transaction_id}/invoice

v0.2.1

24 Jan 11:53
21831c8
Compare
Choose a tag to compare

What's Changed

Added

  • Added importMeta to product, price, address, business, customer, discount and subscription entities
  • Added creditToBalance to transaction.details.payoutTotals and transaction.details.totals
  • Added origin query parameter to list transactions, see related changelog.
  • Added available_payment_methods to transaction with includes entity
  • Added email query parameter to list customers, see related changelog

v0.2.0

23 Jan 14:09
551ded5
Compare
Choose a tag to compare

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

v0.1.1

15 Jan 15:19
df2fc8b
Compare
Choose a tag to compare

Fixed

  • Resolved invalid streams being created for null payloads