forked from stixx/tradetracker-api-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTransactionRejectionReason.php
More file actions
57 lines (50 loc) · 1.25 KB
/
TransactionRejectionReason.php
File metadata and controls
57 lines (50 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
namespace Hypeit\TradeTracker\Model;
class TransactionRejectionReason
{
const RETURNED_GOODS = 'returned_goods';
const OUT_OF_STOCK = 'out_of_stock';
const PAYMENT_NOT_RECEIVED = 'payment_not_received';
const INVALID_TRANSACTION = 'invalid_transaction';
const ORDER_CANCELED = 'order_canceled';
const DUPLICATE_ORDER = 'duplicate_order';
const TEST_TRANSACTION = 'test_transaction';
const ATTRIBUTED_TO_OTHER_CHANNEL = 'attributed_to_other_channel';
const VIOLATES_CAMPAIGN_TERMS = 'violates_campaign_terms';
const INVALID_CUSTOMER_DETAILS = 'invalid_customer_details';
const CUSTOMER_UNREACHABLE = 'customer_unreachable';
/**
* @var string
*/
private $reason;
/**
* TransactionRejectionReason constructor.
*
* @param string|null $reason
*/
public function __construct($reason)
{
$this->reason = $reason;
}
/**
* @return string
*/
public function getReason()
{
return $this->reason;
}
/**
* @param string $reason
*/
public function setReason($reason)
{
$this->reason = $reason;
}
/**
* @return string
*/
public function __toString()
{
return $this->reason;
}
}