-
Notifications
You must be signed in to change notification settings - Fork 3
/
CHANGELOG
226 lines (163 loc) · 7.02 KB
/
CHANGELOG
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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
=====================
Klarna PHP API
=====================
v2.3.4
---------------
Date: 2013-05-03
Joakim L. <support@klarna.com>
Klarna.php
Update beta address to payment.testdrive.klarna.com
v2.3.3
---------------
Date: 2013-03-28
Rickard D. <support@klarna.com>
Klarna.php (reserveAmount) :
No longer remove falsy values from the digest string.
v2.3.2
---------------
Date: 2013-03-25
Rickard D. <support@klarna.com>
Klarna.php (reserveAmount) :
Allow reserveAmount calls with an amount of 0.
v2.3.1
---------------
Date: 2012-12-07
Christer G. <support@klarna.com>
Klarna.php (getClientIP) :
Refactored to be more readable.
Rickard D. <support@klarna.com>
Klarna.php (setConfig) :
Configuration may now be an array, aswell as a and
ArrayAccess.
Majid G. <support@klarna.com>
Klarna.php (update) :
Removed rno validation from the library
v2.3.0
---------------
Date: 2012-09-17
Rickard D. <support@klarna.com>
Klarna.php (activateReservation) :
Change to allow NULL to be sent in as PNO when activating a
reservation. Any other value than null will still trigger a
verification that a string longer than 0 characters is sent
as PNO.
Klarna.php (activate) : new function
New function to activate a reservation using minimal information.
Optional information for the activate call should be set using
setActivateInformation.
To partially activate a reservation, use Klarna::addArtNo() function
(replaces splitReservation).
Klarna.php (update) : new function
New function to update a reservation using minimal information.
Use setAddress to update address, addArticle to update an article in
the goodslist and setEstoreInfo to update order id:s.
Klarna.php (checkCountryCurrency) : removed function
As this function does not scale and does not belong in a library it has
been removed.
Country.php () :
Added all available country constants.
Language.php () :
Added all available language constants.
Klarna.php (getLanguageForCountry) : deprecated
(getCurrencyForCountry) : deprecated
Country.php (checkLanguage) : deprecated
(checkCurrency) : deprecated
(getLanguage) : deprecated
(getCurrency) : deprecated
Deprecated functions that will not scale and will not be compatible for
any potential future markets.
Klarna.php (init, setCountry) :
Removed the automatic setting of currency and language when setting
the country. This functionality does not scale and was not consistent
depending on how you set the country.
Majid G. <support@klarna.com>
Klarna.php (addTransaction) :
Removing the link comment for PRE_PAY flag
Flags.php (KlarnaFlags) :
Adding deprecated comment for Flag 8 (PRE_PAY)
v2.2.1
----------------
Date: 2011-05-18
David K. <support@klarna.com>
Klarna.php (summarizeGoodsList)
New method that can be used to get a aggregated price for the entire
goodslist
Klarna.php (reserveAmount)
Replace the simple goodslist summary that did not take taxes and
discounts into consideration with a call to summarizeGoodsList
v2.2.0
----------------
Date: 2012-05-14
Rickard D. <support@klarna.com>
Klarna.php (assembleAddress) :
Only validate that the proper object type is sent in to Klarna, no longer
performs any validation of the content of the fields.
klarnaaddr.php () :
Removed validation of field contets. Now possible to set all fields to
empty strings if you wan.
Klarna.php (addTransaction, reserveAmount, activateReservation) :
If $gender is sent in as an empty string, treat it as null.
klarnacalc.php (calc_apr) :
Removed the ability to send in a FIXED or SPECIAL pclass to
KlarnaCalc->calc_apr. If this function is called with a FIXED or SPECIAL
pclass it will now throw an exception instead of causing a fatal error.
Klarna.php (getAllPClasses) : added
storage.intf.php (getAllPClasses) : added
Added possibility to get all stored pclasses, regardless of eid or type.
Klarna.php (setPCStorage) :
Added possibility to set a PCStorage on the Klarna object.
Klarna.php (getPCStorage) : made public (was protected)
Added possibility to get the configured PCStorage object from the Klarna
object.
Country.php (getLanguageForCountry, getCurrencyForCountry) : added
Added possibility to get the language or currency for a specific country.
All Files () :
Updated code to follow the PEAR standard.
Refactored several classes into their own files.
All refactored classes were previosly declared inside the Klarna.php
file. The new files are now instead included in the Klarna.php file,
so no functionality has changed in that regard.
KlarnaCountry => Country.php
KlarnaCurrency => Currency.php
KlarnaEncoding => Encoding.php
KlarnaException => Exceptions.php
KlarnaFlags => Flags.php
KlarnaLanguage => Language.php
Made almost all exceptions thrown more specific and meaningful than just
KlarnaException, although they still extend KlarnaException so old
try-catch blocks will still work.
v2.1.3
----------------
Date: 2011-09-26
* Fixed a minor conversion issue.
v2.1.2
----------------
Date: 2011-09-12
* Improved the MySQL and SQL storage modules
Added so you can pass an associative array to pcURI with the database info
Added support for dashes in the normal regexp handling
Fixed a rounding bug which requires a DROP TABLE and re-update of all PClasses
* Fixed a minor issue regarding the debug and xmlrpcDebug settings
* Added support for the ISO 3166-1 alpha-3 country codes
v2.1.1
----------------
Date: 2011-09-06
* Corrected a few issues in the phpDoc comments
* Improved fetchPClasses, it is now possible to specify only country (as code or constant)
* Changed the MySQL PClass storage's clear functionality to use DELETE FROM instead of DROP TABLE,
this is to prevent possible permission issues in the database
* Various improvements and bug fixes
v2.1.0
----------------
Date: 2011-08-19
* Added support for stronger cryptographic hashes
The default is now SHA-512 instead of MD5
* Experimental generic database storage using PDO
* Added work arounds for issues with the XML-RPC library
* Bug fix and additional sanity checks in getCheapestPClass
* Debug mode uses FirePHP if available
v2.0.0
----------------
Date: 2011-07-01
* Initial release of 2.0 API
* A complete rewrite using object oriented practices