forked from lemonwaysas/php-client-directkit-xml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSddMandate.php
55 lines (46 loc) · 938 Bytes
/
SddMandate.php
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
<?php
namespace LemonWay\Models;
class SddMandate
{
const RECURRING = '1';
const NO_RECURRING = '0';
const WAITING_VALIDATION = '0';
const VALIDATED = '5';
const DEACTIVATED = '8';
/**
* ID as defined by Lemon Way
* @var string
*/
public $ID;
/**
* STATUS {0,5}
* @var string
*/
public $STATUS;
/**
* IBAN number
* @var string
*/
public $IBAN;
/**
* BIC or swift code
* @var string
*/
public $BIC;
public function __construct($node)
{
$this->ID = $node->ID;
if (isset($node->STATUS)) {
$this->STATUS = $node->STATUS;
}
if (isset($node->S)) {
$this->STATUS = $node->S;
}
if (isset($node->DATA)) {
$this->IBAN = $node->DATA;
}
if (isset($node->SWIFT)) {
$this->BIC = $node->SWIFT;
}
}
}