-
Notifications
You must be signed in to change notification settings - Fork 17
/
Operation.php
177 lines (149 loc) · 2.9 KB
/
Operation.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<?php
namespace LemonWay\Models;
class Operation {
const STATUS_WAITING_FINALISATION = '0';
const STATUS_SUCCES = '3';
const STATUS_ERROR = '4';
const STATUS_AWAITING_VALIDATION = '16';
const TYPE_MONEY_IN = '0';
const TYPE_MONEY_OUT = '1';
const TYPE_P2P = '2';
const METHOD_BANK_CARD = '0';
const METHOD_INCOMING_WIRE = '1';
const METHOD_OUTGOING_WIRE = '3';
const METHOD_IDEAL = '13';
const METHOD_SDD = '14';
const METHOD_CHEQUE = '15';
const METHOD_NEOSURF = '16';
const OWNER_AUTHENTICATED = '00';
const OWNER_NOT_AUTHENTICATED = '55';
const OWNER_BY_PASS_ON_ACS = '62';
/**
* type {p2p, moneyin, moneyout}
* @var string
*/
public $type;
/**
* ID number
* @var string
*/
public $ID;
/**
* MLABEL iban number or card number
* @var string
*/
public $MLABEL;
/**
* SEN sender wallet (debited wallet)
* @var string
*/
public $SEN;
/**
* REC receiver wallet (credited wallet)
* @var string
*/
public $REC;
/**
* DATE Date
* @var string
*/
public $DATE;
/**
* DEB debited amount, xx.xx
* @var string
*/
public $DEB;
/**
* CRED credited amount, xx.xx
* @var string
*/
public $CRED;
/**
* COM fees automatically sent to merchant wallet
* @var string
*/
public $COM;
/**
* MSG comment
* @var string
*/
public $MSG;
/**
* STATUS {0,3,4,16}
* @var string
*/
public $STATUS;
/**
* PRIVATE_DATA Private data
* @var string
*/
public $PRIVATE_DATA;
/**
* SCHEDULED_DATE Scheduled date
* @var string
*/
public $SCHEDULED_DATE;
/**
* TYPE {0,1,2}
* @var string
*/
public $TYPE;
/**
* MTOKEN
* @var string
*/
public $MTOKEN;
/**
* METHOD {0,1,3,13,14,15,16}
* @var string
*/
public $METHOD;
/**
* INT_MSG internal error message with codes
* @var string
*/
public $INT_MSG;
/**
* BANK_REF Bank reference
* @var string
*/
public $BANK_REF;
/**
* EXTRA
* @var Extra
*/
public $EXTRA;
/**
* VCC
* @var Vcc
*/
public $VCC;
/**
* ORIGIN_ID
* @var int
*/
public $ORIGIN_ID;
function __construct($hpayXml) {
$this->ID = $hpayXml->ID;
$this->SEN = $hpayXml->SEN;
$this->REC = $hpayXml->REC;
$this->DATE = $hpayXml->DATE;
$this->DEB = $hpayXml->DEB;
$this->CRED = $hpayXml->CRED;
$this->COM = $hpayXml->COM;
$this->STATUS = $hpayXml->STATUS;
$this->MLABEL = $hpayXml->MLABEL;
$this->INT_MSG = $hpayXml->INT_MSG;
$this->MSG = $hpayXml->MSG;
$this->BANK_REF = $hpayXml->BANK_REF;
$this->TYPE = $hpayXml->TYPE;
$this->MTOKEN = $hpayXml->MTOKEN;
$this->METHOD = $hpayXml->METHOD;
$this->PRIVATE_DATA = $hpayXml->PRIVATE_DATA;
$this->SCHEDULED_DATE = $hpayXml->SCHEDULED_DATE;
$this->EXTRA = new Extra($hpayXml->EXTRA);
$this->VCC = new Vcc($hpayXml->VCC);
$this->ORIGIN_ID = $hpayXml->ORIGIN_ID;
}
}
?>