1
|
|
|
<?php |
2
|
|
|
/* |
3
|
|
|
* This file is part of the PayBreak/paybreak-sdk-php package. |
4
|
|
|
* |
5
|
|
|
* (c) PayBreak <[email protected]> |
6
|
|
|
* |
7
|
|
|
* For the full copyright and license information, please view the LICENSE |
8
|
|
|
* file that was distributed with this source code. |
9
|
|
|
*/ |
10
|
|
|
|
11
|
|
|
namespace PayBreak\Sdk\Entities; |
12
|
|
|
|
13
|
|
|
use PayBreak\Sdk\Entities\Application\CustomerIntelligenceEntity; |
14
|
|
|
use WNowicki\Generic\AbstractEntity; |
15
|
|
|
|
16
|
|
|
/** |
17
|
|
|
* Application Entity |
18
|
|
|
* |
19
|
|
|
* @author WN, EB |
20
|
|
|
* @method $this setId(int $id) |
21
|
|
|
* @method int|null getId() |
22
|
|
|
* @method $this setPostedDate(string $postedDate) |
23
|
|
|
* @method string|null getPostedDate() |
24
|
|
|
* @method $this setCurrentStatus(string $currentStatus) |
25
|
|
|
* @method string|null getCurrentStatus() |
26
|
|
|
* @method $this setCustomer(Application\CustomerEntity $customer) |
27
|
|
|
* @method Application\CustomerEntity|null getCustomer() |
28
|
|
|
* @method $this setApplicationAddress(Application\AddressEntity $applicationAddress) |
29
|
|
|
* @method Application\AddressEntity|null getApplicationAddress() |
30
|
|
|
* @method $this setInstallation(string $installation) |
31
|
|
|
* @method string|null getInstallation() |
32
|
|
|
* @method $this setOrder(Application\OrderEntity $order) |
33
|
|
|
* @method Application\OrderEntity|null getOrder() |
34
|
|
|
* @method $this setProducts(Application\ProductsEntity $products) |
35
|
|
|
* @method Application\ProductsEntity|null getProducts() |
36
|
|
|
* @method $this setFulfilment(Application\FulfilmentEntity $fulfilment) |
37
|
|
|
* @method Application\FulfilmentEntity|null getFulfilment() |
38
|
|
|
* @method $this setApplicant(Application\ApplicantEntity $applicant) |
39
|
|
|
* @method Application\ApplicantEntity|null getApplicant() |
40
|
|
|
* @method $this setFinance(Application\FinanceEntity $finance) |
41
|
|
|
* @method Application\FinanceEntity|null getFinance() |
42
|
|
|
* @method $this setCancellation(Application\CancellationEntity $cancellation) |
43
|
|
|
* @method Application\CancellationEntity|null getCancellation() |
44
|
|
|
* @method $this setMetadata(array $metadata) |
45
|
|
|
* @method array|null getMetadata() |
46
|
|
|
* @method $this setResumeUrl(string $resumeUrl) |
47
|
|
|
* @method string|null getResumeUrl() |
48
|
|
|
* @method $this setUser(int $user) |
49
|
|
|
* @method int|null getUser() |
50
|
|
|
* @method $this setEmail(string $email) |
51
|
|
|
* @method string|null getEmail() |
52
|
|
|
* @method $this setIsRegulated(bool $isRegulated) |
53
|
|
|
* @method int|null getIsRegulated() |
54
|
|
|
* @method $this setMerchantLiableAt(string $merchantLiableAt) |
55
|
|
|
* @method string|null getMerchantLiableAt() |
56
|
|
|
* @method $this setCustomerIntelligence(CustomerIntelligenceEntity $customerIntelligence) |
57
|
|
|
* @method CustomerIntelligenceEntity|null getCustomerIntelligence() |
58
|
|
|
* @package PayBreak\Sdk\Entities |
59
|
|
|
*/ |
60
|
|
|
class ApplicationEntity extends AbstractEntity |
61
|
|
|
{ |
62
|
|
|
protected $properties = [ |
63
|
|
|
'id', |
64
|
|
|
'posted_date', |
65
|
|
|
'current_status', |
66
|
|
|
'customer' => 'PayBreak\Sdk\Entities\Application\CustomerEntity', |
67
|
|
|
'application_address' => 'PayBreak\Sdk\Entities\Application\AddressEntity', |
68
|
|
|
'installation', |
69
|
|
|
'order' => 'PayBreak\Sdk\Entities\Application\OrderEntity', |
70
|
|
|
'products' => 'PayBreak\Sdk\Entities\Application\ProductsEntity', |
71
|
|
|
'fulfilment' => 'PayBreak\Sdk\Entities\Application\FulfilmentEntity', |
72
|
|
|
'applicant' => 'PayBreak\Sdk\Entities\Application\ApplicantEntity', |
73
|
|
|
'finance' => 'PayBreak\Sdk\Entities\Application\FinanceEntity', |
74
|
|
|
'cancellation' => 'PayBreak\Sdk\Entities\Application\CancellationEntity', |
75
|
|
|
'metadata', |
76
|
|
|
'resume_url', |
77
|
|
|
'email' => self::TYPE_STRING, |
78
|
|
|
'user' => self::TYPE_INT, |
79
|
|
|
'is_regulated' => self::TYPE_BOOL, |
80
|
|
|
'merchant_liable_at', |
81
|
|
|
'customer_intelligence' => CustomerIntelligenceEntity::class, |
82
|
|
|
]; |
83
|
|
|
} |
84
|
|
|
|