Skip to content

Commit da5fc23

Browse files
committed
Retry response
1 parent 7e32036 commit da5fc23

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
namespace Fortifi\ProductManager\Response;
3+
4+
class ProvisioningRetryResponse extends ProvisioningResponse
5+
{
6+
public function __construct()
7+
{
8+
$this->type = ResponseType::PROVISION_RETRY();
9+
}
10+
}

src/Response/ResponseType.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
/**
77
* @method static ResponseType PROVISION_SUCCESS
88
* @method static ResponseType PROVISION_PROCESSING
9+
* @method static ResponseType PROVISION_RETRY
910
* @method static ResponseType PROVISION_FAILED
1011
* @method static ResponseType AVAILABILITY_CHECK
1112
* @method static ResponseType AVAILABILITY_RESERVE
@@ -26,6 +27,10 @@ class ResponseType extends Enum
2627
* Provisioning Request Failed
2728
*/
2829
const PROVISION_FAILED = 'provision.failed';
30+
/**
31+
* Provisioning Request Failed, Please Retry
32+
*/
33+
const PROVISION_RETRY = 'provision.retry';
2934

3035
/**
3136
* Product Availability Check

0 commit comments

Comments
 (0)