-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from Drewdan/feature/15-handle-webhooks
Add ability to create, webhooks, search webhooks and parse webhook ev…
- Loading branch information
Showing
92 changed files
with
1,279 additions
and
109 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
/vendor/ | ||
.phpunit.result.cache | ||
.idea/ | ||
.idea | ||
.idea/* | ||
.idea* | ||
ray.php | ||
.phpunit.cache | ||
.env |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Contracts/BuildsPayload.php → src/Common/Contracts/BuildsPayload.php
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
namespace Drewdan\Paypal\Contracts; | ||
namespace Drewdan\Paypal\Common\Contracts; | ||
|
||
interface BuildsPayload { | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
src/Contracts/FromArray.php → src/Common/Contracts/FromArray.php
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
namespace Drewdan\Paypal\Common\Contracts; | ||
|
||
interface FromResponse { | ||
|
||
public static function fromResponse(array $response): static; | ||
|
||
} |
4 changes: 2 additions & 2 deletions
4
src/Models/Link.php → src/Common/Models/Link.php
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/Models/Links.php → src/Common/Models/Links.php
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Builders/PaymentSource/PaymentSource.php → .../Builders/PaymentSource/PaymentSource.php
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
src/Builders/PaymentSource/Paypal.php → src/Orders/Builders/PaymentSource/Paypal.php
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
src/Builders/PaymentSource/Token.php → src/Orders/Builders/PaymentSource/Token.php
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Contracts/BuildsPaymentSource.php → src/Orders/Contracts/BuildsPaymentSource.php
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Enums/AuthorizationStatusEnum.php → src/Orders/Enums/AuthorizationStatusEnum.php
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Enums/LandingPageEnum.php → src/Orders/Enums/LandingPageEnum.php
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
namespace Drewdan\Paypal\Enums; | ||
namespace Drewdan\Paypal\Orders\Enums; | ||
|
||
enum LandingPageEnum: string { | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
src/Enums/OrderStatusEnum.php → src/Orders/Enums/OrderStatusEnum.php
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
namespace Drewdan\Paypal\Enums; | ||
namespace Drewdan\Paypal\Orders\Enums; | ||
|
||
enum OrderStatusEnum: string { | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
src/Enums/PaymentIntentEnum.php → src/Orders/Enums/PaymentIntentEnum.php
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
namespace Drewdan\Paypal\Enums; | ||
namespace Drewdan\Paypal\Orders\Enums; | ||
|
||
enum PaymentIntentEnum: string { | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
src/Enums/PaymentMethodPreferenceEnum.php → ...ers/Enums/PaymentMethodPreferenceEnum.php
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Enums/PurchaseUnitItemCategoryEnum.php → ...rs/Enums/PurchaseUnitItemCategoryEnum.php
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Enums/SellerProtectionStatusEnum.php → ...ders/Enums/SellerProtectionStatusEnum.php
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Enums/ShippingPreferenceEnum.php → src/Orders/Enums/ShippingPreferenceEnum.php
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Enums/UserActionEnum.php → src/Orders/Enums/UserActionEnum.php
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
namespace Drewdan\Paypal\Enums; | ||
namespace Drewdan\Paypal\Orders\Enums; | ||
|
||
enum UserActionEnum: string { | ||
|
||
|
4 changes: 2 additions & 2 deletions
4
src/Models/Amount.php → src/Orders/Models/Amount.php
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
src/Models/Authorization.php → src/Orders/Models/Authorization.php
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/Models/Capture.php → src/Orders/Models/Capture.php
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
src/Models/ExperienceContext.php → src/Orders/Models/ExperienceContext.php
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.