Skip to content

Commit

Permalink
Remove Notes (#389)
Browse files Browse the repository at this point in the history
* Remove Notes

* Add changelog

* Increase version
  • Loading branch information
XaosSintez authored Feb 11, 2020
1 parent 5f06e4c commit 8692d15
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 248 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,17 @@ Security - in case of vulnerabilities.

## [Unreleased]

_TBD_

## [2.7.0] 2020-02-11

### Added
- [x] Added new property to `SubscriptionChangePlan`: `quantity`
- [x] Added new properties to `ApiTracking`: `relatedIds`, `requestHeaders`, `responseHeaders`

### Removed
- [x] Removed `Note` entity, `NoteService` service

## [2.6.0] 2020-01-14

### Added
Expand Down
4 changes: 1 addition & 3 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
* @method Services\TransactionService transactions()
* @method Services\SubscriptionReactivationService subscriptionReactivations()
* @method Services\WebsiteService websites()
* @method Services\NoteService notes()
* @method Services\OrganizationService organizations()
* @method Services\CustomFieldService customFields()
* @method Services\GatewayAccountService gatewayAccounts()
Expand Down Expand Up @@ -99,7 +98,7 @@ final class Client

public const CURRENT_VERSION = 'v2.1';

public const SDK_VERSION = '2.6.0';
public const SDK_VERSION = '2.7.0';

private static $services = [
'authenticationOptions' => Services\AuthenticationOptionsService::class,
Expand Down Expand Up @@ -127,7 +126,6 @@ final class Client
'files' => Services\FileService::class,
'attachments' => Services\AttachmentService::class,
'products' => Services\ProductService::class,
'notes' => Services\NoteService::class,
'organizations' => Services\OrganizationService::class,
'customFields' => Services\CustomFieldService::class,
'gatewayAccounts' => Services\GatewayAccountService::class,
Expand Down
140 changes: 0 additions & 140 deletions src/Entities/Note.php

This file was deleted.

6 changes: 0 additions & 6 deletions src/Entities/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,6 @@ public function __construct()
'authentication-tokens/{token}/exchange' => function (array $content) {
return new Session($content);
},
'notes' => function (array $content) {
return new Collection(new Note(), $content);
},
'notes/{noteId}' => function (array $content) {
return new Note($content);
},
'organizations' => function (array $content) {
return new Collection(new Organization(), $content);
},
Expand Down
91 changes: 0 additions & 91 deletions src/Services/NoteService.php

This file was deleted.

1 change: 0 additions & 1 deletion tests/Api/ApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ public function provideEntityClasses()
[Entities\LineItem::class, null],
[Entities\Transaction::class],
[Entities\Website::class],
[Entities\Note::class],
[Entities\Organization::class],
[Entities\GatewayAccount::class],
[Entities\BankAccount::class],
Expand Down
5 changes: 0 additions & 5 deletions tests/Api/ServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1206,11 +1206,6 @@ public function provideServiceClasses()
Services\WebsiteService::class,
Entities\Website::class,
],
[
'notes',
Services\NoteService::class,
Entities\Note::class,
],
[
'organizations',
Services\OrganizationService::class,
Expand Down
2 changes: 0 additions & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,6 @@ protected function getFakeValue($attribute, $class)
switch ($class) {
case Entities\Attachment::class:
return $faker->randomElement(Entities\Attachment::allowedTypes());
case Entities\Note::class:
return $faker->randomElement(Entities\Note::relatedTypes());
default:
throw new InvalidArgumentException(
sprintf('Cannot generate fake value for "%s :: %s"', $class, $attribute)
Expand Down

0 comments on commit 8692d15

Please sign in to comment.