-
Notifications
You must be signed in to change notification settings - Fork 2
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 #2 from bigpaulie/master
Adding notification preferences endpoints
- Loading branch information
Showing
16 changed files
with
295 additions
and
0 deletions.
There are no files selected for viewing
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
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 Shoplo\BonanzaApi\Enums; | ||
|
||
class DeliveryUrlDetailsStatusType | ||
{ | ||
const STATUS_ENABLE = 'Enable'; | ||
const STATUS_DISABLE = 'Disable'; | ||
} |
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 Shoplo\BonanzaApi\Enums; | ||
|
||
class NotificationEnableStatusType | ||
{ | ||
const ENABLE = 'Enable'; | ||
const DISABLE = 'Disable'; | ||
} |
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,11 @@ | ||
<?php | ||
|
||
namespace Shoplo\BonanzaApi\Enums; | ||
|
||
class NotificationType | ||
{ | ||
const ASK_SELLER_QUESTION = 'askSellerQuestion'; | ||
const FEEDBACK = 'feedback'; | ||
const FIXED_PRICE_TRANSACTION = 'fixedPriceTransaction'; | ||
const ITEM_MARKED_SHIPPED = 'itemMarkedShipped'; | ||
} |
21 changes: 21 additions & 0 deletions
21
src/Shoplo/BonanzaApi/Request/GetNotificationPreferencesRequest.php
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,21 @@ | ||
<?php | ||
|
||
|
||
namespace Shoplo\BonanzaApi\Request; | ||
|
||
use JMS\Serializer\Annotation as Serializer; | ||
use Shoplo\BonanzaApi\Type\AddItemType; | ||
use Shoplo\BonanzaApi\Type\DeliveryURLDetailsType; | ||
use Shoplo\BonanzaApi\Type\ApplicationDeliveryPreferencesType; | ||
use Shoplo\BonanzaApi\Type\RequesterCredentialsType; | ||
use Shoplo\BonanzaApi\Type\UserDeliveryPreferenceArrayType; | ||
|
||
class GetNotificationPreferencesRequest | ||
{ | ||
/** | ||
* @var RequesterCredentialsType | ||
* | ||
* @Serializer\Type("Shoplo\BonanzaApi\Type\RequesterCredentialsType") | ||
*/ | ||
public $requesterCredentials; | ||
} |
34 changes: 34 additions & 0 deletions
34
src/Shoplo/BonanzaApi/Request/SetNotificationPreferencesRequest.php
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,34 @@ | ||
<?php | ||
|
||
namespace Shoplo\BonanzaApi\Request; | ||
|
||
use JMS\Serializer\Annotation as Serializer; | ||
use Shoplo\BonanzaApi\Type\AddItemType; | ||
use Shoplo\BonanzaApi\Type\DeliveryURLDetailsType; | ||
use Shoplo\BonanzaApi\Type\ApplicationDeliveryPreferencesType; | ||
use Shoplo\BonanzaApi\Type\RequesterCredentialsType; | ||
use Shoplo\BonanzaApi\Type\UserDeliveryPreferenceArrayType; | ||
|
||
class SetNotificationPreferencesRequest | ||
{ | ||
/** | ||
* @var RequesterCredentialsType | ||
* | ||
* @Serializer\Type("Shoplo\BonanzaApi\Type\RequesterCredentialsType") | ||
*/ | ||
public $requesterCredentials; | ||
|
||
/** | ||
* @var ApplicationDeliveryPreferencesType | ||
* | ||
* @Serializer\Type("Shoplo\BonanzaApi\Type\ApplicationDeliveryPreferencesType") | ||
*/ | ||
public $applicationDeliveryPreferences; | ||
|
||
/** | ||
* @var UserDeliveryPreferenceArrayType | ||
* | ||
* @Serializer\Type("Shoplo\BonanzaApi\Type\UserDeliveryPreferenceArrayType") | ||
*/ | ||
public $userDeliveryPreferenceArray; | ||
} |
16 changes: 16 additions & 0 deletions
16
src/Shoplo/BonanzaApi/Response/GetNotificationPreferencesResponse.php
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,16 @@ | ||
<?php | ||
|
||
namespace Shoplo\BonanzaApi\Response; | ||
|
||
use JMS\Serializer\Annotation as Serializer; | ||
use Shoplo\BonanzaApi\Type\GetNotificationPreferencesResponseType; | ||
|
||
class GetNotificationPreferencesResponse extends BaseResponse | ||
{ | ||
/** | ||
* @var GetNotificationPreferencesResponseType | ||
* | ||
* @Serializer\Type("Shoplo\BonanzaApi\Type\GetNotificationPreferencesResponseType") | ||
*/ | ||
public $getNotificationPreferencesResponse; | ||
} |
17 changes: 17 additions & 0 deletions
17
src/Shoplo/BonanzaApi/Response/SetNotificationPreferencesResponse.php
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,17 @@ | ||
<?php | ||
|
||
namespace Shoplo\BonanzaApi\Response; | ||
|
||
use JMS\Serializer\Annotation as Serializer; | ||
use Shoplo\BonanzaApi\Type\FixedPriceItemResponseType; | ||
use Shoplo\BonanzaApi\Type\SetNotificationPreferencesResponseType; | ||
|
||
class SetNotificationPreferencesResponse extends BaseResponse | ||
{ | ||
/** | ||
* @var SetNotificationPreferencesResponseType | ||
* | ||
* @Serializer\Type("Shoplo\BonanzaApi\Type\SetNotificationPreferencesResponseType") | ||
*/ | ||
public $setNotificationPreferencesResponse; | ||
} |
23 changes: 23 additions & 0 deletions
23
src/Shoplo/BonanzaApi/Type/ApplicationDeliveryPreferencesType.php
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,23 @@ | ||
<?php | ||
|
||
namespace Shoplo\BonanzaApi\Type; | ||
|
||
use JMS\Serializer\Annotation as Serializer; | ||
|
||
class ApplicationDeliveryPreferencesType | ||
{ | ||
|
||
/** | ||
* @var string | ||
* | ||
* @Serializer\Type("string") | ||
*/ | ||
public $applicationEnable; | ||
|
||
/** | ||
* @var DeliveryURLDetailsType | ||
* | ||
* @Serializer\Type("Shoplo\BonanzaApi\Type\DeliveryURLDetailsType") | ||
*/ | ||
public $deliveryURLDetails; | ||
} |
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,19 @@ | ||
<?php | ||
|
||
namespace Shoplo\BonanzaApi\Type; | ||
|
||
use JMS\Serializer\Annotation as Serializer; | ||
|
||
class DeliveryURLDetailsType | ||
{ | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $deliveryURL; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $status; | ||
} |
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,17 @@ | ||
<?php | ||
|
||
namespace Shoplo\BonanzaApi\Type; | ||
|
||
class EventNotificationType | ||
{ | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $eventEnable; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $eventType; | ||
} |
25 changes: 25 additions & 0 deletions
25
src/Shoplo/BonanzaApi/Type/GetNotificationPreferencesResponseType.php
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,25 @@ | ||
<?php | ||
|
||
namespace Shoplo\BonanzaApi\Type; | ||
|
||
use JMS\Serializer\Annotation as Serializer; | ||
use Shoplo\BonanzaApi\Type\ApplicationDeliveryPreferencesType; | ||
use Shoplo\BonanzaApi\Type\UserDeliveryPreferenceArrayType; | ||
|
||
class GetNotificationPreferencesResponseType extends BaseResponseType | ||
{ | ||
|
||
/** | ||
* @var ApplicationDeliveryPreferencesType | ||
* | ||
* @Serializer\Type("Shoplo\BonanzaApi\Type\ApplicationDeliveryPreferencesType") | ||
*/ | ||
public $applicationDeliveryPreferences; | ||
|
||
/** | ||
* @var UserDeliveryPreferenceArrayType | ||
* | ||
* @Serializer\Type("Shoplo\BonanzaApi\Type\UserDeliveryPreferenceArrayType") | ||
*/ | ||
public $userDeliveryPreferenceArray; | ||
} |
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,30 @@ | ||
<?php | ||
|
||
namespace Shoplo\BonanzaApi\Type; | ||
|
||
use JMS\Serializer\Annotation as Serializer; | ||
|
||
class NotificationEnableType | ||
{ | ||
|
||
/** | ||
* @var string | ||
* | ||
* @Serializer\Type("string") | ||
*/ | ||
public $eventEnable; | ||
|
||
/** | ||
* @var EventNotificationType | ||
* | ||
* @Serializer\Type("Shoplo\BonanzaApi\Type\EventNotificationType") | ||
*/ | ||
public $eventType; | ||
|
||
/** | ||
* @var bool | ||
* | ||
* @Serializer\Type("boolean") | ||
*/ | ||
public $detailed; | ||
} |
32 changes: 32 additions & 0 deletions
32
src/Shoplo/BonanzaApi/Type/SetNotificationPreferencesResponseType.php
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,32 @@ | ||
<?php | ||
|
||
|
||
namespace Shoplo\BonanzaApi\Type; | ||
|
||
|
||
use JMS\Serializer\Annotation as Serializer; | ||
|
||
class SetNotificationPreferencesResponseType extends BaseResponseType | ||
{ | ||
|
||
/** | ||
* @var int | ||
* | ||
* @Serializer\Type("integer") | ||
*/ | ||
public $notificationId; | ||
|
||
/** | ||
* @var int | ||
* | ||
* @Serializer\Type("integer") | ||
*/ | ||
public $deliveryURLsProcessed; | ||
|
||
/** | ||
* @var int | ||
* | ||
* @Serializer\Type("integer") | ||
*/ | ||
public $eventsProcessed; | ||
} |
16 changes: 16 additions & 0 deletions
16
src/Shoplo/BonanzaApi/Type/UserDeliveryPreferenceArrayType.php
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,16 @@ | ||
<?php | ||
|
||
namespace Shoplo\BonanzaApi\Type; | ||
|
||
use JMS\Serializer\Annotation as Serializer; | ||
|
||
class UserDeliveryPreferenceArrayType | ||
{ | ||
|
||
/** | ||
* @var NotificationEnableType[] | ||
* | ||
* @Serializer\Type("array<Shoplo\BonanzaApi\Type\NotificationEnableType>") | ||
*/ | ||
public $notificationEnable; | ||
} |