|
2 | 2 |
|
3 | 3 | All breaking changes prior to v1 will be documented in this file to assist with upgrading. |
4 | 4 |
|
| 5 | +## v0.3.0 |
| 6 | + |
| 7 | +This version introduces several breaking changes. |
| 8 | + |
| 9 | +- Renamed classes to align with naming conventions |
| 10 | + |
| 11 | +`AdjustmentsAdjustmentCollection` => `AdjustmentCollection` |
| 12 | +`TotalAdjustments` => `AdjustmentTotals` |
| 13 | +`StatusAdjustment` => `AdjustmentStatus` |
| 14 | +`StatusTransaction` => `TransactionStatus` |
| 15 | +`StatusPaymentAttempt` => `PaymentAttemptStatus` |
| 16 | + |
| 17 | +Any usages of the previous class names should be refactored accordingly to avoid a class not found error. |
| 18 | + |
| 19 | +- Refactored out duplicate entities where both `<Entity>` and `<Entity>WithIncludes` existed |
| 20 | + |
| 21 | +Any typing on the following classes should be updated accordingly: |
| 22 | + |
| 23 | +`\Paddle\SDK\Entities\CustomerWithIncludes` => `\Paddle\SDK\Entities\Customer` |
| 24 | +`\Paddle\SDK\Entities\PriceWithIncludes` => `\Paddle\SDK\Entities\Price` |
| 25 | +`\Paddle\SDK\Entities\ProductWithIncludes` => `\Paddle\SDK\Entities\Product` |
| 26 | +`\Paddle\SDK\Entities\SubscriptionWithIncludes` => `\Paddle\SDK\Entities\Subscription` |
| 27 | +`\Paddle\SDK\Entities\TransactionWithIncludes` => `\Paddle\SDK\Entities\Transaction` |
| 28 | +`\Paddle\SDK\Entities\TransactionWithIncludes` => `\Paddle\SDK\Entities\Transaction` |
| 29 | +`\Paddle\SDK\Entities\Collections\CustomerIncludesCollection` => `\Paddle\SDK\Entities\Collections\CustomerCollection` |
| 30 | +`\Paddle\SDK\Entities\Collections\PriceWithIncludesCollection` => `\Paddle\SDK\Entities\Collections\PriceCollection` |
| 31 | +`\Paddle\SDK\Entities\Collections\ProductWithIncludesCollection` => `\Paddle\SDK\Entities\Collections\ProductCollection` |
| 32 | +`\Paddle\SDK\Entities\Collections\SubscriptionWithIncludesCollection` => `\Paddle\SDK\Entities\Collections\SubscriptionCollection` |
| 33 | +`\Paddle\SDK\Entities\Collections\TransactionWithIncludesCollection` => `\Paddle\SDK\Entities\Collections\TransactionCollection` |
| 34 | + |
| 35 | +- Report entity objects were renamed for better consistency with the SDK and prevent confusion. |
| 36 | + |
| 37 | +Any typing on the following classes should be updated accordingly: |
| 38 | + |
| 39 | +`\Paddle\SDK\Entities\Report\ReportFilters` => `\Paddle\SDK\Entities\Report\ReportFilter` |
| 40 | +`\Paddle\SDK\Entities\Report\ReportName` => `\Paddle\SDK\Entities\Report\ReportFilterName` |
| 41 | +`\Paddle\SDK\Entities\Report\ReportOperator` => `\Paddle\SDK\Entities\Report\ReportFilterOperator` |
| 42 | + |
| 43 | +- Adjustment and Subscription Preview Adjustment objects were refactored for consistency |
| 44 | + |
| 45 | +Any typing of the following classes should be updated accordingly: |
| 46 | + |
| 47 | +`\Paddle\SDK\Entities\Adjustment\AdjustmentItemTotals` => `\Paddle\SDK\Entities\Adjustment\AdjustmentItem` |
| 48 | +`\Paddle\SDK\Entities\Adjustment\AdjustmentProration` => `\Paddle\SDK\Entities\Shared\AdjustmentProration` |
| 49 | +`\Paddle\SDK\Entities\Adjustment\AdjustmentTimePeriod` => `\Paddle\SDK\Entities\Shared\AdjustmentTimePeriod` |
| 50 | +`\Paddle\SDK\Entities\Adjustment\AdjustmentType` => `\Paddle\SDK\Entities\Shared\AdjustmentType` |
| 51 | +`\Paddle\SDK\Entities\Subscription\SubscriptionProration` => `\Paddle\SDK\Entities\Shared\AdjustmentProration` |
| 52 | +`\Paddle\SDK\Entities\Transaction\TransactionAdjustment` => `Paddle\SDK\Entities\Adjustment` |
| 53 | + |
| 54 | +- Conflicting request object `AdjustmentItem` has moved into the Operations namespace |
| 55 | + |
| 56 | +The type has changed when creating an Adjustment using the `CreateAdjustment` operation. To create an Adjustment you must now use the `\Paddle\SDK\Resources\Adjustments\Operations\Create\AdjustmentItem` instance for `items`. |
| 57 | + |
| 58 | +- Core entities (classes implementing `Entity`) are marked @internal and constructors are `protected` |
| 59 | + |
| 60 | +Any direct usage of these classes is not supported functionality by the SDK and has been removed to reduce the surface area for breaking changes. |
| 61 | + |
5 | 62 | ## v0.2.0 |
6 | 63 |
|
7 | 64 | This version includes a breaking change to the naming of operations. Prior to this version operations were commonly named `<type>Operation`, e.g. `CreateOperation` which posed problems when using more than one resource such as when creating a product and price. The new naming convention includes the resource to prevent the need of aliasing in these circumstances. e.g. `CreatePrice` and `CreateProduct`. |
|
0 commit comments