Mage_Payone - Version 3.3.1

Version Notes

Mage_Payone-3.2.0

Download this release

Release Info

Developer PAYONE
Extension Mage_Payone
Version 3.3.1
Comparing to
See all releases


Code changes from version 3.3.0 to 3.3.1

Files changed (204) hide show
  1. app/code/community/Payone/Core/Model/Mapper/ApiRequest/Payment/Capture.php +6 -2
  2. app/code/community/Payone/Core/etc/config.xml +1 -1
  3. js/payone/core/client_api.js +97 -97
  4. js/payone/core/onlinebanktransfer.js +1 -1
  5. lib/Payone/Api/Adapter/Http/Curl.php +76 -76
  6. lib/Payone/Api/Adapter/Http/Socket.php +112 -112
  7. lib/Payone/Api/Enum/AccessAction.php +40 -40
  8. lib/Payone/Api/Enum/AddressCheckDivergence.php +39 -39
  9. lib/Payone/Api/Enum/AddressCheckPersonstatus.php +43 -43
  10. lib/Payone/Api/Enum/AddressCheckScore.php +38 -38
  11. lib/Payone/Api/Enum/AddressCheckSecstatus.php +38 -38
  12. lib/Payone/Api/Enum/AddressCheckType.php +38 -38
  13. lib/Payone/Api/Enum/AvsResult.php +40 -40
  14. lib/Payone/Api/Enum/BankaccountCheckType.php +37 -37
  15. lib/Payone/Api/Enum/CaptureMode.php +36 -36
  16. lib/Payone/Api/Enum/ConsumerscoreScore.php +41 -41
  17. lib/Payone/Api/Enum/ConsumerscoreType.php +38 -38
  18. lib/Payone/Api/Enum/CreditcardType.php +53 -53
  19. lib/Payone/Api/Enum/DebitTransactionType.php +42 -42
  20. lib/Payone/Api/Enum/Ecommercemode.php +38 -38
  21. lib/Payone/Api/Enum/FileFormat.php +34 -34
  22. lib/Payone/Api/Enum/FileType.php +34 -34
  23. lib/Payone/Api/Enum/FinancingType.php +39 -39
  24. lib/Payone/Api/Enum/Gender.php +36 -36
  25. lib/Payone/Api/Enum/InvoiceDeliverymode.php +38 -38
  26. lib/Payone/Api/Enum/InvoicingItemType.php +38 -38
  27. lib/Payone/Api/Enum/OnlinebanktransferType.php +43 -43
  28. lib/Payone/Api/Enum/PayoutOpenBalance.php +37 -37
  29. lib/Payone/Api/Enum/PeriodUnit.php +38 -38
  30. lib/Payone/Api/Enum/PeriodUnitRecurring.php +39 -39
  31. lib/Payone/Api/Enum/Settleaccount.php +38 -38
  32. lib/Payone/Api/Enum/Shippingprovider.php +37 -37
  33. lib/Payone/Api/Enum/Storecarddata.php +37 -37
  34. lib/Payone/Api/Enum/UseCustomerdata.php +37 -37
  35. lib/Payone/Api/Enum/WalletType.php +36 -36
  36. lib/Payone/Api/Exception/Abstract.php +36 -36
  37. lib/Payone/Api/Exception/InvalidParameters.php +36 -36
  38. lib/Payone/Api/Exception/InvalidResponse.php +36 -36
  39. lib/Payone/Api/Exception/InvalidUrl.php +36 -36
  40. lib/Payone/Api/Exception/MappingNotFound.php +35 -35
  41. lib/Payone/Api/Exception/Payone.php +36 -36
  42. lib/Payone/Api/Exception/Request/InvalidKey.php +36 -36
  43. lib/Payone/Api/Exception/Request/InvalidMid.php +36 -36
  44. lib/Payone/Api/Exception/Request/InvalidMode.php +36 -36
  45. lib/Payone/Api/Exception/Request/InvalidPortalid.php +36 -36
  46. lib/Payone/Api/Exception/Timeout.php +36 -36
  47. lib/Payone/Api/Exception/UnknownStatus.php +36 -36
  48. lib/Payone/Api/Exception/WritingRequestToServer.php +36 -36
  49. lib/Payone/Api/Mapper/Abstract.php +35 -35
  50. lib/Payone/Api/Mapper/Currency.php +308 -308
  51. lib/Payone/Api/Mapper/Currency/Interface.php +60 -60
  52. lib/Payone/Api/Mapper/Request/Abstract.php +56 -56
  53. lib/Payone/Api/Mapper/Request/Interface.php +40 -40
  54. lib/Payone/Api/Mapper/Request/Management/UpdateAccess.php +95 -95
  55. lib/Payone/Api/Mapper/Request/Payment/Abstract.php +80 -80
  56. lib/Payone/Api/Mapper/Request/Payment/Authorization.php +46 -46
  57. lib/Payone/Api/Mapper/Request/Payment/Capture.php +46 -46
  58. lib/Payone/Api/Mapper/Request/Payment/CreateAccess.php +96 -96
  59. lib/Payone/Api/Mapper/Request/Payment/Debit.php +46 -46
  60. lib/Payone/Api/Mapper/Request/Payment/Preauthorization.php +45 -45
  61. lib/Payone/Api/Mapper/Request/Payment/Refund.php +46 -46
  62. lib/Payone/Api/Mapper/Request/Payment/Vauthorization.php +46 -46
  63. lib/Payone/Api/Mapper/Response/3dsCheck.php +64 -64
  64. lib/Payone/Api/Mapper/Response/Abstract.php +167 -167
  65. lib/Payone/Api/Mapper/Response/AddressCheck.php +61 -61
  66. lib/Payone/Api/Mapper/Response/Authorization.php +63 -63
  67. lib/Payone/Api/Mapper/Response/BankAccountCheck.php +65 -65
  68. lib/Payone/Api/Mapper/Response/Capture.php +61 -61
  69. lib/Payone/Api/Mapper/Response/Consumerscore.php +62 -62
  70. lib/Payone/Api/Mapper/Response/CreateAccess.php +61 -61
  71. lib/Payone/Api/Mapper/Response/CreditCardCheck.php +62 -62
  72. lib/Payone/Api/Mapper/Response/Debit.php +60 -60
  73. lib/Payone/Api/Mapper/Response/GetFile.php +64 -64
  74. lib/Payone/Api/Mapper/Response/GetInvoice.php +64 -64
  75. lib/Payone/Api/Mapper/Response/Interface.php +42 -42
  76. lib/Payone/Api/Mapper/Response/ManageMandate.php +60 -60
  77. lib/Payone/Api/Mapper/Response/Preauthorization.php +63 -63
  78. lib/Payone/Api/Mapper/Response/Refund.php +61 -61
  79. lib/Payone/Api/Mapper/Response/UpdateAccess.php +61 -61
  80. lib/Payone/Api/Mapper/Response/Vauthorization.php +60 -60
  81. lib/Payone/Api/Persistence/Interface.php +58 -58
  82. lib/Payone/Api/Request/3dsCheck.php +257 -257
  83. lib/Payone/Api/Request/AddressCheck.php +317 -317
  84. lib/Payone/Api/Request/Authorization.php +58 -58
  85. lib/Payone/Api/Request/BankAccountCheck.php +237 -237
  86. lib/Payone/Api/Request/Capture.php +179 -179
  87. lib/Payone/Api/Request/Consumerscore.php +337 -337
  88. lib/Payone/Api/Request/CreateAccess.php +526 -526
  89. lib/Payone/Api/Request/CreditCardCheck.php +197 -197
  90. lib/Payone/Api/Request/Debit.php +239 -239
  91. lib/Payone/Api/Request/GetFile.php +98 -98
  92. lib/Payone/Api/Request/GetInvoice.php +57 -57
  93. lib/Payone/Api/Request/ManageMandate.php +161 -161
  94. lib/Payone/Api/Request/Parameter/Authorization/3dsecure.php +96 -96
  95. lib/Payone/Api/Request/Parameter/Authorization/Abstract.php +40 -40
  96. lib/Payone/Api/Request/Parameter/Authorization/Business.php +102 -102
  97. lib/Payone/Api/Request/Parameter/Authorization/DeliveryData.php +221 -221
  98. lib/Payone/Api/Request/Parameter/Authorization/PaymentMethod/Abstract.php +40 -40
  99. lib/Payone/Api/Request/Parameter/Authorization/PaymentMethod/CashOnDelivery.php +56 -56
  100. lib/Payone/Api/Request/Parameter/Authorization/PaymentMethod/CreditCard.php +256 -256
  101. lib/Payone/Api/Request/Parameter/Authorization/PaymentMethod/DebitPayment.php +176 -176
  102. lib/Payone/Api/Request/Parameter/Authorization/PaymentMethod/Financing.php +135 -135
  103. lib/Payone/Api/Request/Parameter/Authorization/PaymentMethod/OnlineBankTransfer.php +236 -236
  104. lib/Payone/Api/Request/Parameter/Authorization/PaymentMethod/Wallet.php +116 -116
  105. lib/Payone/Api/Request/Parameter/Authorization/PersonalData.php +340 -340
  106. lib/Payone/Api/Request/Parameter/Capture/Business.php +71 -71
  107. lib/Payone/Api/Request/Parameter/Capture/Invoicing/Transaction.php +47 -47
  108. lib/Payone/Api/Request/Parameter/CreateAccess/3dsecure.php +96 -96
  109. lib/Payone/Api/Request/Parameter/CreateAccess/Abstract.php +38 -38
  110. lib/Payone/Api/Request/Parameter/CreateAccess/Billing.php +151 -151
  111. lib/Payone/Api/Request/Parameter/CreateAccess/Invoicing/Transaction.php +132 -132
  112. lib/Payone/Api/Request/Parameter/CreateAccess/PaymentMethod/Abstract.php +36 -36
  113. lib/Payone/Api/Request/Parameter/CreateAccess/PaymentMethod/CreditCard.php +156 -156
  114. lib/Payone/Api/Request/Parameter/CreateAccess/PaymentMethod/DebitPayment.php +176 -176
  115. lib/Payone/Api/Request/Parameter/CreateAccess/PersonalData.php +288 -288
  116. lib/Payone/Api/Request/Parameter/Debit/Abstract.php +37 -37
  117. lib/Payone/Api/Request/Parameter/Debit/Business.php +116 -116
  118. lib/Payone/Api/Request/Parameter/Debit/PaymentMethod/Abstract.php +36 -36
  119. lib/Payone/Api/Request/Parameter/Debit/PaymentMethod/BankAccount.php +216 -216
  120. lib/Payone/Api/Request/Parameter/Debit/PaymentMethod/CreditCard.php +176 -176
  121. lib/Payone/Api/Request/Parameter/Interface.php +63 -63
  122. lib/Payone/Api/Request/Parameter/Invoicing/Access/Item.php +258 -258
  123. lib/Payone/Api/Request/Parameter/Invoicing/Item.php +220 -220
  124. lib/Payone/Api/Request/Parameter/Invoicing/Transaction.php +195 -195
  125. lib/Payone/Api/Request/Parameter/ManageMandate/Abstract.php +40 -40
  126. lib/Payone/Api/Request/Parameter/ManageMandate/PaymentMethod/Abstract.php +40 -40
  127. lib/Payone/Api/Request/Parameter/ManageMandate/PaymentMethod/BankAccount.php +136 -136
  128. lib/Payone/Api/Request/Parameter/ManageMandate/PersonalData.php +200 -200
  129. lib/Payone/Api/Request/Parameter/Refund/Abstract.php +40 -40
  130. lib/Payone/Api/Request/Parameter/Refund/PaymentMethod/BankAccount.php +196 -196
  131. lib/Payone/Api/Request/Parameter/UpdateAccess/Invoicing/Transaction.php +90 -90
  132. lib/Payone/Api/Request/Parameter/Vauthorization/Abstract.php +38 -38
  133. lib/Payone/Api/Request/Parameter/Vauthorization/Invoicing/Transaction.php +112 -112
  134. lib/Payone/Api/Request/Parameter/Vauthorization/PaymentMethod/Abstract.php +36 -36
  135. lib/Payone/Api/Request/Parameter/Vauthorization/PaymentMethod/CreditCard.php +177 -177
  136. lib/Payone/Api/Request/Parameter/Vauthorization/PaymentMethod/DebitPayment.php +176 -176
  137. lib/Payone/Api/Request/Parameter/Vauthorization/PersonalData.php +288 -288
  138. lib/Payone/Api/Request/Preauthorization.php +37 -37
  139. lib/Payone/Api/Request/Refund.php +198 -198
  140. lib/Payone/Api/Request/UpdateAccess.php +353 -353
  141. lib/Payone/Api/Request/Vauthorization.php +330 -330
  142. lib/Payone/Api/Response/3dsCheck/Enrolled.php +175 -175
  143. lib/Payone/Api/Response/3dsCheck/Invalid.php +37 -37
  144. lib/Payone/Api/Response/3dsCheck/Valid.php +95 -95
  145. lib/Payone/Api/Response/AddressCheck/Invalid.php +55 -55
  146. lib/Payone/Api/Response/AddressCheck/Valid.php +215 -215
  147. lib/Payone/Api/Response/Authorization/Abstract.php +278 -278
  148. lib/Payone/Api/Response/Authorization/Approved.php +96 -96
  149. lib/Payone/Api/Response/Authorization/Redirect.php +94 -94
  150. lib/Payone/Api/Response/BankAccountCheck/Blocked.php +35 -35
  151. lib/Payone/Api/Response/BankAccountCheck/Invalid.php +37 -37
  152. lib/Payone/Api/Response/BankAccountCheck/Valid.php +155 -155
  153. lib/Payone/Api/Response/Capture/Approved.php +395 -395
  154. lib/Payone/Api/Response/Consumerscore/Invalid.php +55 -55
  155. lib/Payone/Api/Response/Consumerscore/Valid.php +295 -295
  156. lib/Payone/Api/Response/CreateAccess/Approved.php +95 -95
  157. lib/Payone/Api/Response/CreditCardCheck/Invalid.php +37 -37
  158. lib/Payone/Api/Response/CreditCardCheck/Valid.php +75 -75
  159. lib/Payone/Api/Response/Debit/Approved.php +75 -75
  160. lib/Payone/Api/Response/Error.php +116 -116
  161. lib/Payone/Api/Response/Interface.php +99 -99
  162. lib/Payone/Api/Response/Invalid.php +116 -116
  163. lib/Payone/Api/Response/Management/GetFile.php +70 -70
  164. lib/Payone/Api/Response/Management/GetInvoice.php +70 -70
  165. lib/Payone/Api/Response/Management/ManageMandate/Approved.php +155 -155
  166. lib/Payone/Api/Response/Management/UpdateAccess/Ok.php +35 -35
  167. lib/Payone/Api/Response/Preauthorization/Approved.php +35 -35
  168. lib/Payone/Api/Response/Preauthorization/Redirect.php +35 -35
  169. lib/Payone/Api/Response/Refund/Approved.php +75 -75
  170. lib/Payone/Api/Response/Vauthorization/Approved.php +95 -95
  171. lib/Payone/Api/Service/Abstract.php +171 -171
  172. lib/Payone/Api/Service/Interface.php +54 -54
  173. lib/Payone/Api/Service/Management/GetFile.php +66 -66
  174. lib/Payone/Api/Service/Management/GetInvoice.php +85 -85
  175. lib/Payone/Api/Service/Management/ManageMandate.php +67 -67
  176. lib/Payone/Api/Service/Management/UpdateAccess.php +83 -83
  177. lib/Payone/Api/Service/Payment/Abstract.php +36 -36
  178. lib/Payone/Api/Service/Payment/Authorize.php +83 -83
  179. lib/Payone/Api/Service/Payment/AuthorizeInterface.php +42 -42
  180. lib/Payone/Api/Service/Payment/Capture.php +84 -84
  181. lib/Payone/Api/Service/Payment/CaptureInterface.php +42 -42
  182. lib/Payone/Api/Service/Payment/CreateAccess.php +84 -84
  183. lib/Payone/Api/Service/Payment/CreateAccessInterface.php +42 -42
  184. lib/Payone/Api/Service/Payment/Debit.php +84 -84
  185. lib/Payone/Api/Service/Payment/DebitInterface.php +42 -42
  186. lib/Payone/Api/Service/Payment/Preauthorize.php +90 -90
  187. lib/Payone/Api/Service/Payment/PreauthorizeInterface.php +42 -42
  188. lib/Payone/Api/Service/Payment/Refund.php +85 -85
  189. lib/Payone/Api/Service/Payment/RefundInterface.php +42 -42
  190. lib/Payone/Api/Service/Payment/Vauthorize.php +83 -83
  191. lib/Payone/Api/Service/Payment/VauthorizeInterface.php +42 -42
  192. lib/Payone/Api/Service/ProtocolRequest/Interface.php +47 -47
  193. lib/Payone/Api/Service/Verification/3dsCheck.php +93 -93
  194. lib/Payone/Api/Service/Verification/AddressCheck.php +87 -87
  195. lib/Payone/Api/Service/Verification/BankAccountCheck.php +86 -86
  196. lib/Payone/Api/Service/Verification/Consumerscore.php +86 -86
  197. lib/Payone/Api/Service/Verification/CreditCardCheck.php +85 -85
  198. lib/Payone/Api/Validator/Abstract.php +35 -35
  199. lib/Payone/Api/Validator/DefaultParameters.php +60 -60
  200. lib/Payone/Api/Validator/Interface.php +41 -41
  201. lib/Payone/Bootstrap.php +48 -48
  202. lib/Payone/ClientApi/Enum/RequestType.php +36 -36
  203. lib/Payone/ClientApi/Enum/ResponseType.php +37 -37
  204. lib/Payone/ClientApi/Exception/Abstract.php +29 -36
app/code/community/Payone/Core/Model/Mapper/ApiRequest/Payment/Capture.php CHANGED
@@ -84,6 +84,7 @@ class Payone_Core_Model_Mapper_ApiRequest_Payment_Capture
84
  protected function mapDefaultCaptureParameters(Payone_Api_Request_Capture $request)
85
  {
86
  $order = $this->getOrder();
 
87
 
88
  $transaction = $this->getFactory()->getModelTransaction();
89
  $transaction = $transaction->loadByPayment($order->getPayment());
@@ -91,8 +92,11 @@ class Payone_Core_Model_Mapper_ApiRequest_Payment_Capture
91
  $request->setTxid($order->getPayment()->getLastTransId());
92
  $request->setSequencenumber($transaction->getNextSequenceNumber());
93
  $request->setCurrency($order->getOrderCurrencyCode());
94
- // $request->setAmount($this->getAmount());
95
- $request->setAmount($order->getGrandTotal());
 
 
 
96
  $request->setRequest(Payone_Api_Enum_RequestType::CAPTURE);
97
  }
98
 
84
  protected function mapDefaultCaptureParameters(Payone_Api_Request_Capture $request)
85
  {
86
  $order = $this->getOrder();
87
+ $invoice = $this->getInvoice();
88
 
89
  $transaction = $this->getFactory()->getModelTransaction();
90
  $transaction = $transaction->loadByPayment($order->getPayment());
92
  $request->setTxid($order->getPayment()->getLastTransId());
93
  $request->setSequencenumber($transaction->getNextSequenceNumber());
94
  $request->setCurrency($order->getOrderCurrencyCode());
95
+ if(!empty($invoice) && $invoice->hasData()) {
96
+ $request->setAmount($invoice->getGrandTotal());
97
+ } else {
98
+ $request->setAmount($this->getAmount());
99
+ }
100
  $request->setRequest(Payone_Api_Enum_RequestType::CAPTURE);
101
  }
102
 
app/code/community/Payone/Core/etc/config.xml CHANGED
@@ -24,7 +24,7 @@
24
  <config>
25
  <modules>
26
  <Payone_Core>
27
- <version>3.3.0</version>
28
  </Payone_Core>
29
  </modules>
30
 
24
  <config>
25
  <modules>
26
  <Payone_Core>
27
+ <version>3.3.1</version>
28
  </Payone_Core>
29
  </modules>
30
 
js/payone/core/client_api.js CHANGED
@@ -1,97 +1,97 @@
1
- /**
2
- * Namespaces
3
- * @type {Object}
4
- */
5
- var PAYONE = {};
6
- PAYONE.Handler = {};
7
- PAYONE.Service = {};
8
- PAYONE.Validation = {};
9
-
10
- /**
11
- * A Gatewaay to send Requests to Payone
12
- *
13
- * @param data
14
- * @constructor
15
- */
16
- PAYONE.Gateway = function (config, callback) {
17
- this.config = config;
18
- this.callback = callback;
19
- this.request = '';
20
- this.response = '';
21
-
22
- this.call = function (data) {
23
-
24
- this.initRequest(data);
25
-
26
- // Options
27
- var options = {
28
- callback_function_name:'PAYONE.Callback.invoke'
29
- };
30
-
31
- // AJAX Callback
32
- PAYONE.Callback.gateway = this;
33
- PAYONE.Callback.callback = this.callback;
34
-
35
- // Send Request to PAYONE
36
- var request = new PayoneRequest(this.request, options);
37
- request.checkAndStore();
38
- };
39
-
40
- this.initRequest = function (data) {
41
- this.request = data;
42
-
43
- // Add Default Parameters
44
- for (var key in this.config) {
45
- this.request[key] = this.config[key];
46
- }
47
-
48
- // init Request
49
- this.request.callback_method = 'PAYONE.Callback.invoke';
50
- }
51
-
52
- this.setResponse = function (response) {
53
- this.response = response;
54
- };
55
-
56
- this.getLastResponse = function () {
57
- return this.response;
58
- };
59
-
60
- this.getLastRequest = function () {
61
- return this.request;
62
- };
63
-
64
- this.setCallback = function (callback) {
65
- this.callback = callback;
66
- };
67
- };
68
-
69
- /**
70
- * A Callback Object that replaces default PAYONE Callback and improves Callback Handling
71
- *
72
- * @type {Object}
73
- */
74
- PAYONE.Callback = {
75
- /**
76
- * @type {Object} reference to the Gateway Object
77
- */
78
- gateway:'',
79
- /**
80
- * @type callback should be a valid Callback
81
- */
82
- callback:'',
83
-
84
- /**
85
- * Callback entry method
86
- *
87
- * @param response
88
- */
89
- invoke:function (response) {
90
- this.gateway.setResponse(response);
91
-
92
- document.getElementsByTagName("body")[0].removeChild(payoneCallbackFunction.payoneScript);
93
-
94
- var callback = this.callback;
95
- callback(response);
96
- }
97
- };
1
+ /**
2
+ * Namespaces
3
+ * @type {Object}
4
+ */
5
+ var PAYONE = {};
6
+ PAYONE.Handler = {};
7
+ PAYONE.Service = {};
8
+ PAYONE.Validation = {};
9
+
10
+ /**
11
+ * A Gatewaay to send Requests to Payone
12
+ *
13
+ * @param data
14
+ * @constructor
15
+ */
16
+ PAYONE.Gateway = function (config, callback) {
17
+ this.config = config;
18
+ this.callback = callback;
19
+ this.request = '';
20
+ this.response = '';
21
+
22
+ this.call = function (data) {
23
+
24
+ this.initRequest(data);
25
+
26
+ // Options
27
+ var options = {
28
+ callback_function_name:'PAYONE.Callback.invoke'
29
+ };
30
+
31
+ // AJAX Callback
32
+ PAYONE.Callback.gateway = this;
33
+ PAYONE.Callback.callback = this.callback;
34
+
35
+ // Send Request to PAYONE
36
+ var request = new PayoneRequest(this.request, options);
37
+ request.checkAndStore();
38
+ };
39
+
40
+ this.initRequest = function (data) {
41
+ this.request = data;
42
+
43
+ // Add Default Parameters
44
+ for (var key in this.config) {
45
+ this.request[key] = this.config[key];
46
+ }
47
+
48
+ // init Request
49
+ this.request.callback_method = 'PAYONE.Callback.invoke';
50
+ }
51
+
52
+ this.setResponse = function (response) {
53
+ this.response = response;
54
+ };
55
+
56
+ this.getLastResponse = function () {
57
+ return this.response;
58
+ };
59
+
60
+ this.getLastRequest = function () {
61
+ return this.request;
62
+ };
63
+
64
+ this.setCallback = function (callback) {
65
+ this.callback = callback;
66
+ };
67
+ };
68
+
69
+ /**
70
+ * A Callback Object that replaces default PAYONE Callback and improves Callback Handling
71
+ *
72
+ * @type {Object}
73
+ */
74
+ PAYONE.Callback = {
75
+ /**
76
+ * @type {Object} reference to the Gateway Object
77
+ */
78
+ gateway:'',
79
+ /**
80
+ * @type callback should be a valid Callback
81
+ */
82
+ callback:'',
83
+
84
+ /**
85
+ * Callback entry method
86
+ *
87
+ * @param response
88
+ */
89
+ invoke:function (response) {
90
+ this.gateway.setResponse(response);
91
+
92
+ document.getElementsByTagName("body")[0].removeChild(payoneCallbackFunction.payoneScript);
93
+
94
+ var callback = this.callback;
95
+ callback(response);
96
+ }
97
+ };
js/payone/core/onlinebanktransfer.js CHANGED
@@ -52,7 +52,7 @@ function payoneSwitchOnlineBankTransfer(element, country, currency) {
52
  var bankGroupSelectAt = $('payone_online_bank_transfer_bank_group_at');
53
  var bankGroupSelectNl = $('payone_online_bank_transfer_bank_group_nl');
54
 
55
- if (ElementValue == '' || typeCode == 'PFF' || typeCode == 'PFC') {
56
  disableAll();
57
  } else if (typeCode == 'PNT') {
58
  disableAll();
52
  var bankGroupSelectAt = $('payone_online_bank_transfer_bank_group_at');
53
  var bankGroupSelectNl = $('payone_online_bank_transfer_bank_group_nl');
54
 
55
+ if (ElementValue == '' || typeCode == 'PFF' || typeCode == 'PFC' || typeCode == 'P24') {
56
  disableAll();
57
  } else if (typeCode == 'PNT') {
58
  disableAll();
lib/Payone/Api/Adapter/Http/Curl.php CHANGED
@@ -1,76 +1,76 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Adapter
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Adapter
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Adapter_Http_Curl extends Payone_Api_Adapter_Http_Abstract
34
- {
35
- /**
36
- * @return array
37
- * @throws Payone_Api_Exception_InvalidResponse
38
- */
39
- protected function doRequest()
40
- {
41
- $response = array();
42
- $urlArray = $this->generateUrlArray();
43
-
44
- $urlHost = $urlArray['host'];
45
- $urlPath = isset($urlArray['path']) ? $urlArray['path'] : '';
46
- $urlScheme = $urlArray['scheme'];
47
- $urlQuery = $urlArray['query'];
48
-
49
- $curl = curl_init($urlScheme . "://" . $urlHost . $urlPath);
50
-
51
- curl_setopt($curl, CURLOPT_POST, 1);
52
- curl_setopt($curl, CURLOPT_POSTFIELDS, $urlQuery);
53
- curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
54
- curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 2);
55
- curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);
56
- curl_setopt($curl, CURLOPT_TIMEOUT, self::DEFAULT_TIMEOUT);
57
-
58
- $result = curl_exec($curl);
59
-
60
- $this->setRawResponse($result);
61
-
62
- if (curl_getinfo($curl, CURLINFO_HTTP_CODE) != 200) {
63
- throw new Payone_Api_Exception_InvalidResponse();
64
- }
65
- elseif (curl_error($curl)) {
66
- $response[] = "errormessage=" . curl_errno($curl) . ": " . curl_error($curl);
67
- }
68
- else {
69
- $response = explode("\n", $result);
70
- }
71
- curl_close($curl);
72
-
73
- return $response;
74
- }
75
-
76
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Adapter
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Adapter
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Adapter_Http_Curl extends Payone_Api_Adapter_Http_Abstract
34
+ {
35
+ /**
36
+ * @return array
37
+ * @throws Payone_Api_Exception_InvalidResponse
38
+ */
39
+ protected function doRequest()
40
+ {
41
+ $response = array();
42
+ $urlArray = $this->generateUrlArray();
43
+
44
+ $urlHost = $urlArray['host'];
45
+ $urlPath = isset($urlArray['path']) ? $urlArray['path'] : '';
46
+ $urlScheme = $urlArray['scheme'];
47
+ $urlQuery = $urlArray['query'];
48
+
49
+ $curl = curl_init($urlScheme . "://" . $urlHost . $urlPath);
50
+
51
+ curl_setopt($curl, CURLOPT_POST, 1);
52
+ curl_setopt($curl, CURLOPT_POSTFIELDS, $urlQuery);
53
+ curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
54
+ curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 2);
55
+ curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);
56
+ curl_setopt($curl, CURLOPT_TIMEOUT, self::DEFAULT_TIMEOUT);
57
+
58
+ $result = curl_exec($curl);
59
+
60
+ $this->setRawResponse($result);
61
+
62
+ if (curl_getinfo($curl, CURLINFO_HTTP_CODE) != 200) {
63
+ throw new Payone_Api_Exception_InvalidResponse();
64
+ }
65
+ elseif (curl_error($curl)) {
66
+ $response[] = "errormessage=" . curl_errno($curl) . ": " . curl_error($curl);
67
+ }
68
+ else {
69
+ $response = explode("\n", $result);
70
+ }
71
+ curl_close($curl);
72
+
73
+ return $response;
74
+ }
75
+
76
+ }
lib/Payone/Api/Adapter/Http/Socket.php CHANGED
@@ -1,112 +1,112 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Adapter
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Adapter
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Adapter_Http_Socket extends Payone_Api_Adapter_Http_Abstract
34
- {
35
- protected function doRequest()
36
- {
37
- $response = array();
38
- $errno = '';
39
- $errstr = '';
40
- $urlArray = $this->generateUrlArray();
41
-
42
- $urlHost = $urlArray['host'];
43
- $urlPath = isset($urlArray['path']) ? $urlArray['path'] : '';
44
- $urlScheme = $urlArray['scheme'];
45
- $urlQuery = $urlArray['query'];
46
-
47
- $socketScheme = '';
48
- $socketPort = 80;
49
-
50
- if ($urlScheme == 'https') {
51
- $socketScheme = 'ssl://';
52
- $socketPort = 443;
53
- }
54
-
55
- // Request - Method
56
- $method = 'Post';
57
-
58
- // Request - Header
59
- $headers = array();
60
- $headers[] = "POST " . $urlPath . " HTTP/1.1\r\n";
61
- $headers[] = "Host: " . $urlHost . "\r\n";
62
- $headers[] = "Content-Type: application/x-www-form-urlencoded\r\n";
63
- $headers[] = "Content-Length: " . strlen($urlQuery) . "\r\n";
64
- $headers[] = "Connection: close\r\n\r\n";
65
-
66
- // Request - Body
67
- $body = $urlArray['query'];
68
-
69
- // Request - Build
70
- $request = "{$method} {$urlPath} HTTP/1.1\r\n";
71
- foreach ($headers as $k => $v) {
72
- $request .= "$v\r\n";
73
- }
74
-
75
- $request .= "\r\n" . $body;
76
-
77
- // Socket - Connect
78
- $flags = STREAM_CLIENT_CONNECT;
79
- $context = stream_context_create();
80
- $socket = @stream_socket_client(
81
- $socketScheme . $urlHost . ':' . $socketPort,
82
- $errno,
83
- $errstr,
84
- self::DEFAULT_TIMEOUT,
85
- $flags,
86
- $context
87
- );
88
-
89
- // Socket - Write
90
- if (!@fwrite($socket, $request)) {
91
- throw new Payone_Api_Exception_WritingRequestToServer();
92
- }
93
-
94
- $gotStatus = false;
95
- while (($line = @fgets($socket)) !== false) {
96
- $gotStatus = $gotStatus || (strpos($line, 'HTTP') !== false);
97
- if ($gotStatus) {
98
- $response[] = $line;
99
- if (rtrim($line) === '') {
100
- break;
101
- }
102
- }
103
- }
104
-
105
- if (count($response) == 0) {
106
- throw new Payone_Api_Exception_InvalidResponse();
107
- }
108
-
109
- return $response;
110
- }
111
-
112
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Adapter
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Adapter
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Adapter_Http_Socket extends Payone_Api_Adapter_Http_Abstract
34
+ {
35
+ protected function doRequest()
36
+ {
37
+ $response = array();
38
+ $errno = '';
39
+ $errstr = '';
40
+ $urlArray = $this->generateUrlArray();
41
+
42
+ $urlHost = $urlArray['host'];
43
+ $urlPath = isset($urlArray['path']) ? $urlArray['path'] : '';
44
+ $urlScheme = $urlArray['scheme'];
45
+ $urlQuery = $urlArray['query'];
46
+
47
+ $socketScheme = '';
48
+ $socketPort = 80;
49
+
50
+ if ($urlScheme == 'https') {
51
+ $socketScheme = 'ssl://';
52
+ $socketPort = 443;
53
+ }
54
+
55
+ // Request - Method
56
+ $method = 'Post';
57
+
58
+ // Request - Header
59
+ $headers = array();
60
+ $headers[] = "POST " . $urlPath . " HTTP/1.1\r\n";
61
+ $headers[] = "Host: " . $urlHost . "\r\n";
62
+ $headers[] = "Content-Type: application/x-www-form-urlencoded\r\n";
63
+ $headers[] = "Content-Length: " . strlen($urlQuery) . "\r\n";
64
+ $headers[] = "Connection: close\r\n\r\n";
65
+
66
+ // Request - Body
67
+ $body = $urlArray['query'];
68
+
69
+ // Request - Build
70
+ $request = "{$method} {$urlPath} HTTP/1.1\r\n";
71
+ foreach ($headers as $k => $v) {
72
+ $request .= "$v\r\n";
73
+ }
74
+
75
+ $request .= "\r\n" . $body;
76
+
77
+ // Socket - Connect
78
+ $flags = STREAM_CLIENT_CONNECT;
79
+ $context = stream_context_create();
80
+ $socket = @stream_socket_client(
81
+ $socketScheme . $urlHost . ':' . $socketPort,
82
+ $errno,
83
+ $errstr,
84
+ self::DEFAULT_TIMEOUT,
85
+ $flags,
86
+ $context
87
+ );
88
+
89
+ // Socket - Write
90
+ if (!@fwrite($socket, $request)) {
91
+ throw new Payone_Api_Exception_WritingRequestToServer();
92
+ }
93
+
94
+ $gotStatus = false;
95
+ while (($line = @fgets($socket)) !== false) {
96
+ $gotStatus = $gotStatus || (strpos($line, 'HTTP') !== false);
97
+ if ($gotStatus) {
98
+ $response[] = $line;
99
+ if (rtrim($line) === '') {
100
+ break;
101
+ }
102
+ }
103
+ }
104
+
105
+ if (count($response) == 0) {
106
+ throw new Payone_Api_Exception_InvalidResponse();
107
+ }
108
+
109
+ return $response;
110
+ }
111
+
112
+ }
lib/Payone/Api/Enum/AccessAction.php CHANGED
@@ -1,40 +1,40 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_AccessAction
34
- {
35
- const UPDATE = 'update';
36
- const CANCEL = 'cancel';
37
- const REVERSE_CANCEL = 'reverse_cancel';
38
- const LOCK = 'lock';
39
- const UNLOCK = 'unlock';
40
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_AccessAction
34
+ {
35
+ const UPDATE = 'update';
36
+ const CANCEL = 'cancel';
37
+ const REVERSE_CANCEL = 'reverse_cancel';
38
+ const LOCK = 'lock';
39
+ const UNLOCK = 'unlock';
40
+ }
lib/Payone/Api/Enum/AddressCheckDivergence.php CHANGED
@@ -1,39 +1,39 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_AddressCheckDivergence
34
- {
35
- const DEVIANT_SURNAME = 'L';
36
- const DEVIANT_FIRSTNAME = 'F';
37
- const DEVIANT_ADDRESS= 'A';
38
- const DEVIANT_DATE_OF_BIRTH = 'B';
39
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_AddressCheckDivergence
34
+ {
35
+ const DEVIANT_SURNAME = 'L';
36
+ const DEVIANT_FIRSTNAME = 'F';
37
+ const DEVIANT_ADDRESS= 'A';
38
+ const DEVIANT_DATE_OF_BIRTH = 'B';
39
+ }
lib/Payone/Api/Enum/AddressCheckPersonstatus.php CHANGED
@@ -1,43 +1,43 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_AddressCheckPersonstatus
34
- {
35
- const NONE = 'NONE'; //NONE: no verification of personal data carried out
36
- const PPB = 'PPB'; //PPB: first name & surname unknown
37
- const PHB = 'PHB'; //PHB: surname known
38
- const PAB = 'PAB'; //PAB: first name & surname unknown
39
- const PKI = 'PKI'; //PKI: ambiguity in name and address
40
- const PNZ = 'PNZ'; //PNZ: cannot be delivered (any longer)
41
- const PPV = 'PPV'; //PPV: person deceased
42
- const PPF = 'PPF'; //PPF: postal address details incorrect
43
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_AddressCheckPersonstatus
34
+ {
35
+ const NONE = 'NONE'; //NONE: no verification of personal data carried out
36
+ const PPB = 'PPB'; //PPB: first name & surname unknown
37
+ const PHB = 'PHB'; //PHB: surname known
38
+ const PAB = 'PAB'; //PAB: first name & surname unknown
39
+ const PKI = 'PKI'; //PKI: ambiguity in name and address
40
+ const PNZ = 'PNZ'; //PNZ: cannot be delivered (any longer)
41
+ const PPV = 'PPV'; //PPV: person deceased
42
+ const PPF = 'PPF'; //PPF: postal address details incorrect
43
+ }
lib/Payone/Api/Enum/AddressCheckScore.php CHANGED
@@ -1,38 +1,38 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_AddressCheckScore
34
- {
35
- const GREEN = 'G';
36
- const YELLOW = 'Y';
37
- const RED = 'R';
38
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_AddressCheckScore
34
+ {
35
+ const GREEN = 'G';
36
+ const YELLOW = 'Y';
37
+ const RED = 'R';
38
+ }
lib/Payone/Api/Enum/AddressCheckSecstatus.php CHANGED
@@ -1,38 +1,38 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_AddressCheckSecstatus
34
- {
35
- const ADDRESS_CORRECT = '10';
36
- const ADDRESS_CORRECTABLE = '20';
37
- const ADDRESS_NONE_CORRECTABLE = '30';
38
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_AddressCheckSecstatus
34
+ {
35
+ const ADDRESS_CORRECT = '10';
36
+ const ADDRESS_CORRECTABLE = '20';
37
+ const ADDRESS_NONE_CORRECTABLE = '30';
38
+ }
lib/Payone/Api/Enum/AddressCheckType.php CHANGED
@@ -1,38 +1,38 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_AddressCheckType
34
- {
35
- const NONE = 'NO';
36
- const BASIC = 'BA';
37
- const PERSON = 'PE';
38
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_AddressCheckType
34
+ {
35
+ const NONE = 'NO';
36
+ const BASIC = 'BA';
37
+ const PERSON = 'PE';
38
+ }
lib/Payone/Api/Enum/AvsResult.php CHANGED
@@ -1,40 +1,40 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_AvsResult
34
- {
35
- const RESULT_A = 'A';
36
- const RESULT_F = 'F';
37
- const RESULT_N = 'N';
38
- const RESULT_U = 'U';
39
- const RESULT_Z = 'Z';
40
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_AvsResult
34
+ {
35
+ const RESULT_A = 'A';
36
+ const RESULT_F = 'F';
37
+ const RESULT_N = 'N';
38
+ const RESULT_U = 'U';
39
+ const RESULT_Z = 'Z';
40
+ }
lib/Payone/Api/Enum/BankaccountCheckType.php CHANGED
@@ -1,37 +1,37 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_BankaccountCheckType
34
- {
35
- const REGULAR = '0';
36
- const POS_BLACKLIST = '1';
37
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_BankaccountCheckType
34
+ {
35
+ const REGULAR = '0';
36
+ const POS_BLACKLIST = '1';
37
+ }
lib/Payone/Api/Enum/CaptureMode.php CHANGED
@@ -1,36 +1,36 @@
1
- <?php
2
-
3
- /**
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the GNU General Public License (GPL 3)
8
- * that is bundled with this package in the file LICENSE.txt
9
- *
10
- * DISCLAIMER
11
- *
12
- * Do not edit or add to this file if you wish to upgrade Payone to newer
13
- * versions in the future. If you wish to customize Payone for your
14
- * needs please refer to http://www.payone.de for more information.
15
- *
16
- * @category Payone
17
- * @package Payone_Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Enum
28
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
29
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
30
- * @link http://www.noovias.com
31
- */
32
- class Payone_Api_Enum_CaptureMode
33
- {
34
- const COMPLETED = 'completed';
35
- const NOTCOMPLETED = 'notcompleted';
36
- }
1
+ <?php
2
+
3
+ /**
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the GNU General Public License (GPL 3)
8
+ * that is bundled with this package in the file LICENSE.txt
9
+ *
10
+ * DISCLAIMER
11
+ *
12
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
13
+ * versions in the future. If you wish to customize Payone for your
14
+ * needs please refer to http://www.payone.de for more information.
15
+ *
16
+ * @category Payone
17
+ * @package Payone_Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Enum
28
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
29
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
30
+ * @link http://www.noovias.com
31
+ */
32
+ class Payone_Api_Enum_CaptureMode
33
+ {
34
+ const COMPLETED = 'completed';
35
+ const NOTCOMPLETED = 'notcompleted';
36
+ }
lib/Payone/Api/Enum/ConsumerscoreScore.php CHANGED
@@ -1,41 +1,41 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_ConsumerscoreScore
34
- {
35
- // @note Class is intentionally called ConsumerscoreScore, it´s the valid values for response "Consumerscore", parameter "score"
36
- const GREEN = 'G';
37
- const YELLOW = 'Y';
38
- const RED = 'R';
39
-
40
- // TEST
41
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_ConsumerscoreScore
34
+ {
35
+ // @note Class is intentionally called ConsumerscoreScore, it´s the valid values for response "Consumerscore", parameter "score"
36
+ const GREEN = 'G';
37
+ const YELLOW = 'Y';
38
+ const RED = 'R';
39
+
40
+ // TEST
41
+ }
lib/Payone/Api/Enum/ConsumerscoreType.php CHANGED
@@ -1,38 +1,38 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_ConsumerscoreType
34
- {
35
- const INFOSCORE_HARD = 'IH';
36
- const INFOSCORE_ALL = 'IA';
37
- const INFOSCORE_ALL_BONI = 'IB';
38
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_ConsumerscoreType
34
+ {
35
+ const INFOSCORE_HARD = 'IH';
36
+ const INFOSCORE_ALL = 'IA';
37
+ const INFOSCORE_ALL_BONI = 'IB';
38
+ }
lib/Payone/Api/Enum/CreditcardType.php CHANGED
@@ -1,53 +1,53 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_CreditcardType
34
- {
35
- //V: Visa
36
- const VISA = 'V';
37
- //M: MasterCard
38
- const MASTERCARD = 'M';
39
- //A: Amex
40
- const AMEX = 'A';
41
- //D: Diners
42
- const DINERS = 'D';
43
- //J: JCB
44
- const JCB = 'J';
45
- //O: Maestro International
46
- const MAESTRO_INTERNATIONAL = 'O';
47
- //U: Maestro UK
48
- const MAESTRO_UK = 'U';
49
- //C: Discover
50
- const DISCOVER = 'C';
51
- //B: Carte Bleue
52
- const CARTE_BLEUE = 'B';
53
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_CreditcardType
34
+ {
35
+ //V: Visa
36
+ const VISA = 'V';
37
+ //M: MasterCard
38
+ const MASTERCARD = 'M';
39
+ //A: Amex
40
+ const AMEX = 'A';
41
+ //D: Diners
42
+ const DINERS = 'D';
43
+ //J: JCB
44
+ const JCB = 'J';
45
+ //O: Maestro International
46
+ const MAESTRO_INTERNATIONAL = 'O';
47
+ //U: Maestro UK
48
+ const MAESTRO_UK = 'U';
49
+ //C: Discover
50
+ const DISCOVER = 'C';
51
+ //B: Carte Bleue
52
+ const CARTE_BLEUE = 'B';
53
+ }
lib/Payone/Api/Enum/DebitTransactionType.php CHANGED
@@ -1,42 +1,42 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_DebitTransactionType
34
- {
35
- const DIRECT_DEBIT_REFUND_FEE = 'RL'; //RL: Rücklastschriftgebühr
36
- const DUNNING_CHARGE = 'MG'; //MG: Mahngebühren
37
- const DEFAULT_INTEREST = 'VZ'; //VZ: Verzugszinsen
38
- const SHIPPING_COSTS = 'VD'; //VD: Versandkosten
39
- const PAYMENT_REQUEST = 'FD'; //FD: Forderung (default bei amount >0)
40
- const CREDIT = 'GT'; //GT: Gutschrift (default bei amount <0)
41
- const RETURNS = 'RT'; //RT: Retoure
42
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_DebitTransactionType
34
+ {
35
+ const DIRECT_DEBIT_REFUND_FEE = 'RL'; //RL: Rücklastschriftgebühr
36
+ const DUNNING_CHARGE = 'MG'; //MG: Mahngebühren
37
+ const DEFAULT_INTEREST = 'VZ'; //VZ: Verzugszinsen
38
+ const SHIPPING_COSTS = 'VD'; //VD: Versandkosten
39
+ const PAYMENT_REQUEST = 'FD'; //FD: Forderung (default bei amount >0)
40
+ const CREDIT = 'GT'; //GT: Gutschrift (default bei amount <0)
41
+ const RETURNS = 'RT'; //RT: Retoure
42
+ }
lib/Payone/Api/Enum/Ecommercemode.php CHANGED
@@ -1,38 +1,38 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_Ecommercemode
34
- {
35
- const INTERNET = 'internet';
36
- const SECURE3D = '3dsecure';
37
- const MOTO = 'moto';
38
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_Ecommercemode
34
+ {
35
+ const INTERNET = 'internet';
36
+ const SECURE3D = '3dsecure';
37
+ const MOTO = 'moto';
38
+ }
lib/Payone/Api/Enum/FileFormat.php CHANGED
@@ -1,34 +1,34 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Enum
17
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
18
- * @author Matthias Walter <info@noovias.com>
19
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
20
- * @link http://www.noovias.com
21
- */
22
-
23
- /**
24
- *
25
- * @category Payone
26
- * @package Payone_Enum
27
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
28
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
29
- * @link http://www.noovias.com
30
- */
31
- class Payone_Api_Enum_FileFormat
32
- {
33
- const PDF = 'PDF';
34
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Enum
17
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
18
+ * @author Matthias Walter <info@noovias.com>
19
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
20
+ * @link http://www.noovias.com
21
+ */
22
+
23
+ /**
24
+ *
25
+ * @category Payone
26
+ * @package Payone_Enum
27
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
28
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
29
+ * @link http://www.noovias.com
30
+ */
31
+ class Payone_Api_Enum_FileFormat
32
+ {
33
+ const PDF = 'PDF';
34
+ }
lib/Payone/Api/Enum/FileType.php CHANGED
@@ -1,34 +1,34 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Enum
17
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
18
- * @author Matthias Walter <info@noovias.com>
19
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
20
- * @link http://www.noovias.com
21
- */
22
-
23
- /**
24
- *
25
- * @category Payone
26
- * @package Payone_Enum
27
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
28
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
29
- * @link http://www.noovias.com
30
- */
31
- class Payone_Api_Enum_FileType
32
- {
33
- const SEPA_MANDATE = 'SEPA_MANDATE';
34
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Enum
17
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
18
+ * @author Matthias Walter <info@noovias.com>
19
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
20
+ * @link http://www.noovias.com
21
+ */
22
+
23
+ /**
24
+ *
25
+ * @category Payone
26
+ * @package Payone_Enum
27
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
28
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
29
+ * @link http://www.noovias.com
30
+ */
31
+ class Payone_Api_Enum_FileType
32
+ {
33
+ const SEPA_MANDATE = 'SEPA_MANDATE';
34
+ }
lib/Payone/Api/Enum/FinancingType.php CHANGED
@@ -1,39 +1,39 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_FinancingType
34
- {
35
- const BSV = 'BSV'; // BILLSAFE
36
- const CFR = 'CFR'; // COMMERZ FINANZ
37
- const KLV = 'KLV'; // KLARNA INVOICING
38
- const KLS = 'KLS'; // KLARNA FINANCING
39
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_FinancingType
34
+ {
35
+ const BSV = 'BSV'; // BILLSAFE
36
+ const CFR = 'CFR'; // COMMERZ FINANZ
37
+ const KLV = 'KLV'; // KLARNA INVOICING
38
+ const KLS = 'KLS'; // KLARNA FINANCING
39
+ }
lib/Payone/Api/Enum/Gender.php CHANGED
@@ -1,37 +1,37 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2013 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2013 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_Gender
34
- {
35
- const FEMALE = 'f';
36
- const MALE = 'm';
37
  }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2013 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2013 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_Gender
34
+ {
35
+ const FEMALE = 'f';
36
+ const MALE = 'm';
37
  }
lib/Payone/Api/Enum/InvoiceDeliverymode.php CHANGED
@@ -1,38 +1,38 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_InvoiceDeliverymode
34
- {
35
- const POST = 'M';
36
- const PDF = 'P';
37
- const NONE = 'N';
38
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_InvoiceDeliverymode
34
+ {
35
+ const POST = 'M';
36
+ const PDF = 'P';
37
+ const NONE = 'N';
38
+ }
lib/Payone/Api/Enum/InvoicingItemType.php CHANGED
@@ -1,38 +1,38 @@
1
- <?php
2
-
3
- /**
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the GNU General Public License (GPL 3)
8
- * that is bundled with this package in the file LICENSE.txt
9
- *
10
- * DISCLAIMER
11
- *
12
- * Do not edit or add to this file if you wish to upgrade Payone to newer
13
- * versions in the future. If you wish to customize Payone for your
14
- * needs please refer to http://www.payone.de for more information.
15
- *
16
- * @category Payone
17
- * @package Payone_Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Enum
28
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
29
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
30
- * @link http://www.noovias.com
31
- */
32
- class Payone_Api_Enum_InvoicingItemType
33
- {
34
- const GOODS = 'goods';
35
- const SHIPMENT = 'shipment';
36
- const HANDLING = 'handling';
37
- const VOUCHER = 'voucher';
38
- }
1
+ <?php
2
+
3
+ /**
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the GNU General Public License (GPL 3)
8
+ * that is bundled with this package in the file LICENSE.txt
9
+ *
10
+ * DISCLAIMER
11
+ *
12
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
13
+ * versions in the future. If you wish to customize Payone for your
14
+ * needs please refer to http://www.payone.de for more information.
15
+ *
16
+ * @category Payone
17
+ * @package Payone_Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Enum
28
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
29
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
30
+ * @link http://www.noovias.com
31
+ */
32
+ class Payone_Api_Enum_InvoicingItemType
33
+ {
34
+ const GOODS = 'goods';
35
+ const SHIPMENT = 'shipment';
36
+ const HANDLING = 'handling';
37
+ const VOUCHER = 'voucher';
38
+ }
lib/Payone/Api/Enum/OnlinebanktransferType.php CHANGED
@@ -1,43 +1,43 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_OnlinebanktransferType
34
- {
35
- const INSTANT_MONEY_TRANSFER = 'PNT';
36
- const GIROPAY = 'GPY';
37
- const EPS_ONLINE_BANK_TRANSFER = 'EPS';
38
- const POSTFINANCE_EFINANCE = 'PFF';
39
- const POSTFINANCE_CARD = 'PFC';
40
- const IDEAL = 'IDL';
41
- const P24 = 'P24';
42
-
43
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_OnlinebanktransferType
34
+ {
35
+ const INSTANT_MONEY_TRANSFER = 'PNT';
36
+ const GIROPAY = 'GPY';
37
+ const EPS_ONLINE_BANK_TRANSFER = 'EPS';
38
+ const POSTFINANCE_EFINANCE = 'PFF';
39
+ const POSTFINANCE_CARD = 'PFC';
40
+ const IDEAL = 'IDL';
41
+ const P24 = 'P24';
42
+
43
+ }
lib/Payone/Api/Enum/PayoutOpenBalance.php CHANGED
@@ -1,37 +1,37 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_PayoutOpenBalance
34
- {
35
- const YES = 'yes';
36
- const NO = 'no';
37
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_PayoutOpenBalance
34
+ {
35
+ const YES = 'yes';
36
+ const NO = 'no';
37
+ }
lib/Payone/Api/Enum/PeriodUnit.php CHANGED
@@ -1,38 +1,38 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_PeriodUnit
34
- {
35
- const YEAR = 'Y';
36
- const MONTH = 'M';
37
- const DAY = 'D';
38
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_PeriodUnit
34
+ {
35
+ const YEAR = 'Y';
36
+ const MONTH = 'M';
37
+ const DAY = 'D';
38
+ }
lib/Payone/Api/Enum/PeriodUnitRecurring.php CHANGED
@@ -1,39 +1,39 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_PeriodUnitRecurring
34
- {
35
- const YEAR = 'Y';
36
- const MONTH = 'M';
37
- const DAY = 'D';
38
- const NONE = 'N';
39
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_PeriodUnitRecurring
34
+ {
35
+ const YEAR = 'Y';
36
+ const MONTH = 'M';
37
+ const DAY = 'D';
38
+ const NONE = 'N';
39
+ }
lib/Payone/Api/Enum/Settleaccount.php CHANGED
@@ -1,38 +1,38 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_Settleaccount
34
- {
35
- const YES = 'yes';
36
- const NO = 'no';
37
- const AUTO = 'auto';
38
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_Settleaccount
34
+ {
35
+ const YES = 'yes';
36
+ const NO = 'no';
37
+ const AUTO = 'auto';
38
+ }
lib/Payone/Api/Enum/Shippingprovider.php CHANGED
@@ -1,37 +1,37 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_Shippingprovider
34
- {
35
- const DHL = 'DHL';
36
- const BARTOLINI = 'BRT';
37
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_Shippingprovider
34
+ {
35
+ const DHL = 'DHL';
36
+ const BARTOLINI = 'BRT';
37
+ }
lib/Payone/Api/Enum/Storecarddata.php CHANGED
@@ -1,37 +1,37 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_Storecarddata
34
- {
35
- const YES = 'yes';
36
- const NO = 'no';
37
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_Storecarddata
34
+ {
35
+ const YES = 'yes';
36
+ const NO = 'no';
37
+ }
lib/Payone/Api/Enum/UseCustomerdata.php CHANGED
@@ -1,37 +1,37 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_UseCustomerdata
34
- {
35
- const YES = 'yes';
36
- const NO = 'no';
37
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_UseCustomerdata
34
+ {
35
+ const YES = 'yes';
36
+ const NO = 'no';
37
+ }
lib/Payone/Api/Enum/WalletType.php CHANGED
@@ -1,36 +1,36 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Enum_WalletType
34
- {
35
- const PAYPAL_EXPRESS = 'PPE';
36
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Enum_WalletType
34
+ {
35
+ const PAYPAL_EXPRESS = 'PPE';
36
+ }
lib/Payone/Api/Exception/Abstract.php CHANGED
@@ -1,36 +1,36 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Exception
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Exception
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- abstract class Payone_Api_Exception_Abstract extends Exception
34
- {
35
-
36
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Exception
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Exception
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ abstract class Payone_Api_Exception_Abstract extends Exception
34
+ {
35
+
36
+ }
lib/Payone/Api/Exception/InvalidParameters.php CHANGED
@@ -1,36 +1,36 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Exception
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Exception
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Exception_InvalidParameters extends Payone_Api_Exception_Abstract
34
- {
35
-
36
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Exception
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Exception
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Exception_InvalidParameters extends Payone_Api_Exception_Abstract
34
+ {
35
+
36
+ }
lib/Payone/Api/Exception/InvalidResponse.php CHANGED
@@ -1,36 +1,36 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Exception
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Exception
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Exception_InvalidResponse extends Payone_Api_Exception_Abstract
34
- {
35
-
36
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Exception
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Exception
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Exception_InvalidResponse extends Payone_Api_Exception_Abstract
34
+ {
35
+
36
+ }
lib/Payone/Api/Exception/InvalidUrl.php CHANGED
@@ -1,36 +1,36 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Exception
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Exception
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Exception_InvalidUrl extends Payone_Api_Exception_Abstract
34
- {
35
-
36
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Exception
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Exception
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Exception_InvalidUrl extends Payone_Api_Exception_Abstract
34
+ {
35
+
36
+ }
lib/Payone/Api/Exception/MappingNotFound.php CHANGED
@@ -1,36 +1,36 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Exception
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Exception
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Exception_MappingNotFound extends Payone_Api_Exception_Abstract
34
- {
35
-
36
  }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Exception
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Exception
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Exception_MappingNotFound extends Payone_Api_Exception_Abstract
34
+ {
35
+
36
  }
lib/Payone/Api/Exception/Payone.php CHANGED
@@ -1,36 +1,36 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Exception
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Exception
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Exception_Payone extends Payone_Api_Exception_Abstract
34
- {
35
-
36
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Exception
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Exception
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Exception_Payone extends Payone_Api_Exception_Abstract
34
+ {
35
+
36
+ }
lib/Payone/Api/Exception/Request/InvalidKey.php CHANGED
@@ -1,36 +1,36 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Exception
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Exception
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Exception_Request_InvalidKey extends Payone_Api_Exception_Abstract
34
- {
35
-
36
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Exception
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Exception
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Exception_Request_InvalidKey extends Payone_Api_Exception_Abstract
34
+ {
35
+
36
+ }
lib/Payone/Api/Exception/Request/InvalidMid.php CHANGED
@@ -1,36 +1,36 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Exception
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Exception
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Exception_Request_InvalidMid extends Payone_Api_Exception_Abstract
34
- {
35
-
36
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Exception
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Exception
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Exception_Request_InvalidMid extends Payone_Api_Exception_Abstract
34
+ {
35
+
36
+ }
lib/Payone/Api/Exception/Request/InvalidMode.php CHANGED
@@ -1,36 +1,36 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Exception
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Exception
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Exception_Request_InvalidMode extends Payone_Api_Exception_Abstract
34
- {
35
-
36
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Exception
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Exception
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Exception_Request_InvalidMode extends Payone_Api_Exception_Abstract
34
+ {
35
+
36
+ }
lib/Payone/Api/Exception/Request/InvalidPortalid.php CHANGED
@@ -1,36 +1,36 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Exception
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Exception
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Exception_Request_InvalidPortalid extends Payone_Api_Exception_Abstract
34
- {
35
-
36
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Exception
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Exception
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Exception_Request_InvalidPortalid extends Payone_Api_Exception_Abstract
34
+ {
35
+
36
+ }
lib/Payone/Api/Exception/Timeout.php CHANGED
@@ -1,36 +1,36 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Exception
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Exception
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Exception_Timeout extends Payone_Api_Exception_Abstract
34
- {
35
-
36
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Exception
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Exception
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Exception_Timeout extends Payone_Api_Exception_Abstract
34
+ {
35
+
36
+ }
lib/Payone/Api/Exception/UnknownStatus.php CHANGED
@@ -1,36 +1,36 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Exception
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Exception
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Exception_UnknownStatus extends Payone_Api_Exception_Abstract
34
- {
35
-
36
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Exception
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Exception
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Exception_UnknownStatus extends Payone_Api_Exception_Abstract
34
+ {
35
+
36
+ }
lib/Payone/Api/Exception/WritingRequestToServer.php CHANGED
@@ -1,36 +1,36 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Exception
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Exception
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Exception_WritingRequestToServer extends Payone_Api_Exception_Abstract
34
- {
35
-
36
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Exception
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Exception
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Exception_WritingRequestToServer extends Payone_Api_Exception_Abstract
34
+ {
35
+
36
+ }
lib/Payone/Api/Mapper/Abstract.php CHANGED
@@ -1,35 +1,35 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Mapper
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Mapper
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- abstract class Payone_Api_Mapper_Abstract
34
- {
35
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ abstract class Payone_Api_Mapper_Abstract
34
+ {
35
+ }
lib/Payone/Api/Mapper/Currency.php CHANGED
@@ -1,308 +1,308 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Mapper
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Mapper
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Mapper_Currency extends Payone_Api_Mapper_Abstract
34
- implements Payone_Api_Mapper_Currency_Interface
35
- {
36
- const PATH_CURRENCY_PROPERTIES_DEFAULT = 'currency.properties';
37
-
38
- /** Property names from properties file */
39
- const PROPERTY_NAME_ID = 'id';
40
- const PROPERTY_NAME_SIGN = 'sign';
41
- const PROPERTY_NAME_CODE = 'code';
42
- const PROPERTY_NAME_SUBDIV = 'subdiv';
43
-
44
- /**
45
- * @var string
46
- */
47
- protected $pathToProperties = '';
48
- /**
49
- * @var array
50
- */
51
- protected $mappingByCode = null;
52
- /**
53
- * @var array
54
- */
55
- protected $mappingById = null;
56
-
57
- /**
58
- * @param $amount
59
- * @param $code
60
- * @return string
61
- *
62
- */
63
- public function mapAmountToSub($amount, $code)
64
- {
65
- $subdiv = $this->initSubdivByCode($code);
66
- return number_format($amount * $subdiv, 0, '.', '');
67
- }
68
-
69
- /**
70
- * @param $subAmount
71
- * @param string $code
72
- * @return string
73
- * @throws Payone_Api_Exception_MappingNotFound
74
- */
75
- public function mapAmountToMain($subAmount, $code)
76
- {
77
- $subdiv = $this->initSubdivByCode($code);
78
- return number_format((float)$subAmount / $subdiv, 2, '.', '');
79
- }
80
-
81
- /**
82
- * @param string $code
83
- * @return string
84
- * @throws Payone_Api_Exception_MappingNotFound
85
- */
86
- public function getIdByCode($code)
87
- {
88
- $code = strtolower($code);
89
- if (!$this->hasMappingByCode($code, self::PROPERTY_NAME_ID)) {
90
- throw new Payone_Api_Exception_MappingNotFound();
91
- }
92
-
93
- $mapping = $this->getMappingByCode($code);
94
- return $mapping[self::PROPERTY_NAME_ID];
95
- }
96
-
97
- /**
98
- * @param $id
99
- * @return string
100
- * @throws Payone_Api_Exception_MappingNotFound
101
- */
102
- public function getCodeById($id)
103
- {
104
- $id = trim((string)$id);
105
- $mappingById = $this->getMappingById();
106
- if (!array_key_exists($id, $mappingById) || trim($mappingById[$id]) === '') {
107
- throw new Payone_Api_Exception_MappingNotFound();
108
- }
109
- return $mappingById[$id];
110
- }
111
-
112
- /**
113
- * @param string $code
114
- * @return string
115
- * @throws Payone_Api_Exception_MappingNotFound
116
- */
117
- public function getCurrencySymbolByCode($code)
118
- {
119
- $code = strtolower($code);
120
- if (!$this->hasMappingByCode($code, self::PROPERTY_NAME_SIGN)) {
121
- throw new Payone_Api_Exception_MappingNotFound();
122
- }
123
- $mapping = $this->getMappingByCode($code);
124
- return $mapping[self::PROPERTY_NAME_SIGN];
125
- }
126
-
127
- /**
128
- * @param $code
129
- * @return int
130
- * @throws Payone_Api_Exception_MappingNotFound
131
- */
132
- protected function initSubdivByCode($code)
133
- {
134
- $code = strtolower($code);
135
- if (!$this->hasMappingByCode($code, self::PROPERTY_NAME_SUBDIV)) {
136
- throw new Payone_Api_Exception_MappingNotFound();
137
- }
138
-
139
- $mapping = $this->getMappingByCode($code);
140
-
141
- $subdiv = $mapping[self::PROPERTY_NAME_SUBDIV];
142
- if (!is_numeric($subdiv)) {
143
- throw new Payone_Api_Exception_MappingNotFound();
144
- }
145
- $subdiv = (int)$subdiv;
146
- if ($subdiv === 0) {
147
- $subdiv = 1;
148
- }
149
- return $subdiv;
150
- }
151
-
152
- /**
153
- * @return array
154
- */
155
- protected function initCurrenciesRaw()
156
- {
157
- $pathToProperties = $this->getPathToProperties();
158
- $pathToProperties = $pathToProperties != '' ? $pathToProperties : self::PATH_CURRENCY_PROPERTIES_DEFAULT;
159
-
160
- $contents = file_get_contents($pathToProperties, true);
161
- $lines = explode(PHP_EOL, $contents);
162
- $currenciesRaw = array();
163
- foreach ($lines as $key => $line) {
164
- $lines[$key] = trim($line);
165
- if ($lines[$key] !== '') {
166
- $exploded = explode('=', $lines[$key]);
167
- if (count($exploded) !== 2) {
168
- continue;
169
- }
170
- $key = trim($exploded[0]);
171
- $value = trim($exploded[1]);
172
- $currenciesRaw[$key] = $value;
173
- }
174
- }
175
- return $currenciesRaw;
176
- }
177
-
178
- /**
179
- * @return array
180
- */
181
- protected function initMappingByCode()
182
- {
183
- $currenciesRaw = $this->initCurrenciesRaw();
184
-
185
- $mappingByCode = array();
186
- foreach ($currenciesRaw as $key => $data) {
187
- $explodedKey = explode('.', $key);
188
- if (count($explodedKey) != 3) {
189
- continue;
190
- }
191
- $type = $explodedKey[1];
192
- $typeCode = $explodedKey[2];
193
-
194
- /** ignore the assignment of id to code and type should be set */
195
- if (is_numeric($typeCode) or $type == '') {
196
- continue;
197
- }
198
-
199
- $typeCodeKey = $type;
200
- if ($type == self::PROPERTY_NAME_CODE) {
201
- $typeCodeKey = self::PROPERTY_NAME_ID;
202
- }
203
-
204
- if ($typeCodeKey == '') {
205
- continue;
206
- }
207
-
208
- if (!array_key_exists($typeCode, $mappingByCode)) {
209
- $mappingByCode[$typeCode] = array();
210
- }
211
-
212
- $mappingByCode[$typeCode][$typeCodeKey] = trim($data);
213
- }
214
- ksort($mappingByCode);
215
- return $mappingByCode;
216
- }
217
-
218
- /**
219
- * @param array $mappingByCode
220
- */
221
- public function setMappingByCode(array $mappingByCode)
222
- {
223
- $this->mappingByCode = $mappingByCode;
224
- }
225
-
226
- /**
227
- * @param string $code
228
- * @return array
229
- */
230
- public function getMappingByCode($code = '')
231
- {
232
- if ($this->mappingByCode === null) {
233
- $this->mappingByCode = $this->initMappingByCode();
234
- }
235
- if ($code != '') {
236
- return $this->mappingByCode[$code];
237
- }
238
- return $this->mappingByCode;
239
- }
240
-
241
- /**
242
- * @param $code
243
- * @param $innerArrayKey ('id' | 'sign' | 'subdiv')
244
- * @return bool
245
- */
246
- public function hasMappingByCode($code, $innerArrayKey)
247
- {
248
- $mappingByCode = $this->getMappingByCode();
249
- if (!array_key_exists($code, $mappingByCode)) {
250
- return false;
251
- }
252
- if (!array_key_exists($innerArrayKey, $mappingByCode[$code])) {
253
- return false;
254
- }
255
- if ($mappingByCode[$code][$innerArrayKey] === '') {
256
- return false;
257
- }
258
- return true;
259
- }
260
-
261
- /**
262
- * @return array
263
- *
264
- * mappingById is derived from mappingByCode
265
- */
266
- public function getMappingById()
267
- {
268
- if ($this->mappingById === null) {
269
- $this->mappingById = $this->initMappingById();
270
- }
271
- return $this->mappingById;
272
- }
273
-
274
- /**
275
- * @return array
276
- */
277
- protected function initMappingById()
278
- {
279
- $mappingByCode = $this->getMappingByCode();
280
- $mappingById = array();
281
- foreach ($mappingByCode as $code => $data) {
282
- if (!array_key_exists(self::PROPERTY_NAME_ID, $data)) {
283
- continue;
284
- }
285
- $id = $data[self::PROPERTY_NAME_ID];
286
- if ($id !== '') {
287
- $mappingById[$id] = $code;
288
- }
289
- }
290
- return $mappingById;
291
- }
292
-
293
- /**
294
- * @param string $pathToProperties
295
- */
296
- public function setPathToProperties($pathToProperties)
297
- {
298
- $this->pathToProperties = $pathToProperties;
299
- }
300
-
301
- /**
302
- * @return string
303
- */
304
- public function getPathToProperties()
305
- {
306
- return $this->pathToProperties;
307
- }
308
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Mapper_Currency extends Payone_Api_Mapper_Abstract
34
+ implements Payone_Api_Mapper_Currency_Interface
35
+ {
36
+ const PATH_CURRENCY_PROPERTIES_DEFAULT = 'currency.properties';
37
+
38
+ /** Property names from properties file */
39
+ const PROPERTY_NAME_ID = 'id';
40
+ const PROPERTY_NAME_SIGN = 'sign';
41
+ const PROPERTY_NAME_CODE = 'code';
42
+ const PROPERTY_NAME_SUBDIV = 'subdiv';
43
+
44
+ /**
45
+ * @var string
46
+ */
47
+ protected $pathToProperties = '';
48
+ /**
49
+ * @var array
50
+ */
51
+ protected $mappingByCode = null;
52
+ /**
53
+ * @var array
54
+ */
55
+ protected $mappingById = null;
56
+
57
+ /**
58
+ * @param $amount
59
+ * @param $code
60
+ * @return string
61
+ *
62
+ */
63
+ public function mapAmountToSub($amount, $code)
64
+ {
65
+ $subdiv = $this->initSubdivByCode($code);
66
+ return number_format($amount * $subdiv, 0, '.', '');
67
+ }
68
+
69
+ /**
70
+ * @param $subAmount
71
+ * @param string $code
72
+ * @return string
73
+ * @throws Payone_Api_Exception_MappingNotFound
74
+ */
75
+ public function mapAmountToMain($subAmount, $code)
76
+ {
77
+ $subdiv = $this->initSubdivByCode($code);
78
+ return number_format((float)$subAmount / $subdiv, 2, '.', '');
79
+ }
80
+
81
+ /**
82
+ * @param string $code
83
+ * @return string
84
+ * @throws Payone_Api_Exception_MappingNotFound
85
+ */
86
+ public function getIdByCode($code)
87
+ {
88
+ $code = strtolower($code);
89
+ if (!$this->hasMappingByCode($code, self::PROPERTY_NAME_ID)) {
90
+ throw new Payone_Api_Exception_MappingNotFound();
91
+ }
92
+
93
+ $mapping = $this->getMappingByCode($code);
94
+ return $mapping[self::PROPERTY_NAME_ID];
95
+ }
96
+
97
+ /**
98
+ * @param $id
99
+ * @return string
100
+ * @throws Payone_Api_Exception_MappingNotFound
101
+ */
102
+ public function getCodeById($id)
103
+ {
104
+ $id = trim((string)$id);
105
+ $mappingById = $this->getMappingById();
106
+ if (!array_key_exists($id, $mappingById) || trim($mappingById[$id]) === '') {
107
+ throw new Payone_Api_Exception_MappingNotFound();
108
+ }
109
+ return $mappingById[$id];
110
+ }
111
+
112
+ /**
113
+ * @param string $code
114
+ * @return string
115
+ * @throws Payone_Api_Exception_MappingNotFound
116
+ */
117
+ public function getCurrencySymbolByCode($code)
118
+ {
119
+ $code = strtolower($code);
120
+ if (!$this->hasMappingByCode($code, self::PROPERTY_NAME_SIGN)) {
121
+ throw new Payone_Api_Exception_MappingNotFound();
122
+ }
123
+ $mapping = $this->getMappingByCode($code);
124
+ return $mapping[self::PROPERTY_NAME_SIGN];
125
+ }
126
+
127
+ /**
128
+ * @param $code
129
+ * @return int
130
+ * @throws Payone_Api_Exception_MappingNotFound
131
+ */
132
+ protected function initSubdivByCode($code)
133
+ {
134
+ $code = strtolower($code);
135
+ if (!$this->hasMappingByCode($code, self::PROPERTY_NAME_SUBDIV)) {
136
+ throw new Payone_Api_Exception_MappingNotFound();
137
+ }
138
+
139
+ $mapping = $this->getMappingByCode($code);
140
+
141
+ $subdiv = $mapping[self::PROPERTY_NAME_SUBDIV];
142
+ if (!is_numeric($subdiv)) {
143
+ throw new Payone_Api_Exception_MappingNotFound();
144
+ }
145
+ $subdiv = (int)$subdiv;
146
+ if ($subdiv === 0) {
147
+ $subdiv = 1;
148
+ }
149
+ return $subdiv;
150
+ }
151
+
152
+ /**
153
+ * @return array
154
+ */
155
+ protected function initCurrenciesRaw()
156
+ {
157
+ $pathToProperties = $this->getPathToProperties();
158
+ $pathToProperties = $pathToProperties != '' ? $pathToProperties : self::PATH_CURRENCY_PROPERTIES_DEFAULT;
159
+
160
+ $contents = file_get_contents($pathToProperties, true);
161
+ $lines = explode(PHP_EOL, $contents);
162
+ $currenciesRaw = array();
163
+ foreach ($lines as $key => $line) {
164
+ $lines[$key] = trim($line);
165
+ if ($lines[$key] !== '') {
166
+ $exploded = explode('=', $lines[$key]);
167
+ if (count($exploded) !== 2) {
168
+ continue;
169
+ }
170
+ $key = trim($exploded[0]);
171
+ $value = trim($exploded[1]);
172
+ $currenciesRaw[$key] = $value;
173
+ }
174
+ }
175
+ return $currenciesRaw;
176
+ }
177
+
178
+ /**
179
+ * @return array
180
+ */
181
+ protected function initMappingByCode()
182
+ {
183
+ $currenciesRaw = $this->initCurrenciesRaw();
184
+
185
+ $mappingByCode = array();
186
+ foreach ($currenciesRaw as $key => $data) {
187
+ $explodedKey = explode('.', $key);
188
+ if (count($explodedKey) != 3) {
189
+ continue;
190
+ }
191
+ $type = $explodedKey[1];
192
+ $typeCode = $explodedKey[2];
193
+
194
+ /** ignore the assignment of id to code and type should be set */
195
+ if (is_numeric($typeCode) or $type == '') {
196
+ continue;
197
+ }
198
+
199
+ $typeCodeKey = $type;
200
+ if ($type == self::PROPERTY_NAME_CODE) {
201
+ $typeCodeKey = self::PROPERTY_NAME_ID;
202
+ }
203
+
204
+ if ($typeCodeKey == '') {
205
+ continue;
206
+ }
207
+
208
+ if (!array_key_exists($typeCode, $mappingByCode)) {
209
+ $mappingByCode[$typeCode] = array();
210
+ }
211
+
212
+ $mappingByCode[$typeCode][$typeCodeKey] = trim($data);
213
+ }
214
+ ksort($mappingByCode);
215
+ return $mappingByCode;
216
+ }
217
+
218
+ /**
219
+ * @param array $mappingByCode
220
+ */
221
+ public function setMappingByCode(array $mappingByCode)
222
+ {
223
+ $this->mappingByCode = $mappingByCode;
224
+ }
225
+
226
+ /**
227
+ * @param string $code
228
+ * @return array
229
+ */
230
+ public function getMappingByCode($code = '')
231
+ {
232
+ if ($this->mappingByCode === null) {
233
+ $this->mappingByCode = $this->initMappingByCode();
234
+ }
235
+ if ($code != '') {
236
+ return $this->mappingByCode[$code];
237
+ }
238
+ return $this->mappingByCode;
239
+ }
240
+
241
+ /**
242
+ * @param $code
243
+ * @param $innerArrayKey ('id' | 'sign' | 'subdiv')
244
+ * @return bool
245
+ */
246
+ public function hasMappingByCode($code, $innerArrayKey)
247
+ {
248
+ $mappingByCode = $this->getMappingByCode();
249
+ if (!array_key_exists($code, $mappingByCode)) {
250
+ return false;
251
+ }
252
+ if (!array_key_exists($innerArrayKey, $mappingByCode[$code])) {
253
+ return false;
254
+ }
255
+ if ($mappingByCode[$code][$innerArrayKey] === '') {
256
+ return false;
257
+ }
258
+ return true;
259
+ }
260
+
261
+ /**
262
+ * @return array
263
+ *
264
+ * mappingById is derived from mappingByCode
265
+ */
266
+ public function getMappingById()
267
+ {
268
+ if ($this->mappingById === null) {
269
+ $this->mappingById = $this->initMappingById();
270
+ }
271
+ return $this->mappingById;
272
+ }
273
+
274
+ /**
275
+ * @return array
276
+ */
277
+ protected function initMappingById()
278
+ {
279
+ $mappingByCode = $this->getMappingByCode();
280
+ $mappingById = array();
281
+ foreach ($mappingByCode as $code => $data) {
282
+ if (!array_key_exists(self::PROPERTY_NAME_ID, $data)) {
283
+ continue;
284
+ }
285
+ $id = $data[self::PROPERTY_NAME_ID];
286
+ if ($id !== '') {
287
+ $mappingById[$id] = $code;
288
+ }
289
+ }
290
+ return $mappingById;
291
+ }
292
+
293
+ /**
294
+ * @param string $pathToProperties
295
+ */
296
+ public function setPathToProperties($pathToProperties)
297
+ {
298
+ $this->pathToProperties = $pathToProperties;
299
+ }
300
+
301
+ /**
302
+ * @return string
303
+ */
304
+ public function getPathToProperties()
305
+ {
306
+ return $this->pathToProperties;
307
+ }
308
+ }
lib/Payone/Api/Mapper/Currency/Interface.php CHANGED
@@ -1,60 +1,60 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Mapper
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Mapper
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- interface Payone_Api_Mapper_Currency_Interface
34
- {
35
- public function mapAmountToSub($amount, $code);
36
-
37
- /**
38
- * @param $subAmount
39
- * @param string $code
40
- */
41
- public function mapAmountToMain($subAmount, $code);
42
-
43
- /**
44
- * @param string $code
45
- * @return string
46
- */
47
- public function getIdByCode($code);
48
-
49
- /**
50
- * @param $id
51
- * @return string
52
- */
53
- public function getCodeById($id);
54
-
55
- /**
56
- * @param string $code
57
- * @return string
58
- */
59
- public function getCurrencySymbolByCode($code);
60
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ interface Payone_Api_Mapper_Currency_Interface
34
+ {
35
+ public function mapAmountToSub($amount, $code);
36
+
37
+ /**
38
+ * @param $subAmount
39
+ * @param string $code
40
+ */
41
+ public function mapAmountToMain($subAmount, $code);
42
+
43
+ /**
44
+ * @param string $code
45
+ * @return string
46
+ */
47
+ public function getIdByCode($code);
48
+
49
+ /**
50
+ * @param $id
51
+ * @return string
52
+ */
53
+ public function getCodeById($id);
54
+
55
+ /**
56
+ * @param string $code
57
+ * @return string
58
+ */
59
+ public function getCurrencySymbolByCode($code);
60
+ }
lib/Payone/Api/Mapper/Request/Abstract.php CHANGED
@@ -1,56 +1,56 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Mapper
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Mapper
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- abstract class Payone_Api_Mapper_Request_Abstract
34
- extends Payone_Api_Mapper_Abstract
35
- {
36
- /**
37
- * @var Payone_Api_Mapper_Currency_Interface
38
- */
39
- protected $mapperCurrency = null;
40
-
41
- /**
42
- * @param Payone_Api_Mapper_Currency_Interface $mapperCurrency
43
- */
44
- public function setMapperCurrency(Payone_Api_Mapper_Currency_Interface $mapperCurrency)
45
- {
46
- $this->mapperCurrency = $mapperCurrency;
47
- }
48
-
49
- /**
50
- * @return Payone_Api_Mapper_Currency_Interface
51
- */
52
- public function getMapperCurrency()
53
- {
54
- return $this->mapperCurrency;
55
- }
56
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ abstract class Payone_Api_Mapper_Request_Abstract
34
+ extends Payone_Api_Mapper_Abstract
35
+ {
36
+ /**
37
+ * @var Payone_Api_Mapper_Currency_Interface
38
+ */
39
+ protected $mapperCurrency = null;
40
+
41
+ /**
42
+ * @param Payone_Api_Mapper_Currency_Interface $mapperCurrency
43
+ */
44
+ public function setMapperCurrency(Payone_Api_Mapper_Currency_Interface $mapperCurrency)
45
+ {
46
+ $this->mapperCurrency = $mapperCurrency;
47
+ }
48
+
49
+ /**
50
+ * @return Payone_Api_Mapper_Currency_Interface
51
+ */
52
+ public function getMapperCurrency()
53
+ {
54
+ return $this->mapperCurrency;
55
+ }
56
+ }
lib/Payone/Api/Mapper/Request/Interface.php CHANGED
@@ -1,41 +1,41 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Mapper
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Mapper
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- interface Payone_Api_Mapper_Request_Interface
34
- {
35
- /**
36
- * @param Payone_Api_Request_Interface $request
37
- * @return array
38
- */
39
- public function map(Payone_Api_Request_Interface $request);
40
-
41
  }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ interface Payone_Api_Mapper_Request_Interface
34
+ {
35
+ /**
36
+ * @param Payone_Api_Request_Interface $request
37
+ * @return array
38
+ */
39
+ public function map(Payone_Api_Request_Interface $request);
40
+
41
  }
lib/Payone/Api/Mapper/Request/Management/UpdateAccess.php CHANGED
@@ -1,95 +1,95 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Mapper
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Mapper
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Mapper_Request_Management_UpdateAccess
34
- extends Payone_Api_Mapper_Request_Abstract
35
- implements Payone_Api_Mapper_Request_Interface
36
- {
37
- public function map(Payone_Api_Request_Interface $request)
38
- {
39
- /** @var $request Payone_Api_Request_UpdateAccess */
40
- $this->mapAmount($request);
41
- $this->mapInvoicingData($request);
42
-
43
- return $request->toArray();
44
- }
45
-
46
- /**
47
- * @param Payone_Api_Request_Interface $request
48
- * @return bool
49
- */
50
- protected function mapAmount(Payone_Api_Request_Interface $request)
51
- {
52
- /** @var $request Payone_Api_Request_UpdateAccess */
53
- $currency = $request->getCurrency();
54
-
55
- $amountTrail = $request->getAmountTrail();
56
- $mappedAmountTrail = $this->getMapperCurrency()->mapAmountToSub($amountTrail, $currency);
57
- $request->setAmountTrail($mappedAmountTrail);
58
-
59
- $amountRecurring = $request->getAmountRecurring();
60
- $mappedAmountRecurring = $this->getMapperCurrency()->mapAmountToSub($amountRecurring, $currency);
61
- $request->setAmountRecurring($mappedAmountRecurring);
62
-
63
- return true;
64
- }
65
-
66
- /**
67
- * @param Payone_Api_Request_Interface $request
68
- * @return bool
69
- */
70
- protected function mapInvoicingData(Payone_Api_Request_Interface $request)
71
- {
72
- /** @var $invoicing Payone_Api_Request_Parameter_Invoicing_Transaction */
73
- /** @var $request Payone_Api_Request_UpdateAccess */
74
- $invoicing = $request->getInvoicing();
75
- if ($invoicing == null) {
76
- return false;
77
- }
78
- if ($invoicing->hasItems()) {
79
- $currency = $request->getCurrency();
80
- $invoicingItems = $invoicing->getItems();
81
- foreach ($invoicingItems as $item) {
82
- /** @var $item Payone_Api_Request_Parameter_Invoicing_Access_Item */
83
- $priceTrail = $item->getPrTrail();
84
- $mappedPriceTrail = $this->getMapperCurrency()->mapAmountToSub($priceTrail, $currency);
85
- $item->setPrTrail($mappedPriceTrail);
86
-
87
- $priceRecurring = $item->getPrRecurring();
88
- $mappedPriceRecurring = $this->getMapperCurrency()->mapAmountToSub($priceRecurring, $currency);
89
- $item->setPrRecurring($mappedPriceRecurring);
90
- }
91
- }
92
- return true;
93
- }
94
-
95
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Mapper_Request_Management_UpdateAccess
34
+ extends Payone_Api_Mapper_Request_Abstract
35
+ implements Payone_Api_Mapper_Request_Interface
36
+ {
37
+ public function map(Payone_Api_Request_Interface $request)
38
+ {
39
+ /** @var $request Payone_Api_Request_UpdateAccess */
40
+ $this->mapAmount($request);
41
+ $this->mapInvoicingData($request);
42
+
43
+ return $request->toArray();
44
+ }
45
+
46
+ /**
47
+ * @param Payone_Api_Request_Interface $request
48
+ * @return bool
49
+ */
50
+ protected function mapAmount(Payone_Api_Request_Interface $request)
51
+ {
52
+ /** @var $request Payone_Api_Request_UpdateAccess */
53
+ $currency = $request->getCurrency();
54
+
55
+ $amountTrail = $request->getAmountTrail();
56
+ $mappedAmountTrail = $this->getMapperCurrency()->mapAmountToSub($amountTrail, $currency);
57
+ $request->setAmountTrail($mappedAmountTrail);
58
+
59
+ $amountRecurring = $request->getAmountRecurring();
60
+ $mappedAmountRecurring = $this->getMapperCurrency()->mapAmountToSub($amountRecurring, $currency);
61
+ $request->setAmountRecurring($mappedAmountRecurring);
62
+
63
+ return true;
64
+ }
65
+
66
+ /**
67
+ * @param Payone_Api_Request_Interface $request
68
+ * @return bool
69
+ */
70
+ protected function mapInvoicingData(Payone_Api_Request_Interface $request)
71
+ {
72
+ /** @var $invoicing Payone_Api_Request_Parameter_Invoicing_Transaction */
73
+ /** @var $request Payone_Api_Request_UpdateAccess */
74
+ $invoicing = $request->getInvoicing();
75
+ if ($invoicing == null) {
76
+ return false;
77
+ }
78
+ if ($invoicing->hasItems()) {
79
+ $currency = $request->getCurrency();
80
+ $invoicingItems = $invoicing->getItems();
81
+ foreach ($invoicingItems as $item) {
82
+ /** @var $item Payone_Api_Request_Parameter_Invoicing_Access_Item */
83
+ $priceTrail = $item->getPrTrail();
84
+ $mappedPriceTrail = $this->getMapperCurrency()->mapAmountToSub($priceTrail, $currency);
85
+ $item->setPrTrail($mappedPriceTrail);
86
+
87
+ $priceRecurring = $item->getPrRecurring();
88
+ $mappedPriceRecurring = $this->getMapperCurrency()->mapAmountToSub($priceRecurring, $currency);
89
+ $item->setPrRecurring($mappedPriceRecurring);
90
+ }
91
+ }
92
+ return true;
93
+ }
94
+
95
+ }
lib/Payone/Api/Mapper/Request/Payment/Abstract.php CHANGED
@@ -1,80 +1,80 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Mapper
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Mapper
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- abstract class Payone_Api_Mapper_Request_Payment_Abstract
34
- extends Payone_Api_Mapper_Request_Abstract
35
- implements Payone_Api_Mapper_Request_Interface
36
- {
37
- /**
38
- * @param Payone_Api_Request_Interface $request
39
- * @return bool
40
- */
41
- protected function mapAmount(Payone_Api_Request_Interface $request)
42
- {
43
- /** @var $request Payone_Api_Request_Authorization */
44
- $amount = $request->getAmount();
45
- $currency = $request->getCurrency();
46
-
47
- $mappedAmount = $this->getMapperCurrency()->mapAmountToSub($amount, $currency);
48
-
49
- $request->setAmount($mappedAmount);
50
-
51
- return true;
52
- }
53
-
54
- /**
55
- * @todo we should introduce an Request_Payment_Interface
56
- *
57
- * @param Payone_Api_Request_Interface $request
58
- * @return bool
59
- */
60
- protected function mapInvoicingData(Payone_Api_Request_Interface $request)
61
- {
62
- /** @var $invoicing Payone_Api_Request_Parameter_Invoicing_Transaction */
63
- $invoicing = $request->getInvoicing();
64
- if ($invoicing == null) {
65
- return false;
66
- }
67
- if ($invoicing->hasItems()) {
68
- /** @var $request Payone_Api_Request_Authorization */
69
- $currency = $request->getCurrency();
70
- $invoicingItems = $invoicing->getItems();
71
- foreach ($invoicingItems as $item) {
72
- /** @var $item Payone_Api_Request_Parameter_Invoicing_Item */
73
- $price = $item->getPr();
74
- $mappedPrice = $this->getMapperCurrency()->mapAmountToSub($price, $currency);
75
- $item->setPr($mappedPrice);
76
- }
77
- }
78
- return true;
79
- }
80
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ abstract class Payone_Api_Mapper_Request_Payment_Abstract
34
+ extends Payone_Api_Mapper_Request_Abstract
35
+ implements Payone_Api_Mapper_Request_Interface
36
+ {
37
+ /**
38
+ * @param Payone_Api_Request_Interface $request
39
+ * @return bool
40
+ */
41
+ protected function mapAmount(Payone_Api_Request_Interface $request)
42
+ {
43
+ /** @var $request Payone_Api_Request_Authorization */
44
+ $amount = $request->getAmount();
45
+ $currency = $request->getCurrency();
46
+
47
+ $mappedAmount = $this->getMapperCurrency()->mapAmountToSub($amount, $currency);
48
+
49
+ $request->setAmount($mappedAmount);
50
+
51
+ return true;
52
+ }
53
+
54
+ /**
55
+ * @todo we should introduce an Request_Payment_Interface
56
+ *
57
+ * @param Payone_Api_Request_Interface $request
58
+ * @return bool
59
+ */
60
+ protected function mapInvoicingData(Payone_Api_Request_Interface $request)
61
+ {
62
+ /** @var $invoicing Payone_Api_Request_Parameter_Invoicing_Transaction */
63
+ $invoicing = $request->getInvoicing();
64
+ if ($invoicing == null) {
65
+ return false;
66
+ }
67
+ if ($invoicing->hasItems()) {
68
+ /** @var $request Payone_Api_Request_Authorization */
69
+ $currency = $request->getCurrency();
70
+ $invoicingItems = $invoicing->getItems();
71
+ foreach ($invoicingItems as $item) {
72
+ /** @var $item Payone_Api_Request_Parameter_Invoicing_Item */
73
+ $price = $item->getPr();
74
+ $mappedPrice = $this->getMapperCurrency()->mapAmountToSub($price, $currency);
75
+ $item->setPr($mappedPrice);
76
+ }
77
+ }
78
+ return true;
79
+ }
80
+ }
lib/Payone/Api/Mapper/Request/Payment/Authorization.php CHANGED
@@ -1,46 +1,46 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Mapper
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Mapper
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Mapper_Request_Payment_Authorization
34
- extends Payone_Api_Mapper_Request_Payment_Abstract
35
- implements Payone_Api_Mapper_Request_Interface
36
- {
37
- public function map(Payone_Api_Request_Interface $request)
38
- {
39
- /** @var $request Payone_Api_Request_Authorization */
40
- $this->mapAmount($request);
41
- $this->mapInvoicingData($request);
42
-
43
- return $request->toArray();
44
- }
45
-
46
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Mapper_Request_Payment_Authorization
34
+ extends Payone_Api_Mapper_Request_Payment_Abstract
35
+ implements Payone_Api_Mapper_Request_Interface
36
+ {
37
+ public function map(Payone_Api_Request_Interface $request)
38
+ {
39
+ /** @var $request Payone_Api_Request_Authorization */
40
+ $this->mapAmount($request);
41
+ $this->mapInvoicingData($request);
42
+
43
+ return $request->toArray();
44
+ }
45
+
46
+ }
lib/Payone/Api/Mapper/Request/Payment/Capture.php CHANGED
@@ -1,46 +1,46 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Mapper
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Mapper
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Mapper_Request_Payment_Capture
34
- extends Payone_Api_Mapper_Request_Payment_Abstract
35
- implements Payone_Api_Mapper_Request_Interface
36
- {
37
- public function map(Payone_Api_Request_Interface $request)
38
- {
39
- /** @var $request Payone_Api_Request_Capture */
40
- $this->mapAmount($request);
41
- $this->mapInvoicingData($request);
42
-
43
- return $request->toArray();
44
- }
45
-
46
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Mapper_Request_Payment_Capture
34
+ extends Payone_Api_Mapper_Request_Payment_Abstract
35
+ implements Payone_Api_Mapper_Request_Interface
36
+ {
37
+ public function map(Payone_Api_Request_Interface $request)
38
+ {
39
+ /** @var $request Payone_Api_Request_Capture */
40
+ $this->mapAmount($request);
41
+ $this->mapInvoicingData($request);
42
+
43
+ return $request->toArray();
44
+ }
45
+
46
+ }
lib/Payone/Api/Mapper/Request/Payment/CreateAccess.php CHANGED
@@ -1,96 +1,96 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Mapper
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Mapper
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Mapper_Request_Payment_CreateAccess
34
- extends Payone_Api_Mapper_Request_Payment_Abstract
35
- implements Payone_Api_Mapper_Request_Interface
36
- {
37
- public function map(Payone_Api_Request_Interface $request)
38
- {
39
- /** @var $request Payone_Api_Request_CreateAccess */
40
- $this->mapAmount($request);
41
- $this->mapInvoicingData($request);
42
-
43
- return $request->toArray();
44
- }
45
-
46
- /**
47
- * @param Payone_Api_Request_Interface $request
48
- * @return bool
49
- */
50
- protected function mapAmount(Payone_Api_Request_Interface $request)
51
- {
52
- /** @var $request Payone_Api_Request_CreateAccess */
53
- $currency = $request->getCurrency();
54
-
55
- $amountTrail = $request->getAmountTrail();
56
- $mappedAmountTrail = $this->getMapperCurrency()->mapAmountToSub($amountTrail, $currency);
57
- $request->setAmountTrail($mappedAmountTrail);
58
-
59
- $amountRecurring = $request->getAmountRecurring();
60
- $mappedAmountRecurring = $this->getMapperCurrency()->mapAmountToSub($amountRecurring, $currency);
61
- $request->setAmountRecurring($mappedAmountRecurring);
62
-
63
- return true;
64
- }
65
-
66
- /**
67
- *
68
- * @param Payone_Api_Request_Interface $request
69
- * @return bool
70
- */
71
- protected function mapInvoicingData(Payone_Api_Request_Interface $request)
72
- {
73
- /** @var $invoicing Payone_Api_Request_Parameter_Invoicing_Transaction */
74
- /** @var $request Payone_Api_Request_CreateAccess */
75
- $invoicing = $request->getInvoicing();
76
- if ($invoicing == null) {
77
- return false;
78
- }
79
- if ($invoicing->hasItems()) {
80
- $currency = $request->getCurrency();
81
- $invoicingItems = $invoicing->getItems();
82
- foreach ($invoicingItems as $item) {
83
- /** @var $item Payone_Api_Request_Parameter_Invoicing_Access_Item */
84
- $priceTrail = $item->getPrTrail();
85
- $mappedPriceTrail = $this->getMapperCurrency()->mapAmountToSub($priceTrail, $currency);
86
- $item->setPrTrail($mappedPriceTrail);
87
-
88
- $priceRecurring = $item->getPrRecurring();
89
- $mappedPriceRecurring = $this->getMapperCurrency()->mapAmountToSub($priceRecurring, $currency);
90
- $item->setPrRecurring($mappedPriceRecurring);
91
- }
92
- }
93
- return true;
94
- }
95
-
96
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Mapper_Request_Payment_CreateAccess
34
+ extends Payone_Api_Mapper_Request_Payment_Abstract
35
+ implements Payone_Api_Mapper_Request_Interface
36
+ {
37
+ public function map(Payone_Api_Request_Interface $request)
38
+ {
39
+ /** @var $request Payone_Api_Request_CreateAccess */
40
+ $this->mapAmount($request);
41
+ $this->mapInvoicingData($request);
42
+
43
+ return $request->toArray();
44
+ }
45
+
46
+ /**
47
+ * @param Payone_Api_Request_Interface $request
48
+ * @return bool
49
+ */
50
+ protected function mapAmount(Payone_Api_Request_Interface $request)
51
+ {
52
+ /** @var $request Payone_Api_Request_CreateAccess */
53
+ $currency = $request->getCurrency();
54
+
55
+ $amountTrail = $request->getAmountTrail();
56
+ $mappedAmountTrail = $this->getMapperCurrency()->mapAmountToSub($amountTrail, $currency);
57
+ $request->setAmountTrail($mappedAmountTrail);
58
+
59
+ $amountRecurring = $request->getAmountRecurring();
60
+ $mappedAmountRecurring = $this->getMapperCurrency()->mapAmountToSub($amountRecurring, $currency);
61
+ $request->setAmountRecurring($mappedAmountRecurring);
62
+
63
+ return true;
64
+ }
65
+
66
+ /**
67
+ *
68
+ * @param Payone_Api_Request_Interface $request
69
+ * @return bool
70
+ */
71
+ protected function mapInvoicingData(Payone_Api_Request_Interface $request)
72
+ {
73
+ /** @var $invoicing Payone_Api_Request_Parameter_Invoicing_Transaction */
74
+ /** @var $request Payone_Api_Request_CreateAccess */
75
+ $invoicing = $request->getInvoicing();
76
+ if ($invoicing == null) {
77
+ return false;
78
+ }
79
+ if ($invoicing->hasItems()) {
80
+ $currency = $request->getCurrency();
81
+ $invoicingItems = $invoicing->getItems();
82
+ foreach ($invoicingItems as $item) {
83
+ /** @var $item Payone_Api_Request_Parameter_Invoicing_Access_Item */
84
+ $priceTrail = $item->getPrTrail();
85
+ $mappedPriceTrail = $this->getMapperCurrency()->mapAmountToSub($priceTrail, $currency);
86
+ $item->setPrTrail($mappedPriceTrail);
87
+
88
+ $priceRecurring = $item->getPrRecurring();
89
+ $mappedPriceRecurring = $this->getMapperCurrency()->mapAmountToSub($priceRecurring, $currency);
90
+ $item->setPrRecurring($mappedPriceRecurring);
91
+ }
92
+ }
93
+ return true;
94
+ }
95
+
96
+ }
lib/Payone/Api/Mapper/Request/Payment/Debit.php CHANGED
@@ -1,46 +1,46 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Mapper
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Mapper
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Mapper_Request_Payment_Debit
34
- extends Payone_Api_Mapper_Request_Payment_Abstract
35
- implements Payone_Api_Mapper_Request_Interface
36
- {
37
- public function map(Payone_Api_Request_Interface $request)
38
- {
39
- /** @var $request Payone_Api_Request_Debit */
40
- $this->mapAmount($request);
41
- $this->mapInvoicingData($request);
42
-
43
- return $request->toArray();
44
- }
45
-
46
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Mapper_Request_Payment_Debit
34
+ extends Payone_Api_Mapper_Request_Payment_Abstract
35
+ implements Payone_Api_Mapper_Request_Interface
36
+ {
37
+ public function map(Payone_Api_Request_Interface $request)
38
+ {
39
+ /** @var $request Payone_Api_Request_Debit */
40
+ $this->mapAmount($request);
41
+ $this->mapInvoicingData($request);
42
+
43
+ return $request->toArray();
44
+ }
45
+
46
+ }
lib/Payone/Api/Mapper/Request/Payment/Preauthorization.php CHANGED
@@ -1,45 +1,45 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Mapper
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Mapper
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Mapper_Request_Payment_Preauthorization
34
- extends Payone_Api_Mapper_Request_Payment_Abstract
35
- implements Payone_Api_Mapper_Request_Interface
36
- {
37
- public function map(Payone_Api_Request_Interface $request)
38
- {
39
- /** @var $request Payone_Api_Request_Preauthorization */
40
- $this->mapAmount($request);
41
- $this->mapInvoicingData($request);
42
-
43
- return $request->toArray();
44
- }
45
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Mapper_Request_Payment_Preauthorization
34
+ extends Payone_Api_Mapper_Request_Payment_Abstract
35
+ implements Payone_Api_Mapper_Request_Interface
36
+ {
37
+ public function map(Payone_Api_Request_Interface $request)
38
+ {
39
+ /** @var $request Payone_Api_Request_Preauthorization */
40
+ $this->mapAmount($request);
41
+ $this->mapInvoicingData($request);
42
+
43
+ return $request->toArray();
44
+ }
45
+ }
lib/Payone/Api/Mapper/Request/Payment/Refund.php CHANGED
@@ -1,46 +1,46 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Mapper
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Mapper
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Mapper_Request_Payment_Refund
34
- extends Payone_Api_Mapper_Request_Payment_Abstract
35
- implements Payone_Api_Mapper_Request_Interface
36
- {
37
- public function map(Payone_Api_Request_Interface $request)
38
- {
39
- /** @var $request Payone_Api_Request_Refund */
40
- $this->mapAmount($request);
41
- $this->mapInvoicingData($request);
42
-
43
- return $request->toArray();
44
- }
45
-
46
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Mapper_Request_Payment_Refund
34
+ extends Payone_Api_Mapper_Request_Payment_Abstract
35
+ implements Payone_Api_Mapper_Request_Interface
36
+ {
37
+ public function map(Payone_Api_Request_Interface $request)
38
+ {
39
+ /** @var $request Payone_Api_Request_Refund */
40
+ $this->mapAmount($request);
41
+ $this->mapInvoicingData($request);
42
+
43
+ return $request->toArray();
44
+ }
45
+
46
+ }
lib/Payone/Api/Mapper/Request/Payment/Vauthorization.php CHANGED
@@ -1,46 +1,46 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Mapper
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Mapper
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Mapper_Request_Payment_Vauthorization
34
- extends Payone_Api_Mapper_Request_Payment_Abstract
35
- implements Payone_Api_Mapper_Request_Interface
36
- {
37
- public function map(Payone_Api_Request_Interface $request)
38
- {
39
- /** @var $request Payone_Api_Request_Vauthorization */
40
- $this->mapAmount($request);
41
- $this->mapInvoicingData($request);
42
-
43
- return $request->toArray();
44
- }
45
-
46
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Mapper_Request_Payment_Vauthorization
34
+ extends Payone_Api_Mapper_Request_Payment_Abstract
35
+ implements Payone_Api_Mapper_Request_Interface
36
+ {
37
+ public function map(Payone_Api_Request_Interface $request)
38
+ {
39
+ /** @var $request Payone_Api_Request_Vauthorization */
40
+ $this->mapAmount($request);
41
+ $this->mapInvoicingData($request);
42
+
43
+ return $request->toArray();
44
+ }
45
+
46
+ }
lib/Payone/Api/Mapper/Response/3dsCheck.php CHANGED
@@ -1,65 +1,65 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Mapper
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Mapper
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Mapper_Response_3dsCheck
34
- extends Payone_Api_Mapper_Response_Abstract
35
- implements Payone_Api_Mapper_Response_Interface
36
- {
37
- /**
38
- * @param array $params
39
- * @return Payone_Api_Response_3dsCheck_Enrolled|Payone_Api_Response_3dsCheck_Invalid|Payone_Api_Response_3dsCheck_Valid|Payone_Api_Response_Error
40
- * @throws Payone_Api_Exception_UnknownStatus
41
- */
42
- public function map(array $params)
43
- {
44
- $this->setParams($params);
45
-
46
- if ($this->isValid()) {
47
- $response = new Payone_Api_Response_3dsCheck_Valid($params);
48
- }
49
- elseif ($this->isEnrolled()) {
50
- $response = new Payone_Api_Response_3dsCheck_Enrolled($params);
51
- }
52
- elseif ($this->isInvalid()) {
53
- $response = new Payone_Api_Response_3dsCheck_Invalid($params);
54
- }
55
- elseif ($this->isError()) {
56
- $response = new Payone_Api_Response_Error($params);
57
- }
58
- else {
59
- throw new Payone_Api_Exception_UnknownStatus();
60
- }
61
-
62
- return $response;
63
- }
64
-
65
  }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Mapper_Response_3dsCheck
34
+ extends Payone_Api_Mapper_Response_Abstract
35
+ implements Payone_Api_Mapper_Response_Interface
36
+ {
37
+ /**
38
+ * @param array $params
39
+ * @return Payone_Api_Response_3dsCheck_Enrolled|Payone_Api_Response_3dsCheck_Invalid|Payone_Api_Response_3dsCheck_Valid|Payone_Api_Response_Error
40
+ * @throws Payone_Api_Exception_UnknownStatus
41
+ */
42
+ public function map(array $params)
43
+ {
44
+ $this->setParams($params);
45
+
46
+ if ($this->isValid()) {
47
+ $response = new Payone_Api_Response_3dsCheck_Valid($params);
48
+ }
49
+ elseif ($this->isEnrolled()) {
50
+ $response = new Payone_Api_Response_3dsCheck_Enrolled($params);
51
+ }
52
+ elseif ($this->isInvalid()) {
53
+ $response = new Payone_Api_Response_3dsCheck_Invalid($params);
54
+ }
55
+ elseif ($this->isError()) {
56
+ $response = new Payone_Api_Response_Error($params);
57
+ }
58
+ else {
59
+ throw new Payone_Api_Exception_UnknownStatus();
60
+ }
61
+
62
+ return $response;
63
+ }
64
+
65
  }
lib/Payone/Api/Mapper/Response/Abstract.php CHANGED
@@ -1,167 +1,167 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Mapper
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Mapper
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- abstract class Payone_Api_Mapper_Response_Abstract extends Payone_Api_Mapper_Abstract
34
- {
35
- // @todo hs: Introduce constants for the various status´ , where? Settings?
36
- /**
37
- * @var array
38
- */
39
- protected $params = null;
40
-
41
- /**
42
- * @return bool
43
- */
44
- protected function isApproved()
45
- {
46
- $status = $this->getParam('status');
47
- if ($status === 'APPROVED') {
48
- return true;
49
- }
50
- return false;
51
- }
52
-
53
- /**
54
- * @return bool
55
- */
56
- protected function isRedirect()
57
- {
58
- $status = $this->getParam('status');
59
- if ($status === 'REDIRECT') {
60
- return true;
61
- }
62
- return false;
63
- }
64
-
65
- /**
66
- * @return bool
67
- */
68
- protected function isValid()
69
- {
70
- $status = $this->getParam('status');
71
- if ($status === 'VALID') {
72
- return true;
73
- }
74
- return false;
75
- }
76
-
77
- /**
78
- * @return bool
79
- */
80
- protected function isInvalid()
81
- {
82
- $status = $this->getParam('status');
83
- if ($status === 'INVALID') {
84
- return true;
85
- }
86
- return false;
87
- }
88
-
89
- /**
90
- * @return bool
91
- */
92
- protected function isBlocked()
93
- {
94
- $status = $this->getParam('status');
95
- if ($status === 'BLOCKED') {
96
- return true;
97
- }
98
- return false;
99
- }
100
-
101
- /**
102
- * @return bool
103
- */
104
- protected function isEnrolled()
105
- {
106
- $status = $this->getParam('status');
107
- if ($status === 'ENROLLED') {
108
- return true;
109
- }
110
- return false;
111
- }
112
-
113
- /**
114
- * @return bool
115
- */
116
- protected function isError()
117
- {
118
- $status = $this->getParam('status');
119
- if ($status === 'ERROR') {
120
- return true;
121
- }
122
- return false;
123
- }
124
-
125
- /**
126
- * @return bool
127
- */
128
- protected function isOk()
129
- {
130
- $status = $this->getParam('status');
131
- if ($status === 'OK') {
132
- return true;
133
- }
134
- return false;
135
- }
136
-
137
- /**
138
- * @param array $responseRaw
139
- */
140
- protected function setParams($responseRaw)
141
- {
142
- $this->params = $responseRaw;
143
- }
144
-
145
- /**
146
- * @return array
147
- */
148
- protected function getParams()
149
- {
150
- return $this->params;
151
- }
152
-
153
- /**
154
- * @param $key
155
- * @return mixed
156
- */
157
- protected function getParam($key)
158
- {
159
- if (is_array($this->params) and array_key_exists($key, $this->params)) {
160
- return $this->params[$key];
161
- }
162
- else
163
- {
164
- return null;
165
- }
166
- }
167
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ abstract class Payone_Api_Mapper_Response_Abstract extends Payone_Api_Mapper_Abstract
34
+ {
35
+ // @todo hs: Introduce constants for the various status´ , where? Settings?
36
+ /**
37
+ * @var array
38
+ */
39
+ protected $params = null;
40
+
41
+ /**
42
+ * @return bool
43
+ */
44
+ protected function isApproved()
45
+ {
46
+ $status = $this->getParam('status');
47
+ if ($status === 'APPROVED') {
48
+ return true;
49
+ }
50
+ return false;
51
+ }
52
+
53
+ /**
54
+ * @return bool
55
+ */
56
+ protected function isRedirect()
57
+ {
58
+ $status = $this->getParam('status');
59
+ if ($status === 'REDIRECT') {
60
+ return true;
61
+ }
62
+ return false;
63
+ }
64
+
65
+ /**
66
+ * @return bool
67
+ */
68
+ protected function isValid()
69
+ {
70
+ $status = $this->getParam('status');
71
+ if ($status === 'VALID') {
72
+ return true;
73
+ }
74
+ return false;
75
+ }
76
+
77
+ /**
78
+ * @return bool
79
+ */
80
+ protected function isInvalid()
81
+ {
82
+ $status = $this->getParam('status');
83
+ if ($status === 'INVALID') {
84
+ return true;
85
+ }
86
+ return false;
87
+ }
88
+
89
+ /**
90
+ * @return bool
91
+ */
92
+ protected function isBlocked()
93
+ {
94
+ $status = $this->getParam('status');
95
+ if ($status === 'BLOCKED') {
96
+ return true;
97
+ }
98
+ return false;
99
+ }
100
+
101
+ /**
102
+ * @return bool
103
+ */
104
+ protected function isEnrolled()
105
+ {
106
+ $status = $this->getParam('status');
107
+ if ($status === 'ENROLLED') {
108
+ return true;
109
+ }
110
+ return false;
111
+ }
112
+
113
+ /**
114
+ * @return bool
115
+ */
116
+ protected function isError()
117
+ {
118
+ $status = $this->getParam('status');
119
+ if ($status === 'ERROR') {
120
+ return true;
121
+ }
122
+ return false;
123
+ }
124
+
125
+ /**
126
+ * @return bool
127
+ */
128
+ protected function isOk()
129
+ {
130
+ $status = $this->getParam('status');
131
+ if ($status === 'OK') {
132
+ return true;
133
+ }
134
+ return false;
135
+ }
136
+
137
+ /**
138
+ * @param array $responseRaw
139
+ */
140
+ protected function setParams($responseRaw)
141
+ {
142
+ $this->params = $responseRaw;
143
+ }
144
+
145
+ /**
146
+ * @return array
147
+ */
148
+ protected function getParams()
149
+ {
150
+ return $this->params;
151
+ }
152
+
153
+ /**
154
+ * @param $key
155
+ * @return mixed
156
+ */
157
+ protected function getParam($key)
158
+ {
159
+ if (is_array($this->params) and array_key_exists($key, $this->params)) {
160
+ return $this->params[$key];
161
+ }
162
+ else
163
+ {
164
+ return null;
165
+ }
166
+ }
167
+ }
lib/Payone/Api/Mapper/Response/AddressCheck.php CHANGED
@@ -1,62 +1,62 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Mapper
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Mapper
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Mapper_Response_AddressCheck
34
- extends Payone_Api_Mapper_Response_Abstract
35
- implements Payone_Api_Mapper_Response_Interface
36
- {
37
- /**
38
- * @param array $params
39
- * @return Payone_Api_Response_AddressCheck_Invalid|Payone_Api_Response_AddressCheck_Valid|Payone_Api_Response_Error
40
- * @throws Payone_Api_Exception_UnknownStatus
41
- */
42
- public function map(array $params)
43
- {
44
- $this->setParams($params);
45
-
46
- if ($this->isValid()) {
47
- $response = new Payone_Api_Response_AddressCheck_Valid($params);
48
- }
49
- elseif ($this->isInvalid()) {
50
- $response = new Payone_Api_Response_AddressCheck_Invalid($params);
51
- }
52
- elseif ($this->isError()) {
53
- $response = new Payone_Api_Response_Error($params);
54
- }
55
- else {
56
- throw new Payone_Api_Exception_UnknownStatus();
57
- }
58
-
59
- return $response;
60
- }
61
-
62
  }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Mapper_Response_AddressCheck
34
+ extends Payone_Api_Mapper_Response_Abstract
35
+ implements Payone_Api_Mapper_Response_Interface
36
+ {
37
+ /**
38
+ * @param array $params
39
+ * @return Payone_Api_Response_AddressCheck_Invalid|Payone_Api_Response_AddressCheck_Valid|Payone_Api_Response_Error
40
+ * @throws Payone_Api_Exception_UnknownStatus
41
+ */
42
+ public function map(array $params)
43
+ {
44
+ $this->setParams($params);
45
+
46
+ if ($this->isValid()) {
47
+ $response = new Payone_Api_Response_AddressCheck_Valid($params);
48
+ }
49
+ elseif ($this->isInvalid()) {
50
+ $response = new Payone_Api_Response_AddressCheck_Invalid($params);
51
+ }
52
+ elseif ($this->isError()) {
53
+ $response = new Payone_Api_Response_Error($params);
54
+ }
55
+ else {
56
+ throw new Payone_Api_Exception_UnknownStatus();
57
+ }
58
+
59
+ return $response;
60
+ }
61
+
62
  }
lib/Payone/Api/Mapper/Response/Authorization.php CHANGED
@@ -1,63 +1,63 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Mapper
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Mapper
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Mapper_Response_Authorization
34
- extends Payone_Api_Mapper_Response_Abstract
35
- implements Payone_Api_Mapper_Response_Interface
36
- {
37
- /**
38
- * @param array $params
39
- *
40
- * @return Payone_Api_Response_Authorization_Approved|Payone_Api_Response_Authorization_Redirect|Payone_Api_Response_Error
41
- * @throws Payone_Api_Exception_UnknownStatus
42
- */
43
- public function map(array $params)
44
- {
45
- $this->setParams($params);
46
-
47
- if ($this->isApproved()) {
48
- $response = new Payone_Api_Response_Authorization_Approved($params);
49
- }
50
- elseif ($this->isRedirect()) {
51
- $response = new Payone_Api_Response_Authorization_Redirect($params);
52
- }
53
- elseif ($this->isError()) {
54
- $response = new Payone_Api_Response_Error($params);
55
- }
56
- else {
57
- throw new Payone_Api_Exception_UnknownStatus();
58
- }
59
-
60
- return $response;
61
- }
62
-
63
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Mapper_Response_Authorization
34
+ extends Payone_Api_Mapper_Response_Abstract
35
+ implements Payone_Api_Mapper_Response_Interface
36
+ {
37
+ /**
38
+ * @param array $params
39
+ *
40
+ * @return Payone_Api_Response_Authorization_Approved|Payone_Api_Response_Authorization_Redirect|Payone_Api_Response_Error
41
+ * @throws Payone_Api_Exception_UnknownStatus
42
+ */
43
+ public function map(array $params)
44
+ {
45
+ $this->setParams($params);
46
+
47
+ if ($this->isApproved()) {
48
+ $response = new Payone_Api_Response_Authorization_Approved($params);
49
+ }
50
+ elseif ($this->isRedirect()) {
51
+ $response = new Payone_Api_Response_Authorization_Redirect($params);
52
+ }
53
+ elseif ($this->isError()) {
54
+ $response = new Payone_Api_Response_Error($params);
55
+ }
56
+ else {
57
+ throw new Payone_Api_Exception_UnknownStatus();
58
+ }
59
+
60
+ return $response;
61
+ }
62
+
63
+ }
lib/Payone/Api/Mapper/Response/BankAccountCheck.php CHANGED
@@ -1,66 +1,66 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Mapper
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Mapper
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Mapper_Response_BankAccountCheck
34
- extends Payone_Api_Mapper_Response_Abstract
35
- implements Payone_Api_Mapper_Response_Interface
36
- {
37
- /**
38
- * @param array $params
39
- *
40
- * @return Payone_Api_Response_BankAccountCheck_Blocked|Payone_Api_Response_BankAccountCheck_Invalid|Payone_Api_Response_BankAccountCheck_Valid|Payone_Api_Response_Error
41
- * @throws Payone_Api_Exception_UnknownStatus
42
- */
43
- public function map(array $params)
44
- {
45
- $this->setParams($params);
46
-
47
- if ($this->isValid()) {
48
- $response = new Payone_Api_Response_BankAccountCheck_Valid($params);
49
- }
50
- elseif ($this->isInvalid()) {
51
- $response = new Payone_Api_Response_BankAccountCheck_Invalid($params);
52
- }
53
- elseif ($this->isBlocked()) {
54
- $response = new Payone_Api_Response_BankAccountCheck_Blocked($params);
55
- }
56
- elseif ($this->isError()) {
57
- $response = new Payone_Api_Response_Error($params);
58
- }
59
- else {
60
- throw new Payone_Api_Exception_UnknownStatus();
61
- }
62
-
63
- return $response;
64
- }
65
-
66
  }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Mapper_Response_BankAccountCheck
34
+ extends Payone_Api_Mapper_Response_Abstract
35
+ implements Payone_Api_Mapper_Response_Interface
36
+ {
37
+ /**
38
+ * @param array $params
39
+ *
40
+ * @return Payone_Api_Response_BankAccountCheck_Blocked|Payone_Api_Response_BankAccountCheck_Invalid|Payone_Api_Response_BankAccountCheck_Valid|Payone_Api_Response_Error
41
+ * @throws Payone_Api_Exception_UnknownStatus
42
+ */
43
+ public function map(array $params)
44
+ {
45
+ $this->setParams($params);
46
+
47
+ if ($this->isValid()) {
48
+ $response = new Payone_Api_Response_BankAccountCheck_Valid($params);
49
+ }
50
+ elseif ($this->isInvalid()) {
51
+ $response = new Payone_Api_Response_BankAccountCheck_Invalid($params);
52
+ }
53
+ elseif ($this->isBlocked()) {
54
+ $response = new Payone_Api_Response_BankAccountCheck_Blocked($params);
55
+ }
56
+ elseif ($this->isError()) {
57
+ $response = new Payone_Api_Response_Error($params);
58
+ }
59
+ else {
60
+ throw new Payone_Api_Exception_UnknownStatus();
61
+ }
62
+
63
+ return $response;
64
+ }
65
+
66
  }
lib/Payone/Api/Mapper/Response/Capture.php CHANGED
@@ -1,61 +1,61 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Mapper
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Mapper
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Mapper_Response_Capture
34
- extends Payone_Api_Mapper_Response_Abstract
35
- implements Payone_Api_Mapper_Response_Interface
36
- {
37
-
38
- /**
39
- * @param array $params
40
- *
41
- * @return Payone_Api_Response_Capture_Approved|Payone_Api_Response_Error
42
- * @throws Payone_Api_Exception_UnknownStatus
43
- */
44
- public function map(array $params)
45
- {
46
- $this->setParams($params);
47
-
48
- if ($this->isApproved()) {
49
- $response = new Payone_Api_Response_Capture_Approved($params);
50
- }
51
- elseif ($this->isError()) {
52
- $response = new Payone_Api_Response_Error($params);
53
- }
54
- else {
55
- throw new Payone_Api_Exception_UnknownStatus();
56
- }
57
-
58
- return $response;
59
- }
60
-
61
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Mapper_Response_Capture
34
+ extends Payone_Api_Mapper_Response_Abstract
35
+ implements Payone_Api_Mapper_Response_Interface
36
+ {
37
+
38
+ /**
39
+ * @param array $params
40
+ *
41
+ * @return Payone_Api_Response_Capture_Approved|Payone_Api_Response_Error
42
+ * @throws Payone_Api_Exception_UnknownStatus
43
+ */
44
+ public function map(array $params)
45
+ {
46
+ $this->setParams($params);
47
+
48
+ if ($this->isApproved()) {
49
+ $response = new Payone_Api_Response_Capture_Approved($params);
50
+ }
51
+ elseif ($this->isError()) {
52
+ $response = new Payone_Api_Response_Error($params);
53
+ }
54
+ else {
55
+ throw new Payone_Api_Exception_UnknownStatus();
56
+ }
57
+
58
+ return $response;
59
+ }
60
+
61
+ }
lib/Payone/Api/Mapper/Response/Consumerscore.php CHANGED
@@ -1,63 +1,63 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Mapper
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Mapper
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Mapper_Response_Consumerscore
34
- extends Payone_Api_Mapper_Response_Abstract
35
- implements Payone_Api_Mapper_Response_Interface
36
- {
37
- /**
38
- * @param array $params
39
- *
40
- * @return Payone_Api_Response_Consumerscore_Invalid|Payone_Api_Response_Consumerscore_Valid|Payone_Api_Response_Error
41
- * @throws Payone_Api_Exception_UnknownStatus
42
- */
43
- public function map(array $params)
44
- {
45
- $this->setParams($params);
46
-
47
- if ($this->isValid()) {
48
- $response = new Payone_Api_Response_Consumerscore_Valid($params);
49
- }
50
- elseif ($this->isInvalid()) {
51
- $response = new Payone_Api_Response_Consumerscore_Invalid($params);
52
- }
53
- elseif ($this->isError()) {
54
- $response = new Payone_Api_Response_Error($params);
55
- }
56
- else {
57
- throw new Payone_Api_Exception_UnknownStatus();
58
- }
59
-
60
- return $response;
61
- }
62
-
63
  }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Mapper_Response_Consumerscore
34
+ extends Payone_Api_Mapper_Response_Abstract
35
+ implements Payone_Api_Mapper_Response_Interface
36
+ {
37
+ /**
38
+ * @param array $params
39
+ *
40
+ * @return Payone_Api_Response_Consumerscore_Invalid|Payone_Api_Response_Consumerscore_Valid|Payone_Api_Response_Error
41
+ * @throws Payone_Api_Exception_UnknownStatus
42
+ */
43
+ public function map(array $params)
44
+ {
45
+ $this->setParams($params);
46
+
47
+ if ($this->isValid()) {
48
+ $response = new Payone_Api_Response_Consumerscore_Valid($params);
49
+ }
50
+ elseif ($this->isInvalid()) {
51
+ $response = new Payone_Api_Response_Consumerscore_Invalid($params);
52
+ }
53
+ elseif ($this->isError()) {
54
+ $response = new Payone_Api_Response_Error($params);
55
+ }
56
+ else {
57
+ throw new Payone_Api_Exception_UnknownStatus();
58
+ }
59
+
60
+ return $response;
61
+ }
62
+
63
  }
lib/Payone/Api/Mapper/Response/CreateAccess.php CHANGED
@@ -1,61 +1,61 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Mapper
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Mapper
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Mapper_Response_CreateAccess
34
- extends Payone_Api_Mapper_Response_Abstract
35
- implements Payone_Api_Mapper_Response_Interface
36
- {
37
-
38
- /**
39
- * @param array $params
40
- *
41
- * @return Payone_Api_Response_Capture_Approved|Payone_Api_Response_Error
42
- * @throws Payone_Api_Exception_UnknownStatus
43
- */
44
- public function map(array $params)
45
- {
46
- $this->setParams($params);
47
-
48
- if ($this->isApproved()) {
49
- $response = new Payone_Api_Response_CreateAccess_Approved($params);
50
- }
51
- elseif ($this->isError()) {
52
- $response = new Payone_Api_Response_Error($params);
53
- }
54
- else {
55
- throw new Payone_Api_Exception_UnknownStatus();
56
- }
57
-
58
- return $response;
59
- }
60
-
61
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Mapper_Response_CreateAccess
34
+ extends Payone_Api_Mapper_Response_Abstract
35
+ implements Payone_Api_Mapper_Response_Interface
36
+ {
37
+
38
+ /**
39
+ * @param array $params
40
+ *
41
+ * @return Payone_Api_Response_Capture_Approved|Payone_Api_Response_Error
42
+ * @throws Payone_Api_Exception_UnknownStatus
43
+ */
44
+ public function map(array $params)
45
+ {
46
+ $this->setParams($params);
47
+
48
+ if ($this->isApproved()) {
49
+ $response = new Payone_Api_Response_CreateAccess_Approved($params);
50
+ }
51
+ elseif ($this->isError()) {
52
+ $response = new Payone_Api_Response_Error($params);
53
+ }
54
+ else {
55
+ throw new Payone_Api_Exception_UnknownStatus();
56
+ }
57
+
58
+ return $response;
59
+ }
60
+
61
+ }
lib/Payone/Api/Mapper/Response/CreditCardCheck.php CHANGED
@@ -1,63 +1,63 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Mapper
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Mapper
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Mapper_Response_CreditCardCheck
34
- extends Payone_Api_Mapper_Response_Abstract
35
- implements Payone_Api_Mapper_Response_Interface
36
- {
37
- /**
38
- * @param array $params
39
- *
40
- * @return Payone_Api_Response_CreditCardCheck_Invalid|Payone_Api_Response_CreditCardCheck_Valid|Payone_Api_Response_Error
41
- * @throws Payone_Api_Exception_UnknownStatus
42
- */
43
- public function map(array $params)
44
- {
45
- $this->setParams($params);
46
-
47
- if ($this->isValid()) {
48
- $response = new Payone_Api_Response_CreditCardCheck_Valid($params);
49
- }
50
- elseif ($this->isInvalid()) {
51
- $response = new Payone_Api_Response_CreditCardCheck_Invalid($params);
52
- }
53
- elseif ($this->isError()) {
54
- $response = new Payone_Api_Response_Error($params);
55
- }
56
- else {
57
- throw new Payone_Api_Exception_UnknownStatus();
58
- }
59
-
60
- return $response;
61
- }
62
-
63
  }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Mapper_Response_CreditCardCheck
34
+ extends Payone_Api_Mapper_Response_Abstract
35
+ implements Payone_Api_Mapper_Response_Interface
36
+ {
37
+ /**
38
+ * @param array $params
39
+ *
40
+ * @return Payone_Api_Response_CreditCardCheck_Invalid|Payone_Api_Response_CreditCardCheck_Valid|Payone_Api_Response_Error
41
+ * @throws Payone_Api_Exception_UnknownStatus
42
+ */
43
+ public function map(array $params)
44
+ {
45
+ $this->setParams($params);
46
+
47
+ if ($this->isValid()) {
48
+ $response = new Payone_Api_Response_CreditCardCheck_Valid($params);
49
+ }
50
+ elseif ($this->isInvalid()) {
51
+ $response = new Payone_Api_Response_CreditCardCheck_Invalid($params);
52
+ }
53
+ elseif ($this->isError()) {
54
+ $response = new Payone_Api_Response_Error($params);
55
+ }
56
+ else {
57
+ throw new Payone_Api_Exception_UnknownStatus();
58
+ }
59
+
60
+ return $response;
61
+ }
62
+
63
  }
lib/Payone/Api/Mapper/Response/Debit.php CHANGED
@@ -1,60 +1,60 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Mapper
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Mapper
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Mapper_Response_Debit
34
- extends Payone_Api_Mapper_Response_Abstract
35
- implements Payone_Api_Mapper_Response_Interface
36
- {
37
- /**
38
- * @param array $params
39
- *
40
- * @return Payone_Api_Response_Debit_Approved|Payone_Api_Response_Error
41
- * @throws Payone_Api_Exception_UnknownStatus
42
- */
43
- public function map(array $params)
44
- {
45
- $this->setParams($params);
46
-
47
- if ($this->isApproved()) {
48
- $response = new Payone_Api_Response_Debit_Approved($params);
49
- }
50
- elseif ($this->isError()) {
51
- $response = new Payone_Api_Response_Error($params);
52
- }
53
- else {
54
- throw new Payone_Api_Exception_UnknownStatus();
55
- }
56
-
57
- return $response;
58
- }
59
-
60
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Mapper_Response_Debit
34
+ extends Payone_Api_Mapper_Response_Abstract
35
+ implements Payone_Api_Mapper_Response_Interface
36
+ {
37
+ /**
38
+ * @param array $params
39
+ *
40
+ * @return Payone_Api_Response_Debit_Approved|Payone_Api_Response_Error
41
+ * @throws Payone_Api_Exception_UnknownStatus
42
+ */
43
+ public function map(array $params)
44
+ {
45
+ $this->setParams($params);
46
+
47
+ if ($this->isApproved()) {
48
+ $response = new Payone_Api_Response_Debit_Approved($params);
49
+ }
50
+ elseif ($this->isError()) {
51
+ $response = new Payone_Api_Response_Error($params);
52
+ }
53
+ else {
54
+ throw new Payone_Api_Exception_UnknownStatus();
55
+ }
56
+
57
+ return $response;
58
+ }
59
+
60
+ }
lib/Payone/Api/Mapper/Response/GetFile.php CHANGED
@@ -1,64 +1,64 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Mapper
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Mapper
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Mapper_Response_GetFile
34
- extends Payone_Api_Mapper_Response_Abstract
35
- implements Payone_Api_Mapper_Response_Interface
36
- {
37
-
38
- /**
39
- * @param array $params
40
- *
41
- * @return Payone_Api_Response_Management_GetFile|Payone_Api_Response_Error
42
- * @throws Payone_Api_Exception_UnknownStatus
43
- */
44
- public function map(array $params)
45
- {
46
- $this->setParams($params);
47
-
48
- if ($this->isError()) {
49
- $response = new Payone_Api_Response_Error($params);
50
- }
51
- elseif (empty($params) || $this->isApproved() || $this->isBlocked() || $this->isEnrolled() ||
52
- $this->isInvalid() || $this->isRedirect() || $this->isValid()
53
- ) {
54
- throw new Payone_Api_Exception_UnknownStatus();
55
- }
56
- else {
57
- $params = array('response' => $params);
58
- $response = new Payone_Api_Response_Management_GetFile($params);
59
- $response->setStatus(Payone_Api_Enum_ResponseType::VALID);
60
- }
61
-
62
- return $response;
63
- }
64
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Mapper_Response_GetFile
34
+ extends Payone_Api_Mapper_Response_Abstract
35
+ implements Payone_Api_Mapper_Response_Interface
36
+ {
37
+
38
+ /**
39
+ * @param array $params
40
+ *
41
+ * @return Payone_Api_Response_Management_GetFile|Payone_Api_Response_Error
42
+ * @throws Payone_Api_Exception_UnknownStatus
43
+ */
44
+ public function map(array $params)
45
+ {
46
+ $this->setParams($params);
47
+
48
+ if ($this->isError()) {
49
+ $response = new Payone_Api_Response_Error($params);
50
+ }
51
+ elseif (empty($params) || $this->isApproved() || $this->isBlocked() || $this->isEnrolled() ||
52
+ $this->isInvalid() || $this->isRedirect() || $this->isValid()
53
+ ) {
54
+ throw new Payone_Api_Exception_UnknownStatus();
55
+ }
56
+ else {
57
+ $params = array('response' => $params);
58
+ $response = new Payone_Api_Response_Management_GetFile($params);
59
+ $response->setStatus(Payone_Api_Enum_ResponseType::VALID);
60
+ }
61
+
62
+ return $response;
63
+ }
64
+ }
lib/Payone/Api/Mapper/Response/GetInvoice.php CHANGED
@@ -1,64 +1,64 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Mapper
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Mapper
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Mapper_Response_GetInvoice
34
- extends Payone_Api_Mapper_Response_Abstract
35
- implements Payone_Api_Mapper_Response_Interface
36
- {
37
-
38
- /**
39
- * @param array $params
40
- *
41
- * @return Payone_Api_Response_Capture_Approved|Payone_Api_Response_Error
42
- * @throws Payone_Api_Exception_UnknownStatus
43
- */
44
- public function map(array $params)
45
- {
46
- $this->setParams($params);
47
-
48
- if ($this->isError()) {
49
- $response = new Payone_Api_Response_Error($params);
50
- }
51
- elseif (empty($params) || $this->isApproved() || $this->isBlocked() || $this->isEnrolled() ||
52
- $this->isInvalid() || $this->isRedirect() || $this->isValid()
53
- ) {
54
- throw new Payone_Api_Exception_UnknownStatus();
55
- }
56
- else {
57
- $params = array('response' => $params);
58
- $response = new Payone_Api_Response_Management_GetInvoice($params);
59
- $response->setStatus(Payone_Api_Enum_ResponseType::VALID);
60
- }
61
-
62
- return $response;
63
- }
64
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Mapper_Response_GetInvoice
34
+ extends Payone_Api_Mapper_Response_Abstract
35
+ implements Payone_Api_Mapper_Response_Interface
36
+ {
37
+
38
+ /**
39
+ * @param array $params
40
+ *
41
+ * @return Payone_Api_Response_Capture_Approved|Payone_Api_Response_Error
42
+ * @throws Payone_Api_Exception_UnknownStatus
43
+ */
44
+ public function map(array $params)
45
+ {
46
+ $this->setParams($params);
47
+
48
+ if ($this->isError()) {
49
+ $response = new Payone_Api_Response_Error($params);
50
+ }
51
+ elseif (empty($params) || $this->isApproved() || $this->isBlocked() || $this->isEnrolled() ||
52
+ $this->isInvalid() || $this->isRedirect() || $this->isValid()
53
+ ) {
54
+ throw new Payone_Api_Exception_UnknownStatus();
55
+ }
56
+ else {
57
+ $params = array('response' => $params);
58
+ $response = new Payone_Api_Response_Management_GetInvoice($params);
59
+ $response->setStatus(Payone_Api_Enum_ResponseType::VALID);
60
+ }
61
+
62
+ return $response;
63
+ }
64
+ }
lib/Payone/Api/Mapper/Response/Interface.php CHANGED
@@ -1,42 +1,42 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Mapper
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Mapper
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- interface Payone_Api_Mapper_Response_Interface
34
- {
35
- /**
36
- * @param array $params
37
- * @return Payone_Api_Response_Interface
38
- * @throws Payone_Api_Exception_UnknownStatus
39
- */
40
- public function map(array $params);
41
-
42
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ interface Payone_Api_Mapper_Response_Interface
34
+ {
35
+ /**
36
+ * @param array $params
37
+ * @return Payone_Api_Response_Interface
38
+ * @throws Payone_Api_Exception_UnknownStatus
39
+ */
40
+ public function map(array $params);
41
+
42
+ }
lib/Payone/Api/Mapper/Response/ManageMandate.php CHANGED
@@ -1,60 +1,60 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Mapper
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Mapper
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Mapper_Response_ManageMandate
34
- extends Payone_Api_Mapper_Response_Abstract
35
- implements Payone_Api_Mapper_Response_Interface
36
- {
37
- /**
38
- * @param array $params
39
- *
40
- * @return Payone_Api_Response_Debit_Approved|Payone_Api_Response_Error
41
- * @throws Payone_Api_Exception_UnknownStatus
42
- */
43
- public function map(array $params)
44
- {
45
- $this->setParams($params);
46
-
47
- if ($this->isApproved()) {
48
- $response = new Payone_Api_Response_Management_ManageMandate_Approved($params);
49
- }
50
- elseif ($this->isError()) {
51
- $response = new Payone_Api_Response_Error($params);
52
- }
53
- else {
54
- throw new Payone_Api_Exception_UnknownStatus();
55
- }
56
-
57
- return $response;
58
- }
59
-
60
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Mapper_Response_ManageMandate
34
+ extends Payone_Api_Mapper_Response_Abstract
35
+ implements Payone_Api_Mapper_Response_Interface
36
+ {
37
+ /**
38
+ * @param array $params
39
+ *
40
+ * @return Payone_Api_Response_Debit_Approved|Payone_Api_Response_Error
41
+ * @throws Payone_Api_Exception_UnknownStatus
42
+ */
43
+ public function map(array $params)
44
+ {
45
+ $this->setParams($params);
46
+
47
+ if ($this->isApproved()) {
48
+ $response = new Payone_Api_Response_Management_ManageMandate_Approved($params);
49
+ }
50
+ elseif ($this->isError()) {
51
+ $response = new Payone_Api_Response_Error($params);
52
+ }
53
+ else {
54
+ throw new Payone_Api_Exception_UnknownStatus();
55
+ }
56
+
57
+ return $response;
58
+ }
59
+
60
+ }
lib/Payone/Api/Mapper/Response/Preauthorization.php CHANGED
@@ -1,63 +1,63 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Mapper
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Mapper
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Mapper_Response_Preauthorization
34
- extends Payone_Api_Mapper_Response_Abstract
35
- implements Payone_Api_Mapper_Response_Interface
36
- {
37
- /**
38
- * @param array $params
39
- *
40
- * @return Payone_Api_Response_Error|Payone_Api_Response_Preauthorization_Approved|Payone_Api_Response_Preauthorization_Redirect
41
- * @throws Payone_Api_Exception_UnknownStatus
42
- */
43
- public function map(array $params)
44
- {
45
- $this->setParams($params);
46
-
47
- if ($this->isApproved()) {
48
- $response = new Payone_Api_Response_Preauthorization_Approved($params);
49
- }
50
- elseif ($this->isRedirect()) {
51
- $response = new Payone_Api_Response_Preauthorization_Redirect($params);
52
- }
53
- elseif ($this->isError()) {
54
- $response = new Payone_Api_Response_Error($params);
55
- }
56
- else {
57
- throw new Payone_Api_Exception_UnknownStatus();
58
- }
59
-
60
- return $response;
61
- }
62
-
63
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Mapper_Response_Preauthorization
34
+ extends Payone_Api_Mapper_Response_Abstract
35
+ implements Payone_Api_Mapper_Response_Interface
36
+ {
37
+ /**
38
+ * @param array $params
39
+ *
40
+ * @return Payone_Api_Response_Error|Payone_Api_Response_Preauthorization_Approved|Payone_Api_Response_Preauthorization_Redirect
41
+ * @throws Payone_Api_Exception_UnknownStatus
42
+ */
43
+ public function map(array $params)
44
+ {
45
+ $this->setParams($params);
46
+
47
+ if ($this->isApproved()) {
48
+ $response = new Payone_Api_Response_Preauthorization_Approved($params);
49
+ }
50
+ elseif ($this->isRedirect()) {
51
+ $response = new Payone_Api_Response_Preauthorization_Redirect($params);
52
+ }
53
+ elseif ($this->isError()) {
54
+ $response = new Payone_Api_Response_Error($params);
55
+ }
56
+ else {
57
+ throw new Payone_Api_Exception_UnknownStatus();
58
+ }
59
+
60
+ return $response;
61
+ }
62
+
63
+ }
lib/Payone/Api/Mapper/Response/Refund.php CHANGED
@@ -1,61 +1,61 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Mapper
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Mapper
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Mapper_Response_Refund
34
- extends Payone_Api_Mapper_Response_Abstract
35
- implements Payone_Api_Mapper_Response_Interface
36
- {
37
- /**
38
- * @param array $params
39
- *
40
- * @return Payone_Api_Response_Error|Payone_Api_Response_Refund_Approved
41
- *
42
- * @throws Payone_Api_Exception_UnknownStatus
43
- */
44
- public function map(array $params)
45
- {
46
- $this->setParams($params);
47
-
48
- if ($this->isApproved()) {
49
- $response = new Payone_Api_Response_Refund_Approved($params);
50
- }
51
- elseif ($this->isError()) {
52
- $response = new Payone_Api_Response_Error($params);
53
- }
54
- else {
55
- throw new Payone_Api_Exception_UnknownStatus();
56
- }
57
-
58
- return $response;
59
- }
60
-
61
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Mapper_Response_Refund
34
+ extends Payone_Api_Mapper_Response_Abstract
35
+ implements Payone_Api_Mapper_Response_Interface
36
+ {
37
+ /**
38
+ * @param array $params
39
+ *
40
+ * @return Payone_Api_Response_Error|Payone_Api_Response_Refund_Approved
41
+ *
42
+ * @throws Payone_Api_Exception_UnknownStatus
43
+ */
44
+ public function map(array $params)
45
+ {
46
+ $this->setParams($params);
47
+
48
+ if ($this->isApproved()) {
49
+ $response = new Payone_Api_Response_Refund_Approved($params);
50
+ }
51
+ elseif ($this->isError()) {
52
+ $response = new Payone_Api_Response_Error($params);
53
+ }
54
+ else {
55
+ throw new Payone_Api_Exception_UnknownStatus();
56
+ }
57
+
58
+ return $response;
59
+ }
60
+
61
+ }
lib/Payone/Api/Mapper/Response/UpdateAccess.php CHANGED
@@ -1,61 +1,61 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Mapper
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Mapper
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Mapper_Response_UpdateAccess
34
- extends Payone_Api_Mapper_Response_Abstract
35
- implements Payone_Api_Mapper_Response_Interface
36
- {
37
-
38
- /**
39
- * @param array $params
40
- *
41
- * @return Payone_Api_Response_Capture_Approved|Payone_Api_Response_Error
42
- * @throws Payone_Api_Exception_UnknownStatus
43
- */
44
- public function map(array $params)
45
- {
46
- $this->setParams($params);
47
-
48
- if ($this->isOk()) {
49
- $response = new Payone_Api_Response_Management_UpdateAccess_Ok($params);
50
- }
51
- elseif ($this->isError()) {
52
- $response = new Payone_Api_Response_Error($params);
53
- }
54
- else {
55
- throw new Payone_Api_Exception_UnknownStatus();
56
- }
57
-
58
- return $response;
59
- }
60
-
61
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Mapper_Response_UpdateAccess
34
+ extends Payone_Api_Mapper_Response_Abstract
35
+ implements Payone_Api_Mapper_Response_Interface
36
+ {
37
+
38
+ /**
39
+ * @param array $params
40
+ *
41
+ * @return Payone_Api_Response_Capture_Approved|Payone_Api_Response_Error
42
+ * @throws Payone_Api_Exception_UnknownStatus
43
+ */
44
+ public function map(array $params)
45
+ {
46
+ $this->setParams($params);
47
+
48
+ if ($this->isOk()) {
49
+ $response = new Payone_Api_Response_Management_UpdateAccess_Ok($params);
50
+ }
51
+ elseif ($this->isError()) {
52
+ $response = new Payone_Api_Response_Error($params);
53
+ }
54
+ else {
55
+ throw new Payone_Api_Exception_UnknownStatus();
56
+ }
57
+
58
+ return $response;
59
+ }
60
+
61
+ }
lib/Payone/Api/Mapper/Response/Vauthorization.php CHANGED
@@ -1,60 +1,60 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Mapper
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Mapper
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Mapper_Response_Vauthorization
34
- extends Payone_Api_Mapper_Response_Abstract
35
- implements Payone_Api_Mapper_Response_Interface
36
- {
37
- /**
38
- * @param array $params
39
- *
40
- * @return Payone_Api_Response_Vauthorization_Approved|Payone_Api_Response_Error
41
- * @throws Payone_Api_Exception_UnknownStatus
42
- */
43
- public function map(array $params)
44
- {
45
- $this->setParams($params);
46
-
47
- if ($this->isApproved()) {
48
- $response = new Payone_Api_Response_Vauthorization_Approved($params);
49
- }
50
- elseif ($this->isError()) {
51
- $response = new Payone_Api_Response_Error($params);
52
- }
53
- else {
54
- throw new Payone_Api_Exception_UnknownStatus();
55
- }
56
-
57
- return $response;
58
- }
59
-
60
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Mapper
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Mapper
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Mapper_Response_Vauthorization
34
+ extends Payone_Api_Mapper_Response_Abstract
35
+ implements Payone_Api_Mapper_Response_Interface
36
+ {
37
+ /**
38
+ * @param array $params
39
+ *
40
+ * @return Payone_Api_Response_Vauthorization_Approved|Payone_Api_Response_Error
41
+ * @throws Payone_Api_Exception_UnknownStatus
42
+ */
43
+ public function map(array $params)
44
+ {
45
+ $this->setParams($params);
46
+
47
+ if ($this->isApproved()) {
48
+ $response = new Payone_Api_Response_Vauthorization_Approved($params);
49
+ }
50
+ elseif ($this->isError()) {
51
+ $response = new Payone_Api_Response_Error($params);
52
+ }
53
+ else {
54
+ throw new Payone_Api_Exception_UnknownStatus();
55
+ }
56
+
57
+ return $response;
58
+ }
59
+
60
+ }
lib/Payone/Api/Persistence/Interface.php CHANGED
@@ -1,58 +1,58 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Persistence
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- * This Interface defines the methods that have to be implemented to save an api communication
26
- *
27
- * @category Payone
28
- * @package Payone_Api
29
- * @subpackage Persistence
30
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
31
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
32
- * @link http://www.noovias.com
33
- */
34
- interface Payone_Api_Persistence_Interface
35
- {
36
- /**
37
- * @abstract
38
- * @return string
39
- */
40
- public function getKey();
41
-
42
- /**
43
- * @abstract
44
- * @param Payone_Api_Request_Interface $request
45
- * @param Payone_Api_Response_Interface $response
46
- * @return boolean
47
- */
48
- public function save(Payone_Api_Request_Interface $request, Payone_Api_Response_Interface $response);
49
-
50
- /**
51
- * @abstract
52
- * @param Payone_Api_Request_Interface $request
53
- * @param Exception
54
- * @return boolean
55
- */
56
- public function saveException(Payone_Api_Request_Interface $request, Exception $ex);
57
-
58
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Persistence
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ * This Interface defines the methods that have to be implemented to save an api communication
26
+ *
27
+ * @category Payone
28
+ * @package Payone_Api
29
+ * @subpackage Persistence
30
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
31
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
32
+ * @link http://www.noovias.com
33
+ */
34
+ interface Payone_Api_Persistence_Interface
35
+ {
36
+ /**
37
+ * @abstract
38
+ * @return string
39
+ */
40
+ public function getKey();
41
+
42
+ /**
43
+ * @abstract
44
+ * @param Payone_Api_Request_Interface $request
45
+ * @param Payone_Api_Response_Interface $response
46
+ * @return boolean
47
+ */
48
+ public function save(Payone_Api_Request_Interface $request, Payone_Api_Response_Interface $response);
49
+
50
+ /**
51
+ * @abstract
52
+ * @param Payone_Api_Request_Interface $request
53
+ * @param Exception
54
+ * @return boolean
55
+ */
56
+ public function saveException(Payone_Api_Request_Interface $request, Exception $ex);
57
+
58
+ }
lib/Payone/Api/Request/3dsCheck.php CHANGED
@@ -1,257 +1,257 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_3dsCheck extends Payone_Api_Request_Abstract
34
- {
35
- protected $request = Payone_Api_Enum_RequestType::CHECK3DS;
36
-
37
- /**
38
- * @var int
39
- */
40
- protected $aid = NULL;
41
- /**
42
- * @var int
43
- */
44
- protected $amount = NULL;
45
- /**
46
- * @var string
47
- */
48
- protected $currency = NULL;
49
- /**
50
- * @var string
51
- */
52
- protected $clearingtype = NULL;
53
- /**
54
- * @var string
55
- */
56
- protected $exiturl = NULL;
57
- /**
58
- * @var string
59
- */
60
- protected $cardpan = NULL;
61
- /**
62
- * @var string
63
- */
64
- protected $cardtype = NULL;
65
- /**
66
- * @var string
67
- */
68
- protected $cardexpiredate = NULL;
69
- /**
70
- * @var int
71
- */
72
- protected $cardcvc2 = NULL;
73
- /**
74
- * @var string
75
- */
76
- protected $storecarddata = NULL;
77
- /**
78
- * @var string
79
- */
80
- protected $language = NULL;
81
-
82
- /**
83
- * @param int $aid
84
- */
85
- public function setAid($aid)
86
- {
87
- $this->aid = $aid;
88
- }
89
-
90
- /**
91
- * @return int
92
- */
93
- public function getAid()
94
- {
95
- return $this->aid;
96
- }
97
-
98
- /**
99
- * @param int $amount
100
- */
101
- public function setAmount($amount)
102
- {
103
- $this->amount = $amount;
104
- }
105
-
106
- /**
107
- * @return int
108
- */
109
- public function getAmount()
110
- {
111
- return $this->amount;
112
- }
113
-
114
- /**
115
- * @param int $cardcvc2
116
- */
117
- public function setCardcvc2($cardcvc2)
118
- {
119
- $this->cardcvc2 = $cardcvc2;
120
- }
121
-
122
- /**
123
- * @return int
124
- */
125
- public function getCardcvc2()
126
- {
127
- return $this->cardcvc2;
128
- }
129
-
130
- /**
131
- * @param string $cardexpiredate
132
- */
133
- public function setCardexpiredate($cardexpiredate)
134
- {
135
- $this->cardexpiredate = $cardexpiredate;
136
- }
137
-
138
- /**
139
- * @return string
140
- */
141
- public function getCardexpiredate()
142
- {
143
- return $this->cardexpiredate;
144
- }
145
-
146
- /**
147
- * @param string $cardpan
148
- */
149
- public function setCardpan($cardpan)
150
- {
151
- $this->cardpan = $cardpan;
152
- }
153
-
154
- /**
155
- * @return string
156
- */
157
- public function getCardpan()
158
- {
159
- return $this->cardpan;
160
- }
161
-
162
- /**
163
- * @param string $cardtype
164
- */
165
- public function setCardtype($cardtype)
166
- {
167
- $this->cardtype = $cardtype;
168
- }
169
-
170
- /**
171
- * @return string
172
- */
173
- public function getCardtype()
174
- {
175
- return $this->cardtype;
176
- }
177
-
178
- /**
179
- * @param string $clearingtype
180
- */
181
- public function setClearingtype($clearingtype)
182
- {
183
- $this->clearingtype = $clearingtype;
184
- }
185
-
186
- /**
187
- * @return string
188
- */
189
- public function getClearingtype()
190
- {
191
- return $this->clearingtype;
192
- }
193
-
194
- /**
195
- * @param string $currency
196
- */
197
- public function setCurrency($currency)
198
- {
199
- $this->currency = $currency;
200
- }
201
-
202
- /**
203
- * @return string
204
- */
205
- public function getCurrency()
206
- {
207
- return $this->currency;
208
- }
209
-
210
- /**
211
- * @param string $exiturl
212
- */
213
- public function setExiturl($exiturl)
214
- {
215
- $this->exiturl = $exiturl;
216
- }
217
-
218
- /**
219
- * @return string
220
- */
221
- public function getExiturl()
222
- {
223
- return $this->exiturl;
224
- }
225
-
226
- /**
227
- * @param string $language
228
- */
229
- public function setLanguage($language)
230
- {
231
- $this->language = $language;
232
- }
233
-
234
- /**
235
- * @return string
236
- */
237
- public function getLanguage()
238
- {
239
- return $this->language;
240
- }
241
-
242
- /**
243
- * @param string $storecarddata
244
- */
245
- public function setStorecarddata($storecarddata)
246
- {
247
- $this->storecarddata = $storecarddata;
248
- }
249
-
250
- /**
251
- * @return string
252
- */
253
- public function getStorecarddata()
254
- {
255
- return $this->storecarddata;
256
- }
257
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_3dsCheck extends Payone_Api_Request_Abstract
34
+ {
35
+ protected $request = Payone_Api_Enum_RequestType::CHECK3DS;
36
+
37
+ /**
38
+ * @var int
39
+ */
40
+ protected $aid = NULL;
41
+ /**
42
+ * @var int
43
+ */
44
+ protected $amount = NULL;
45
+ /**
46
+ * @var string
47
+ */
48
+ protected $currency = NULL;
49
+ /**
50
+ * @var string
51
+ */
52
+ protected $clearingtype = NULL;
53
+ /**
54
+ * @var string
55
+ */
56
+ protected $exiturl = NULL;
57
+ /**
58
+ * @var string
59
+ */
60
+ protected $cardpan = NULL;
61
+ /**
62
+ * @var string
63
+ */
64
+ protected $cardtype = NULL;
65
+ /**
66
+ * @var string
67
+ */
68
+ protected $cardexpiredate = NULL;
69
+ /**
70
+ * @var int
71
+ */
72
+ protected $cardcvc2 = NULL;
73
+ /**
74
+ * @var string
75
+ */
76
+ protected $storecarddata = NULL;
77
+ /**
78
+ * @var string
79
+ */
80
+ protected $language = NULL;
81
+
82
+ /**
83
+ * @param int $aid
84
+ */
85
+ public function setAid($aid)
86
+ {
87
+ $this->aid = $aid;
88
+ }
89
+
90
+ /**
91
+ * @return int
92
+ */
93
+ public function getAid()
94
+ {
95
+ return $this->aid;
96
+ }
97
+
98
+ /**
99
+ * @param int $amount
100
+ */
101
+ public function setAmount($amount)
102
+ {
103
+ $this->amount = $amount;
104
+ }
105
+
106
+ /**
107
+ * @return int
108
+ */
109
+ public function getAmount()
110
+ {
111
+ return $this->amount;
112
+ }
113
+
114
+ /**
115
+ * @param int $cardcvc2
116
+ */
117
+ public function setCardcvc2($cardcvc2)
118
+ {
119
+ $this->cardcvc2 = $cardcvc2;
120
+ }
121
+
122
+ /**
123
+ * @return int
124
+ */
125
+ public function getCardcvc2()
126
+ {
127
+ return $this->cardcvc2;
128
+ }
129
+
130
+ /**
131
+ * @param string $cardexpiredate
132
+ */
133
+ public function setCardexpiredate($cardexpiredate)
134
+ {
135
+ $this->cardexpiredate = $cardexpiredate;
136
+ }
137
+
138
+ /**
139
+ * @return string
140
+ */
141
+ public function getCardexpiredate()
142
+ {
143
+ return $this->cardexpiredate;
144
+ }
145
+
146
+ /**
147
+ * @param string $cardpan
148
+ */
149
+ public function setCardpan($cardpan)
150
+ {
151
+ $this->cardpan = $cardpan;
152
+ }
153
+
154
+ /**
155
+ * @return string
156
+ */
157
+ public function getCardpan()
158
+ {
159
+ return $this->cardpan;
160
+ }
161
+
162
+ /**
163
+ * @param string $cardtype
164
+ */
165
+ public function setCardtype($cardtype)
166
+ {
167
+ $this->cardtype = $cardtype;
168
+ }
169
+
170
+ /**
171
+ * @return string
172
+ */
173
+ public function getCardtype()
174
+ {
175
+ return $this->cardtype;
176
+ }
177
+
178
+ /**
179
+ * @param string $clearingtype
180
+ */
181
+ public function setClearingtype($clearingtype)
182
+ {
183
+ $this->clearingtype = $clearingtype;
184
+ }
185
+
186
+ /**
187
+ * @return string
188
+ */
189
+ public function getClearingtype()
190
+ {
191
+ return $this->clearingtype;
192
+ }
193
+
194
+ /**
195
+ * @param string $currency
196
+ */
197
+ public function setCurrency($currency)
198
+ {
199
+ $this->currency = $currency;
200
+ }
201
+
202
+ /**
203
+ * @return string
204
+ */
205
+ public function getCurrency()
206
+ {
207
+ return $this->currency;
208
+ }
209
+
210
+ /**
211
+ * @param string $exiturl
212
+ */
213
+ public function setExiturl($exiturl)
214
+ {
215
+ $this->exiturl = $exiturl;
216
+ }
217
+
218
+ /**
219
+ * @return string
220
+ */
221
+ public function getExiturl()
222
+ {
223
+ return $this->exiturl;
224
+ }
225
+
226
+ /**
227
+ * @param string $language
228
+ */
229
+ public function setLanguage($language)
230
+ {
231
+ $this->language = $language;
232
+ }
233
+
234
+ /**
235
+ * @return string
236
+ */
237
+ public function getLanguage()
238
+ {
239
+ return $this->language;
240
+ }
241
+
242
+ /**
243
+ * @param string $storecarddata
244
+ */
245
+ public function setStorecarddata($storecarddata)
246
+ {
247
+ $this->storecarddata = $storecarddata;
248
+ }
249
+
250
+ /**
251
+ * @return string
252
+ */
253
+ public function getStorecarddata()
254
+ {
255
+ return $this->storecarddata;
256
+ }
257
+ }
lib/Payone/Api/Request/AddressCheck.php CHANGED
@@ -1,317 +1,317 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_AddressCheck extends Payone_Api_Request_Abstract
34
- {
35
- protected $request = Payone_Api_Enum_RequestType::ADDRESSCHECK;
36
-
37
- /**
38
- * @var int
39
- */
40
- protected $aid = NULL;
41
- /**
42
- * @var string
43
- */
44
- protected $addresschecktype = NULL;
45
- /**
46
- * @var string
47
- */
48
- protected $firstname = NULL;
49
- /**
50
- * @var string
51
- */
52
- protected $lastname = NULL;
53
- /**
54
- * @var string
55
- */
56
- protected $company = NULL;
57
- /**
58
- * @var string
59
- */
60
- protected $street = NULL;
61
- /**
62
- * @var string
63
- */
64
- protected $streetname = NULL;
65
- /**
66
- * @var string
67
- */
68
- protected $streetnumber = NULL;
69
- /**
70
- * @var string
71
- */
72
- protected $zip = NULL;
73
- /**
74
- * @var string
75
- */
76
- protected $city = NULL;
77
- /**
78
- * @var string
79
- */
80
- protected $state = NULL;
81
- /**
82
- * @var string
83
- */
84
- protected $country = NULL;
85
- /**
86
- * @var string
87
- */
88
- protected $telephonenumber = NULL;
89
- /**
90
- * @var string
91
- */
92
- protected $language = NULL;
93
-
94
- /**
95
- * @param string $addresschecktype
96
- */
97
- public function setAddresschecktype($addresschecktype)
98
- {
99
- $this->addresschecktype = $addresschecktype;
100
- }
101
-
102
- /**
103
- * @return string
104
- */
105
- public function getAddresschecktype()
106
- {
107
- return $this->addresschecktype;
108
- }
109
-
110
- /**
111
- * @param int $aid
112
- */
113
- public function setAid($aid)
114
- {
115
- $this->aid = $aid;
116
- }
117
-
118
- /**
119
- * @return int
120
- */
121
- public function getAid()
122
- {
123
- return $this->aid;
124
- }
125
-
126
- /**
127
- * @param string $city
128
- */
129
- public function setCity($city)
130
- {
131
- $this->city = $city;
132
- }
133
-
134
- /**
135
- * @return string
136
- */
137
- public function getCity()
138
- {
139
- return $this->city;
140
- }
141
-
142
- /**
143
- * @param string $company
144
- */
145
- public function setCompany($company)
146
- {
147
- $this->company = $company;
148
- }
149
-
150
- /**
151
- * @return string
152
- */
153
- public function getCompany()
154
- {
155
- return $this->company;
156
- }
157
-
158
- /**
159
- * @param string $country
160
- */
161
- public function setCountry($country)
162
- {
163
- $this->country = $country;
164
- }
165
-
166
- /**
167
- * @return string
168
- */
169
- public function getCountry()
170
- {
171
- return $this->country;
172
- }
173
-
174
- /**
175
- * @param string $firstname
176
- */
177
- public function setFirstname($firstname)
178
- {
179
- $this->firstname = $firstname;
180
- }
181
-
182
- /**
183
- * @return string
184
- */
185
- public function getFirstname()
186
- {
187
- return $this->firstname;
188
- }
189
-
190
- /**
191
- * @param string $language
192
- */
193
- public function setLanguage($language)
194
- {
195
- $this->language = $language;
196
- }
197
-
198
- /**
199
- * @return string
200
- */
201
- public function getLanguage()
202
- {
203
- return $this->language;
204
- }
205
-
206
- /**
207
- * @param string $lastname
208
- */
209
- public function setLastname($lastname)
210
- {
211
- $this->lastname = $lastname;
212
- }
213
-
214
- /**
215
- * @return string
216
- */
217
- public function getLastname()
218
- {
219
- return $this->lastname;
220
- }
221
-
222
- /**
223
- * @param string $state
224
- */
225
- public function setState($state)
226
- {
227
- $this->state = $state;
228
- }
229
-
230
- /**
231
- * @return string
232
- */
233
- public function getState()
234
- {
235
- return $this->state;
236
- }
237
-
238
- /**
239
- * @param string $street
240
- */
241
- public function setStreet($street)
242
- {
243
- $this->street = $street;
244
- }
245
-
246
- /**
247
- * @return string
248
- */
249
- public function getStreet()
250
- {
251
- return $this->street;
252
- }
253
-
254
- /**
255
- * @param string $streetname
256
- */
257
- public function setStreetname($streetname)
258
- {
259
- $this->streetname = $streetname;
260
- }
261
-
262
- /**
263
- * @return string
264
- */
265
- public function getStreetname()
266
- {
267
- return $this->streetname;
268
- }
269
-
270
- /**
271
- * @param string $streetnumber
272
- */
273
- public function setStreetnumber($streetnumber)
274
- {
275
- $this->streetnumber = $streetnumber;
276
- }
277
-
278
- /**
279
- * @return string
280
- */
281
- public function getStreetnumber()
282
- {
283
- return $this->streetnumber;
284
- }
285
-
286
- /**
287
- * @param string $telephonenumber
288
- */
289
- public function setTelephonenumber($telephonenumber)
290
- {
291
- $this->telephonenumber = $telephonenumber;
292
- }
293
-
294
- /**
295
- * @return string
296
- */
297
- public function getTelephonenumber()
298
- {
299
- return $this->telephonenumber;
300
- }
301
-
302
- /**
303
- * @param string $zip
304
- */
305
- public function setZip($zip)
306
- {
307
- $this->zip = $zip;
308
- }
309
-
310
- /**
311
- * @return string
312
- */
313
- public function getZip()
314
- {
315
- return $this->zip;
316
- }
317
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_AddressCheck extends Payone_Api_Request_Abstract
34
+ {
35
+ protected $request = Payone_Api_Enum_RequestType::ADDRESSCHECK;
36
+
37
+ /**
38
+ * @var int
39
+ */
40
+ protected $aid = NULL;
41
+ /**
42
+ * @var string
43
+ */
44
+ protected $addresschecktype = NULL;
45
+ /**
46
+ * @var string
47
+ */
48
+ protected $firstname = NULL;
49
+ /**
50
+ * @var string
51
+ */
52
+ protected $lastname = NULL;
53
+ /**
54
+ * @var string
55
+ */
56
+ protected $company = NULL;
57
+ /**
58
+ * @var string
59
+ */
60
+ protected $street = NULL;
61
+ /**
62
+ * @var string
63
+ */
64
+ protected $streetname = NULL;
65
+ /**
66
+ * @var string
67
+ */
68
+ protected $streetnumber = NULL;
69
+ /**
70
+ * @var string
71
+ */
72
+ protected $zip = NULL;
73
+ /**
74
+ * @var string
75
+ */
76
+ protected $city = NULL;
77
+ /**
78
+ * @var string
79
+ */
80
+ protected $state = NULL;
81
+ /**
82
+ * @var string
83
+ */
84
+ protected $country = NULL;
85
+ /**
86
+ * @var string
87
+ */
88
+ protected $telephonenumber = NULL;
89
+ /**
90
+ * @var string
91
+ */
92
+ protected $language = NULL;
93
+
94
+ /**
95
+ * @param string $addresschecktype
96
+ */
97
+ public function setAddresschecktype($addresschecktype)
98
+ {
99
+ $this->addresschecktype = $addresschecktype;
100
+ }
101
+
102
+ /**
103
+ * @return string
104
+ */
105
+ public function getAddresschecktype()
106
+ {
107
+ return $this->addresschecktype;
108
+ }
109
+
110
+ /**
111
+ * @param int $aid
112
+ */
113
+ public function setAid($aid)
114
+ {
115
+ $this->aid = $aid;
116
+ }
117
+
118
+ /**
119
+ * @return int
120
+ */
121
+ public function getAid()
122
+ {
123
+ return $this->aid;
124
+ }
125
+
126
+ /**
127
+ * @param string $city
128
+ */
129
+ public function setCity($city)
130
+ {
131
+ $this->city = $city;
132
+ }
133
+
134
+ /**
135
+ * @return string
136
+ */
137
+ public function getCity()
138
+ {
139
+ return $this->city;
140
+ }
141
+
142
+ /**
143
+ * @param string $company
144
+ */
145
+ public function setCompany($company)
146
+ {
147
+ $this->company = $company;
148
+ }
149
+
150
+ /**
151
+ * @return string
152
+ */
153
+ public function getCompany()
154
+ {
155
+ return $this->company;
156
+ }
157
+
158
+ /**
159
+ * @param string $country
160
+ */
161
+ public function setCountry($country)
162
+ {
163
+ $this->country = $country;
164
+ }
165
+
166
+ /**
167
+ * @return string
168
+ */
169
+ public function getCountry()
170
+ {
171
+ return $this->country;
172
+ }
173
+
174
+ /**
175
+ * @param string $firstname
176
+ */
177
+ public function setFirstname($firstname)
178
+ {
179
+ $this->firstname = $firstname;
180
+ }
181
+
182
+ /**
183
+ * @return string
184
+ */
185
+ public function getFirstname()
186
+ {
187
+ return $this->firstname;
188
+ }
189
+
190
+ /**
191
+ * @param string $language
192
+ */
193
+ public function setLanguage($language)
194
+ {
195
+ $this->language = $language;
196
+ }
197
+
198
+ /**
199
+ * @return string
200
+ */
201
+ public function getLanguage()
202
+ {
203
+ return $this->language;
204
+ }
205
+
206
+ /**
207
+ * @param string $lastname
208
+ */
209
+ public function setLastname($lastname)
210
+ {
211
+ $this->lastname = $lastname;
212
+ }
213
+
214
+ /**
215
+ * @return string
216
+ */
217
+ public function getLastname()
218
+ {
219
+ return $this->lastname;
220
+ }
221
+
222
+ /**
223
+ * @param string $state
224
+ */
225
+ public function setState($state)
226
+ {
227
+ $this->state = $state;
228
+ }
229
+
230
+ /**
231
+ * @return string
232
+ */
233
+ public function getState()
234
+ {
235
+ return $this->state;
236
+ }
237
+
238
+ /**
239
+ * @param string $street
240
+ */
241
+ public function setStreet($street)
242
+ {
243
+ $this->street = $street;
244
+ }
245
+
246
+ /**
247
+ * @return string
248
+ */
249
+ public function getStreet()
250
+ {
251
+ return $this->street;
252
+ }
253
+
254
+ /**
255
+ * @param string $streetname
256
+ */
257
+ public function setStreetname($streetname)
258
+ {
259
+ $this->streetname = $streetname;
260
+ }
261
+
262
+ /**
263
+ * @return string
264
+ */
265
+ public function getStreetname()
266
+ {
267
+ return $this->streetname;
268
+ }
269
+
270
+ /**
271
+ * @param string $streetnumber
272
+ */
273
+ public function setStreetnumber($streetnumber)
274
+ {
275
+ $this->streetnumber = $streetnumber;
276
+ }
277
+
278
+ /**
279
+ * @return string
280
+ */
281
+ public function getStreetnumber()
282
+ {
283
+ return $this->streetnumber;
284
+ }
285
+
286
+ /**
287
+ * @param string $telephonenumber
288
+ */
289
+ public function setTelephonenumber($telephonenumber)
290
+ {
291
+ $this->telephonenumber = $telephonenumber;
292
+ }
293
+
294
+ /**
295
+ * @return string
296
+ */
297
+ public function getTelephonenumber()
298
+ {
299
+ return $this->telephonenumber;
300
+ }
301
+
302
+ /**
303
+ * @param string $zip
304
+ */
305
+ public function setZip($zip)
306
+ {
307
+ $this->zip = $zip;
308
+ }
309
+
310
+ /**
311
+ * @return string
312
+ */
313
+ public function getZip()
314
+ {
315
+ return $this->zip;
316
+ }
317
+ }
lib/Payone/Api/Request/Authorization.php CHANGED
@@ -1,58 +1,58 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Authorization extends Payone_Api_Request_Authorization_Abstract
34
- {
35
- protected $request = Payone_Api_Enum_RequestType::AUTHORIZATION;
36
-
37
- /**
38
- * @var Payone_Api_Request_Parameter_Authorization_Business
39
- */
40
- protected $business = null;
41
-
42
- /**
43
- * @param \Payone_Api_Request_Parameter_Authorization_Business $business
44
- */
45
- public function setBusiness(Payone_Api_Request_Parameter_Authorization_Business $business)
46
- {
47
- $this->business = $business;
48
- }
49
-
50
- /**
51
- * @return \Payone_Api_Request_Parameter_Authorization_Business
52
- */
53
- public function getBusiness()
54
- {
55
- return $this->business;
56
- }
57
-
58
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Authorization extends Payone_Api_Request_Authorization_Abstract
34
+ {
35
+ protected $request = Payone_Api_Enum_RequestType::AUTHORIZATION;
36
+
37
+ /**
38
+ * @var Payone_Api_Request_Parameter_Authorization_Business
39
+ */
40
+ protected $business = null;
41
+
42
+ /**
43
+ * @param \Payone_Api_Request_Parameter_Authorization_Business $business
44
+ */
45
+ public function setBusiness(Payone_Api_Request_Parameter_Authorization_Business $business)
46
+ {
47
+ $this->business = $business;
48
+ }
49
+
50
+ /**
51
+ * @return \Payone_Api_Request_Parameter_Authorization_Business
52
+ */
53
+ public function getBusiness()
54
+ {
55
+ return $this->business;
56
+ }
57
+
58
+ }
lib/Payone/Api/Request/BankAccountCheck.php CHANGED
@@ -1,237 +1,237 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_BankAccountCheck extends Payone_Api_Request_Abstract
34
- {
35
- protected $request = Payone_Api_Enum_RequestType::BANKACCOUNTCHECK;
36
-
37
- /**
38
- * @var int
39
- */
40
- protected $aid = NULL;
41
- /**
42
- * @var string
43
- */
44
- protected $checktype = NULL;
45
- /**
46
- * @var string
47
- */
48
- protected $bankcountry = NULL;
49
- /**
50
- * @var string
51
- */
52
- protected $bankaccount = NULL;
53
- /**
54
- * @var int
55
- */
56
- protected $bankcode = NULL;
57
- /**
58
- * @var int
59
- */
60
- protected $bankbranchcode = NULL;
61
- /**
62
- * @var int
63
- */
64
- protected $bankcheckdigit = NULL;
65
- /**
66
- * @var string
67
- */
68
- protected $iban = NULL;
69
- /**
70
- * @var string
71
- */
72
- protected $bic = NULL;
73
- /**
74
- * @var string
75
- */
76
- protected $language = NULL;
77
-
78
- /**
79
- * @param int $aid
80
- */
81
- public function setAid($aid)
82
- {
83
- $this->aid = $aid;
84
- }
85
-
86
- /**
87
- * @return int
88
- */
89
- public function getAid()
90
- {
91
- return $this->aid;
92
- }
93
-
94
- /**
95
- * @param string $checktype
96
- */
97
- public function setChecktype($checktype)
98
- {
99
- $this->checktype = $checktype;
100
- }
101
-
102
- /**
103
- * @return string
104
- */
105
- public function getChecktype()
106
- {
107
- return $this->checktype;
108
- }
109
-
110
- /**
111
- * @param string $bankaccount
112
- */
113
- public function setBankaccount($bankaccount)
114
- {
115
- $this->bankaccount = $bankaccount;
116
- }
117
-
118
- /**
119
- * @return string
120
- */
121
- public function getBankaccount()
122
- {
123
- return $this->bankaccount;
124
- }
125
-
126
- /**
127
- * @param int $bankbranchcode
128
- */
129
- public function setBankbranchcode($bankbranchcode)
130
- {
131
- $this->bankbranchcode = $bankbranchcode;
132
- }
133
-
134
- /**
135
- * @return int
136
- */
137
- public function getBankbranchcode()
138
- {
139
- return $this->bankbranchcode;
140
- }
141
-
142
- /**
143
- * @param int $bankcheckdigit
144
- */
145
- public function setBankcheckdigit($bankcheckdigit)
146
- {
147
- $this->bankcheckdigit = $bankcheckdigit;
148
- }
149
-
150
- /**
151
- * @return int
152
- */
153
- public function getBankcheckdigit()
154
- {
155
- return $this->bankcheckdigit;
156
- }
157
-
158
- /**
159
- * @param int $bankcode
160
- */
161
- public function setBankcode($bankcode)
162
- {
163
- $this->bankcode = $bankcode;
164
- }
165
-
166
- /**
167
- * @return int
168
- */
169
- public function getBankcode()
170
- {
171
- return $this->bankcode;
172
- }
173
-
174
- /**
175
- * @param string $bankcountry
176
- */
177
- public function setBankcountry($bankcountry)
178
- {
179
- $this->bankcountry = $bankcountry;
180
- }
181
-
182
- /**
183
- * @return string
184
- */
185
- public function getBankcountry()
186
- {
187
- return $this->bankcountry;
188
- }
189
-
190
- /**
191
- * @param string $iban
192
- */
193
- public function setIban($iban)
194
- {
195
- $this->iban = $iban;
196
- }
197
-
198
- /**
199
- * @return string
200
- */
201
- public function getIban()
202
- {
203
- return $this->iban;
204
- }
205
-
206
- /**
207
- * @param string $bic
208
- */
209
- public function setBic($bic)
210
- {
211
- $this->bic = $bic;
212
- }
213
-
214
- /**
215
- * @return string
216
- */
217
- public function getBic()
218
- {
219
- return $this->bic;
220
- }
221
-
222
- /**
223
- * @param string $language
224
- */
225
- public function setLanguage($language)
226
- {
227
- $this->language = $language;
228
- }
229
-
230
- /**
231
- * @return string
232
- */
233
- public function getLanguage()
234
- {
235
- return $this->language;
236
- }
237
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_BankAccountCheck extends Payone_Api_Request_Abstract
34
+ {
35
+ protected $request = Payone_Api_Enum_RequestType::BANKACCOUNTCHECK;
36
+
37
+ /**
38
+ * @var int
39
+ */
40
+ protected $aid = NULL;
41
+ /**
42
+ * @var string
43
+ */
44
+ protected $checktype = NULL;
45
+ /**
46
+ * @var string
47
+ */
48
+ protected $bankcountry = NULL;
49
+ /**
50
+ * @var string
51
+ */
52
+ protected $bankaccount = NULL;
53
+ /**
54
+ * @var int
55
+ */
56
+ protected $bankcode = NULL;
57
+ /**
58
+ * @var int
59
+ */
60
+ protected $bankbranchcode = NULL;
61
+ /**
62
+ * @var int
63
+ */
64
+ protected $bankcheckdigit = NULL;
65
+ /**
66
+ * @var string
67
+ */
68
+ protected $iban = NULL;
69
+ /**
70
+ * @var string
71
+ */
72
+ protected $bic = NULL;
73
+ /**
74
+ * @var string
75
+ */
76
+ protected $language = NULL;
77
+
78
+ /**
79
+ * @param int $aid
80
+ */
81
+ public function setAid($aid)
82
+ {
83
+ $this->aid = $aid;
84
+ }
85
+
86
+ /**
87
+ * @return int
88
+ */
89
+ public function getAid()
90
+ {
91
+ return $this->aid;
92
+ }
93
+
94
+ /**
95
+ * @param string $checktype
96
+ */
97
+ public function setChecktype($checktype)
98
+ {
99
+ $this->checktype = $checktype;
100
+ }
101
+
102
+ /**
103
+ * @return string
104
+ */
105
+ public function getChecktype()
106
+ {
107
+ return $this->checktype;
108
+ }
109
+
110
+ /**
111
+ * @param string $bankaccount
112
+ */
113
+ public function setBankaccount($bankaccount)
114
+ {
115
+ $this->bankaccount = $bankaccount;
116
+ }
117
+
118
+ /**
119
+ * @return string
120
+ */
121
+ public function getBankaccount()
122
+ {
123
+ return $this->bankaccount;
124
+ }
125
+
126
+ /**
127
+ * @param int $bankbranchcode
128
+ */
129
+ public function setBankbranchcode($bankbranchcode)
130
+ {
131
+ $this->bankbranchcode = $bankbranchcode;
132
+ }
133
+
134
+ /**
135
+ * @return int
136
+ */
137
+ public function getBankbranchcode()
138
+ {
139
+ return $this->bankbranchcode;
140
+ }
141
+
142
+ /**
143
+ * @param int $bankcheckdigit
144
+ */
145
+ public function setBankcheckdigit($bankcheckdigit)
146
+ {
147
+ $this->bankcheckdigit = $bankcheckdigit;
148
+ }
149
+
150
+ /**
151
+ * @return int
152
+ */
153
+ public function getBankcheckdigit()
154
+ {
155
+ return $this->bankcheckdigit;
156
+ }
157
+
158
+ /**
159
+ * @param int $bankcode
160
+ */
161
+ public function setBankcode($bankcode)
162
+ {
163
+ $this->bankcode = $bankcode;
164
+ }
165
+
166
+ /**
167
+ * @return int
168
+ */
169
+ public function getBankcode()
170
+ {
171
+ return $this->bankcode;
172
+ }
173
+
174
+ /**
175
+ * @param string $bankcountry
176
+ */
177
+ public function setBankcountry($bankcountry)
178
+ {
179
+ $this->bankcountry = $bankcountry;
180
+ }
181
+
182
+ /**
183
+ * @return string
184
+ */
185
+ public function getBankcountry()
186
+ {
187
+ return $this->bankcountry;
188
+ }
189
+
190
+ /**
191
+ * @param string $iban
192
+ */
193
+ public function setIban($iban)
194
+ {
195
+ $this->iban = $iban;
196
+ }
197
+
198
+ /**
199
+ * @return string
200
+ */
201
+ public function getIban()
202
+ {
203
+ return $this->iban;
204
+ }
205
+
206
+ /**
207
+ * @param string $bic
208
+ */
209
+ public function setBic($bic)
210
+ {
211
+ $this->bic = $bic;
212
+ }
213
+
214
+ /**
215
+ * @return string
216
+ */
217
+ public function getBic()
218
+ {
219
+ return $this->bic;
220
+ }
221
+
222
+ /**
223
+ * @param string $language
224
+ */
225
+ public function setLanguage($language)
226
+ {
227
+ $this->language = $language;
228
+ }
229
+
230
+ /**
231
+ * @return string
232
+ */
233
+ public function getLanguage()
234
+ {
235
+ return $this->language;
236
+ }
237
+ }
lib/Payone/Api/Request/Capture.php CHANGED
@@ -1,179 +1,179 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Capture extends Payone_Api_Request_Abstract
34
- {
35
- protected $request = Payone_Api_Enum_RequestType::CAPTURE;
36
-
37
- /**
38
- * @var string
39
- */
40
- protected $txid = NULL;
41
- /**
42
- * @var int
43
- */
44
- protected $sequencenumber = NULL;
45
- /**
46
- * @var int
47
- */
48
- protected $amount = NULL;
49
- /**
50
- * @var string
51
- */
52
- protected $currency = NULL;
53
-
54
- /**
55
- * @var Payone_Api_Request_Parameter_Capture_Business
56
- */
57
- protected $business = null;
58
- /**
59
- * @var Payone_Api_Request_Parameter_Invoicing_Transaction
60
- */
61
- protected $invoicing = null;
62
-
63
- /**
64
- * @var string
65
- */
66
- protected $narrative_text = null;
67
-
68
- /**
69
- * @param int $amount
70
- */
71
- public function setAmount($amount)
72
- {
73
- $this->amount = $amount;
74
- }
75
-
76
- /**
77
- * @return int
78
- */
79
- public function getAmount()
80
- {
81
- return $this->amount;
82
- }
83
-
84
- /**
85
- * @param string $currency
86
- */
87
- public function setCurrency($currency)
88
- {
89
- $this->currency = $currency;
90
- }
91
-
92
- /**
93
- * @return string
94
- */
95
- public function getCurrency()
96
- {
97
- return $this->currency;
98
- }
99
-
100
- /**
101
- * @param int $sequencenumber
102
- */
103
- public function setSequencenumber($sequencenumber)
104
- {
105
- $this->sequencenumber = $sequencenumber;
106
- }
107
-
108
- /**
109
- * @return int
110
- */
111
- public function getSequencenumber()
112
- {
113
- return $this->sequencenumber;
114
- }
115
-
116
- /**
117
- * @param string $txid
118
- */
119
- public function setTxid($txid)
120
- {
121
- $this->txid = $txid;
122
- }
123
-
124
- /**
125
- * @return string
126
- */
127
- public function getTxid()
128
- {
129
- return $this->txid;
130
- }
131
-
132
- /**
133
- * @param \Payone_Api_Request_Parameter_Capture_Business $business
134
- */
135
- public function setBusiness(Payone_Api_Request_Parameter_Capture_Business $business)
136
- {
137
- $this->business = $business;
138
- }
139
-
140
- /**
141
- * @return \Payone_Api_Request_Parameter_Capture_Business
142
- */
143
- public function getBusiness()
144
- {
145
- return $this->business;
146
- }
147
-
148
- /**
149
- * @param \Payone_Api_Request_Parameter_Invoicing_Transaction $invoicing
150
- */
151
- public function setInvoicing(Payone_Api_Request_Parameter_Invoicing_Transaction $invoicing)
152
- {
153
- $this->invoicing = $invoicing;
154
- }
155
-
156
- /**
157
- * @return \Payone_Api_Request_Parameter_Invoicing_Transaction
158
- */
159
- public function getInvoicing()
160
- {
161
- return $this->invoicing;
162
- }
163
-
164
- /**
165
- * @return null
166
- */
167
- public function getNarrativeText()
168
- {
169
- return $this->narrative_text;
170
- }
171
-
172
- /**
173
- * @param null $narrative_text
174
- */
175
- public function setNarrativeText($narrative_text)
176
- {
177
- $this->narrative_text = $narrative_text;
178
- }
179
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Capture extends Payone_Api_Request_Abstract
34
+ {
35
+ protected $request = Payone_Api_Enum_RequestType::CAPTURE;
36
+
37
+ /**
38
+ * @var string
39
+ */
40
+ protected $txid = NULL;
41
+ /**
42
+ * @var int
43
+ */
44
+ protected $sequencenumber = NULL;
45
+ /**
46
+ * @var int
47
+ */
48
+ protected $amount = NULL;
49
+ /**
50
+ * @var string
51
+ */
52
+ protected $currency = NULL;
53
+
54
+ /**
55
+ * @var Payone_Api_Request_Parameter_Capture_Business
56
+ */
57
+ protected $business = null;
58
+ /**
59
+ * @var Payone_Api_Request_Parameter_Invoicing_Transaction
60
+ */
61
+ protected $invoicing = null;
62
+
63
+ /**
64
+ * @var string
65
+ */
66
+ protected $narrative_text = null;
67
+
68
+ /**
69
+ * @param int $amount
70
+ */
71
+ public function setAmount($amount)
72
+ {
73
+ $this->amount = $amount;
74
+ }
75
+
76
+ /**
77
+ * @return int
78
+ */
79
+ public function getAmount()
80
+ {
81
+ return $this->amount;
82
+ }
83
+
84
+ /**
85
+ * @param string $currency
86
+ */
87
+ public function setCurrency($currency)
88
+ {
89
+ $this->currency = $currency;
90
+ }
91
+
92
+ /**
93
+ * @return string
94
+ */
95
+ public function getCurrency()
96
+ {
97
+ return $this->currency;
98
+ }
99
+
100
+ /**
101
+ * @param int $sequencenumber
102
+ */
103
+ public function setSequencenumber($sequencenumber)
104
+ {
105
+ $this->sequencenumber = $sequencenumber;
106
+ }
107
+
108
+ /**
109
+ * @return int
110
+ */
111
+ public function getSequencenumber()
112
+ {
113
+ return $this->sequencenumber;
114
+ }
115
+
116
+ /**
117
+ * @param string $txid
118
+ */
119
+ public function setTxid($txid)
120
+ {
121
+ $this->txid = $txid;
122
+ }
123
+
124
+ /**
125
+ * @return string
126
+ */
127
+ public function getTxid()
128
+ {
129
+ return $this->txid;
130
+ }
131
+
132
+ /**
133
+ * @param \Payone_Api_Request_Parameter_Capture_Business $business
134
+ */
135
+ public function setBusiness(Payone_Api_Request_Parameter_Capture_Business $business)
136
+ {
137
+ $this->business = $business;
138
+ }
139
+
140
+ /**
141
+ * @return \Payone_Api_Request_Parameter_Capture_Business
142
+ */
143
+ public function getBusiness()
144
+ {
145
+ return $this->business;
146
+ }
147
+
148
+ /**
149
+ * @param \Payone_Api_Request_Parameter_Invoicing_Transaction $invoicing
150
+ */
151
+ public function setInvoicing(Payone_Api_Request_Parameter_Invoicing_Transaction $invoicing)
152
+ {
153
+ $this->invoicing = $invoicing;
154
+ }
155
+
156
+ /**
157
+ * @return \Payone_Api_Request_Parameter_Invoicing_Transaction
158
+ */
159
+ public function getInvoicing()
160
+ {
161
+ return $this->invoicing;
162
+ }
163
+
164
+ /**
165
+ * @return null
166
+ */
167
+ public function getNarrativeText()
168
+ {
169
+ return $this->narrative_text;
170
+ }
171
+
172
+ /**
173
+ * @param null $narrative_text
174
+ */
175
+ public function setNarrativeText($narrative_text)
176
+ {
177
+ $this->narrative_text = $narrative_text;
178
+ }
179
+ }
lib/Payone/Api/Request/Consumerscore.php CHANGED
@@ -1,337 +1,337 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Consumerscore extends Payone_Api_Request_Abstract
34
- {
35
- protected $request = Payone_Api_Enum_RequestType::CONSUMERSCORE;
36
-
37
- /**
38
- * @var int
39
- */
40
- protected $aid = NULL;
41
- /**
42
- * @var string
43
- */
44
- protected $addresschecktype = NULL;
45
- /**
46
- * @var string
47
- */
48
- protected $consumerscoretype = NULL;
49
- /**
50
- * @var string
51
- */
52
- protected $firstname = NULL;
53
- /**
54
- * @var string
55
- */
56
- protected $lastname = NULL;
57
- /**
58
- * @var string
59
- */
60
- protected $company = NULL;
61
- /**
62
- * @var string
63
- */
64
- protected $street = NULL;
65
- /**
66
- * @var string
67
- */
68
- protected $streetname = NULL;
69
- /**
70
- * @var string
71
- */
72
- protected $streetnumber = NULL;
73
- /**
74
- * @var string
75
- */
76
- protected $zip = NULL;
77
- /**
78
- * @var string
79
- */
80
- protected $city = NULL;
81
- /**
82
- * @var string
83
- */
84
- protected $country = NULL;
85
- /**
86
- * @var string
87
- */
88
- protected $birthday = NULL;
89
- /**
90
- * @var string
91
- */
92
- protected $telephonenumber = NULL;
93
- /**
94
- * @var string
95
- */
96
- protected $language = NULL;
97
-
98
- /**
99
- * @param string $addresschecktype
100
- */
101
- public function setAddresschecktype($addresschecktype)
102
- {
103
- $this->addresschecktype = $addresschecktype;
104
- }
105
-
106
- /**
107
- * @return string
108
- */
109
- public function getAddresschecktype()
110
- {
111
- return $this->addresschecktype;
112
- }
113
-
114
- /**
115
- * @param int $aid
116
- */
117
- public function setAid($aid)
118
- {
119
- $this->aid = $aid;
120
- }
121
-
122
- /**
123
- * @return int
124
- */
125
- public function getAid()
126
- {
127
- return $this->aid;
128
- }
129
-
130
- /**
131
- * @param string $birthday
132
- */
133
- public function setBirthday($birthday)
134
- {
135
- $this->birthday = $birthday;
136
- }
137
-
138
- /**
139
- * @return string
140
- */
141
- public function getBirthday()
142
- {
143
- return $this->birthday;
144
- }
145
-
146
- /**
147
- * @param string $city
148
- */
149
- public function setCity($city)
150
- {
151
- $this->city = $city;
152
- }
153
-
154
- /**
155
- * @return string
156
- */
157
- public function getCity()
158
- {
159
- return $this->city;
160
- }
161
-
162
- /**
163
- * @param string $company
164
- */
165
- public function setCompany($company)
166
- {
167
- $this->company = $company;
168
- }
169
-
170
- /**
171
- * @return string
172
- */
173
- public function getCompany()
174
- {
175
- return $this->company;
176
- }
177
-
178
- /**
179
- * @param string $consumerscoretype
180
- */
181
- public function setConsumerscoretype($consumerscoretype)
182
- {
183
- $this->consumerscoretype = $consumerscoretype;
184
- }
185
-
186
- /**
187
- * @return string
188
- */
189
- public function getConsumerscoretype()
190
- {
191
- return $this->consumerscoretype;
192
- }
193
-
194
- /**
195
- * @param string $country
196
- */
197
- public function setCountry($country)
198
- {
199
- $this->country = $country;
200
- }
201
-
202
- /**
203
- * @return string
204
- */
205
- public function getCountry()
206
- {
207
- return $this->country;
208
- }
209
-
210
- /**
211
- * @param string $firstname
212
- */
213
- public function setFirstname($firstname)
214
- {
215
- $this->firstname = $firstname;
216
- }
217
-
218
- /**
219
- * @return string
220
- */
221
- public function getFirstname()
222
- {
223
- return $this->firstname;
224
- }
225
-
226
- /**
227
- * @param string $language
228
- */
229
- public function setLanguage($language)
230
- {
231
- $this->language = $language;
232
- }
233
-
234
- /**
235
- * @return string
236
- */
237
- public function getLanguage()
238
- {
239
- return $this->language;
240
- }
241
-
242
- /**
243
- * @param string $lastname
244
- */
245
- public function setLastname($lastname)
246
- {
247
- $this->lastname = $lastname;
248
- }
249
-
250
- /**
251
- * @return string
252
- */
253
- public function getLastname()
254
- {
255
- return $this->lastname;
256
- }
257
-
258
- /**
259
- * @param string $street
260
- */
261
- public function setStreet($street)
262
- {
263
- $this->street = $street;
264
- }
265
-
266
- /**
267
- * @return string
268
- */
269
- public function getStreet()
270
- {
271
- return $this->street;
272
- }
273
-
274
- /**
275
- * @param string $streetname
276
- */
277
- public function setStreetname($streetname)
278
- {
279
- $this->streetname = $streetname;
280
- }
281
-
282
- /**
283
- * @return string
284
- */
285
- public function getStreetname()
286
- {
287
- return $this->streetname;
288
- }
289
-
290
- /**
291
- * @param string $streetnumber
292
- */
293
- public function setStreetnumber($streetnumber)
294
- {
295
- $this->streetnumber = $streetnumber;
296
- }
297
-
298
- /**
299
- * @return string
300
- */
301
- public function getStreetnumber()
302
- {
303
- return $this->streetnumber;
304
- }
305
-
306
- /**
307
- * @param string $telephonenumber
308
- */
309
- public function setTelephonenumber($telephonenumber)
310
- {
311
- $this->telephonenumber = $telephonenumber;
312
- }
313
-
314
- /**
315
- * @return string
316
- */
317
- public function getTelephonenumber()
318
- {
319
- return $this->telephonenumber;
320
- }
321
-
322
- /**
323
- * @param string $zip
324
- */
325
- public function setZip($zip)
326
- {
327
- $this->zip = $zip;
328
- }
329
-
330
- /**
331
- * @return string
332
- */
333
- public function getZip()
334
- {
335
- return $this->zip;
336
- }
337
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Consumerscore extends Payone_Api_Request_Abstract
34
+ {
35
+ protected $request = Payone_Api_Enum_RequestType::CONSUMERSCORE;
36
+
37
+ /**
38
+ * @var int
39
+ */
40
+ protected $aid = NULL;
41
+ /**
42
+ * @var string
43
+ */
44
+ protected $addresschecktype = NULL;
45
+ /**
46
+ * @var string
47
+ */
48
+ protected $consumerscoretype = NULL;
49
+ /**
50
+ * @var string
51
+ */
52
+ protected $firstname = NULL;
53
+ /**
54
+ * @var string
55
+ */
56
+ protected $lastname = NULL;
57
+ /**
58
+ * @var string
59
+ */
60
+ protected $company = NULL;
61
+ /**
62
+ * @var string
63
+ */
64
+ protected $street = NULL;
65
+ /**
66
+ * @var string
67
+ */
68
+ protected $streetname = NULL;
69
+ /**
70
+ * @var string
71
+ */
72
+ protected $streetnumber = NULL;
73
+ /**
74
+ * @var string
75
+ */
76
+ protected $zip = NULL;
77
+ /**
78
+ * @var string
79
+ */
80
+ protected $city = NULL;
81
+ /**
82
+ * @var string
83
+ */
84
+ protected $country = NULL;
85
+ /**
86
+ * @var string
87
+ */
88
+ protected $birthday = NULL;
89
+ /**
90
+ * @var string
91
+ */
92
+ protected $telephonenumber = NULL;
93
+ /**
94
+ * @var string
95
+ */
96
+ protected $language = NULL;
97
+
98
+ /**
99
+ * @param string $addresschecktype
100
+ */
101
+ public function setAddresschecktype($addresschecktype)
102
+ {
103
+ $this->addresschecktype = $addresschecktype;
104
+ }
105
+
106
+ /**
107
+ * @return string
108
+ */
109
+ public function getAddresschecktype()
110
+ {
111
+ return $this->addresschecktype;
112
+ }
113
+
114
+ /**
115
+ * @param int $aid
116
+ */
117
+ public function setAid($aid)
118
+ {
119
+ $this->aid = $aid;
120
+ }
121
+
122
+ /**
123
+ * @return int
124
+ */
125
+ public function getAid()
126
+ {
127
+ return $this->aid;
128
+ }
129
+
130
+ /**
131
+ * @param string $birthday
132
+ */
133
+ public function setBirthday($birthday)
134
+ {
135
+ $this->birthday = $birthday;
136
+ }
137
+
138
+ /**
139
+ * @return string
140
+ */
141
+ public function getBirthday()
142
+ {
143
+ return $this->birthday;
144
+ }
145
+
146
+ /**
147
+ * @param string $city
148
+ */
149
+ public function setCity($city)
150
+ {
151
+ $this->city = $city;
152
+ }
153
+
154
+ /**
155
+ * @return string
156
+ */
157
+ public function getCity()
158
+ {
159
+ return $this->city;
160
+ }
161
+
162
+ /**
163
+ * @param string $company
164
+ */
165
+ public function setCompany($company)
166
+ {
167
+ $this->company = $company;
168
+ }
169
+
170
+ /**
171
+ * @return string
172
+ */
173
+ public function getCompany()
174
+ {
175
+ return $this->company;
176
+ }
177
+
178
+ /**
179
+ * @param string $consumerscoretype
180
+ */
181
+ public function setConsumerscoretype($consumerscoretype)
182
+ {
183
+ $this->consumerscoretype = $consumerscoretype;
184
+ }
185
+
186
+ /**
187
+ * @return string
188
+ */
189
+ public function getConsumerscoretype()
190
+ {
191
+ return $this->consumerscoretype;
192
+ }
193
+
194
+ /**
195
+ * @param string $country
196
+ */
197
+ public function setCountry($country)
198
+ {
199
+ $this->country = $country;
200
+ }
201
+
202
+ /**
203
+ * @return string
204
+ */
205
+ public function getCountry()
206
+ {
207
+ return $this->country;
208
+ }
209
+
210
+ /**
211
+ * @param string $firstname
212
+ */
213
+ public function setFirstname($firstname)
214
+ {
215
+ $this->firstname = $firstname;
216
+ }
217
+
218
+ /**
219
+ * @return string
220
+ */
221
+ public function getFirstname()
222
+ {
223
+ return $this->firstname;
224
+ }
225
+
226
+ /**
227
+ * @param string $language
228
+ */
229
+ public function setLanguage($language)
230
+ {
231
+ $this->language = $language;
232
+ }
233
+
234
+ /**
235
+ * @return string
236
+ */
237
+ public function getLanguage()
238
+ {
239
+ return $this->language;
240
+ }
241
+
242
+ /**
243
+ * @param string $lastname
244
+ */
245
+ public function setLastname($lastname)
246
+ {
247
+ $this->lastname = $lastname;
248
+ }
249
+
250
+ /**
251
+ * @return string
252
+ */
253
+ public function getLastname()
254
+ {
255
+ return $this->lastname;
256
+ }
257
+
258
+ /**
259
+ * @param string $street
260
+ */
261
+ public function setStreet($street)
262
+ {
263
+ $this->street = $street;
264
+ }
265
+
266
+ /**
267
+ * @return string
268
+ */
269
+ public function getStreet()
270
+ {
271
+ return $this->street;
272
+ }
273
+
274
+ /**
275
+ * @param string $streetname
276
+ */
277
+ public function setStreetname($streetname)
278
+ {
279
+ $this->streetname = $streetname;
280
+ }
281
+
282
+ /**
283
+ * @return string
284
+ */
285
+ public function getStreetname()
286
+ {
287
+ return $this->streetname;
288
+ }
289
+
290
+ /**
291
+ * @param string $streetnumber
292
+ */
293
+ public function setStreetnumber($streetnumber)
294
+ {
295
+ $this->streetnumber = $streetnumber;
296
+ }
297
+
298
+ /**
299
+ * @return string
300
+ */
301
+ public function getStreetnumber()
302
+ {
303
+ return $this->streetnumber;
304
+ }
305
+
306
+ /**
307
+ * @param string $telephonenumber
308
+ */
309
+ public function setTelephonenumber($telephonenumber)
310
+ {
311
+ $this->telephonenumber = $telephonenumber;
312
+ }
313
+
314
+ /**
315
+ * @return string
316
+ */
317
+ public function getTelephonenumber()
318
+ {
319
+ return $this->telephonenumber;
320
+ }
321
+
322
+ /**
323
+ * @param string $zip
324
+ */
325
+ public function setZip($zip)
326
+ {
327
+ $this->zip = $zip;
328
+ }
329
+
330
+ /**
331
+ * @return string
332
+ */
333
+ public function getZip()
334
+ {
335
+ return $this->zip;
336
+ }
337
+ }
lib/Payone/Api/Request/CreateAccess.php CHANGED
@@ -1,526 +1,526 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_CreateAccess extends Payone_Api_Request_Abstract
34
- {
35
- protected $request = Payone_Api_Enum_RequestType::CREATEACCESS;
36
-
37
- /**
38
- * Sub account ID
39
- *
40
- * @var int
41
- */
42
- protected $aid = NULL;
43
- /**
44
- * @var string
45
- */
46
- protected $clearingtype = NULL;
47
- /**
48
- * Merchant reference number for the payment process. (Permitted symbols: 0-9, a-z, A-Z, .,-,_,/)
49
- *
50
- * @var string
51
- */
52
- protected $reference = NULL;
53
-
54
- /**
55
- * Offer ID
56
- *
57
- * @var int
58
- */
59
- protected $productid = NULL;
60
-
61
- /**
62
- * Individual Parameter
63
- *
64
- * @var string
65
- */
66
- protected $param = NULL;
67
-
68
- /**
69
- * Username of customer
70
- *
71
- * @var string
72
- */
73
- protected $accessname = NULL;
74
-
75
- /**
76
- * Pass of customer
77
- *
78
- * @var string
79
- */
80
- protected $accesscode = NULL;
81
-
82
- /**
83
- * Startdate of access as unixtimestamp
84
- *
85
- * @var int
86
- */
87
- protected $access_starttime = NULL;
88
-
89
- /**
90
- * Expiredate of first term or timestamp of renewal as unixtimestamp
91
- *
92
- * @var int
93
- */
94
- protected $access_expiretime = NULL;
95
-
96
- /**
97
- * Canelationdate as unixtimestamp
98
- *
99
- * @var int
100
- */
101
- protected $access_canceltime = NULL;
102
-
103
- /**
104
- * Entire price of first term, must be equal to sum of amount * price. Must be in smallest currency unit
105
- *
106
- * @var int
107
- */
108
- protected $amount_trail = NULL;
109
-
110
- /**
111
- * Time unit of first term
112
- *
113
- * @var string
114
- */
115
- protected $period_unit_trail = NULL;
116
-
117
- /**
118
- * Lenght of first term
119
- *
120
- * @var int
121
- */
122
- protected $period_length_trail = NULL;
123
-
124
- /**
125
- * Entire price of all products in one renewal term. Must be in smallest currency unit
126
- *
127
- * @var int
128
- */
129
- protected $amount_recurring = NULL;
130
-
131
- /**
132
- * Time unit of renewal term
133
- *
134
- * @var string
135
- */
136
- protected $period_unit_recurring = NULL;
137
-
138
- /**
139
- * Length of renewal term
140
- *
141
- * @var int
142
- */
143
- protected $period_length_recurring = NULL;
144
-
145
- /**
146
- * Currency (ISO-4217)
147
- *
148
- * @var string
149
- */
150
- protected $currency = NULL;
151
-
152
- /**
153
- * @var Payone_Api_Request_Parameter_CreateAccess_Billing
154
- */
155
- protected $billing = null;
156
- /**
157
- * @var Payone_Api_Request_Parameter_CreateAccess_Invoicing_Transaction
158
- */
159
- protected $invoicing = null;
160
- /**
161
- * @var Payone_Api_Request_Parameter_CreateAccess_PersonalData
162
- */
163
- protected $personaldata = null;
164
- /**
165
- * @var Payone_Api_Request_Parameter_CreateAccess_PaymentMethod_Abstract
166
- */
167
- protected $payment = null;
168
- /**
169
- * @var Payone_Api_Request_Parameter_CreateAccess_3dsecure
170
- */
171
- protected $_3dsecure = null;
172
-
173
-
174
- /**
175
- * @param int $access_canceltime
176
- */
177
- public function setAccessCanceltime($access_canceltime)
178
- {
179
- $this->access_canceltime = $access_canceltime;
180
- }
181
-
182
- /**
183
- * @return int
184
- */
185
- public function getAccessCanceltime()
186
- {
187
- return $this->access_canceltime;
188
- }
189
-
190
- /**
191
- * @param int $access_expiretime
192
- */
193
- public function setAccessExpiretime($access_expiretime)
194
- {
195
- $this->access_expiretime = $access_expiretime;
196
- }
197
-
198
- /**
199
- * @return int
200
- */
201
- public function getAccessExpiretime()
202
- {
203
- return $this->access_expiretime;
204
- }
205
-
206
- /**
207
- * @param int $access_starttime
208
- */
209
- public function setAccessStarttime($access_starttime)
210
- {
211
- $this->access_starttime = $access_starttime;
212
- }
213
-
214
- /**
215
- * @return int
216
- */
217
- public function getAccessStarttime()
218
- {
219
- return $this->access_starttime;
220
- }
221
-
222
- /**
223
- * @param string $accesscode
224
- */
225
- public function setAccesscode($accesscode)
226
- {
227
- $this->accesscode = $accesscode;
228
- }
229
-
230
- /**
231
- * @return string
232
- */
233
- public function getAccesscode()
234
- {
235
- return $this->accesscode;
236
- }
237
-
238
- /**
239
- * @param string $accessname
240
- */
241
- public function setAccessname($accessname)
242
- {
243
- $this->accessname = $accessname;
244
- }
245
-
246
- /**
247
- * @return string
248
- */
249
- public function getAccessname()
250
- {
251
- return $this->accessname;
252
- }
253
-
254
- /**
255
- * @param int $aid
256
- */
257
- public function setAid($aid)
258
- {
259
- $this->aid = $aid;
260
- }
261
-
262
- /**
263
- * @return int
264
- */
265
- public function getAid()
266
- {
267
- return $this->aid;
268
- }
269
-
270
- /**
271
- * @param int $amount_recurring
272
- */
273
- public function setAmountRecurring($amount_recurring)
274
- {
275
- $this->amount_recurring = $amount_recurring;
276
- }
277
-
278
- /**
279
- * @return int
280
- */
281
- public function getAmountRecurring()
282
- {
283
- return $this->amount_recurring;
284
- }
285
-
286
- /**
287
- * @param int $amount_trail
288
- */
289
- public function setAmountTrail($amount_trail)
290
- {
291
- $this->amount_trail = $amount_trail;
292
- }
293
-
294
- /**
295
- * @return int
296
- */
297
- public function getAmountTrail()
298
- {
299
- return $this->amount_trail;
300
- }
301
-
302
- /**
303
- * @param string $clearingtype
304
- */
305
- public function setClearingtype($clearingtype)
306
- {
307
- $this->clearingtype = $clearingtype;
308
- }
309
-
310
- /**
311
- * @return string
312
- */
313
- public function getClearingtype()
314
- {
315
- return $this->clearingtype;
316
- }
317
-
318
- /**
319
- * @param string $param
320
- */
321
- public function setParam($param)
322
- {
323
- $this->param = $param;
324
- }
325
-
326
- /**
327
- * @return string
328
- */
329
- public function getParam()
330
- {
331
- return $this->param;
332
- }
333
-
334
- /**
335
- * @param int $period_length_recurring
336
- */
337
- public function setPeriodLengthRecurring($period_length_recurring)
338
- {
339
- $this->period_length_recurring = $period_length_recurring;
340
- }
341
-
342
- /**
343
- * @return int
344
- */
345
- public function getPeriodLengthRecurring()
346
- {
347
- return $this->period_length_recurring;
348
- }
349
-
350
- /**
351
- * @param int $period_length_trail
352
- */
353
- public function setPeriodLengthTrail($period_length_trail)
354
- {
355
- $this->period_length_trail = $period_length_trail;
356
- }
357
-
358
- /**
359
- * @return int
360
- */
361
- public function getPeriodLengthTrail()
362
- {
363
- return $this->period_length_trail;
364
- }
365
-
366
- /**
367
- * @param string $period_unit_recurring
368
- */
369
- public function setPeriodUnitRecurring($period_unit_recurring)
370
- {
371
- $this->period_unit_recurring = $period_unit_recurring;
372
- }
373
-
374
- /**
375
- * @return string
376
- */
377
- public function getPeriodUnitRecurring()
378
- {
379
- return $this->period_unit_recurring;
380
- }
381
-
382
- /**
383
- * @param string $period_unit_trail
384
- */
385
- public function setPeriodUnitTrail($period_unit_trail)
386
- {
387
- $this->period_unit_trail = $period_unit_trail;
388
- }
389
-
390
- /**
391
- * @return string
392
- */
393
- public function getPeriodUnitTrail()
394
- {
395
- return $this->period_unit_trail;
396
- }
397
-
398
- /**
399
- * @param int $productid
400
- */
401
- public function setProductid($productid)
402
- {
403
- $this->productid = $productid;
404
- }
405
-
406
- /**
407
- * @return int
408
- */
409
- public function getProductid()
410
- {
411
- return $this->productid;
412
- }
413
-
414
- /**
415
- * @param string $reference
416
- */
417
- public function setReference($reference)
418
- {
419
- $this->reference = $reference;
420
- }
421
-
422
- /**
423
- * @return string
424
- */
425
- public function getReference()
426
- {
427
- return $this->reference;
428
- }
429
-
430
- /**
431
- * @param \Payone_Api_Request_Parameter_CreateAccess_Billing $billing
432
- */
433
- public function setBilling(Payone_Api_Request_Parameter_CreateAccess_Billing $billing)
434
- {
435
- $this->billing = $billing;
436
- }
437
-
438
- /**
439
- * @return \Payone_Api_Request_Parameter_CreateAccess_Billing
440
- */
441
- public function getBilling()
442
- {
443
- return $this->billing;
444
- }
445
-
446
- /**
447
- * @param \Payone_Api_Request_Parameter_CreateAccess_Invoicing_Transaction $invoicing
448
- */
449
- public function setInvoicing(Payone_Api_Request_Parameter_CreateAccess_Invoicing_Transaction $invoicing)
450
- {
451
- $this->invoicing = $invoicing;
452
- }
453
-
454
- /**
455
- * @return \Payone_Api_Request_Parameter_CreateAccess_Invoicing_Transaction
456
- */
457
- public function getInvoicing()
458
- {
459
- return $this->invoicing;
460
- }
461
-
462
- /**
463
- * @param \Payone_Api_Request_Parameter_CreateAccess_PaymentMethod_Abstract $payment
464
- */
465
- public function setPayment(Payone_Api_Request_Parameter_CreateAccess_PaymentMethod_Abstract $payment)
466
- {
467
- $this->payment = $payment;
468
- }
469
-
470
- /**
471
- * @return \Payone_Api_Request_Parameter_CreateAccess_PaymentMethod_Abstract
472
- */
473
- public function getPayment()
474
- {
475
- return $this->payment;
476
- }
477
-
478
- /**
479
- * @param \Payone_Api_Request_Parameter_CreateAccess_PersonalData $personaldata
480
- */
481
- public function setPersonaldata(Payone_Api_Request_Parameter_CreateAccess_PersonalData $personaldata)
482
- {
483
- $this->personaldata = $personaldata;
484
- }
485
-
486
- /**
487
- * @return \Payone_Api_Request_Parameter_CreateAccess_PersonalData
488
- */
489
- public function getPersonaldata()
490
- {
491
- return $this->personaldata;
492
- }
493
-
494
- /**
495
- * @param \Payone_Api_Request_Parameter_CreateAccess_3dsecure $secure
496
- */
497
- public function set3dsecure(Payone_Api_Request_Parameter_CreateAccess_3dsecure $secure)
498
- {
499
- $this->_3dsecure = $secure;
500
- }
501
-
502
- /**
503
- * @return \Payone_Api_Request_Parameter_CreateAccess_3dsecure
504
- */
505
- public function get3dsecure()
506
- {
507
- return $this->_3dsecure;
508
- }
509
-
510
- /**
511
- * @param string $currency
512
- */
513
- public function setCurrency($currency)
514
- {
515
- $this->currency = $currency;
516
- }
517
-
518
- /**
519
- * @return string
520
- */
521
- public function getCurrency()
522
- {
523
- return $this->currency;
524
- }
525
-
526
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_CreateAccess extends Payone_Api_Request_Abstract
34
+ {
35
+ protected $request = Payone_Api_Enum_RequestType::CREATEACCESS;
36
+
37
+ /**
38
+ * Sub account ID
39
+ *
40
+ * @var int
41
+ */
42
+ protected $aid = NULL;
43
+ /**
44
+ * @var string
45
+ */
46
+ protected $clearingtype = NULL;
47
+ /**
48
+ * Merchant reference number for the payment process. (Permitted symbols: 0-9, a-z, A-Z, .,-,_,/)
49
+ *
50
+ * @var string
51
+ */
52
+ protected $reference = NULL;
53
+
54
+ /**
55
+ * Offer ID
56
+ *
57
+ * @var int
58
+ */
59
+ protected $productid = NULL;
60
+
61
+ /**
62
+ * Individual Parameter
63
+ *
64
+ * @var string
65
+ */
66
+ protected $param = NULL;
67
+
68
+ /**
69
+ * Username of customer
70
+ *
71
+ * @var string
72
+ */
73
+ protected $accessname = NULL;
74
+
75
+ /**
76
+ * Pass of customer
77
+ *
78
+ * @var string
79
+ */
80
+ protected $accesscode = NULL;
81
+
82
+ /**
83
+ * Startdate of access as unixtimestamp
84
+ *
85
+ * @var int
86
+ */
87
+ protected $access_starttime = NULL;
88
+
89
+ /**
90
+ * Expiredate of first term or timestamp of renewal as unixtimestamp
91
+ *
92
+ * @var int
93
+ */
94
+ protected $access_expiretime = NULL;
95
+
96
+ /**
97
+ * Canelationdate as unixtimestamp
98
+ *
99
+ * @var int
100
+ */
101
+ protected $access_canceltime = NULL;
102
+
103
+ /**
104
+ * Entire price of first term, must be equal to sum of amount * price. Must be in smallest currency unit
105
+ *
106
+ * @var int
107
+ */
108
+ protected $amount_trail = NULL;
109
+
110
+ /**
111
+ * Time unit of first term
112
+ *
113
+ * @var string
114
+ */
115
+ protected $period_unit_trail = NULL;
116
+
117
+ /**
118
+ * Lenght of first term
119
+ *
120
+ * @var int
121
+ */
122
+ protected $period_length_trail = NULL;
123
+
124
+ /**
125
+ * Entire price of all products in one renewal term. Must be in smallest currency unit
126
+ *
127
+ * @var int
128
+ */
129
+ protected $amount_recurring = NULL;
130
+
131
+ /**
132
+ * Time unit of renewal term
133
+ *
134
+ * @var string
135
+ */
136
+ protected $period_unit_recurring = NULL;
137
+
138
+ /**
139
+ * Length of renewal term
140
+ *
141
+ * @var int
142
+ */
143
+ protected $period_length_recurring = NULL;
144
+
145
+ /**
146
+ * Currency (ISO-4217)
147
+ *
148
+ * @var string
149
+ */
150
+ protected $currency = NULL;
151
+
152
+ /**
153
+ * @var Payone_Api_Request_Parameter_CreateAccess_Billing
154
+ */
155
+ protected $billing = null;
156
+ /**
157
+ * @var Payone_Api_Request_Parameter_CreateAccess_Invoicing_Transaction
158
+ */
159
+ protected $invoicing = null;
160
+ /**
161
+ * @var Payone_Api_Request_Parameter_CreateAccess_PersonalData
162
+ */
163
+ protected $personaldata = null;
164
+ /**
165
+ * @var Payone_Api_Request_Parameter_CreateAccess_PaymentMethod_Abstract
166
+ */
167
+ protected $payment = null;
168
+ /**
169
+ * @var Payone_Api_Request_Parameter_CreateAccess_3dsecure
170
+ */
171
+ protected $_3dsecure = null;
172
+
173
+
174
+ /**
175
+ * @param int $access_canceltime
176
+ */
177
+ public function setAccessCanceltime($access_canceltime)
178
+ {
179
+ $this->access_canceltime = $access_canceltime;
180
+ }
181
+
182
+ /**
183
+ * @return int
184
+ */
185
+ public function getAccessCanceltime()
186
+ {
187
+ return $this->access_canceltime;
188
+ }
189
+
190
+ /**
191
+ * @param int $access_expiretime
192
+ */
193
+ public function setAccessExpiretime($access_expiretime)
194
+ {
195
+ $this->access_expiretime = $access_expiretime;
196
+ }
197
+
198
+ /**
199
+ * @return int
200
+ */
201
+ public function getAccessExpiretime()
202
+ {
203
+ return $this->access_expiretime;
204
+ }
205
+
206
+ /**
207
+ * @param int $access_starttime
208
+ */
209
+ public function setAccessStarttime($access_starttime)
210
+ {
211
+ $this->access_starttime = $access_starttime;
212
+ }
213
+
214
+ /**
215
+ * @return int
216
+ */
217
+ public function getAccessStarttime()
218
+ {
219
+ return $this->access_starttime;
220
+ }
221
+
222
+ /**
223
+ * @param string $accesscode
224
+ */
225
+ public function setAccesscode($accesscode)
226
+ {
227
+ $this->accesscode = $accesscode;
228
+ }
229
+
230
+ /**
231
+ * @return string
232
+ */
233
+ public function getAccesscode()
234
+ {
235
+ return $this->accesscode;
236
+ }
237
+
238
+ /**
239
+ * @param string $accessname
240
+ */
241
+ public function setAccessname($accessname)
242
+ {
243
+ $this->accessname = $accessname;
244
+ }
245
+
246
+ /**
247
+ * @return string
248
+ */
249
+ public function getAccessname()
250
+ {
251
+ return $this->accessname;
252
+ }
253
+
254
+ /**
255
+ * @param int $aid
256
+ */
257
+ public function setAid($aid)
258
+ {
259
+ $this->aid = $aid;
260
+ }
261
+
262
+ /**
263
+ * @return int
264
+ */
265
+ public function getAid()
266
+ {
267
+ return $this->aid;
268
+ }
269
+
270
+ /**
271
+ * @param int $amount_recurring
272
+ */
273
+ public function setAmountRecurring($amount_recurring)
274
+ {
275
+ $this->amount_recurring = $amount_recurring;
276
+ }
277
+
278
+ /**
279
+ * @return int
280
+ */
281
+ public function getAmountRecurring()
282
+ {
283
+ return $this->amount_recurring;
284
+ }
285
+
286
+ /**
287
+ * @param int $amount_trail
288
+ */
289
+ public function setAmountTrail($amount_trail)
290
+ {
291
+ $this->amount_trail = $amount_trail;
292
+ }
293
+
294
+ /**
295
+ * @return int
296
+ */
297
+ public function getAmountTrail()
298
+ {
299
+ return $this->amount_trail;
300
+ }
301
+
302
+ /**
303
+ * @param string $clearingtype
304
+ */
305
+ public function setClearingtype($clearingtype)
306
+ {
307
+ $this->clearingtype = $clearingtype;
308
+ }
309
+
310
+ /**
311
+ * @return string
312
+ */
313
+ public function getClearingtype()
314
+ {
315
+ return $this->clearingtype;
316
+ }
317
+
318
+ /**
319
+ * @param string $param
320
+ */
321
+ public function setParam($param)
322
+ {
323
+ $this->param = $param;
324
+ }
325
+
326
+ /**
327
+ * @return string
328
+ */
329
+ public function getParam()
330
+ {
331
+ return $this->param;
332
+ }
333
+
334
+ /**
335
+ * @param int $period_length_recurring
336
+ */
337
+ public function setPeriodLengthRecurring($period_length_recurring)
338
+ {
339
+ $this->period_length_recurring = $period_length_recurring;
340
+ }
341
+
342
+ /**
343
+ * @return int
344
+ */
345
+ public function getPeriodLengthRecurring()
346
+ {
347
+ return $this->period_length_recurring;
348
+ }
349
+
350
+ /**
351
+ * @param int $period_length_trail
352
+ */
353
+ public function setPeriodLengthTrail($period_length_trail)
354
+ {
355
+ $this->period_length_trail = $period_length_trail;
356
+ }
357
+
358
+ /**
359
+ * @return int
360
+ */
361
+ public function getPeriodLengthTrail()
362
+ {
363
+ return $this->period_length_trail;
364
+ }
365
+
366
+ /**
367
+ * @param string $period_unit_recurring
368
+ */
369
+ public function setPeriodUnitRecurring($period_unit_recurring)
370
+ {
371
+ $this->period_unit_recurring = $period_unit_recurring;
372
+ }
373
+
374
+ /**
375
+ * @return string
376
+ */
377
+ public function getPeriodUnitRecurring()
378
+ {
379
+ return $this->period_unit_recurring;
380
+ }
381
+
382
+ /**
383
+ * @param string $period_unit_trail
384
+ */
385
+ public function setPeriodUnitTrail($period_unit_trail)
386
+ {
387
+ $this->period_unit_trail = $period_unit_trail;
388
+ }
389
+
390
+ /**
391
+ * @return string
392
+ */
393
+ public function getPeriodUnitTrail()
394
+ {
395
+ return $this->period_unit_trail;
396
+ }
397
+
398
+ /**
399
+ * @param int $productid
400
+ */
401
+ public function setProductid($productid)
402
+ {
403
+ $this->productid = $productid;
404
+ }
405
+
406
+ /**
407
+ * @return int
408
+ */
409
+ public function getProductid()
410
+ {
411
+ return $this->productid;
412
+ }
413
+
414
+ /**
415
+ * @param string $reference
416
+ */
417
+ public function setReference($reference)
418
+ {
419
+ $this->reference = $reference;
420
+ }
421
+
422
+ /**
423
+ * @return string
424
+ */
425
+ public function getReference()
426
+ {
427
+ return $this->reference;
428
+ }
429
+
430
+ /**
431
+ * @param \Payone_Api_Request_Parameter_CreateAccess_Billing $billing
432
+ */
433
+ public function setBilling(Payone_Api_Request_Parameter_CreateAccess_Billing $billing)
434
+ {
435
+ $this->billing = $billing;
436
+ }
437
+
438
+ /**
439
+ * @return \Payone_Api_Request_Parameter_CreateAccess_Billing
440
+ */
441
+ public function getBilling()
442
+ {
443
+ return $this->billing;
444
+ }
445
+
446
+ /**
447
+ * @param \Payone_Api_Request_Parameter_CreateAccess_Invoicing_Transaction $invoicing
448
+ */
449
+ public function setInvoicing(Payone_Api_Request_Parameter_CreateAccess_Invoicing_Transaction $invoicing)
450
+ {
451
+ $this->invoicing = $invoicing;
452
+ }
453
+
454
+ /**
455
+ * @return \Payone_Api_Request_Parameter_CreateAccess_Invoicing_Transaction
456
+ */
457
+ public function getInvoicing()
458
+ {
459
+ return $this->invoicing;
460
+ }
461
+
462
+ /**
463
+ * @param \Payone_Api_Request_Parameter_CreateAccess_PaymentMethod_Abstract $payment
464
+ */
465
+ public function setPayment(Payone_Api_Request_Parameter_CreateAccess_PaymentMethod_Abstract $payment)
466
+ {
467
+ $this->payment = $payment;
468
+ }
469
+
470
+ /**
471
+ * @return \Payone_Api_Request_Parameter_CreateAccess_PaymentMethod_Abstract
472
+ */
473
+ public function getPayment()
474
+ {
475
+ return $this->payment;
476
+ }
477
+
478
+ /**
479
+ * @param \Payone_Api_Request_Parameter_CreateAccess_PersonalData $personaldata
480
+ */
481
+ public function setPersonaldata(Payone_Api_Request_Parameter_CreateAccess_PersonalData $personaldata)
482
+ {
483
+ $this->personaldata = $personaldata;
484
+ }
485
+
486
+ /**
487
+ * @return \Payone_Api_Request_Parameter_CreateAccess_PersonalData
488
+ */
489
+ public function getPersonaldata()
490
+ {
491
+ return $this->personaldata;
492
+ }
493
+
494
+ /**
495
+ * @param \Payone_Api_Request_Parameter_CreateAccess_3dsecure $secure
496
+ */
497
+ public function set3dsecure(Payone_Api_Request_Parameter_CreateAccess_3dsecure $secure)
498
+ {
499
+ $this->_3dsecure = $secure;
500
+ }
501
+
502
+ /**
503
+ * @return \Payone_Api_Request_Parameter_CreateAccess_3dsecure
504
+ */
505
+ public function get3dsecure()
506
+ {
507
+ return $this->_3dsecure;
508
+ }
509
+
510
+ /**
511
+ * @param string $currency
512
+ */
513
+ public function setCurrency($currency)
514
+ {
515
+ $this->currency = $currency;
516
+ }
517
+
518
+ /**
519
+ * @return string
520
+ */
521
+ public function getCurrency()
522
+ {
523
+ return $this->currency;
524
+ }
525
+
526
+ }
lib/Payone/Api/Request/CreditCardCheck.php CHANGED
@@ -1,197 +1,197 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_CreditCardCheck extends Payone_Api_Request_Abstract
34
- {
35
- protected $request = Payone_Api_Enum_RequestType::CREDITCARDCHECK;
36
-
37
- /**
38
- * @var int
39
- */
40
- protected $aid = NULL;
41
- /**
42
- * @var string
43
- */
44
- protected $cardpan = NULL;
45
- /**
46
- * @var string
47
- */
48
- protected $cardtype = NULL;
49
- /**
50
- * @var int
51
- */
52
- protected $cardexpiredate = NULL;
53
- /**
54
- * @var int
55
- */
56
- protected $cardcvc2 = NULL;
57
- /**
58
- * @var int
59
- */
60
- protected $cardissuenumber = NULL;
61
- /**
62
- * @var string
63
- */
64
- protected $storecarddata = NULL;
65
- /**
66
- * @var string
67
- */
68
- protected $language = NULL;
69
-
70
- /**
71
- * @param int $aid
72
- */
73
- public function setAid($aid)
74
- {
75
- $this->aid = $aid;
76
- }
77
-
78
- /**
79
- * @return int
80
- */
81
- public function getAid()
82
- {
83
- return $this->aid;
84
- }
85
-
86
- /**
87
- * @param int $cardcvc2
88
- */
89
- public function setCardcvc2($cardcvc2)
90
- {
91
- $this->cardcvc2 = $cardcvc2;
92
- }
93
-
94
- /**
95
- * @return int
96
- */
97
- public function getCardcvc2()
98
- {
99
- return $this->cardcvc2;
100
- }
101
-
102
- /**
103
- * @param int $cardexpiredate
104
- */
105
- public function setCardexpiredate($cardexpiredate)
106
- {
107
- $this->cardexpiredate = $cardexpiredate;
108
- }
109
-
110
- /**
111
- * @return int
112
- */
113
- public function getCardexpiredate()
114
- {
115
- return $this->cardexpiredate;
116
- }
117
-
118
- /**
119
- * @param int $cardissuenumber
120
- */
121
- public function setCardissuenumber($cardissuenumber)
122
- {
123
- $this->cardissuenumber = $cardissuenumber;
124
- }
125
-
126
- /**
127
- * @return int
128
- */
129
- public function getCardissuenumber()
130
- {
131
- return $this->cardissuenumber;
132
- }
133
-
134
- /**
135
- * @param string $cardpan
136
- */
137
- public function setCardpan($cardpan)
138
- {
139
- $this->cardpan = $cardpan;
140
- }
141
-
142
- /**
143
- * @return string
144
- */
145
- public function getCardpan()
146
- {
147
- return $this->cardpan;
148
- }
149
-
150
- /**
151
- * @param string $cardtype
152
- */
153
- public function setCardtype($cardtype)
154
- {
155
- $this->cardtype = $cardtype;
156
- }
157
-
158
- /**
159
- * @return string
160
- */
161
- public function getCardtype()
162
- {
163
- return $this->cardtype;
164
- }
165
-
166
- /**
167
- * @param string $language
168
- */
169
- public function setLanguage($language)
170
- {
171
- $this->language = $language;
172
- }
173
-
174
- /**
175
- * @return string
176
- */
177
- public function getLanguage()
178
- {
179
- return $this->language;
180
- }
181
-
182
- /**
183
- * @param string $storecarddata
184
- */
185
- public function setStorecarddata($storecarddata)
186
- {
187
- $this->storecarddata = $storecarddata;
188
- }
189
-
190
- /**
191
- * @return string
192
- */
193
- public function getStorecarddata()
194
- {
195
- return $this->storecarddata;
196
- }
197
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_CreditCardCheck extends Payone_Api_Request_Abstract
34
+ {
35
+ protected $request = Payone_Api_Enum_RequestType::CREDITCARDCHECK;
36
+
37
+ /**
38
+ * @var int
39
+ */
40
+ protected $aid = NULL;
41
+ /**
42
+ * @var string
43
+ */
44
+ protected $cardpan = NULL;
45
+ /**
46
+ * @var string
47
+ */
48
+ protected $cardtype = NULL;
49
+ /**
50
+ * @var int
51
+ */
52
+ protected $cardexpiredate = NULL;
53
+ /**
54
+ * @var int
55
+ */
56
+ protected $cardcvc2 = NULL;
57
+ /**
58
+ * @var int
59
+ */
60
+ protected $cardissuenumber = NULL;
61
+ /**
62
+ * @var string
63
+ */
64
+ protected $storecarddata = NULL;
65
+ /**
66
+ * @var string
67
+ */
68
+ protected $language = NULL;
69
+
70
+ /**
71
+ * @param int $aid
72
+ */
73
+ public function setAid($aid)
74
+ {
75
+ $this->aid = $aid;
76
+ }
77
+
78
+ /**
79
+ * @return int
80
+ */
81
+ public function getAid()
82
+ {
83
+ return $this->aid;
84
+ }
85
+
86
+ /**
87
+ * @param int $cardcvc2
88
+ */
89
+ public function setCardcvc2($cardcvc2)
90
+ {
91
+ $this->cardcvc2 = $cardcvc2;
92
+ }
93
+
94
+ /**
95
+ * @return int
96
+ */
97
+ public function getCardcvc2()
98
+ {
99
+ return $this->cardcvc2;
100
+ }
101
+
102
+ /**
103
+ * @param int $cardexpiredate
104
+ */
105
+ public function setCardexpiredate($cardexpiredate)
106
+ {
107
+ $this->cardexpiredate = $cardexpiredate;
108
+ }
109
+
110
+ /**
111
+ * @return int
112
+ */
113
+ public function getCardexpiredate()
114
+ {
115
+ return $this->cardexpiredate;
116
+ }
117
+
118
+ /**
119
+ * @param int $cardissuenumber
120
+ */
121
+ public function setCardissuenumber($cardissuenumber)
122
+ {
123
+ $this->cardissuenumber = $cardissuenumber;
124
+ }
125
+
126
+ /**
127
+ * @return int
128
+ */
129
+ public function getCardissuenumber()
130
+ {
131
+ return $this->cardissuenumber;
132
+ }
133
+
134
+ /**
135
+ * @param string $cardpan
136
+ */
137
+ public function setCardpan($cardpan)
138
+ {
139
+ $this->cardpan = $cardpan;
140
+ }
141
+
142
+ /**
143
+ * @return string
144
+ */
145
+ public function getCardpan()
146
+ {
147
+ return $this->cardpan;
148
+ }
149
+
150
+ /**
151
+ * @param string $cardtype
152
+ */
153
+ public function setCardtype($cardtype)
154
+ {
155
+ $this->cardtype = $cardtype;
156
+ }
157
+
158
+ /**
159
+ * @return string
160
+ */
161
+ public function getCardtype()
162
+ {
163
+ return $this->cardtype;
164
+ }
165
+
166
+ /**
167
+ * @param string $language
168
+ */
169
+ public function setLanguage($language)
170
+ {
171
+ $this->language = $language;
172
+ }
173
+
174
+ /**
175
+ * @return string
176
+ */
177
+ public function getLanguage()
178
+ {
179
+ return $this->language;
180
+ }
181
+
182
+ /**
183
+ * @param string $storecarddata
184
+ */
185
+ public function setStorecarddata($storecarddata)
186
+ {
187
+ $this->storecarddata = $storecarddata;
188
+ }
189
+
190
+ /**
191
+ * @return string
192
+ */
193
+ public function getStorecarddata()
194
+ {
195
+ return $this->storecarddata;
196
+ }
197
+ }
lib/Payone/Api/Request/Debit.php CHANGED
@@ -1,239 +1,239 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Debit extends Payone_Api_Request_Abstract
34
- {
35
- protected $request = Payone_Api_Enum_RequestType::DEBIT;
36
-
37
- /**
38
- * @var string
39
- */
40
- protected $txid = NULL;
41
- /**
42
- * @var int
43
- */
44
- protected $sequencenumber = NULL;
45
- /**
46
- * @var int
47
- */
48
- protected $amount = NULL;
49
- /**
50
- * @var string
51
- */
52
- protected $currency = NULL;
53
- /**
54
- * @var string
55
- */
56
- protected $clearingtype = NULL;
57
- /**
58
- * @var string
59
- */
60
- protected $use_customerdata = NULL;
61
-
62
- /**
63
- * @var Payone_Api_Request_Parameter_Debit_Business
64
- */
65
- protected $business = null;
66
- /**
67
- * @var Payone_Api_Request_Parameter_Debit_PaymentMethod_Abstract
68
- */
69
- protected $payment = null;
70
- /**
71
- * @var Payone_Api_Request_Parameter_Invoicing_Transaction
72
- */
73
- protected $invoicing = null;
74
-
75
- /**
76
- * @var string
77
- */
78
- protected $narrative_text = null;
79
-
80
- /**
81
- * @param int $amount
82
- */
83
- public function setAmount($amount)
84
- {
85
- $this->amount = $amount;
86
- }
87
-
88
- /**
89
- * @return int
90
- */
91
- public function getAmount()
92
- {
93
- return $this->amount;
94
- }
95
-
96
- /**
97
- * @param \Payone_Api_Request_Parameter_Debit_Business $business
98
- */
99
- public function setBusiness($business)
100
- {
101
- $this->business = $business;
102
- }
103
-
104
- /**
105
- * @return \Payone_Api_Request_Parameter_Debit_Business
106
- */
107
- public function getBusiness()
108
- {
109
- return $this->business;
110
- }
111
-
112
- /**
113
- * @param string $clearingtype
114
- */
115
- public function setClearingtype($clearingtype)
116
- {
117
- $this->clearingtype = $clearingtype;
118
- }
119
-
120
- /**
121
- * @return string
122
- */
123
- public function getClearingtype()
124
- {
125
- return $this->clearingtype;
126
- }
127
-
128
- /**
129
- * @param string $currency
130
- */
131
- public function setCurrency($currency)
132
- {
133
- $this->currency = $currency;
134
- }
135
-
136
- /**
137
- * @return string
138
- */
139
- public function getCurrency()
140
- {
141
- return $this->currency;
142
- }
143
-
144
- /**
145
- * @param \Payone_Api_Request_Parameter_Invoicing_Transaction $invoicing
146
- */
147
- public function setInvoicing($invoicing)
148
- {
149
- $this->invoicing = $invoicing;
150
- }
151
-
152
- /**
153
- * @return \Payone_Api_Request_Parameter_Invoicing_Transaction
154
- */
155
- public function getInvoicing()
156
- {
157
- return $this->invoicing;
158
- }
159
-
160
- /**
161
- * @param \Payone_Api_Request_Parameter_Debit_PaymentMethod_Abstract $payment
162
- */
163
- public function setPayment($payment)
164
- {
165
- $this->payment = $payment;
166
- }
167
-
168
- /**
169
- * @return \Payone_Api_Request_Parameter_Debit_PaymentMethod_Abstract
170
- */
171
- public function getPayment()
172
- {
173
- return $this->payment;
174
- }
175
-
176
- /**
177
- * @param int $sequencenumber
178
- */
179
- public function setSequencenumber($sequencenumber)
180
- {
181
- $this->sequencenumber = $sequencenumber;
182
- }
183
-
184
- /**
185
- * @return int
186
- */
187
- public function getSequencenumber()
188
- {
189
- return $this->sequencenumber;
190
- }
191
-
192
- /**
193
- * @param string $txid
194
- */
195
- public function setTxid($txid)
196
- {
197
- $this->txid = $txid;
198
- }
199
-
200
- /**
201
- * @return string
202
- */
203
- public function getTxid()
204
- {
205
- return $this->txid;
206
- }
207
-
208
- /**
209
- * @param string $use_customerdata
210
- */
211
- public function setUseCustomerdata($use_customerdata)
212
- {
213
- $this->use_customerdata = $use_customerdata;
214
- }
215
-
216
- /**
217
- * @return string
218
- */
219
- public function getUseCustomerdata()
220
- {
221
- return $this->use_customerdata;
222
- }
223
-
224
- /**
225
- * @return null
226
- */
227
- public function getNarrativeText()
228
- {
229
- return $this->narrative_text;
230
- }
231
-
232
- /**
233
- * @param null $narrative_text
234
- */
235
- public function setNarrativeText($narrative_text)
236
- {
237
- $this->narrative_text = $narrative_text;
238
- }
239
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Debit extends Payone_Api_Request_Abstract
34
+ {
35
+ protected $request = Payone_Api_Enum_RequestType::DEBIT;
36
+
37
+ /**
38
+ * @var string
39
+ */
40
+ protected $txid = NULL;
41
+ /**
42
+ * @var int
43
+ */
44
+ protected $sequencenumber = NULL;
45
+ /**
46
+ * @var int
47
+ */
48
+ protected $amount = NULL;
49
+ /**
50
+ * @var string
51
+ */
52
+ protected $currency = NULL;
53
+ /**
54
+ * @var string
55
+ */
56
+ protected $clearingtype = NULL;
57
+ /**
58
+ * @var string
59
+ */
60
+ protected $use_customerdata = NULL;
61
+
62
+ /**
63
+ * @var Payone_Api_Request_Parameter_Debit_Business
64
+ */
65
+ protected $business = null;
66
+ /**
67
+ * @var Payone_Api_Request_Parameter_Debit_PaymentMethod_Abstract
68
+ */
69
+ protected $payment = null;
70
+ /**
71
+ * @var Payone_Api_Request_Parameter_Invoicing_Transaction
72
+ */
73
+ protected $invoicing = null;
74
+
75
+ /**
76
+ * @var string
77
+ */
78
+ protected $narrative_text = null;
79
+
80
+ /**
81
+ * @param int $amount
82
+ */
83
+ public function setAmount($amount)
84
+ {
85
+ $this->amount = $amount;
86
+ }
87
+
88
+ /**
89
+ * @return int
90
+ */
91
+ public function getAmount()
92
+ {
93
+ return $this->amount;
94
+ }
95
+
96
+ /**
97
+ * @param \Payone_Api_Request_Parameter_Debit_Business $business
98
+ */
99
+ public function setBusiness($business)
100
+ {
101
+ $this->business = $business;
102
+ }
103
+
104
+ /**
105
+ * @return \Payone_Api_Request_Parameter_Debit_Business
106
+ */
107
+ public function getBusiness()
108
+ {
109
+ return $this->business;
110
+ }
111
+
112
+ /**
113
+ * @param string $clearingtype
114
+ */
115
+ public function setClearingtype($clearingtype)
116
+ {
117
+ $this->clearingtype = $clearingtype;
118
+ }
119
+
120
+ /**
121
+ * @return string
122
+ */
123
+ public function getClearingtype()
124
+ {
125
+ return $this->clearingtype;
126
+ }
127
+
128
+ /**
129
+ * @param string $currency
130
+ */
131
+ public function setCurrency($currency)
132
+ {
133
+ $this->currency = $currency;
134
+ }
135
+
136
+ /**
137
+ * @return string
138
+ */
139
+ public function getCurrency()
140
+ {
141
+ return $this->currency;
142
+ }
143
+
144
+ /**
145
+ * @param \Payone_Api_Request_Parameter_Invoicing_Transaction $invoicing
146
+ */
147
+ public function setInvoicing($invoicing)
148
+ {
149
+ $this->invoicing = $invoicing;
150
+ }
151
+
152
+ /**
153
+ * @return \Payone_Api_Request_Parameter_Invoicing_Transaction
154
+ */
155
+ public function getInvoicing()
156
+ {
157
+ return $this->invoicing;
158
+ }
159
+
160
+ /**
161
+ * @param \Payone_Api_Request_Parameter_Debit_PaymentMethod_Abstract $payment
162
+ */
163
+ public function setPayment($payment)
164
+ {
165
+ $this->payment = $payment;
166
+ }
167
+
168
+ /**
169
+ * @return \Payone_Api_Request_Parameter_Debit_PaymentMethod_Abstract
170
+ */
171
+ public function getPayment()
172
+ {
173
+ return $this->payment;
174
+ }
175
+
176
+ /**
177
+ * @param int $sequencenumber
178
+ */
179
+ public function setSequencenumber($sequencenumber)
180
+ {
181
+ $this->sequencenumber = $sequencenumber;
182
+ }
183
+
184
+ /**
185
+ * @return int
186
+ */
187
+ public function getSequencenumber()
188
+ {
189
+ return $this->sequencenumber;
190
+ }
191
+
192
+ /**
193
+ * @param string $txid
194
+ */
195
+ public function setTxid($txid)
196
+ {
197
+ $this->txid = $txid;
198
+ }
199
+
200
+ /**
201
+ * @return string
202
+ */
203
+ public function getTxid()
204
+ {
205
+ return $this->txid;
206
+ }
207
+
208
+ /**
209
+ * @param string $use_customerdata
210
+ */
211
+ public function setUseCustomerdata($use_customerdata)
212
+ {
213
+ $this->use_customerdata = $use_customerdata;
214
+ }
215
+
216
+ /**
217
+ * @return string
218
+ */
219
+ public function getUseCustomerdata()
220
+ {
221
+ return $this->use_customerdata;
222
+ }
223
+
224
+ /**
225
+ * @return null
226
+ */
227
+ public function getNarrativeText()
228
+ {
229
+ return $this->narrative_text;
230
+ }
231
+
232
+ /**
233
+ * @param null $narrative_text
234
+ */
235
+ public function setNarrativeText($narrative_text)
236
+ {
237
+ $this->narrative_text = $narrative_text;
238
+ }
239
+ }
lib/Payone/Api/Request/GetFile.php CHANGED
@@ -1,98 +1,98 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_GetFile extends Payone_Api_Request_Abstract
34
- {
35
- protected $request = Payone_Api_Enum_RequestType::GETFILE;
36
-
37
- /**
38
- * @var int
39
- */
40
- protected $file_reference = NULL;
41
- /**
42
- * @var string
43
- */
44
- protected $file_type = NULL;
45
- /**
46
- * @var string
47
- */
48
- protected $file_format = NULL;
49
-
50
-
51
- /**
52
- * @param int $fileReference
53
- */
54
- public function setFileReference($fileReference)
55
- {
56
- $this->file_reference = $fileReference;
57
- }
58
-
59
- /**
60
- * @return int
61
- */
62
- public function getFileReference()
63
- {
64
- return $this->file_reference;
65
- }
66
-
67
- /**
68
- * @param string $fileType
69
- */
70
- public function setFileType($fileType)
71
- {
72
- $this->file_type = $fileType;
73
- }
74
-
75
- /**
76
- * @return string
77
- */
78
- public function getFileType()
79
- {
80
- return $this->file_type;
81
- }
82
-
83
- /**
84
- * @param string $fileFormat
85
- */
86
- public function setFileFormat($fileFormat)
87
- {
88
- $this->file_format = $fileFormat;
89
- }
90
-
91
- /**
92
- * @return string
93
- */
94
- public function getFileFormat()
95
- {
96
- return $this->file_format;
97
- }
98
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_GetFile extends Payone_Api_Request_Abstract
34
+ {
35
+ protected $request = Payone_Api_Enum_RequestType::GETFILE;
36
+
37
+ /**
38
+ * @var int
39
+ */
40
+ protected $file_reference = NULL;
41
+ /**
42
+ * @var string
43
+ */
44
+ protected $file_type = NULL;
45
+ /**
46
+ * @var string
47
+ */
48
+ protected $file_format = NULL;
49
+
50
+
51
+ /**
52
+ * @param int $fileReference
53
+ */
54
+ public function setFileReference($fileReference)
55
+ {
56
+ $this->file_reference = $fileReference;
57
+ }
58
+
59
+ /**
60
+ * @return int
61
+ */
62
+ public function getFileReference()
63
+ {
64
+ return $this->file_reference;
65
+ }
66
+
67
+ /**
68
+ * @param string $fileType
69
+ */
70
+ public function setFileType($fileType)
71
+ {
72
+ $this->file_type = $fileType;
73
+ }
74
+
75
+ /**
76
+ * @return string
77
+ */
78
+ public function getFileType()
79
+ {
80
+ return $this->file_type;
81
+ }
82
+
83
+ /**
84
+ * @param string $fileFormat
85
+ */
86
+ public function setFileFormat($fileFormat)
87
+ {
88
+ $this->file_format = $fileFormat;
89
+ }
90
+
91
+ /**
92
+ * @return string
93
+ */
94
+ public function getFileFormat()
95
+ {
96
+ return $this->file_format;
97
+ }
98
+ }
lib/Payone/Api/Request/GetInvoice.php CHANGED
@@ -1,57 +1,57 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_GetInvoice extends Payone_Api_Request_Abstract
34
- {
35
- protected $request = Payone_Api_Enum_RequestType::GETINVOICE;
36
-
37
- /**
38
- * @var string
39
- */
40
- protected $invoice_title = null;
41
-
42
- /**
43
- * @param string $invoice_title
44
- */
45
- public function setInvoiceTitle($invoice_title)
46
- {
47
- $this->invoice_title = $invoice_title;
48
- }
49
-
50
- /**
51
- * @return string
52
- */
53
- public function getInvoiceTitle()
54
- {
55
- return $this->invoice_title;
56
- }
57
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_GetInvoice extends Payone_Api_Request_Abstract
34
+ {
35
+ protected $request = Payone_Api_Enum_RequestType::GETINVOICE;
36
+
37
+ /**
38
+ * @var string
39
+ */
40
+ protected $invoice_title = null;
41
+
42
+ /**
43
+ * @param string $invoice_title
44
+ */
45
+ public function setInvoiceTitle($invoice_title)
46
+ {
47
+ $this->invoice_title = $invoice_title;
48
+ }
49
+
50
+ /**
51
+ * @return string
52
+ */
53
+ public function getInvoiceTitle()
54
+ {
55
+ return $this->invoice_title;
56
+ }
57
+ }
lib/Payone/Api/Request/ManageMandate.php CHANGED
@@ -1,161 +1,161 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_ManageMandate extends Payone_Api_Request_Abstract
34
- {
35
- protected $request = Payone_Api_Enum_RequestType::MANAGEMANDATE;
36
-
37
- /**
38
- * @var int
39
- */
40
- protected $aid = NULL;
41
- /**
42
- * @var string
43
- */
44
- protected $clearingtype = NULL;
45
- /**
46
- * @var string
47
- */
48
- protected $mandate_identification = NULL;
49
- /**
50
- * Currency (ISO 4217)
51
- *
52
- * @var string
53
- */
54
- protected $currency = NULL;
55
-
56
-
57
- /**
58
- * @var Payone_Api_Request_Parameter_ManageMandate_PersonalData
59
- */
60
- protected $personalData = null;
61
- /**
62
- * @var Payone_Api_Request_Parameter_ManageMandate_PaymentMethod_Abstract
63
- */
64
- protected $payment = null;
65
-
66
- /**
67
- * @param int $aid
68
- */
69
- public function setAid($aid)
70
- {
71
- $this->aid = $aid;
72
- }
73
-
74
- /**
75
- * @return int
76
- */
77
- public function getAid()
78
- {
79
- return $this->aid;
80
- }
81
-
82
- /**
83
- * @param string $clearingtype
84
- */
85
- public function setClearingtype($clearingtype)
86
- {
87
- $this->clearingtype = $clearingtype;
88
- }
89
-
90
- /**
91
- * @return string
92
- */
93
- public function getClearingtype()
94
- {
95
- return $this->clearingtype;
96
- }
97
-
98
- /**
99
- * @param string $mandateIdentification
100
- */
101
- public function setMandateIdentification($mandateIdentification)
102
- {
103
- $this->mandate_identification = $mandateIdentification;
104
- }
105
-
106
- /**
107
- * @return string
108
- */
109
- public function getMandateIdentification()
110
- {
111
- return $this->mandate_identification;
112
- }
113
-
114
- /**
115
- * @param string $currency
116
- */
117
- public function setCurrency($currency)
118
- {
119
- $this->currency = $currency;
120
- }
121
-
122
- /**
123
- * @return string
124
- */
125
- public function getCurrency()
126
- {
127
- return $this->currency;
128
- }
129
-
130
- /**
131
- * @param \Payone_Api_Request_Parameter_ManageMandate_PersonalData $personalData
132
- */
133
- public function setPersonalData($personalData)
134
- {
135
- $this->personalData = $personalData;
136
- }
137
-
138
- /**
139
- * @return \Payone_Api_Request_Parameter_ManageMandate_PersonalData
140
- */
141
- public function getPersonalData()
142
- {
143
- return $this->personalData;
144
- }
145
-
146
- /**
147
- * @param \Payone_Api_Request_Parameter_ManageMandate_PaymentMethod_Abstract $payment
148
- */
149
- public function setPayment($payment)
150
- {
151
- $this->payment = $payment;
152
- }
153
-
154
- /**
155
- * @return \Payone_Api_Request_Parameter_ManageMandate_PaymentMethod_Abstract
156
- */
157
- public function getPayment()
158
- {
159
- return $this->payment;
160
- }
161
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_ManageMandate extends Payone_Api_Request_Abstract
34
+ {
35
+ protected $request = Payone_Api_Enum_RequestType::MANAGEMANDATE;
36
+
37
+ /**
38
+ * @var int
39
+ */
40
+ protected $aid = NULL;
41
+ /**
42
+ * @var string
43
+ */
44
+ protected $clearingtype = NULL;
45
+ /**
46
+ * @var string
47
+ */
48
+ protected $mandate_identification = NULL;
49
+ /**
50
+ * Currency (ISO 4217)
51
+ *
52
+ * @var string
53
+ */
54
+ protected $currency = NULL;
55
+
56
+
57
+ /**
58
+ * @var Payone_Api_Request_Parameter_ManageMandate_PersonalData
59
+ */
60
+ protected $personalData = null;
61
+ /**
62
+ * @var Payone_Api_Request_Parameter_ManageMandate_PaymentMethod_Abstract
63
+ */
64
+ protected $payment = null;
65
+
66
+ /**
67
+ * @param int $aid
68
+ */
69
+ public function setAid($aid)
70
+ {
71
+ $this->aid = $aid;
72
+ }
73
+
74
+ /**
75
+ * @return int
76
+ */
77
+ public function getAid()
78
+ {
79
+ return $this->aid;
80
+ }
81
+
82
+ /**
83
+ * @param string $clearingtype
84
+ */
85
+ public function setClearingtype($clearingtype)
86
+ {
87
+ $this->clearingtype = $clearingtype;
88
+ }
89
+
90
+ /**
91
+ * @return string
92
+ */
93
+ public function getClearingtype()
94
+ {
95
+ return $this->clearingtype;
96
+ }
97
+
98
+ /**
99
+ * @param string $mandateIdentification
100
+ */
101
+ public function setMandateIdentification($mandateIdentification)
102
+ {
103
+ $this->mandate_identification = $mandateIdentification;
104
+ }
105
+
106
+ /**
107
+ * @return string
108
+ */
109
+ public function getMandateIdentification()
110
+ {
111
+ return $this->mandate_identification;
112
+ }
113
+
114
+ /**
115
+ * @param string $currency
116
+ */
117
+ public function setCurrency($currency)
118
+ {
119
+ $this->currency = $currency;
120
+ }
121
+
122
+ /**
123
+ * @return string
124
+ */
125
+ public function getCurrency()
126
+ {
127
+ return $this->currency;
128
+ }
129
+
130
+ /**
131
+ * @param \Payone_Api_Request_Parameter_ManageMandate_PersonalData $personalData
132
+ */
133
+ public function setPersonalData($personalData)
134
+ {
135
+ $this->personalData = $personalData;
136
+ }
137
+
138
+ /**
139
+ * @return \Payone_Api_Request_Parameter_ManageMandate_PersonalData
140
+ */
141
+ public function getPersonalData()
142
+ {
143
+ return $this->personalData;
144
+ }
145
+
146
+ /**
147
+ * @param \Payone_Api_Request_Parameter_ManageMandate_PaymentMethod_Abstract $payment
148
+ */
149
+ public function setPayment($payment)
150
+ {
151
+ $this->payment = $payment;
152
+ }
153
+
154
+ /**
155
+ * @return \Payone_Api_Request_Parameter_ManageMandate_PaymentMethod_Abstract
156
+ */
157
+ public function getPayment()
158
+ {
159
+ return $this->payment;
160
+ }
161
+ }
lib/Payone/Api/Request/Parameter/Authorization/3dsecure.php CHANGED
@@ -1,96 +1,96 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_Authorization_3dsecure
34
- extends Payone_Api_Request_Parameter_Authorization_Abstract
35
- {
36
- /**
37
- * @var string
38
- */
39
- protected $xid = NULL;
40
- /**
41
- * @var string
42
- */
43
- protected $cavv = NULL;
44
- /**
45
- * @var string
46
- */
47
- protected $eci = NULL;
48
-
49
- /**
50
- * @param string $cavv
51
- */
52
- public function setCavv($cavv)
53
- {
54
- $this->cavv = $cavv;
55
- }
56
-
57
- /**
58
- * @return string
59
- */
60
- public function getCavv()
61
- {
62
- return $this->cavv;
63
- }
64
-
65
- /**
66
- * @param string $eci
67
- */
68
- public function setEci($eci)
69
- {
70
- $this->eci = $eci;
71
- }
72
-
73
- /**
74
- * @return string
75
- */
76
- public function getEci()
77
- {
78
- return $this->eci;
79
- }
80
-
81
- /**
82
- * @param string $xid
83
- */
84
- public function setXid($xid)
85
- {
86
- $this->xid = $xid;
87
- }
88
-
89
- /**
90
- * @return string
91
- */
92
- public function getXid()
93
- {
94
- return $this->xid;
95
- }
96
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_Authorization_3dsecure
34
+ extends Payone_Api_Request_Parameter_Authorization_Abstract
35
+ {
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $xid = NULL;
40
+ /**
41
+ * @var string
42
+ */
43
+ protected $cavv = NULL;
44
+ /**
45
+ * @var string
46
+ */
47
+ protected $eci = NULL;
48
+
49
+ /**
50
+ * @param string $cavv
51
+ */
52
+ public function setCavv($cavv)
53
+ {
54
+ $this->cavv = $cavv;
55
+ }
56
+
57
+ /**
58
+ * @return string
59
+ */
60
+ public function getCavv()
61
+ {
62
+ return $this->cavv;
63
+ }
64
+
65
+ /**
66
+ * @param string $eci
67
+ */
68
+ public function setEci($eci)
69
+ {
70
+ $this->eci = $eci;
71
+ }
72
+
73
+ /**
74
+ * @return string
75
+ */
76
+ public function getEci()
77
+ {
78
+ return $this->eci;
79
+ }
80
+
81
+ /**
82
+ * @param string $xid
83
+ */
84
+ public function setXid($xid)
85
+ {
86
+ $this->xid = $xid;
87
+ }
88
+
89
+ /**
90
+ * @return string
91
+ */
92
+ public function getXid()
93
+ {
94
+ return $this->xid;
95
+ }
96
+ }
lib/Payone/Api/Request/Parameter/Authorization/Abstract.php CHANGED
@@ -1,40 +1,40 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
-
34
-
35
-
36
- abstract class Payone_Api_Request_Parameter_Authorization_Abstract
37
- extends Payone_Api_Request_Parameter_Abstract
38
- {
39
-
40
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+
34
+
35
+
36
+ abstract class Payone_Api_Request_Parameter_Authorization_Abstract
37
+ extends Payone_Api_Request_Parameter_Abstract
38
+ {
39
+
40
+ }
lib/Payone/Api/Request/Parameter/Authorization/Business.php CHANGED
@@ -1,102 +1,102 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_Authorization_Business
34
- extends Payone_Api_Request_Parameter_Authorization_Abstract
35
- {
36
- /**
37
- * (YYYYMMDD)
38
- *
39
- * @var string
40
- */
41
- protected $document_date = NULL;
42
- /**
43
- * (YYYYMMDD)
44
- *
45
- * @var string
46
- */
47
- protected $booking_date = NULL;
48
- /**
49
- * (Unixtimestamp)
50
- *
51
- * @var string
52
- */
53
- protected $due_time = NULL;
54
-
55
- /**
56
- * @param string $booking_date
57
- */
58
- public function setBookingDate($booking_date)
59
- {
60
- $this->booking_date = $booking_date;
61
- }
62
-
63
- /**
64
- * @return string
65
- */
66
- public function getBookingDate()
67
- {
68
- return $this->booking_date;
69
- }
70
-
71
- /**
72
- * @param string $document_date
73
- */
74
- public function setDocumentDate($document_date)
75
- {
76
- $this->document_date = $document_date;
77
- }
78
-
79
- /**
80
- * @return string
81
- */
82
- public function getDocumentDate()
83
- {
84
- return $this->document_date;
85
- }
86
-
87
- /**
88
- * @param string $due_time
89
- */
90
- public function setDueTime($due_time)
91
- {
92
- $this->due_time = $due_time;
93
- }
94
-
95
- /**
96
- * @return string
97
- */
98
- public function getDueTime()
99
- {
100
- return $this->due_time;
101
- }
102
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_Authorization_Business
34
+ extends Payone_Api_Request_Parameter_Authorization_Abstract
35
+ {
36
+ /**
37
+ * (YYYYMMDD)
38
+ *
39
+ * @var string
40
+ */
41
+ protected $document_date = NULL;
42
+ /**
43
+ * (YYYYMMDD)
44
+ *
45
+ * @var string
46
+ */
47
+ protected $booking_date = NULL;
48
+ /**
49
+ * (Unixtimestamp)
50
+ *
51
+ * @var string
52
+ */
53
+ protected $due_time = NULL;
54
+
55
+ /**
56
+ * @param string $booking_date
57
+ */
58
+ public function setBookingDate($booking_date)
59
+ {
60
+ $this->booking_date = $booking_date;
61
+ }
62
+
63
+ /**
64
+ * @return string
65
+ */
66
+ public function getBookingDate()
67
+ {
68
+ return $this->booking_date;
69
+ }
70
+
71
+ /**
72
+ * @param string $document_date
73
+ */
74
+ public function setDocumentDate($document_date)
75
+ {
76
+ $this->document_date = $document_date;
77
+ }
78
+
79
+ /**
80
+ * @return string
81
+ */
82
+ public function getDocumentDate()
83
+ {
84
+ return $this->document_date;
85
+ }
86
+
87
+ /**
88
+ * @param string $due_time
89
+ */
90
+ public function setDueTime($due_time)
91
+ {
92
+ $this->due_time = $due_time;
93
+ }
94
+
95
+ /**
96
+ * @return string
97
+ */
98
+ public function getDueTime()
99
+ {
100
+ return $this->due_time;
101
+ }
102
+ }
lib/Payone/Api/Request/Parameter/Authorization/DeliveryData.php CHANGED
@@ -1,221 +1,221 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_Authorization_DeliveryData
34
- extends Payone_Api_Request_Parameter_Authorization_Abstract
35
- {
36
- /**
37
- * @var string
38
- */
39
- protected $shipping_firstname = NULL;
40
- /**
41
- * @var string
42
- */
43
- protected $shipping_lastname = NULL;
44
- /**
45
- * @var string
46
- */
47
- protected $shipping_company = NULL;
48
- /**
49
- * @var string
50
- */
51
- protected $shipping_street = NULL;
52
- /**
53
- * @var string
54
- */
55
- protected $shipping_zip = NULL;
56
- /**
57
- * @var string
58
- */
59
- protected $shipping_city = NULL;
60
- /**
61
- * ISO-3166 Subdivisions
62
- * only necessary for country US or CA
63
- *
64
- * @var string
65
- */
66
- protected $shipping_state = NULL;
67
- /**
68
- * Country (ISO-3166)
69
- *
70
- * @var string
71
- */
72
- protected $shipping_country = NULL;
73
- /**
74
- * @var string
75
- */
76
- protected $shipping_addressaddition = NULL;
77
-
78
- /**
79
- * @param string $shipping_addressaddition
80
- */
81
- public function setShippingAddressaddition($shipping_addressaddition)
82
- {
83
- $this->shipping_addressaddition = $shipping_addressaddition;
84
- }
85
-
86
- /**
87
- * @return string
88
- */
89
- public function getShippingAddressaddition()
90
- {
91
- return $this->shipping_addressaddition;
92
- }
93
-
94
- /**
95
- * @param string $shipping_city
96
- */
97
- public function setShippingCity($shipping_city)
98
- {
99
- $this->shipping_city = $shipping_city;
100
- }
101
-
102
- /**
103
- * @return string
104
- */
105
- public function getShippingCity()
106
- {
107
- return $this->shipping_city;
108
- }
109
-
110
- /**
111
- * @param string $shipping_company
112
- */
113
- public function setShippingCompany($shipping_company)
114
- {
115
- $this->shipping_company = $shipping_company;
116
- }
117
-
118
- /**
119
- * @return string
120
- */
121
- public function getShippingCompany()
122
- {
123
- return $this->shipping_company;
124
- }
125
-
126
- /**
127
- * @param string $shipping_country
128
- */
129
- public function setShippingCountry($shipping_country)
130
- {
131
- $this->shipping_country = $shipping_country;
132
- }
133
-
134
- /**
135
- * @return string
136
- */
137
- public function getShippingCountry()
138
- {
139
- return $this->shipping_country;
140
- }
141
-
142
- /**
143
- * @param string $shipping_firstname
144
- */
145
- public function setShippingFirstname($shipping_firstname)
146
- {
147
- $this->shipping_firstname = $shipping_firstname;
148
- }
149
-
150
- /**
151
- * @return string
152
- */
153
- public function getShippingFirstname()
154
- {
155
- return $this->shipping_firstname;
156
- }
157
-
158
- /**
159
- * @param string $shipping_lastname
160
- */
161
- public function setShippingLastname($shipping_lastname)
162
- {
163
- $this->shipping_lastname = $shipping_lastname;
164
- }
165
-
166
- /**
167
- * @return string
168
- */
169
- public function getShippingLastname()
170
- {
171
- return $this->shipping_lastname;
172
- }
173
-
174
- /**
175
- * @param string $shipping_state
176
- */
177
- public function setShippingState($shipping_state)
178
- {
179
- $this->shipping_state = $shipping_state;
180
- }
181
-
182
- /**
183
- * @return string
184
- */
185
- public function getShippingState()
186
- {
187
- return $this->shipping_state;
188
- }
189
-
190
- /**
191
- * @param string $shipping_street
192
- */
193
- public function setShippingStreet($shipping_street)
194
- {
195
- $this->shipping_street = $shipping_street;
196
- }
197
-
198
- /**
199
- * @return string
200
- */
201
- public function getShippingStreet()
202
- {
203
- return $this->shipping_street;
204
- }
205
-
206
- /**
207
- * @param string $shipping_zip
208
- */
209
- public function setShippingZip($shipping_zip)
210
- {
211
- $this->shipping_zip = $shipping_zip;
212
- }
213
-
214
- /**
215
- * @return string
216
- */
217
- public function getShippingZip()
218
- {
219
- return $this->shipping_zip;
220
- }
221
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_Authorization_DeliveryData
34
+ extends Payone_Api_Request_Parameter_Authorization_Abstract
35
+ {
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $shipping_firstname = NULL;
40
+ /**
41
+ * @var string
42
+ */
43
+ protected $shipping_lastname = NULL;
44
+ /**
45
+ * @var string
46
+ */
47
+ protected $shipping_company = NULL;
48
+ /**
49
+ * @var string
50
+ */
51
+ protected $shipping_street = NULL;
52
+ /**
53
+ * @var string
54
+ */
55
+ protected $shipping_zip = NULL;
56
+ /**
57
+ * @var string
58
+ */
59
+ protected $shipping_city = NULL;
60
+ /**
61
+ * ISO-3166 Subdivisions
62
+ * only necessary for country US or CA
63
+ *
64
+ * @var string
65
+ */
66
+ protected $shipping_state = NULL;
67
+ /**
68
+ * Country (ISO-3166)
69
+ *
70
+ * @var string
71
+ */
72
+ protected $shipping_country = NULL;
73
+ /**
74
+ * @var string
75
+ */
76
+ protected $shipping_addressaddition = NULL;
77
+
78
+ /**
79
+ * @param string $shipping_addressaddition
80
+ */
81
+ public function setShippingAddressaddition($shipping_addressaddition)
82
+ {
83
+ $this->shipping_addressaddition = $shipping_addressaddition;
84
+ }
85
+
86
+ /**
87
+ * @return string
88
+ */
89
+ public function getShippingAddressaddition()
90
+ {
91
+ return $this->shipping_addressaddition;
92
+ }
93
+
94
+ /**
95
+ * @param string $shipping_city
96
+ */
97
+ public function setShippingCity($shipping_city)
98
+ {
99
+ $this->shipping_city = $shipping_city;
100
+ }
101
+
102
+ /**
103
+ * @return string
104
+ */
105
+ public function getShippingCity()
106
+ {
107
+ return $this->shipping_city;
108
+ }
109
+
110
+ /**
111
+ * @param string $shipping_company
112
+ */
113
+ public function setShippingCompany($shipping_company)
114
+ {
115
+ $this->shipping_company = $shipping_company;
116
+ }
117
+
118
+ /**
119
+ * @return string
120
+ */
121
+ public function getShippingCompany()
122
+ {
123
+ return $this->shipping_company;
124
+ }
125
+
126
+ /**
127
+ * @param string $shipping_country
128
+ */
129
+ public function setShippingCountry($shipping_country)
130
+ {
131
+ $this->shipping_country = $shipping_country;
132
+ }
133
+
134
+ /**
135
+ * @return string
136
+ */
137
+ public function getShippingCountry()
138
+ {
139
+ return $this->shipping_country;
140
+ }
141
+
142
+ /**
143
+ * @param string $shipping_firstname
144
+ */
145
+ public function setShippingFirstname($shipping_firstname)
146
+ {
147
+ $this->shipping_firstname = $shipping_firstname;
148
+ }
149
+
150
+ /**
151
+ * @return string
152
+ */
153
+ public function getShippingFirstname()
154
+ {
155
+ return $this->shipping_firstname;
156
+ }
157
+
158
+ /**
159
+ * @param string $shipping_lastname
160
+ */
161
+ public function setShippingLastname($shipping_lastname)
162
+ {
163
+ $this->shipping_lastname = $shipping_lastname;
164
+ }
165
+
166
+ /**
167
+ * @return string
168
+ */
169
+ public function getShippingLastname()
170
+ {
171
+ return $this->shipping_lastname;
172
+ }
173
+
174
+ /**
175
+ * @param string $shipping_state
176
+ */
177
+ public function setShippingState($shipping_state)
178
+ {
179
+ $this->shipping_state = $shipping_state;
180
+ }
181
+
182
+ /**
183
+ * @return string
184
+ */
185
+ public function getShippingState()
186
+ {
187
+ return $this->shipping_state;
188
+ }
189
+
190
+ /**
191
+ * @param string $shipping_street
192
+ */
193
+ public function setShippingStreet($shipping_street)
194
+ {
195
+ $this->shipping_street = $shipping_street;
196
+ }
197
+
198
+ /**
199
+ * @return string
200
+ */
201
+ public function getShippingStreet()
202
+ {
203
+ return $this->shipping_street;
204
+ }
205
+
206
+ /**
207
+ * @param string $shipping_zip
208
+ */
209
+ public function setShippingZip($shipping_zip)
210
+ {
211
+ $this->shipping_zip = $shipping_zip;
212
+ }
213
+
214
+ /**
215
+ * @return string
216
+ */
217
+ public function getShippingZip()
218
+ {
219
+ return $this->shipping_zip;
220
+ }
221
+ }
lib/Payone/Api/Request/Parameter/Authorization/PaymentMethod/Abstract.php CHANGED
@@ -1,40 +1,40 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
-
34
-
35
-
36
- abstract class Payone_Api_Request_Parameter_Authorization_PaymentMethod_Abstract
37
- extends Payone_Api_Request_Parameter_Abstract
38
- {
39
-
40
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+
34
+
35
+
36
+ abstract class Payone_Api_Request_Parameter_Authorization_PaymentMethod_Abstract
37
+ extends Payone_Api_Request_Parameter_Abstract
38
+ {
39
+
40
+ }
lib/Payone/Api/Request/Parameter/Authorization/PaymentMethod/CashOnDelivery.php CHANGED
@@ -1,56 +1,56 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_Authorization_PaymentMethod_CashOnDelivery
34
- extends Payone_Api_Request_Parameter_Authorization_PaymentMethod_Abstract
35
- {
36
- /**
37
- * @var string
38
- */
39
- protected $shippingprovider = NULL;
40
-
41
- /**
42
- * @param string $shippingprovider
43
- */
44
- public function setShippingprovider($shippingprovider)
45
- {
46
- $this->shippingprovider = $shippingprovider;
47
- }
48
-
49
- /**
50
- * @return string
51
- */
52
- public function getShippingprovider()
53
- {
54
- return $this->shippingprovider;
55
- }
56
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_Authorization_PaymentMethod_CashOnDelivery
34
+ extends Payone_Api_Request_Parameter_Authorization_PaymentMethod_Abstract
35
+ {
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $shippingprovider = NULL;
40
+
41
+ /**
42
+ * @param string $shippingprovider
43
+ */
44
+ public function setShippingprovider($shippingprovider)
45
+ {
46
+ $this->shippingprovider = $shippingprovider;
47
+ }
48
+
49
+ /**
50
+ * @return string
51
+ */
52
+ public function getShippingprovider()
53
+ {
54
+ return $this->shippingprovider;
55
+ }
56
+ }
lib/Payone/Api/Request/Parameter/Authorization/PaymentMethod/CreditCard.php CHANGED
@@ -1,256 +1,256 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_Authorization_PaymentMethod_CreditCard
34
- extends Payone_Api_Request_Parameter_Authorization_PaymentMethod_Abstract
35
- {
36
- /**
37
- * @var string
38
- */
39
- protected $cardpan = NULL;
40
- /**
41
- * @var string
42
- */
43
- protected $cardtype = NULL;
44
- /**
45
- * @var int
46
- */
47
- protected $cardexpiredate = NULL;
48
- /**
49
- * @var int
50
- */
51
- protected $cardcvc2 = NULL;
52
- /**
53
- * @var int
54
- */
55
- protected $cardissuenumber = NULL;
56
- /**
57
- * @var string
58
- */
59
- protected $cardholder = NULL;
60
- /**
61
- * @var string
62
- */
63
- protected $ecommercemode = NULL;
64
- /**
65
- * @var string
66
- */
67
- protected $pseudocardpan = NULL;
68
- /**
69
- * @var string
70
- */
71
- protected $successurl = NULL;
72
- /**
73
- * @var string
74
- */
75
- protected $errorurl = NULL;
76
- /**
77
- * @var string
78
- */
79
- protected $backurl = NULL;
80
-
81
- /**
82
- * @param int $cardcvc2
83
- */
84
- public function setCardcvc2($cardcvc2)
85
- {
86
- $this->cardcvc2 = $cardcvc2;
87
- }
88
-
89
- /**
90
- * @return int
91
- */
92
- public function getCardcvc2()
93
- {
94
- return $this->cardcvc2;
95
- }
96
-
97
- /**
98
- * @param int $cardexpiredate
99
- */
100
- public function setCardexpiredate($cardexpiredate)
101
- {
102
- $this->cardexpiredate = $cardexpiredate;
103
- }
104
-
105
- /**
106
- * @return int
107
- */
108
- public function getCardexpiredate()
109
- {
110
- return $this->cardexpiredate;
111
- }
112
-
113
- /**
114
- * @param string $cardholder
115
- */
116
- public function setCardholder($cardholder)
117
- {
118
- $this->cardholder = $cardholder;
119
- }
120
-
121
- /**
122
- * @return string
123
- */
124
- public function getCardholder()
125
- {
126
- return $this->cardholder;
127
- }
128
-
129
- /**
130
- * @param int $cardissuenumber
131
- */
132
- public function setCardissuenumber($cardissuenumber)
133
- {
134
- $this->cardissuenumber = $cardissuenumber;
135
- }
136
-
137
- /**
138
- * @return int
139
- */
140
- public function getCardissuenumber()
141
- {
142
- return $this->cardissuenumber;
143
- }
144
-
145
- /**
146
- * @param string $cardpan
147
- */
148
- public function setCardpan($cardpan)
149
- {
150
- $this->cardpan = $cardpan;
151
- }
152
-
153
- /**
154
- * @return string
155
- */
156
- public function getCardpan()
157
- {
158
- return $this->cardpan;
159
- }
160
-
161
- /**
162
- * @param string $cardtype
163
- */
164
- public function setCardtype($cardtype)
165
- {
166
- $this->cardtype = $cardtype;
167
- }
168
-
169
- /**
170
- * @return string
171
- */
172
- public function getCardtype()
173
- {
174
- return $this->cardtype;
175
- }
176
-
177
- /**
178
- * @param string $ecommercemode
179
- */
180
- public function setEcommercemode($ecommercemode)
181
- {
182
- $this->ecommercemode = $ecommercemode;
183
- }
184
-
185
- /**
186
- * @return string
187
- */
188
- public function getEcommercemode()
189
- {
190
- return $this->ecommercemode;
191
- }
192
-
193
- /**
194
- * @param string $pseudocardpan
195
- */
196
- public function setPseudocardpan($pseudocardpan)
197
- {
198
- $this->pseudocardpan = $pseudocardpan;
199
- }
200
-
201
- /**
202
- * @return string
203
- */
204
- public function getPseudocardpan()
205
- {
206
- return $this->pseudocardpan;
207
- }
208
-
209
- /**
210
- * @param string $backurl
211
- */
212
- public function setBackurl($backurl)
213
- {
214
- $this->backurl = $backurl;
215
- }
216
-
217
- /**
218
- * @return string
219
- */
220
- public function getBackurl()
221
- {
222
- return $this->backurl;
223
- }
224
-
225
- /**
226
- * @param string $errorurl
227
- */
228
- public function setErrorurl($errorurl)
229
- {
230
- $this->errorurl = $errorurl;
231
- }
232
-
233
- /**
234
- * @return string
235
- */
236
- public function getErrorurl()
237
- {
238
- return $this->errorurl;
239
- }
240
-
241
- /**
242
- * @param string $successurl
243
- */
244
- public function setSuccessurl($successurl)
245
- {
246
- $this->successurl = $successurl;
247
- }
248
-
249
- /**
250
- * @return string
251
- */
252
- public function getSuccessurl()
253
- {
254
- return $this->successurl;
255
- }
256
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_Authorization_PaymentMethod_CreditCard
34
+ extends Payone_Api_Request_Parameter_Authorization_PaymentMethod_Abstract
35
+ {
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $cardpan = NULL;
40
+ /**
41
+ * @var string
42
+ */
43
+ protected $cardtype = NULL;
44
+ /**
45
+ * @var int
46
+ */
47
+ protected $cardexpiredate = NULL;
48
+ /**
49
+ * @var int
50
+ */
51
+ protected $cardcvc2 = NULL;
52
+ /**
53
+ * @var int
54
+ */
55
+ protected $cardissuenumber = NULL;
56
+ /**
57
+ * @var string
58
+ */
59
+ protected $cardholder = NULL;
60
+ /**
61
+ * @var string
62
+ */
63
+ protected $ecommercemode = NULL;
64
+ /**
65
+ * @var string
66
+ */
67
+ protected $pseudocardpan = NULL;
68
+ /**
69
+ * @var string
70
+ */
71
+ protected $successurl = NULL;
72
+ /**
73
+ * @var string
74
+ */
75
+ protected $errorurl = NULL;
76
+ /**
77
+ * @var string
78
+ */
79
+ protected $backurl = NULL;
80
+
81
+ /**
82
+ * @param int $cardcvc2
83
+ */
84
+ public function setCardcvc2($cardcvc2)
85
+ {
86
+ $this->cardcvc2 = $cardcvc2;
87
+ }
88
+
89
+ /**
90
+ * @return int
91
+ */
92
+ public function getCardcvc2()
93
+ {
94
+ return $this->cardcvc2;
95
+ }
96
+
97
+ /**
98
+ * @param int $cardexpiredate
99
+ */
100
+ public function setCardexpiredate($cardexpiredate)
101
+ {
102
+ $this->cardexpiredate = $cardexpiredate;
103
+ }
104
+
105
+ /**
106
+ * @return int
107
+ */
108
+ public function getCardexpiredate()
109
+ {
110
+ return $this->cardexpiredate;
111
+ }
112
+
113
+ /**
114
+ * @param string $cardholder
115
+ */
116
+ public function setCardholder($cardholder)
117
+ {
118
+ $this->cardholder = $cardholder;
119
+ }
120
+
121
+ /**
122
+ * @return string
123
+ */
124
+ public function getCardholder()
125
+ {
126
+ return $this->cardholder;
127
+ }
128
+
129
+ /**
130
+ * @param int $cardissuenumber
131
+ */
132
+ public function setCardissuenumber($cardissuenumber)
133
+ {
134
+ $this->cardissuenumber = $cardissuenumber;
135
+ }
136
+
137
+ /**
138
+ * @return int
139
+ */
140
+ public function getCardissuenumber()
141
+ {
142
+ return $this->cardissuenumber;
143
+ }
144
+
145
+ /**
146
+ * @param string $cardpan
147
+ */
148
+ public function setCardpan($cardpan)
149
+ {
150
+ $this->cardpan = $cardpan;
151
+ }
152
+
153
+ /**
154
+ * @return string
155
+ */
156
+ public function getCardpan()
157
+ {
158
+ return $this->cardpan;
159
+ }
160
+
161
+ /**
162
+ * @param string $cardtype
163
+ */
164
+ public function setCardtype($cardtype)
165
+ {
166
+ $this->cardtype = $cardtype;
167
+ }
168
+
169
+ /**
170
+ * @return string
171
+ */
172
+ public function getCardtype()
173
+ {
174
+ return $this->cardtype;
175
+ }
176
+
177
+ /**
178
+ * @param string $ecommercemode
179
+ */
180
+ public function setEcommercemode($ecommercemode)
181
+ {
182
+ $this->ecommercemode = $ecommercemode;
183
+ }
184
+
185
+ /**
186
+ * @return string
187
+ */
188
+ public function getEcommercemode()
189
+ {
190
+ return $this->ecommercemode;
191
+ }
192
+
193
+ /**
194
+ * @param string $pseudocardpan
195
+ */
196
+ public function setPseudocardpan($pseudocardpan)
197
+ {
198
+ $this->pseudocardpan = $pseudocardpan;
199
+ }
200
+
201
+ /**
202
+ * @return string
203
+ */
204
+ public function getPseudocardpan()
205
+ {
206
+ return $this->pseudocardpan;
207
+ }
208
+
209
+ /**
210
+ * @param string $backurl
211
+ */
212
+ public function setBackurl($backurl)
213
+ {
214
+ $this->backurl = $backurl;
215
+ }
216
+
217
+ /**
218
+ * @return string
219
+ */
220
+ public function getBackurl()
221
+ {
222
+ return $this->backurl;
223
+ }
224
+
225
+ /**
226
+ * @param string $errorurl
227
+ */
228
+ public function setErrorurl($errorurl)
229
+ {
230
+ $this->errorurl = $errorurl;
231
+ }
232
+
233
+ /**
234
+ * @return string
235
+ */
236
+ public function getErrorurl()
237
+ {
238
+ return $this->errorurl;
239
+ }
240
+
241
+ /**
242
+ * @param string $successurl
243
+ */
244
+ public function setSuccessurl($successurl)
245
+ {
246
+ $this->successurl = $successurl;
247
+ }
248
+
249
+ /**
250
+ * @return string
251
+ */
252
+ public function getSuccessurl()
253
+ {
254
+ return $this->successurl;
255
+ }
256
+ }
lib/Payone/Api/Request/Parameter/Authorization/PaymentMethod/DebitPayment.php CHANGED
@@ -1,176 +1,176 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_Authorization_PaymentMethod_DebitPayment
34
- extends Payone_Api_Request_Parameter_Authorization_PaymentMethod_Abstract
35
- {
36
- /**
37
- * @var string
38
- */
39
- protected $bankcountry = NULL;
40
- /**
41
- * @var string
42
- */
43
- protected $bankaccount = NULL;
44
- /**
45
- * @var string
46
- */
47
- protected $bankcode = NULL;
48
- /**
49
- * @var string
50
- */
51
- protected $bankaccountholder = NULL;
52
- /**
53
- * @var string
54
- */
55
- protected $iban = NULL;
56
- /**
57
- * @var string
58
- */
59
- protected $bic = NULL;
60
- /**
61
- * @var string
62
- */
63
- protected $mandate_identification = NULL;
64
-
65
- /**
66
- * @param string $bankaccount
67
- */
68
- public function setBankaccount($bankaccount)
69
- {
70
- $this->bankaccount = $bankaccount;
71
- }
72
-
73
- /**
74
- * @return string
75
- */
76
- public function getBankaccount()
77
- {
78
- return $this->bankaccount;
79
- }
80
-
81
- /**
82
- * @param string $bankaccountholder
83
- */
84
- public function setBankaccountholder($bankaccountholder)
85
- {
86
- $this->bankaccountholder = $bankaccountholder;
87
- }
88
-
89
- /**
90
- * @return string
91
- */
92
- public function getBankaccountholder()
93
- {
94
- return $this->bankaccountholder;
95
- }
96
-
97
- /**
98
- * @param string $bankcode
99
- */
100
- public function setBankcode($bankcode)
101
- {
102
- $this->bankcode = $bankcode;
103
- }
104
-
105
- /**
106
- * @return string
107
- */
108
- public function getBankcode()
109
- {
110
- return $this->bankcode;
111
- }
112
-
113
- /**
114
- * @param string $bankcountry
115
- */
116
- public function setBankcountry($bankcountry)
117
- {
118
- $this->bankcountry = $bankcountry;
119
- }
120
-
121
- /**
122
- * @return string
123
- */
124
- public function getBankcountry()
125
- {
126
- return $this->bankcountry;
127
- }
128
-
129
- /**
130
- * @param string $iban
131
- */
132
- public function setIban($iban)
133
- {
134
- $this->iban = $iban;
135
- }
136
-
137
- /**
138
- * @return string
139
- */
140
- public function getIban()
141
- {
142
- return $this->iban;
143
- }
144
-
145
- /**
146
- * @param string $bic
147
- */
148
- public function setBic($bic)
149
- {
150
- $this->bic = $bic;
151
- }
152
-
153
- /**
154
- * @return string
155
- */
156
- public function getBic()
157
- {
158
- return $this->bic;
159
- }
160
-
161
- /**
162
- * @param string $mandateIdentification
163
- */
164
- public function setMandateIdentification($mandateIdentification)
165
- {
166
- $this->mandate_identification = $mandateIdentification;
167
- }
168
-
169
- /**
170
- * @return string
171
- */
172
- public function getMandateIdentification()
173
- {
174
- return $this->mandate_identification;
175
- }
176
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_Authorization_PaymentMethod_DebitPayment
34
+ extends Payone_Api_Request_Parameter_Authorization_PaymentMethod_Abstract
35
+ {
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $bankcountry = NULL;
40
+ /**
41
+ * @var string
42
+ */
43
+ protected $bankaccount = NULL;
44
+ /**
45
+ * @var string
46
+ */
47
+ protected $bankcode = NULL;
48
+ /**
49
+ * @var string
50
+ */
51
+ protected $bankaccountholder = NULL;
52
+ /**
53
+ * @var string
54
+ */
55
+ protected $iban = NULL;
56
+ /**
57
+ * @var string
58
+ */
59
+ protected $bic = NULL;
60
+ /**
61
+ * @var string
62
+ */
63
+ protected $mandate_identification = NULL;
64
+
65
+ /**
66
+ * @param string $bankaccount
67
+ */
68
+ public function setBankaccount($bankaccount)
69
+ {
70
+ $this->bankaccount = $bankaccount;
71
+ }
72
+
73
+ /**
74
+ * @return string
75
+ */
76
+ public function getBankaccount()
77
+ {
78
+ return $this->bankaccount;
79
+ }
80
+
81
+ /**
82
+ * @param string $bankaccountholder
83
+ */
84
+ public function setBankaccountholder($bankaccountholder)
85
+ {
86
+ $this->bankaccountholder = $bankaccountholder;
87
+ }
88
+
89
+ /**
90
+ * @return string
91
+ */
92
+ public function getBankaccountholder()
93
+ {
94
+ return $this->bankaccountholder;
95
+ }
96
+
97
+ /**
98
+ * @param string $bankcode
99
+ */
100
+ public function setBankcode($bankcode)
101
+ {
102
+ $this->bankcode = $bankcode;
103
+ }
104
+
105
+ /**
106
+ * @return string
107
+ */
108
+ public function getBankcode()
109
+ {
110
+ return $this->bankcode;
111
+ }
112
+
113
+ /**
114
+ * @param string $bankcountry
115
+ */
116
+ public function setBankcountry($bankcountry)
117
+ {
118
+ $this->bankcountry = $bankcountry;
119
+ }
120
+
121
+ /**
122
+ * @return string
123
+ */
124
+ public function getBankcountry()
125
+ {
126
+ return $this->bankcountry;
127
+ }
128
+
129
+ /**
130
+ * @param string $iban
131
+ */
132
+ public function setIban($iban)
133
+ {
134
+ $this->iban = $iban;
135
+ }
136
+
137
+ /**
138
+ * @return string
139
+ */
140
+ public function getIban()
141
+ {
142
+ return $this->iban;
143
+ }
144
+
145
+ /**
146
+ * @param string $bic
147
+ */
148
+ public function setBic($bic)
149
+ {
150
+ $this->bic = $bic;
151
+ }
152
+
153
+ /**
154
+ * @return string
155
+ */
156
+ public function getBic()
157
+ {
158
+ return $this->bic;
159
+ }
160
+
161
+ /**
162
+ * @param string $mandateIdentification
163
+ */
164
+ public function setMandateIdentification($mandateIdentification)
165
+ {
166
+ $this->mandate_identification = $mandateIdentification;
167
+ }
168
+
169
+ /**
170
+ * @return string
171
+ */
172
+ public function getMandateIdentification()
173
+ {
174
+ return $this->mandate_identification;
175
+ }
176
+ }
lib/Payone/Api/Request/Parameter/Authorization/PaymentMethod/Financing.php CHANGED
@@ -1,135 +1,135 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_Authorization_PaymentMethod_Financing
34
- extends Payone_Api_Request_Parameter_Authorization_PaymentMethod_Abstract
35
- {
36
- /**
37
- * Enum FinancingType
38
- * @var string
39
- */
40
- protected $financingtype = NULL;
41
-
42
- /**
43
- * @var string
44
- */
45
- protected $successurl = NULL;
46
- /**
47
- * @var string
48
- */
49
- protected $errorurl = NULL;
50
- /**
51
- * @var string
52
- */
53
- protected $backurl = NULL;
54
-
55
- protected $paydata = NULL;
56
-
57
- /**
58
- * @param string $financingtype
59
- */
60
- public function setFinancingtype($financingtype)
61
- {
62
- $this->financingtype = $financingtype;
63
- }
64
-
65
- /**
66
- * @return string
67
- */
68
- public function getFinancingtype()
69
- {
70
- return $this->financingtype;
71
- }
72
-
73
- /**
74
- * @param string $backurl
75
- */
76
- public function setBackurl($backurl)
77
- {
78
- $this->backurl = $backurl;
79
- }
80
-
81
- /**
82
- * @return string
83
- */
84
- public function getBackurl()
85
- {
86
- return $this->backurl;
87
- }
88
-
89
- /**
90
- * @param string $errorurl
91
- */
92
- public function setErrorurl($errorurl)
93
- {
94
- $this->errorurl = $errorurl;
95
- }
96
-
97
- /**
98
- * @return string
99
- */
100
- public function getErrorurl()
101
- {
102
- return $this->errorurl;
103
- }
104
-
105
- /**
106
- * @param string $successurl
107
- */
108
- public function setSuccessurl($successurl)
109
- {
110
- $this->successurl = $successurl;
111
- }
112
-
113
- /**
114
- * @return string
115
- */
116
- public function getSuccessurl()
117
- {
118
- return $this->successurl;
119
- }
120
-
121
- /**
122
- * @param Payone_Api_Request_Parameter_Paydata_Paydata $paydata
123
- */
124
- public function setPaydata($paydata) {
125
- $this->paydata = $paydata;
126
- }
127
-
128
- /**
129
- *
130
- * @return Payone_Api_Request_Parameter_Paydata_Paydata
131
- */
132
- public function getPaydata() {
133
- return $this->paydata;
134
- }
135
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_Authorization_PaymentMethod_Financing
34
+ extends Payone_Api_Request_Parameter_Authorization_PaymentMethod_Abstract
35
+ {
36
+ /**
37
+ * Enum FinancingType
38
+ * @var string
39
+ */
40
+ protected $financingtype = NULL;
41
+
42
+ /**
43
+ * @var string
44
+ */
45
+ protected $successurl = NULL;
46
+ /**
47
+ * @var string
48
+ */
49
+ protected $errorurl = NULL;
50
+ /**
51
+ * @var string
52
+ */
53
+ protected $backurl = NULL;
54
+
55
+ protected $paydata = NULL;
56
+
57
+ /**
58
+ * @param string $financingtype
59
+ */
60
+ public function setFinancingtype($financingtype)
61
+ {
62
+ $this->financingtype = $financingtype;
63
+ }
64
+
65
+ /**
66
+ * @return string
67
+ */
68
+ public function getFinancingtype()
69
+ {
70
+ return $this->financingtype;
71
+ }
72
+
73
+ /**
74
+ * @param string $backurl
75
+ */
76
+ public function setBackurl($backurl)
77
+ {
78
+ $this->backurl = $backurl;
79
+ }
80
+
81
+ /**
82
+ * @return string
83
+ */
84
+ public function getBackurl()
85
+ {
86
+ return $this->backurl;
87
+ }
88
+
89
+ /**
90
+ * @param string $errorurl
91
+ */
92
+ public function setErrorurl($errorurl)
93
+ {
94
+ $this->errorurl = $errorurl;
95
+ }
96
+
97
+ /**
98
+ * @return string
99
+ */
100
+ public function getErrorurl()
101
+ {
102
+ return $this->errorurl;
103
+ }
104
+
105
+ /**
106
+ * @param string $successurl
107
+ */
108
+ public function setSuccessurl($successurl)
109
+ {
110
+ $this->successurl = $successurl;
111
+ }
112
+
113
+ /**
114
+ * @return string
115
+ */
116
+ public function getSuccessurl()
117
+ {
118
+ return $this->successurl;
119
+ }
120
+
121
+ /**
122
+ * @param Payone_Api_Request_Parameter_Paydata_Paydata $paydata
123
+ */
124
+ public function setPaydata($paydata) {
125
+ $this->paydata = $paydata;
126
+ }
127
+
128
+ /**
129
+ *
130
+ * @return Payone_Api_Request_Parameter_Paydata_Paydata
131
+ */
132
+ public function getPaydata() {
133
+ return $this->paydata;
134
+ }
135
+ }
lib/Payone/Api/Request/Parameter/Authorization/PaymentMethod/OnlineBankTransfer.php CHANGED
@@ -1,236 +1,236 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_Authorization_PaymentMethod_OnlineBankTransfer
34
- extends Payone_Api_Request_Parameter_Authorization_PaymentMethod_Abstract
35
- {
36
- /**
37
- * @var string
38
- */
39
- protected $onlinebanktransfertype = NULL;
40
- /**
41
- * @var string
42
- */
43
- protected $bankcountry = NULL;
44
- /**
45
- * @var string
46
- */
47
- protected $bankaccount = NULL;
48
- /**
49
- * @var string
50
- */
51
- protected $bankcode = NULL;
52
- /**
53
- * @var string
54
- */
55
- protected $bankgrouptype = NULL;
56
- /**
57
- * @var string
58
- */
59
- protected $iban = NULL;
60
- /**
61
- * @var string
62
- */
63
- protected $bic = NULL;
64
- /**
65
- * @var string
66
- */
67
- protected $successurl = NULL;
68
- /**
69
- * @var string
70
- */
71
- protected $errorurl = NULL;
72
- /**
73
- * @var string
74
- */
75
- protected $backurl = NULL;
76
-
77
- /**
78
- * @param string $backurl
79
- */
80
- public function setBackurl($backurl)
81
- {
82
- $this->backurl = $backurl;
83
- }
84
-
85
- /**
86
- * @return string
87
- */
88
- public function getBackurl()
89
- {
90
- return $this->backurl;
91
- }
92
-
93
- /**
94
- * @param string $bankaccount
95
- */
96
- public function setBankaccount($bankaccount)
97
- {
98
- $this->bankaccount = $bankaccount;
99
- }
100
-
101
- /**
102
- * @return string
103
- */
104
- public function getBankaccount()
105
- {
106
- return $this->bankaccount;
107
- }
108
-
109
- /**
110
- * @param string $bankcode
111
- */
112
- public function setBankcode($bankcode)
113
- {
114
- $this->bankcode = $bankcode;
115
- }
116
-
117
- /**
118
- * @return string
119
- */
120
- public function getBankcode()
121
- {
122
- return $this->bankcode;
123
- }
124
-
125
- /**
126
- * @param string $bankcountry
127
- */
128
- public function setBankcountry($bankcountry)
129
- {
130
- $this->bankcountry = $bankcountry;
131
- }
132
-
133
- /**
134
- * @return string
135
- */
136
- public function getBankcountry()
137
- {
138
- return $this->bankcountry;
139
- }
140
-
141
- /**
142
- * @param string $bankgrouptype
143
- */
144
- public function setBankgrouptype($bankgrouptype)
145
- {
146
- $this->bankgrouptype = $bankgrouptype;
147
- }
148
-
149
- /**
150
- * @return string
151
- */
152
- public function getBankgrouptype()
153
- {
154
- return $this->bankgrouptype;
155
- }
156
-
157
- /**
158
- * @param string $iban
159
- */
160
- public function setIban($iban)
161
- {
162
- $this->iban = $iban;
163
- }
164
-
165
- /**
166
- * @return string
167
- */
168
- public function getIban()
169
- {
170
- return $this->iban;
171
- }
172
-
173
- /**
174
- * @param string $bic
175
- */
176
- public function setBic($bic)
177
- {
178
- $this->bic = $bic;
179
- }
180
-
181
- /**
182
- * @return string
183
- */
184
- public function getBic()
185
- {
186
- return $this->bic;
187
- }
188
-
189
- /**
190
- * @param string $errorurl
191
- */
192
- public function setErrorurl($errorurl)
193
- {
194
- $this->errorurl = $errorurl;
195
- }
196
-
197
- /**
198
- * @return string
199
- */
200
- public function getErrorurl()
201
- {
202
- return $this->errorurl;
203
- }
204
-
205
- /**
206
- * @param string $onlinebanktransfertype
207
- */
208
- public function setOnlinebanktransfertype($onlinebanktransfertype)
209
- {
210
- $this->onlinebanktransfertype = $onlinebanktransfertype;
211
- }
212
-
213
- /**
214
- * @return string
215
- */
216
- public function getOnlinebanktransfertype()
217
- {
218
- return $this->onlinebanktransfertype;
219
- }
220
-
221
- /**
222
- * @param string $successurl
223
- */
224
- public function setSuccessurl($successurl)
225
- {
226
- $this->successurl = $successurl;
227
- }
228
-
229
- /**
230
- * @return string
231
- */
232
- public function getSuccessurl()
233
- {
234
- return $this->successurl;
235
- }
236
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_Authorization_PaymentMethod_OnlineBankTransfer
34
+ extends Payone_Api_Request_Parameter_Authorization_PaymentMethod_Abstract
35
+ {
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $onlinebanktransfertype = NULL;
40
+ /**
41
+ * @var string
42
+ */
43
+ protected $bankcountry = NULL;
44
+ /**
45
+ * @var string
46
+ */
47
+ protected $bankaccount = NULL;
48
+ /**
49
+ * @var string
50
+ */
51
+ protected $bankcode = NULL;
52
+ /**
53
+ * @var string
54
+ */
55
+ protected $bankgrouptype = NULL;
56
+ /**
57
+ * @var string
58
+ */
59
+ protected $iban = NULL;
60
+ /**
61
+ * @var string
62
+ */
63
+ protected $bic = NULL;
64
+ /**
65
+ * @var string
66
+ */
67
+ protected $successurl = NULL;
68
+ /**
69
+ * @var string
70
+ */
71
+ protected $errorurl = NULL;
72
+ /**
73
+ * @var string
74
+ */
75
+ protected $backurl = NULL;
76
+
77
+ /**
78
+ * @param string $backurl
79
+ */
80
+ public function setBackurl($backurl)
81
+ {
82
+ $this->backurl = $backurl;
83
+ }
84
+
85
+ /**
86
+ * @return string
87
+ */
88
+ public function getBackurl()
89
+ {
90
+ return $this->backurl;
91
+ }
92
+
93
+ /**
94
+ * @param string $bankaccount
95
+ */
96
+ public function setBankaccount($bankaccount)
97
+ {
98
+ $this->bankaccount = $bankaccount;
99
+ }
100
+
101
+ /**
102
+ * @return string
103
+ */
104
+ public function getBankaccount()
105
+ {
106
+ return $this->bankaccount;
107
+ }
108
+
109
+ /**
110
+ * @param string $bankcode
111
+ */
112
+ public function setBankcode($bankcode)
113
+ {
114
+ $this->bankcode = $bankcode;
115
+ }
116
+
117
+ /**
118
+ * @return string
119
+ */
120
+ public function getBankcode()
121
+ {
122
+ return $this->bankcode;
123
+ }
124
+
125
+ /**
126
+ * @param string $bankcountry
127
+ */
128
+ public function setBankcountry($bankcountry)
129
+ {
130
+ $this->bankcountry = $bankcountry;
131
+ }
132
+
133
+ /**
134
+ * @return string
135
+ */
136
+ public function getBankcountry()
137
+ {
138
+ return $this->bankcountry;
139
+ }
140
+
141
+ /**
142
+ * @param string $bankgrouptype
143
+ */
144
+ public function setBankgrouptype($bankgrouptype)
145
+ {
146
+ $this->bankgrouptype = $bankgrouptype;
147
+ }
148
+
149
+ /**
150
+ * @return string
151
+ */
152
+ public function getBankgrouptype()
153
+ {
154
+ return $this->bankgrouptype;
155
+ }
156
+
157
+ /**
158
+ * @param string $iban
159
+ */
160
+ public function setIban($iban)
161
+ {
162
+ $this->iban = $iban;
163
+ }
164
+
165
+ /**
166
+ * @return string
167
+ */
168
+ public function getIban()
169
+ {
170
+ return $this->iban;
171
+ }
172
+
173
+ /**
174
+ * @param string $bic
175
+ */
176
+ public function setBic($bic)
177
+ {
178
+ $this->bic = $bic;
179
+ }
180
+
181
+ /**
182
+ * @return string
183
+ */
184
+ public function getBic()
185
+ {
186
+ return $this->bic;
187
+ }
188
+
189
+ /**
190
+ * @param string $errorurl
191
+ */
192
+ public function setErrorurl($errorurl)
193
+ {
194
+ $this->errorurl = $errorurl;
195
+ }
196
+
197
+ /**
198
+ * @return string
199
+ */
200
+ public function getErrorurl()
201
+ {
202
+ return $this->errorurl;
203
+ }
204
+
205
+ /**
206
+ * @param string $onlinebanktransfertype
207
+ */
208
+ public function setOnlinebanktransfertype($onlinebanktransfertype)
209
+ {
210
+ $this->onlinebanktransfertype = $onlinebanktransfertype;
211
+ }
212
+
213
+ /**
214
+ * @return string
215
+ */
216
+ public function getOnlinebanktransfertype()
217
+ {
218
+ return $this->onlinebanktransfertype;
219
+ }
220
+
221
+ /**
222
+ * @param string $successurl
223
+ */
224
+ public function setSuccessurl($successurl)
225
+ {
226
+ $this->successurl = $successurl;
227
+ }
228
+
229
+ /**
230
+ * @return string
231
+ */
232
+ public function getSuccessurl()
233
+ {
234
+ return $this->successurl;
235
+ }
236
+ }
lib/Payone/Api/Request/Parameter/Authorization/PaymentMethod/Wallet.php CHANGED
@@ -1,116 +1,116 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_Authorization_PaymentMethod_Wallet
34
- extends Payone_Api_Request_Parameter_Authorization_PaymentMethod_Abstract
35
- {
36
- /**
37
- * @var string
38
- */
39
- protected $wallettype = NULL;
40
- /**
41
- * @var string
42
- */
43
- protected $successurl = NULL;
44
- /**
45
- * @var string
46
- */
47
- protected $errorurl = NULL;
48
- /**
49
- * @var string
50
- */
51
- protected $backurl = NULL;
52
-
53
- /**
54
- * @param $successurl
55
- */
56
- public function setSuccessurl($successurl)
57
- {
58
- $this->successurl = $successurl;
59
- }
60
-
61
- /**
62
- * @return string
63
- */
64
- public function getSuccessurl()
65
- {
66
- return $this->successurl;
67
- }
68
-
69
- /**
70
- * @param $wallettype
71
- */
72
- public function setWallettype($wallettype)
73
- {
74
- $this->wallettype = $wallettype;
75
- }
76
-
77
- /**
78
- * @return string
79
- */
80
- public function getWallettype()
81
- {
82
- return $this->wallettype;
83
- }
84
-
85
- /**
86
- * @param string $backurl
87
- */
88
- public function setBackurl($backurl)
89
- {
90
- $this->backurl = $backurl;
91
- }
92
-
93
- /**
94
- * @return string
95
- */
96
- public function getBackurl()
97
- {
98
- return $this->backurl;
99
- }
100
-
101
- /**
102
- * @param string $errorurl
103
- */
104
- public function setErrorurl($errorurl)
105
- {
106
- $this->errorurl = $errorurl;
107
- }
108
-
109
- /**
110
- * @return string
111
- */
112
- public function getErrorurl()
113
- {
114
- return $this->errorurl;
115
- }
116
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_Authorization_PaymentMethod_Wallet
34
+ extends Payone_Api_Request_Parameter_Authorization_PaymentMethod_Abstract
35
+ {
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $wallettype = NULL;
40
+ /**
41
+ * @var string
42
+ */
43
+ protected $successurl = NULL;
44
+ /**
45
+ * @var string
46
+ */
47
+ protected $errorurl = NULL;
48
+ /**
49
+ * @var string
50
+ */
51
+ protected $backurl = NULL;
52
+
53
+ /**
54
+ * @param $successurl
55
+ */
56
+ public function setSuccessurl($successurl)
57
+ {
58
+ $this->successurl = $successurl;
59
+ }
60
+
61
+ /**
62
+ * @return string
63
+ */
64
+ public function getSuccessurl()
65
+ {
66
+ return $this->successurl;
67
+ }
68
+
69
+ /**
70
+ * @param $wallettype
71
+ */
72
+ public function setWallettype($wallettype)
73
+ {
74
+ $this->wallettype = $wallettype;
75
+ }
76
+
77
+ /**
78
+ * @return string
79
+ */
80
+ public function getWallettype()
81
+ {
82
+ return $this->wallettype;
83
+ }
84
+
85
+ /**
86
+ * @param string $backurl
87
+ */
88
+ public function setBackurl($backurl)
89
+ {
90
+ $this->backurl = $backurl;
91
+ }
92
+
93
+ /**
94
+ * @return string
95
+ */
96
+ public function getBackurl()
97
+ {
98
+ return $this->backurl;
99
+ }
100
+
101
+ /**
102
+ * @param string $errorurl
103
+ */
104
+ public function setErrorurl($errorurl)
105
+ {
106
+ $this->errorurl = $errorurl;
107
+ }
108
+
109
+ /**
110
+ * @return string
111
+ */
112
+ public function getErrorurl()
113
+ {
114
+ return $this->errorurl;
115
+ }
116
+ }
lib/Payone/Api/Request/Parameter/Authorization/PersonalData.php CHANGED
@@ -1,340 +1,340 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_Authorization_PersonalData
34
- extends Payone_Api_Request_Parameter_Authorization_Abstract
35
- {
36
- /**
37
- * Merchant's customer ID (Permitted symbols: 0-9, a-z, A-Z, .,-,_,/)
38
- * @var string
39
- */
40
- protected $customerid = null;
41
- /**
42
- * PAYONE debtor ID
43
- *
44
- * @var int
45
- */
46
- protected $userid = NULL;
47
- protected $salutation = null;
48
- protected $title = null;
49
- protected $firstname = null;
50
- protected $lastname = null;
51
- protected $company = null;
52
- protected $street = null;
53
- protected $addressaddition = null;
54
- protected $zip = null;
55
- protected $city = null;
56
- /**
57
- * Country (ISO-3166)
58
- *
59
- * @var string
60
- */
61
- protected $country = null;
62
- protected $state = null;
63
- protected $email = null;
64
- protected $telephonenumber = null;
65
- /**
66
- * Date of birth (YYYYMMDD)
67
- *
68
- * @var int
69
- */
70
- protected $birthday = NULL;
71
- /**
72
- * Language indicator (ISO639)
73
- *
74
- * @var string
75
- */
76
- protected $language = null;
77
- protected $vatid = null;
78
- protected $ip = null;
79
- /**
80
- * Enum Gender
81
- * @var string
82
- */
83
- protected $gender = null;
84
- /**
85
- * @var string
86
- */
87
- protected $personalid = null;
88
-
89
- public function setAddressaddition($addressaddition)
90
- {
91
- $this->addressaddition = $addressaddition;
92
- }
93
-
94
- public function getAddressaddition()
95
- {
96
- return $this->addressaddition;
97
- }
98
-
99
- /**
100
- * @param string $birthday
101
- */
102
- public function setBirthday($birthday)
103
- {
104
- $this->birthday = $birthday;
105
- }
106
-
107
- /**
108
- * @return string
109
- */
110
- public function getBirthday()
111
- {
112
- return $this->birthday;
113
- }
114
-
115
- public function setCity($city)
116
- {
117
- $this->city = $city;
118
- }
119
-
120
- public function getCity()
121
- {
122
- return $this->city;
123
- }
124
-
125
- public function setCompany($company)
126
- {
127
- $this->company = $company;
128
- }
129
-
130
- public function getCompany()
131
- {
132
- return $this->company;
133
- }
134
-
135
- /**
136
- * @param string $country
137
- */
138
- public function setCountry($country)
139
- {
140
- $this->country = $country;
141
- }
142
-
143
- /**
144
- * @return string
145
- */
146
- public function getCountry()
147
- {
148
- return $this->country;
149
- }
150
-
151
- /**
152
- * @param string $customerid
153
- */
154
- public function setCustomerid($customerid)
155
- {
156
- $this->customerid = $customerid;
157
- }
158
-
159
- /**
160
- * @return string
161
- */
162
- public function getCustomerid()
163
- {
164
- return $this->customerid;
165
- }
166
-
167
- public function setEmail($email)
168
- {
169
- $this->email = $email;
170
- }
171
-
172
- public function getEmail()
173
- {
174
- return $this->email;
175
- }
176
-
177
- public function setFirstname($firstname)
178
- {
179
- $this->firstname = $firstname;
180
- }
181
-
182
- public function getFirstname()
183
- {
184
- return $this->firstname;
185
- }
186
-
187
- /**
188
- * @param string $gender
189
- */
190
- public function setGender($gender)
191
- {
192
- $this->gender = $gender;
193
- }
194
-
195
- /**
196
- * @return string
197
- */
198
- public function getGender()
199
- {
200
- return $this->gender;
201
- }
202
-
203
- public function setIp($ip)
204
- {
205
- $this->ip = $ip;
206
- }
207
-
208
- public function getIp()
209
- {
210
- return $this->ip;
211
- }
212
-
213
- /**
214
- * @param string $language
215
- */
216
- public function setLanguage($language)
217
- {
218
- $this->language = $language;
219
- }
220
-
221
- /**
222
- * @return string
223
- */
224
- public function getLanguage()
225
- {
226
- return $this->language;
227
- }
228
-
229
- public function setLastname($lastname)
230
- {
231
- $this->lastname = $lastname;
232
- }
233
-
234
- public function getLastname()
235
- {
236
- return $this->lastname;
237
- }
238
-
239
- /**
240
- * @param string $personalid
241
- */
242
- public function setPersonalid($personalid)
243
- {
244
- $this->personalid = $personalid;
245
- }
246
-
247
- /**
248
- * @return string
249
- */
250
- public function getPersonalid()
251
- {
252
- return $this->personalid;
253
- }
254
-
255
- public function setSalutation($salutation)
256
- {
257
- $this->salutation = $salutation;
258
- }
259
-
260
- public function getSalutation()
261
- {
262
- return $this->salutation;
263
- }
264
-
265
- public function setState($state)
266
- {
267
- $this->state = $state;
268
- }
269
-
270
- public function getState()
271
- {
272
- return $this->state;
273
- }
274
-
275
- public function setStreet($street)
276
- {
277
- $this->street = $street;
278
- }
279
-
280
- public function getStreet()
281
- {
282
- return $this->street;
283
- }
284
-
285
- public function setTelephonenumber($telephonenumber)
286
- {
287
- $this->telephonenumber = $telephonenumber;
288
- }
289
-
290
- public function getTelephonenumber()
291
- {
292
- return $this->telephonenumber;
293
- }
294
-
295
- public function setTitle($title)
296
- {
297
- $this->title = $title;
298
- }
299
-
300
- public function getTitle()
301
- {
302
- return $this->title;
303
- }
304
-
305
- /**
306
- * @param string $userid
307
- */
308
- public function setUserid($userid)
309
- {
310
- $this->userid = $userid;
311
- }
312
-
313
- /**
314
- * @return string
315
- */
316
- public function getUserid()
317
- {
318
- return $this->userid;
319
- }
320
-
321
- public function setVatid($vatid)
322
- {
323
- $this->vatid = $vatid;
324
- }
325
-
326
- public function getVatid()
327
- {
328
- return $this->vatid;
329
- }
330
-
331
- public function setZip($zip)
332
- {
333
- $this->zip = $zip;
334
- }
335
-
336
- public function getZip()
337
- {
338
- return $this->zip;
339
- }
340
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_Authorization_PersonalData
34
+ extends Payone_Api_Request_Parameter_Authorization_Abstract
35
+ {
36
+ /**
37
+ * Merchant's customer ID (Permitted symbols: 0-9, a-z, A-Z, .,-,_,/)
38
+ * @var string
39
+ */
40
+ protected $customerid = null;
41
+ /**
42
+ * PAYONE debtor ID
43
+ *
44
+ * @var int
45
+ */
46
+ protected $userid = NULL;
47
+ protected $salutation = null;
48
+ protected $title = null;
49
+ protected $firstname = null;
50
+ protected $lastname = null;
51
+ protected $company = null;
52
+ protected $street = null;
53
+ protected $addressaddition = null;
54
+ protected $zip = null;
55
+ protected $city = null;
56
+ /**
57
+ * Country (ISO-3166)
58
+ *
59
+ * @var string
60
+ */
61
+ protected $country = null;
62
+ protected $state = null;
63
+ protected $email = null;
64
+ protected $telephonenumber = null;
65
+ /**
66
+ * Date of birth (YYYYMMDD)
67
+ *
68
+ * @var int
69
+ */
70
+ protected $birthday = NULL;
71
+ /**
72
+ * Language indicator (ISO639)
73
+ *
74
+ * @var string
75
+ */
76
+ protected $language = null;
77
+ protected $vatid = null;
78
+ protected $ip = null;
79
+ /**
80
+ * Enum Gender
81
+ * @var string
82
+ */
83
+ protected $gender = null;
84
+ /**
85
+ * @var string
86
+ */
87
+ protected $personalid = null;
88
+
89
+ public function setAddressaddition($addressaddition)
90
+ {
91
+ $this->addressaddition = $addressaddition;
92
+ }
93
+
94
+ public function getAddressaddition()
95
+ {
96
+ return $this->addressaddition;
97
+ }
98
+
99
+ /**
100
+ * @param string $birthday
101
+ */
102
+ public function setBirthday($birthday)
103
+ {
104
+ $this->birthday = $birthday;
105
+ }
106
+
107
+ /**
108
+ * @return string
109
+ */
110
+ public function getBirthday()
111
+ {
112
+ return $this->birthday;
113
+ }
114
+
115
+ public function setCity($city)
116
+ {
117
+ $this->city = $city;
118
+ }
119
+
120
+ public function getCity()
121
+ {
122
+ return $this->city;
123
+ }
124
+
125
+ public function setCompany($company)
126
+ {
127
+ $this->company = $company;
128
+ }
129
+
130
+ public function getCompany()
131
+ {
132
+ return $this->company;
133
+ }
134
+
135
+ /**
136
+ * @param string $country
137
+ */
138
+ public function setCountry($country)
139
+ {
140
+ $this->country = $country;
141
+ }
142
+
143
+ /**
144
+ * @return string
145
+ */
146
+ public function getCountry()
147
+ {
148
+ return $this->country;
149
+ }
150
+
151
+ /**
152
+ * @param string $customerid
153
+ */
154
+ public function setCustomerid($customerid)
155
+ {
156
+ $this->customerid = $customerid;
157
+ }
158
+
159
+ /**
160
+ * @return string
161
+ */
162
+ public function getCustomerid()
163
+ {
164
+ return $this->customerid;
165
+ }
166
+
167
+ public function setEmail($email)
168
+ {
169
+ $this->email = $email;
170
+ }
171
+
172
+ public function getEmail()
173
+ {
174
+ return $this->email;
175
+ }
176
+
177
+ public function setFirstname($firstname)
178
+ {
179
+ $this->firstname = $firstname;
180
+ }
181
+
182
+ public function getFirstname()
183
+ {
184
+ return $this->firstname;
185
+ }
186
+
187
+ /**
188
+ * @param string $gender
189
+ */
190
+ public function setGender($gender)
191
+ {
192
+ $this->gender = $gender;
193
+ }
194
+
195
+ /**
196
+ * @return string
197
+ */
198
+ public function getGender()
199
+ {
200
+ return $this->gender;
201
+ }
202
+
203
+ public function setIp($ip)
204
+ {
205
+ $this->ip = $ip;
206
+ }
207
+
208
+ public function getIp()
209
+ {
210
+ return $this->ip;
211
+ }
212
+
213
+ /**
214
+ * @param string $language
215
+ */
216
+ public function setLanguage($language)
217
+ {
218
+ $this->language = $language;
219
+ }
220
+
221
+ /**
222
+ * @return string
223
+ */
224
+ public function getLanguage()
225
+ {
226
+ return $this->language;
227
+ }
228
+
229
+ public function setLastname($lastname)
230
+ {
231
+ $this->lastname = $lastname;
232
+ }
233
+
234
+ public function getLastname()
235
+ {
236
+ return $this->lastname;
237
+ }
238
+
239
+ /**
240
+ * @param string $personalid
241
+ */
242
+ public function setPersonalid($personalid)
243
+ {
244
+ $this->personalid = $personalid;
245
+ }
246
+
247
+ /**
248
+ * @return string
249
+ */
250
+ public function getPersonalid()
251
+ {
252
+ return $this->personalid;
253
+ }
254
+
255
+ public function setSalutation($salutation)
256
+ {
257
+ $this->salutation = $salutation;
258
+ }
259
+
260
+ public function getSalutation()
261
+ {
262
+ return $this->salutation;
263
+ }
264
+
265
+ public function setState($state)
266
+ {
267
+ $this->state = $state;
268
+ }
269
+
270
+ public function getState()
271
+ {
272
+ return $this->state;
273
+ }
274
+
275
+ public function setStreet($street)
276
+ {
277
+ $this->street = $street;
278
+ }
279
+
280
+ public function getStreet()
281
+ {
282
+ return $this->street;
283
+ }
284
+
285
+ public function setTelephonenumber($telephonenumber)
286
+ {
287
+ $this->telephonenumber = $telephonenumber;
288
+ }
289
+
290
+ public function getTelephonenumber()
291
+ {
292
+ return $this->telephonenumber;
293
+ }
294
+
295
+ public function setTitle($title)
296
+ {
297
+ $this->title = $title;
298
+ }
299
+
300
+ public function getTitle()
301
+ {
302
+ return $this->title;
303
+ }
304
+
305
+ /**
306
+ * @param string $userid
307
+ */
308
+ public function setUserid($userid)
309
+ {
310
+ $this->userid = $userid;
311
+ }
312
+
313
+ /**
314
+ * @return string
315
+ */
316
+ public function getUserid()
317
+ {
318
+ return $this->userid;
319
+ }
320
+
321
+ public function setVatid($vatid)
322
+ {
323
+ $this->vatid = $vatid;
324
+ }
325
+
326
+ public function getVatid()
327
+ {
328
+ return $this->vatid;
329
+ }
330
+
331
+ public function setZip($zip)
332
+ {
333
+ $this->zip = $zip;
334
+ }
335
+
336
+ public function getZip()
337
+ {
338
+ return $this->zip;
339
+ }
340
+ }
lib/Payone/Api/Request/Parameter/Capture/Business.php CHANGED
@@ -1,71 +1,71 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_Capture_Business
34
- extends Payone_Api_Request_Parameter_Authorization_Business
35
- {
36
- /**
37
- * (YYYYMMDD)
38
- *
39
- * @var string
40
- */
41
- protected $document_date = NULL;
42
- /**
43
- * (YYYYMMDD)
44
- *
45
- * @var string
46
- */
47
- protected $booking_date = NULL;
48
- /**
49
- * (Unixtimestamp)
50
- *
51
- * @var string
52
- */
53
- protected $due_time = NULL;
54
-
55
- /**
56
- * @param string $settleaccount
57
- */
58
- public function setSettleaccount($settleaccount)
59
- {
60
- $this->settleaccount = $settleaccount;
61
- }
62
-
63
- /**
64
- * @return string
65
- */
66
- public function getSettleaccount()
67
- {
68
- return $this->settleaccount;
69
- }
70
-
71
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_Capture_Business
34
+ extends Payone_Api_Request_Parameter_Authorization_Business
35
+ {
36
+ /**
37
+ * (YYYYMMDD)
38
+ *
39
+ * @var string
40
+ */
41
+ protected $document_date = NULL;
42
+ /**
43
+ * (YYYYMMDD)
44
+ *
45
+ * @var string
46
+ */
47
+ protected $booking_date = NULL;
48
+ /**
49
+ * (Unixtimestamp)
50
+ *
51
+ * @var string
52
+ */
53
+ protected $due_time = NULL;
54
+
55
+ /**
56
+ * @param string $settleaccount
57
+ */
58
+ public function setSettleaccount($settleaccount)
59
+ {
60
+ $this->settleaccount = $settleaccount;
61
+ }
62
+
63
+ /**
64
+ * @return string
65
+ */
66
+ public function getSettleaccount()
67
+ {
68
+ return $this->settleaccount;
69
+ }
70
+
71
+ }
lib/Payone/Api/Request/Parameter/Capture/Invoicing/Transaction.php CHANGED
@@ -1,47 +1,47 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_Capture_Invoicing_Transaction
34
- extends Payone_Api_Request_Parameter_Invoicing_Transaction
35
- {
36
- protected $capturemode = null;
37
-
38
- public function setCapturemode($capturemode)
39
- {
40
- $this->capturemode = $capturemode;
41
- }
42
-
43
- public function getCapturemode()
44
- {
45
- return $this->capturemode;
46
- }
47
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_Capture_Invoicing_Transaction
34
+ extends Payone_Api_Request_Parameter_Invoicing_Transaction
35
+ {
36
+ protected $capturemode = null;
37
+
38
+ public function setCapturemode($capturemode)
39
+ {
40
+ $this->capturemode = $capturemode;
41
+ }
42
+
43
+ public function getCapturemode()
44
+ {
45
+ return $this->capturemode;
46
+ }
47
+ }
lib/Payone/Api/Request/Parameter/CreateAccess/3dsecure.php CHANGED
@@ -1,96 +1,96 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_CreateAccess_3dsecure
34
- extends Payone_Api_Request_Parameter_CreateAccess_Abstract
35
- {
36
- /**
37
- * @var string
38
- */
39
- protected $xid = NULL;
40
- /**
41
- * @var string
42
- */
43
- protected $cavv = NULL;
44
- /**
45
- * @var string
46
- */
47
- protected $eci = NULL;
48
-
49
- /**
50
- * @param string $cavv
51
- */
52
- public function setCavv($cavv)
53
- {
54
- $this->cavv = $cavv;
55
- }
56
-
57
- /**
58
- * @return string
59
- */
60
- public function getCavv()
61
- {
62
- return $this->cavv;
63
- }
64
-
65
- /**
66
- * @param string $eci
67
- */
68
- public function setEci($eci)
69
- {
70
- $this->eci = $eci;
71
- }
72
-
73
- /**
74
- * @return string
75
- */
76
- public function getEci()
77
- {
78
- return $this->eci;
79
- }
80
-
81
- /**
82
- * @param string $xid
83
- */
84
- public function setXid($xid)
85
- {
86
- $this->xid = $xid;
87
- }
88
-
89
- /**
90
- * @return string
91
- */
92
- public function getXid()
93
- {
94
- return $this->xid;
95
- }
96
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_CreateAccess_3dsecure
34
+ extends Payone_Api_Request_Parameter_CreateAccess_Abstract
35
+ {
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $xid = NULL;
40
+ /**
41
+ * @var string
42
+ */
43
+ protected $cavv = NULL;
44
+ /**
45
+ * @var string
46
+ */
47
+ protected $eci = NULL;
48
+
49
+ /**
50
+ * @param string $cavv
51
+ */
52
+ public function setCavv($cavv)
53
+ {
54
+ $this->cavv = $cavv;
55
+ }
56
+
57
+ /**
58
+ * @return string
59
+ */
60
+ public function getCavv()
61
+ {
62
+ return $this->cavv;
63
+ }
64
+
65
+ /**
66
+ * @param string $eci
67
+ */
68
+ public function setEci($eci)
69
+ {
70
+ $this->eci = $eci;
71
+ }
72
+
73
+ /**
74
+ * @return string
75
+ */
76
+ public function getEci()
77
+ {
78
+ return $this->eci;
79
+ }
80
+
81
+ /**
82
+ * @param string $xid
83
+ */
84
+ public function setXid($xid)
85
+ {
86
+ $this->xid = $xid;
87
+ }
88
+
89
+ /**
90
+ * @return string
91
+ */
92
+ public function getXid()
93
+ {
94
+ return $this->xid;
95
+ }
96
+ }
lib/Payone/Api/Request/Parameter/CreateAccess/Abstract.php CHANGED
@@ -1,38 +1,38 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
-
34
- abstract class Payone_Api_Request_Parameter_CreateAccess_Abstract
35
- extends Payone_Api_Request_Parameter_Abstract
36
- {
37
-
38
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+
34
+ abstract class Payone_Api_Request_Parameter_CreateAccess_Abstract
35
+ extends Payone_Api_Request_Parameter_Abstract
36
+ {
37
+
38
+ }
lib/Payone/Api/Request/Parameter/CreateAccess/Billing.php CHANGED
@@ -1,151 +1,151 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_CreateAccess_Billing
34
- extends Payone_Api_Request_Parameter_Abstract
35
- {
36
-
37
- /**
38
- * ID or Name of booking account. (Permitted symbols: 0-9, a-z, A-Z, .,-,_,/)
39
- *
40
- * @var string
41
- */
42
- protected $vaccountname = NULL;
43
-
44
- /**
45
- * Length of payroll cycle
46
- *
47
- * @var int
48
- */
49
- protected $settle_period_length = NULL;
50
-
51
- /**
52
- * Time unit of payroll cycle
53
- *
54
- * @var string
55
- */
56
- protected $settle_period_unit = NULL;
57
-
58
- /**
59
- * Date of next billing as unixtimestamp
60
- *
61
- * @var int
62
- */
63
- protected $settletime = NULL;
64
-
65
- /**
66
- * @var string
67
- */
68
- protected $payout_open_balance = NULL;
69
-
70
- /**
71
- * @param string $payout_open_balance
72
- */
73
- public function setPayoutOpenBalance($payout_open_balance)
74
- {
75
- $this->payout_open_balance = $payout_open_balance;
76
- }
77
-
78
- /**
79
- * @return string
80
- */
81
- public function getPayoutOpenBalance()
82
- {
83
- return $this->payout_open_balance;
84
- }
85
-
86
- /**
87
- * @param int $settle_period_length
88
- */
89
- public function setSettlePeriodLength($settle_period_length)
90
- {
91
- $this->settle_period_length = $settle_period_length;
92
- }
93
-
94
- /**
95
- * @return int
96
- */
97
- public function getSettlePeriodLength()
98
- {
99
- return $this->settle_period_length;
100
- }
101
-
102
- /**
103
- * @param string $settle_period_unit
104
- */
105
- public function setSettlePeriodUnit($settle_period_unit)
106
- {
107
- $this->settle_period_unit = $settle_period_unit;
108
- }
109
-
110
- /**
111
- * @return string
112
- */
113
- public function getSettlePeriodUnit()
114
- {
115
- return $this->settle_period_unit;
116
- }
117
-
118
- /**
119
- * @param int $settletime
120
- */
121
- public function setSettletime($settletime)
122
- {
123
- $this->settletime = $settletime;
124
- }
125
-
126
- /**
127
- * @return int
128
- */
129
- public function getSettletime()
130
- {
131
- return $this->settletime;
132
- }
133
-
134
- /**
135
- * @param string $vaccountname
136
- */
137
- public function setVaccountname($vaccountname)
138
- {
139
- $this->vaccountname = $vaccountname;
140
- }
141
-
142
- /**
143
- * @return string
144
- */
145
- public function getVaccountname()
146
- {
147
- return $this->vaccountname;
148
- }
149
-
150
-
151
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_CreateAccess_Billing
34
+ extends Payone_Api_Request_Parameter_Abstract
35
+ {
36
+
37
+ /**
38
+ * ID or Name of booking account. (Permitted symbols: 0-9, a-z, A-Z, .,-,_,/)
39
+ *
40
+ * @var string
41
+ */
42
+ protected $vaccountname = NULL;
43
+
44
+ /**
45
+ * Length of payroll cycle
46
+ *
47
+ * @var int
48
+ */
49
+ protected $settle_period_length = NULL;
50
+
51
+ /**
52
+ * Time unit of payroll cycle
53
+ *
54
+ * @var string
55
+ */
56
+ protected $settle_period_unit = NULL;
57
+
58
+ /**
59
+ * Date of next billing as unixtimestamp
60
+ *
61
+ * @var int
62
+ */
63
+ protected $settletime = NULL;
64
+
65
+ /**
66
+ * @var string
67
+ */
68
+ protected $payout_open_balance = NULL;
69
+
70
+ /**
71
+ * @param string $payout_open_balance
72
+ */
73
+ public function setPayoutOpenBalance($payout_open_balance)
74
+ {
75
+ $this->payout_open_balance = $payout_open_balance;
76
+ }
77
+
78
+ /**
79
+ * @return string
80
+ */
81
+ public function getPayoutOpenBalance()
82
+ {
83
+ return $this->payout_open_balance;
84
+ }
85
+
86
+ /**
87
+ * @param int $settle_period_length
88
+ */
89
+ public function setSettlePeriodLength($settle_period_length)
90
+ {
91
+ $this->settle_period_length = $settle_period_length;
92
+ }
93
+
94
+ /**
95
+ * @return int
96
+ */
97
+ public function getSettlePeriodLength()
98
+ {
99
+ return $this->settle_period_length;
100
+ }
101
+
102
+ /**
103
+ * @param string $settle_period_unit
104
+ */
105
+ public function setSettlePeriodUnit($settle_period_unit)
106
+ {
107
+ $this->settle_period_unit = $settle_period_unit;
108
+ }
109
+
110
+ /**
111
+ * @return string
112
+ */
113
+ public function getSettlePeriodUnit()
114
+ {
115
+ return $this->settle_period_unit;
116
+ }
117
+
118
+ /**
119
+ * @param int $settletime
120
+ */
121
+ public function setSettletime($settletime)
122
+ {
123
+ $this->settletime = $settletime;
124
+ }
125
+
126
+ /**
127
+ * @return int
128
+ */
129
+ public function getSettletime()
130
+ {
131
+ return $this->settletime;
132
+ }
133
+
134
+ /**
135
+ * @param string $vaccountname
136
+ */
137
+ public function setVaccountname($vaccountname)
138
+ {
139
+ $this->vaccountname = $vaccountname;
140
+ }
141
+
142
+ /**
143
+ * @return string
144
+ */
145
+ public function getVaccountname()
146
+ {
147
+ return $this->vaccountname;
148
+ }
149
+
150
+
151
+ }
lib/Payone/Api/Request/Parameter/CreateAccess/Invoicing/Transaction.php CHANGED
@@ -1,132 +1,132 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_CreateAccess_Invoicing_Transaction
34
- extends Payone_Api_Request_Parameter_Abstract
35
- {
36
- /**
37
- * @var string
38
- */
39
- protected $invoice_deliverymode = NULL;
40
- /**
41
- * @var string
42
- */
43
- protected $invoiceappendix = NULL;
44
-
45
-
46
- /**
47
- * @var Payone_Api_Request_Parameter_Invoicing_Access_Item[]
48
- */
49
- protected $items = array();
50
-
51
- public function toArray()
52
- {
53
- $data = parent::toArray();
54
-
55
- $i = 1;
56
- foreach ($this->items as $key => $item) {
57
- /**
58
- * @var $item Payone_Api_Request_Parameter_Invoicing_Access_Item
59
- */
60
-
61
- $data = array_merge($data, $item->toArrayByKey($i));
62
-
63
- $i++;
64
- }
65
-
66
- return $data;
67
- }
68
-
69
- /**
70
- * @return bool
71
- */
72
- public function hasItems()
73
- {
74
- return count($this->items) ? true : false;
75
- }
76
-
77
- /**
78
- * @param Payone_Api_Request_Parameter_Invoicing_Access_Item $item
79
- */
80
- public function addItem(Payone_Api_Request_Parameter_Invoicing_Access_Item $item)
81
- {
82
- $this->items[] = $item;
83
- }
84
-
85
- /**
86
- * @param Payone_Api_Request_Parameter_Invoicing_Access_Item[] $items
87
- */
88
- public function setItems($items)
89
- {
90
- $this->items = $items;
91
- }
92
-
93
- /**
94
- * @return Payone_Api_Request_Parameter_Invoicing_Access_Item[]
95
- */
96
- public function getItems()
97
- {
98
- return $this->items;
99
- }
100
-
101
- /**
102
- * @param string $invoice_deliverymode
103
- */
104
- public function setInvoiceDeliverymode($invoice_deliverymode)
105
- {
106
- $this->invoice_deliverymode = $invoice_deliverymode;
107
- }
108
-
109
- /**
110
- * @return string
111
- */
112
- public function getInvoiceDeliverymode()
113
- {
114
- return $this->invoice_deliverymode;
115
- }
116
-
117
- /**
118
- * @param string $invoiceappendix
119
- */
120
- public function setInvoiceappendix($invoiceappendix)
121
- {
122
- $this->invoiceappendix = $invoiceappendix;
123
- }
124
-
125
- /**
126
- * @return string
127
- */
128
- public function getInvoiceappendix()
129
- {
130
- return $this->invoiceappendix;
131
- }
132
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_CreateAccess_Invoicing_Transaction
34
+ extends Payone_Api_Request_Parameter_Abstract
35
+ {
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $invoice_deliverymode = NULL;
40
+ /**
41
+ * @var string
42
+ */
43
+ protected $invoiceappendix = NULL;
44
+
45
+
46
+ /**
47
+ * @var Payone_Api_Request_Parameter_Invoicing_Access_Item[]
48
+ */
49
+ protected $items = array();
50
+
51
+ public function toArray()
52
+ {
53
+ $data = parent::toArray();
54
+
55
+ $i = 1;
56
+ foreach ($this->items as $key => $item) {
57
+ /**
58
+ * @var $item Payone_Api_Request_Parameter_Invoicing_Access_Item
59
+ */
60
+
61
+ $data = array_merge($data, $item->toArrayByKey($i));
62
+
63
+ $i++;
64
+ }
65
+
66
+ return $data;
67
+ }
68
+
69
+ /**
70
+ * @return bool
71
+ */
72
+ public function hasItems()
73
+ {
74
+ return count($this->items) ? true : false;
75
+ }
76
+
77
+ /**
78
+ * @param Payone_Api_Request_Parameter_Invoicing_Access_Item $item
79
+ */
80
+ public function addItem(Payone_Api_Request_Parameter_Invoicing_Access_Item $item)
81
+ {
82
+ $this->items[] = $item;
83
+ }
84
+
85
+ /**
86
+ * @param Payone_Api_Request_Parameter_Invoicing_Access_Item[] $items
87
+ */
88
+ public function setItems($items)
89
+ {
90
+ $this->items = $items;
91
+ }
92
+
93
+ /**
94
+ * @return Payone_Api_Request_Parameter_Invoicing_Access_Item[]
95
+ */
96
+ public function getItems()
97
+ {
98
+ return $this->items;
99
+ }
100
+
101
+ /**
102
+ * @param string $invoice_deliverymode
103
+ */
104
+ public function setInvoiceDeliverymode($invoice_deliverymode)
105
+ {
106
+ $this->invoice_deliverymode = $invoice_deliverymode;
107
+ }
108
+
109
+ /**
110
+ * @return string
111
+ */
112
+ public function getInvoiceDeliverymode()
113
+ {
114
+ return $this->invoice_deliverymode;
115
+ }
116
+
117
+ /**
118
+ * @param string $invoiceappendix
119
+ */
120
+ public function setInvoiceappendix($invoiceappendix)
121
+ {
122
+ $this->invoiceappendix = $invoiceappendix;
123
+ }
124
+
125
+ /**
126
+ * @return string
127
+ */
128
+ public function getInvoiceappendix()
129
+ {
130
+ return $this->invoiceappendix;
131
+ }
132
+ }
lib/Payone/Api/Request/Parameter/CreateAccess/PaymentMethod/Abstract.php CHANGED
@@ -1,36 +1,36 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_CreateAccess_PaymentMethod_Abstract
34
- extends Payone_Api_Request_Parameter_Abstract
35
- {
36
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_CreateAccess_PaymentMethod_Abstract
34
+ extends Payone_Api_Request_Parameter_Abstract
35
+ {
36
+ }
lib/Payone/Api/Request/Parameter/CreateAccess/PaymentMethod/CreditCard.php CHANGED
@@ -1,156 +1,156 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_CreateAccess_PaymentMethod_CreditCard
34
- extends Payone_Api_Request_Parameter_CreateAccess_PaymentMethod_Abstract
35
- {
36
- /**
37
- * @var string
38
- */
39
- protected $cardpan = NULL;
40
- /**
41
- * @var string
42
- */
43
- protected $cardtype = NULL;
44
- /**
45
- * @var int
46
- */
47
- protected $cardexpiredate = NULL;
48
- /**
49
- * @var int
50
- */
51
- protected $cardcvc2 = NULL;
52
- /**
53
- * @var string
54
- */
55
- protected $cardholder = NULL;
56
- /**
57
- * @var string
58
- */
59
- protected $pseudocardpan = NULL;
60
-
61
- /**
62
- * @param int $cardcvc2
63
- */
64
- public function setCardcvc2($cardcvc2)
65
- {
66
- $this->cardcvc2 = $cardcvc2;
67
- }
68
-
69
- /**
70
- * @return int
71
- */
72
- public function getCardcvc2()
73
- {
74
- return $this->cardcvc2;
75
- }
76
-
77
- /**
78
- * @param int $cardexpiredate
79
- */
80
- public function setCardexpiredate($cardexpiredate)
81
- {
82
- $this->cardexpiredate = $cardexpiredate;
83
- }
84
-
85
- /**
86
- * @return int
87
- */
88
- public function getCardexpiredate()
89
- {
90
- return $this->cardexpiredate;
91
- }
92
-
93
- /**
94
- * @param string $cardholder
95
- */
96
- public function setCardholder($cardholder)
97
- {
98
- $this->cardholder = $cardholder;
99
- }
100
-
101
- /**
102
- * @return string
103
- */
104
- public function getCardholder()
105
- {
106
- return $this->cardholder;
107
- }
108
-
109
- /**
110
- * @param string $cardpan
111
- */
112
- public function setCardpan($cardpan)
113
- {
114
- $this->cardpan = $cardpan;
115
- }
116
-
117
- /**
118
- * @return string
119
- */
120
- public function getCardpan()
121
- {
122
- return $this->cardpan;
123
- }
124
-
125
- /**
126
- * @param string $cardtype
127
- */
128
- public function setCardtype($cardtype)
129
- {
130
- $this->cardtype = $cardtype;
131
- }
132
-
133
- /**
134
- * @return string
135
- */
136
- public function getCardtype()
137
- {
138
- return $this->cardtype;
139
- }
140
-
141
- /**
142
- * @param string $pseudocardpan
143
- */
144
- public function setPseudocardpan($pseudocardpan)
145
- {
146
- $this->pseudocardpan = $pseudocardpan;
147
- }
148
-
149
- /**
150
- * @return string
151
- */
152
- public function getPseudocardpan()
153
- {
154
- return $this->pseudocardpan;
155
- }
156
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_CreateAccess_PaymentMethod_CreditCard
34
+ extends Payone_Api_Request_Parameter_CreateAccess_PaymentMethod_Abstract
35
+ {
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $cardpan = NULL;
40
+ /**
41
+ * @var string
42
+ */
43
+ protected $cardtype = NULL;
44
+ /**
45
+ * @var int
46
+ */
47
+ protected $cardexpiredate = NULL;
48
+ /**
49
+ * @var int
50
+ */
51
+ protected $cardcvc2 = NULL;
52
+ /**
53
+ * @var string
54
+ */
55
+ protected $cardholder = NULL;
56
+ /**
57
+ * @var string
58
+ */
59
+ protected $pseudocardpan = NULL;
60
+
61
+ /**
62
+ * @param int $cardcvc2
63
+ */
64
+ public function setCardcvc2($cardcvc2)
65
+ {
66
+ $this->cardcvc2 = $cardcvc2;
67
+ }
68
+
69
+ /**
70
+ * @return int
71
+ */
72
+ public function getCardcvc2()
73
+ {
74
+ return $this->cardcvc2;
75
+ }
76
+
77
+ /**
78
+ * @param int $cardexpiredate
79
+ */
80
+ public function setCardexpiredate($cardexpiredate)
81
+ {
82
+ $this->cardexpiredate = $cardexpiredate;
83
+ }
84
+
85
+ /**
86
+ * @return int
87
+ */
88
+ public function getCardexpiredate()
89
+ {
90
+ return $this->cardexpiredate;
91
+ }
92
+
93
+ /**
94
+ * @param string $cardholder
95
+ */
96
+ public function setCardholder($cardholder)
97
+ {
98
+ $this->cardholder = $cardholder;
99
+ }
100
+
101
+ /**
102
+ * @return string
103
+ */
104
+ public function getCardholder()
105
+ {
106
+ return $this->cardholder;
107
+ }
108
+
109
+ /**
110
+ * @param string $cardpan
111
+ */
112
+ public function setCardpan($cardpan)
113
+ {
114
+ $this->cardpan = $cardpan;
115
+ }
116
+
117
+ /**
118
+ * @return string
119
+ */
120
+ public function getCardpan()
121
+ {
122
+ return $this->cardpan;
123
+ }
124
+
125
+ /**
126
+ * @param string $cardtype
127
+ */
128
+ public function setCardtype($cardtype)
129
+ {
130
+ $this->cardtype = $cardtype;
131
+ }
132
+
133
+ /**
134
+ * @return string
135
+ */
136
+ public function getCardtype()
137
+ {
138
+ return $this->cardtype;
139
+ }
140
+
141
+ /**
142
+ * @param string $pseudocardpan
143
+ */
144
+ public function setPseudocardpan($pseudocardpan)
145
+ {
146
+ $this->pseudocardpan = $pseudocardpan;
147
+ }
148
+
149
+ /**
150
+ * @return string
151
+ */
152
+ public function getPseudocardpan()
153
+ {
154
+ return $this->pseudocardpan;
155
+ }
156
+ }
lib/Payone/Api/Request/Parameter/CreateAccess/PaymentMethod/DebitPayment.php CHANGED
@@ -1,176 +1,176 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_CreateAccess_PaymentMethod_DebitPayment
34
- extends Payone_Api_Request_Parameter_CreateAccess_PaymentMethod_Abstract
35
- {
36
- /**
37
- * @var string
38
- */
39
- protected $bankcountry = NULL;
40
- /**
41
- * @var string
42
- */
43
- protected $bankaccount = NULL;
44
- /**
45
- * @var string
46
- */
47
- protected $bankcode = NULL;
48
- /**
49
- * @var string
50
- */
51
- protected $bankaccountholder = NULL;
52
- /**
53
- * @var string
54
- */
55
- protected $iban = NULL;
56
- /**
57
- * @var string
58
- */
59
- protected $bic = NULL;
60
- /**
61
- * @var string
62
- */
63
- protected $mandate_identification = NULL;
64
-
65
- /**
66
- * @param string $bankaccount
67
- */
68
- public function setBankaccount($bankaccount)
69
- {
70
- $this->bankaccount = $bankaccount;
71
- }
72
-
73
- /**
74
- * @return string
75
- */
76
- public function getBankaccount()
77
- {
78
- return $this->bankaccount;
79
- }
80
-
81
- /**
82
- * @param string $bankaccountholder
83
- */
84
- public function setBankaccountholder($bankaccountholder)
85
- {
86
- $this->bankaccountholder = $bankaccountholder;
87
- }
88
-
89
- /**
90
- * @return string
91
- */
92
- public function getBankaccountholder()
93
- {
94
- return $this->bankaccountholder;
95
- }
96
-
97
- /**
98
- * @param string $bankcode
99
- */
100
- public function setBankcode($bankcode)
101
- {
102
- $this->bankcode = $bankcode;
103
- }
104
-
105
- /**
106
- * @return string
107
- */
108
- public function getBankcode()
109
- {
110
- return $this->bankcode;
111
- }
112
-
113
- /**
114
- * @param string $bankcountry
115
- */
116
- public function setBankcountry($bankcountry)
117
- {
118
- $this->bankcountry = $bankcountry;
119
- }
120
-
121
- /**
122
- * @return string
123
- */
124
- public function getBankcountry()
125
- {
126
- return $this->bankcountry;
127
- }
128
-
129
- /**
130
- * @param string $iban
131
- */
132
- public function setIban($iban)
133
- {
134
- $this->iban = $iban;
135
- }
136
-
137
- /**
138
- * @return string
139
- */
140
- public function getIban()
141
- {
142
- return $this->iban;
143
- }
144
-
145
- /**
146
- * @param string $bic
147
- */
148
- public function setBic($bic)
149
- {
150
- $this->bic = $bic;
151
- }
152
-
153
- /**
154
- * @return string
155
- */
156
- public function getBic()
157
- {
158
- return $this->bic;
159
- }
160
-
161
- /**
162
- * @param string $mandateIdentification
163
- */
164
- public function setMandateIdentification($mandateIdentification)
165
- {
166
- $this->mandate_identification = $mandateIdentification;
167
- }
168
-
169
- /**
170
- * @return string
171
- */
172
- public function getMandateIdentification()
173
- {
174
- return $this->mandate_identification;
175
- }
176
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_CreateAccess_PaymentMethod_DebitPayment
34
+ extends Payone_Api_Request_Parameter_CreateAccess_PaymentMethod_Abstract
35
+ {
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $bankcountry = NULL;
40
+ /**
41
+ * @var string
42
+ */
43
+ protected $bankaccount = NULL;
44
+ /**
45
+ * @var string
46
+ */
47
+ protected $bankcode = NULL;
48
+ /**
49
+ * @var string
50
+ */
51
+ protected $bankaccountholder = NULL;
52
+ /**
53
+ * @var string
54
+ */
55
+ protected $iban = NULL;
56
+ /**
57
+ * @var string
58
+ */
59
+ protected $bic = NULL;
60
+ /**
61
+ * @var string
62
+ */
63
+ protected $mandate_identification = NULL;
64
+
65
+ /**
66
+ * @param string $bankaccount
67
+ */
68
+ public function setBankaccount($bankaccount)
69
+ {
70
+ $this->bankaccount = $bankaccount;
71
+ }
72
+
73
+ /**
74
+ * @return string
75
+ */
76
+ public function getBankaccount()
77
+ {
78
+ return $this->bankaccount;
79
+ }
80
+
81
+ /**
82
+ * @param string $bankaccountholder
83
+ */
84
+ public function setBankaccountholder($bankaccountholder)
85
+ {
86
+ $this->bankaccountholder = $bankaccountholder;
87
+ }
88
+
89
+ /**
90
+ * @return string
91
+ */
92
+ public function getBankaccountholder()
93
+ {
94
+ return $this->bankaccountholder;
95
+ }
96
+
97
+ /**
98
+ * @param string $bankcode
99
+ */
100
+ public function setBankcode($bankcode)
101
+ {
102
+ $this->bankcode = $bankcode;
103
+ }
104
+
105
+ /**
106
+ * @return string
107
+ */
108
+ public function getBankcode()
109
+ {
110
+ return $this->bankcode;
111
+ }
112
+
113
+ /**
114
+ * @param string $bankcountry
115
+ */
116
+ public function setBankcountry($bankcountry)
117
+ {
118
+ $this->bankcountry = $bankcountry;
119
+ }
120
+
121
+ /**
122
+ * @return string
123
+ */
124
+ public function getBankcountry()
125
+ {
126
+ return $this->bankcountry;
127
+ }
128
+
129
+ /**
130
+ * @param string $iban
131
+ */
132
+ public function setIban($iban)
133
+ {
134
+ $this->iban = $iban;
135
+ }
136
+
137
+ /**
138
+ * @return string
139
+ */
140
+ public function getIban()
141
+ {
142
+ return $this->iban;
143
+ }
144
+
145
+ /**
146
+ * @param string $bic
147
+ */
148
+ public function setBic($bic)
149
+ {
150
+ $this->bic = $bic;
151
+ }
152
+
153
+ /**
154
+ * @return string
155
+ */
156
+ public function getBic()
157
+ {
158
+ return $this->bic;
159
+ }
160
+
161
+ /**
162
+ * @param string $mandateIdentification
163
+ */
164
+ public function setMandateIdentification($mandateIdentification)
165
+ {
166
+ $this->mandate_identification = $mandateIdentification;
167
+ }
168
+
169
+ /**
170
+ * @return string
171
+ */
172
+ public function getMandateIdentification()
173
+ {
174
+ return $this->mandate_identification;
175
+ }
176
+ }
lib/Payone/Api/Request/Parameter/CreateAccess/PersonalData.php CHANGED
@@ -1,288 +1,288 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_CreateAccess_PersonalData
34
- extends Payone_Api_Request_Parameter_CreateAccess_Abstract
35
- {
36
- /**
37
- * Merchant's customer ID (Permitted symbols: 0-9, a-z, A-Z, .,-,_,/)
38
- * @var string
39
- */
40
- protected $customerid = null;
41
- /**
42
- * PAYONE debitor ID
43
- *
44
- * @var int
45
- */
46
- protected $userid = NULL;
47
- protected $salutation = null;
48
- protected $title = null;
49
- protected $firstname = null;
50
- protected $lastname = null;
51
- protected $company = null;
52
- protected $street = null;
53
- protected $addressaddition = null;
54
- protected $zip = null;
55
- protected $city = null;
56
- /**
57
- * Country (ISO-3166)
58
- *
59
- * @var string
60
- */
61
- protected $country = null;
62
- protected $email = null;
63
- protected $telephonenumber = null;
64
- /**
65
- * Date of birth (YYYYMMDD)
66
- *
67
- * @var int
68
- */
69
- protected $birthday = NULL;
70
- /**
71
- * Language indicator (ISO639)
72
- *
73
- * @var string
74
- */
75
- protected $language = null;
76
- protected $vatid = null;
77
- protected $ip = null;
78
-
79
- public function setAddressaddition($addressaddition)
80
- {
81
- $this->addressaddition = $addressaddition;
82
- }
83
-
84
- public function getAddressaddition()
85
- {
86
- return $this->addressaddition;
87
- }
88
-
89
- /**
90
- * @param string $birthday
91
- */
92
- public function setBirthday($birthday)
93
- {
94
- $this->birthday = $birthday;
95
- }
96
-
97
- /**
98
- * @return string
99
- */
100
- public function getBirthday()
101
- {
102
- return $this->birthday;
103
- }
104
-
105
- public function setCity($city)
106
- {
107
- $this->city = $city;
108
- }
109
-
110
- public function getCity()
111
- {
112
- return $this->city;
113
- }
114
-
115
- public function setCompany($company)
116
- {
117
- $this->company = $company;
118
- }
119
-
120
- public function getCompany()
121
- {
122
- return $this->company;
123
- }
124
-
125
- /**
126
- * @param string $country
127
- */
128
- public function setCountry($country)
129
- {
130
- $this->country = $country;
131
- }
132
-
133
- /**
134
- * @return string
135
- */
136
- public function getCountry()
137
- {
138
- return $this->country;
139
- }
140
-
141
- /**
142
- * @param string $customerid
143
- */
144
- public function setCustomerid($customerid)
145
- {
146
- $this->customerid = $customerid;
147
- }
148
-
149
- /**
150
- * @return string
151
- */
152
- public function getCustomerid()
153
- {
154
- return $this->customerid;
155
- }
156
-
157
- public function setEmail($email)
158
- {
159
- $this->email = $email;
160
- }
161
-
162
- public function getEmail()
163
- {
164
- return $this->email;
165
- }
166
-
167
- public function setFirstname($firstname)
168
- {
169
- $this->firstname = $firstname;
170
- }
171
-
172
- public function getFirstname()
173
- {
174
- return $this->firstname;
175
- }
176
-
177
- public function setIp($ip)
178
- {
179
- $this->ip = $ip;
180
- }
181
-
182
- public function getIp()
183
- {
184
- return $this->ip;
185
- }
186
-
187
- /**
188
- * @param string $language
189
- */
190
- public function setLanguage($language)
191
- {
192
- $this->language = $language;
193
- }
194
-
195
- /**
196
- * @return string
197
- */
198
- public function getLanguage()
199
- {
200
- return $this->language;
201
- }
202
-
203
- public function setLastname($lastname)
204
- {
205
- $this->lastname = $lastname;
206
- }
207
-
208
- public function getLastname()
209
- {
210
- return $this->lastname;
211
- }
212
-
213
- public function setSalutation($salutation)
214
- {
215
- $this->salutation = $salutation;
216
- }
217
-
218
- public function getSalutation()
219
- {
220
- return $this->salutation;
221
- }
222
-
223
- public function setStreet($street)
224
- {
225
- $this->street = $street;
226
- }
227
-
228
- public function getStreet()
229
- {
230
- return $this->street;
231
- }
232
-
233
- public function setTelephonenumber($telephonenumber)
234
- {
235
- $this->telephonenumber = $telephonenumber;
236
- }
237
-
238
- public function getTelephonenumber()
239
- {
240
- return $this->telephonenumber;
241
- }
242
-
243
- public function setTitle($title)
244
- {
245
- $this->title = $title;
246
- }
247
-
248
- public function getTitle()
249
- {
250
- return $this->title;
251
- }
252
-
253
- /**
254
- * @param string $userid
255
- */
256
- public function setUserid($userid)
257
- {
258
- $this->userid = $userid;
259
- }
260
-
261
- /**
262
- * @return string
263
- */
264
- public function getUserid()
265
- {
266
- return $this->userid;
267
- }
268
-
269
- public function setVatid($vatid)
270
- {
271
- $this->vatid = $vatid;
272
- }
273
-
274
- public function getVatid()
275
- {
276
- return $this->vatid;
277
- }
278
-
279
- public function setZip($zip)
280
- {
281
- $this->zip = $zip;
282
- }
283
-
284
- public function getZip()
285
- {
286
- return $this->zip;
287
- }
288
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_CreateAccess_PersonalData
34
+ extends Payone_Api_Request_Parameter_CreateAccess_Abstract
35
+ {
36
+ /**
37
+ * Merchant's customer ID (Permitted symbols: 0-9, a-z, A-Z, .,-,_,/)
38
+ * @var string
39
+ */
40
+ protected $customerid = null;
41
+ /**
42
+ * PAYONE debitor ID
43
+ *
44
+ * @var int
45
+ */
46
+ protected $userid = NULL;
47
+ protected $salutation = null;
48
+ protected $title = null;
49
+ protected $firstname = null;
50
+ protected $lastname = null;
51
+ protected $company = null;
52
+ protected $street = null;
53
+ protected $addressaddition = null;
54
+ protected $zip = null;
55
+ protected $city = null;
56
+ /**
57
+ * Country (ISO-3166)
58
+ *
59
+ * @var string
60
+ */
61
+ protected $country = null;
62
+ protected $email = null;
63
+ protected $telephonenumber = null;
64
+ /**
65
+ * Date of birth (YYYYMMDD)
66
+ *
67
+ * @var int
68
+ */
69
+ protected $birthday = NULL;
70
+ /**
71
+ * Language indicator (ISO639)
72
+ *
73
+ * @var string
74
+ */
75
+ protected $language = null;
76
+ protected $vatid = null;
77
+ protected $ip = null;
78
+
79
+ public function setAddressaddition($addressaddition)
80
+ {
81
+ $this->addressaddition = $addressaddition;
82
+ }
83
+
84
+ public function getAddressaddition()
85
+ {
86
+ return $this->addressaddition;
87
+ }
88
+
89
+ /**
90
+ * @param string $birthday
91
+ */
92
+ public function setBirthday($birthday)
93
+ {
94
+ $this->birthday = $birthday;
95
+ }
96
+
97
+ /**
98
+ * @return string
99
+ */
100
+ public function getBirthday()
101
+ {
102
+ return $this->birthday;
103
+ }
104
+
105
+ public function setCity($city)
106
+ {
107
+ $this->city = $city;
108
+ }
109
+
110
+ public function getCity()
111
+ {
112
+ return $this->city;
113
+ }
114
+
115
+ public function setCompany($company)
116
+ {
117
+ $this->company = $company;
118
+ }
119
+
120
+ public function getCompany()
121
+ {
122
+ return $this->company;
123
+ }
124
+
125
+ /**
126
+ * @param string $country
127
+ */
128
+ public function setCountry($country)
129
+ {
130
+ $this->country = $country;
131
+ }
132
+
133
+ /**
134
+ * @return string
135
+ */
136
+ public function getCountry()
137
+ {
138
+ return $this->country;
139
+ }
140
+
141
+ /**
142
+ * @param string $customerid
143
+ */
144
+ public function setCustomerid($customerid)
145
+ {
146
+ $this->customerid = $customerid;
147
+ }
148
+
149
+ /**
150
+ * @return string
151
+ */
152
+ public function getCustomerid()
153
+ {
154
+ return $this->customerid;
155
+ }
156
+
157
+ public function setEmail($email)
158
+ {
159
+ $this->email = $email;
160
+ }
161
+
162
+ public function getEmail()
163
+ {
164
+ return $this->email;
165
+ }
166
+
167
+ public function setFirstname($firstname)
168
+ {
169
+ $this->firstname = $firstname;
170
+ }
171
+
172
+ public function getFirstname()
173
+ {
174
+ return $this->firstname;
175
+ }
176
+
177
+ public function setIp($ip)
178
+ {
179
+ $this->ip = $ip;
180
+ }
181
+
182
+ public function getIp()
183
+ {
184
+ return $this->ip;
185
+ }
186
+
187
+ /**
188
+ * @param string $language
189
+ */
190
+ public function setLanguage($language)
191
+ {
192
+ $this->language = $language;
193
+ }
194
+
195
+ /**
196
+ * @return string
197
+ */
198
+ public function getLanguage()
199
+ {
200
+ return $this->language;
201
+ }
202
+
203
+ public function setLastname($lastname)
204
+ {
205
+ $this->lastname = $lastname;
206
+ }
207
+
208
+ public function getLastname()
209
+ {
210
+ return $this->lastname;
211
+ }
212
+
213
+ public function setSalutation($salutation)
214
+ {
215
+ $this->salutation = $salutation;
216
+ }
217
+
218
+ public function getSalutation()
219
+ {
220
+ return $this->salutation;
221
+ }
222
+
223
+ public function setStreet($street)
224
+ {
225
+ $this->street = $street;
226
+ }
227
+
228
+ public function getStreet()
229
+ {
230
+ return $this->street;
231
+ }
232
+
233
+ public function setTelephonenumber($telephonenumber)
234
+ {
235
+ $this->telephonenumber = $telephonenumber;
236
+ }
237
+
238
+ public function getTelephonenumber()
239
+ {
240
+ return $this->telephonenumber;
241
+ }
242
+
243
+ public function setTitle($title)
244
+ {
245
+ $this->title = $title;
246
+ }
247
+
248
+ public function getTitle()
249
+ {
250
+ return $this->title;
251
+ }
252
+
253
+ /**
254
+ * @param string $userid
255
+ */
256
+ public function setUserid($userid)
257
+ {
258
+ $this->userid = $userid;
259
+ }
260
+
261
+ /**
262
+ * @return string
263
+ */
264
+ public function getUserid()
265
+ {
266
+ return $this->userid;
267
+ }
268
+
269
+ public function setVatid($vatid)
270
+ {
271
+ $this->vatid = $vatid;
272
+ }
273
+
274
+ public function getVatid()
275
+ {
276
+ return $this->vatid;
277
+ }
278
+
279
+ public function setZip($zip)
280
+ {
281
+ $this->zip = $zip;
282
+ }
283
+
284
+ public function getZip()
285
+ {
286
+ return $this->zip;
287
+ }
288
+ }
lib/Payone/Api/Request/Parameter/Debit/Abstract.php CHANGED
@@ -1,37 +1,37 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_Debit_Abstract
34
- extends Payone_Api_Request_Parameter_Abstract
35
- {
36
-
37
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_Debit_Abstract
34
+ extends Payone_Api_Request_Parameter_Abstract
35
+ {
36
+
37
+ }
lib/Payone/Api/Request/Parameter/Debit/Business.php CHANGED
@@ -1,116 +1,116 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_Debit_Business
34
- extends Payone_Api_Request_Parameter_Debit_Abstract
35
- {
36
- /**
37
- * @var string
38
- */
39
- protected $settleaccount = NULL;
40
- /**
41
- * @var string
42
- */
43
- protected $transactiontype = NULL;
44
- /**
45
- * @var string
46
- */
47
- protected $booking_date = NULL;
48
- /**
49
- * @var string
50
- */
51
- protected $document_date = NULL;
52
-
53
- /**
54
- * @param string $booking_date
55
- */
56
- public function setBookingDate($booking_date)
57
- {
58
- $this->booking_date = $booking_date;
59
- }
60
-
61
- /**
62
- * @return string
63
- */
64
- public function getBookingDate()
65
- {
66
- return $this->booking_date;
67
- }
68
-
69
- /**
70
- * @param string $document_date
71
- */
72
- public function setDocumentDate($document_date)
73
- {
74
- $this->document_date = $document_date;
75
- }
76
-
77
- /**
78
- * @return string
79
- */
80
- public function getDocumentDate()
81
- {
82
- return $this->document_date;
83
- }
84
-
85
- /**
86
- * @param string $settleaccount
87
- */
88
- public function setSettleaccount($settleaccount)
89
- {
90
- $this->settleaccount = $settleaccount;
91
- }
92
-
93
- /**
94
- * @return string
95
- */
96
- public function getSettleaccount()
97
- {
98
- return $this->settleaccount;
99
- }
100
-
101
- /**
102
- * @param string $transactiontype
103
- */
104
- public function setTransactiontype($transactiontype)
105
- {
106
- $this->transactiontype = $transactiontype;
107
- }
108
-
109
- /**
110
- * @return string
111
- */
112
- public function getTransactiontype()
113
- {
114
- return $this->transactiontype;
115
- }
116
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_Debit_Business
34
+ extends Payone_Api_Request_Parameter_Debit_Abstract
35
+ {
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $settleaccount = NULL;
40
+ /**
41
+ * @var string
42
+ */
43
+ protected $transactiontype = NULL;
44
+ /**
45
+ * @var string
46
+ */
47
+ protected $booking_date = NULL;
48
+ /**
49
+ * @var string
50
+ */
51
+ protected $document_date = NULL;
52
+
53
+ /**
54
+ * @param string $booking_date
55
+ */
56
+ public function setBookingDate($booking_date)
57
+ {
58
+ $this->booking_date = $booking_date;
59
+ }
60
+
61
+ /**
62
+ * @return string
63
+ */
64
+ public function getBookingDate()
65
+ {
66
+ return $this->booking_date;
67
+ }
68
+
69
+ /**
70
+ * @param string $document_date
71
+ */
72
+ public function setDocumentDate($document_date)
73
+ {
74
+ $this->document_date = $document_date;
75
+ }
76
+
77
+ /**
78
+ * @return string
79
+ */
80
+ public function getDocumentDate()
81
+ {
82
+ return $this->document_date;
83
+ }
84
+
85
+ /**
86
+ * @param string $settleaccount
87
+ */
88
+ public function setSettleaccount($settleaccount)
89
+ {
90
+ $this->settleaccount = $settleaccount;
91
+ }
92
+
93
+ /**
94
+ * @return string
95
+ */
96
+ public function getSettleaccount()
97
+ {
98
+ return $this->settleaccount;
99
+ }
100
+
101
+ /**
102
+ * @param string $transactiontype
103
+ */
104
+ public function setTransactiontype($transactiontype)
105
+ {
106
+ $this->transactiontype = $transactiontype;
107
+ }
108
+
109
+ /**
110
+ * @return string
111
+ */
112
+ public function getTransactiontype()
113
+ {
114
+ return $this->transactiontype;
115
+ }
116
+ }
lib/Payone/Api/Request/Parameter/Debit/PaymentMethod/Abstract.php CHANGED
@@ -1,36 +1,36 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_Debit_PaymentMethod_Abstract
34
- extends Payone_Api_Request_Parameter_Abstract
35
- {
36
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_Debit_PaymentMethod_Abstract
34
+ extends Payone_Api_Request_Parameter_Abstract
35
+ {
36
+ }
lib/Payone/Api/Request/Parameter/Debit/PaymentMethod/BankAccount.php CHANGED
@@ -1,216 +1,216 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_Debit_PaymentMethod_BankAccount
34
- extends Payone_Api_Request_Parameter_Debit_PaymentMethod_Abstract
35
- {
36
- /**
37
- * @var string
38
- */
39
- protected $bankcountry = NULL;
40
- /**
41
- * @var string
42
- */
43
- protected $bankaccount = NULL;
44
- /**
45
- * @var int
46
- */
47
- protected $bankcode = NULL;
48
- /**
49
- * @var int
50
- */
51
- protected $bankbranchcode = NULL;
52
- /**
53
- * @var int
54
- */
55
- protected $bankcheckdigit = NULL;
56
- /**
57
- * @var string
58
- */
59
- protected $bankaccountholder = NULL;
60
- /**
61
- * @var string
62
- */
63
- protected $iban = NULL;
64
- /**
65
- * @var string
66
- */
67
- protected $bic = NULL;
68
- /**
69
- * @var string
70
- */
71
- protected $mandate_identification = NULL;
72
-
73
- /**
74
- * @param string $bankaccount
75
- */
76
- public function setBankaccount($bankaccount)
77
- {
78
- $this->bankaccount = $bankaccount;
79
- }
80
-
81
- /**
82
- * @return string
83
- */
84
- public function getBankaccount()
85
- {
86
- return $this->bankaccount;
87
- }
88
-
89
- /**
90
- * @param string $bankaccountholder
91
- */
92
- public function setBankaccountholder($bankaccountholder)
93
- {
94
- $this->bankaccountholder = $bankaccountholder;
95
- }
96
-
97
- /**
98
- * @return string
99
- */
100
- public function getBankaccountholder()
101
- {
102
- return $this->bankaccountholder;
103
- }
104
-
105
- /**
106
- * @param int $bankbranchcode
107
- */
108
- public function setBankbranchcode($bankbranchcode)
109
- {
110
- $this->bankbranchcode = $bankbranchcode;
111
- }
112
-
113
- /**
114
- * @return int
115
- */
116
- public function getBankbranchcode()
117
- {
118
- return $this->bankbranchcode;
119
- }
120
-
121
- /**
122
- * @param int $bankcheckdigit
123
- */
124
- public function setBankcheckdigit($bankcheckdigit)
125
- {
126
- $this->bankcheckdigit = $bankcheckdigit;
127
- }
128
-
129
- /**
130
- * @return int
131
- */
132
- public function getBankcheckdigit()
133
- {
134
- return $this->bankcheckdigit;
135
- }
136
-
137
- /**
138
- * @param int $bankcode
139
- */
140
- public function setBankcode($bankcode)
141
- {
142
- $this->bankcode = $bankcode;
143
- }
144
-
145
- /**
146
- * @return int
147
- */
148
- public function getBankcode()
149
- {
150
- return $this->bankcode;
151
- }
152
-
153
- /**
154
- * @param string $bankcountry
155
- */
156
- public function setBankcountry($bankcountry)
157
- {
158
- $this->bankcountry = $bankcountry;
159
- }
160
-
161
- /**
162
- * @return string
163
- */
164
- public function getBankcountry()
165
- {
166
- return $this->bankcountry;
167
- }
168
-
169
- /**
170
- * @param string $iban
171
- */
172
- public function setIban($iban)
173
- {
174
- $this->iban = $iban;
175
- }
176
-
177
- /**
178
- * @return string
179
- */
180
- public function getIban()
181
- {
182
- return $this->iban;
183
- }
184
-
185
- /**
186
- * @param string $bic
187
- */
188
- public function setBic($bic)
189
- {
190
- $this->bic = $bic;
191
- }
192
-
193
- /**
194
- * @return string
195
- */
196
- public function getBic()
197
- {
198
- return $this->bic;
199
- }
200
-
201
- /**
202
- * @param string $mandateIdentification
203
- */
204
- public function setMandateIdentification($mandateIdentification)
205
- {
206
- $this->mandate_identification = $mandateIdentification;
207
- }
208
-
209
- /**
210
- * @return string
211
- */
212
- public function getMandateIdentification()
213
- {
214
- return $this->mandate_identification;
215
- }
216
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_Debit_PaymentMethod_BankAccount
34
+ extends Payone_Api_Request_Parameter_Debit_PaymentMethod_Abstract
35
+ {
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $bankcountry = NULL;
40
+ /**
41
+ * @var string
42
+ */
43
+ protected $bankaccount = NULL;
44
+ /**
45
+ * @var int
46
+ */
47
+ protected $bankcode = NULL;
48
+ /**
49
+ * @var int
50
+ */
51
+ protected $bankbranchcode = NULL;
52
+ /**
53
+ * @var int
54
+ */
55
+ protected $bankcheckdigit = NULL;
56
+ /**
57
+ * @var string
58
+ */
59
+ protected $bankaccountholder = NULL;
60
+ /**
61
+ * @var string
62
+ */
63
+ protected $iban = NULL;
64
+ /**
65
+ * @var string
66
+ */
67
+ protected $bic = NULL;
68
+ /**
69
+ * @var string
70
+ */
71
+ protected $mandate_identification = NULL;
72
+
73
+ /**
74
+ * @param string $bankaccount
75
+ */
76
+ public function setBankaccount($bankaccount)
77
+ {
78
+ $this->bankaccount = $bankaccount;
79
+ }
80
+
81
+ /**
82
+ * @return string
83
+ */
84
+ public function getBankaccount()
85
+ {
86
+ return $this->bankaccount;
87
+ }
88
+
89
+ /**
90
+ * @param string $bankaccountholder
91
+ */
92
+ public function setBankaccountholder($bankaccountholder)
93
+ {
94
+ $this->bankaccountholder = $bankaccountholder;
95
+ }
96
+
97
+ /**
98
+ * @return string
99
+ */
100
+ public function getBankaccountholder()
101
+ {
102
+ return $this->bankaccountholder;
103
+ }
104
+
105
+ /**
106
+ * @param int $bankbranchcode
107
+ */
108
+ public function setBankbranchcode($bankbranchcode)
109
+ {
110
+ $this->bankbranchcode = $bankbranchcode;
111
+ }
112
+
113
+ /**
114
+ * @return int
115
+ */
116
+ public function getBankbranchcode()
117
+ {
118
+ return $this->bankbranchcode;
119
+ }
120
+
121
+ /**
122
+ * @param int $bankcheckdigit
123
+ */
124
+ public function setBankcheckdigit($bankcheckdigit)
125
+ {
126
+ $this->bankcheckdigit = $bankcheckdigit;
127
+ }
128
+
129
+ /**
130
+ * @return int
131
+ */
132
+ public function getBankcheckdigit()
133
+ {
134
+ return $this->bankcheckdigit;
135
+ }
136
+
137
+ /**
138
+ * @param int $bankcode
139
+ */
140
+ public function setBankcode($bankcode)
141
+ {
142
+ $this->bankcode = $bankcode;
143
+ }
144
+
145
+ /**
146
+ * @return int
147
+ */
148
+ public function getBankcode()
149
+ {
150
+ return $this->bankcode;
151
+ }
152
+
153
+ /**
154
+ * @param string $bankcountry
155
+ */
156
+ public function setBankcountry($bankcountry)
157
+ {
158
+ $this->bankcountry = $bankcountry;
159
+ }
160
+
161
+ /**
162
+ * @return string
163
+ */
164
+ public function getBankcountry()
165
+ {
166
+ return $this->bankcountry;
167
+ }
168
+
169
+ /**
170
+ * @param string $iban
171
+ */
172
+ public function setIban($iban)
173
+ {
174
+ $this->iban = $iban;
175
+ }
176
+
177
+ /**
178
+ * @return string
179
+ */
180
+ public function getIban()
181
+ {
182
+ return $this->iban;
183
+ }
184
+
185
+ /**
186
+ * @param string $bic
187
+ */
188
+ public function setBic($bic)
189
+ {
190
+ $this->bic = $bic;
191
+ }
192
+
193
+ /**
194
+ * @return string
195
+ */
196
+ public function getBic()
197
+ {
198
+ return $this->bic;
199
+ }
200
+
201
+ /**
202
+ * @param string $mandateIdentification
203
+ */
204
+ public function setMandateIdentification($mandateIdentification)
205
+ {
206
+ $this->mandate_identification = $mandateIdentification;
207
+ }
208
+
209
+ /**
210
+ * @return string
211
+ */
212
+ public function getMandateIdentification()
213
+ {
214
+ return $this->mandate_identification;
215
+ }
216
+ }
lib/Payone/Api/Request/Parameter/Debit/PaymentMethod/CreditCard.php CHANGED
@@ -1,176 +1,176 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_Debit_PaymentMethod_CreditCard
34
- extends Payone_Api_Request_Parameter_Debit_PaymentMethod_Abstract
35
- {
36
- /**
37
- * @var string
38
- */
39
- protected $cardpan = NULL;
40
- /**
41
- * @var string
42
- */
43
- protected $cardtype = NULL;
44
- /**
45
- * @var int
46
- */
47
- protected $cardexpiredate = NULL;
48
- /**
49
- * @var int
50
- */
51
- protected $cardcvc2 = NULL;
52
- /**
53
- * @var int
54
- */
55
- protected $cardissuenumber = NULL;
56
- /**
57
- * @var string
58
- */
59
- protected $cardholder = NULL;
60
- /**
61
- * @var string
62
- */
63
- protected $pseudocardpan = NULL;
64
-
65
- /**
66
- * @param int $cardcvc2
67
- */
68
- public function setCardcvc2($cardcvc2)
69
- {
70
- $this->cardcvc2 = $cardcvc2;
71
- }
72
-
73
- /**
74
- * @return int
75
- */
76
- public function getCardcvc2()
77
- {
78
- return $this->cardcvc2;
79
- }
80
-
81
- /**
82
- * @param int $cardexpiredate
83
- */
84
- public function setCardexpiredate($cardexpiredate)
85
- {
86
- $this->cardexpiredate = $cardexpiredate;
87
- }
88
-
89
- /**
90
- * @return int
91
- */
92
- public function getCardexpiredate()
93
- {
94
- return $this->cardexpiredate;
95
- }
96
-
97
- /**
98
- * @param string $cardholder
99
- */
100
- public function setCardholder($cardholder)
101
- {
102
- $this->cardholder = $cardholder;
103
- }
104
-
105
- /**
106
- * @return string
107
- */
108
- public function getCardholder()
109
- {
110
- return $this->cardholder;
111
- }
112
-
113
- /**
114
- * @param int $cardissuenumber
115
- */
116
- public function setCardissuenumber($cardissuenumber)
117
- {
118
- $this->cardissuenumber = $cardissuenumber;
119
- }
120
-
121
- /**
122
- * @return int
123
- */
124
- public function getCardissuenumber()
125
- {
126
- return $this->cardissuenumber;
127
- }
128
-
129
- /**
130
- * @param string $cardpan
131
- */
132
- public function setCardpan($cardpan)
133
- {
134
- $this->cardpan = $cardpan;
135
- }
136
-
137
- /**
138
- * @return string
139
- */
140
- public function getCardpan()
141
- {
142
- return $this->cardpan;
143
- }
144
-
145
- /**
146
- * @param string $cardtype
147
- */
148
- public function setCardtype($cardtype)
149
- {
150
- $this->cardtype = $cardtype;
151
- }
152
-
153
- /**
154
- * @return string
155
- */
156
- public function getCardtype()
157
- {
158
- return $this->cardtype;
159
- }
160
-
161
- /**
162
- * @param string $pseudocardpan
163
- */
164
- public function setPseudocardpan($pseudocardpan)
165
- {
166
- $this->pseudocardpan = $pseudocardpan;
167
- }
168
-
169
- /**
170
- * @return string
171
- */
172
- public function getPseudocardpan()
173
- {
174
- return $this->pseudocardpan;
175
- }
176
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_Debit_PaymentMethod_CreditCard
34
+ extends Payone_Api_Request_Parameter_Debit_PaymentMethod_Abstract
35
+ {
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $cardpan = NULL;
40
+ /**
41
+ * @var string
42
+ */
43
+ protected $cardtype = NULL;
44
+ /**
45
+ * @var int
46
+ */
47
+ protected $cardexpiredate = NULL;
48
+ /**
49
+ * @var int
50
+ */
51
+ protected $cardcvc2 = NULL;
52
+ /**
53
+ * @var int
54
+ */
55
+ protected $cardissuenumber = NULL;
56
+ /**
57
+ * @var string
58
+ */
59
+ protected $cardholder = NULL;
60
+ /**
61
+ * @var string
62
+ */
63
+ protected $pseudocardpan = NULL;
64
+
65
+ /**
66
+ * @param int $cardcvc2
67
+ */
68
+ public function setCardcvc2($cardcvc2)
69
+ {
70
+ $this->cardcvc2 = $cardcvc2;
71
+ }
72
+
73
+ /**
74
+ * @return int
75
+ */
76
+ public function getCardcvc2()
77
+ {
78
+ return $this->cardcvc2;
79
+ }
80
+
81
+ /**
82
+ * @param int $cardexpiredate
83
+ */
84
+ public function setCardexpiredate($cardexpiredate)
85
+ {
86
+ $this->cardexpiredate = $cardexpiredate;
87
+ }
88
+
89
+ /**
90
+ * @return int
91
+ */
92
+ public function getCardexpiredate()
93
+ {
94
+ return $this->cardexpiredate;
95
+ }
96
+
97
+ /**
98
+ * @param string $cardholder
99
+ */
100
+ public function setCardholder($cardholder)
101
+ {
102
+ $this->cardholder = $cardholder;
103
+ }
104
+
105
+ /**
106
+ * @return string
107
+ */
108
+ public function getCardholder()
109
+ {
110
+ return $this->cardholder;
111
+ }
112
+
113
+ /**
114
+ * @param int $cardissuenumber
115
+ */
116
+ public function setCardissuenumber($cardissuenumber)
117
+ {
118
+ $this->cardissuenumber = $cardissuenumber;
119
+ }
120
+
121
+ /**
122
+ * @return int
123
+ */
124
+ public function getCardissuenumber()
125
+ {
126
+ return $this->cardissuenumber;
127
+ }
128
+
129
+ /**
130
+ * @param string $cardpan
131
+ */
132
+ public function setCardpan($cardpan)
133
+ {
134
+ $this->cardpan = $cardpan;
135
+ }
136
+
137
+ /**
138
+ * @return string
139
+ */
140
+ public function getCardpan()
141
+ {
142
+ return $this->cardpan;
143
+ }
144
+
145
+ /**
146
+ * @param string $cardtype
147
+ */
148
+ public function setCardtype($cardtype)
149
+ {
150
+ $this->cardtype = $cardtype;
151
+ }
152
+
153
+ /**
154
+ * @return string
155
+ */
156
+ public function getCardtype()
157
+ {
158
+ return $this->cardtype;
159
+ }
160
+
161
+ /**
162
+ * @param string $pseudocardpan
163
+ */
164
+ public function setPseudocardpan($pseudocardpan)
165
+ {
166
+ $this->pseudocardpan = $pseudocardpan;
167
+ }
168
+
169
+ /**
170
+ * @return string
171
+ */
172
+ public function getPseudocardpan()
173
+ {
174
+ return $this->pseudocardpan;
175
+ }
176
+ }
lib/Payone/Api/Request/Parameter/Interface.php CHANGED
@@ -1,63 +1,63 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- interface Payone_Api_Request_Parameter_Interface
34
- {
35
- /**
36
- * @param array $data
37
- */
38
- public function __construct(array $data = array());
39
-
40
- /**
41
- * @abstract
42
- * @param array $data
43
- */
44
- public function init(array $data = array());
45
-
46
- /**
47
- * @return array
48
- */
49
- public function toArray();
50
-
51
- /**
52
- * @abstract
53
- * @param string $property
54
- */
55
- public function get($property);
56
-
57
- /**
58
- * @abstract
59
- * @param string $property
60
- * @param string $value
61
- */
62
- public function set($property, $value);
63
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ interface Payone_Api_Request_Parameter_Interface
34
+ {
35
+ /**
36
+ * @param array $data
37
+ */
38
+ public function __construct(array $data = array());
39
+
40
+ /**
41
+ * @abstract
42
+ * @param array $data
43
+ */
44
+ public function init(array $data = array());
45
+
46
+ /**
47
+ * @return array
48
+ */
49
+ public function toArray();
50
+
51
+ /**
52
+ * @abstract
53
+ * @param string $property
54
+ */
55
+ public function get($property);
56
+
57
+ /**
58
+ * @abstract
59
+ * @param string $property
60
+ * @param string $value
61
+ */
62
+ public function set($property, $value);
63
+ }
lib/Payone/Api/Request/Parameter/Invoicing/Access/Item.php CHANGED
@@ -1,258 +1,258 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_Invoicing_Access_Item
34
- extends Payone_Api_Request_Parameter_Abstract
35
- {
36
- /**
37
- * @var string
38
- */
39
- protected $id_trail = NULL;
40
- /**
41
- * @var int
42
- */
43
- protected $no_trail = NULL;
44
- /**
45
- * @var int
46
- */
47
- protected $pr_trail = NULL;
48
- /**
49
- * @var string
50
- */
51
- protected $de_trail = NULL;
52
- /**
53
- * @var int
54
- */
55
- protected $va_trail = NULL;
56
-
57
- /**
58
- * @var string
59
- */
60
- protected $id_recurring = NULL;
61
- /**
62
- * @var int
63
- */
64
- protected $no_recurring = NULL;
65
- /**
66
- * @var int
67
- */
68
- protected $pr_recurring = NULL;
69
- /**
70
- * @var string
71
- */
72
- protected $de_recurring = NULL;
73
- /**
74
- * @var int
75
- */
76
- protected $va_recurring = NULL;
77
-
78
- /**
79
- * @param int $key
80
- * @return array
81
- */
82
- public function toArrayByKey($key)
83
- {
84
- $data = array();
85
- $data['id_trail[' . $key . ']'] = $this->getIdTrail();
86
- $data['no_trail[' . $key . ']'] = $this->getNoTrail();
87
- $data['pr_trail[' . $key . ']'] = $this->getPrTrail();
88
- $data['de_trail[' . $key . ']'] = $this->getDeTrail();
89
- $data['va_trail[' . $key . ']'] = $this->getVaTrail();
90
- $data['id_recurring[' . $key . ']'] = $this->getIdRecurring();
91
- $data['no_recurring[' . $key . ']'] = $this->getNoRecurring();
92
- $data['pr_recurring[' . $key . ']'] = $this->getPrRecurring();
93
- $data['de_recurring[' . $key . ']'] = $this->getDeRecurring();
94
- $data['va_recurring[' . $key . ']'] = $this->getVaRecurring();
95
- return $data;
96
- }
97
-
98
- /**
99
- * @param string $de_recurring
100
- */
101
- public function setDeRecurring($de_recurring)
102
- {
103
- $this->de_recurring = $de_recurring;
104
- }
105
-
106
- /**
107
- * @return string
108
- */
109
- public function getDeRecurring()
110
- {
111
- return $this->de_recurring;
112
- }
113
-
114
- /**
115
- * @param string $de_trail
116
- */
117
- public function setDeTrail($de_trail)
118
- {
119
- $this->de_trail = $de_trail;
120
- }
121
-
122
- /**
123
- * @return string
124
- */
125
- public function getDeTrail()
126
- {
127
- return $this->de_trail;
128
- }
129
-
130
- /**
131
- * @param string $id_recurring
132
- */
133
- public function setIdRecurring($id_recurring)
134
- {
135
- $this->id_recurring = $id_recurring;
136
- }
137
-
138
- /**
139
- * @return string
140
- */
141
- public function getIdRecurring()
142
- {
143
- return $this->id_recurring;
144
- }
145
-
146
- /**
147
- * @param string $id_trail
148
- */
149
- public function setIdTrail($id_trail)
150
- {
151
- $this->id_trail = $id_trail;
152
- }
153
-
154
- /**
155
- * @return string
156
- */
157
- public function getIdTrail()
158
- {
159
- return $this->id_trail;
160
- }
161
-
162
- /**
163
- * @param int $no_recurring
164
- */
165
- public function setNoRecurring($no_recurring)
166
- {
167
- $this->no_recurring = $no_recurring;
168
- }
169
-
170
- /**
171
- * @return int
172
- */
173
- public function getNoRecurring()
174
- {
175
- return $this->no_recurring;
176
- }
177
-
178
- /**
179
- * @param int $no_trail
180
- */
181
- public function setNoTrail($no_trail)
182
- {
183
- $this->no_trail = $no_trail;
184
- }
185
-
186
- /**
187
- * @return int
188
- */
189
- public function getNoTrail()
190
- {
191
- return $this->no_trail;
192
- }
193
-
194
- /**
195
- * @param int $pr_recurring
196
- */
197
- public function setPrRecurring($pr_recurring)
198
- {
199
- $this->pr_recurring = $pr_recurring;
200
- }
201
-
202
- /**
203
- * @return int
204
- */
205
- public function getPrRecurring()
206
- {
207
- return $this->pr_recurring;
208
- }
209
-
210
- /**
211
- * @param int $pr_trail
212
- */
213
- public function setPrTrail($pr_trail)
214
- {
215
- $this->pr_trail = $pr_trail;
216
- }
217
-
218
- /**
219
- * @return int
220
- */
221
- public function getPrTrail()
222
- {
223
- return $this->pr_trail;
224
- }
225
-
226
- /**
227
- * @param int $va_recurring
228
- */
229
- public function setVaRecurring($va_recurring)
230
- {
231
- $this->va_recurring = $va_recurring;
232
- }
233
-
234
- /**
235
- * @return int
236
- */
237
- public function getVaRecurring()
238
- {
239
- return $this->va_recurring;
240
- }
241
-
242
- /**
243
- * @param int $va_trail
244
- */
245
- public function setVaTrail($va_trail)
246
- {
247
- $this->va_trail = $va_trail;
248
- }
249
-
250
- /**
251
- * @return int
252
- */
253
- public function getVaTrail()
254
- {
255
- return $this->va_trail;
256
- }
257
-
258
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_Invoicing_Access_Item
34
+ extends Payone_Api_Request_Parameter_Abstract
35
+ {
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $id_trail = NULL;
40
+ /**
41
+ * @var int
42
+ */
43
+ protected $no_trail = NULL;
44
+ /**
45
+ * @var int
46
+ */
47
+ protected $pr_trail = NULL;
48
+ /**
49
+ * @var string
50
+ */
51
+ protected $de_trail = NULL;
52
+ /**
53
+ * @var int
54
+ */
55
+ protected $va_trail = NULL;
56
+
57
+ /**
58
+ * @var string
59
+ */
60
+ protected $id_recurring = NULL;
61
+ /**
62
+ * @var int
63
+ */
64
+ protected $no_recurring = NULL;
65
+ /**
66
+ * @var int
67
+ */
68
+ protected $pr_recurring = NULL;
69
+ /**
70
+ * @var string
71
+ */
72
+ protected $de_recurring = NULL;
73
+ /**
74
+ * @var int
75
+ */
76
+ protected $va_recurring = NULL;
77
+
78
+ /**
79
+ * @param int $key
80
+ * @return array
81
+ */
82
+ public function toArrayByKey($key)
83
+ {
84
+ $data = array();
85
+ $data['id_trail[' . $key . ']'] = $this->getIdTrail();
86
+ $data['no_trail[' . $key . ']'] = $this->getNoTrail();
87
+ $data['pr_trail[' . $key . ']'] = $this->getPrTrail();
88
+ $data['de_trail[' . $key . ']'] = $this->getDeTrail();
89
+ $data['va_trail[' . $key . ']'] = $this->getVaTrail();
90
+ $data['id_recurring[' . $key . ']'] = $this->getIdRecurring();
91
+ $data['no_recurring[' . $key . ']'] = $this->getNoRecurring();
92
+ $data['pr_recurring[' . $key . ']'] = $this->getPrRecurring();
93
+ $data['de_recurring[' . $key . ']'] = $this->getDeRecurring();
94
+ $data['va_recurring[' . $key . ']'] = $this->getVaRecurring();
95
+ return $data;
96
+ }
97
+
98
+ /**
99
+ * @param string $de_recurring
100
+ */
101
+ public function setDeRecurring($de_recurring)
102
+ {
103
+ $this->de_recurring = $de_recurring;
104
+ }
105
+
106
+ /**
107
+ * @return string
108
+ */
109
+ public function getDeRecurring()
110
+ {
111
+ return $this->de_recurring;
112
+ }
113
+
114
+ /**
115
+ * @param string $de_trail
116
+ */
117
+ public function setDeTrail($de_trail)
118
+ {
119
+ $this->de_trail = $de_trail;
120
+ }
121
+
122
+ /**
123
+ * @return string
124
+ */
125
+ public function getDeTrail()
126
+ {
127
+ return $this->de_trail;
128
+ }
129
+
130
+ /**
131
+ * @param string $id_recurring
132
+ */
133
+ public function setIdRecurring($id_recurring)
134
+ {
135
+ $this->id_recurring = $id_recurring;
136
+ }
137
+
138
+ /**
139
+ * @return string
140
+ */
141
+ public function getIdRecurring()
142
+ {
143
+ return $this->id_recurring;
144
+ }
145
+
146
+ /**
147
+ * @param string $id_trail
148
+ */
149
+ public function setIdTrail($id_trail)
150
+ {
151
+ $this->id_trail = $id_trail;
152
+ }
153
+
154
+ /**
155
+ * @return string
156
+ */
157
+ public function getIdTrail()
158
+ {
159
+ return $this->id_trail;
160
+ }
161
+
162
+ /**
163
+ * @param int $no_recurring
164
+ */
165
+ public function setNoRecurring($no_recurring)
166
+ {
167
+ $this->no_recurring = $no_recurring;
168
+ }
169
+
170
+ /**
171
+ * @return int
172
+ */
173
+ public function getNoRecurring()
174
+ {
175
+ return $this->no_recurring;
176
+ }
177
+
178
+ /**
179
+ * @param int $no_trail
180
+ */
181
+ public function setNoTrail($no_trail)
182
+ {
183
+ $this->no_trail = $no_trail;
184
+ }
185
+
186
+ /**
187
+ * @return int
188
+ */
189
+ public function getNoTrail()
190
+ {
191
+ return $this->no_trail;
192
+ }
193
+
194
+ /**
195
+ * @param int $pr_recurring
196
+ */
197
+ public function setPrRecurring($pr_recurring)
198
+ {
199
+ $this->pr_recurring = $pr_recurring;
200
+ }
201
+
202
+ /**
203
+ * @return int
204
+ */
205
+ public function getPrRecurring()
206
+ {
207
+ return $this->pr_recurring;
208
+ }
209
+
210
+ /**
211
+ * @param int $pr_trail
212
+ */
213
+ public function setPrTrail($pr_trail)
214
+ {
215
+ $this->pr_trail = $pr_trail;
216
+ }
217
+
218
+ /**
219
+ * @return int
220
+ */
221
+ public function getPrTrail()
222
+ {
223
+ return $this->pr_trail;
224
+ }
225
+
226
+ /**
227
+ * @param int $va_recurring
228
+ */
229
+ public function setVaRecurring($va_recurring)
230
+ {
231
+ $this->va_recurring = $va_recurring;
232
+ }
233
+
234
+ /**
235
+ * @return int
236
+ */
237
+ public function getVaRecurring()
238
+ {
239
+ return $this->va_recurring;
240
+ }
241
+
242
+ /**
243
+ * @param int $va_trail
244
+ */
245
+ public function setVaTrail($va_trail)
246
+ {
247
+ $this->va_trail = $va_trail;
248
+ }
249
+
250
+ /**
251
+ * @return int
252
+ */
253
+ public function getVaTrail()
254
+ {
255
+ return $this->va_trail;
256
+ }
257
+
258
+ }
lib/Payone/Api/Request/Parameter/Invoicing/Item.php CHANGED
@@ -1,220 +1,220 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_Invoicing_Item
34
- extends Payone_Api_Request_Parameter_Abstract
35
- {
36
- /**
37
- * @var string
38
- */
39
- protected $id = NULL;
40
- /**
41
- * @var int
42
- */
43
- protected $pr = NULL;
44
- /**
45
- * @var int
46
- */
47
- protected $no = NULL;
48
- /**
49
- * @var string
50
- */
51
- protected $de = NULL;
52
-
53
- /**
54
- * Artikeltyp (Enum)
55
- * @var string */
56
- protected $it = NULL;
57
-
58
- /**
59
- * @var int
60
- */
61
- protected $va = NULL;
62
- /**
63
- * DeliveryDate (YYYYMMDD)
64
- *
65
- * @var string
66
- */
67
- protected $sd = NULL;
68
- /**
69
- * Lieferzeitraums-Ende (YYYYMMDD)
70
- *
71
- * @var string
72
- */
73
- protected $ed = NULL;
74
-
75
- /**
76
- * @param int $key
77
- * @return array
78
- */
79
- public function toArrayByKey($key)
80
- {
81
- $data = array();
82
- $data['id[' . $key . ']'] = $this->getId();
83
- $data['pr[' . $key . ']'] = $this->getPr();
84
- $data['no[' . $key . ']'] = $this->getNo();
85
- $data['de[' . $key . ']'] = $this->getDe();
86
- $data['it[' . $key . ']'] = $this->getIt();
87
- $data['va[' . $key . ']'] = $this->getVa();
88
- $data['sd[' . $key . ']'] = $this->getSd();
89
- $data['ed[' . $key . ']'] = $this->getEd();
90
- return $data;
91
- }
92
-
93
- /**
94
- * @param string $de
95
- */
96
- public function setDe($de)
97
- {
98
- $this->de = $de;
99
- }
100
-
101
- /**
102
- * @return string
103
- */
104
- public function getDe()
105
- {
106
- return $this->de;
107
- }
108
-
109
- /**
110
- * @param string $ed
111
- */
112
- public function setEd($ed)
113
- {
114
- $this->ed = $ed;
115
- }
116
-
117
- /**
118
- * @return string
119
- */
120
- public function getEd()
121
- {
122
- return $this->ed;
123
- }
124
-
125
- /**
126
- * @param string $id
127
- */
128
- public function setId($id)
129
- {
130
- $this->id = $id;
131
- }
132
-
133
- /**
134
- * @return string
135
- */
136
- public function getId()
137
- {
138
- return $this->id;
139
- }
140
-
141
- /**
142
- * @param int $no
143
- */
144
- public function setNo($no)
145
- {
146
- $this->no = $no;
147
- }
148
-
149
- /**
150
- * @return int
151
- */
152
- public function getNo()
153
- {
154
- return $this->no;
155
- }
156
-
157
- /**
158
- * @param int $pr
159
- */
160
- public function setPr($pr)
161
- {
162
- $this->pr = $pr;
163
- }
164
-
165
- /**
166
- * @return int
167
- */
168
- public function getPr()
169
- {
170
- return $this->pr;
171
- }
172
-
173
- /**
174
- * @param string $sd
175
- */
176
- public function setSd($sd)
177
- {
178
- $this->sd = $sd;
179
- }
180
-
181
- /**
182
- * @return string
183
- */
184
- public function getSd()
185
- {
186
- return $this->sd;
187
- }
188
-
189
- /**
190
- * @param int $va
191
- */
192
- public function setVa($va)
193
- {
194
- $this->va = $va;
195
- }
196
-
197
- /**
198
- * @return int
199
- */
200
- public function getVa()
201
- {
202
- return $this->va;
203
- }
204
-
205
- /**
206
- * @param string $it
207
- */
208
- public function setIt($it)
209
- {
210
- $this->it = $it;
211
- }
212
-
213
- /**
214
- * @return string
215
- */
216
- public function getIt()
217
- {
218
- return $this->it;
219
- }
220
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_Invoicing_Item
34
+ extends Payone_Api_Request_Parameter_Abstract
35
+ {
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $id = NULL;
40
+ /**
41
+ * @var int
42
+ */
43
+ protected $pr = NULL;
44
+ /**
45
+ * @var int
46
+ */
47
+ protected $no = NULL;
48
+ /**
49
+ * @var string
50
+ */
51
+ protected $de = NULL;
52
+
53
+ /**
54
+ * Artikeltyp (Enum)
55
+ * @var string */
56
+ protected $it = NULL;
57
+
58
+ /**
59
+ * @var int
60
+ */
61
+ protected $va = NULL;
62
+ /**
63
+ * DeliveryDate (YYYYMMDD)
64
+ *
65
+ * @var string
66
+ */
67
+ protected $sd = NULL;
68
+ /**
69
+ * Lieferzeitraums-Ende (YYYYMMDD)
70
+ *
71
+ * @var string
72
+ */
73
+ protected $ed = NULL;
74
+
75
+ /**
76
+ * @param int $key
77
+ * @return array
78
+ */
79
+ public function toArrayByKey($key)
80
+ {
81
+ $data = array();
82
+ $data['id[' . $key . ']'] = $this->getId();
83
+ $data['pr[' . $key . ']'] = $this->getPr();
84
+ $data['no[' . $key . ']'] = $this->getNo();
85
+ $data['de[' . $key . ']'] = $this->getDe();
86
+ $data['it[' . $key . ']'] = $this->getIt();
87
+ $data['va[' . $key . ']'] = $this->getVa();
88
+ $data['sd[' . $key . ']'] = $this->getSd();
89
+ $data['ed[' . $key . ']'] = $this->getEd();
90
+ return $data;
91
+ }
92
+
93
+ /**
94
+ * @param string $de
95
+ */
96
+ public function setDe($de)
97
+ {
98
+ $this->de = $de;
99
+ }
100
+
101
+ /**
102
+ * @return string
103
+ */
104
+ public function getDe()
105
+ {
106
+ return $this->de;
107
+ }
108
+
109
+ /**
110
+ * @param string $ed
111
+ */
112
+ public function setEd($ed)
113
+ {
114
+ $this->ed = $ed;
115
+ }
116
+
117
+ /**
118
+ * @return string
119
+ */
120
+ public function getEd()
121
+ {
122
+ return $this->ed;
123
+ }
124
+
125
+ /**
126
+ * @param string $id
127
+ */
128
+ public function setId($id)
129
+ {
130
+ $this->id = $id;
131
+ }
132
+
133
+ /**
134
+ * @return string
135
+ */
136
+ public function getId()
137
+ {
138
+ return $this->id;
139
+ }
140
+
141
+ /**
142
+ * @param int $no
143
+ */
144
+ public function setNo($no)
145
+ {
146
+ $this->no = $no;
147
+ }
148
+
149
+ /**
150
+ * @return int
151
+ */
152
+ public function getNo()
153
+ {
154
+ return $this->no;
155
+ }
156
+
157
+ /**
158
+ * @param int $pr
159
+ */
160
+ public function setPr($pr)
161
+ {
162
+ $this->pr = $pr;
163
+ }
164
+
165
+ /**
166
+ * @return int
167
+ */
168
+ public function getPr()
169
+ {
170
+ return $this->pr;
171
+ }
172
+
173
+ /**
174
+ * @param string $sd
175
+ */
176
+ public function setSd($sd)
177
+ {
178
+ $this->sd = $sd;
179
+ }
180
+
181
+ /**
182
+ * @return string
183
+ */
184
+ public function getSd()
185
+ {
186
+ return $this->sd;
187
+ }
188
+
189
+ /**
190
+ * @param int $va
191
+ */
192
+ public function setVa($va)
193
+ {
194
+ $this->va = $va;
195
+ }
196
+
197
+ /**
198
+ * @return int
199
+ */
200
+ public function getVa()
201
+ {
202
+ return $this->va;
203
+ }
204
+
205
+ /**
206
+ * @param string $it
207
+ */
208
+ public function setIt($it)
209
+ {
210
+ $this->it = $it;
211
+ }
212
+
213
+ /**
214
+ * @return string
215
+ */
216
+ public function getIt()
217
+ {
218
+ return $this->it;
219
+ }
220
+ }
lib/Payone/Api/Request/Parameter/Invoicing/Transaction.php CHANGED
@@ -1,195 +1,195 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_Invoicing_Transaction
34
- extends Payone_Api_Request_Parameter_Abstract
35
- {
36
- /**
37
- * @var string
38
- */
39
- protected $invoiceid = NULL;
40
- /**
41
- * @var string
42
- */
43
- protected $invoice_deliverymode = NULL;
44
- /**
45
- * @var string
46
- */
47
- protected $invoice_deliverydate = NULL;
48
- /**
49
- * @var string
50
- */
51
- protected $invoice_deliveryenddate = NULL;
52
- /**
53
- * @var string
54
- */
55
- protected $invoiceappendix = NULL;
56
-
57
-
58
-
59
-
60
- /**
61
- * @var Payone_Api_Request_Parameter_Invoicing_Item[]
62
- */
63
- protected $items = array();
64
-
65
- public function toArray()
66
- {
67
- $data = parent::toArray();
68
-
69
- $i = 1;
70
- foreach ($this->items as $key => $item) {
71
- /**
72
- * @var $item Payone_Api_Request_Parameter_Invoicing_Item
73
- */
74
-
75
- $data = array_merge($data, $item->toArrayByKey($i));
76
-
77
- $i++;
78
- }
79
-
80
- return $data;
81
- }
82
-
83
- /**
84
- * @return bool
85
- */
86
- public function hasItems()
87
- {
88
- return count($this->items) ? true : false;
89
- }
90
-
91
- /**
92
- * @param Payone_Api_Request_Parameter_Invoicing_Item $item
93
- */
94
- public function addItem(Payone_Api_Request_Parameter_Invoicing_Item $item)
95
- {
96
- $this->items[] = $item;
97
- }
98
-
99
- /**
100
- * @param Payone_Api_Request_Parameter_Invoicing_Item[] $items
101
- */
102
- public function setItems($items)
103
- {
104
- $this->items = $items;
105
- }
106
-
107
- /**
108
- * @return Payone_Api_Request_Parameter_Invoicing_Item[]
109
- */
110
- public function getItems()
111
- {
112
- return $this->items;
113
- }
114
-
115
- /**
116
- * @param string $invoice_deliverydate
117
- */
118
- public function setInvoiceDeliverydate($invoice_deliverydate)
119
- {
120
- $this->invoice_deliverydate = $invoice_deliverydate;
121
- }
122
-
123
- /**
124
- * @return string
125
- */
126
- public function getInvoiceDeliverydate()
127
- {
128
- return $this->invoice_deliverydate;
129
- }
130
-
131
- /**
132
- * @param string $invoice_deliveryenddate
133
- */
134
- public function setInvoiceDeliveryenddate($invoice_deliveryenddate)
135
- {
136
- $this->invoice_deliveryenddate = $invoice_deliveryenddate;
137
- }
138
-
139
- /**
140
- * @return string
141
- */
142
- public function getInvoiceDeliveryenddate()
143
- {
144
- return $this->invoice_deliveryenddate;
145
- }
146
-
147
- /**
148
- * @param string $invoice_deliverymode
149
- */
150
- public function setInvoiceDeliverymode($invoice_deliverymode)
151
- {
152
- $this->invoice_deliverymode = $invoice_deliverymode;
153
- }
154
-
155
- /**
156
- * @return string
157
- */
158
- public function getInvoiceDeliverymode()
159
- {
160
- return $this->invoice_deliverymode;
161
- }
162
-
163
- /**
164
- * @param string $invoiceappendix
165
- */
166
- public function setInvoiceappendix($invoiceappendix)
167
- {
168
- $this->invoiceappendix = $invoiceappendix;
169
- }
170
-
171
- /**
172
- * @return string
173
- */
174
- public function getInvoiceappendix()
175
- {
176
- return $this->invoiceappendix;
177
- }
178
-
179
- /**
180
- * @param string $invoiceid
181
- */
182
- public function setInvoiceid($invoiceid)
183
- {
184
- $this->invoiceid = $invoiceid;
185
- }
186
-
187
- /**
188
- * @return string
189
- */
190
- public function getInvoiceid()
191
- {
192
- return $this->invoiceid;
193
- }
194
-
195
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_Invoicing_Transaction
34
+ extends Payone_Api_Request_Parameter_Abstract
35
+ {
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $invoiceid = NULL;
40
+ /**
41
+ * @var string
42
+ */
43
+ protected $invoice_deliverymode = NULL;
44
+ /**
45
+ * @var string
46
+ */
47
+ protected $invoice_deliverydate = NULL;
48
+ /**
49
+ * @var string
50
+ */
51
+ protected $invoice_deliveryenddate = NULL;
52
+ /**
53
+ * @var string
54
+ */
55
+ protected $invoiceappendix = NULL;
56
+
57
+
58
+
59
+
60
+ /**
61
+ * @var Payone_Api_Request_Parameter_Invoicing_Item[]
62
+ */
63
+ protected $items = array();
64
+
65
+ public function toArray()
66
+ {
67
+ $data = parent::toArray();
68
+
69
+ $i = 1;
70
+ foreach ($this->items as $key => $item) {
71
+ /**
72
+ * @var $item Payone_Api_Request_Parameter_Invoicing_Item
73
+ */
74
+
75
+ $data = array_merge($data, $item->toArrayByKey($i));
76
+
77
+ $i++;
78
+ }
79
+
80
+ return $data;
81
+ }
82
+
83
+ /**
84
+ * @return bool
85
+ */
86
+ public function hasItems()
87
+ {
88
+ return count($this->items) ? true : false;
89
+ }
90
+
91
+ /**
92
+ * @param Payone_Api_Request_Parameter_Invoicing_Item $item
93
+ */
94
+ public function addItem(Payone_Api_Request_Parameter_Invoicing_Item $item)
95
+ {
96
+ $this->items[] = $item;
97
+ }
98
+
99
+ /**
100
+ * @param Payone_Api_Request_Parameter_Invoicing_Item[] $items
101
+ */
102
+ public function setItems($items)
103
+ {
104
+ $this->items = $items;
105
+ }
106
+
107
+ /**
108
+ * @return Payone_Api_Request_Parameter_Invoicing_Item[]
109
+ */
110
+ public function getItems()
111
+ {
112
+ return $this->items;
113
+ }
114
+
115
+ /**
116
+ * @param string $invoice_deliverydate
117
+ */
118
+ public function setInvoiceDeliverydate($invoice_deliverydate)
119
+ {
120
+ $this->invoice_deliverydate = $invoice_deliverydate;
121
+ }
122
+
123
+ /**
124
+ * @return string
125
+ */
126
+ public function getInvoiceDeliverydate()
127
+ {
128
+ return $this->invoice_deliverydate;
129
+ }
130
+
131
+ /**
132
+ * @param string $invoice_deliveryenddate
133
+ */
134
+ public function setInvoiceDeliveryenddate($invoice_deliveryenddate)
135
+ {
136
+ $this->invoice_deliveryenddate = $invoice_deliveryenddate;
137
+ }
138
+
139
+ /**
140
+ * @return string
141
+ */
142
+ public function getInvoiceDeliveryenddate()
143
+ {
144
+ return $this->invoice_deliveryenddate;
145
+ }
146
+
147
+ /**
148
+ * @param string $invoice_deliverymode
149
+ */
150
+ public function setInvoiceDeliverymode($invoice_deliverymode)
151
+ {
152
+ $this->invoice_deliverymode = $invoice_deliverymode;
153
+ }
154
+
155
+ /**
156
+ * @return string
157
+ */
158
+ public function getInvoiceDeliverymode()
159
+ {
160
+ return $this->invoice_deliverymode;
161
+ }
162
+
163
+ /**
164
+ * @param string $invoiceappendix
165
+ */
166
+ public function setInvoiceappendix($invoiceappendix)
167
+ {
168
+ $this->invoiceappendix = $invoiceappendix;
169
+ }
170
+
171
+ /**
172
+ * @return string
173
+ */
174
+ public function getInvoiceappendix()
175
+ {
176
+ return $this->invoiceappendix;
177
+ }
178
+
179
+ /**
180
+ * @param string $invoiceid
181
+ */
182
+ public function setInvoiceid($invoiceid)
183
+ {
184
+ $this->invoiceid = $invoiceid;
185
+ }
186
+
187
+ /**
188
+ * @return string
189
+ */
190
+ public function getInvoiceid()
191
+ {
192
+ return $this->invoiceid;
193
+ }
194
+
195
+ }
lib/Payone/Api/Request/Parameter/ManageMandate/Abstract.php CHANGED
@@ -1,40 +1,40 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
-
34
-
35
-
36
- abstract class Payone_Api_Request_Parameter_ManageMandate_Abstract
37
- extends Payone_Api_Request_Parameter_Abstract
38
- {
39
-
40
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+
34
+
35
+
36
+ abstract class Payone_Api_Request_Parameter_ManageMandate_Abstract
37
+ extends Payone_Api_Request_Parameter_Abstract
38
+ {
39
+
40
+ }
lib/Payone/Api/Request/Parameter/ManageMandate/PaymentMethod/Abstract.php CHANGED
@@ -1,40 +1,40 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
-
34
-
35
-
36
- abstract class Payone_Api_Request_Parameter_ManageMandate_PaymentMethod_Abstract
37
- extends Payone_Api_Request_Parameter_Abstract
38
- {
39
-
40
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+
34
+
35
+
36
+ abstract class Payone_Api_Request_Parameter_ManageMandate_PaymentMethod_Abstract
37
+ extends Payone_Api_Request_Parameter_Abstract
38
+ {
39
+
40
+ }
lib/Payone/Api/Request/Parameter/ManageMandate/PaymentMethod/BankAccount.php CHANGED
@@ -1,136 +1,136 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_ManageMandate_PaymentMethod_BankAccount
34
- extends Payone_Api_Request_Parameter_ManageMandate_PaymentMethod_Abstract
35
- {
36
- /**
37
- * @var string
38
- */
39
- protected $bankcountry = NULL;
40
- /**
41
- * @var string
42
- */
43
- protected $bankaccount = NULL;
44
- /**
45
- * @var string
46
- */
47
- protected $bankcode = NULL;
48
- /**
49
- * @var string
50
- */
51
- protected $iban = NULL;
52
- /**
53
- * @var string
54
- */
55
- protected $bic = NULL;
56
-
57
- /**
58
- * @param string $bankcountry
59
- */
60
- public function setBankcountry($bankcountry)
61
- {
62
- $this->bankcountry = $bankcountry;
63
- }
64
-
65
- /**
66
- * @return string
67
- */
68
- public function getBankcountry()
69
- {
70
- return $this->bankcountry;
71
- }
72
-
73
- /**
74
- * @param string $bankaccount
75
- */
76
- public function setBankaccount($bankaccount)
77
- {
78
- $this->bankaccount = $bankaccount;
79
- }
80
-
81
- /**
82
- * @return string
83
- */
84
- public function getBankaccount()
85
- {
86
- return $this->bankaccount;
87
- }
88
-
89
- /**
90
- * @param string $bankcode
91
- */
92
- public function setBankcode($bankcode)
93
- {
94
- $this->bankcode = $bankcode;
95
- }
96
-
97
- /**
98
- * @return string
99
- */
100
- public function getBankcode()
101
- {
102
- return $this->bankcode;
103
- }
104
-
105
- /**
106
- * @param string $iban
107
- */
108
- public function setIban($iban)
109
- {
110
- $this->iban = $iban;
111
- }
112
-
113
- /**
114
- * @return string
115
- */
116
- public function getIban()
117
- {
118
- return $this->iban;
119
- }
120
-
121
- /**
122
- * @param string $bic
123
- */
124
- public function setBic($bic)
125
- {
126
- $this->bic = $bic;
127
- }
128
-
129
- /**
130
- * @return string
131
- */
132
- public function getBic()
133
- {
134
- return $this->bic;
135
- }
136
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_ManageMandate_PaymentMethod_BankAccount
34
+ extends Payone_Api_Request_Parameter_ManageMandate_PaymentMethod_Abstract
35
+ {
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $bankcountry = NULL;
40
+ /**
41
+ * @var string
42
+ */
43
+ protected $bankaccount = NULL;
44
+ /**
45
+ * @var string
46
+ */
47
+ protected $bankcode = NULL;
48
+ /**
49
+ * @var string
50
+ */
51
+ protected $iban = NULL;
52
+ /**
53
+ * @var string
54
+ */
55
+ protected $bic = NULL;
56
+
57
+ /**
58
+ * @param string $bankcountry
59
+ */
60
+ public function setBankcountry($bankcountry)
61
+ {
62
+ $this->bankcountry = $bankcountry;
63
+ }
64
+
65
+ /**
66
+ * @return string
67
+ */
68
+ public function getBankcountry()
69
+ {
70
+ return $this->bankcountry;
71
+ }
72
+
73
+ /**
74
+ * @param string $bankaccount
75
+ */
76
+ public function setBankaccount($bankaccount)
77
+ {
78
+ $this->bankaccount = $bankaccount;
79
+ }
80
+
81
+ /**
82
+ * @return string
83
+ */
84
+ public function getBankaccount()
85
+ {
86
+ return $this->bankaccount;
87
+ }
88
+
89
+ /**
90
+ * @param string $bankcode
91
+ */
92
+ public function setBankcode($bankcode)
93
+ {
94
+ $this->bankcode = $bankcode;
95
+ }
96
+
97
+ /**
98
+ * @return string
99
+ */
100
+ public function getBankcode()
101
+ {
102
+ return $this->bankcode;
103
+ }
104
+
105
+ /**
106
+ * @param string $iban
107
+ */
108
+ public function setIban($iban)
109
+ {
110
+ $this->iban = $iban;
111
+ }
112
+
113
+ /**
114
+ * @return string
115
+ */
116
+ public function getIban()
117
+ {
118
+ return $this->iban;
119
+ }
120
+
121
+ /**
122
+ * @param string $bic
123
+ */
124
+ public function setBic($bic)
125
+ {
126
+ $this->bic = $bic;
127
+ }
128
+
129
+ /**
130
+ * @return string
131
+ */
132
+ public function getBic()
133
+ {
134
+ return $this->bic;
135
+ }
136
+ }
lib/Payone/Api/Request/Parameter/ManageMandate/PersonalData.php CHANGED
@@ -1,200 +1,200 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_ManageMandate_PersonalData
34
- extends Payone_Api_Request_Parameter_ManageMandate_Abstract
35
- {
36
- /**
37
- * Merchant's customer ID (Permitted symbols: 0-9, a-z, A-Z, .,-,_,/)
38
- * @var string
39
- */
40
- protected $customerid = null;
41
- /**
42
- * PAYONE debtor ID
43
- *
44
- * @var int
45
- */
46
- protected $userid = NULL;
47
- protected $firstname = null;
48
- protected $lastname = null;
49
- protected $company = null;
50
- protected $street = null;
51
- protected $zip = null;
52
- protected $city = null;
53
- /**
54
- * Country (ISO-3166)
55
- *
56
- * @var string
57
- */
58
- protected $country = null;
59
- protected $email = null;
60
- /**
61
- * Language indicator (ISO639)
62
- *
63
- * @var string
64
- */
65
- protected $language = null;
66
-
67
- public function setCity($city)
68
- {
69
- $this->city = $city;
70
- }
71
-
72
- public function getCity()
73
- {
74
- return $this->city;
75
- }
76
-
77
- public function setCompany($company)
78
- {
79
- $this->company = $company;
80
- }
81
-
82
- public function getCompany()
83
- {
84
- return $this->company;
85
- }
86
-
87
- /**
88
- * @param string $country
89
- */
90
- public function setCountry($country)
91
- {
92
- $this->country = $country;
93
- }
94
-
95
- /**
96
- * @return string
97
- */
98
- public function getCountry()
99
- {
100
- return $this->country;
101
- }
102
-
103
- /**
104
- * @param string $customerid
105
- */
106
- public function setCustomerid($customerid)
107
- {
108
- $this->customerid = $customerid;
109
- }
110
-
111
- /**
112
- * @return string
113
- */
114
- public function getCustomerid()
115
- {
116
- return $this->customerid;
117
- }
118
-
119
- public function setEmail($email)
120
- {
121
- $this->email = $email;
122
- }
123
-
124
- public function getEmail()
125
- {
126
- return $this->email;
127
- }
128
-
129
- public function setFirstname($firstname)
130
- {
131
- $this->firstname = $firstname;
132
- }
133
-
134
- public function getFirstname()
135
- {
136
- return $this->firstname;
137
- }
138
-
139
- /**
140
- * @param string $language
141
- */
142
- public function setLanguage($language)
143
- {
144
- $this->language = $language;
145
- }
146
-
147
- /**
148
- * @return string
149
- */
150
- public function getLanguage()
151
- {
152
- return $this->language;
153
- }
154
-
155
- public function setLastname($lastname)
156
- {
157
- $this->lastname = $lastname;
158
- }
159
-
160
- public function getLastname()
161
- {
162
- return $this->lastname;
163
- }
164
-
165
- public function setStreet($street)
166
- {
167
- $this->street = $street;
168
- }
169
-
170
- public function getStreet()
171
- {
172
- return $this->street;
173
- }
174
-
175
- /**
176
- * @param string $userid
177
- */
178
- public function setUserid($userid)
179
- {
180
- $this->userid = $userid;
181
- }
182
-
183
- /**
184
- * @return string
185
- */
186
- public function getUserid()
187
- {
188
- return $this->userid;
189
- }
190
-
191
- public function setZip($zip)
192
- {
193
- $this->zip = $zip;
194
- }
195
-
196
- public function getZip()
197
- {
198
- return $this->zip;
199
- }
200
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_ManageMandate_PersonalData
34
+ extends Payone_Api_Request_Parameter_ManageMandate_Abstract
35
+ {
36
+ /**
37
+ * Merchant's customer ID (Permitted symbols: 0-9, a-z, A-Z, .,-,_,/)
38
+ * @var string
39
+ */
40
+ protected $customerid = null;
41
+ /**
42
+ * PAYONE debtor ID
43
+ *
44
+ * @var int
45
+ */
46
+ protected $userid = NULL;
47
+ protected $firstname = null;
48
+ protected $lastname = null;
49
+ protected $company = null;
50
+ protected $street = null;
51
+ protected $zip = null;
52
+ protected $city = null;
53
+ /**
54
+ * Country (ISO-3166)
55
+ *
56
+ * @var string
57
+ */
58
+ protected $country = null;
59
+ protected $email = null;
60
+ /**
61
+ * Language indicator (ISO639)
62
+ *
63
+ * @var string
64
+ */
65
+ protected $language = null;
66
+
67
+ public function setCity($city)
68
+ {
69
+ $this->city = $city;
70
+ }
71
+
72
+ public function getCity()
73
+ {
74
+ return $this->city;
75
+ }
76
+
77
+ public function setCompany($company)
78
+ {
79
+ $this->company = $company;
80
+ }
81
+
82
+ public function getCompany()
83
+ {
84
+ return $this->company;
85
+ }
86
+
87
+ /**
88
+ * @param string $country
89
+ */
90
+ public function setCountry($country)
91
+ {
92
+ $this->country = $country;
93
+ }
94
+
95
+ /**
96
+ * @return string
97
+ */
98
+ public function getCountry()
99
+ {
100
+ return $this->country;
101
+ }
102
+
103
+ /**
104
+ * @param string $customerid
105
+ */
106
+ public function setCustomerid($customerid)
107
+ {
108
+ $this->customerid = $customerid;
109
+ }
110
+
111
+ /**
112
+ * @return string
113
+ */
114
+ public function getCustomerid()
115
+ {
116
+ return $this->customerid;
117
+ }
118
+
119
+ public function setEmail($email)
120
+ {
121
+ $this->email = $email;
122
+ }
123
+
124
+ public function getEmail()
125
+ {
126
+ return $this->email;
127
+ }
128
+
129
+ public function setFirstname($firstname)
130
+ {
131
+ $this->firstname = $firstname;
132
+ }
133
+
134
+ public function getFirstname()
135
+ {
136
+ return $this->firstname;
137
+ }
138
+
139
+ /**
140
+ * @param string $language
141
+ */
142
+ public function setLanguage($language)
143
+ {
144
+ $this->language = $language;
145
+ }
146
+
147
+ /**
148
+ * @return string
149
+ */
150
+ public function getLanguage()
151
+ {
152
+ return $this->language;
153
+ }
154
+
155
+ public function setLastname($lastname)
156
+ {
157
+ $this->lastname = $lastname;
158
+ }
159
+
160
+ public function getLastname()
161
+ {
162
+ return $this->lastname;
163
+ }
164
+
165
+ public function setStreet($street)
166
+ {
167
+ $this->street = $street;
168
+ }
169
+
170
+ public function getStreet()
171
+ {
172
+ return $this->street;
173
+ }
174
+
175
+ /**
176
+ * @param string $userid
177
+ */
178
+ public function setUserid($userid)
179
+ {
180
+ $this->userid = $userid;
181
+ }
182
+
183
+ /**
184
+ * @return string
185
+ */
186
+ public function getUserid()
187
+ {
188
+ return $this->userid;
189
+ }
190
+
191
+ public function setZip($zip)
192
+ {
193
+ $this->zip = $zip;
194
+ }
195
+
196
+ public function getZip()
197
+ {
198
+ return $this->zip;
199
+ }
200
+ }
lib/Payone/Api/Request/Parameter/Refund/Abstract.php CHANGED
@@ -1,40 +1,40 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
-
34
-
35
-
36
- abstract class Payone_Api_Request_Parameter_Refund_Abstract
37
- extends Payone_Api_Request_Parameter_Abstract
38
- {
39
-
40
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+
34
+
35
+
36
+ abstract class Payone_Api_Request_Parameter_Refund_Abstract
37
+ extends Payone_Api_Request_Parameter_Abstract
38
+ {
39
+
40
+ }
lib/Payone/Api/Request/Parameter/Refund/PaymentMethod/BankAccount.php CHANGED
@@ -1,196 +1,196 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_Refund_PaymentMethod_BankAccount
34
- extends Payone_Api_Request_Parameter_Refund_Abstract
35
- {
36
- /**
37
- * @var string
38
- */
39
- protected $bankcountry = NULL;
40
- /**
41
- * @var string
42
- */
43
- protected $bankaccount = NULL;
44
- /**
45
- * @var int
46
- */
47
- protected $bankcode = NULL;
48
- /**
49
- * @var int
50
- */
51
- protected $bankbranchcode = NULL;
52
- /**
53
- * @var int
54
- */
55
- protected $bankcheckdigit = NULL;
56
- /**
57
- * @var string
58
- */
59
- protected $iban = NULL;
60
- /**
61
- * @var string
62
- */
63
- protected $bic = NULL;
64
- /**
65
- * @var string
66
- */
67
- protected $mandate_identification = NULL;
68
-
69
- /**
70
- * @param string $bankaccount
71
- */
72
- public function setBankaccount($bankaccount)
73
- {
74
- $this->bankaccount = $bankaccount;
75
- }
76
-
77
- /**
78
- * @return string
79
- */
80
- public function getBankaccount()
81
- {
82
- return $this->bankaccount;
83
- }
84
-
85
- /**
86
- * @param int $bankbranchcode
87
- */
88
- public function setBankbranchcode($bankbranchcode)
89
- {
90
- $this->bankbranchcode = $bankbranchcode;
91
- }
92
-
93
- /**
94
- * @return int
95
- */
96
- public function getBankbranchcode()
97
- {
98
- return $this->bankbranchcode;
99
- }
100
-
101
- /**
102
- * @param int $bankcheckdigit
103
- */
104
- public function setBankcheckdigit($bankcheckdigit)
105
- {
106
- $this->bankcheckdigit = $bankcheckdigit;
107
- }
108
-
109
- /**
110
- * @return int
111
- */
112
- public function getBankcheckdigit()
113
- {
114
- return $this->bankcheckdigit;
115
- }
116
-
117
- /**
118
- * @param int $bankcode
119
- */
120
- public function setBankcode($bankcode)
121
- {
122
- $this->bankcode = $bankcode;
123
- }
124
-
125
- /**
126
- * @return int
127
- */
128
- public function getBankcode()
129
- {
130
- return $this->bankcode;
131
- }
132
-
133
- /**
134
- * @param string $bankcountry
135
- */
136
- public function setBankcountry($bankcountry)
137
- {
138
- $this->bankcountry = $bankcountry;
139
- }
140
-
141
- /**
142
- * @return string
143
- */
144
- public function getBankcountry()
145
- {
146
- return $this->bankcountry;
147
- }
148
-
149
- /**
150
- * @param string $iban
151
- */
152
- public function setIban($iban)
153
- {
154
- $this->iban = $iban;
155
- }
156
-
157
- /**
158
- * @return string
159
- */
160
- public function getIban()
161
- {
162
- return $this->iban;
163
- }
164
-
165
- /**
166
- * @param string $bic
167
- */
168
- public function setBic($bic)
169
- {
170
- $this->bic = $bic;
171
- }
172
-
173
- /**
174
- * @return string
175
- */
176
- public function getBic()
177
- {
178
- return $this->bic;
179
- }
180
-
181
- /**
182
- * @param string $mandateIdentification
183
- */
184
- public function setMandateIdentification($mandateIdentification)
185
- {
186
- $this->mandate_identification = $mandateIdentification;
187
- }
188
-
189
- /**
190
- * @return string
191
- */
192
- public function getMandateIdentification()
193
- {
194
- return $this->mandate_identification;
195
- }
196
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_Refund_PaymentMethod_BankAccount
34
+ extends Payone_Api_Request_Parameter_Refund_Abstract
35
+ {
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $bankcountry = NULL;
40
+ /**
41
+ * @var string
42
+ */
43
+ protected $bankaccount = NULL;
44
+ /**
45
+ * @var int
46
+ */
47
+ protected $bankcode = NULL;
48
+ /**
49
+ * @var int
50
+ */
51
+ protected $bankbranchcode = NULL;
52
+ /**
53
+ * @var int
54
+ */
55
+ protected $bankcheckdigit = NULL;
56
+ /**
57
+ * @var string
58
+ */
59
+ protected $iban = NULL;
60
+ /**
61
+ * @var string
62
+ */
63
+ protected $bic = NULL;
64
+ /**
65
+ * @var string
66
+ */
67
+ protected $mandate_identification = NULL;
68
+
69
+ /**
70
+ * @param string $bankaccount
71
+ */
72
+ public function setBankaccount($bankaccount)
73
+ {
74
+ $this->bankaccount = $bankaccount;
75
+ }
76
+
77
+ /**
78
+ * @return string
79
+ */
80
+ public function getBankaccount()
81
+ {
82
+ return $this->bankaccount;
83
+ }
84
+
85
+ /**
86
+ * @param int $bankbranchcode
87
+ */
88
+ public function setBankbranchcode($bankbranchcode)
89
+ {
90
+ $this->bankbranchcode = $bankbranchcode;
91
+ }
92
+
93
+ /**
94
+ * @return int
95
+ */
96
+ public function getBankbranchcode()
97
+ {
98
+ return $this->bankbranchcode;
99
+ }
100
+
101
+ /**
102
+ * @param int $bankcheckdigit
103
+ */
104
+ public function setBankcheckdigit($bankcheckdigit)
105
+ {
106
+ $this->bankcheckdigit = $bankcheckdigit;
107
+ }
108
+
109
+ /**
110
+ * @return int
111
+ */
112
+ public function getBankcheckdigit()
113
+ {
114
+ return $this->bankcheckdigit;
115
+ }
116
+
117
+ /**
118
+ * @param int $bankcode
119
+ */
120
+ public function setBankcode($bankcode)
121
+ {
122
+ $this->bankcode = $bankcode;
123
+ }
124
+
125
+ /**
126
+ * @return int
127
+ */
128
+ public function getBankcode()
129
+ {
130
+ return $this->bankcode;
131
+ }
132
+
133
+ /**
134
+ * @param string $bankcountry
135
+ */
136
+ public function setBankcountry($bankcountry)
137
+ {
138
+ $this->bankcountry = $bankcountry;
139
+ }
140
+
141
+ /**
142
+ * @return string
143
+ */
144
+ public function getBankcountry()
145
+ {
146
+ return $this->bankcountry;
147
+ }
148
+
149
+ /**
150
+ * @param string $iban
151
+ */
152
+ public function setIban($iban)
153
+ {
154
+ $this->iban = $iban;
155
+ }
156
+
157
+ /**
158
+ * @return string
159
+ */
160
+ public function getIban()
161
+ {
162
+ return $this->iban;
163
+ }
164
+
165
+ /**
166
+ * @param string $bic
167
+ */
168
+ public function setBic($bic)
169
+ {
170
+ $this->bic = $bic;
171
+ }
172
+
173
+ /**
174
+ * @return string
175
+ */
176
+ public function getBic()
177
+ {
178
+ return $this->bic;
179
+ }
180
+
181
+ /**
182
+ * @param string $mandateIdentification
183
+ */
184
+ public function setMandateIdentification($mandateIdentification)
185
+ {
186
+ $this->mandate_identification = $mandateIdentification;
187
+ }
188
+
189
+ /**
190
+ * @return string
191
+ */
192
+ public function getMandateIdentification()
193
+ {
194
+ return $this->mandate_identification;
195
+ }
196
+ }
lib/Payone/Api/Request/Parameter/UpdateAccess/Invoicing/Transaction.php CHANGED
@@ -1,90 +1,90 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_UpdateAccess_Invoicing_Transaction
34
- extends Payone_Api_Request_Parameter_Abstract
35
- {
36
- /**
37
- * @var Payone_Api_Request_Parameter_Invoicing_Access_Item[]
38
- */
39
- protected $items = array();
40
-
41
- public function toArray()
42
- {
43
- $data = parent::toArray();
44
-
45
- $i = 1;
46
- foreach ($this->items as $key => $item) {
47
- /**
48
- * @var $item Payone_Api_Request_Parameter_Invoicing_Access_Item
49
- */
50
-
51
- $data = array_merge($data, $item->toArrayByKey($i));
52
-
53
- $i++;
54
- }
55
-
56
- return $data;
57
- }
58
-
59
- /**
60
- * @return bool
61
- */
62
- public function hasItems()
63
- {
64
- return count($this->items) ? true : false;
65
- }
66
-
67
- /**
68
- * @param Payone_Api_Request_Parameter_Invoicing_Access_Item $item
69
- */
70
- public function addItem(Payone_Api_Request_Parameter_Invoicing_Access_Item $item)
71
- {
72
- $this->items[] = $item;
73
- }
74
-
75
- /**
76
- * @param Payone_Api_Request_Parameter_Invoicing_Access_Item[] $items
77
- */
78
- public function setItems($items)
79
- {
80
- $this->items = $items;
81
- }
82
-
83
- /**
84
- * @return Payone_Api_Request_Parameter_Invoicing_Access_Item[]
85
- */
86
- public function getItems()
87
- {
88
- return $this->items;
89
- }
90
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_UpdateAccess_Invoicing_Transaction
34
+ extends Payone_Api_Request_Parameter_Abstract
35
+ {
36
+ /**
37
+ * @var Payone_Api_Request_Parameter_Invoicing_Access_Item[]
38
+ */
39
+ protected $items = array();
40
+
41
+ public function toArray()
42
+ {
43
+ $data = parent::toArray();
44
+
45
+ $i = 1;
46
+ foreach ($this->items as $key => $item) {
47
+ /**
48
+ * @var $item Payone_Api_Request_Parameter_Invoicing_Access_Item
49
+ */
50
+
51
+ $data = array_merge($data, $item->toArrayByKey($i));
52
+
53
+ $i++;
54
+ }
55
+
56
+ return $data;
57
+ }
58
+
59
+ /**
60
+ * @return bool
61
+ */
62
+ public function hasItems()
63
+ {
64
+ return count($this->items) ? true : false;
65
+ }
66
+
67
+ /**
68
+ * @param Payone_Api_Request_Parameter_Invoicing_Access_Item $item
69
+ */
70
+ public function addItem(Payone_Api_Request_Parameter_Invoicing_Access_Item $item)
71
+ {
72
+ $this->items[] = $item;
73
+ }
74
+
75
+ /**
76
+ * @param Payone_Api_Request_Parameter_Invoicing_Access_Item[] $items
77
+ */
78
+ public function setItems($items)
79
+ {
80
+ $this->items = $items;
81
+ }
82
+
83
+ /**
84
+ * @return Payone_Api_Request_Parameter_Invoicing_Access_Item[]
85
+ */
86
+ public function getItems()
87
+ {
88
+ return $this->items;
89
+ }
90
+ }
lib/Payone/Api/Request/Parameter/Vauthorization/Abstract.php CHANGED
@@ -1,38 +1,38 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
-
34
- abstract class Payone_Api_Request_Parameter_Vauthorization_Abstract
35
- extends Payone_Api_Request_Parameter_Abstract
36
- {
37
-
38
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+
34
+ abstract class Payone_Api_Request_Parameter_Vauthorization_Abstract
35
+ extends Payone_Api_Request_Parameter_Abstract
36
+ {
37
+
38
+ }
lib/Payone/Api/Request/Parameter/Vauthorization/Invoicing/Transaction.php CHANGED
@@ -1,112 +1,112 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_Vauthorization_Invoicing_Transaction
34
- extends Payone_Api_Request_Parameter_Abstract
35
- {
36
- /**
37
- * @var string
38
- */
39
- protected $invoice_deliverymode = NULL;
40
-
41
-
42
- /**
43
- * @var Payone_Api_Request_Parameter_Invoicing_Item[]
44
- */
45
- protected $items = array();
46
-
47
- public function toArray()
48
- {
49
- $data = parent::toArray();
50
-
51
- $i = 1;
52
- foreach ($this->items as $key => $item) {
53
- /**
54
- * @var $item Payone_Api_Request_Parameter_Invoicing_Item
55
- */
56
-
57
- $data = array_merge($data, $item->toArrayByKey($i));
58
-
59
- $i++;
60
- }
61
-
62
- return $data;
63
- }
64
-
65
- /**
66
- * @return bool
67
- */
68
- public function hasItems()
69
- {
70
- return count($this->items) ? true : false;
71
- }
72
-
73
- /**
74
- * @param Payone_Api_Request_Parameter_Invoicing_Item $item
75
- */
76
- public function addItem(Payone_Api_Request_Parameter_Invoicing_Item $item)
77
- {
78
- $this->items[] = $item;
79
- }
80
-
81
- /**
82
- * @param Payone_Api_Request_Parameter_Invoicing_Item[] $items
83
- */
84
- public function setItems($items)
85
- {
86
- $this->items = $items;
87
- }
88
-
89
- /**
90
- * @return Payone_Api_Request_Parameter_Invoicing_Item[]
91
- */
92
- public function getItems()
93
- {
94
- return $this->items;
95
- }
96
-
97
- /**
98
- * @param string $invoice_deliverymode
99
- */
100
- public function setInvoiceDeliverymode($invoice_deliverymode)
101
- {
102
- $this->invoice_deliverymode = $invoice_deliverymode;
103
- }
104
-
105
- /**
106
- * @return string
107
- */
108
- public function getInvoiceDeliverymode()
109
- {
110
- return $this->invoice_deliverymode;
111
- }
112
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_Vauthorization_Invoicing_Transaction
34
+ extends Payone_Api_Request_Parameter_Abstract
35
+ {
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $invoice_deliverymode = NULL;
40
+
41
+
42
+ /**
43
+ * @var Payone_Api_Request_Parameter_Invoicing_Item[]
44
+ */
45
+ protected $items = array();
46
+
47
+ public function toArray()
48
+ {
49
+ $data = parent::toArray();
50
+
51
+ $i = 1;
52
+ foreach ($this->items as $key => $item) {
53
+ /**
54
+ * @var $item Payone_Api_Request_Parameter_Invoicing_Item
55
+ */
56
+
57
+ $data = array_merge($data, $item->toArrayByKey($i));
58
+
59
+ $i++;
60
+ }
61
+
62
+ return $data;
63
+ }
64
+
65
+ /**
66
+ * @return bool
67
+ */
68
+ public function hasItems()
69
+ {
70
+ return count($this->items) ? true : false;
71
+ }
72
+
73
+ /**
74
+ * @param Payone_Api_Request_Parameter_Invoicing_Item $item
75
+ */
76
+ public function addItem(Payone_Api_Request_Parameter_Invoicing_Item $item)
77
+ {
78
+ $this->items[] = $item;
79
+ }
80
+
81
+ /**
82
+ * @param Payone_Api_Request_Parameter_Invoicing_Item[] $items
83
+ */
84
+ public function setItems($items)
85
+ {
86
+ $this->items = $items;
87
+ }
88
+
89
+ /**
90
+ * @return Payone_Api_Request_Parameter_Invoicing_Item[]
91
+ */
92
+ public function getItems()
93
+ {
94
+ return $this->items;
95
+ }
96
+
97
+ /**
98
+ * @param string $invoice_deliverymode
99
+ */
100
+ public function setInvoiceDeliverymode($invoice_deliverymode)
101
+ {
102
+ $this->invoice_deliverymode = $invoice_deliverymode;
103
+ }
104
+
105
+ /**
106
+ * @return string
107
+ */
108
+ public function getInvoiceDeliverymode()
109
+ {
110
+ return $this->invoice_deliverymode;
111
+ }
112
+ }
lib/Payone/Api/Request/Parameter/Vauthorization/PaymentMethod/Abstract.php CHANGED
@@ -1,36 +1,36 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_Vauthorization_PaymentMethod_Abstract
34
- extends Payone_Api_Request_Parameter_Abstract
35
- {
36
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_Vauthorization_PaymentMethod_Abstract
34
+ extends Payone_Api_Request_Parameter_Abstract
35
+ {
36
+ }
lib/Payone/Api/Request/Parameter/Vauthorization/PaymentMethod/CreditCard.php CHANGED
@@ -1,177 +1,177 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_Vauthorization_PaymentMethod_CreditCard
34
- extends Payone_Api_Request_Parameter_Vauthorization_PaymentMethod_Abstract
35
- {
36
- /**
37
- * @var string
38
- */
39
- protected $cardpan = NULL;
40
- /**
41
- * @var string
42
- */
43
- protected $cardtype = NULL;
44
- /**
45
- * @var int
46
- */
47
- protected $cardexpiredate = NULL;
48
- /**
49
- * @var int
50
- */
51
- protected $cardcvc2 = NULL;
52
- /**
53
- * @var int
54
- */
55
- protected $cardissuenumber = NULL;
56
- /**
57
- * @var string
58
- */
59
- protected $cardholder = NULL;
60
- /**
61
- * @var string
62
- */
63
- protected $pseudocardpan = NULL;
64
-
65
- /**
66
- * @param int $cardcvc2
67
- */
68
- public function setCardcvc2($cardcvc2)
69
- {
70
- $this->cardcvc2 = $cardcvc2;
71
- }
72
-
73
- /**
74
- * @return int
75
- */
76
- public function getCardcvc2()
77
- {
78
- return $this->cardcvc2;
79
- }
80
-
81
- /**
82
- * @param int $cardexpiredate
83
- */
84
- public function setCardexpiredate($cardexpiredate)
85
- {
86
- $this->cardexpiredate = $cardexpiredate;
87
- }
88
-
89
- /**
90
- * @return int
91
- */
92
- public function getCardexpiredate()
93
- {
94
- return $this->cardexpiredate;
95
- }
96
-
97
- /**
98
- * @param string $cardholder
99
- */
100
- public function setCardholder($cardholder)
101
- {
102
- $this->cardholder = $cardholder;
103
- }
104
-
105
- /**
106
- * @return string
107
- */
108
- public function getCardholder()
109
- {
110
- return $this->cardholder;
111
- }
112
-
113
- /**
114
- * @param string $cardpan
115
- */
116
- public function setCardpan($cardpan)
117
- {
118
- $this->cardpan = $cardpan;
119
- }
120
-
121
- /**
122
- * @return string
123
- */
124
- public function getCardpan()
125
- {
126
- return $this->cardpan;
127
- }
128
-
129
- /**
130
- * @param string $cardtype
131
- */
132
- public function setCardtype($cardtype)
133
- {
134
- $this->cardtype = $cardtype;
135
- }
136
-
137
- /**
138
- * @return string
139
- */
140
- public function getCardtype()
141
- {
142
- return $this->cardtype;
143
- }
144
-
145
- /**
146
- * @param string $pseudocardpan
147
- */
148
- public function setPseudocardpan($pseudocardpan)
149
- {
150
- $this->pseudocardpan = $pseudocardpan;
151
- }
152
-
153
- /**
154
- * @return string
155
- */
156
- public function getPseudocardpan()
157
- {
158
- return $this->pseudocardpan;
159
- }
160
-
161
- /**
162
- * @param int $cardissuenumber
163
- */
164
- public function setCardissuenumber($cardissuenumber)
165
- {
166
- $this->cardissuenumber = $cardissuenumber;
167
- }
168
-
169
- /**
170
- * @return int
171
- */
172
- public function getCardissuenumber()
173
- {
174
- return $this->cardissuenumber;
175
- }
176
-
177
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_Vauthorization_PaymentMethod_CreditCard
34
+ extends Payone_Api_Request_Parameter_Vauthorization_PaymentMethod_Abstract
35
+ {
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $cardpan = NULL;
40
+ /**
41
+ * @var string
42
+ */
43
+ protected $cardtype = NULL;
44
+ /**
45
+ * @var int
46
+ */
47
+ protected $cardexpiredate = NULL;
48
+ /**
49
+ * @var int
50
+ */
51
+ protected $cardcvc2 = NULL;
52
+ /**
53
+ * @var int
54
+ */
55
+ protected $cardissuenumber = NULL;
56
+ /**
57
+ * @var string
58
+ */
59
+ protected $cardholder = NULL;
60
+ /**
61
+ * @var string
62
+ */
63
+ protected $pseudocardpan = NULL;
64
+
65
+ /**
66
+ * @param int $cardcvc2
67
+ */
68
+ public function setCardcvc2($cardcvc2)
69
+ {
70
+ $this->cardcvc2 = $cardcvc2;
71
+ }
72
+
73
+ /**
74
+ * @return int
75
+ */
76
+ public function getCardcvc2()
77
+ {
78
+ return $this->cardcvc2;
79
+ }
80
+
81
+ /**
82
+ * @param int $cardexpiredate
83
+ */
84
+ public function setCardexpiredate($cardexpiredate)
85
+ {
86
+ $this->cardexpiredate = $cardexpiredate;
87
+ }
88
+
89
+ /**
90
+ * @return int
91
+ */
92
+ public function getCardexpiredate()
93
+ {
94
+ return $this->cardexpiredate;
95
+ }
96
+
97
+ /**
98
+ * @param string $cardholder
99
+ */
100
+ public function setCardholder($cardholder)
101
+ {
102
+ $this->cardholder = $cardholder;
103
+ }
104
+
105
+ /**
106
+ * @return string
107
+ */
108
+ public function getCardholder()
109
+ {
110
+ return $this->cardholder;
111
+ }
112
+
113
+ /**
114
+ * @param string $cardpan
115
+ */
116
+ public function setCardpan($cardpan)
117
+ {
118
+ $this->cardpan = $cardpan;
119
+ }
120
+
121
+ /**
122
+ * @return string
123
+ */
124
+ public function getCardpan()
125
+ {
126
+ return $this->cardpan;
127
+ }
128
+
129
+ /**
130
+ * @param string $cardtype
131
+ */
132
+ public function setCardtype($cardtype)
133
+ {
134
+ $this->cardtype = $cardtype;
135
+ }
136
+
137
+ /**
138
+ * @return string
139
+ */
140
+ public function getCardtype()
141
+ {
142
+ return $this->cardtype;
143
+ }
144
+
145
+ /**
146
+ * @param string $pseudocardpan
147
+ */
148
+ public function setPseudocardpan($pseudocardpan)
149
+ {
150
+ $this->pseudocardpan = $pseudocardpan;
151
+ }
152
+
153
+ /**
154
+ * @return string
155
+ */
156
+ public function getPseudocardpan()
157
+ {
158
+ return $this->pseudocardpan;
159
+ }
160
+
161
+ /**
162
+ * @param int $cardissuenumber
163
+ */
164
+ public function setCardissuenumber($cardissuenumber)
165
+ {
166
+ $this->cardissuenumber = $cardissuenumber;
167
+ }
168
+
169
+ /**
170
+ * @return int
171
+ */
172
+ public function getCardissuenumber()
173
+ {
174
+ return $this->cardissuenumber;
175
+ }
176
+
177
+ }
lib/Payone/Api/Request/Parameter/Vauthorization/PaymentMethod/DebitPayment.php CHANGED
@@ -1,176 +1,176 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_Vauthorization_PaymentMethod_DebitPayment
34
- extends Payone_Api_Request_Parameter_Vauthorization_PaymentMethod_Abstract
35
- {
36
- /**
37
- * @var string
38
- */
39
- protected $bankcountry = NULL;
40
- /**
41
- * @var string
42
- */
43
- protected $bankaccount = NULL;
44
- /**
45
- * @var string
46
- */
47
- protected $bankcode = NULL;
48
- /**
49
- * @var string
50
- */
51
- protected $bankaccountholder = NULL;
52
- /**
53
- * @var string
54
- */
55
- protected $iban = NULL;
56
- /**
57
- * @var string
58
- */
59
- protected $bic = NULL;
60
- /**
61
- * @var string
62
- */
63
- protected $mandate_identification = NULL;
64
-
65
- /**
66
- * @param string $bankaccount
67
- */
68
- public function setBankaccount($bankaccount)
69
- {
70
- $this->bankaccount = $bankaccount;
71
- }
72
-
73
- /**
74
- * @return string
75
- */
76
- public function getBankaccount()
77
- {
78
- return $this->bankaccount;
79
- }
80
-
81
- /**
82
- * @param string $bankaccountholder
83
- */
84
- public function setBankaccountholder($bankaccountholder)
85
- {
86
- $this->bankaccountholder = $bankaccountholder;
87
- }
88
-
89
- /**
90
- * @return string
91
- */
92
- public function getBankaccountholder()
93
- {
94
- return $this->bankaccountholder;
95
- }
96
-
97
- /**
98
- * @param string $bankcode
99
- */
100
- public function setBankcode($bankcode)
101
- {
102
- $this->bankcode = $bankcode;
103
- }
104
-
105
- /**
106
- * @return string
107
- */
108
- public function getBankcode()
109
- {
110
- return $this->bankcode;
111
- }
112
-
113
- /**
114
- * @param string $bankcountry
115
- */
116
- public function setBankcountry($bankcountry)
117
- {
118
- $this->bankcountry = $bankcountry;
119
- }
120
-
121
- /**
122
- * @return string
123
- */
124
- public function getBankcountry()
125
- {
126
- return $this->bankcountry;
127
- }
128
-
129
- /**
130
- * @param string $iban
131
- */
132
- public function setIban($iban)
133
- {
134
- $this->iban = $iban;
135
- }
136
-
137
- /**
138
- * @return string
139
- */
140
- public function getIban()
141
- {
142
- return $this->iban;
143
- }
144
-
145
- /**
146
- * @param string $bic
147
- */
148
- public function setBic($bic)
149
- {
150
- $this->bic = $bic;
151
- }
152
-
153
- /**
154
- * @return string
155
- */
156
- public function getBic()
157
- {
158
- return $this->bic;
159
- }
160
-
161
- /**
162
- * @param string $mandateIdentification
163
- */
164
- public function setMandateIdentification($mandateIdentification)
165
- {
166
- $this->mandate_identification = $mandateIdentification;
167
- }
168
-
169
- /**
170
- * @return string
171
- */
172
- public function getMandateIdentification()
173
- {
174
- return $this->mandate_identification;
175
- }
176
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_Vauthorization_PaymentMethod_DebitPayment
34
+ extends Payone_Api_Request_Parameter_Vauthorization_PaymentMethod_Abstract
35
+ {
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $bankcountry = NULL;
40
+ /**
41
+ * @var string
42
+ */
43
+ protected $bankaccount = NULL;
44
+ /**
45
+ * @var string
46
+ */
47
+ protected $bankcode = NULL;
48
+ /**
49
+ * @var string
50
+ */
51
+ protected $bankaccountholder = NULL;
52
+ /**
53
+ * @var string
54
+ */
55
+ protected $iban = NULL;
56
+ /**
57
+ * @var string
58
+ */
59
+ protected $bic = NULL;
60
+ /**
61
+ * @var string
62
+ */
63
+ protected $mandate_identification = NULL;
64
+
65
+ /**
66
+ * @param string $bankaccount
67
+ */
68
+ public function setBankaccount($bankaccount)
69
+ {
70
+ $this->bankaccount = $bankaccount;
71
+ }
72
+
73
+ /**
74
+ * @return string
75
+ */
76
+ public function getBankaccount()
77
+ {
78
+ return $this->bankaccount;
79
+ }
80
+
81
+ /**
82
+ * @param string $bankaccountholder
83
+ */
84
+ public function setBankaccountholder($bankaccountholder)
85
+ {
86
+ $this->bankaccountholder = $bankaccountholder;
87
+ }
88
+
89
+ /**
90
+ * @return string
91
+ */
92
+ public function getBankaccountholder()
93
+ {
94
+ return $this->bankaccountholder;
95
+ }
96
+
97
+ /**
98
+ * @param string $bankcode
99
+ */
100
+ public function setBankcode($bankcode)
101
+ {
102
+ $this->bankcode = $bankcode;
103
+ }
104
+
105
+ /**
106
+ * @return string
107
+ */
108
+ public function getBankcode()
109
+ {
110
+ return $this->bankcode;
111
+ }
112
+
113
+ /**
114
+ * @param string $bankcountry
115
+ */
116
+ public function setBankcountry($bankcountry)
117
+ {
118
+ $this->bankcountry = $bankcountry;
119
+ }
120
+
121
+ /**
122
+ * @return string
123
+ */
124
+ public function getBankcountry()
125
+ {
126
+ return $this->bankcountry;
127
+ }
128
+
129
+ /**
130
+ * @param string $iban
131
+ */
132
+ public function setIban($iban)
133
+ {
134
+ $this->iban = $iban;
135
+ }
136
+
137
+ /**
138
+ * @return string
139
+ */
140
+ public function getIban()
141
+ {
142
+ return $this->iban;
143
+ }
144
+
145
+ /**
146
+ * @param string $bic
147
+ */
148
+ public function setBic($bic)
149
+ {
150
+ $this->bic = $bic;
151
+ }
152
+
153
+ /**
154
+ * @return string
155
+ */
156
+ public function getBic()
157
+ {
158
+ return $this->bic;
159
+ }
160
+
161
+ /**
162
+ * @param string $mandateIdentification
163
+ */
164
+ public function setMandateIdentification($mandateIdentification)
165
+ {
166
+ $this->mandate_identification = $mandateIdentification;
167
+ }
168
+
169
+ /**
170
+ * @return string
171
+ */
172
+ public function getMandateIdentification()
173
+ {
174
+ return $this->mandate_identification;
175
+ }
176
+ }
lib/Payone/Api/Request/Parameter/Vauthorization/PersonalData.php CHANGED
@@ -1,288 +1,288 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Parameter_Vauthorization_PersonalData
34
- extends Payone_Api_Request_Parameter_Vauthorization_Abstract
35
- {
36
- /**
37
- * Merchant's customer ID (Permitted symbols: 0-9, a-z, A-Z, .,-,_,/)
38
- * @var string
39
- */
40
- protected $customerid = null;
41
- /**
42
- * PAYONE debitor ID
43
- *
44
- * @var int
45
- */
46
- protected $userid = NULL;
47
- protected $salutation = null;
48
- protected $title = null;
49
- protected $firstname = null;
50
- protected $lastname = null;
51
- protected $company = null;
52
- protected $street = null;
53
- protected $addressaddition = null;
54
- protected $zip = null;
55
- protected $city = null;
56
- /**
57
- * Country (ISO-3166)
58
- *
59
- * @var string
60
- */
61
- protected $country = null;
62
- protected $email = null;
63
- protected $telephonenumber = null;
64
- /**
65
- * Date of birth (YYYYMMDD)
66
- *
67
- * @var int
68
- */
69
- protected $birthday = NULL;
70
- /**
71
- * Language indicator (ISO639)
72
- *
73
- * @var string
74
- */
75
- protected $language = null;
76
- protected $vatid = null;
77
- protected $ip = null;
78
-
79
- public function setAddressaddition($addressaddition)
80
- {
81
- $this->addressaddition = $addressaddition;
82
- }
83
-
84
- public function getAddressaddition()
85
- {
86
- return $this->addressaddition;
87
- }
88
-
89
- /**
90
- * @param string $birthday
91
- */
92
- public function setBirthday($birthday)
93
- {
94
- $this->birthday = $birthday;
95
- }
96
-
97
- /**
98
- * @return string
99
- */
100
- public function getBirthday()
101
- {
102
- return $this->birthday;
103
- }
104
-
105
- public function setCity($city)
106
- {
107
- $this->city = $city;
108
- }
109
-
110
- public function getCity()
111
- {
112
- return $this->city;
113
- }
114
-
115
- public function setCompany($company)
116
- {
117
- $this->company = $company;
118
- }
119
-
120
- public function getCompany()
121
- {
122
- return $this->company;
123
- }
124
-
125
- /**
126
- * @param string $country
127
- */
128
- public function setCountry($country)
129
- {
130
- $this->country = $country;
131
- }
132
-
133
- /**
134
- * @return string
135
- */
136
- public function getCountry()
137
- {
138
- return $this->country;
139
- }
140
-
141
- /**
142
- * @param string $customerid
143
- */
144
- public function setCustomerid($customerid)
145
- {
146
- $this->customerid = $customerid;
147
- }
148
-
149
- /**
150
- * @return string
151
- */
152
- public function getCustomerid()
153
- {
154
- return $this->customerid;
155
- }
156
-
157
- public function setEmail($email)
158
- {
159
- $this->email = $email;
160
- }
161
-
162
- public function getEmail()
163
- {
164
- return $this->email;
165
- }
166
-
167
- public function setFirstname($firstname)
168
- {
169
- $this->firstname = $firstname;
170
- }
171
-
172
- public function getFirstname()
173
- {
174
- return $this->firstname;
175
- }
176
-
177
- public function setIp($ip)
178
- {
179
- $this->ip = $ip;
180
- }
181
-
182
- public function getIp()
183
- {
184
- return $this->ip;
185
- }
186
-
187
- /**
188
- * @param string $language
189
- */
190
- public function setLanguage($language)
191
- {
192
- $this->language = $language;
193
- }
194
-
195
- /**
196
- * @return string
197
- */
198
- public function getLanguage()
199
- {
200
- return $this->language;
201
- }
202
-
203
- public function setLastname($lastname)
204
- {
205
- $this->lastname = $lastname;
206
- }
207
-
208
- public function getLastname()
209
- {
210
- return $this->lastname;
211
- }
212
-
213
- public function setSalutation($salutation)
214
- {
215
- $this->salutation = $salutation;
216
- }
217
-
218
- public function getSalutation()
219
- {
220
- return $this->salutation;
221
- }
222
-
223
- public function setStreet($street)
224
- {
225
- $this->street = $street;
226
- }
227
-
228
- public function getStreet()
229
- {
230
- return $this->street;
231
- }
232
-
233
- public function setTelephonenumber($telephonenumber)
234
- {
235
- $this->telephonenumber = $telephonenumber;
236
- }
237
-
238
- public function getTelephonenumber()
239
- {
240
- return $this->telephonenumber;
241
- }
242
-
243
- public function setTitle($title)
244
- {
245
- $this->title = $title;
246
- }
247
-
248
- public function getTitle()
249
- {
250
- return $this->title;
251
- }
252
-
253
- /**
254
- * @param string $userid
255
- */
256
- public function setUserid($userid)
257
- {
258
- $this->userid = $userid;
259
- }
260
-
261
- /**
262
- * @return string
263
- */
264
- public function getUserid()
265
- {
266
- return $this->userid;
267
- }
268
-
269
- public function setVatid($vatid)
270
- {
271
- $this->vatid = $vatid;
272
- }
273
-
274
- public function getVatid()
275
- {
276
- return $this->vatid;
277
- }
278
-
279
- public function setZip($zip)
280
- {
281
- $this->zip = $zip;
282
- }
283
-
284
- public function getZip()
285
- {
286
- return $this->zip;
287
- }
288
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Parameter_Vauthorization_PersonalData
34
+ extends Payone_Api_Request_Parameter_Vauthorization_Abstract
35
+ {
36
+ /**
37
+ * Merchant's customer ID (Permitted symbols: 0-9, a-z, A-Z, .,-,_,/)
38
+ * @var string
39
+ */
40
+ protected $customerid = null;
41
+ /**
42
+ * PAYONE debitor ID
43
+ *
44
+ * @var int
45
+ */
46
+ protected $userid = NULL;
47
+ protected $salutation = null;
48
+ protected $title = null;
49
+ protected $firstname = null;
50
+ protected $lastname = null;
51
+ protected $company = null;
52
+ protected $street = null;
53
+ protected $addressaddition = null;
54
+ protected $zip = null;
55
+ protected $city = null;
56
+ /**
57
+ * Country (ISO-3166)
58
+ *
59
+ * @var string
60
+ */
61
+ protected $country = null;
62
+ protected $email = null;
63
+ protected $telephonenumber = null;
64
+ /**
65
+ * Date of birth (YYYYMMDD)
66
+ *
67
+ * @var int
68
+ */
69
+ protected $birthday = NULL;
70
+ /**
71
+ * Language indicator (ISO639)
72
+ *
73
+ * @var string
74
+ */
75
+ protected $language = null;
76
+ protected $vatid = null;
77
+ protected $ip = null;
78
+
79
+ public function setAddressaddition($addressaddition)
80
+ {
81
+ $this->addressaddition = $addressaddition;
82
+ }
83
+
84
+ public function getAddressaddition()
85
+ {
86
+ return $this->addressaddition;
87
+ }
88
+
89
+ /**
90
+ * @param string $birthday
91
+ */
92
+ public function setBirthday($birthday)
93
+ {
94
+ $this->birthday = $birthday;
95
+ }
96
+
97
+ /**
98
+ * @return string
99
+ */
100
+ public function getBirthday()
101
+ {
102
+ return $this->birthday;
103
+ }
104
+
105
+ public function setCity($city)
106
+ {
107
+ $this->city = $city;
108
+ }
109
+
110
+ public function getCity()
111
+ {
112
+ return $this->city;
113
+ }
114
+
115
+ public function setCompany($company)
116
+ {
117
+ $this->company = $company;
118
+ }
119
+
120
+ public function getCompany()
121
+ {
122
+ return $this->company;
123
+ }
124
+
125
+ /**
126
+ * @param string $country
127
+ */
128
+ public function setCountry($country)
129
+ {
130
+ $this->country = $country;
131
+ }
132
+
133
+ /**
134
+ * @return string
135
+ */
136
+ public function getCountry()
137
+ {
138
+ return $this->country;
139
+ }
140
+
141
+ /**
142
+ * @param string $customerid
143
+ */
144
+ public function setCustomerid($customerid)
145
+ {
146
+ $this->customerid = $customerid;
147
+ }
148
+
149
+ /**
150
+ * @return string
151
+ */
152
+ public function getCustomerid()
153
+ {
154
+ return $this->customerid;
155
+ }
156
+
157
+ public function setEmail($email)
158
+ {
159
+ $this->email = $email;
160
+ }
161
+
162
+ public function getEmail()
163
+ {
164
+ return $this->email;
165
+ }
166
+
167
+ public function setFirstname($firstname)
168
+ {
169
+ $this->firstname = $firstname;
170
+ }
171
+
172
+ public function getFirstname()
173
+ {
174
+ return $this->firstname;
175
+ }
176
+
177
+ public function setIp($ip)
178
+ {
179
+ $this->ip = $ip;
180
+ }
181
+
182
+ public function getIp()
183
+ {
184
+ return $this->ip;
185
+ }
186
+
187
+ /**
188
+ * @param string $language
189
+ */
190
+ public function setLanguage($language)
191
+ {
192
+ $this->language = $language;
193
+ }
194
+
195
+ /**
196
+ * @return string
197
+ */
198
+ public function getLanguage()
199
+ {
200
+ return $this->language;
201
+ }
202
+
203
+ public function setLastname($lastname)
204
+ {
205
+ $this->lastname = $lastname;
206
+ }
207
+
208
+ public function getLastname()
209
+ {
210
+ return $this->lastname;
211
+ }
212
+
213
+ public function setSalutation($salutation)
214
+ {
215
+ $this->salutation = $salutation;
216
+ }
217
+
218
+ public function getSalutation()
219
+ {
220
+ return $this->salutation;
221
+ }
222
+
223
+ public function setStreet($street)
224
+ {
225
+ $this->street = $street;
226
+ }
227
+
228
+ public function getStreet()
229
+ {
230
+ return $this->street;
231
+ }
232
+
233
+ public function setTelephonenumber($telephonenumber)
234
+ {
235
+ $this->telephonenumber = $telephonenumber;
236
+ }
237
+
238
+ public function getTelephonenumber()
239
+ {
240
+ return $this->telephonenumber;
241
+ }
242
+
243
+ public function setTitle($title)
244
+ {
245
+ $this->title = $title;
246
+ }
247
+
248
+ public function getTitle()
249
+ {
250
+ return $this->title;
251
+ }
252
+
253
+ /**
254
+ * @param string $userid
255
+ */
256
+ public function setUserid($userid)
257
+ {
258
+ $this->userid = $userid;
259
+ }
260
+
261
+ /**
262
+ * @return string
263
+ */
264
+ public function getUserid()
265
+ {
266
+ return $this->userid;
267
+ }
268
+
269
+ public function setVatid($vatid)
270
+ {
271
+ $this->vatid = $vatid;
272
+ }
273
+
274
+ public function getVatid()
275
+ {
276
+ return $this->vatid;
277
+ }
278
+
279
+ public function setZip($zip)
280
+ {
281
+ $this->zip = $zip;
282
+ }
283
+
284
+ public function getZip()
285
+ {
286
+ return $this->zip;
287
+ }
288
+ }
lib/Payone/Api/Request/Preauthorization.php CHANGED
@@ -1,37 +1,37 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Preauthorization extends Payone_Api_Request_Authorization_Abstract
34
- {
35
- protected $request = Payone_Api_Enum_RequestType::PREAUTHORIZATION;
36
-
37
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Preauthorization extends Payone_Api_Request_Authorization_Abstract
34
+ {
35
+ protected $request = Payone_Api_Enum_RequestType::PREAUTHORIZATION;
36
+
37
+ }
lib/Payone/Api/Request/Refund.php CHANGED
@@ -1,198 +1,198 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Refund extends Payone_Api_Request_Abstract
34
- {
35
- protected $request = Payone_Api_Enum_RequestType::REFUND;
36
-
37
- /**
38
- * @var string
39
- */
40
- protected $txid = NULL;
41
- /**
42
- * @var int
43
- */
44
- protected $sequencenumber = NULL;
45
- /**
46
- * @var int
47
- */
48
- protected $amount = NULL;
49
- /**
50
- * @var string
51
- */
52
- protected $currency = NULL;
53
- /**
54
- * @var string
55
- */
56
- protected $use_customerdata = NULL;
57
- /**
58
- * @var Payone_Api_Request_Parameter_Refund_PaymentMethod_BankAccount
59
- */
60
- protected $payment = null;
61
- /**
62
- * @var Payone_Api_Request_Parameter_Invoicing_Transaction
63
- */
64
- protected $invoicing = null;
65
-
66
- /**
67
- * @var string
68
- */
69
- protected $narrative_text = null;
70
-
71
- /**
72
- * @param int $amount
73
- */
74
- public function setAmount($amount)
75
- {
76
- $this->amount = $amount;
77
- }
78
-
79
- /**
80
- * @return int
81
- */
82
- public function getAmount()
83
- {
84
- return $this->amount;
85
- }
86
-
87
- /**
88
- * @param string $currency
89
- */
90
- public function setCurrency($currency)
91
- {
92
- $this->currency = $currency;
93
- }
94
-
95
- /**
96
- * @return string
97
- */
98
- public function getCurrency()
99
- {
100
- return $this->currency;
101
- }
102
-
103
- /**
104
- * @param \Payone_Api_Request_Parameter_Invoicing_Transaction $invoicing
105
- */
106
- public function setInvoicing(Payone_Api_Request_Parameter_Invoicing_Transaction $invoicing)
107
- {
108
- $this->invoicing = $invoicing;
109
- }
110
-
111
- /**
112
- * @return \Payone_Api_Request_Parameter_Invoicing_Transaction
113
- */
114
- public function getInvoicing()
115
- {
116
- return $this->invoicing;
117
- }
118
-
119
- /**
120
- * @param \Payone_Api_Request_Parameter_Refund_PaymentMethod_BankAccount $payment
121
- */
122
- public function setPayment(Payone_Api_Request_Parameter_Refund_PaymentMethod_BankAccount $payment)
123
- {
124
- $this->payment = $payment;
125
- }
126
-
127
- /**
128
- * @return \Payone_Api_Request_Parameter_Refund_PaymentMethod_BankAccount
129
- */
130
- public function getPayment()
131
- {
132
- return $this->payment;
133
- }
134
-
135
- /**
136
- * @param int $sequencenumber
137
- */
138
- public function setSequencenumber($sequencenumber)
139
- {
140
- $this->sequencenumber = $sequencenumber;
141
- }
142
-
143
- /**
144
- * @return int
145
- */
146
- public function getSequencenumber()
147
- {
148
- return $this->sequencenumber;
149
- }
150
-
151
- /**
152
- * @param string $txid
153
- */
154
- public function setTxid($txid)
155
- {
156
- $this->txid = $txid;
157
- }
158
-
159
- /**
160
- * @return string
161
- */
162
- public function getTxid()
163
- {
164
- return $this->txid;
165
- }
166
-
167
- /**
168
- * @param string $use_customerdata
169
- */
170
- public function setUseCustomerdata($use_customerdata)
171
- {
172
- $this->use_customerdata = $use_customerdata;
173
- }
174
-
175
- /**
176
- * @return string
177
- */
178
- public function getUseCustomerdata()
179
- {
180
- return $this->use_customerdata;
181
- }
182
-
183
- /**
184
- * @return null
185
- */
186
- public function getNarrativeText()
187
- {
188
- return $this->narrative_text;
189
- }
190
-
191
- /**
192
- * @param null $narrative_text
193
- */
194
- public function setNarrativeText($narrative_text)
195
- {
196
- $this->narrative_text = $narrative_text;
197
- }
198
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Refund extends Payone_Api_Request_Abstract
34
+ {
35
+ protected $request = Payone_Api_Enum_RequestType::REFUND;
36
+
37
+ /**
38
+ * @var string
39
+ */
40
+ protected $txid = NULL;
41
+ /**
42
+ * @var int
43
+ */
44
+ protected $sequencenumber = NULL;
45
+ /**
46
+ * @var int
47
+ */
48
+ protected $amount = NULL;
49
+ /**
50
+ * @var string
51
+ */
52
+ protected $currency = NULL;
53
+ /**
54
+ * @var string
55
+ */
56
+ protected $use_customerdata = NULL;
57
+ /**
58
+ * @var Payone_Api_Request_Parameter_Refund_PaymentMethod_BankAccount
59
+ */
60
+ protected $payment = null;
61
+ /**
62
+ * @var Payone_Api_Request_Parameter_Invoicing_Transaction
63
+ */
64
+ protected $invoicing = null;
65
+
66
+ /**
67
+ * @var string
68
+ */
69
+ protected $narrative_text = null;
70
+
71
+ /**
72
+ * @param int $amount
73
+ */
74
+ public function setAmount($amount)
75
+ {
76
+ $this->amount = $amount;
77
+ }
78
+
79
+ /**
80
+ * @return int
81
+ */
82
+ public function getAmount()
83
+ {
84
+ return $this->amount;
85
+ }
86
+
87
+ /**
88
+ * @param string $currency
89
+ */
90
+ public function setCurrency($currency)
91
+ {
92
+ $this->currency = $currency;
93
+ }
94
+
95
+ /**
96
+ * @return string
97
+ */
98
+ public function getCurrency()
99
+ {
100
+ return $this->currency;
101
+ }
102
+
103
+ /**
104
+ * @param \Payone_Api_Request_Parameter_Invoicing_Transaction $invoicing
105
+ */
106
+ public function setInvoicing(Payone_Api_Request_Parameter_Invoicing_Transaction $invoicing)
107
+ {
108
+ $this->invoicing = $invoicing;
109
+ }
110
+
111
+ /**
112
+ * @return \Payone_Api_Request_Parameter_Invoicing_Transaction
113
+ */
114
+ public function getInvoicing()
115
+ {
116
+ return $this->invoicing;
117
+ }
118
+
119
+ /**
120
+ * @param \Payone_Api_Request_Parameter_Refund_PaymentMethod_BankAccount $payment
121
+ */
122
+ public function setPayment(Payone_Api_Request_Parameter_Refund_PaymentMethod_BankAccount $payment)
123
+ {
124
+ $this->payment = $payment;
125
+ }
126
+
127
+ /**
128
+ * @return \Payone_Api_Request_Parameter_Refund_PaymentMethod_BankAccount
129
+ */
130
+ public function getPayment()
131
+ {
132
+ return $this->payment;
133
+ }
134
+
135
+ /**
136
+ * @param int $sequencenumber
137
+ */
138
+ public function setSequencenumber($sequencenumber)
139
+ {
140
+ $this->sequencenumber = $sequencenumber;
141
+ }
142
+
143
+ /**
144
+ * @return int
145
+ */
146
+ public function getSequencenumber()
147
+ {
148
+ return $this->sequencenumber;
149
+ }
150
+
151
+ /**
152
+ * @param string $txid
153
+ */
154
+ public function setTxid($txid)
155
+ {
156
+ $this->txid = $txid;
157
+ }
158
+
159
+ /**
160
+ * @return string
161
+ */
162
+ public function getTxid()
163
+ {
164
+ return $this->txid;
165
+ }
166
+
167
+ /**
168
+ * @param string $use_customerdata
169
+ */
170
+ public function setUseCustomerdata($use_customerdata)
171
+ {
172
+ $this->use_customerdata = $use_customerdata;
173
+ }
174
+
175
+ /**
176
+ * @return string
177
+ */
178
+ public function getUseCustomerdata()
179
+ {
180
+ return $this->use_customerdata;
181
+ }
182
+
183
+ /**
184
+ * @return null
185
+ */
186
+ public function getNarrativeText()
187
+ {
188
+ return $this->narrative_text;
189
+ }
190
+
191
+ /**
192
+ * @param null $narrative_text
193
+ */
194
+ public function setNarrativeText($narrative_text)
195
+ {
196
+ $this->narrative_text = $narrative_text;
197
+ }
198
+ }
lib/Payone/Api/Request/UpdateAccess.php CHANGED
@@ -1,353 +1,353 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_UpdateAccess extends Payone_Api_Request_Abstract
34
- {
35
- protected $request = Payone_Api_Enum_RequestType::UPDATEACCESS;
36
-
37
- /**
38
- * @var int
39
- */
40
- protected $accessid = null;
41
-
42
- /**
43
- * @var string
44
- * @see Payone_Api_Enum_AccessAction
45
- */
46
- protected $action = null;
47
-
48
- /**
49
- * Offer ID
50
- *
51
- * @var int
52
- */
53
- protected $productid = NULL;
54
-
55
- /**
56
- * Startdate of access as unixtimestamp
57
- *
58
- * @var int
59
- */
60
- protected $access_starttime = NULL;
61
-
62
- /**
63
- * Expiredate of first term or timestamp of renewal as unixtimestamp
64
- *
65
- * @var int
66
- */
67
- protected $access_expiretime = NULL;
68
-
69
- /**
70
- * Canelationdate as unixtimestamp
71
- *
72
- * @var int
73
- */
74
- protected $access_canceltime = NULL;
75
-
76
- /**
77
- * Entire price of first term, must be equal to sum of amount * price. Must be in smallest currency unit
78
- *
79
- * @var int
80
- */
81
- protected $amount_trail = NULL;
82
-
83
- /**
84
- * Time unit of first term
85
- *
86
- * @var string
87
- */
88
- protected $period_unit_trail = NULL;
89
-
90
- /**
91
- * Lenght of first term
92
- *
93
- * @var int
94
- */
95
- protected $period_length_trail = NULL;
96
-
97
- /**
98
- * Entire price of all products in one renewal term. Must be in smallest currency unit
99
- *
100
- * @var int
101
- */
102
- protected $amount_recurring = NULL;
103
-
104
- /**
105
- * Time unit of renewal term
106
- *
107
- * @var string
108
- */
109
- protected $period_unit_recurring = NULL;
110
-
111
- /**
112
- * Length of renewal term
113
- *
114
- * @var int
115
- */
116
- protected $period_length_recurring = NULL;
117
-
118
- /**
119
- * Currency (ISO-4217)
120
- *
121
- * @var string
122
- */
123
- protected $currency = NULL;
124
-
125
- /**
126
- * @var Payone_Api_Request_Parameter_UpdateAccess_Invoicing_Transaction
127
- */
128
- protected $invoicing = null;
129
-
130
- /**
131
- * @param int $access_canceltime
132
- */
133
- public function setAccessCanceltime($access_canceltime)
134
- {
135
- $this->access_canceltime = $access_canceltime;
136
- }
137
-
138
- /**
139
- * @return int
140
- */
141
- public function getAccessCanceltime()
142
- {
143
- return $this->access_canceltime;
144
- }
145
-
146
- /**
147
- * @param int $access_expiretime
148
- */
149
- public function setAccessExpiretime($access_expiretime)
150
- {
151
- $this->access_expiretime = $access_expiretime;
152
- }
153
-
154
- /**
155
- * @return int
156
- */
157
- public function getAccessExpiretime()
158
- {
159
- return $this->access_expiretime;
160
- }
161
-
162
- /**
163
- * @param int $access_starttime
164
- */
165
- public function setAccessStarttime($access_starttime)
166
- {
167
- $this->access_starttime = $access_starttime;
168
- }
169
-
170
- /**
171
- * @return int
172
- */
173
- public function getAccessStarttime()
174
- {
175
- return $this->access_starttime;
176
- }
177
-
178
- /**
179
- * @param int $accessid
180
- */
181
- public function setAccessid($accessid)
182
- {
183
- $this->accessid = $accessid;
184
- }
185
-
186
- /**
187
- * @return int
188
- */
189
- public function getAccessid()
190
- {
191
- return $this->accessid;
192
- }
193
-
194
- /**
195
- * @param string $action
196
- */
197
- public function setAction($action)
198
- {
199
- $this->action = $action;
200
- }
201
-
202
- /**
203
- * @return string
204
- */
205
- public function getAction()
206
- {
207
- return $this->action;
208
- }
209
-
210
- /**
211
- * @param int $amount_recurring
212
- */
213
- public function setAmountRecurring($amount_recurring)
214
- {
215
- $this->amount_recurring = $amount_recurring;
216
- }
217
-
218
- /**
219
- * @return int
220
- */
221
- public function getAmountRecurring()
222
- {
223
- return $this->amount_recurring;
224
- }
225
-
226
- /**
227
- * @param int $amount_trail
228
- */
229
- public function setAmountTrail($amount_trail)
230
- {
231
- $this->amount_trail = $amount_trail;
232
- }
233
-
234
- /**
235
- * @return int
236
- */
237
- public function getAmountTrail()
238
- {
239
- return $this->amount_trail;
240
- }
241
-
242
- /**
243
- * @param \Payone_Api_Request_Parameter_UpdateAccess_Invoicing_Transaction $invoicing
244
- */
245
- public function setInvoicing($invoicing)
246
- {
247
- $this->invoicing = $invoicing;
248
- }
249
-
250
- /**
251
- * @return \Payone_Api_Request_Parameter_UpdateAccess_Invoicing_Transaction
252
- */
253
- public function getInvoicing()
254
- {
255
- return $this->invoicing;
256
- }
257
-
258
- /**
259
- * @param int $period_length_recurring
260
- */
261
- public function setPeriodLengthRecurring($period_length_recurring)
262
- {
263
- $this->period_length_recurring = $period_length_recurring;
264
- }
265
-
266
- /**
267
- * @return int
268
- */
269
- public function getPeriodLengthRecurring()
270
- {
271
- return $this->period_length_recurring;
272
- }
273
-
274
- /**
275
- * @param int $period_length_trail
276
- */
277
- public function setPeriodLengthTrail($period_length_trail)
278
- {
279
- $this->period_length_trail = $period_length_trail;
280
- }
281
-
282
- /**
283
- * @return int
284
- */
285
- public function getPeriodLengthTrail()
286
- {
287
- return $this->period_length_trail;
288
- }
289
-
290
- /**
291
- * @param string $period_unit_recurring
292
- */
293
- public function setPeriodUnitRecurring($period_unit_recurring)
294
- {
295
- $this->period_unit_recurring = $period_unit_recurring;
296
- }
297
-
298
- /**
299
- * @return string
300
- */
301
- public function getPeriodUnitRecurring()
302
- {
303
- return $this->period_unit_recurring;
304
- }
305
-
306
- /**
307
- * @param string $period_unit_trail
308
- */
309
- public function setPeriodUnitTrail($period_unit_trail)
310
- {
311
- $this->period_unit_trail = $period_unit_trail;
312
- }
313
-
314
- /**
315
- * @return string
316
- */
317
- public function getPeriodUnitTrail()
318
- {
319
- return $this->period_unit_trail;
320
- }
321
-
322
- /**
323
- * @param int $productid
324
- */
325
- public function setProductid($productid)
326
- {
327
- $this->productid = $productid;
328
- }
329
-
330
- /**
331
- * @return int
332
- */
333
- public function getProductid()
334
- {
335
- return $this->productid;
336
- }
337
-
338
- /**
339
- * @param string $currency
340
- */
341
- public function setCurrency($currency)
342
- {
343
- $this->currency = $currency;
344
- }
345
-
346
- /**
347
- * @return string
348
- */
349
- public function getCurrency()
350
- {
351
- return $this->currency;
352
- }
353
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_UpdateAccess extends Payone_Api_Request_Abstract
34
+ {
35
+ protected $request = Payone_Api_Enum_RequestType::UPDATEACCESS;
36
+
37
+ /**
38
+ * @var int
39
+ */
40
+ protected $accessid = null;
41
+
42
+ /**
43
+ * @var string
44
+ * @see Payone_Api_Enum_AccessAction
45
+ */
46
+ protected $action = null;
47
+
48
+ /**
49
+ * Offer ID
50
+ *
51
+ * @var int
52
+ */
53
+ protected $productid = NULL;
54
+
55
+ /**
56
+ * Startdate of access as unixtimestamp
57
+ *
58
+ * @var int
59
+ */
60
+ protected $access_starttime = NULL;
61
+
62
+ /**
63
+ * Expiredate of first term or timestamp of renewal as unixtimestamp
64
+ *
65
+ * @var int
66
+ */
67
+ protected $access_expiretime = NULL;
68
+
69
+ /**
70
+ * Canelationdate as unixtimestamp
71
+ *
72
+ * @var int
73
+ */
74
+ protected $access_canceltime = NULL;
75
+
76
+ /**
77
+ * Entire price of first term, must be equal to sum of amount * price. Must be in smallest currency unit
78
+ *
79
+ * @var int
80
+ */
81
+ protected $amount_trail = NULL;
82
+
83
+ /**
84
+ * Time unit of first term
85
+ *
86
+ * @var string
87
+ */
88
+ protected $period_unit_trail = NULL;
89
+
90
+ /**
91
+ * Lenght of first term
92
+ *
93
+ * @var int
94
+ */
95
+ protected $period_length_trail = NULL;
96
+
97
+ /**
98
+ * Entire price of all products in one renewal term. Must be in smallest currency unit
99
+ *
100
+ * @var int
101
+ */
102
+ protected $amount_recurring = NULL;
103
+
104
+ /**
105
+ * Time unit of renewal term
106
+ *
107
+ * @var string
108
+ */
109
+ protected $period_unit_recurring = NULL;
110
+
111
+ /**
112
+ * Length of renewal term
113
+ *
114
+ * @var int
115
+ */
116
+ protected $period_length_recurring = NULL;
117
+
118
+ /**
119
+ * Currency (ISO-4217)
120
+ *
121
+ * @var string
122
+ */
123
+ protected $currency = NULL;
124
+
125
+ /**
126
+ * @var Payone_Api_Request_Parameter_UpdateAccess_Invoicing_Transaction
127
+ */
128
+ protected $invoicing = null;
129
+
130
+ /**
131
+ * @param int $access_canceltime
132
+ */
133
+ public function setAccessCanceltime($access_canceltime)
134
+ {
135
+ $this->access_canceltime = $access_canceltime;
136
+ }
137
+
138
+ /**
139
+ * @return int
140
+ */
141
+ public function getAccessCanceltime()
142
+ {
143
+ return $this->access_canceltime;
144
+ }
145
+
146
+ /**
147
+ * @param int $access_expiretime
148
+ */
149
+ public function setAccessExpiretime($access_expiretime)
150
+ {
151
+ $this->access_expiretime = $access_expiretime;
152
+ }
153
+
154
+ /**
155
+ * @return int
156
+ */
157
+ public function getAccessExpiretime()
158
+ {
159
+ return $this->access_expiretime;
160
+ }
161
+
162
+ /**
163
+ * @param int $access_starttime
164
+ */
165
+ public function setAccessStarttime($access_starttime)
166
+ {
167
+ $this->access_starttime = $access_starttime;
168
+ }
169
+
170
+ /**
171
+ * @return int
172
+ */
173
+ public function getAccessStarttime()
174
+ {
175
+ return $this->access_starttime;
176
+ }
177
+
178
+ /**
179
+ * @param int $accessid
180
+ */
181
+ public function setAccessid($accessid)
182
+ {
183
+ $this->accessid = $accessid;
184
+ }
185
+
186
+ /**
187
+ * @return int
188
+ */
189
+ public function getAccessid()
190
+ {
191
+ return $this->accessid;
192
+ }
193
+
194
+ /**
195
+ * @param string $action
196
+ */
197
+ public function setAction($action)
198
+ {
199
+ $this->action = $action;
200
+ }
201
+
202
+ /**
203
+ * @return string
204
+ */
205
+ public function getAction()
206
+ {
207
+ return $this->action;
208
+ }
209
+
210
+ /**
211
+ * @param int $amount_recurring
212
+ */
213
+ public function setAmountRecurring($amount_recurring)
214
+ {
215
+ $this->amount_recurring = $amount_recurring;
216
+ }
217
+
218
+ /**
219
+ * @return int
220
+ */
221
+ public function getAmountRecurring()
222
+ {
223
+ return $this->amount_recurring;
224
+ }
225
+
226
+ /**
227
+ * @param int $amount_trail
228
+ */
229
+ public function setAmountTrail($amount_trail)
230
+ {
231
+ $this->amount_trail = $amount_trail;
232
+ }
233
+
234
+ /**
235
+ * @return int
236
+ */
237
+ public function getAmountTrail()
238
+ {
239
+ return $this->amount_trail;
240
+ }
241
+
242
+ /**
243
+ * @param \Payone_Api_Request_Parameter_UpdateAccess_Invoicing_Transaction $invoicing
244
+ */
245
+ public function setInvoicing($invoicing)
246
+ {
247
+ $this->invoicing = $invoicing;
248
+ }
249
+
250
+ /**
251
+ * @return \Payone_Api_Request_Parameter_UpdateAccess_Invoicing_Transaction
252
+ */
253
+ public function getInvoicing()
254
+ {
255
+ return $this->invoicing;
256
+ }
257
+
258
+ /**
259
+ * @param int $period_length_recurring
260
+ */
261
+ public function setPeriodLengthRecurring($period_length_recurring)
262
+ {
263
+ $this->period_length_recurring = $period_length_recurring;
264
+ }
265
+
266
+ /**
267
+ * @return int
268
+ */
269
+ public function getPeriodLengthRecurring()
270
+ {
271
+ return $this->period_length_recurring;
272
+ }
273
+
274
+ /**
275
+ * @param int $period_length_trail
276
+ */
277
+ public function setPeriodLengthTrail($period_length_trail)
278
+ {
279
+ $this->period_length_trail = $period_length_trail;
280
+ }
281
+
282
+ /**
283
+ * @return int
284
+ */
285
+ public function getPeriodLengthTrail()
286
+ {
287
+ return $this->period_length_trail;
288
+ }
289
+
290
+ /**
291
+ * @param string $period_unit_recurring
292
+ */
293
+ public function setPeriodUnitRecurring($period_unit_recurring)
294
+ {
295
+ $this->period_unit_recurring = $period_unit_recurring;
296
+ }
297
+
298
+ /**
299
+ * @return string
300
+ */
301
+ public function getPeriodUnitRecurring()
302
+ {
303
+ return $this->period_unit_recurring;
304
+ }
305
+
306
+ /**
307
+ * @param string $period_unit_trail
308
+ */
309
+ public function setPeriodUnitTrail($period_unit_trail)
310
+ {
311
+ $this->period_unit_trail = $period_unit_trail;
312
+ }
313
+
314
+ /**
315
+ * @return string
316
+ */
317
+ public function getPeriodUnitTrail()
318
+ {
319
+ return $this->period_unit_trail;
320
+ }
321
+
322
+ /**
323
+ * @param int $productid
324
+ */
325
+ public function setProductid($productid)
326
+ {
327
+ $this->productid = $productid;
328
+ }
329
+
330
+ /**
331
+ * @return int
332
+ */
333
+ public function getProductid()
334
+ {
335
+ return $this->productid;
336
+ }
337
+
338
+ /**
339
+ * @param string $currency
340
+ */
341
+ public function setCurrency($currency)
342
+ {
343
+ $this->currency = $currency;
344
+ }
345
+
346
+ /**
347
+ * @return string
348
+ */
349
+ public function getCurrency()
350
+ {
351
+ return $this->currency;
352
+ }
353
+ }
lib/Payone/Api/Request/Vauthorization.php CHANGED
@@ -1,330 +1,330 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Request
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Request
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Request_Vauthorization extends Payone_Api_Request_Abstract
34
- {
35
- protected $request = Payone_Api_Enum_RequestType::VAUTHORIZATION;
36
-
37
- /**
38
- * Sub account ID
39
- *
40
- * @var int
41
- */
42
- protected $aid = NULL;
43
- /**
44
- * @var string
45
- */
46
- protected $clearingtype = NULL;
47
- /**
48
- * Merchant reference number for the payment process. (Permitted symbols: 0-9, a-z, A-Z, .,-,_,/)
49
- *
50
- * @var string
51
- */
52
- protected $vreference = NULL;
53
- /**
54
- * @var string
55
- */
56
- protected $vaccountname = NULL;
57
- /**
58
- * Total amount (in smallest currency unit! e.g. cent)
59
- *
60
- * @var int
61
- */
62
- protected $amount = NULL;
63
- /**
64
- * Currency (ISO-4217)
65
- *
66
- * @var string
67
- */
68
- protected $currency = NULL;
69
- /**
70
- * @var int
71
- */
72
- protected $settle_period_length = NULL;
73
- /**
74
- * @var string
75
- */
76
- protected $settle_period_unit = NULL;
77
- /**
78
- * @var int
79
- */
80
- protected $settletime = NULL;
81
- /**
82
- * @var string
83
- */
84
- protected $payout_open_balance = NULL;
85
- /**
86
- * Individual parameter
87
- *
88
- * @var string
89
- */
90
- protected $param = NULL;
91
-
92
- /**
93
- * @var Payone_Api_Request_Parameter_Vauthorization_Invoicing_Transaction
94
- */
95
- protected $invoicing = null;
96
- /**
97
- * @var Payone_Api_Request_Parameter_Vauthorization_PersonalData
98
- */
99
- protected $personalData = null;
100
- /**
101
- * @var Payone_Api_Request_Parameter_Vauthorization_PaymentMethod_Abstract
102
- */
103
- protected $payment = null;
104
-
105
- /**
106
- * @param int $aid
107
- */
108
- public function setAid($aid)
109
- {
110
- $this->aid = $aid;
111
- }
112
-
113
- /**
114
- * @return int
115
- */
116
- public function getAid()
117
- {
118
- return $this->aid;
119
- }
120
-
121
- /**
122
- * @param int $amount
123
- */
124
- public function setAmount($amount)
125
- {
126
- $this->amount = $amount;
127
- }
128
-
129
- /**
130
- * @return int
131
- */
132
- public function getAmount()
133
- {
134
- return $this->amount;
135
- }
136
-
137
- /**
138
- * @param string $clearingtype
139
- */
140
- public function setClearingtype($clearingtype)
141
- {
142
- $this->clearingtype = $clearingtype;
143
- }
144
-
145
- /**
146
- * @return string
147
- */
148
- public function getClearingtype()
149
- {
150
- return $this->clearingtype;
151
- }
152
-
153
- /**
154
- * @param string $currency
155
- */
156
- public function setCurrency($currency)
157
- {
158
- $this->currency = $currency;
159
- }
160
-
161
- /**
162
- * @return string
163
- */
164
- public function getCurrency()
165
- {
166
- return $this->currency;
167
- }
168
-
169
- /**
170
- * @param \Payone_Api_Request_Parameter_Vauthorization_Invoicing_Transaction $invoicing
171
- */
172
- public function setInvoicing($invoicing)
173
- {
174
- $this->invoicing = $invoicing;
175
- }
176
-
177
- /**
178
- * @return \Payone_Api_Request_Parameter_Vauthorization_Invoicing_Transaction
179
- */
180
- public function getInvoicing()
181
- {
182
- return $this->invoicing;
183
- }
184
-
185
- /**
186
- * @param string $param
187
- */
188
- public function setParam($param)
189
- {
190
- $this->param = $param;
191
- }
192
-
193
- /**
194
- * @return string
195
- */
196
- public function getParam()
197
- {
198
- return $this->param;
199
- }
200
-
201
- /**
202
- * @param \Payone_Api_Request_Parameter_Vauthorization_PaymentMethod_Abstract $payment
203
- */
204
- public function setPayment($payment)
205
- {
206
- $this->payment = $payment;
207
- }
208
-
209
- /**
210
- * @return \Payone_Api_Request_Parameter_Vauthorization_PaymentMethod_Abstract
211
- */
212
- public function getPayment()
213
- {
214
- return $this->payment;
215
- }
216
-
217
- /**
218
- * @param string $payout_open_balance
219
- */
220
- public function setPayoutOpenBalance($payout_open_balance)
221
- {
222
- $this->payout_open_balance = $payout_open_balance;
223
- }
224
-
225
- /**
226
- * @return string
227
- */
228
- public function getPayoutOpenBalance()
229
- {
230
- return $this->payout_open_balance;
231
- }
232
-
233
- /**
234
- * @param \Payone_Api_Request_Parameter_Vauthorization_PersonalData $personalData
235
- */
236
- public function setPersonalData($personalData)
237
- {
238
- $this->personalData = $personalData;
239
- }
240
-
241
- /**
242
- * @return \Payone_Api_Request_Parameter_Vauthorization_PersonalData
243
- */
244
- public function getPersonalData()
245
- {
246
- return $this->personalData;
247
- }
248
-
249
- /**
250
- * @param int $settle_period_length
251
- */
252
- public function setSettlePeriodLength($settle_period_length)
253
- {
254
- $this->settle_period_length = $settle_period_length;
255
- }
256
-
257
- /**
258
- * @return int
259
- */
260
- public function getSettlePeriodLength()
261
- {
262
- return $this->settle_period_length;
263
- }
264
-
265
- /**
266
- * @param string $settle_period_unit
267
- */
268
- public function setSettlePeriodUnit($settle_period_unit)
269
- {
270
- $this->settle_period_unit = $settle_period_unit;
271
- }
272
-
273
- /**
274
- * @return string
275
- */
276
- public function getSettlePeriodUnit()
277
- {
278
- return $this->settle_period_unit;
279
- }
280
-
281
- /**
282
- * @param int $settletime
283
- */
284
- public function setSettletime($settletime)
285
- {
286
- $this->settletime = $settletime;
287
- }
288
-
289
- /**
290
- * @return int
291
- */
292
- public function getSettletime()
293
- {
294
- return $this->settletime;
295
- }
296
-
297
- /**
298
- * @param string $vaccountname
299
- */
300
- public function setVaccountname($vaccountname)
301
- {
302
- $this->vaccountname = $vaccountname;
303
- }
304
-
305
- /**
306
- * @return string
307
- */
308
- public function getVaccountname()
309
- {
310
- return $this->vaccountname;
311
- }
312
-
313
- /**
314
- * @param string $vreference
315
- */
316
- public function setVreference($vreference)
317
- {
318
- $this->vreference = $vreference;
319
- }
320
-
321
- /**
322
- * @return string
323
- */
324
- public function getVreference()
325
- {
326
- return $this->vreference;
327
- }
328
-
329
-
330
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Request
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Request
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Request_Vauthorization extends Payone_Api_Request_Abstract
34
+ {
35
+ protected $request = Payone_Api_Enum_RequestType::VAUTHORIZATION;
36
+
37
+ /**
38
+ * Sub account ID
39
+ *
40
+ * @var int
41
+ */
42
+ protected $aid = NULL;
43
+ /**
44
+ * @var string
45
+ */
46
+ protected $clearingtype = NULL;
47
+ /**
48
+ * Merchant reference number for the payment process. (Permitted symbols: 0-9, a-z, A-Z, .,-,_,/)
49
+ *
50
+ * @var string
51
+ */
52
+ protected $vreference = NULL;
53
+ /**
54
+ * @var string
55
+ */
56
+ protected $vaccountname = NULL;
57
+ /**
58
+ * Total amount (in smallest currency unit! e.g. cent)
59
+ *
60
+ * @var int
61
+ */
62
+ protected $amount = NULL;
63
+ /**
64
+ * Currency (ISO-4217)
65
+ *
66
+ * @var string
67
+ */
68
+ protected $currency = NULL;
69
+ /**
70
+ * @var int
71
+ */
72
+ protected $settle_period_length = NULL;
73
+ /**
74
+ * @var string
75
+ */
76
+ protected $settle_period_unit = NULL;
77
+ /**
78
+ * @var int
79
+ */
80
+ protected $settletime = NULL;
81
+ /**
82
+ * @var string
83
+ */
84
+ protected $payout_open_balance = NULL;
85
+ /**
86
+ * Individual parameter
87
+ *
88
+ * @var string
89
+ */
90
+ protected $param = NULL;
91
+
92
+ /**
93
+ * @var Payone_Api_Request_Parameter_Vauthorization_Invoicing_Transaction
94
+ */
95
+ protected $invoicing = null;
96
+ /**
97
+ * @var Payone_Api_Request_Parameter_Vauthorization_PersonalData
98
+ */
99
+ protected $personalData = null;
100
+ /**
101
+ * @var Payone_Api_Request_Parameter_Vauthorization_PaymentMethod_Abstract
102
+ */
103
+ protected $payment = null;
104
+
105
+ /**
106
+ * @param int $aid
107
+ */
108
+ public function setAid($aid)
109
+ {
110
+ $this->aid = $aid;
111
+ }
112
+
113
+ /**
114
+ * @return int
115
+ */
116
+ public function getAid()
117
+ {
118
+ return $this->aid;
119
+ }
120
+
121
+ /**
122
+ * @param int $amount
123
+ */
124
+ public function setAmount($amount)
125
+ {
126
+ $this->amount = $amount;
127
+ }
128
+
129
+ /**
130
+ * @return int
131
+ */
132
+ public function getAmount()
133
+ {
134
+ return $this->amount;
135
+ }
136
+
137
+ /**
138
+ * @param string $clearingtype
139
+ */
140
+ public function setClearingtype($clearingtype)
141
+ {
142
+ $this->clearingtype = $clearingtype;
143
+ }
144
+
145
+ /**
146
+ * @return string
147
+ */
148
+ public function getClearingtype()
149
+ {
150
+ return $this->clearingtype;
151
+ }
152
+
153
+ /**
154
+ * @param string $currency
155
+ */
156
+ public function setCurrency($currency)
157
+ {
158
+ $this->currency = $currency;
159
+ }
160
+
161
+ /**
162
+ * @return string
163
+ */
164
+ public function getCurrency()
165
+ {
166
+ return $this->currency;
167
+ }
168
+
169
+ /**
170
+ * @param \Payone_Api_Request_Parameter_Vauthorization_Invoicing_Transaction $invoicing
171
+ */
172
+ public function setInvoicing($invoicing)
173
+ {
174
+ $this->invoicing = $invoicing;
175
+ }
176
+
177
+ /**
178
+ * @return \Payone_Api_Request_Parameter_Vauthorization_Invoicing_Transaction
179
+ */
180
+ public function getInvoicing()
181
+ {
182
+ return $this->invoicing;
183
+ }
184
+
185
+ /**
186
+ * @param string $param
187
+ */
188
+ public function setParam($param)
189
+ {
190
+ $this->param = $param;
191
+ }
192
+
193
+ /**
194
+ * @return string
195
+ */
196
+ public function getParam()
197
+ {
198
+ return $this->param;
199
+ }
200
+
201
+ /**
202
+ * @param \Payone_Api_Request_Parameter_Vauthorization_PaymentMethod_Abstract $payment
203
+ */
204
+ public function setPayment($payment)
205
+ {
206
+ $this->payment = $payment;
207
+ }
208
+
209
+ /**
210
+ * @return \Payone_Api_Request_Parameter_Vauthorization_PaymentMethod_Abstract
211
+ */
212
+ public function getPayment()
213
+ {
214
+ return $this->payment;
215
+ }
216
+
217
+ /**
218
+ * @param string $payout_open_balance
219
+ */
220
+ public function setPayoutOpenBalance($payout_open_balance)
221
+ {
222
+ $this->payout_open_balance = $payout_open_balance;
223
+ }
224
+
225
+ /**
226
+ * @return string
227
+ */
228
+ public function getPayoutOpenBalance()
229
+ {
230
+ return $this->payout_open_balance;
231
+ }
232
+
233
+ /**
234
+ * @param \Payone_Api_Request_Parameter_Vauthorization_PersonalData $personalData
235
+ */
236
+ public function setPersonalData($personalData)
237
+ {
238
+ $this->personalData = $personalData;
239
+ }
240
+
241
+ /**
242
+ * @return \Payone_Api_Request_Parameter_Vauthorization_PersonalData
243
+ */
244
+ public function getPersonalData()
245
+ {
246
+ return $this->personalData;
247
+ }
248
+
249
+ /**
250
+ * @param int $settle_period_length
251
+ */
252
+ public function setSettlePeriodLength($settle_period_length)
253
+ {
254
+ $this->settle_period_length = $settle_period_length;
255
+ }
256
+
257
+ /**
258
+ * @return int
259
+ */
260
+ public function getSettlePeriodLength()
261
+ {
262
+ return $this->settle_period_length;
263
+ }
264
+
265
+ /**
266
+ * @param string $settle_period_unit
267
+ */
268
+ public function setSettlePeriodUnit($settle_period_unit)
269
+ {
270
+ $this->settle_period_unit = $settle_period_unit;
271
+ }
272
+
273
+ /**
274
+ * @return string
275
+ */
276
+ public function getSettlePeriodUnit()
277
+ {
278
+ return $this->settle_period_unit;
279
+ }
280
+
281
+ /**
282
+ * @param int $settletime
283
+ */
284
+ public function setSettletime($settletime)
285
+ {
286
+ $this->settletime = $settletime;
287
+ }
288
+
289
+ /**
290
+ * @return int
291
+ */
292
+ public function getSettletime()
293
+ {
294
+ return $this->settletime;
295
+ }
296
+
297
+ /**
298
+ * @param string $vaccountname
299
+ */
300
+ public function setVaccountname($vaccountname)
301
+ {
302
+ $this->vaccountname = $vaccountname;
303
+ }
304
+
305
+ /**
306
+ * @return string
307
+ */
308
+ public function getVaccountname()
309
+ {
310
+ return $this->vaccountname;
311
+ }
312
+
313
+ /**
314
+ * @param string $vreference
315
+ */
316
+ public function setVreference($vreference)
317
+ {
318
+ $this->vreference = $vreference;
319
+ }
320
+
321
+ /**
322
+ * @return string
323
+ */
324
+ public function getVreference()
325
+ {
326
+ return $this->vreference;
327
+ }
328
+
329
+
330
+ }
lib/Payone/Api/Response/3dsCheck/Enrolled.php CHANGED
@@ -1,175 +1,175 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Response
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Response
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Response_3dsCheck_Enrolled extends Payone_Api_Response_Abstract
34
- {
35
- /**
36
- * @var string
37
- */
38
- protected $acsurl = NULL;
39
- /**
40
- * @var string
41
- */
42
- protected $termurl = NULL;
43
- /**
44
- * @var string
45
- */
46
- protected $pareq = NULL;
47
- /**
48
- * @var string
49
- */
50
- protected $xid = NULL;
51
- /**
52
- * @var string
53
- */
54
- protected $md = NULL;
55
- /**
56
- * @var string
57
- */
58
- protected $pseudocardpan = NULL;
59
- /**
60
- * @var string
61
- */
62
- protected $truncatedcardpan = NULL;
63
-
64
- /**
65
- * @param string $acsurl
66
- */
67
- public function setAcsurl($acsurl)
68
- {
69
- $this->acsurl = $acsurl;
70
- }
71
-
72
- /**
73
- * @return string
74
- */
75
- public function getAcsurl()
76
- {
77
- return $this->acsurl;
78
- }
79
-
80
- /**
81
- * @param string $md
82
- */
83
- public function setMd($md)
84
- {
85
- $this->md = $md;
86
- }
87
-
88
- /**
89
- * @return string
90
- */
91
- public function getMd()
92
- {
93
- return $this->md;
94
- }
95
-
96
- /**
97
- * @param string $pareq
98
- */
99
- public function setPareq($pareq)
100
- {
101
- $this->pareq = $pareq;
102
- }
103
-
104
- /**
105
- * @return string
106
- */
107
- public function getPareq()
108
- {
109
- return $this->pareq;
110
- }
111
-
112
- /**
113
- * @param string $pseudocardpan
114
- */
115
- public function setPseudocardpan($pseudocardpan)
116
- {
117
- $this->pseudocardpan = $pseudocardpan;
118
- }
119
-
120
- /**
121
- * @return string
122
- */
123
- public function getPseudocardpan()
124
- {
125
- return $this->pseudocardpan;
126
- }
127
-
128
- /**
129
- * @param string $termurl
130
- */
131
- public function setTermurl($termurl)
132
- {
133
- $this->termurl = $termurl;
134
- }
135
-
136
- /**
137
- * @return string
138
- */
139
- public function getTermurl()
140
- {
141
- return $this->termurl;
142
- }
143
-
144
- /**
145
- * @param string $truncatedcardpan
146
- */
147
- public function setTruncatedcardpan($truncatedcardpan)
148
- {
149
- $this->truncatedcardpan = $truncatedcardpan;
150
- }
151
-
152
- /**
153
- * @return string
154
- */
155
- public function getTruncatedcardpan()
156
- {
157
- return $this->truncatedcardpan;
158
- }
159
-
160
- /**
161
- * @param string $xid
162
- */
163
- public function setXid($xid)
164
- {
165
- $this->xid = $xid;
166
- }
167
-
168
- /**
169
- * @return string
170
- */
171
- public function getXid()
172
- {
173
- return $this->xid;
174
- }
175
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Response_3dsCheck_Enrolled extends Payone_Api_Response_Abstract
34
+ {
35
+ /**
36
+ * @var string
37
+ */
38
+ protected $acsurl = NULL;
39
+ /**
40
+ * @var string
41
+ */
42
+ protected $termurl = NULL;
43
+ /**
44
+ * @var string
45
+ */
46
+ protected $pareq = NULL;
47
+ /**
48
+ * @var string
49
+ */
50
+ protected $xid = NULL;
51
+ /**
52
+ * @var string
53
+ */
54
+ protected $md = NULL;
55
+ /**
56
+ * @var string
57
+ */
58
+ protected $pseudocardpan = NULL;
59
+ /**
60
+ * @var string
61
+ */
62
+ protected $truncatedcardpan = NULL;
63
+
64
+ /**
65
+ * @param string $acsurl
66
+ */
67
+ public function setAcsurl($acsurl)
68
+ {
69
+ $this->acsurl = $acsurl;
70
+ }
71
+
72
+ /**
73
+ * @return string
74
+ */
75
+ public function getAcsurl()
76
+ {
77
+ return $this->acsurl;
78
+ }
79
+
80
+ /**
81
+ * @param string $md
82
+ */
83
+ public function setMd($md)
84
+ {
85
+ $this->md = $md;
86
+ }
87
+
88
+ /**
89
+ * @return string
90
+ */
91
+ public function getMd()
92
+ {
93
+ return $this->md;
94
+ }
95
+
96
+ /**
97
+ * @param string $pareq
98
+ */
99
+ public function setPareq($pareq)
100
+ {
101
+ $this->pareq = $pareq;
102
+ }
103
+
104
+ /**
105
+ * @return string
106
+ */
107
+ public function getPareq()
108
+ {
109
+ return $this->pareq;
110
+ }
111
+
112
+ /**
113
+ * @param string $pseudocardpan
114
+ */
115
+ public function setPseudocardpan($pseudocardpan)
116
+ {
117
+ $this->pseudocardpan = $pseudocardpan;
118
+ }
119
+
120
+ /**
121
+ * @return string
122
+ */
123
+ public function getPseudocardpan()
124
+ {
125
+ return $this->pseudocardpan;
126
+ }
127
+
128
+ /**
129
+ * @param string $termurl
130
+ */
131
+ public function setTermurl($termurl)
132
+ {
133
+ $this->termurl = $termurl;
134
+ }
135
+
136
+ /**
137
+ * @return string
138
+ */
139
+ public function getTermurl()
140
+ {
141
+ return $this->termurl;
142
+ }
143
+
144
+ /**
145
+ * @param string $truncatedcardpan
146
+ */
147
+ public function setTruncatedcardpan($truncatedcardpan)
148
+ {
149
+ $this->truncatedcardpan = $truncatedcardpan;
150
+ }
151
+
152
+ /**
153
+ * @return string
154
+ */
155
+ public function getTruncatedcardpan()
156
+ {
157
+ return $this->truncatedcardpan;
158
+ }
159
+
160
+ /**
161
+ * @param string $xid
162
+ */
163
+ public function setXid($xid)
164
+ {
165
+ $this->xid = $xid;
166
+ }
167
+
168
+ /**
169
+ * @return string
170
+ */
171
+ public function getXid()
172
+ {
173
+ return $this->xid;
174
+ }
175
+ }
lib/Payone/Api/Response/3dsCheck/Invalid.php CHANGED
@@ -1,37 +1,37 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Response
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Response
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Response_3dsCheck_Invalid
34
- extends Payone_Api_Response_Invalid
35
- {
36
-
37
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Response_3dsCheck_Invalid
34
+ extends Payone_Api_Response_Invalid
35
+ {
36
+
37
+ }
lib/Payone/Api/Response/3dsCheck/Valid.php CHANGED
@@ -1,95 +1,95 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Response
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Response
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Response_3dsCheck_Valid extends Payone_Api_Response_Abstract
34
- {
35
- /**
36
- * @var string
37
- */
38
- protected $xid = NULL;
39
- /**
40
- * @var string
41
- */
42
- protected $pseudocardpan = NULL;
43
- /**
44
- * @var string
45
- */
46
- protected $truncatedcardpan = NULL;
47
-
48
- /**
49
- * @param string $pseudocardpan
50
- */
51
- public function setPseudocardpan($pseudocardpan)
52
- {
53
- $this->pseudocardpan = $pseudocardpan;
54
- }
55
-
56
- /**
57
- * @return string
58
- */
59
- public function getPseudocardpan()
60
- {
61
- return $this->pseudocardpan;
62
- }
63
-
64
- /**
65
- * @param string $truncatedcardpan
66
- */
67
- public function setTruncatedcardpan($truncatedcardpan)
68
- {
69
- $this->truncatedcardpan = $truncatedcardpan;
70
- }
71
-
72
- /**
73
- * @return string
74
- */
75
- public function getTruncatedcardpan()
76
- {
77
- return $this->truncatedcardpan;
78
- }
79
-
80
- /**
81
- * @param string $xid
82
- */
83
- public function setXid($xid)
84
- {
85
- $this->xid = $xid;
86
- }
87
-
88
- /**
89
- * @return string
90
- */
91
- public function getXid()
92
- {
93
- return $this->xid;
94
- }
95
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Response_3dsCheck_Valid extends Payone_Api_Response_Abstract
34
+ {
35
+ /**
36
+ * @var string
37
+ */
38
+ protected $xid = NULL;
39
+ /**
40
+ * @var string
41
+ */
42
+ protected $pseudocardpan = NULL;
43
+ /**
44
+ * @var string
45
+ */
46
+ protected $truncatedcardpan = NULL;
47
+
48
+ /**
49
+ * @param string $pseudocardpan
50
+ */
51
+ public function setPseudocardpan($pseudocardpan)
52
+ {
53
+ $this->pseudocardpan = $pseudocardpan;
54
+ }
55
+
56
+ /**
57
+ * @return string
58
+ */
59
+ public function getPseudocardpan()
60
+ {
61
+ return $this->pseudocardpan;
62
+ }
63
+
64
+ /**
65
+ * @param string $truncatedcardpan
66
+ */
67
+ public function setTruncatedcardpan($truncatedcardpan)
68
+ {
69
+ $this->truncatedcardpan = $truncatedcardpan;
70
+ }
71
+
72
+ /**
73
+ * @return string
74
+ */
75
+ public function getTruncatedcardpan()
76
+ {
77
+ return $this->truncatedcardpan;
78
+ }
79
+
80
+ /**
81
+ * @param string $xid
82
+ */
83
+ public function setXid($xid)
84
+ {
85
+ $this->xid = $xid;
86
+ }
87
+
88
+ /**
89
+ * @return string
90
+ */
91
+ public function getXid()
92
+ {
93
+ return $this->xid;
94
+ }
95
+ }
lib/Payone/Api/Response/AddressCheck/Invalid.php CHANGED
@@ -1,55 +1,55 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Response
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Response
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Response_AddressCheck_Invalid extends Payone_Api_Response_Invalid
34
- {
35
- /**
36
- * @var int
37
- */
38
- protected $secstatus = NULL;
39
-
40
- /**
41
- * @param int $secstatus
42
- */
43
- public function setSecstatus($secstatus)
44
- {
45
- $this->secstatus = $secstatus;
46
- }
47
-
48
- /**
49
- * @return int
50
- */
51
- public function getSecstatus()
52
- {
53
- return $this->secstatus;
54
- }
55
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Response_AddressCheck_Invalid extends Payone_Api_Response_Invalid
34
+ {
35
+ /**
36
+ * @var int
37
+ */
38
+ protected $secstatus = NULL;
39
+
40
+ /**
41
+ * @param int $secstatus
42
+ */
43
+ public function setSecstatus($secstatus)
44
+ {
45
+ $this->secstatus = $secstatus;
46
+ }
47
+
48
+ /**
49
+ * @return int
50
+ */
51
+ public function getSecstatus()
52
+ {
53
+ return $this->secstatus;
54
+ }
55
+ }
lib/Payone/Api/Response/AddressCheck/Valid.php CHANGED
@@ -1,215 +1,215 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Response
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Response
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Response_AddressCheck_Valid
34
- extends Payone_Api_Response_Abstract
35
- {
36
- /**
37
- * @var int
38
- */
39
- protected $secstatus = NULL;
40
- /**
41
- * @var string
42
- */
43
- protected $personstatus = NULL;
44
- /**
45
- * @var string
46
- */
47
- protected $street = NULL;
48
- /**
49
- * @var string
50
- */
51
- protected $streetname = NULL;
52
- /**
53
- * @var string
54
- */
55
- protected $streetnumber = NULL;
56
- /**
57
- * @var string
58
- */
59
- protected $zip = NULL;
60
- /**
61
- * @var string
62
- */
63
- protected $city = NULL;
64
-
65
- /**
66
- * @return bool
67
- */
68
- public function isCorrect()
69
- {
70
- if ($this->secstatus == Payone_Api_Enum_AddressCheckSecstatus::ADDRESS_CORRECT) {
71
- return TRUE;
72
- }
73
- else {
74
- return FALSE;
75
- }
76
- }
77
-
78
- /**
79
- * @return bool
80
- */
81
- public function isCorrectable()
82
- {
83
- if ($this->secstatus == Payone_Api_Enum_AddressCheckSecstatus::ADDRESS_CORRECTABLE) {
84
- return TRUE;
85
- }
86
- else {
87
- return FALSE;
88
- }
89
- }
90
-
91
- /**
92
- * @return bool
93
- */
94
- public function isNotCorrectable()
95
- {
96
- if ($this->secstatus == Payone_Api_Enum_AddressCheckSecstatus::ADDRESS_NONE_CORRECTABLE) {
97
- return TRUE;
98
- }
99
- else {
100
- return FALSE;
101
- }
102
- }
103
-
104
- /**
105
- * @param string $city
106
- */
107
- public function setCity($city)
108
- {
109
- $this->city = $city;
110
- }
111
-
112
- /**
113
- * @return string
114
- */
115
- public function getCity()
116
- {
117
- return $this->city;
118
- }
119
-
120
- /**
121
- * @param string $personstatus
122
- */
123
- public function setPersonstatus($personstatus)
124
- {
125
- $this->personstatus = $personstatus;
126
- }
127
-
128
- /**
129
- * @return string
130
- */
131
- public function getPersonstatus()
132
- {
133
- return $this->personstatus;
134
- }
135
-
136
- /**
137
- * @param int $secstatus
138
- */
139
- public function setSecstatus($secstatus)
140
- {
141
- $this->secstatus = $secstatus;
142
- }
143
-
144
- /**
145
- * @return int
146
- */
147
- public function getSecstatus()
148
- {
149
- return $this->secstatus;
150
- }
151
-
152
- /**
153
- * @param string $street
154
- */
155
- public function setStreet($street)
156
- {
157
- $this->street = $street;
158
- }
159
-
160
- /**
161
- * @return string
162
- */
163
- public function getStreet()
164
- {
165
- return $this->street;
166
- }
167
-
168
- /**
169
- * @param string $streetname
170
- */
171
- public function setStreetname($streetname)
172
- {
173
- $this->streetname = $streetname;
174
- }
175
-
176
- /**
177
- * @return string
178
- */
179
- public function getStreetname()
180
- {
181
- return $this->streetname;
182
- }
183
-
184
- /**
185
- * @param string $streetnumber
186
- */
187
- public function setStreetnumber($streetnumber)
188
- {
189
- $this->streetnumber = $streetnumber;
190
- }
191
-
192
- /**
193
- * @return string
194
- */
195
- public function getStreetnumber()
196
- {
197
- return $this->streetnumber;
198
- }
199
-
200
- /**
201
- * @param string $zip
202
- */
203
- public function setZip($zip)
204
- {
205
- $this->zip = $zip;
206
- }
207
-
208
- /**
209
- * @return string
210
- */
211
- public function getZip()
212
- {
213
- return $this->zip;
214
- }
215
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Response_AddressCheck_Valid
34
+ extends Payone_Api_Response_Abstract
35
+ {
36
+ /**
37
+ * @var int
38
+ */
39
+ protected $secstatus = NULL;
40
+ /**
41
+ * @var string
42
+ */
43
+ protected $personstatus = NULL;
44
+ /**
45
+ * @var string
46
+ */
47
+ protected $street = NULL;
48
+ /**
49
+ * @var string
50
+ */
51
+ protected $streetname = NULL;
52
+ /**
53
+ * @var string
54
+ */
55
+ protected $streetnumber = NULL;
56
+ /**
57
+ * @var string
58
+ */
59
+ protected $zip = NULL;
60
+ /**
61
+ * @var string
62
+ */
63
+ protected $city = NULL;
64
+
65
+ /**
66
+ * @return bool
67
+ */
68
+ public function isCorrect()
69
+ {
70
+ if ($this->secstatus == Payone_Api_Enum_AddressCheckSecstatus::ADDRESS_CORRECT) {
71
+ return TRUE;
72
+ }
73
+ else {
74
+ return FALSE;
75
+ }
76
+ }
77
+
78
+ /**
79
+ * @return bool
80
+ */
81
+ public function isCorrectable()
82
+ {
83
+ if ($this->secstatus == Payone_Api_Enum_AddressCheckSecstatus::ADDRESS_CORRECTABLE) {
84
+ return TRUE;
85
+ }
86
+ else {
87
+ return FALSE;
88
+ }
89
+ }
90
+
91
+ /**
92
+ * @return bool
93
+ */
94
+ public function isNotCorrectable()
95
+ {
96
+ if ($this->secstatus == Payone_Api_Enum_AddressCheckSecstatus::ADDRESS_NONE_CORRECTABLE) {
97
+ return TRUE;
98
+ }
99
+ else {
100
+ return FALSE;
101
+ }
102
+ }
103
+
104
+ /**
105
+ * @param string $city
106
+ */
107
+ public function setCity($city)
108
+ {
109
+ $this->city = $city;
110
+ }
111
+
112
+ /**
113
+ * @return string
114
+ */
115
+ public function getCity()
116
+ {
117
+ return $this->city;
118
+ }
119
+
120
+ /**
121
+ * @param string $personstatus
122
+ */
123
+ public function setPersonstatus($personstatus)
124
+ {
125
+ $this->personstatus = $personstatus;
126
+ }
127
+
128
+ /**
129
+ * @return string
130
+ */
131
+ public function getPersonstatus()
132
+ {
133
+ return $this->personstatus;
134
+ }
135
+
136
+ /**
137
+ * @param int $secstatus
138
+ */
139
+ public function setSecstatus($secstatus)
140
+ {
141
+ $this->secstatus = $secstatus;
142
+ }
143
+
144
+ /**
145
+ * @return int
146
+ */
147
+ public function getSecstatus()
148
+ {
149
+ return $this->secstatus;
150
+ }
151
+
152
+ /**
153
+ * @param string $street
154
+ */
155
+ public function setStreet($street)
156
+ {
157
+ $this->street = $street;
158
+ }
159
+
160
+ /**
161
+ * @return string
162
+ */
163
+ public function getStreet()
164
+ {
165
+ return $this->street;
166
+ }
167
+
168
+ /**
169
+ * @param string $streetname
170
+ */
171
+ public function setStreetname($streetname)
172
+ {
173
+ $this->streetname = $streetname;
174
+ }
175
+
176
+ /**
177
+ * @return string
178
+ */
179
+ public function getStreetname()
180
+ {
181
+ return $this->streetname;
182
+ }
183
+
184
+ /**
185
+ * @param string $streetnumber
186
+ */
187
+ public function setStreetnumber($streetnumber)
188
+ {
189
+ $this->streetnumber = $streetnumber;
190
+ }
191
+
192
+ /**
193
+ * @return string
194
+ */
195
+ public function getStreetnumber()
196
+ {
197
+ return $this->streetnumber;
198
+ }
199
+
200
+ /**
201
+ * @param string $zip
202
+ */
203
+ public function setZip($zip)
204
+ {
205
+ $this->zip = $zip;
206
+ }
207
+
208
+ /**
209
+ * @return string
210
+ */
211
+ public function getZip()
212
+ {
213
+ return $this->zip;
214
+ }
215
+ }
lib/Payone/Api/Response/Authorization/Abstract.php CHANGED
@@ -1,278 +1,278 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Response
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Response
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- abstract class Payone_Api_Response_Authorization_Abstract
34
- extends Payone_Api_Response_Abstract
35
- {
36
- /**
37
- * @var int
38
- */
39
- protected $txid = NULL;
40
- /**
41
- * @var int
42
- */
43
- protected $userid = NULL;
44
- /**
45
- * @var string
46
- */
47
- protected $protect_result_avs = NULL;
48
- /**
49
- * @var string
50
- */
51
- protected $clearing_bankaccountholder = NULL;
52
- /**
53
- * @var string
54
- */
55
- protected $clearing_bankcountry = NULL;
56
- /**
57
- * @var string
58
- */
59
- protected $clearing_bankaccount = NULL;
60
- /**
61
- * @var string
62
- */
63
- protected $clearing_bankcode = NULL;
64
- /**
65
- * @var string
66
- */
67
- protected $clearing_bankiban = NULL;
68
- /**
69
- * @var string
70
- */
71
- protected $clearing_bankbic = NULL;
72
- /**
73
- * @var string
74
- */
75
- protected $clearing_bankcity = NULL;
76
- /**
77
- * @var string
78
- */
79
- protected $clearing_bankname = NULL;
80
-
81
- /**
82
- * @var string
83
- */
84
- protected $mandate_identification = NULL;
85
-
86
-
87
- /**
88
- * @param string $clearing_bankaccount
89
- */
90
- public function setClearingBankaccount($clearing_bankaccount)
91
- {
92
- $this->clearing_bankaccount = $clearing_bankaccount;
93
- }
94
-
95
- /**
96
- * @return string
97
- */
98
- public function getClearingBankaccount()
99
- {
100
- return $this->clearing_bankaccount;
101
- }
102
-
103
- /**
104
- * @param string $clearing_bankaccountholder
105
- */
106
- public function setClearingBankaccountholder($clearing_bankaccountholder)
107
- {
108
- $this->clearing_bankaccountholder = $clearing_bankaccountholder;
109
- }
110
-
111
- /**
112
- * @return string
113
- */
114
- public function getClearingBankaccountholder()
115
- {
116
- return $this->clearing_bankaccountholder;
117
- }
118
-
119
- /**
120
- * @param string $clearing_bankbic
121
- */
122
- public function setClearingBankbic($clearing_bankbic)
123
- {
124
- $this->clearing_bankbic = $clearing_bankbic;
125
- }
126
-
127
- /**
128
- * @return string
129
- */
130
- public function getClearingBankbic()
131
- {
132
- return $this->clearing_bankbic;
133
- }
134
-
135
- /**
136
- * @param string $clearing_bankcity
137
- */
138
- public function setClearingBankcity($clearing_bankcity)
139
- {
140
- $this->clearing_bankcity = $clearing_bankcity;
141
- }
142
-
143
- /**
144
- * @return string
145
- */
146
- public function getClearingBankcity()
147
- {
148
- return $this->clearing_bankcity;
149
- }
150
-
151
- /**
152
- * @param string $clearing_bankcode
153
- */
154
- public function setClearingBankcode($clearing_bankcode)
155
- {
156
- $this->clearing_bankcode = $clearing_bankcode;
157
- }
158
-
159
- /**
160
- * @return string
161
- */
162
- public function getClearingBankcode()
163
- {
164
- return $this->clearing_bankcode;
165
- }
166
-
167
- /**
168
- * @param string $clearing_bankcountry
169
- */
170
- public function setClearingBankcountry($clearing_bankcountry)
171
- {
172
- $this->clearing_bankcountry = $clearing_bankcountry;
173
- }
174
-
175
- /**
176
- * @return string
177
- */
178
- public function getClearingBankcountry()
179
- {
180
- return $this->clearing_bankcountry;
181
- }
182
-
183
- /**
184
- * @param string $clearing_bankiban
185
- */
186
- public function setClearingBankiban($clearing_bankiban)
187
- {
188
- $this->clearing_bankiban = $clearing_bankiban;
189
- }
190
-
191
- /**
192
- * @return string
193
- */
194
- public function getClearingBankiban()
195
- {
196
- return $this->clearing_bankiban;
197
- }
198
-
199
- /**
200
- * @param string $clearing_bankname
201
- */
202
- public function setClearingBankname($clearing_bankname)
203
- {
204
- $this->clearing_bankname = $clearing_bankname;
205
- }
206
-
207
- /**
208
- * @return string
209
- */
210
- public function getClearingBankname()
211
- {
212
- return $this->clearing_bankname;
213
- }
214
-
215
- /**
216
- * @param string $protect_result_avs
217
- */
218
- public function setProtectResultAvs($protect_result_avs)
219
- {
220
- $this->protect_result_avs = $protect_result_avs;
221
- }
222
-
223
- /**
224
- * @return string
225
- */
226
- public function getProtectResultAvs()
227
- {
228
- return $this->protect_result_avs;
229
- }
230
-
231
- /**
232
- * @param int $txid
233
- */
234
- public function setTxid($txid)
235
- {
236
- $this->txid = $txid;
237
- }
238
-
239
- /**
240
- * @return int
241
- */
242
- public function getTxid()
243
- {
244
- return $this->txid;
245
- }
246
-
247
- /**
248
- * @param int $userid
249
- */
250
- public function setUserid($userid)
251
- {
252
- $this->userid = $userid;
253
- }
254
-
255
- /**
256
- * @return int
257
- */
258
- public function getUserid()
259
- {
260
- return $this->userid;
261
- }
262
-
263
- /**
264
- * @param string $mandateIdentification
265
- */
266
- public function setMandateIdentification($mandateIdentification)
267
- {
268
- $this->mandate_identification = $mandateIdentification;
269
- }
270
-
271
- /**
272
- * @return string
273
- */
274
- public function getMandateIdentification()
275
- {
276
- return $this->mandate_identification;
277
- }
278
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ abstract class Payone_Api_Response_Authorization_Abstract
34
+ extends Payone_Api_Response_Abstract
35
+ {
36
+ /**
37
+ * @var int
38
+ */
39
+ protected $txid = NULL;
40
+ /**
41
+ * @var int
42
+ */
43
+ protected $userid = NULL;
44
+ /**
45
+ * @var string
46
+ */
47
+ protected $protect_result_avs = NULL;
48
+ /**
49
+ * @var string
50
+ */
51
+ protected $clearing_bankaccountholder = NULL;
52
+ /**
53
+ * @var string
54
+ */
55
+ protected $clearing_bankcountry = NULL;
56
+ /**
57
+ * @var string
58
+ */
59
+ protected $clearing_bankaccount = NULL;
60
+ /**
61
+ * @var string
62
+ */
63
+ protected $clearing_bankcode = NULL;
64
+ /**
65
+ * @var string
66
+ */
67
+ protected $clearing_bankiban = NULL;
68
+ /**
69
+ * @var string
70
+ */
71
+ protected $clearing_bankbic = NULL;
72
+ /**
73
+ * @var string
74
+ */
75
+ protected $clearing_bankcity = NULL;
76
+ /**
77
+ * @var string
78
+ */
79
+ protected $clearing_bankname = NULL;
80
+
81
+ /**
82
+ * @var string
83
+ */
84
+ protected $mandate_identification = NULL;
85
+
86
+
87
+ /**
88
+ * @param string $clearing_bankaccount
89
+ */
90
+ public function setClearingBankaccount($clearing_bankaccount)
91
+ {
92
+ $this->clearing_bankaccount = $clearing_bankaccount;
93
+ }
94
+
95
+ /**
96
+ * @return string
97
+ */
98
+ public function getClearingBankaccount()
99
+ {
100
+ return $this->clearing_bankaccount;
101
+ }
102
+
103
+ /**
104
+ * @param string $clearing_bankaccountholder
105
+ */
106
+ public function setClearingBankaccountholder($clearing_bankaccountholder)
107
+ {
108
+ $this->clearing_bankaccountholder = $clearing_bankaccountholder;
109
+ }
110
+
111
+ /**
112
+ * @return string
113
+ */
114
+ public function getClearingBankaccountholder()
115
+ {
116
+ return $this->clearing_bankaccountholder;
117
+ }
118
+
119
+ /**
120
+ * @param string $clearing_bankbic
121
+ */
122
+ public function setClearingBankbic($clearing_bankbic)
123
+ {
124
+ $this->clearing_bankbic = $clearing_bankbic;
125
+ }
126
+
127
+ /**
128
+ * @return string
129
+ */
130
+ public function getClearingBankbic()
131
+ {
132
+ return $this->clearing_bankbic;
133
+ }
134
+
135
+ /**
136
+ * @param string $clearing_bankcity
137
+ */
138
+ public function setClearingBankcity($clearing_bankcity)
139
+ {
140
+ $this->clearing_bankcity = $clearing_bankcity;
141
+ }
142
+
143
+ /**
144
+ * @return string
145
+ */
146
+ public function getClearingBankcity()
147
+ {
148
+ return $this->clearing_bankcity;
149
+ }
150
+
151
+ /**
152
+ * @param string $clearing_bankcode
153
+ */
154
+ public function setClearingBankcode($clearing_bankcode)
155
+ {
156
+ $this->clearing_bankcode = $clearing_bankcode;
157
+ }
158
+
159
+ /**
160
+ * @return string
161
+ */
162
+ public function getClearingBankcode()
163
+ {
164
+ return $this->clearing_bankcode;
165
+ }
166
+
167
+ /**
168
+ * @param string $clearing_bankcountry
169
+ */
170
+ public function setClearingBankcountry($clearing_bankcountry)
171
+ {
172
+ $this->clearing_bankcountry = $clearing_bankcountry;
173
+ }
174
+
175
+ /**
176
+ * @return string
177
+ */
178
+ public function getClearingBankcountry()
179
+ {
180
+ return $this->clearing_bankcountry;
181
+ }
182
+
183
+ /**
184
+ * @param string $clearing_bankiban
185
+ */
186
+ public function setClearingBankiban($clearing_bankiban)
187
+ {
188
+ $this->clearing_bankiban = $clearing_bankiban;
189
+ }
190
+
191
+ /**
192
+ * @return string
193
+ */
194
+ public function getClearingBankiban()
195
+ {
196
+ return $this->clearing_bankiban;
197
+ }
198
+
199
+ /**
200
+ * @param string $clearing_bankname
201
+ */
202
+ public function setClearingBankname($clearing_bankname)
203
+ {
204
+ $this->clearing_bankname = $clearing_bankname;
205
+ }
206
+
207
+ /**
208
+ * @return string
209
+ */
210
+ public function getClearingBankname()
211
+ {
212
+ return $this->clearing_bankname;
213
+ }
214
+
215
+ /**
216
+ * @param string $protect_result_avs
217
+ */
218
+ public function setProtectResultAvs($protect_result_avs)
219
+ {
220
+ $this->protect_result_avs = $protect_result_avs;
221
+ }
222
+
223
+ /**
224
+ * @return string
225
+ */
226
+ public function getProtectResultAvs()
227
+ {
228
+ return $this->protect_result_avs;
229
+ }
230
+
231
+ /**
232
+ * @param int $txid
233
+ */
234
+ public function setTxid($txid)
235
+ {
236
+ $this->txid = $txid;
237
+ }
238
+
239
+ /**
240
+ * @return int
241
+ */
242
+ public function getTxid()
243
+ {
244
+ return $this->txid;
245
+ }
246
+
247
+ /**
248
+ * @param int $userid
249
+ */
250
+ public function setUserid($userid)
251
+ {
252
+ $this->userid = $userid;
253
+ }
254
+
255
+ /**
256
+ * @return int
257
+ */
258
+ public function getUserid()
259
+ {
260
+ return $this->userid;
261
+ }
262
+
263
+ /**
264
+ * @param string $mandateIdentification
265
+ */
266
+ public function setMandateIdentification($mandateIdentification)
267
+ {
268
+ $this->mandate_identification = $mandateIdentification;
269
+ }
270
+
271
+ /**
272
+ * @return string
273
+ */
274
+ public function getMandateIdentification()
275
+ {
276
+ return $this->mandate_identification;
277
+ }
278
+ }
lib/Payone/Api/Response/Authorization/Approved.php CHANGED
@@ -1,96 +1,96 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Response
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Response
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Response_Authorization_Approved
34
- extends Payone_Api_Response_Authorization_Abstract
35
- {
36
- /**
37
- * @var string
38
- */
39
- protected $creditor_identifier = NULL;
40
- /**
41
- * @var int
42
- */
43
- protected $clearing_date = NULL;
44
- /**
45
- * @var int
46
- */
47
- protected $clearing_amount = NULL;
48
-
49
- /**
50
- * @param string $creditorIdentifier
51
- */
52
- public function setCreditorIdentifier($creditorIdentifier)
53
- {
54
- $this->creditor_identifier = $creditorIdentifier;
55
- }
56
-
57
- /**
58
- * @return string
59
- */
60
- public function getCreditorIdentifier()
61
- {
62
- return $this->creditor_identifier;
63
- }
64
-
65
- /**
66
- * @param int $clearingDate
67
- */
68
- public function setClearingDate($clearingDate)
69
- {
70
- $this->clearing_date = $clearingDate;
71
- }
72
-
73
- /**
74
- * @return int
75
- */
76
- public function getClearingDate()
77
- {
78
- return $this->clearing_date;
79
- }
80
-
81
- /**
82
- * @param int $clearingAmount
83
- */
84
- public function setClearingAmount($clearingAmount)
85
- {
86
- $this->clearing_amount = $clearingAmount;
87
- }
88
-
89
- /**
90
- * @return int
91
- */
92
- public function getClearingAmount()
93
- {
94
- return $this->clearing_amount;
95
- }
96
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Response_Authorization_Approved
34
+ extends Payone_Api_Response_Authorization_Abstract
35
+ {
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $creditor_identifier = NULL;
40
+ /**
41
+ * @var int
42
+ */
43
+ protected $clearing_date = NULL;
44
+ /**
45
+ * @var int
46
+ */
47
+ protected $clearing_amount = NULL;
48
+
49
+ /**
50
+ * @param string $creditorIdentifier
51
+ */
52
+ public function setCreditorIdentifier($creditorIdentifier)
53
+ {
54
+ $this->creditor_identifier = $creditorIdentifier;
55
+ }
56
+
57
+ /**
58
+ * @return string
59
+ */
60
+ public function getCreditorIdentifier()
61
+ {
62
+ return $this->creditor_identifier;
63
+ }
64
+
65
+ /**
66
+ * @param int $clearingDate
67
+ */
68
+ public function setClearingDate($clearingDate)
69
+ {
70
+ $this->clearing_date = $clearingDate;
71
+ }
72
+
73
+ /**
74
+ * @return int
75
+ */
76
+ public function getClearingDate()
77
+ {
78
+ return $this->clearing_date;
79
+ }
80
+
81
+ /**
82
+ * @param int $clearingAmount
83
+ */
84
+ public function setClearingAmount($clearingAmount)
85
+ {
86
+ $this->clearing_amount = $clearingAmount;
87
+ }
88
+
89
+ /**
90
+ * @return int
91
+ */
92
+ public function getClearingAmount()
93
+ {
94
+ return $this->clearing_amount;
95
+ }
96
+ }
lib/Payone/Api/Response/Authorization/Redirect.php CHANGED
@@ -1,95 +1,95 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Response
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Response
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Response_Authorization_Redirect extends Payone_Api_Response_Abstract
34
- {
35
- /**
36
- * @var int
37
- */
38
- protected $txid = NULL;
39
- /**
40
- * @var int
41
- */
42
- protected $userid = NULL;
43
- /**
44
- * @var string
45
- */
46
- protected $redirecturl = NULL;
47
-
48
- /**
49
- * @param string $redirecturl
50
- */
51
- public function setRedirecturl($redirecturl)
52
- {
53
- $this->redirecturl = $redirecturl;
54
- }
55
-
56
- /**
57
- * @return string
58
- */
59
- public function getRedirecturl()
60
- {
61
- return $this->redirecturl;
62
- }
63
-
64
- /**
65
- * @param int $txid
66
- */
67
- public function setTxid($txid)
68
- {
69
- $this->txid = $txid;
70
- }
71
-
72
- /**
73
- * @return int
74
- */
75
- public function getTxid()
76
- {
77
- return $this->txid;
78
- }
79
-
80
- /**
81
- * @param int $userid
82
- */
83
- public function setUserid($userid)
84
- {
85
- $this->userid = $userid;
86
- }
87
-
88
- /**
89
- * @return int
90
- */
91
- public function getUserid()
92
- {
93
- return $this->userid;
94
- }
95
  }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Response_Authorization_Redirect extends Payone_Api_Response_Abstract
34
+ {
35
+ /**
36
+ * @var int
37
+ */
38
+ protected $txid = NULL;
39
+ /**
40
+ * @var int
41
+ */
42
+ protected $userid = NULL;
43
+ /**
44
+ * @var string
45
+ */
46
+ protected $redirecturl = NULL;
47
+
48
+ /**
49
+ * @param string $redirecturl
50
+ */
51
+ public function setRedirecturl($redirecturl)
52
+ {
53
+ $this->redirecturl = $redirecturl;
54
+ }
55
+
56
+ /**
57
+ * @return string
58
+ */
59
+ public function getRedirecturl()
60
+ {
61
+ return $this->redirecturl;
62
+ }
63
+
64
+ /**
65
+ * @param int $txid
66
+ */
67
+ public function setTxid($txid)
68
+ {
69
+ $this->txid = $txid;
70
+ }
71
+
72
+ /**
73
+ * @return int
74
+ */
75
+ public function getTxid()
76
+ {
77
+ return $this->txid;
78
+ }
79
+
80
+ /**
81
+ * @param int $userid
82
+ */
83
+ public function setUserid($userid)
84
+ {
85
+ $this->userid = $userid;
86
+ }
87
+
88
+ /**
89
+ * @return int
90
+ */
91
+ public function getUserid()
92
+ {
93
+ return $this->userid;
94
+ }
95
  }
lib/Payone/Api/Response/BankAccountCheck/Blocked.php CHANGED
@@ -1,35 +1,35 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Response
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Response
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Response_BankAccountCheck_Blocked extends Payone_Api_Response_Abstract
34
- {
35
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Response_BankAccountCheck_Blocked extends Payone_Api_Response_Abstract
34
+ {
35
+ }
lib/Payone/Api/Response/BankAccountCheck/Invalid.php CHANGED
@@ -1,37 +1,37 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Response
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Response
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Response_BankAccountCheck_Invalid
34
- extends Payone_Api_Response_Invalid
35
- {
36
-
37
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Response_BankAccountCheck_Invalid
34
+ extends Payone_Api_Response_Invalid
35
+ {
36
+
37
+ }
lib/Payone/Api/Response/BankAccountCheck/Valid.php CHANGED
@@ -1,155 +1,155 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Response
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Response
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Response_BankAccountCheck_Valid extends Payone_Api_Response_Abstract
34
- {
35
- /**
36
- * @var int
37
- */
38
- protected $bankcode = NULL;
39
- /**
40
- * @var string
41
- */
42
- protected $bankaccount = NULL;
43
- /**
44
- * @var int
45
- */
46
- protected $bankbranchcode = NULL;
47
- /**
48
- * @var string
49
- */
50
- protected $bankcheckdigit = NULL;
51
- /**
52
- * @var string
53
- */
54
- protected $iban = NULL;
55
- /**
56
- * @var string
57
- */
58
- protected $bic = NULL;
59
-
60
- /**
61
- * @param int $bankcode
62
- */
63
- public function setBankcode($bankcode)
64
- {
65
- $this->bankcode = $bankcode;
66
- }
67
-
68
- /**
69
- * @return int
70
- */
71
- public function getBankcode()
72
- {
73
- return $this->bankcode;
74
- }
75
-
76
- /**
77
- * @param string $bankaccount
78
- */
79
- public function setBankaccount($bankaccount)
80
- {
81
- $this->bankaccount = $bankaccount;
82
- }
83
-
84
- /**
85
- * @return string
86
- */
87
- public function getBankaccount()
88
- {
89
- return $this->bankaccount;
90
- }
91
-
92
- /**
93
- * @param string $bankbranchcode
94
- */
95
- public function setBankbranchcode($bankbranchcode)
96
- {
97
- $this->bankbranchcode = $bankbranchcode;
98
- }
99
-
100
- /**
101
- * @return int
102
- */
103
- public function getBankbranchcode()
104
- {
105
- return $this->bankbranchcode;
106
- }
107
-
108
- /**
109
- * @param string $bankcheckdigit
110
- */
111
- public function setBankcheckdigit($bankcheckdigit)
112
- {
113
- $this->bankcheckdigit = $bankcheckdigit;
114
- }
115
-
116
- /**
117
- * @return string
118
- */
119
- public function getBankcheckdigit()
120
- {
121
- return $this->bankcheckdigit;
122
- }
123
-
124
- /**
125
- * @param string $iban
126
- */
127
- public function setIban($iban)
128
- {
129
- $this->iban = $iban;
130
- }
131
-
132
- /**
133
- * @return string
134
- */
135
- public function getIban()
136
- {
137
- return $this->iban;
138
- }
139
-
140
- /**
141
- * @param string $bic
142
- */
143
- public function setBic($bic)
144
- {
145
- $this->bic = $bic;
146
- }
147
-
148
- /**
149
- * @return string
150
- */
151
- public function getBic()
152
- {
153
- return $this->bic;
154
- }
155
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Response_BankAccountCheck_Valid extends Payone_Api_Response_Abstract
34
+ {
35
+ /**
36
+ * @var int
37
+ */
38
+ protected $bankcode = NULL;
39
+ /**
40
+ * @var string
41
+ */
42
+ protected $bankaccount = NULL;
43
+ /**
44
+ * @var int
45
+ */
46
+ protected $bankbranchcode = NULL;
47
+ /**
48
+ * @var string
49
+ */
50
+ protected $bankcheckdigit = NULL;
51
+ /**
52
+ * @var string
53
+ */
54
+ protected $iban = NULL;
55
+ /**
56
+ * @var string
57
+ */
58
+ protected $bic = NULL;
59
+
60
+ /**
61
+ * @param int $bankcode
62
+ */
63
+ public function setBankcode($bankcode)
64
+ {
65
+ $this->bankcode = $bankcode;
66
+ }
67
+
68
+ /**
69
+ * @return int
70
+ */
71
+ public function getBankcode()
72
+ {
73
+ return $this->bankcode;
74
+ }
75
+
76
+ /**
77
+ * @param string $bankaccount
78
+ */
79
+ public function setBankaccount($bankaccount)
80
+ {
81
+ $this->bankaccount = $bankaccount;
82
+ }
83
+
84
+ /**
85
+ * @return string
86
+ */
87
+ public function getBankaccount()
88
+ {
89
+ return $this->bankaccount;
90
+ }
91
+
92
+ /**
93
+ * @param string $bankbranchcode
94
+ */
95
+ public function setBankbranchcode($bankbranchcode)
96
+ {
97
+ $this->bankbranchcode = $bankbranchcode;
98
+ }
99
+
100
+ /**
101
+ * @return int
102
+ */
103
+ public function getBankbranchcode()
104
+ {
105
+ return $this->bankbranchcode;
106
+ }
107
+
108
+ /**
109
+ * @param string $bankcheckdigit
110
+ */
111
+ public function setBankcheckdigit($bankcheckdigit)
112
+ {
113
+ $this->bankcheckdigit = $bankcheckdigit;
114
+ }
115
+
116
+ /**
117
+ * @return string
118
+ */
119
+ public function getBankcheckdigit()
120
+ {
121
+ return $this->bankcheckdigit;
122
+ }
123
+
124
+ /**
125
+ * @param string $iban
126
+ */
127
+ public function setIban($iban)
128
+ {
129
+ $this->iban = $iban;
130
+ }
131
+
132
+ /**
133
+ * @return string
134
+ */
135
+ public function getIban()
136
+ {
137
+ return $this->iban;
138
+ }
139
+
140
+ /**
141
+ * @param string $bic
142
+ */
143
+ public function setBic($bic)
144
+ {
145
+ $this->bic = $bic;
146
+ }
147
+
148
+ /**
149
+ * @return string
150
+ */
151
+ public function getBic()
152
+ {
153
+ return $this->bic;
154
+ }
155
+ }
lib/Payone/Api/Response/Capture/Approved.php CHANGED
@@ -1,395 +1,395 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Response
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Response
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Response_Capture_Approved extends Payone_Api_Response_Abstract
34
- {
35
- /**
36
- * @var int
37
- */
38
- protected $txid = NULL;
39
- /**
40
- * @var string
41
- */
42
- protected $settleaccount = NULL;
43
- /**
44
- * @var string
45
- */
46
- protected $clearing_bankaccountholder = NULL;
47
- /**
48
- * @var string
49
- */
50
- protected $clearing_bankcountry = NULL;
51
- /**
52
- * @var string
53
- */
54
- protected $clearing_bankaccount = NULL;
55
- /**
56
- * @var string
57
- */
58
- protected $clearing_bankcode = NULL;
59
- /**
60
- * @var string
61
- */
62
- protected $clearing_bankiban = NULL;
63
- /**
64
- * @var string
65
- */
66
- protected $clearing_bankbic = NULL;
67
- /**
68
- * @var string
69
- */
70
- protected $clearing_bankcity = NULL;
71
- /**
72
- * @var string
73
- */
74
- protected $clearing_bankname = NULL;
75
-
76
- /** @var string */
77
- protected $clearing_legalnote = NULL;
78
-
79
- /**
80
- * (YYYYMMDD)
81
- * @var string
82
- */
83
- protected $clearing_duedate = NULL;
84
-
85
- /** @var string */
86
- protected $clearing_reference = NULL;
87
-
88
- /** @var string */
89
- protected $clearing_instructionnote = NULL;
90
-
91
- /**
92
- * @var string
93
- */
94
- protected $mandate_identification = NULL;
95
- /**
96
- * @var string
97
- */
98
- protected $creditor_identifier = NULL;
99
- /**
100
- * @var int
101
- */
102
- protected $clearing_date = NULL;
103
- /**
104
- * @var int
105
- */
106
- protected $clearing_amount = NULL;
107
-
108
- /**
109
- * @param string $clearing_bankaccount
110
- */
111
- public function setClearingBankaccount($clearing_bankaccount)
112
- {
113
- $this->clearing_bankaccount = $clearing_bankaccount;
114
- }
115
-
116
- /**
117
- * @return string
118
- */
119
- public function getClearingBankaccount()
120
- {
121
- return $this->clearing_bankaccount;
122
- }
123
-
124
- /**
125
- * @param string $clearing_bankaccountholder
126
- */
127
- public function setClearingBankaccountholder($clearing_bankaccountholder)
128
- {
129
- $this->clearing_bankaccountholder = $clearing_bankaccountholder;
130
- }
131
-
132
- /**
133
- * @return string
134
- */
135
- public function getClearingBankaccountholder()
136
- {
137
- return $this->clearing_bankaccountholder;
138
- }
139
-
140
- /**
141
- * @param string $clearing_bankbic
142
- */
143
- public function setClearingBankbic($clearing_bankbic)
144
- {
145
- $this->clearing_bankbic = $clearing_bankbic;
146
- }
147
-
148
- /**
149
- * @return string
150
- */
151
- public function getClearingBankbic()
152
- {
153
- return $this->clearing_bankbic;
154
- }
155
-
156
- /**
157
- * @param string $clearing_bankcity
158
- */
159
- public function setClearingBankcity($clearing_bankcity)
160
- {
161
- $this->clearing_bankcity = $clearing_bankcity;
162
- }
163
-
164
- /**
165
- * @return string
166
- */
167
- public function getClearingBankcity()
168
- {
169
- return $this->clearing_bankcity;
170
- }
171
-
172
- /**
173
- * @param string $clearing_bankcode
174
- */
175
- public function setClearingBankcode($clearing_bankcode)
176
- {
177
- $this->clearing_bankcode = $clearing_bankcode;
178
- }
179
-
180
- /**
181
- * @return string
182
- */
183
- public function getClearingBankcode()
184
- {
185
- return $this->clearing_bankcode;
186
- }
187
-
188
- /**
189
- * @param string $clearing_bankcountry
190
- */
191
- public function setClearingBankcountry($clearing_bankcountry)
192
- {
193
- $this->clearing_bankcountry = $clearing_bankcountry;
194
- }
195
-
196
- /**
197
- * @return string
198
- */
199
- public function getClearingBankcountry()
200
- {
201
- return $this->clearing_bankcountry;
202
- }
203
-
204
- /**
205
- * @param string $clearing_bankiban
206
- */
207
- public function setClearingBankiban($clearing_bankiban)
208
- {
209
- $this->clearing_bankiban = $clearing_bankiban;
210
- }
211
-
212
- /**
213
- * @return string
214
- */
215
- public function getClearingBankiban()
216
- {
217
- return $this->clearing_bankiban;
218
- }
219
-
220
- /**
221
- * @param string $clearing_bankname
222
- */
223
- public function setClearingBankname($clearing_bankname)
224
- {
225
- $this->clearing_bankname = $clearing_bankname;
226
- }
227
-
228
- /**
229
- * @return string
230
- */
231
- public function getClearingBankname()
232
- {
233
- return $this->clearing_bankname;
234
- }
235
-
236
- /**
237
- * @param string $settleaccount
238
- */
239
- public function setSettleaccount($settleaccount)
240
- {
241
- $this->settleaccount = $settleaccount;
242
- }
243
-
244
- /**
245
- * @return string
246
- */
247
- public function getSettleaccount()
248
- {
249
- return $this->settleaccount;
250
- }
251
-
252
- /**
253
- * @param int $txid
254
- */
255
- public function setTxid($txid)
256
- {
257
- $this->txid = $txid;
258
- }
259
-
260
- /**
261
- * @return int
262
- */
263
- public function getTxid()
264
- {
265
- return $this->txid;
266
- }
267
-
268
- /**
269
- * @param string $clearing_duedate
270
- */
271
- public function setClearingDuedate($clearing_duedate)
272
- {
273
- $this->clearing_duedate = $clearing_duedate;
274
- }
275
-
276
- /**
277
- * @return string
278
- */
279
- public function getClearingDuedate()
280
- {
281
- return $this->clearing_duedate;
282
- }
283
-
284
- /**
285
- * @param string $clearing_instructionnote
286
- */
287
- public function setClearingInstructionnote($clearing_instructionnote)
288
- {
289
- $this->clearing_instructionnote = $clearing_instructionnote;
290
- }
291
-
292
- /**
293
- * @return string
294
- */
295
- public function getClearingInstructionnote()
296
- {
297
- return $this->clearing_instructionnote;
298
- }
299
-
300
- /**
301
- * @param string $clearing_legalnote
302
- */
303
- public function setClearingLegalnote($clearing_legalnote)
304
- {
305
- $this->clearing_legalnote = $clearing_legalnote;
306
- }
307
-
308
- /**
309
- * @return string
310
- */
311
- public function getClearingLegalnote()
312
- {
313
- return $this->clearing_legalnote;
314
- }
315
-
316
- /**
317
- * @param string $clearing_reference
318
- */
319
- public function setClearingReference($clearing_reference)
320
- {
321
- $this->clearing_reference = $clearing_reference;
322
- }
323
-
324
- /**
325
- * @return string
326
- */
327
- public function getClearingReference()
328
- {
329
- return $this->clearing_reference;
330
- }
331
-
332
- /**
333
- * @param string $mandateIdentification
334
- */
335
- public function setMandateIdentification($mandateIdentification)
336
- {
337
- $this->mandate_identification = $mandateIdentification;
338
- }
339
-
340
- /**
341
- * @return string
342
- */
343
- public function getMandateIdentification()
344
- {
345
- return $this->mandate_identification;
346
- }
347
-
348
- /**
349
- * @param string $creditorIdentifier
350
- */
351
- public function setCreditorIdentifier($creditorIdentifier)
352
- {
353
- $this->creditor_identifier = $creditorIdentifier;
354
- }
355
-
356
- /**
357
- * @return string
358
- */
359
- public function getCreditorIdentifier()
360
- {
361
- return $this->creditor_identifier;
362
- }
363
-
364
- /**
365
- * @param int $clearingDate
366
- */
367
- public function setClearingDate($clearingDate)
368
- {
369
- $this->clearing_date = $clearingDate;
370
- }
371
-
372
- /**
373
- * @return int
374
- */
375
- public function getClearingDate()
376
- {
377
- return $this->clearing_date;
378
- }
379
-
380
- /**
381
- * @param int $clearingAmount
382
- */
383
- public function setClearingAmount($clearingAmount)
384
- {
385
- $this->clearing_amount = $clearingAmount;
386
- }
387
-
388
- /**
389
- * @return int
390
- */
391
- public function getClearingAmount()
392
- {
393
- return $this->clearing_amount;
394
- }
395
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Response_Capture_Approved extends Payone_Api_Response_Abstract
34
+ {
35
+ /**
36
+ * @var int
37
+ */
38
+ protected $txid = NULL;
39
+ /**
40
+ * @var string
41
+ */
42
+ protected $settleaccount = NULL;
43
+ /**
44
+ * @var string
45
+ */
46
+ protected $clearing_bankaccountholder = NULL;
47
+ /**
48
+ * @var string
49
+ */
50
+ protected $clearing_bankcountry = NULL;
51
+ /**
52
+ * @var string
53
+ */
54
+ protected $clearing_bankaccount = NULL;
55
+ /**
56
+ * @var string
57
+ */
58
+ protected $clearing_bankcode = NULL;
59
+ /**
60
+ * @var string
61
+ */
62
+ protected $clearing_bankiban = NULL;
63
+ /**
64
+ * @var string
65
+ */
66
+ protected $clearing_bankbic = NULL;
67
+ /**
68
+ * @var string
69
+ */
70
+ protected $clearing_bankcity = NULL;
71
+ /**
72
+ * @var string
73
+ */
74
+ protected $clearing_bankname = NULL;
75
+
76
+ /** @var string */
77
+ protected $clearing_legalnote = NULL;
78
+
79
+ /**
80
+ * (YYYYMMDD)
81
+ * @var string
82
+ */
83
+ protected $clearing_duedate = NULL;
84
+
85
+ /** @var string */
86
+ protected $clearing_reference = NULL;
87
+
88
+ /** @var string */
89
+ protected $clearing_instructionnote = NULL;
90
+
91
+ /**
92
+ * @var string
93
+ */
94
+ protected $mandate_identification = NULL;
95
+ /**
96
+ * @var string
97
+ */
98
+ protected $creditor_identifier = NULL;
99
+ /**
100
+ * @var int
101
+ */
102
+ protected $clearing_date = NULL;
103
+ /**
104
+ * @var int
105
+ */
106
+ protected $clearing_amount = NULL;
107
+
108
+ /**
109
+ * @param string $clearing_bankaccount
110
+ */
111
+ public function setClearingBankaccount($clearing_bankaccount)
112
+ {
113
+ $this->clearing_bankaccount = $clearing_bankaccount;
114
+ }
115
+
116
+ /**
117
+ * @return string
118
+ */
119
+ public function getClearingBankaccount()
120
+ {
121
+ return $this->clearing_bankaccount;
122
+ }
123
+
124
+ /**
125
+ * @param string $clearing_bankaccountholder
126
+ */
127
+ public function setClearingBankaccountholder($clearing_bankaccountholder)
128
+ {
129
+ $this->clearing_bankaccountholder = $clearing_bankaccountholder;
130
+ }
131
+
132
+ /**
133
+ * @return string
134
+ */
135
+ public function getClearingBankaccountholder()
136
+ {
137
+ return $this->clearing_bankaccountholder;
138
+ }
139
+
140
+ /**
141
+ * @param string $clearing_bankbic
142
+ */
143
+ public function setClearingBankbic($clearing_bankbic)
144
+ {
145
+ $this->clearing_bankbic = $clearing_bankbic;
146
+ }
147
+
148
+ /**
149
+ * @return string
150
+ */
151
+ public function getClearingBankbic()
152
+ {
153
+ return $this->clearing_bankbic;
154
+ }
155
+
156
+ /**
157
+ * @param string $clearing_bankcity
158
+ */
159
+ public function setClearingBankcity($clearing_bankcity)
160
+ {
161
+ $this->clearing_bankcity = $clearing_bankcity;
162
+ }
163
+
164
+ /**
165
+ * @return string
166
+ */
167
+ public function getClearingBankcity()
168
+ {
169
+ return $this->clearing_bankcity;
170
+ }
171
+
172
+ /**
173
+ * @param string $clearing_bankcode
174
+ */
175
+ public function setClearingBankcode($clearing_bankcode)
176
+ {
177
+ $this->clearing_bankcode = $clearing_bankcode;
178
+ }
179
+
180
+ /**
181
+ * @return string
182
+ */
183
+ public function getClearingBankcode()
184
+ {
185
+ return $this->clearing_bankcode;
186
+ }
187
+
188
+ /**
189
+ * @param string $clearing_bankcountry
190
+ */
191
+ public function setClearingBankcountry($clearing_bankcountry)
192
+ {
193
+ $this->clearing_bankcountry = $clearing_bankcountry;
194
+ }
195
+
196
+ /**
197
+ * @return string
198
+ */
199
+ public function getClearingBankcountry()
200
+ {
201
+ return $this->clearing_bankcountry;
202
+ }
203
+
204
+ /**
205
+ * @param string $clearing_bankiban
206
+ */
207
+ public function setClearingBankiban($clearing_bankiban)
208
+ {
209
+ $this->clearing_bankiban = $clearing_bankiban;
210
+ }
211
+
212
+ /**
213
+ * @return string
214
+ */
215
+ public function getClearingBankiban()
216
+ {
217
+ return $this->clearing_bankiban;
218
+ }
219
+
220
+ /**
221
+ * @param string $clearing_bankname
222
+ */
223
+ public function setClearingBankname($clearing_bankname)
224
+ {
225
+ $this->clearing_bankname = $clearing_bankname;
226
+ }
227
+
228
+ /**
229
+ * @return string
230
+ */
231
+ public function getClearingBankname()
232
+ {
233
+ return $this->clearing_bankname;
234
+ }
235
+
236
+ /**
237
+ * @param string $settleaccount
238
+ */
239
+ public function setSettleaccount($settleaccount)
240
+ {
241
+ $this->settleaccount = $settleaccount;
242
+ }
243
+
244
+ /**
245
+ * @return string
246
+ */
247
+ public function getSettleaccount()
248
+ {
249
+ return $this->settleaccount;
250
+ }
251
+
252
+ /**
253
+ * @param int $txid
254
+ */
255
+ public function setTxid($txid)
256
+ {
257
+ $this->txid = $txid;
258
+ }
259
+
260
+ /**
261
+ * @return int
262
+ */
263
+ public function getTxid()
264
+ {
265
+ return $this->txid;
266
+ }
267
+
268
+ /**
269
+ * @param string $clearing_duedate
270
+ */
271
+ public function setClearingDuedate($clearing_duedate)
272
+ {
273
+ $this->clearing_duedate = $clearing_duedate;
274
+ }
275
+
276
+ /**
277
+ * @return string
278
+ */
279
+ public function getClearingDuedate()
280
+ {
281
+ return $this->clearing_duedate;
282
+ }
283
+
284
+ /**
285
+ * @param string $clearing_instructionnote
286
+ */
287
+ public function setClearingInstructionnote($clearing_instructionnote)
288
+ {
289
+ $this->clearing_instructionnote = $clearing_instructionnote;
290
+ }
291
+
292
+ /**
293
+ * @return string
294
+ */
295
+ public function getClearingInstructionnote()
296
+ {
297
+ return $this->clearing_instructionnote;
298
+ }
299
+
300
+ /**
301
+ * @param string $clearing_legalnote
302
+ */
303
+ public function setClearingLegalnote($clearing_legalnote)
304
+ {
305
+ $this->clearing_legalnote = $clearing_legalnote;
306
+ }
307
+
308
+ /**
309
+ * @return string
310
+ */
311
+ public function getClearingLegalnote()
312
+ {
313
+ return $this->clearing_legalnote;
314
+ }
315
+
316
+ /**
317
+ * @param string $clearing_reference
318
+ */
319
+ public function setClearingReference($clearing_reference)
320
+ {
321
+ $this->clearing_reference = $clearing_reference;
322
+ }
323
+
324
+ /**
325
+ * @return string
326
+ */
327
+ public function getClearingReference()
328
+ {
329
+ return $this->clearing_reference;
330
+ }
331
+
332
+ /**
333
+ * @param string $mandateIdentification
334
+ */
335
+ public function setMandateIdentification($mandateIdentification)
336
+ {
337
+ $this->mandate_identification = $mandateIdentification;
338
+ }
339
+
340
+ /**
341
+ * @return string
342
+ */
343
+ public function getMandateIdentification()
344
+ {
345
+ return $this->mandate_identification;
346
+ }
347
+
348
+ /**
349
+ * @param string $creditorIdentifier
350
+ */
351
+ public function setCreditorIdentifier($creditorIdentifier)
352
+ {
353
+ $this->creditor_identifier = $creditorIdentifier;
354
+ }
355
+
356
+ /**
357
+ * @return string
358
+ */
359
+ public function getCreditorIdentifier()
360
+ {
361
+ return $this->creditor_identifier;
362
+ }
363
+
364
+ /**
365
+ * @param int $clearingDate
366
+ */
367
+ public function setClearingDate($clearingDate)
368
+ {
369
+ $this->clearing_date = $clearingDate;
370
+ }
371
+
372
+ /**
373
+ * @return int
374
+ */
375
+ public function getClearingDate()
376
+ {
377
+ return $this->clearing_date;
378
+ }
379
+
380
+ /**
381
+ * @param int $clearingAmount
382
+ */
383
+ public function setClearingAmount($clearingAmount)
384
+ {
385
+ $this->clearing_amount = $clearingAmount;
386
+ }
387
+
388
+ /**
389
+ * @return int
390
+ */
391
+ public function getClearingAmount()
392
+ {
393
+ return $this->clearing_amount;
394
+ }
395
+ }
lib/Payone/Api/Response/Consumerscore/Invalid.php CHANGED
@@ -1,55 +1,55 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Response
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Response
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Response_Consumerscore_Invalid extends Payone_Api_Response_Invalid
34
- {
35
- /**
36
- * @var int
37
- */
38
- protected $secstatus = NULL;
39
-
40
- /**
41
- * @param int $secstatus
42
- */
43
- public function setSecstatus($secstatus)
44
- {
45
- $this->secstatus = $secstatus;
46
- }
47
-
48
- /**
49
- * @return int
50
- */
51
- public function getSecstatus()
52
- {
53
- return $this->secstatus;
54
- }
55
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Response_Consumerscore_Invalid extends Payone_Api_Response_Invalid
34
+ {
35
+ /**
36
+ * @var int
37
+ */
38
+ protected $secstatus = NULL;
39
+
40
+ /**
41
+ * @param int $secstatus
42
+ */
43
+ public function setSecstatus($secstatus)
44
+ {
45
+ $this->secstatus = $secstatus;
46
+ }
47
+
48
+ /**
49
+ * @return int
50
+ */
51
+ public function getSecstatus()
52
+ {
53
+ return $this->secstatus;
54
+ }
55
+ }
lib/Payone/Api/Response/Consumerscore/Valid.php CHANGED
@@ -1,295 +1,295 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Response
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Response
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Response_Consumerscore_Valid extends Payone_Api_Response_Abstract
34
- {
35
- /**
36
- * @var int
37
- */
38
- protected $secstatus = NULL;
39
- /**
40
- * @var string
41
- */
42
- protected $score = NULL;
43
- /**
44
- * @var int
45
- */
46
- protected $scorevalue = NULL;
47
- /**
48
- * @var string
49
- */
50
- protected $secscore = NULL;
51
- /**
52
- * @var string
53
- */
54
- protected $divergence = NULL;
55
- /**
56
- * @var string
57
- */
58
- protected $personstatus = NULL;
59
- /**
60
- * @var string
61
- */
62
- protected $firstname = NULL;
63
- /**
64
- * @var string
65
- */
66
- protected $lastname = NULL;
67
- /**
68
- * @var string
69
- */
70
- protected $street = NULL;
71
- /**
72
- * @var string
73
- */
74
- protected $streetname = NULL;
75
- /**
76
- * @var string
77
- */
78
- protected $streetnumber = NULL;
79
- /**
80
- * @var string
81
- */
82
- protected $zip = NULL;
83
- /**
84
- * @var string
85
- */
86
- protected $city = NULL;
87
-
88
- /**
89
- * @param string $city
90
- */
91
- public function setCity($city)
92
- {
93
- $this->city = $city;
94
- }
95
-
96
- /**
97
- * @return string
98
- */
99
- public function getCity()
100
- {
101
- return $this->city;
102
- }
103
-
104
- /**
105
- * @param string $divergence
106
- */
107
- public function setDivergence($divergence)
108
- {
109
- $this->divergence = $divergence;
110
- }
111
-
112
- /**
113
- * @return string
114
- */
115
- public function getDivergence()
116
- {
117
- return $this->divergence;
118
- }
119
-
120
- /**
121
- * @param string $firstname
122
- */
123
- public function setFirstname($firstname)
124
- {
125
- $this->firstname = $firstname;
126
- }
127
-
128
- /**
129
- * @return string
130
- */
131
- public function getFirstname()
132
- {
133
- return $this->firstname;
134
- }
135
-
136
- /**
137
- * @param string $lastname
138
- */
139
- public function setLastname($lastname)
140
- {
141
- $this->lastname = $lastname;
142
- }
143
-
144
- /**
145
- * @return string
146
- */
147
- public function getLastname()
148
- {
149
- return $this->lastname;
150
- }
151
-
152
- /**
153
- * @param string $personstatus
154
- */
155
- public function setPersonstatus($personstatus)
156
- {
157
- $this->personstatus = $personstatus;
158
- }
159
-
160
- /**
161
- * @return string
162
- */
163
- public function getPersonstatus()
164
- {
165
- return $this->personstatus;
166
- }
167
-
168
- /**
169
- * @param string $score
170
- */
171
- public function setScore($score)
172
- {
173
- $this->score = $score;
174
- }
175
-
176
- /**
177
- * @return string
178
- */
179
- public function getScore()
180
- {
181
- return $this->score;
182
- }
183
-
184
- /**
185
- * @param int $scorevalue
186
- */
187
- public function setScorevalue($scorevalue)
188
- {
189
- $this->scorevalue = $scorevalue;
190
- }
191
-
192
- /**
193
- * @return int
194
- */
195
- public function getScorevalue()
196
- {
197
- return $this->scorevalue;
198
- }
199
-
200
- /**
201
- * @param string $secscore
202
- */
203
- public function setSecscore($secscore)
204
- {
205
- $this->secscore = $secscore;
206
- }
207
-
208
- /**
209
- * @return string
210
- */
211
- public function getSecscore()
212
- {
213
- return $this->secscore;
214
- }
215
-
216
- /**
217
- * @param int $secstatus
218
- */
219
- public function setSecstatus($secstatus)
220
- {
221
- $this->secstatus = $secstatus;
222
- }
223
-
224
- /**
225
- * @return int
226
- */
227
- public function getSecstatus()
228
- {
229
- return $this->secstatus;
230
- }
231
-
232
- /**
233
- * @param string $street
234
- */
235
- public function setStreet($street)
236
- {
237
- $this->street = $street;
238
- }
239
-
240
- /**
241
- * @return string
242
- */
243
- public function getStreet()
244
- {
245
- return $this->street;
246
- }
247
-
248
- /**
249
- * @param string $streetname
250
- */
251
- public function setStreetname($streetname)
252
- {
253
- $this->streetname = $streetname;
254
- }
255
-
256
- /**
257
- * @return string
258
- */
259
- public function getStreetname()
260
- {
261
- return $this->streetname;
262
- }
263
-
264
- /**
265
- * @param string $streetnumber
266
- */
267
- public function setStreetnumber($streetnumber)
268
- {
269
- $this->streetnumber = $streetnumber;
270
- }
271
-
272
- /**
273
- * @return string
274
- */
275
- public function getStreetnumber()
276
- {
277
- return $this->streetnumber;
278
- }
279
-
280
- /**
281
- * @param string $zip
282
- */
283
- public function setZip($zip)
284
- {
285
- $this->zip = $zip;
286
- }
287
-
288
- /**
289
- * @return string
290
- */
291
- public function getZip()
292
- {
293
- return $this->zip;
294
- }
295
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Response_Consumerscore_Valid extends Payone_Api_Response_Abstract
34
+ {
35
+ /**
36
+ * @var int
37
+ */
38
+ protected $secstatus = NULL;
39
+ /**
40
+ * @var string
41
+ */
42
+ protected $score = NULL;
43
+ /**
44
+ * @var int
45
+ */
46
+ protected $scorevalue = NULL;
47
+ /**
48
+ * @var string
49
+ */
50
+ protected $secscore = NULL;
51
+ /**
52
+ * @var string
53
+ */
54
+ protected $divergence = NULL;
55
+ /**
56
+ * @var string
57
+ */
58
+ protected $personstatus = NULL;
59
+ /**
60
+ * @var string
61
+ */
62
+ protected $firstname = NULL;
63
+ /**
64
+ * @var string
65
+ */
66
+ protected $lastname = NULL;
67
+ /**
68
+ * @var string
69
+ */
70
+ protected $street = NULL;
71
+ /**
72
+ * @var string
73
+ */
74
+ protected $streetname = NULL;
75
+ /**
76
+ * @var string
77
+ */
78
+ protected $streetnumber = NULL;
79
+ /**
80
+ * @var string
81
+ */
82
+ protected $zip = NULL;
83
+ /**
84
+ * @var string
85
+ */
86
+ protected $city = NULL;
87
+
88
+ /**
89
+ * @param string $city
90
+ */
91
+ public function setCity($city)
92
+ {
93
+ $this->city = $city;
94
+ }
95
+
96
+ /**
97
+ * @return string
98
+ */
99
+ public function getCity()
100
+ {
101
+ return $this->city;
102
+ }
103
+
104
+ /**
105
+ * @param string $divergence
106
+ */
107
+ public function setDivergence($divergence)
108
+ {
109
+ $this->divergence = $divergence;
110
+ }
111
+
112
+ /**
113
+ * @return string
114
+ */
115
+ public function getDivergence()
116
+ {
117
+ return $this->divergence;
118
+ }
119
+
120
+ /**
121
+ * @param string $firstname
122
+ */
123
+ public function setFirstname($firstname)
124
+ {
125
+ $this->firstname = $firstname;
126
+ }
127
+
128
+ /**
129
+ * @return string
130
+ */
131
+ public function getFirstname()
132
+ {
133
+ return $this->firstname;
134
+ }
135
+
136
+ /**
137
+ * @param string $lastname
138
+ */
139
+ public function setLastname($lastname)
140
+ {
141
+ $this->lastname = $lastname;
142
+ }
143
+
144
+ /**
145
+ * @return string
146
+ */
147
+ public function getLastname()
148
+ {
149
+ return $this->lastname;
150
+ }
151
+
152
+ /**
153
+ * @param string $personstatus
154
+ */
155
+ public function setPersonstatus($personstatus)
156
+ {
157
+ $this->personstatus = $personstatus;
158
+ }
159
+
160
+ /**
161
+ * @return string
162
+ */
163
+ public function getPersonstatus()
164
+ {
165
+ return $this->personstatus;
166
+ }
167
+
168
+ /**
169
+ * @param string $score
170
+ */
171
+ public function setScore($score)
172
+ {
173
+ $this->score = $score;
174
+ }
175
+
176
+ /**
177
+ * @return string
178
+ */
179
+ public function getScore()
180
+ {
181
+ return $this->score;
182
+ }
183
+
184
+ /**
185
+ * @param int $scorevalue
186
+ */
187
+ public function setScorevalue($scorevalue)
188
+ {
189
+ $this->scorevalue = $scorevalue;
190
+ }
191
+
192
+ /**
193
+ * @return int
194
+ */
195
+ public function getScorevalue()
196
+ {
197
+ return $this->scorevalue;
198
+ }
199
+
200
+ /**
201
+ * @param string $secscore
202
+ */
203
+ public function setSecscore($secscore)
204
+ {
205
+ $this->secscore = $secscore;
206
+ }
207
+
208
+ /**
209
+ * @return string
210
+ */
211
+ public function getSecscore()
212
+ {
213
+ return $this->secscore;
214
+ }
215
+
216
+ /**
217
+ * @param int $secstatus
218
+ */
219
+ public function setSecstatus($secstatus)
220
+ {
221
+ $this->secstatus = $secstatus;
222
+ }
223
+
224
+ /**
225
+ * @return int
226
+ */
227
+ public function getSecstatus()
228
+ {
229
+ return $this->secstatus;
230
+ }
231
+
232
+ /**
233
+ * @param string $street
234
+ */
235
+ public function setStreet($street)
236
+ {
237
+ $this->street = $street;
238
+ }
239
+
240
+ /**
241
+ * @return string
242
+ */
243
+ public function getStreet()
244
+ {
245
+ return $this->street;
246
+ }
247
+
248
+ /**
249
+ * @param string $streetname
250
+ */
251
+ public function setStreetname($streetname)
252
+ {
253
+ $this->streetname = $streetname;
254
+ }
255
+
256
+ /**
257
+ * @return string
258
+ */
259
+ public function getStreetname()
260
+ {
261
+ return $this->streetname;
262
+ }
263
+
264
+ /**
265
+ * @param string $streetnumber
266
+ */
267
+ public function setStreetnumber($streetnumber)
268
+ {
269
+ $this->streetnumber = $streetnumber;
270
+ }
271
+
272
+ /**
273
+ * @return string
274
+ */
275
+ public function getStreetnumber()
276
+ {
277
+ return $this->streetnumber;
278
+ }
279
+
280
+ /**
281
+ * @param string $zip
282
+ */
283
+ public function setZip($zip)
284
+ {
285
+ $this->zip = $zip;
286
+ }
287
+
288
+ /**
289
+ * @return string
290
+ */
291
+ public function getZip()
292
+ {
293
+ return $this->zip;
294
+ }
295
+ }
lib/Payone/Api/Response/CreateAccess/Approved.php CHANGED
@@ -1,95 +1,95 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Response
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Response
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Response_CreateAccess_Approved extends Payone_Api_Response_Abstract
34
- {
35
- /**
36
- * @var int
37
- */
38
- protected $txid = NULL;
39
- /**
40
- * @var int
41
- */
42
- protected $userid = NULL;
43
- /**
44
- * @var int
45
- */
46
- protected $accessid = NULL;
47
-
48
- /**
49
- * @param int $txid
50
- */
51
- public function setTxid($txid)
52
- {
53
- $this->txid = $txid;
54
- }
55
-
56
- /**
57
- * @return int
58
- */
59
- public function getTxid()
60
- {
61
- return $this->txid;
62
- }
63
-
64
- /**
65
- * @param int $accessid
66
- */
67
- public function setAccessid($accessid)
68
- {
69
- $this->accessid = $accessid;
70
- }
71
-
72
- /**
73
- * @return int
74
- */
75
- public function getAccessid()
76
- {
77
- return $this->accessid;
78
- }
79
-
80
- /**
81
- * @param int $userid
82
- */
83
- public function setUserid($userid)
84
- {
85
- $this->userid = $userid;
86
- }
87
-
88
- /**
89
- * @return int
90
- */
91
- public function getUserid()
92
- {
93
- return $this->userid;
94
- }
95
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Response_CreateAccess_Approved extends Payone_Api_Response_Abstract
34
+ {
35
+ /**
36
+ * @var int
37
+ */
38
+ protected $txid = NULL;
39
+ /**
40
+ * @var int
41
+ */
42
+ protected $userid = NULL;
43
+ /**
44
+ * @var int
45
+ */
46
+ protected $accessid = NULL;
47
+
48
+ /**
49
+ * @param int $txid
50
+ */
51
+ public function setTxid($txid)
52
+ {
53
+ $this->txid = $txid;
54
+ }
55
+
56
+ /**
57
+ * @return int
58
+ */
59
+ public function getTxid()
60
+ {
61
+ return $this->txid;
62
+ }
63
+
64
+ /**
65
+ * @param int $accessid
66
+ */
67
+ public function setAccessid($accessid)
68
+ {
69
+ $this->accessid = $accessid;
70
+ }
71
+
72
+ /**
73
+ * @return int
74
+ */
75
+ public function getAccessid()
76
+ {
77
+ return $this->accessid;
78
+ }
79
+
80
+ /**
81
+ * @param int $userid
82
+ */
83
+ public function setUserid($userid)
84
+ {
85
+ $this->userid = $userid;
86
+ }
87
+
88
+ /**
89
+ * @return int
90
+ */
91
+ public function getUserid()
92
+ {
93
+ return $this->userid;
94
+ }
95
+ }
lib/Payone/Api/Response/CreditCardCheck/Invalid.php CHANGED
@@ -1,37 +1,37 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Response
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Response
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Response_CreditCardCheck_Invalid
34
- extends Payone_Api_Response_Invalid
35
- {
36
-
37
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Response_CreditCardCheck_Invalid
34
+ extends Payone_Api_Response_Invalid
35
+ {
36
+
37
+ }
lib/Payone/Api/Response/CreditCardCheck/Valid.php CHANGED
@@ -1,75 +1,75 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Response
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Response
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Response_CreditCardCheck_Valid extends Payone_Api_Response_Abstract
34
- {
35
- /**
36
- * @var string
37
- */
38
- protected $pseudocardpan = NULL;
39
- /**
40
- * @var string
41
- */
42
- protected $truncatedcardpan = NULL;
43
-
44
- /**
45
- * @param string $truncatedcardpan
46
- */
47
- public function setTruncatedcardpan($truncatedcardpan)
48
- {
49
- $this->truncatedcardpan = $truncatedcardpan;
50
- }
51
-
52
- /**
53
- * @return string
54
- */
55
- public function getTruncatedcardpan()
56
- {
57
- return $this->truncatedcardpan;
58
- }
59
-
60
- /**
61
- * @param string $pseudocardpan
62
- */
63
- public function setPseudocardpan($pseudocardpan)
64
- {
65
- $this->pseudocardpan = $pseudocardpan;
66
- }
67
-
68
- /**
69
- * @return string
70
- */
71
- public function getPseudocardpan()
72
- {
73
- return $this->pseudocardpan;
74
- }
75
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Response_CreditCardCheck_Valid extends Payone_Api_Response_Abstract
34
+ {
35
+ /**
36
+ * @var string
37
+ */
38
+ protected $pseudocardpan = NULL;
39
+ /**
40
+ * @var string
41
+ */
42
+ protected $truncatedcardpan = NULL;
43
+
44
+ /**
45
+ * @param string $truncatedcardpan
46
+ */
47
+ public function setTruncatedcardpan($truncatedcardpan)
48
+ {
49
+ $this->truncatedcardpan = $truncatedcardpan;
50
+ }
51
+
52
+ /**
53
+ * @return string
54
+ */
55
+ public function getTruncatedcardpan()
56
+ {
57
+ return $this->truncatedcardpan;
58
+ }
59
+
60
+ /**
61
+ * @param string $pseudocardpan
62
+ */
63
+ public function setPseudocardpan($pseudocardpan)
64
+ {
65
+ $this->pseudocardpan = $pseudocardpan;
66
+ }
67
+
68
+ /**
69
+ * @return string
70
+ */
71
+ public function getPseudocardpan()
72
+ {
73
+ return $this->pseudocardpan;
74
+ }
75
+ }
lib/Payone/Api/Response/Debit/Approved.php CHANGED
@@ -1,75 +1,75 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Response
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Response
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Response_Debit_Approved extends Payone_Api_Response_Abstract
34
- {
35
- /**
36
- * @var int
37
- */
38
- protected $txid = NULL;
39
- /**
40
- * @var string
41
- */
42
- protected $settleaccount = NULL;
43
-
44
- /**
45
- * @param string $settleaccount
46
- */
47
- public function setSettleaccount($settleaccount)
48
- {
49
- $this->settleaccount = $settleaccount;
50
- }
51
-
52
- /**
53
- * @return string
54
- */
55
- public function getSettleaccount()
56
- {
57
- return $this->settleaccount;
58
- }
59
-
60
- /**
61
- * @param int $txid
62
- */
63
- public function setTxid($txid)
64
- {
65
- $this->txid = $txid;
66
- }
67
-
68
- /**
69
- * @return int
70
- */
71
- public function getTxid()
72
- {
73
- return $this->txid;
74
- }
75
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Response_Debit_Approved extends Payone_Api_Response_Abstract
34
+ {
35
+ /**
36
+ * @var int
37
+ */
38
+ protected $txid = NULL;
39
+ /**
40
+ * @var string
41
+ */
42
+ protected $settleaccount = NULL;
43
+
44
+ /**
45
+ * @param string $settleaccount
46
+ */
47
+ public function setSettleaccount($settleaccount)
48
+ {
49
+ $this->settleaccount = $settleaccount;
50
+ }
51
+
52
+ /**
53
+ * @return string
54
+ */
55
+ public function getSettleaccount()
56
+ {
57
+ return $this->settleaccount;
58
+ }
59
+
60
+ /**
61
+ * @param int $txid
62
+ */
63
+ public function setTxid($txid)
64
+ {
65
+ $this->txid = $txid;
66
+ }
67
+
68
+ /**
69
+ * @return int
70
+ */
71
+ public function getTxid()
72
+ {
73
+ return $this->txid;
74
+ }
75
+ }
lib/Payone/Api/Response/Error.php CHANGED
@@ -1,116 +1,116 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Response
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Response
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Response_Error extends Payone_Api_Response_Abstract
34
- {
35
- /**
36
- * @var string
37
- */
38
- protected $status = NULL;
39
- /**
40
- * @var string
41
- */
42
- protected $errorcode = NULL;
43
- /**
44
- * @var string
45
- */
46
- protected $errormessage = NULL;
47
- /**
48
- * @var string
49
- */
50
- protected $customermessage = NULL;
51
-
52
- /**
53
- * @param string $customermessage
54
- */
55
- public function setCustomermessage($customermessage)
56
- {
57
- $this->customermessage = $customermessage;
58
- }
59
-
60
- /**
61
- * @return string
62
- */
63
- public function getCustomermessage()
64
- {
65
- return $this->customermessage;
66
- }
67
-
68
- /**
69
- * @param string $errorcode
70
- */
71
- public function setErrorcode($errorcode)
72
- {
73
- $this->errorcode = $errorcode;
74
- }
75
-
76
- /**
77
- * @return string
78
- */
79
- public function getErrorcode()
80
- {
81
- return $this->errorcode;
82
- }
83
-
84
- /**
85
- * @param string $errormessage
86
- */
87
- public function setErrormessage($errormessage)
88
- {
89
- $this->errormessage = $errormessage;
90
- }
91
-
92
- /**
93
- * @return string
94
- */
95
- public function getErrormessage()
96
- {
97
- return $this->errormessage;
98
- }
99
-
100
- /**
101
- * @param string $status
102
- */
103
- public function setStatus($status)
104
- {
105
- $this->status = $status;
106
- }
107
-
108
- /**
109
- * @return string
110
- */
111
- public function getStatus()
112
- {
113
- return $this->status;
114
- }
115
-
116
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Response_Error extends Payone_Api_Response_Abstract
34
+ {
35
+ /**
36
+ * @var string
37
+ */
38
+ protected $status = NULL;
39
+ /**
40
+ * @var string
41
+ */
42
+ protected $errorcode = NULL;
43
+ /**
44
+ * @var string
45
+ */
46
+ protected $errormessage = NULL;
47
+ /**
48
+ * @var string
49
+ */
50
+ protected $customermessage = NULL;
51
+
52
+ /**
53
+ * @param string $customermessage
54
+ */
55
+ public function setCustomermessage($customermessage)
56
+ {
57
+ $this->customermessage = $customermessage;
58
+ }
59
+
60
+ /**
61
+ * @return string
62
+ */
63
+ public function getCustomermessage()
64
+ {
65
+ return $this->customermessage;
66
+ }
67
+
68
+ /**
69
+ * @param string $errorcode
70
+ */
71
+ public function setErrorcode($errorcode)
72
+ {
73
+ $this->errorcode = $errorcode;
74
+ }
75
+
76
+ /**
77
+ * @return string
78
+ */
79
+ public function getErrorcode()
80
+ {
81
+ return $this->errorcode;
82
+ }
83
+
84
+ /**
85
+ * @param string $errormessage
86
+ */
87
+ public function setErrormessage($errormessage)
88
+ {
89
+ $this->errormessage = $errormessage;
90
+ }
91
+
92
+ /**
93
+ * @return string
94
+ */
95
+ public function getErrormessage()
96
+ {
97
+ return $this->errormessage;
98
+ }
99
+
100
+ /**
101
+ * @param string $status
102
+ */
103
+ public function setStatus($status)
104
+ {
105
+ $this->status = $status;
106
+ }
107
+
108
+ /**
109
+ * @return string
110
+ */
111
+ public function getStatus()
112
+ {
113
+ return $this->status;
114
+ }
115
+
116
+ }
lib/Payone/Api/Response/Interface.php CHANGED
@@ -1,100 +1,100 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Response
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Response
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- interface Payone_Api_Response_Interface extends Payone_Protocol_Filter_Filterable
34
- {
35
- /**
36
- * @abstract
37
- * @param array $data
38
- */
39
- public function init(array $data = array());
40
-
41
- /**
42
- * @return array
43
- */
44
- public function toArray();
45
-
46
- /**
47
- * @return string
48
- */
49
- public function __toString();
50
- /**
51
- * @param string $status
52
- */
53
- public function setStatus($status);
54
-
55
- /**
56
- * @return string
57
- */
58
- public function getStatus();
59
-
60
- /**
61
- * @return bool
62
- */
63
- public function isApproved();
64
-
65
- /**
66
- * @return bool
67
- */
68
- public function isRedirect();
69
-
70
- /**
71
- * @return bool
72
- */
73
- public function isValid();
74
-
75
- /**
76
- * @return bool
77
- */
78
- public function isInvalid();
79
-
80
- /**
81
- * @return bool
82
- */
83
- public function isBlocked();
84
-
85
- /**
86
- * @return bool
87
- */
88
- public function isEnrolled();
89
-
90
- /**
91
- * @return bool
92
- */
93
- public function isError();
94
-
95
- /** @return string */
96
- public function getRawResponse();
97
-
98
- /** @param string $rawResponse */
99
- public function setRawResponse($rawResponse);
100
  }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ interface Payone_Api_Response_Interface extends Payone_Protocol_Filter_Filterable
34
+ {
35
+ /**
36
+ * @abstract
37
+ * @param array $data
38
+ */
39
+ public function init(array $data = array());
40
+
41
+ /**
42
+ * @return array
43
+ */
44
+ public function toArray();
45
+
46
+ /**
47
+ * @return string
48
+ */
49
+ public function __toString();
50
+ /**
51
+ * @param string $status
52
+ */
53
+ public function setStatus($status);
54
+
55
+ /**
56
+ * @return string
57
+ */
58
+ public function getStatus();
59
+
60
+ /**
61
+ * @return bool
62
+ */
63
+ public function isApproved();
64
+
65
+ /**
66
+ * @return bool
67
+ */
68
+ public function isRedirect();
69
+
70
+ /**
71
+ * @return bool
72
+ */
73
+ public function isValid();
74
+
75
+ /**
76
+ * @return bool
77
+ */
78
+ public function isInvalid();
79
+
80
+ /**
81
+ * @return bool
82
+ */
83
+ public function isBlocked();
84
+
85
+ /**
86
+ * @return bool
87
+ */
88
+ public function isEnrolled();
89
+
90
+ /**
91
+ * @return bool
92
+ */
93
+ public function isError();
94
+
95
+ /** @return string */
96
+ public function getRawResponse();
97
+
98
+ /** @param string $rawResponse */
99
+ public function setRawResponse($rawResponse);
100
  }
lib/Payone/Api/Response/Invalid.php CHANGED
@@ -1,116 +1,116 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Response
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Response
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Response_Invalid extends Payone_Api_Response_Abstract
34
- {
35
- /**
36
- * @var string
37
- */
38
- protected $status = NULL;
39
- /**
40
- * @var string
41
- */
42
- protected $errorcode = NULL;
43
- /**
44
- * @var string
45
- */
46
- protected $errormessage = NULL;
47
- /**
48
- * @var string
49
- */
50
- protected $customermessage = NULL;
51
-
52
- /**
53
- * @param string $customermessage
54
- */
55
- public function setCustomermessage($customermessage)
56
- {
57
- $this->customermessage = $customermessage;
58
- }
59
-
60
- /**
61
- * @return string
62
- */
63
- public function getCustomermessage()
64
- {
65
- return $this->customermessage;
66
- }
67
-
68
- /**
69
- * @param string $errorcode
70
- */
71
- public function setErrorcode($errorcode)
72
- {
73
- $this->errorcode = $errorcode;
74
- }
75
-
76
- /**
77
- * @return string
78
- */
79
- public function getErrorcode()
80
- {
81
- return $this->errorcode;
82
- }
83
-
84
- /**
85
- * @param string $errormessage
86
- */
87
- public function setErrormessage($errormessage)
88
- {
89
- $this->errormessage = $errormessage;
90
- }
91
-
92
- /**
93
- * @return string
94
- */
95
- public function getErrormessage()
96
- {
97
- return $this->errormessage;
98
- }
99
-
100
- /**
101
- * @param string $status
102
- */
103
- public function setStatus($status)
104
- {
105
- $this->status = $status;
106
- }
107
-
108
- /**
109
- * @return string
110
- */
111
- public function getStatus()
112
- {
113
- return $this->status;
114
- }
115
-
116
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Response_Invalid extends Payone_Api_Response_Abstract
34
+ {
35
+ /**
36
+ * @var string
37
+ */
38
+ protected $status = NULL;
39
+ /**
40
+ * @var string
41
+ */
42
+ protected $errorcode = NULL;
43
+ /**
44
+ * @var string
45
+ */
46
+ protected $errormessage = NULL;
47
+ /**
48
+ * @var string
49
+ */
50
+ protected $customermessage = NULL;
51
+
52
+ /**
53
+ * @param string $customermessage
54
+ */
55
+ public function setCustomermessage($customermessage)
56
+ {
57
+ $this->customermessage = $customermessage;
58
+ }
59
+
60
+ /**
61
+ * @return string
62
+ */
63
+ public function getCustomermessage()
64
+ {
65
+ return $this->customermessage;
66
+ }
67
+
68
+ /**
69
+ * @param string $errorcode
70
+ */
71
+ public function setErrorcode($errorcode)
72
+ {
73
+ $this->errorcode = $errorcode;
74
+ }
75
+
76
+ /**
77
+ * @return string
78
+ */
79
+ public function getErrorcode()
80
+ {
81
+ return $this->errorcode;
82
+ }
83
+
84
+ /**
85
+ * @param string $errormessage
86
+ */
87
+ public function setErrormessage($errormessage)
88
+ {
89
+ $this->errormessage = $errormessage;
90
+ }
91
+
92
+ /**
93
+ * @return string
94
+ */
95
+ public function getErrormessage()
96
+ {
97
+ return $this->errormessage;
98
+ }
99
+
100
+ /**
101
+ * @param string $status
102
+ */
103
+ public function setStatus($status)
104
+ {
105
+ $this->status = $status;
106
+ }
107
+
108
+ /**
109
+ * @return string
110
+ */
111
+ public function getStatus()
112
+ {
113
+ return $this->status;
114
+ }
115
+
116
+ }
lib/Payone/Api/Response/Management/GetFile.php CHANGED
@@ -1,70 +1,70 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Response
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Response
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Response_Management_GetFile extends Payone_Api_Response_Abstract
34
- {
35
- /**
36
- * @var string
37
- */
38
- protected $response = NULL;
39
-
40
- /**
41
- * @param string $response
42
- */
43
- public function setResponse($response)
44
- {
45
- $this->response = $response;
46
- }
47
-
48
- /**
49
- * @return string
50
- */
51
- public function getResponse()
52
- {
53
- return $this->response;
54
- }
55
-
56
- /**
57
- * @return string
58
- */
59
- public function __toString()
60
- {
61
- if ($this->isError()) {
62
- $result = parent::__toString();
63
- }
64
- else {
65
- $stringArray = array('status=' . $this->getStatus(), 'data=PDF-Content');
66
- $result = implode('|', $stringArray);
67
- }
68
- return $result;
69
- }
70
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Response_Management_GetFile extends Payone_Api_Response_Abstract
34
+ {
35
+ /**
36
+ * @var string
37
+ */
38
+ protected $response = NULL;
39
+
40
+ /**
41
+ * @param string $response
42
+ */
43
+ public function setResponse($response)
44
+ {
45
+ $this->response = $response;
46
+ }
47
+
48
+ /**
49
+ * @return string
50
+ */
51
+ public function getResponse()
52
+ {
53
+ return $this->response;
54
+ }
55
+
56
+ /**
57
+ * @return string
58
+ */
59
+ public function __toString()
60
+ {
61
+ if ($this->isError()) {
62
+ $result = parent::__toString();
63
+ }
64
+ else {
65
+ $stringArray = array('status=' . $this->getStatus(), 'data=PDF-Content');
66
+ $result = implode('|', $stringArray);
67
+ }
68
+ return $result;
69
+ }
70
+ }
lib/Payone/Api/Response/Management/GetInvoice.php CHANGED
@@ -1,70 +1,70 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Response
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Response
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Response_Management_GetInvoice extends Payone_Api_Response_Abstract
34
- {
35
- /**
36
- * @var string
37
- */
38
- protected $response = NULL;
39
-
40
- /**
41
- * @param string $response
42
- */
43
- public function setResponse($response)
44
- {
45
- $this->response = $response;
46
- }
47
-
48
- /**
49
- * @return string
50
- */
51
- public function getResponse()
52
- {
53
- return $this->response;
54
- }
55
-
56
- /**
57
- * @return string
58
- */
59
- public function __toString()
60
- {
61
- if ($this->isError()) {
62
- $result = parent::__toString();
63
- }
64
- else {
65
- $stringArray = array('status=' . $this->getStatus(), 'data=PDF-Content');
66
- $result = implode('|', $stringArray);
67
- }
68
- return $result;
69
- }
70
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Response_Management_GetInvoice extends Payone_Api_Response_Abstract
34
+ {
35
+ /**
36
+ * @var string
37
+ */
38
+ protected $response = NULL;
39
+
40
+ /**
41
+ * @param string $response
42
+ */
43
+ public function setResponse($response)
44
+ {
45
+ $this->response = $response;
46
+ }
47
+
48
+ /**
49
+ * @return string
50
+ */
51
+ public function getResponse()
52
+ {
53
+ return $this->response;
54
+ }
55
+
56
+ /**
57
+ * @return string
58
+ */
59
+ public function __toString()
60
+ {
61
+ if ($this->isError()) {
62
+ $result = parent::__toString();
63
+ }
64
+ else {
65
+ $stringArray = array('status=' . $this->getStatus(), 'data=PDF-Content');
66
+ $result = implode('|', $stringArray);
67
+ }
68
+ return $result;
69
+ }
70
+ }
lib/Payone/Api/Response/Management/ManageMandate/Approved.php CHANGED
@@ -1,155 +1,155 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Response
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Response
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Response_Management_ManageMandate_Approved extends Payone_Api_Response_Abstract
34
- {
35
- /**
36
- * @var string
37
- */
38
- protected $mandate_identification = NULL;
39
- /**
40
- * @var string
41
- */
42
- protected $mandate_status = NULL;
43
- /**
44
- * @var string
45
- */
46
- protected $mandate_text = NULL;
47
- /**
48
- * @var string
49
- */
50
- protected $creditor_identifier = NULL;
51
- /**
52
- * @var string
53
- */
54
- protected $iban = NULL;
55
- /**
56
- * @var string
57
- */
58
- protected $bic = NULL;
59
-
60
- /**
61
- * @param string $mandateIdentification
62
- */
63
- public function setMandateIdentification($mandateIdentification)
64
- {
65
- $this->mandate_identification = $mandateIdentification;
66
- }
67
-
68
- /**
69
- * @return string
70
- */
71
- public function getMandateIdentification()
72
- {
73
- return $this->mandate_identification;
74
- }
75
-
76
- /**
77
- * @param string $mandateStatus
78
- */
79
- public function setMandateStatus($mandateStatus)
80
- {
81
- $this->mandate_status = $mandateStatus;
82
- }
83
-
84
- /**
85
- * @return string
86
- */
87
- public function getMandateStatus()
88
- {
89
- return $this->mandate_status;
90
- }
91
-
92
- /**
93
- * @param string $mandateText
94
- */
95
- public function setMandateText($mandateText)
96
- {
97
- $this->mandate_text = $mandateText;
98
- }
99
-
100
- /**
101
- * @return string
102
- */
103
- public function getMandateText()
104
- {
105
- return $this->mandate_text;
106
- }
107
-
108
- /**
109
- * @param string $creditorIdentifier
110
- */
111
- public function setCreditorIdentifier($creditorIdentifier)
112
- {
113
- $this->creditor_identifier = $creditorIdentifier;
114
- }
115
-
116
- /**
117
- * @return string
118
- */
119
- public function getCreditorIdentifier()
120
- {
121
- return $this->creditor_identifier;
122
- }
123
-
124
- /**
125
- * @param string $iban
126
- */
127
- public function setIban($iban)
128
- {
129
- $this->iban = $iban;
130
- }
131
-
132
- /**
133
- * @return string
134
- */
135
- public function getIban()
136
- {
137
- return $this->iban;
138
- }
139
-
140
- /**
141
- * @param string $bic
142
- */
143
- public function setBic($bic)
144
- {
145
- $this->bic = $bic;
146
- }
147
-
148
- /**
149
- * @return string
150
- */
151
- public function getBic()
152
- {
153
- return $this->bic;
154
- }
155
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Response_Management_ManageMandate_Approved extends Payone_Api_Response_Abstract
34
+ {
35
+ /**
36
+ * @var string
37
+ */
38
+ protected $mandate_identification = NULL;
39
+ /**
40
+ * @var string
41
+ */
42
+ protected $mandate_status = NULL;
43
+ /**
44
+ * @var string
45
+ */
46
+ protected $mandate_text = NULL;
47
+ /**
48
+ * @var string
49
+ */
50
+ protected $creditor_identifier = NULL;
51
+ /**
52
+ * @var string
53
+ */
54
+ protected $iban = NULL;
55
+ /**
56
+ * @var string
57
+ */
58
+ protected $bic = NULL;
59
+
60
+ /**
61
+ * @param string $mandateIdentification
62
+ */
63
+ public function setMandateIdentification($mandateIdentification)
64
+ {
65
+ $this->mandate_identification = $mandateIdentification;
66
+ }
67
+
68
+ /**
69
+ * @return string
70
+ */
71
+ public function getMandateIdentification()
72
+ {
73
+ return $this->mandate_identification;
74
+ }
75
+
76
+ /**
77
+ * @param string $mandateStatus
78
+ */
79
+ public function setMandateStatus($mandateStatus)
80
+ {
81
+ $this->mandate_status = $mandateStatus;
82
+ }
83
+
84
+ /**
85
+ * @return string
86
+ */
87
+ public function getMandateStatus()
88
+ {
89
+ return $this->mandate_status;
90
+ }
91
+
92
+ /**
93
+ * @param string $mandateText
94
+ */
95
+ public function setMandateText($mandateText)
96
+ {
97
+ $this->mandate_text = $mandateText;
98
+ }
99
+
100
+ /**
101
+ * @return string
102
+ */
103
+ public function getMandateText()
104
+ {
105
+ return $this->mandate_text;
106
+ }
107
+
108
+ /**
109
+ * @param string $creditorIdentifier
110
+ */
111
+ public function setCreditorIdentifier($creditorIdentifier)
112
+ {
113
+ $this->creditor_identifier = $creditorIdentifier;
114
+ }
115
+
116
+ /**
117
+ * @return string
118
+ */
119
+ public function getCreditorIdentifier()
120
+ {
121
+ return $this->creditor_identifier;
122
+ }
123
+
124
+ /**
125
+ * @param string $iban
126
+ */
127
+ public function setIban($iban)
128
+ {
129
+ $this->iban = $iban;
130
+ }
131
+
132
+ /**
133
+ * @return string
134
+ */
135
+ public function getIban()
136
+ {
137
+ return $this->iban;
138
+ }
139
+
140
+ /**
141
+ * @param string $bic
142
+ */
143
+ public function setBic($bic)
144
+ {
145
+ $this->bic = $bic;
146
+ }
147
+
148
+ /**
149
+ * @return string
150
+ */
151
+ public function getBic()
152
+ {
153
+ return $this->bic;
154
+ }
155
+ }
lib/Payone/Api/Response/Management/UpdateAccess/Ok.php CHANGED
@@ -1,35 +1,35 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Response
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Response
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Response_Management_UpdateAccess_Ok extends Payone_Api_Response_Abstract
34
- {
35
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Response_Management_UpdateAccess_Ok extends Payone_Api_Response_Abstract
34
+ {
35
+ }
lib/Payone/Api/Response/Preauthorization/Approved.php CHANGED
@@ -1,36 +1,36 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Response
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Response
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Response_Preauthorization_Approved
34
- extends Payone_Api_Response_Authorization_Abstract
35
- {
36
  }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Response_Preauthorization_Approved
34
+ extends Payone_Api_Response_Authorization_Abstract
35
+ {
36
  }
lib/Payone/Api/Response/Preauthorization/Redirect.php CHANGED
@@ -1,36 +1,36 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Response
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Response
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Response_Preauthorization_Redirect
34
- extends Payone_Api_Response_Authorization_Redirect
35
- {
36
  }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Response_Preauthorization_Redirect
34
+ extends Payone_Api_Response_Authorization_Redirect
35
+ {
36
  }
lib/Payone/Api/Response/Refund/Approved.php CHANGED
@@ -1,75 +1,75 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Response
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Response
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Response_Refund_Approved extends Payone_Api_Response_Abstract
34
- {
35
- /**
36
- * @var int
37
- */
38
- protected $txid = NULL;
39
- /**
40
- * @var string
41
- */
42
- protected $protect_result_avs = NULL;
43
-
44
- /**
45
- * @param string $protect_result_avs
46
- */
47
- public function setProtectResultAvs($protect_result_avs)
48
- {
49
- $this->protect_result_avs = $protect_result_avs;
50
- }
51
-
52
- /**
53
- * @return string
54
- */
55
- public function getProtectResultAvs()
56
- {
57
- return $this->protect_result_avs;
58
- }
59
-
60
- /**
61
- * @param int $txid
62
- */
63
- public function setTxid($txid)
64
- {
65
- $this->txid = $txid;
66
- }
67
-
68
- /**
69
- * @return int
70
- */
71
- public function getTxid()
72
- {
73
- return $this->txid;
74
- }
75
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Response_Refund_Approved extends Payone_Api_Response_Abstract
34
+ {
35
+ /**
36
+ * @var int
37
+ */
38
+ protected $txid = NULL;
39
+ /**
40
+ * @var string
41
+ */
42
+ protected $protect_result_avs = NULL;
43
+
44
+ /**
45
+ * @param string $protect_result_avs
46
+ */
47
+ public function setProtectResultAvs($protect_result_avs)
48
+ {
49
+ $this->protect_result_avs = $protect_result_avs;
50
+ }
51
+
52
+ /**
53
+ * @return string
54
+ */
55
+ public function getProtectResultAvs()
56
+ {
57
+ return $this->protect_result_avs;
58
+ }
59
+
60
+ /**
61
+ * @param int $txid
62
+ */
63
+ public function setTxid($txid)
64
+ {
65
+ $this->txid = $txid;
66
+ }
67
+
68
+ /**
69
+ * @return int
70
+ */
71
+ public function getTxid()
72
+ {
73
+ return $this->txid;
74
+ }
75
+ }
lib/Payone/Api/Response/Vauthorization/Approved.php CHANGED
@@ -1,95 +1,95 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Response
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Response
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Response_Vauthorization_Approved extends Payone_Api_Response_Abstract
34
- {
35
- /**
36
- * @var int
37
- */
38
- protected $vxid = NULL;
39
- /**
40
- * @var string
41
- */
42
- protected $vaid = NULL;
43
- /**
44
- * @var string
45
- */
46
- protected $userid = NULL;
47
-
48
- /**
49
- * @param string $userid
50
- */
51
- public function setUserid($userid)
52
- {
53
- $this->userid = $userid;
54
- }
55
-
56
- /**
57
- * @return string
58
- */
59
- public function getUserid()
60
- {
61
- return $this->userid;
62
- }
63
-
64
- /**
65
- * @param string $vaid
66
- */
67
- public function setVaid($vaid)
68
- {
69
- $this->vaid = $vaid;
70
- }
71
-
72
- /**
73
- * @return string
74
- */
75
- public function getVaid()
76
- {
77
- return $this->vaid;
78
- }
79
-
80
- /**
81
- * @param int $vxid
82
- */
83
- public function setVxid($vxid)
84
- {
85
- $this->vxid = $vxid;
86
- }
87
-
88
- /**
89
- * @return int
90
- */
91
- public function getVxid()
92
- {
93
- return $this->vxid;
94
- }
95
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Response
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Response
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Response_Vauthorization_Approved extends Payone_Api_Response_Abstract
34
+ {
35
+ /**
36
+ * @var int
37
+ */
38
+ protected $vxid = NULL;
39
+ /**
40
+ * @var string
41
+ */
42
+ protected $vaid = NULL;
43
+ /**
44
+ * @var string
45
+ */
46
+ protected $userid = NULL;
47
+
48
+ /**
49
+ * @param string $userid
50
+ */
51
+ public function setUserid($userid)
52
+ {
53
+ $this->userid = $userid;
54
+ }
55
+
56
+ /**
57
+ * @return string
58
+ */
59
+ public function getUserid()
60
+ {
61
+ return $this->userid;
62
+ }
63
+
64
+ /**
65
+ * @param string $vaid
66
+ */
67
+ public function setVaid($vaid)
68
+ {
69
+ $this->vaid = $vaid;
70
+ }
71
+
72
+ /**
73
+ * @return string
74
+ */
75
+ public function getVaid()
76
+ {
77
+ return $this->vaid;
78
+ }
79
+
80
+ /**
81
+ * @param int $vxid
82
+ */
83
+ public function setVxid($vxid)
84
+ {
85
+ $this->vxid = $vxid;
86
+ }
87
+
88
+ /**
89
+ * @return int
90
+ */
91
+ public function getVxid()
92
+ {
93
+ return $this->vxid;
94
+ }
95
+ }
lib/Payone/Api/Service/Abstract.php CHANGED
@@ -1,172 +1,172 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Service
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Service
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- abstract class Payone_Api_Service_Abstract
34
- implements Payone_Api_Service_Interface
35
- {
36
- /**
37
- * @var Payone_Api_Adapter_Interface
38
- */
39
- protected $adapter = null;
40
- /**
41
- * @var Payone_Api_Service_ProtocolRequest_Interface
42
- */
43
- protected $serviceProtocol = null;
44
- /** @var Payone_Api_Mapper_Request_Interface */
45
- protected $mapperRequest = null;
46
- /** @var Payone_Api_Mapper_Response_Interface */
47
- protected $mapperResponse = null;
48
-
49
- /**
50
- * @todo we could use a Service here which uses a collection of Valdiators to validate the Request
51
- *
52
- * @var Payone_Api_Validator_Interface
53
- */
54
- protected $validator = null;
55
-
56
- /**
57
- * @param Payone_Api_Request_Interface $request
58
- */
59
- protected function validateRequest(Payone_Api_Request_Interface $request)
60
- {
61
- $validator = $this->getValidator();
62
- if ($validator instanceof Payone_Api_Validator_Interface) {
63
- $validator->validateRequest($request);
64
- }
65
- }
66
-
67
- /**
68
- * @param Payone_Api_Request_Interface $request
69
- * @param Payone_Api_Response_Interface $response
70
- */
71
- protected function protocol(Payone_Api_Request_Interface $request,
72
- Payone_Api_Response_Interface $response)
73
- {
74
- $serviceProtocol = $this->getServiceProtocol();
75
- if ($serviceProtocol instanceof Payone_Api_Service_ProtocolRequest_Interface) {
76
- $serviceProtocol->protocol($request, $response);
77
- }
78
- }
79
-
80
- /**
81
- * @param Exception $e
82
- * @param Payone_Api_Request_Interface $request
83
- */
84
- protected function protocolException(Exception $e, Payone_Api_Request_Interface $request)
85
- {
86
- $serviceProtocol = $this->getServiceProtocol();
87
- if ($serviceProtocol instanceof Payone_Api_Service_ProtocolRequest_Interface) {
88
- $serviceProtocol->protocolException($e, $request);
89
- }
90
- }
91
-
92
- /**
93
- * @param Payone_Api_Adapter_Interface $adapter
94
- */
95
- public function setAdapter(Payone_Api_Adapter_Interface $adapter)
96
- {
97
- $this->adapter = $adapter;
98
- }
99
-
100
- /**
101
- * @return Payone_Api_Adapter_Interface
102
- */
103
- public function getAdapter()
104
- {
105
- return $this->adapter;
106
- }
107
-
108
- /**
109
- * @param Payone_Api_Service_ProtocolRequest_Interface $serviceProtocol
110
- */
111
- public function setServiceProtocol(Payone_Api_Service_ProtocolRequest_Interface $serviceProtocol)
112
- {
113
- $this->serviceProtocol = $serviceProtocol;
114
- }
115
-
116
- /**
117
- * @return Payone_Api_Service_ProtocolRequest_Interface
118
- */
119
- public function getServiceProtocol()
120
- {
121
- return $this->serviceProtocol;
122
- }
123
-
124
- /**
125
- * @param Payone_Api_Mapper_Request_Interface $mapperRequest
126
- */
127
- public function setMapperRequest($mapperRequest)
128
- {
129
- $this->mapperRequest = $mapperRequest;
130
- }
131
-
132
- /**
133
- * @return Payone_Api_Mapper_Request_Interface
134
- */
135
- public function getMapperRequest()
136
- {
137
- return $this->mapperRequest;
138
- }
139
-
140
- /**
141
- * @param Payone_Api_Mapper_Response_Interface $mapperResponse
142
- */
143
- public function setMapperResponse(Payone_Api_Mapper_Response_Interface $mapperResponse)
144
- {
145
- $this->mapperResponse = $mapperResponse;
146
- }
147
-
148
- /**
149
- * @return Payone_Api_Mapper_Response_Interface
150
- */
151
- public function getMapperResponse()
152
- {
153
- return $this->mapperResponse;
154
- }
155
-
156
- /**
157
- * @param \Payone_Api_Validator_Interface $validator
158
- */
159
- public function setValidator(Payone_Api_Validator_Interface $validator)
160
- {
161
- $this->validator = $validator;
162
- }
163
-
164
- /**
165
- * @return \Payone_Api_Validator_Interface
166
- */
167
- public function getValidator()
168
- {
169
- return $this->validator;
170
- }
171
-
172
  }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Service
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ abstract class Payone_Api_Service_Abstract
34
+ implements Payone_Api_Service_Interface
35
+ {
36
+ /**
37
+ * @var Payone_Api_Adapter_Interface
38
+ */
39
+ protected $adapter = null;
40
+ /**
41
+ * @var Payone_Api_Service_ProtocolRequest_Interface
42
+ */
43
+ protected $serviceProtocol = null;
44
+ /** @var Payone_Api_Mapper_Request_Interface */
45
+ protected $mapperRequest = null;
46
+ /** @var Payone_Api_Mapper_Response_Interface */
47
+ protected $mapperResponse = null;
48
+
49
+ /**
50
+ * @todo we could use a Service here which uses a collection of Valdiators to validate the Request
51
+ *
52
+ * @var Payone_Api_Validator_Interface
53
+ */
54
+ protected $validator = null;
55
+
56
+ /**
57
+ * @param Payone_Api_Request_Interface $request
58
+ */
59
+ protected function validateRequest(Payone_Api_Request_Interface $request)
60
+ {
61
+ $validator = $this->getValidator();
62
+ if ($validator instanceof Payone_Api_Validator_Interface) {
63
+ $validator->validateRequest($request);
64
+ }
65
+ }
66
+
67
+ /**
68
+ * @param Payone_Api_Request_Interface $request
69
+ * @param Payone_Api_Response_Interface $response
70
+ */
71
+ protected function protocol(Payone_Api_Request_Interface $request,
72
+ Payone_Api_Response_Interface $response)
73
+ {
74
+ $serviceProtocol = $this->getServiceProtocol();
75
+ if ($serviceProtocol instanceof Payone_Api_Service_ProtocolRequest_Interface) {
76
+ $serviceProtocol->protocol($request, $response);
77
+ }
78
+ }
79
+
80
+ /**
81
+ * @param Exception $e
82
+ * @param Payone_Api_Request_Interface $request
83
+ */
84
+ protected function protocolException(Exception $e, Payone_Api_Request_Interface $request)
85
+ {
86
+ $serviceProtocol = $this->getServiceProtocol();
87
+ if ($serviceProtocol instanceof Payone_Api_Service_ProtocolRequest_Interface) {
88
+ $serviceProtocol->protocolException($e, $request);
89
+ }
90
+ }
91
+
92
+ /**
93
+ * @param Payone_Api_Adapter_Interface $adapter
94
+ */
95
+ public function setAdapter(Payone_Api_Adapter_Interface $adapter)
96
+ {
97
+ $this->adapter = $adapter;
98
+ }
99
+
100
+ /**
101
+ * @return Payone_Api_Adapter_Interface
102
+ */
103
+ public function getAdapter()
104
+ {
105
+ return $this->adapter;
106
+ }
107
+
108
+ /**
109
+ * @param Payone_Api_Service_ProtocolRequest_Interface $serviceProtocol
110
+ */
111
+ public function setServiceProtocol(Payone_Api_Service_ProtocolRequest_Interface $serviceProtocol)
112
+ {
113
+ $this->serviceProtocol = $serviceProtocol;
114
+ }
115
+
116
+ /**
117
+ * @return Payone_Api_Service_ProtocolRequest_Interface
118
+ */
119
+ public function getServiceProtocol()
120
+ {
121
+ return $this->serviceProtocol;
122
+ }
123
+
124
+ /**
125
+ * @param Payone_Api_Mapper_Request_Interface $mapperRequest
126
+ */
127
+ public function setMapperRequest($mapperRequest)
128
+ {
129
+ $this->mapperRequest = $mapperRequest;
130
+ }
131
+
132
+ /**
133
+ * @return Payone_Api_Mapper_Request_Interface
134
+ */
135
+ public function getMapperRequest()
136
+ {
137
+ return $this->mapperRequest;
138
+ }
139
+
140
+ /**
141
+ * @param Payone_Api_Mapper_Response_Interface $mapperResponse
142
+ */
143
+ public function setMapperResponse(Payone_Api_Mapper_Response_Interface $mapperResponse)
144
+ {
145
+ $this->mapperResponse = $mapperResponse;
146
+ }
147
+
148
+ /**
149
+ * @return Payone_Api_Mapper_Response_Interface
150
+ */
151
+ public function getMapperResponse()
152
+ {
153
+ return $this->mapperResponse;
154
+ }
155
+
156
+ /**
157
+ * @param \Payone_Api_Validator_Interface $validator
158
+ */
159
+ public function setValidator(Payone_Api_Validator_Interface $validator)
160
+ {
161
+ $this->validator = $validator;
162
+ }
163
+
164
+ /**
165
+ * @return \Payone_Api_Validator_Interface
166
+ */
167
+ public function getValidator()
168
+ {
169
+ return $this->validator;
170
+ }
171
+
172
  }
lib/Payone/Api/Service/Interface.php CHANGED
@@ -1,54 +1,54 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Service
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Service
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- interface Payone_Api_Service_Interface
34
- {
35
- /**
36
- * @param \Payone_Api_Adapter_Interface $adapter
37
- */
38
- public function setAdapter(Payone_Api_Adapter_Interface $adapter);
39
-
40
- /**
41
- * @return \Payone_Api_Adapter_Interface
42
- */
43
- public function getAdapter();
44
-
45
- /**
46
- * @param Payone_Api_Service_ProtocolRequest_Interface $serviceProtocol
47
- */
48
- public function setServiceProtocol(Payone_Api_Service_ProtocolRequest_Interface $serviceProtocol);
49
-
50
- /**
51
- * @return Payone_Api_Service_ProtocolRequest_Interface
52
- */
53
- public function getServiceProtocol();
54
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Service
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ interface Payone_Api_Service_Interface
34
+ {
35
+ /**
36
+ * @param \Payone_Api_Adapter_Interface $adapter
37
+ */
38
+ public function setAdapter(Payone_Api_Adapter_Interface $adapter);
39
+
40
+ /**
41
+ * @return \Payone_Api_Adapter_Interface
42
+ */
43
+ public function getAdapter();
44
+
45
+ /**
46
+ * @param Payone_Api_Service_ProtocolRequest_Interface $serviceProtocol
47
+ */
48
+ public function setServiceProtocol(Payone_Api_Service_ProtocolRequest_Interface $serviceProtocol);
49
+
50
+ /**
51
+ * @return Payone_Api_Service_ProtocolRequest_Interface
52
+ */
53
+ public function getServiceProtocol();
54
+ }
lib/Payone/Api/Service/Management/GetFile.php CHANGED
@@ -1,66 +1,66 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Service
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Service
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Service_Management_GetFile
34
- extends Payone_Api_Service_Abstract
35
- {
36
- /**
37
- * @param Payone_Api_Request_GetFile $request
38
- * @return Payone_Api_Response_Management_GetFile
39
- * @throws Exception
40
- */
41
- public function getFile(Payone_Api_Request_GetFile $request)
42
- {
43
- try {
44
- $this->validateRequest($request);
45
-
46
- $requestParams = $request->toArray();
47
-
48
- $adapter = $this->getAdapter();
49
-
50
- $responseRaw = $adapter->request($requestParams);
51
-
52
- $response = $this->getMapperResponse()->map($responseRaw);
53
-
54
- $response->setRawResponse($adapter->getRawResponse());
55
-
56
- $this->protocol($request, $response);
57
- }
58
- catch (Exception $e) {
59
- $this->protocolException($e, $request);
60
- throw $e;
61
- }
62
-
63
- return $response;
64
- }
65
-
66
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Service
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Service_Management_GetFile
34
+ extends Payone_Api_Service_Abstract
35
+ {
36
+ /**
37
+ * @param Payone_Api_Request_GetFile $request
38
+ * @return Payone_Api_Response_Management_GetFile
39
+ * @throws Exception
40
+ */
41
+ public function getFile(Payone_Api_Request_GetFile $request)
42
+ {
43
+ try {
44
+ $this->validateRequest($request);
45
+
46
+ $requestParams = $request->toArray();
47
+
48
+ $adapter = $this->getAdapter();
49
+
50
+ $responseRaw = $adapter->request($requestParams);
51
+
52
+ $response = $this->getMapperResponse()->map($responseRaw);
53
+
54
+ $response->setRawResponse($adapter->getRawResponse());
55
+
56
+ $this->protocol($request, $response);
57
+ }
58
+ catch (Exception $e) {
59
+ $this->protocolException($e, $request);
60
+ throw $e;
61
+ }
62
+
63
+ return $response;
64
+ }
65
+
66
+ }
lib/Payone/Api/Service/Management/GetInvoice.php CHANGED
@@ -1,85 +1,85 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Service
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- * Perform an AddressCheck by providing a Request Object
26
- *
27
- * <b>Example:</b>
28
- * <pre class="prettyprint">
29
- * // Construct the service (Builder handles dependencies):
30
- * // custom config can be injected, see Payone_Config
31
- * $builder = new Payone_Builder();
32
- *
33
- * $service = $builder->buildServiceVerificationAddressCheck();
34
- *
35
- * // Construct a valid request:
36
- * $request = new Payone_Api_Request_AddressCheck();
37
- * $request->setAid($aid);
38
- * // Set all required parameters for an "addresscheck" request
39
- *
40
- * // Start AddressCheck action:
41
- * $response = $service->check($request);
42
- * </pre>
43
- *
44
- *
45
- * @category Payone
46
- * @package Payone_Api
47
- * @subpackage Service
48
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
49
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
50
- * @link http://www.noovias.com
51
- */
52
- class Payone_Api_Service_Management_GetInvoice
53
- extends Payone_Api_Service_Abstract
54
- {
55
- /**
56
- * @param Payone_Api_Request_GetInvoice $request
57
- * @return Payone_Api_Response_Management_GetInvoice
58
- * @throws Exception
59
- */
60
- public function getInvoice(Payone_Api_Request_GetInvoice $request)
61
- {
62
- try {
63
- $this->validateRequest($request);
64
-
65
- $requestParams = $request->toArray();
66
-
67
- $adapter = $this->getAdapter();
68
-
69
- $responseRaw = $adapter->request($requestParams);
70
-
71
- $response = $this->getMapperResponse()->map($responseRaw);
72
-
73
- $response->setRawResponse($adapter->getRawResponse());
74
-
75
- $this->protocol($request, $response);
76
- }
77
- catch (Exception $e) {
78
- $this->protocolException($e, $request);
79
- throw $e;
80
- }
81
-
82
- return $response;
83
- }
84
-
85
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ * Perform an AddressCheck by providing a Request Object
26
+ *
27
+ * <b>Example:</b>
28
+ * <pre class="prettyprint">
29
+ * // Construct the service (Builder handles dependencies):
30
+ * // custom config can be injected, see Payone_Config
31
+ * $builder = new Payone_Builder();
32
+ *
33
+ * $service = $builder->buildServiceVerificationAddressCheck();
34
+ *
35
+ * // Construct a valid request:
36
+ * $request = new Payone_Api_Request_AddressCheck();
37
+ * $request->setAid($aid);
38
+ * // Set all required parameters for an "addresscheck" request
39
+ *
40
+ * // Start AddressCheck action:
41
+ * $response = $service->check($request);
42
+ * </pre>
43
+ *
44
+ *
45
+ * @category Payone
46
+ * @package Payone_Api
47
+ * @subpackage Service
48
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
49
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
50
+ * @link http://www.noovias.com
51
+ */
52
+ class Payone_Api_Service_Management_GetInvoice
53
+ extends Payone_Api_Service_Abstract
54
+ {
55
+ /**
56
+ * @param Payone_Api_Request_GetInvoice $request
57
+ * @return Payone_Api_Response_Management_GetInvoice
58
+ * @throws Exception
59
+ */
60
+ public function getInvoice(Payone_Api_Request_GetInvoice $request)
61
+ {
62
+ try {
63
+ $this->validateRequest($request);
64
+
65
+ $requestParams = $request->toArray();
66
+
67
+ $adapter = $this->getAdapter();
68
+
69
+ $responseRaw = $adapter->request($requestParams);
70
+
71
+ $response = $this->getMapperResponse()->map($responseRaw);
72
+
73
+ $response->setRawResponse($adapter->getRawResponse());
74
+
75
+ $this->protocol($request, $response);
76
+ }
77
+ catch (Exception $e) {
78
+ $this->protocolException($e, $request);
79
+ throw $e;
80
+ }
81
+
82
+ return $response;
83
+ }
84
+
85
+ }
lib/Payone/Api/Service/Management/ManageMandate.php CHANGED
@@ -1,67 +1,67 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Service
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Service
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Service_Management_ManageMandate
34
- extends Payone_Api_Service_Abstract
35
- {
36
- /**
37
- * Perform ManageMandate for the injected Request
38
- *
39
- * @api
40
- *
41
- * @param Payone_Api_Request_ManageMandate $request
42
- * @return Payone_Api_Response_Management_ManageMandate_Approved|Payone_Api_Response_Error
43
- * @throws Exception
44
- */
45
- public function managemandate(Payone_Api_Request_ManageMandate $request)
46
- {
47
- try {
48
- $this->validateRequest($request);
49
-
50
- $requestParams = $request->toArray();
51
-
52
- $adapter = $this->getAdapter();
53
-
54
- $responseRaw = $adapter->request($requestParams);
55
-
56
- $response = $this->getMapperResponse()->map($responseRaw);
57
-
58
- $this->protocol($request, $response);
59
- }
60
- catch (Exception $e) {
61
- $this->protocolException($e, $request);
62
- throw $e;
63
- }
64
-
65
- return $response;
66
- }
67
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Service
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Service_Management_ManageMandate
34
+ extends Payone_Api_Service_Abstract
35
+ {
36
+ /**
37
+ * Perform ManageMandate for the injected Request
38
+ *
39
+ * @api
40
+ *
41
+ * @param Payone_Api_Request_ManageMandate $request
42
+ * @return Payone_Api_Response_Management_ManageMandate_Approved|Payone_Api_Response_Error
43
+ * @throws Exception
44
+ */
45
+ public function managemandate(Payone_Api_Request_ManageMandate $request)
46
+ {
47
+ try {
48
+ $this->validateRequest($request);
49
+
50
+ $requestParams = $request->toArray();
51
+
52
+ $adapter = $this->getAdapter();
53
+
54
+ $responseRaw = $adapter->request($requestParams);
55
+
56
+ $response = $this->getMapperResponse()->map($responseRaw);
57
+
58
+ $this->protocol($request, $response);
59
+ }
60
+ catch (Exception $e) {
61
+ $this->protocolException($e, $request);
62
+ throw $e;
63
+ }
64
+
65
+ return $response;
66
+ }
67
+ }
lib/Payone/Api/Service/Management/UpdateAccess.php CHANGED
@@ -1,83 +1,83 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Service
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- * UpdateAccess by providing a Request Object
26
- *
27
- * <b>Example:</b>
28
- * <pre class="prettyprint">
29
- * // Construct the service (Builder handles dependencies):
30
- * // custom config can be injected, see Payone_Config
31
- * $builder = new Payone_Builder();
32
- *
33
- * $service = $builder->buildServicePaymentUpdateAccess();
34
- *
35
- * // Construct a valid request:
36
- * $request = new Payone_Api_Request_UpdateAccess();
37
- * $request->setAid($aid);
38
- * // Set all required parameters for a "createaccess" request
39
- *
40
- * // Start createaccess action:
41
- * $response = $service->createaccess($request);
42
- * </pre>
43
- *
44
- * @category Payone
45
- * @package Payone_Api
46
- * @subpackage Service
47
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
48
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
49
- * @link http://www.noovias.com
50
- */
51
- class Payone_Api_Service_Management_UpdateAccess
52
- extends Payone_Api_Service_Abstract
53
- {
54
- /**
55
- * Perform UpdateAccess for the injected Request
56
- *
57
- * @api
58
- *
59
- * @param Payone_Api_Request_UpdateAccess $request
60
- * @return Payone_Api_Response_Management_UpdateAccess_Ok|Payone_Api_Response_Error
61
- * @throws Exception
62
- */
63
- public function updateaccess(Payone_Api_Request_UpdateAccess $request)
64
- {
65
- try {
66
- $this->validateRequest($request);
67
-
68
- $requestParams = $this->getMapperRequest()->map($request);
69
-
70
- $responseRaw = $this->getAdapter()->request($requestParams);
71
-
72
- $response = $this->getMapperResponse()->map($responseRaw);
73
-
74
- $this->protocol($request, $response);
75
- }
76
- catch (Exception $e) {
77
- $this->protocolException($e, $request);
78
- throw $e;
79
- }
80
-
81
- return $response;
82
- }
83
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ * UpdateAccess by providing a Request Object
26
+ *
27
+ * <b>Example:</b>
28
+ * <pre class="prettyprint">
29
+ * // Construct the service (Builder handles dependencies):
30
+ * // custom config can be injected, see Payone_Config
31
+ * $builder = new Payone_Builder();
32
+ *
33
+ * $service = $builder->buildServicePaymentUpdateAccess();
34
+ *
35
+ * // Construct a valid request:
36
+ * $request = new Payone_Api_Request_UpdateAccess();
37
+ * $request->setAid($aid);
38
+ * // Set all required parameters for a "createaccess" request
39
+ *
40
+ * // Start createaccess action:
41
+ * $response = $service->createaccess($request);
42
+ * </pre>
43
+ *
44
+ * @category Payone
45
+ * @package Payone_Api
46
+ * @subpackage Service
47
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
48
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
49
+ * @link http://www.noovias.com
50
+ */
51
+ class Payone_Api_Service_Management_UpdateAccess
52
+ extends Payone_Api_Service_Abstract
53
+ {
54
+ /**
55
+ * Perform UpdateAccess for the injected Request
56
+ *
57
+ * @api
58
+ *
59
+ * @param Payone_Api_Request_UpdateAccess $request
60
+ * @return Payone_Api_Response_Management_UpdateAccess_Ok|Payone_Api_Response_Error
61
+ * @throws Exception
62
+ */
63
+ public function updateaccess(Payone_Api_Request_UpdateAccess $request)
64
+ {
65
+ try {
66
+ $this->validateRequest($request);
67
+
68
+ $requestParams = $this->getMapperRequest()->map($request);
69
+
70
+ $responseRaw = $this->getAdapter()->request($requestParams);
71
+
72
+ $response = $this->getMapperResponse()->map($responseRaw);
73
+
74
+ $this->protocol($request, $response);
75
+ }
76
+ catch (Exception $e) {
77
+ $this->protocolException($e, $request);
78
+ throw $e;
79
+ }
80
+
81
+ return $response;
82
+ }
83
+ }
lib/Payone/Api/Service/Payment/Abstract.php CHANGED
@@ -1,36 +1,36 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Service
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Service
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Service_Payment_Abstract
34
- extends Payone_Api_Service_Abstract
35
- {
36
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Service
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Service_Payment_Abstract
34
+ extends Payone_Api_Service_Abstract
35
+ {
36
+ }
lib/Payone/Api/Service/Payment/Authorize.php CHANGED
@@ -1,83 +1,83 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Service
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- * Authorize a new Payment by providing a Request Object
26
- *
27
- * <b>Example Using the Payone Builder</b>
28
- * <pre class="prettyprint">
29
- * // custom config can be injected, see Payone_Config
30
- * $builder = new Payone_Builder();
31
- *
32
- * $service = $builder->buildServicePaymentAuthorize();
33
- *
34
- * $request = new Payone_Api_Request_Authorization();
35
- *
36
- * $service->authorize($request);
37
- * </pre>
38
- *
39
- * @category Payone
40
- * @package Payone_Api
41
- * @subpackage Service
42
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
43
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
44
- * @link http://www.noovias.com
45
- *
46
- * @api
47
- */
48
- class Payone_Api_Service_Payment_Authorize
49
- extends Payone_Api_Service_Payment_Abstract
50
- implements Payone_Api_Service_Payment_AuthorizeInterface
51
- {
52
- /**
53
- * Execute Authorization for the injected Request
54
- *
55
- * @api
56
- *
57
- * @param Payone_Api_Request_Authorization $request
58
- * @return Payone_Api_Response_Authorization_Approved|Payone_Api_Response_Authorization_Redirect|Payone_Api_Response_Error
59
- * @throws Exception
60
- */
61
- public function authorize(Payone_Api_Request_Authorization $request)
62
- {
63
- try
64
- {
65
- $this->validateRequest($request);
66
-
67
- $requestParams = $this->getMapperRequest()->map($request);
68
-
69
- $responseRaw = $this->getAdapter()->request($requestParams);
70
-
71
- $response = $this->getMapperResponse()->map($responseRaw);
72
-
73
- $this->protocol($request, $response);
74
- }
75
- catch (Exception $e) {
76
- $this->protocolException($e, $request);
77
- throw $e;
78
- }
79
-
80
- return $response;
81
- }
82
-
83
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ * Authorize a new Payment by providing a Request Object
26
+ *
27
+ * <b>Example Using the Payone Builder</b>
28
+ * <pre class="prettyprint">
29
+ * // custom config can be injected, see Payone_Config
30
+ * $builder = new Payone_Builder();
31
+ *
32
+ * $service = $builder->buildServicePaymentAuthorize();
33
+ *
34
+ * $request = new Payone_Api_Request_Authorization();
35
+ *
36
+ * $service->authorize($request);
37
+ * </pre>
38
+ *
39
+ * @category Payone
40
+ * @package Payone_Api
41
+ * @subpackage Service
42
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
43
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
44
+ * @link http://www.noovias.com
45
+ *
46
+ * @api
47
+ */
48
+ class Payone_Api_Service_Payment_Authorize
49
+ extends Payone_Api_Service_Payment_Abstract
50
+ implements Payone_Api_Service_Payment_AuthorizeInterface
51
+ {
52
+ /**
53
+ * Execute Authorization for the injected Request
54
+ *
55
+ * @api
56
+ *
57
+ * @param Payone_Api_Request_Authorization $request
58
+ * @return Payone_Api_Response_Authorization_Approved|Payone_Api_Response_Authorization_Redirect|Payone_Api_Response_Error
59
+ * @throws Exception
60
+ */
61
+ public function authorize(Payone_Api_Request_Authorization $request)
62
+ {
63
+ try
64
+ {
65
+ $this->validateRequest($request);
66
+
67
+ $requestParams = $this->getMapperRequest()->map($request);
68
+
69
+ $responseRaw = $this->getAdapter()->request($requestParams);
70
+
71
+ $response = $this->getMapperResponse()->map($responseRaw);
72
+
73
+ $this->protocol($request, $response);
74
+ }
75
+ catch (Exception $e) {
76
+ $this->protocolException($e, $request);
77
+ throw $e;
78
+ }
79
+
80
+ return $response;
81
+ }
82
+
83
+ }
lib/Payone/Api/Service/Payment/AuthorizeInterface.php CHANGED
@@ -1,42 +1,42 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Service
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Service
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- interface Payone_Api_Service_Payment_AuthorizeInterface
34
- {
35
- /**
36
- * @param Payone_Api_Request_Authorization $request
37
- * @return Payone_Api_Response_Authorization_Approved|Payone_Api_Response_Authorization_Redirect|Payone_Api_Response_Error
38
- * @throws Exception
39
- */
40
- public function authorize(Payone_Api_Request_Authorization $request);
41
-
42
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Service
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ interface Payone_Api_Service_Payment_AuthorizeInterface
34
+ {
35
+ /**
36
+ * @param Payone_Api_Request_Authorization $request
37
+ * @return Payone_Api_Response_Authorization_Approved|Payone_Api_Response_Authorization_Redirect|Payone_Api_Response_Error
38
+ * @throws Exception
39
+ */
40
+ public function authorize(Payone_Api_Request_Authorization $request);
41
+
42
+ }
lib/Payone/Api/Service/Payment/Capture.php CHANGED
@@ -1,84 +1,84 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Service
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- * Capture a Payment by providing a Request Object
26
- *
27
- * <b>Example:</b>
28
- * <pre class="prettyprint">
29
- * // Construct the service (Builder handles dependencies):
30
- * // custom config can be injected, see Payone_Config
31
- * $builder = new Payone_Builder();
32
- *
33
- * $service = $builder->buildServicePaymentCapture();
34
- *
35
- * // Construct a valid request:
36
- * $request = new Payone_Api_Request_Capture();
37
- * $request->setAid($aid);
38
- * // Set all required parameters for a "capture" request
39
- *
40
- * // Start capture action:
41
- * $response = $service->capture($request);
42
- * </pre>
43
- *
44
- * @category Payone
45
- * @package Payone_Api
46
- * @subpackage Service
47
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
48
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
49
- * @link http://www.noovias.com
50
- */
51
- class Payone_Api_Service_Payment_Capture
52
- extends Payone_Api_Service_Payment_Abstract
53
- implements Payone_Api_Service_Payment_CaptureInterface
54
- {
55
- /**
56
- * Perform Capture for the injected Request
57
- *
58
- * @api
59
- *
60
- * @param Payone_Api_Request_Capture $request
61
- * @return Payone_Api_Response_Capture_Approved|Payone_Api_Response_Error
62
- * @throws Exception
63
- */
64
- public function capture(Payone_Api_Request_Capture $request)
65
- {
66
- try {
67
- $this->validateRequest($request);
68
-
69
- $requestParams = $this->getMapperRequest()->map($request);
70
-
71
- $responseRaw = $this->getAdapter()->request($requestParams);
72
-
73
- $response = $this->getMapperResponse()->map($responseRaw);
74
-
75
- $this->protocol($request, $response);
76
- }
77
- catch (Exception $e) {
78
- $this->protocolException($e, $request);
79
- throw $e;
80
- }
81
-
82
- return $response;
83
- }
84
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ * Capture a Payment by providing a Request Object
26
+ *
27
+ * <b>Example:</b>
28
+ * <pre class="prettyprint">
29
+ * // Construct the service (Builder handles dependencies):
30
+ * // custom config can be injected, see Payone_Config
31
+ * $builder = new Payone_Builder();
32
+ *
33
+ * $service = $builder->buildServicePaymentCapture();
34
+ *
35
+ * // Construct a valid request:
36
+ * $request = new Payone_Api_Request_Capture();
37
+ * $request->setAid($aid);
38
+ * // Set all required parameters for a "capture" request
39
+ *
40
+ * // Start capture action:
41
+ * $response = $service->capture($request);
42
+ * </pre>
43
+ *
44
+ * @category Payone
45
+ * @package Payone_Api
46
+ * @subpackage Service
47
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
48
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
49
+ * @link http://www.noovias.com
50
+ */
51
+ class Payone_Api_Service_Payment_Capture
52
+ extends Payone_Api_Service_Payment_Abstract
53
+ implements Payone_Api_Service_Payment_CaptureInterface
54
+ {
55
+ /**
56
+ * Perform Capture for the injected Request
57
+ *
58
+ * @api
59
+ *
60
+ * @param Payone_Api_Request_Capture $request
61
+ * @return Payone_Api_Response_Capture_Approved|Payone_Api_Response_Error
62
+ * @throws Exception
63
+ */
64
+ public function capture(Payone_Api_Request_Capture $request)
65
+ {
66
+ try {
67
+ $this->validateRequest($request);
68
+
69
+ $requestParams = $this->getMapperRequest()->map($request);
70
+
71
+ $responseRaw = $this->getAdapter()->request($requestParams);
72
+
73
+ $response = $this->getMapperResponse()->map($responseRaw);
74
+
75
+ $this->protocol($request, $response);
76
+ }
77
+ catch (Exception $e) {
78
+ $this->protocolException($e, $request);
79
+ throw $e;
80
+ }
81
+
82
+ return $response;
83
+ }
84
+ }
lib/Payone/Api/Service/Payment/CaptureInterface.php CHANGED
@@ -1,42 +1,42 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Service
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Service
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- interface Payone_Api_Service_Payment_CaptureInterface
34
- {
35
- /**
36
- * @param Payone_Api_Request_Capture $request
37
- * @return Payone_Api_Response_Capture_Approved|Payone_Api_Response_Error
38
- * @throws Exception
39
- */
40
- public function capture(Payone_Api_Request_Capture $request);
41
-
42
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Service
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ interface Payone_Api_Service_Payment_CaptureInterface
34
+ {
35
+ /**
36
+ * @param Payone_Api_Request_Capture $request
37
+ * @return Payone_Api_Response_Capture_Approved|Payone_Api_Response_Error
38
+ * @throws Exception
39
+ */
40
+ public function capture(Payone_Api_Request_Capture $request);
41
+
42
+ }
lib/Payone/Api/Service/Payment/CreateAccess.php CHANGED
@@ -1,84 +1,84 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Service
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- * CreateAccess by providing a Request Object
26
- *
27
- * <b>Example:</b>
28
- * <pre class="prettyprint">
29
- * // Construct the service (Builder handles dependencies):
30
- * // custom config can be injected, see Payone_Config
31
- * $builder = new Payone_Builder();
32
- *
33
- * $service = $builder->buildServicePaymentCreateAccess();
34
- *
35
- * // Construct a valid request:
36
- * $request = new Payone_Api_Request_CreateAccess();
37
- * $request->setAid($aid);
38
- * // Set all required parameters for a "createaccess" request
39
- *
40
- * // Start createaccess action:
41
- * $response = $service->createaccess($request);
42
- * </pre>
43
- *
44
- * @category Payone
45
- * @package Payone_Api
46
- * @subpackage Service
47
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
48
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
49
- * @link http://www.noovias.com
50
- */
51
- class Payone_Api_Service_Payment_CreateAccess
52
- extends Payone_Api_Service_Payment_Abstract
53
- implements Payone_Api_Service_Payment_CreateAccessInterface
54
- {
55
- /**
56
- * Perform CreateAccess for the injected Request
57
- *
58
- * @api
59
- *
60
- * @param Payone_Api_Request_CreateAccess $request
61
- * @return Payone_Api_Response_CreateAccess_Approved|Payone_Api_Response_Error
62
- * @throws Exception
63
- */
64
- public function createaccess(Payone_Api_Request_CreateAccess $request)
65
- {
66
- try {
67
- $this->validateRequest($request);
68
-
69
- $requestParams = $this->getMapperRequest()->map($request);
70
-
71
- $responseRaw = $this->getAdapter()->request($requestParams);
72
-
73
- $response = $this->getMapperResponse()->map($responseRaw);
74
-
75
- $this->protocol($request, $response);
76
- }
77
- catch (Exception $e) {
78
- $this->protocolException($e, $request);
79
- throw $e;
80
- }
81
-
82
- return $response;
83
- }
84
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ * CreateAccess by providing a Request Object
26
+ *
27
+ * <b>Example:</b>
28
+ * <pre class="prettyprint">
29
+ * // Construct the service (Builder handles dependencies):
30
+ * // custom config can be injected, see Payone_Config
31
+ * $builder = new Payone_Builder();
32
+ *
33
+ * $service = $builder->buildServicePaymentCreateAccess();
34
+ *
35
+ * // Construct a valid request:
36
+ * $request = new Payone_Api_Request_CreateAccess();
37
+ * $request->setAid($aid);
38
+ * // Set all required parameters for a "createaccess" request
39
+ *
40
+ * // Start createaccess action:
41
+ * $response = $service->createaccess($request);
42
+ * </pre>
43
+ *
44
+ * @category Payone
45
+ * @package Payone_Api
46
+ * @subpackage Service
47
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
48
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
49
+ * @link http://www.noovias.com
50
+ */
51
+ class Payone_Api_Service_Payment_CreateAccess
52
+ extends Payone_Api_Service_Payment_Abstract
53
+ implements Payone_Api_Service_Payment_CreateAccessInterface
54
+ {
55
+ /**
56
+ * Perform CreateAccess for the injected Request
57
+ *
58
+ * @api
59
+ *
60
+ * @param Payone_Api_Request_CreateAccess $request
61
+ * @return Payone_Api_Response_CreateAccess_Approved|Payone_Api_Response_Error
62
+ * @throws Exception
63
+ */
64
+ public function createaccess(Payone_Api_Request_CreateAccess $request)
65
+ {
66
+ try {
67
+ $this->validateRequest($request);
68
+
69
+ $requestParams = $this->getMapperRequest()->map($request);
70
+
71
+ $responseRaw = $this->getAdapter()->request($requestParams);
72
+
73
+ $response = $this->getMapperResponse()->map($responseRaw);
74
+
75
+ $this->protocol($request, $response);
76
+ }
77
+ catch (Exception $e) {
78
+ $this->protocolException($e, $request);
79
+ throw $e;
80
+ }
81
+
82
+ return $response;
83
+ }
84
+ }
lib/Payone/Api/Service/Payment/CreateAccessInterface.php CHANGED
@@ -1,42 +1,42 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Service
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Service
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- interface Payone_Api_Service_Payment_CreateAccessInterface
34
- {
35
- /**
36
- * @param Payone_Api_Request_CreateAccess $request
37
- * @return Payone_Api_Response_CreateAccess_Approved|Payone_Api_Response_Error
38
- * @throws Exception
39
- */
40
- public function createaccess(Payone_Api_Request_CreateAccess $request);
41
-
42
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Service
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ interface Payone_Api_Service_Payment_CreateAccessInterface
34
+ {
35
+ /**
36
+ * @param Payone_Api_Request_CreateAccess $request
37
+ * @return Payone_Api_Response_CreateAccess_Approved|Payone_Api_Response_Error
38
+ * @throws Exception
39
+ */
40
+ public function createaccess(Payone_Api_Request_CreateAccess $request);
41
+
42
+ }
lib/Payone/Api/Service/Payment/Debit.php CHANGED
@@ -1,84 +1,84 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Service
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- * Debit a payment by providing a Request Object
26
- *
27
- * <b>Example:</b>
28
- * <pre class="prettyprint">
29
- * // Construct the service (Builder handles dependencies):
30
- * // custom config can be injected, see Payone_Config
31
- * $builder = new Payone_Builder();
32
- *
33
- * $service = $builder->buildServicePaymentDebit();
34
- *
35
- * // Construct a valid debit request:
36
- * $request = new Payone_Api_Request_Debit();
37
- * $request->setAid($aid);
38
- * // Set all required parameters for a "debit" request
39
- *
40
- * // Start debit action:
41
- * $response = $service->debit($request);
42
- * </pre>
43
- *
44
- * @category Payone
45
- * @package Payone_Api
46
- * @subpackage Service
47
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
48
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
49
- * @link http://www.noovias.com
50
- */
51
- class Payone_Api_Service_Payment_Debit
52
- extends Payone_Api_Service_Payment_Abstract
53
- implements Payone_Api_Service_Payment_DebitInterface
54
- {
55
- /**
56
- * Execute Debit for the injected Request
57
- *
58
- * @api
59
- *
60
- * @param Payone_Api_Request_Debit $request
61
- * @return Payone_Api_Response_Debit_Approved|Payone_Api_Response_Error
62
- * @throws Exception
63
- */
64
- public function debit(Payone_Api_Request_Debit $request)
65
- {
66
- try {
67
- $this->validateRequest($request);
68
-
69
- $requestParams = $this->getMapperRequest()->map($request);
70
-
71
- $responseRaw = $this->getAdapter()->request($requestParams);
72
-
73
- $response = $this->getMapperResponse()->map($responseRaw);
74
-
75
- $this->protocol($request, $response);
76
- }
77
- catch (Exception $e) {
78
- $this->protocolException($e, $request);
79
- throw $e;
80
- }
81
-
82
- return $response;
83
- }
84
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ * Debit a payment by providing a Request Object
26
+ *
27
+ * <b>Example:</b>
28
+ * <pre class="prettyprint">
29
+ * // Construct the service (Builder handles dependencies):
30
+ * // custom config can be injected, see Payone_Config
31
+ * $builder = new Payone_Builder();
32
+ *
33
+ * $service = $builder->buildServicePaymentDebit();
34
+ *
35
+ * // Construct a valid debit request:
36
+ * $request = new Payone_Api_Request_Debit();
37
+ * $request->setAid($aid);
38
+ * // Set all required parameters for a "debit" request
39
+ *
40
+ * // Start debit action:
41
+ * $response = $service->debit($request);
42
+ * </pre>
43
+ *
44
+ * @category Payone
45
+ * @package Payone_Api
46
+ * @subpackage Service
47
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
48
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
49
+ * @link http://www.noovias.com
50
+ */
51
+ class Payone_Api_Service_Payment_Debit
52
+ extends Payone_Api_Service_Payment_Abstract
53
+ implements Payone_Api_Service_Payment_DebitInterface
54
+ {
55
+ /**
56
+ * Execute Debit for the injected Request
57
+ *
58
+ * @api
59
+ *
60
+ * @param Payone_Api_Request_Debit $request
61
+ * @return Payone_Api_Response_Debit_Approved|Payone_Api_Response_Error
62
+ * @throws Exception
63
+ */
64
+ public function debit(Payone_Api_Request_Debit $request)
65
+ {
66
+ try {
67
+ $this->validateRequest($request);
68
+
69
+ $requestParams = $this->getMapperRequest()->map($request);
70
+
71
+ $responseRaw = $this->getAdapter()->request($requestParams);
72
+
73
+ $response = $this->getMapperResponse()->map($responseRaw);
74
+
75
+ $this->protocol($request, $response);
76
+ }
77
+ catch (Exception $e) {
78
+ $this->protocolException($e, $request);
79
+ throw $e;
80
+ }
81
+
82
+ return $response;
83
+ }
84
+ }
lib/Payone/Api/Service/Payment/DebitInterface.php CHANGED
@@ -1,42 +1,42 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Service
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Service
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- interface Payone_Api_Service_Payment_DebitInterface
34
- {
35
- /**
36
- * @param Payone_Api_Request_Debit $request
37
- * @return Payone_Api_Response_Debit_Approved|Payone_Api_Response_Error
38
- * @throws Exception
39
- */
40
- public function debit(Payone_Api_Request_Debit $request);
41
-
42
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Service
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ interface Payone_Api_Service_Payment_DebitInterface
34
+ {
35
+ /**
36
+ * @param Payone_Api_Request_Debit $request
37
+ * @return Payone_Api_Response_Debit_Approved|Payone_Api_Response_Error
38
+ * @throws Exception
39
+ */
40
+ public function debit(Payone_Api_Request_Debit $request);
41
+
42
+ }
lib/Payone/Api/Service/Payment/Preauthorize.php CHANGED
@@ -1,90 +1,90 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Service
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- * Preauthorize a new Payment by providing a Request Object
26
- *
27
- * An preauthoorized Transaction needs to be captured aftwards
28
- *
29
- *
30
- * <b>Example Using the Api Builder</b>
31
- * <pre class="prettyprint">
32
- * // Construct the service (Builder handles dependencies):
33
- * // custom config can be injected, see Payone_Config
34
- * $builder = new Payone_Builder();
35
- *
36
- * $service = $builder->buildServicePaymentPreauthorize();
37
- *
38
- * // Construct a valid request:
39
- * $request = new Payone_Api_Request_Preauthorization();
40
- * $request->setAid($aid);
41
- * // Set all required parameters for a "preauthorize" request
42
- *
43
- * // Start preauthorize action:
44
- * $response = $service->preauthorize($request);
45
- *
46
- * </pre>
47
- *
48
- * @category Payone
49
- * @package Payone_Api
50
- * @subpackage Service
51
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
52
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
53
- * @link http://www.noovias.com
54
- *
55
- * @api
56
- */
57
- class Payone_Api_Service_Payment_Preauthorize
58
- extends Payone_Api_Service_Payment_Abstract
59
- implements Payone_Api_Service_Payment_PreauthorizeInterface
60
- {
61
- /**
62
- * Execute Preauthorize for the injected Request
63
- *
64
- * @api
65
- *
66
- * @param Payone_Api_Request_Preauthorization $request
67
- * @return Payone_Api_Response_Error|Payone_Api_Response_Preauthorization_Approved|Payone_Api_Response_Preauthorization_Redirect
68
- * @throws Exception
69
- */
70
- public function preauthorize(Payone_Api_Request_Preauthorization $request)
71
- {
72
- try {
73
- $this->validateRequest($request);
74
-
75
- $requestParams = $this->getMapperRequest()->map($request);
76
-
77
- $responseRaw = $this->getAdapter()->request($requestParams);
78
-
79
- $response = $this->getMapperResponse()->map($responseRaw);
80
-
81
- $this->protocol($request, $response);
82
- }
83
- catch (Exception $e) {
84
- $this->protocolException($e, $request);
85
- throw $e;
86
- }
87
-
88
- return $response;
89
- }
90
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ * Preauthorize a new Payment by providing a Request Object
26
+ *
27
+ * An preauthoorized Transaction needs to be captured aftwards
28
+ *
29
+ *
30
+ * <b>Example Using the Api Builder</b>
31
+ * <pre class="prettyprint">
32
+ * // Construct the service (Builder handles dependencies):
33
+ * // custom config can be injected, see Payone_Config
34
+ * $builder = new Payone_Builder();
35
+ *
36
+ * $service = $builder->buildServicePaymentPreauthorize();
37
+ *
38
+ * // Construct a valid request:
39
+ * $request = new Payone_Api_Request_Preauthorization();
40
+ * $request->setAid($aid);
41
+ * // Set all required parameters for a "preauthorize" request
42
+ *
43
+ * // Start preauthorize action:
44
+ * $response = $service->preauthorize($request);
45
+ *
46
+ * </pre>
47
+ *
48
+ * @category Payone
49
+ * @package Payone_Api
50
+ * @subpackage Service
51
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
52
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
53
+ * @link http://www.noovias.com
54
+ *
55
+ * @api
56
+ */
57
+ class Payone_Api_Service_Payment_Preauthorize
58
+ extends Payone_Api_Service_Payment_Abstract
59
+ implements Payone_Api_Service_Payment_PreauthorizeInterface
60
+ {
61
+ /**
62
+ * Execute Preauthorize for the injected Request
63
+ *
64
+ * @api
65
+ *
66
+ * @param Payone_Api_Request_Preauthorization $request
67
+ * @return Payone_Api_Response_Error|Payone_Api_Response_Preauthorization_Approved|Payone_Api_Response_Preauthorization_Redirect
68
+ * @throws Exception
69
+ */
70
+ public function preauthorize(Payone_Api_Request_Preauthorization $request)
71
+ {
72
+ try {
73
+ $this->validateRequest($request);
74
+
75
+ $requestParams = $this->getMapperRequest()->map($request);
76
+
77
+ $responseRaw = $this->getAdapter()->request($requestParams);
78
+
79
+ $response = $this->getMapperResponse()->map($responseRaw);
80
+
81
+ $this->protocol($request, $response);
82
+ }
83
+ catch (Exception $e) {
84
+ $this->protocolException($e, $request);
85
+ throw $e;
86
+ }
87
+
88
+ return $response;
89
+ }
90
+ }
lib/Payone/Api/Service/Payment/PreauthorizeInterface.php CHANGED
@@ -1,42 +1,42 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Service
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Service
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- interface Payone_Api_Service_Payment_PreauthorizeInterface
34
- {
35
- /**
36
- * @param Payone_Api_Request_Preauthorization $request
37
- * @return Payone_Api_Response_Error|Payone_Api_Response_Preauthorization_Approved|Payone_Api_Response_Preauthorization_Redirect
38
- * @throws Exception
39
- */
40
- public function preauthorize(Payone_Api_Request_Preauthorization $request);
41
-
42
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Service
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ interface Payone_Api_Service_Payment_PreauthorizeInterface
34
+ {
35
+ /**
36
+ * @param Payone_Api_Request_Preauthorization $request
37
+ * @return Payone_Api_Response_Error|Payone_Api_Response_Preauthorization_Approved|Payone_Api_Response_Preauthorization_Redirect
38
+ * @throws Exception
39
+ */
40
+ public function preauthorize(Payone_Api_Request_Preauthorization $request);
41
+
42
+ }
lib/Payone/Api/Service/Payment/Refund.php CHANGED
@@ -1,85 +1,85 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Service
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- * Refund a Payment by providing a Request Object
26
- *
27
- * <b>Example:</b>
28
- * <pre class="prettyprint">
29
- * // Construct the service (Builder handles dependencies)
30
- * // custom config can be injected, see Payone_Config
31
- * $builder = new Payone_Builder();
32
- *
33
- * $service = $builder->buildServicePaymentRefund();
34
- *
35
- * // Construct a valid request:
36
- * $request = new Payone_Api_Request_Refund();
37
- * $request->setAid($aid);
38
- * // Set all required parameters for a "refund" request
39
- *
40
- * // Start refund action:
41
- * $response = $service->refund($request);
42
- * </pre>
43
- *
44
- * @category Payone
45
- * @package Payone_Api
46
- * @subpackage Service
47
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
48
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
49
- * @link http://www.noovias.com
50
- */
51
- class Payone_Api_Service_Payment_Refund
52
- extends Payone_Api_Service_Payment_Abstract
53
- implements Payone_Api_Service_Payment_RefundInterface
54
- {
55
- /**
56
- *
57
- * Execute Refund for the injected Request
58
- *
59
- * @api
60
- *
61
- * @param Payone_Api_Request_Refund $request
62
- * @return Payone_Api_Response_Refund_Approved|Payone_Api_Response_Error
63
- * @throws Exception
64
- */
65
- public function refund(Payone_Api_Request_Refund $request)
66
- {
67
- try {
68
- $this->validateRequest($request);
69
-
70
- $requestParams = $this->getMapperRequest()->map($request);
71
-
72
- $responseRaw = $this->getAdapter()->request($requestParams);
73
-
74
- $response = $this->getMapperResponse()->map($responseRaw);
75
-
76
- $this->protocol($request, $response);
77
- }
78
- catch (Exception $e) {
79
- $this->protocolException($e, $request);
80
- throw $e;
81
- }
82
-
83
- return $response;
84
- }
85
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ * Refund a Payment by providing a Request Object
26
+ *
27
+ * <b>Example:</b>
28
+ * <pre class="prettyprint">
29
+ * // Construct the service (Builder handles dependencies)
30
+ * // custom config can be injected, see Payone_Config
31
+ * $builder = new Payone_Builder();
32
+ *
33
+ * $service = $builder->buildServicePaymentRefund();
34
+ *
35
+ * // Construct a valid request:
36
+ * $request = new Payone_Api_Request_Refund();
37
+ * $request->setAid($aid);
38
+ * // Set all required parameters for a "refund" request
39
+ *
40
+ * // Start refund action:
41
+ * $response = $service->refund($request);
42
+ * </pre>
43
+ *
44
+ * @category Payone
45
+ * @package Payone_Api
46
+ * @subpackage Service
47
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
48
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
49
+ * @link http://www.noovias.com
50
+ */
51
+ class Payone_Api_Service_Payment_Refund
52
+ extends Payone_Api_Service_Payment_Abstract
53
+ implements Payone_Api_Service_Payment_RefundInterface
54
+ {
55
+ /**
56
+ *
57
+ * Execute Refund for the injected Request
58
+ *
59
+ * @api
60
+ *
61
+ * @param Payone_Api_Request_Refund $request
62
+ * @return Payone_Api_Response_Refund_Approved|Payone_Api_Response_Error
63
+ * @throws Exception
64
+ */
65
+ public function refund(Payone_Api_Request_Refund $request)
66
+ {
67
+ try {
68
+ $this->validateRequest($request);
69
+
70
+ $requestParams = $this->getMapperRequest()->map($request);
71
+
72
+ $responseRaw = $this->getAdapter()->request($requestParams);
73
+
74
+ $response = $this->getMapperResponse()->map($responseRaw);
75
+
76
+ $this->protocol($request, $response);
77
+ }
78
+ catch (Exception $e) {
79
+ $this->protocolException($e, $request);
80
+ throw $e;
81
+ }
82
+
83
+ return $response;
84
+ }
85
+ }
lib/Payone/Api/Service/Payment/RefundInterface.php CHANGED
@@ -1,42 +1,42 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Service
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Service
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- interface Payone_Api_Service_Payment_RefundInterface
34
- {
35
- /**
36
- * @param Payone_Api_Request_Refund $request
37
- * @return Payone_Api_Response_Refund_Approved|Payone_Api_Response_Error
38
- * @throws Exception
39
- */
40
- public function refund(Payone_Api_Request_Refund $request);
41
-
42
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Service
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ interface Payone_Api_Service_Payment_RefundInterface
34
+ {
35
+ /**
36
+ * @param Payone_Api_Request_Refund $request
37
+ * @return Payone_Api_Response_Refund_Approved|Payone_Api_Response_Error
38
+ * @throws Exception
39
+ */
40
+ public function refund(Payone_Api_Request_Refund $request);
41
+
42
+ }
lib/Payone/Api/Service/Payment/Vauthorize.php CHANGED
@@ -1,83 +1,83 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Service
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- * Vauthorize a new Payment by providing a Request Object
26
- *
27
- * <b>Example Using the Payone Builder</b>
28
- * <pre class="prettyprint">
29
- * // custom config can be injected, see Payone_Config
30
- * $builder = new Payone_Builder();
31
- *
32
- * $service = $builder->buildServicePaymentVauthorize();
33
- *
34
- * $request = new Payone_Api_Request_Vauthorization();
35
- *
36
- * $service->authorize($request);
37
- * </pre>
38
- *
39
- * @category Payone
40
- * @package Payone_Api
41
- * @subpackage Service
42
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
43
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
44
- * @link http://www.noovias.com
45
- *
46
- * @api
47
- */
48
- class Payone_Api_Service_Payment_Vauthorize
49
- extends Payone_Api_Service_Payment_Abstract
50
- implements Payone_Api_Service_Payment_VauthorizeInterface
51
- {
52
- /**
53
- * Execute Vauthorization for the injected Request
54
- *
55
- * @api
56
- *
57
- * @param Payone_Api_Request_Vauthorization $request
58
- * @return Payone_Api_Response_Vauthorization_Approved|Payone_Api_Response_Error
59
- * @throws Exception
60
- */
61
- public function vauthorize(Payone_Api_Request_Vauthorization $request)
62
- {
63
- try
64
- {
65
- $this->validateRequest($request);
66
-
67
- $requestParams = $this->getMapperRequest()->map($request);
68
-
69
- $responseRaw = $this->getAdapter()->request($requestParams);
70
-
71
- $response = $this->getMapperResponse()->map($responseRaw);
72
-
73
- $this->protocol($request, $response);
74
- }
75
- catch (Exception $e) {
76
- $this->protocolException($e, $request);
77
- throw $e;
78
- }
79
-
80
- return $response;
81
- }
82
-
83
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ * Vauthorize a new Payment by providing a Request Object
26
+ *
27
+ * <b>Example Using the Payone Builder</b>
28
+ * <pre class="prettyprint">
29
+ * // custom config can be injected, see Payone_Config
30
+ * $builder = new Payone_Builder();
31
+ *
32
+ * $service = $builder->buildServicePaymentVauthorize();
33
+ *
34
+ * $request = new Payone_Api_Request_Vauthorization();
35
+ *
36
+ * $service->authorize($request);
37
+ * </pre>
38
+ *
39
+ * @category Payone
40
+ * @package Payone_Api
41
+ * @subpackage Service
42
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
43
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
44
+ * @link http://www.noovias.com
45
+ *
46
+ * @api
47
+ */
48
+ class Payone_Api_Service_Payment_Vauthorize
49
+ extends Payone_Api_Service_Payment_Abstract
50
+ implements Payone_Api_Service_Payment_VauthorizeInterface
51
+ {
52
+ /**
53
+ * Execute Vauthorization for the injected Request
54
+ *
55
+ * @api
56
+ *
57
+ * @param Payone_Api_Request_Vauthorization $request
58
+ * @return Payone_Api_Response_Vauthorization_Approved|Payone_Api_Response_Error
59
+ * @throws Exception
60
+ */
61
+ public function vauthorize(Payone_Api_Request_Vauthorization $request)
62
+ {
63
+ try
64
+ {
65
+ $this->validateRequest($request);
66
+
67
+ $requestParams = $this->getMapperRequest()->map($request);
68
+
69
+ $responseRaw = $this->getAdapter()->request($requestParams);
70
+
71
+ $response = $this->getMapperResponse()->map($responseRaw);
72
+
73
+ $this->protocol($request, $response);
74
+ }
75
+ catch (Exception $e) {
76
+ $this->protocolException($e, $request);
77
+ throw $e;
78
+ }
79
+
80
+ return $response;
81
+ }
82
+
83
+ }
lib/Payone/Api/Service/Payment/VauthorizeInterface.php CHANGED
@@ -1,42 +1,42 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Service
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Service
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- interface Payone_Api_Service_Payment_VauthorizeInterface
34
- {
35
- /**
36
- * @param Payone_Api_Request_Vauthorization $request
37
- * @return Payone_Api_Response_Vauthorization_Approved|Payone_Api_Response_Error
38
- * @throws Exception
39
- */
40
- public function vauthorize(Payone_Api_Request_Vauthorization $request);
41
-
42
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Service
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ interface Payone_Api_Service_Payment_VauthorizeInterface
34
+ {
35
+ /**
36
+ * @param Payone_Api_Request_Vauthorization $request
37
+ * @return Payone_Api_Response_Vauthorization_Approved|Payone_Api_Response_Error
38
+ * @throws Exception
39
+ */
40
+ public function vauthorize(Payone_Api_Request_Vauthorization $request);
41
+
42
+ }
lib/Payone/Api/Service/ProtocolRequest/Interface.php CHANGED
@@ -1,47 +1,47 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Service
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Service
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- interface Payone_Api_Service_ProtocolRequest_Interface
34
- {
35
- public function protocol(Payone_Api_Request_Interface $request, Payone_Api_Response_Interface $response = null);
36
-
37
- public function protocolException(Exception $e, Payone_Api_Request_Interface $request = null);
38
-
39
- public function addRepository(Payone_Api_Persistence_Interface $repository);
40
-
41
- public function removeRepository($key);
42
-
43
- public function addLogger(Payone_Protocol_Logger_Interface $logger);
44
-
45
- public function removeLogger($key);
46
-
47
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Service
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ interface Payone_Api_Service_ProtocolRequest_Interface
34
+ {
35
+ public function protocol(Payone_Api_Request_Interface $request, Payone_Api_Response_Interface $response = null);
36
+
37
+ public function protocolException(Exception $e, Payone_Api_Request_Interface $request = null);
38
+
39
+ public function addRepository(Payone_Api_Persistence_Interface $repository);
40
+
41
+ public function removeRepository($key);
42
+
43
+ public function addLogger(Payone_Protocol_Logger_Interface $logger);
44
+
45
+ public function removeLogger($key);
46
+
47
+ }
lib/Payone/Api/Service/Verification/3dsCheck.php CHANGED
@@ -1,93 +1,93 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Service
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- * Perform a 3dsCheck by providing a Request Object
26
- *
27
- * <b>Example:</b>
28
- * <pre class="prettyprint">
29
- *
30
- * // Construct the service (Builder handles dependencies):
31
- * // custom config can be injected, see Payone_Config
32
- * $builder = new Payone_Builder();
33
- *
34
- * $service = $builder->buildServiceVerification3dscheck();
35
- *
36
- * // Construct a valid request:
37
- * $request = new Payone_Api_Request_3dsCheck();
38
- * $request->setAid($aid);
39
- * // Set all required parameters for a "3dscheck" request
40
- *
41
- * // Start 3dsCheck action:
42
- * $response = $service->check($request);
43
- *
44
- * </pre>
45
- *
46
- * @category Payone
47
- * @package Payone_Api
48
- * @subpackage Service
49
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
50
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
51
- * @link http://www.noovias.com
52
- */
53
- class Payone_Api_Service_Verification_3dsCheck
54
- extends Payone_Api_Service_Abstract
55
- {
56
- /**
57
- * Perform a 3dscheck with the injected request
58
- *
59
- * @api
60
- *
61
- * @param Payone_Api_Request_3dsCheck $request
62
- *
63
- * @return Payone_Api_Response_3dsCheck_Enrolled|Payone_Api_Response_3dsCheck_Invalid|Payone_Api_Response_3dsCheck_Valid|Payone_Api_Response_Error
64
- * @throws Exception
65
- */
66
- public function check(Payone_Api_Request_3dsCheck $request)
67
- {
68
- try
69
- {
70
- $this->validateRequest($request);
71
-
72
- $requestParams = $request->toArray();
73
-
74
- // Actors:
75
- $adapter = $this->getAdapter();
76
- /** @var $mapper Payone_Api_Mapper_Response_3dsCheck */
77
- $mapper = $this->getMapperResponse();
78
-
79
- // Do the request:
80
- $responseRaw = $adapter->request($requestParams);
81
- $response = $mapper->map($responseRaw);
82
-
83
- $this->protocol($request, $response);
84
- }
85
- catch (Exception $e) {
86
- $this->protocolException($e, $request);
87
- throw $e;
88
- }
89
-
90
- return $response;
91
- }
92
-
93
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ * Perform a 3dsCheck by providing a Request Object
26
+ *
27
+ * <b>Example:</b>
28
+ * <pre class="prettyprint">
29
+ *
30
+ * // Construct the service (Builder handles dependencies):
31
+ * // custom config can be injected, see Payone_Config
32
+ * $builder = new Payone_Builder();
33
+ *
34
+ * $service = $builder->buildServiceVerification3dscheck();
35
+ *
36
+ * // Construct a valid request:
37
+ * $request = new Payone_Api_Request_3dsCheck();
38
+ * $request->setAid($aid);
39
+ * // Set all required parameters for a "3dscheck" request
40
+ *
41
+ * // Start 3dsCheck action:
42
+ * $response = $service->check($request);
43
+ *
44
+ * </pre>
45
+ *
46
+ * @category Payone
47
+ * @package Payone_Api
48
+ * @subpackage Service
49
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
50
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
51
+ * @link http://www.noovias.com
52
+ */
53
+ class Payone_Api_Service_Verification_3dsCheck
54
+ extends Payone_Api_Service_Abstract
55
+ {
56
+ /**
57
+ * Perform a 3dscheck with the injected request
58
+ *
59
+ * @api
60
+ *
61
+ * @param Payone_Api_Request_3dsCheck $request
62
+ *
63
+ * @return Payone_Api_Response_3dsCheck_Enrolled|Payone_Api_Response_3dsCheck_Invalid|Payone_Api_Response_3dsCheck_Valid|Payone_Api_Response_Error
64
+ * @throws Exception
65
+ */
66
+ public function check(Payone_Api_Request_3dsCheck $request)
67
+ {
68
+ try
69
+ {
70
+ $this->validateRequest($request);
71
+
72
+ $requestParams = $request->toArray();
73
+
74
+ // Actors:
75
+ $adapter = $this->getAdapter();
76
+ /** @var $mapper Payone_Api_Mapper_Response_3dsCheck */
77
+ $mapper = $this->getMapperResponse();
78
+
79
+ // Do the request:
80
+ $responseRaw = $adapter->request($requestParams);
81
+ $response = $mapper->map($responseRaw);
82
+
83
+ $this->protocol($request, $response);
84
+ }
85
+ catch (Exception $e) {
86
+ $this->protocolException($e, $request);
87
+ throw $e;
88
+ }
89
+
90
+ return $response;
91
+ }
92
+
93
+ }
lib/Payone/Api/Service/Verification/AddressCheck.php CHANGED
@@ -1,87 +1,87 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Service
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- * Perform an AddressCheck by providing a Request Object
26
- *
27
- * <b>Example:</b>
28
- * <pre class="prettyprint">
29
- * // Construct the service (Builder handles dependencies):
30
- * // custom config can be injected, see Payone_Config
31
- * $builder = new Payone_Builder();
32
- *
33
- * $service = $builder->buildServiceVerificationAddressCheck();
34
- *
35
- * // Construct a valid request:
36
- * $request = new Payone_Api_Request_AddressCheck();
37
- * $request->setAid($aid);
38
- * // Set all required parameters for an "addresscheck" request
39
- *
40
- * // Start AddressCheck action:
41
- * $response = $service->check($request);
42
- * </pre>
43
- *
44
- *
45
- * @category Payone
46
- * @package Payone_Api
47
- * @subpackage Service
48
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
49
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
50
- * @link http://www.noovias.com
51
- */
52
- class Payone_Api_Service_Verification_AddressCheck
53
- extends Payone_Api_Service_Abstract
54
- {
55
- /**
56
- *
57
- * Perform an AddressCheck with the injected request
58
- *
59
- * @api
60
- *
61
- * @param Payone_Api_Request_AddressCheck $request
62
- *
63
- * @return Payone_Api_Response_AddressCheck_Invalid|Payone_Api_Response_AddressCheck_Valid|Payone_Api_Response_Error
64
- * @throws Exception
65
- */
66
- public function check(Payone_Api_Request_AddressCheck $request)
67
- {
68
- try {
69
- $this->validateRequest($request);
70
-
71
- $requestParams = $request->toArray();
72
-
73
- $responseRaw = $this->getAdapter()->request($requestParams);
74
-
75
- $response = $this->getMapperResponse()->map($responseRaw);
76
-
77
- $this->protocol($request, $response);
78
- }
79
- catch (Exception $e) {
80
- $this->protocolException($e, $request);
81
- throw $e;
82
- }
83
-
84
- return $response;
85
- }
86
-
87
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ * Perform an AddressCheck by providing a Request Object
26
+ *
27
+ * <b>Example:</b>
28
+ * <pre class="prettyprint">
29
+ * // Construct the service (Builder handles dependencies):
30
+ * // custom config can be injected, see Payone_Config
31
+ * $builder = new Payone_Builder();
32
+ *
33
+ * $service = $builder->buildServiceVerificationAddressCheck();
34
+ *
35
+ * // Construct a valid request:
36
+ * $request = new Payone_Api_Request_AddressCheck();
37
+ * $request->setAid($aid);
38
+ * // Set all required parameters for an "addresscheck" request
39
+ *
40
+ * // Start AddressCheck action:
41
+ * $response = $service->check($request);
42
+ * </pre>
43
+ *
44
+ *
45
+ * @category Payone
46
+ * @package Payone_Api
47
+ * @subpackage Service
48
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
49
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
50
+ * @link http://www.noovias.com
51
+ */
52
+ class Payone_Api_Service_Verification_AddressCheck
53
+ extends Payone_Api_Service_Abstract
54
+ {
55
+ /**
56
+ *
57
+ * Perform an AddressCheck with the injected request
58
+ *
59
+ * @api
60
+ *
61
+ * @param Payone_Api_Request_AddressCheck $request
62
+ *
63
+ * @return Payone_Api_Response_AddressCheck_Invalid|Payone_Api_Response_AddressCheck_Valid|Payone_Api_Response_Error
64
+ * @throws Exception
65
+ */
66
+ public function check(Payone_Api_Request_AddressCheck $request)
67
+ {
68
+ try {
69
+ $this->validateRequest($request);
70
+
71
+ $requestParams = $request->toArray();
72
+
73
+ $responseRaw = $this->getAdapter()->request($requestParams);
74
+
75
+ $response = $this->getMapperResponse()->map($responseRaw);
76
+
77
+ $this->protocol($request, $response);
78
+ }
79
+ catch (Exception $e) {
80
+ $this->protocolException($e, $request);
81
+ throw $e;
82
+ }
83
+
84
+ return $response;
85
+ }
86
+
87
+ }
lib/Payone/Api/Service/Verification/BankAccountCheck.php CHANGED
@@ -1,86 +1,86 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Service
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- * Perform an BankAccountCheck by providing a Request Object
26
- *
27
- * <b>Example:</b>
28
- * <pre class="prettyprint">
29
- * // Construct the service (Builder handles dependencies):
30
- * // custom config can be injected, see Payone_Config
31
- * $builder = new Payone_Builder();
32
- *
33
- * $service = $builder->buildServiceVerificationBankAccountCheck();
34
- *
35
- * // Construct a valid request:
36
- * $request = new Payone_Api_Request_BankAccountCheck();
37
- * $request->setAid($aid);
38
- * // Set all required parameters for an "bankaccountcheck" request
39
- *
40
- * // Start BankAccountCheck action:
41
- * $response = $service->check($request);
42
- *
43
- * </pre>
44
- *
45
- * @category Payone
46
- * @package Payone_Api
47
- * @subpackage Service
48
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
49
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
50
- * @link http://www.noovias.com
51
- */
52
- class Payone_Api_Service_Verification_BankAccountCheck
53
- extends Payone_Api_Service_Abstract
54
- {
55
- /**
56
- * Perform a BankAccountCheck with the injected request
57
- *
58
- * @api
59
- *
60
- * @param Payone_Api_Request_BankAccountCheck $request
61
- *
62
- * @return Payone_Api_Response_BankAccountCheck_Blocked|Payone_Api_Response_BankAccountCheck_Invalid|Payone_Api_Response_BankAccountCheck_Valid|Payone_Api_Response_Error
63
- * @throws Exception
64
- */
65
- public function check(Payone_Api_Request_BankAccountCheck $request)
66
- {
67
- try {
68
- $this->validateRequest($request);
69
-
70
- $requestParams = $request->toArray();
71
-
72
- $responseRaw = $this->getAdapter()->request($requestParams);
73
-
74
- $response = $this->getMapperResponse()->map($responseRaw);
75
-
76
- $this->protocol($request, $response);
77
- }
78
- catch (Exception $e) {
79
- $this->protocolException($e, $request);
80
- throw $e;
81
- }
82
-
83
- return $response;
84
- }
85
-
86
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ * Perform an BankAccountCheck by providing a Request Object
26
+ *
27
+ * <b>Example:</b>
28
+ * <pre class="prettyprint">
29
+ * // Construct the service (Builder handles dependencies):
30
+ * // custom config can be injected, see Payone_Config
31
+ * $builder = new Payone_Builder();
32
+ *
33
+ * $service = $builder->buildServiceVerificationBankAccountCheck();
34
+ *
35
+ * // Construct a valid request:
36
+ * $request = new Payone_Api_Request_BankAccountCheck();
37
+ * $request->setAid($aid);
38
+ * // Set all required parameters for an "bankaccountcheck" request
39
+ *
40
+ * // Start BankAccountCheck action:
41
+ * $response = $service->check($request);
42
+ *
43
+ * </pre>
44
+ *
45
+ * @category Payone
46
+ * @package Payone_Api
47
+ * @subpackage Service
48
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
49
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
50
+ * @link http://www.noovias.com
51
+ */
52
+ class Payone_Api_Service_Verification_BankAccountCheck
53
+ extends Payone_Api_Service_Abstract
54
+ {
55
+ /**
56
+ * Perform a BankAccountCheck with the injected request
57
+ *
58
+ * @api
59
+ *
60
+ * @param Payone_Api_Request_BankAccountCheck $request
61
+ *
62
+ * @return Payone_Api_Response_BankAccountCheck_Blocked|Payone_Api_Response_BankAccountCheck_Invalid|Payone_Api_Response_BankAccountCheck_Valid|Payone_Api_Response_Error
63
+ * @throws Exception
64
+ */
65
+ public function check(Payone_Api_Request_BankAccountCheck $request)
66
+ {
67
+ try {
68
+ $this->validateRequest($request);
69
+
70
+ $requestParams = $request->toArray();
71
+
72
+ $responseRaw = $this->getAdapter()->request($requestParams);
73
+
74
+ $response = $this->getMapperResponse()->map($responseRaw);
75
+
76
+ $this->protocol($request, $response);
77
+ }
78
+ catch (Exception $e) {
79
+ $this->protocolException($e, $request);
80
+ throw $e;
81
+ }
82
+
83
+ return $response;
84
+ }
85
+
86
+ }
lib/Payone/Api/Service/Verification/Consumerscore.php CHANGED
@@ -1,86 +1,86 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Service
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- * Perform a Consumerscore check by providing a Request Object
26
- *
27
- * <b>Example:</b>
28
- * <pre class="prettyprint">
29
- * // Construct the service (Builder handles dependencies):
30
- * // custom config can be injected, see Payone_Config
31
- * $builder = new Payone_Builder();
32
- *
33
- * $service = $builder->buildServiceVerificationConsumerscore();
34
- *
35
- * // Construct a valid request:
36
- * $request = new Payone_Api_Request_Consumerscore();
37
- * $request->setAid($aid);
38
- * // Set all required parameters for an "consumerscore" request
39
- *
40
- * // Start Consumerscore action:
41
- * $response = $service->score($request);
42
- * </pre>
43
- *
44
- * @category Payone
45
- * @package Payone_Api
46
- * @subpackage Service
47
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
48
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
49
- * @link http://www.noovias.com
50
- */
51
- class Payone_Api_Service_Verification_Consumerscore
52
- extends Payone_Api_Service_Abstract
53
- {
54
- /**
55
- *
56
- * Perform a consumerscore check with the injected request
57
- *
58
- * @api
59
- *
60
- * @param Payone_Api_Request_Consumerscore $request
61
- *
62
- * @return Payone_Api_Response_Consumerscore_Invalid|Payone_Api_Response_Consumerscore_Valid|Payone_Api_Response_Error
63
- * @throws Exception
64
- */
65
- public function score(Payone_Api_Request_Consumerscore $request)
66
- {
67
- try {
68
- $this->validateRequest($request);
69
-
70
- $requestParams = $request->toArray();
71
-
72
- $responseRaw = $this->getAdapter()->request($requestParams);
73
-
74
- $response = $this->getMapperResponse()->map($responseRaw);
75
-
76
- $this->protocol($request, $response);
77
- }
78
- catch (Exception $e) {
79
- $this->protocolException($e, $request);
80
- throw $e;
81
- }
82
-
83
- return $response;
84
- }
85
-
86
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ * Perform a Consumerscore check by providing a Request Object
26
+ *
27
+ * <b>Example:</b>
28
+ * <pre class="prettyprint">
29
+ * // Construct the service (Builder handles dependencies):
30
+ * // custom config can be injected, see Payone_Config
31
+ * $builder = new Payone_Builder();
32
+ *
33
+ * $service = $builder->buildServiceVerificationConsumerscore();
34
+ *
35
+ * // Construct a valid request:
36
+ * $request = new Payone_Api_Request_Consumerscore();
37
+ * $request->setAid($aid);
38
+ * // Set all required parameters for an "consumerscore" request
39
+ *
40
+ * // Start Consumerscore action:
41
+ * $response = $service->score($request);
42
+ * </pre>
43
+ *
44
+ * @category Payone
45
+ * @package Payone_Api
46
+ * @subpackage Service
47
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
48
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
49
+ * @link http://www.noovias.com
50
+ */
51
+ class Payone_Api_Service_Verification_Consumerscore
52
+ extends Payone_Api_Service_Abstract
53
+ {
54
+ /**
55
+ *
56
+ * Perform a consumerscore check with the injected request
57
+ *
58
+ * @api
59
+ *
60
+ * @param Payone_Api_Request_Consumerscore $request
61
+ *
62
+ * @return Payone_Api_Response_Consumerscore_Invalid|Payone_Api_Response_Consumerscore_Valid|Payone_Api_Response_Error
63
+ * @throws Exception
64
+ */
65
+ public function score(Payone_Api_Request_Consumerscore $request)
66
+ {
67
+ try {
68
+ $this->validateRequest($request);
69
+
70
+ $requestParams = $request->toArray();
71
+
72
+ $responseRaw = $this->getAdapter()->request($requestParams);
73
+
74
+ $response = $this->getMapperResponse()->map($responseRaw);
75
+
76
+ $this->protocol($request, $response);
77
+ }
78
+ catch (Exception $e) {
79
+ $this->protocolException($e, $request);
80
+ throw $e;
81
+ }
82
+
83
+ return $response;
84
+ }
85
+
86
+ }
lib/Payone/Api/Service/Verification/CreditCardCheck.php CHANGED
@@ -1,85 +1,85 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Service
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- * Perform an CreditCardCheck by providing a Request Object
26
- *
27
- * <b>Example:</b>
28
- * <pre class="prettyprint">
29
- * // Construct the service (Builder handles dependencies):
30
- * // custom config can be injected, see Payone_Config
31
- * $builder = new Payone_Builder();
32
- *
33
- * $service = $builder->buildServiceVerificationCreditCardCheck();
34
- *
35
- * // Construct a valid request:
36
- * $request = new Payone_Api_Request_CreditCardCheck();
37
- * $request->setAid($aid);
38
- * // Set all required parameters for an "creditcardcheck" request
39
- *
40
- * // Start CreditCardCheck action:
41
- * $response = $service->check($request);
42
- * </pre>
43
- *
44
- * @category Payone
45
- * @package Payone_Api
46
- * @subpackage Service
47
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
48
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
49
- * @link http://www.noovias.com
50
- */
51
- class Payone_Api_Service_Verification_CreditCardCheck
52
- extends Payone_Api_Service_Abstract
53
- {
54
- /**
55
- * Perform a CreditCardCheck with the injected request
56
- *
57
- * @api
58
- *
59
- * @param Payone_Api_Request_CreditCardCheck $request
60
- *
61
- * @return Payone_Api_Response_CreditCardCheck_Invalid|Payone_Api_Response_CreditCardCheck_Valid|Payone_Api_Response_Error
62
- * @throws Exception
63
- */
64
- public function check(Payone_Api_Request_CreditCardCheck $request)
65
- {
66
- try {
67
- $this->validateRequest($request);
68
-
69
- $requestParams = $request->toArray();
70
-
71
- $responseRaw = $this->getAdapter()->request($requestParams);
72
-
73
- $response = $this->getMapperResponse()->map($responseRaw);
74
-
75
- $this->protocol($request, $response);
76
- }
77
- catch (Exception $e) {
78
- $this->protocolException($e, $request);
79
- throw $e;
80
- }
81
-
82
- return $response;
83
- }
84
-
85
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Service
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ * Perform an CreditCardCheck by providing a Request Object
26
+ *
27
+ * <b>Example:</b>
28
+ * <pre class="prettyprint">
29
+ * // Construct the service (Builder handles dependencies):
30
+ * // custom config can be injected, see Payone_Config
31
+ * $builder = new Payone_Builder();
32
+ *
33
+ * $service = $builder->buildServiceVerificationCreditCardCheck();
34
+ *
35
+ * // Construct a valid request:
36
+ * $request = new Payone_Api_Request_CreditCardCheck();
37
+ * $request->setAid($aid);
38
+ * // Set all required parameters for an "creditcardcheck" request
39
+ *
40
+ * // Start CreditCardCheck action:
41
+ * $response = $service->check($request);
42
+ * </pre>
43
+ *
44
+ * @category Payone
45
+ * @package Payone_Api
46
+ * @subpackage Service
47
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
48
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
49
+ * @link http://www.noovias.com
50
+ */
51
+ class Payone_Api_Service_Verification_CreditCardCheck
52
+ extends Payone_Api_Service_Abstract
53
+ {
54
+ /**
55
+ * Perform a CreditCardCheck with the injected request
56
+ *
57
+ * @api
58
+ *
59
+ * @param Payone_Api_Request_CreditCardCheck $request
60
+ *
61
+ * @return Payone_Api_Response_CreditCardCheck_Invalid|Payone_Api_Response_CreditCardCheck_Valid|Payone_Api_Response_Error
62
+ * @throws Exception
63
+ */
64
+ public function check(Payone_Api_Request_CreditCardCheck $request)
65
+ {
66
+ try {
67
+ $this->validateRequest($request);
68
+
69
+ $requestParams = $request->toArray();
70
+
71
+ $responseRaw = $this->getAdapter()->request($requestParams);
72
+
73
+ $response = $this->getMapperResponse()->map($responseRaw);
74
+
75
+ $this->protocol($request, $response);
76
+ }
77
+ catch (Exception $e) {
78
+ $this->protocolException($e, $request);
79
+ throw $e;
80
+ }
81
+
82
+ return $response;
83
+ }
84
+
85
+ }
lib/Payone/Api/Validator/Abstract.php CHANGED
@@ -1,35 +1,35 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Validator
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Validator
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- abstract class Payone_Api_Validator_Abstract implements Payone_Api_Validator_Interface
34
- {
35
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Validator
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Validator
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ abstract class Payone_Api_Validator_Abstract implements Payone_Api_Validator_Interface
34
+ {
35
+ }
lib/Payone/Api/Validator/DefaultParameters.php CHANGED
@@ -1,60 +1,60 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Validator
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Validator
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_Api_Validator_DefaultParameters extends Payone_Api_Validator_Abstract
34
- {
35
- /**
36
- * @param Payone_Api_Request_Interface $request
37
- * @return bool
38
- * @throws Payone_Api_Exception_Request_InvalidKey
39
- * @throws Payone_Api_Exception_Request_InvalidMid
40
- * @throws Payone_Api_Exception_Request_InvalidMode
41
- * @throws Payone_Api_Exception_Request_InvalidPortalid
42
- */
43
- public function validateRequest(Payone_Api_Request_Interface $request)
44
- {
45
- if ($request->getMid() == '') {
46
- throw new Payone_Api_Exception_Request_InvalidMid();
47
- }
48
- if ($request->getPortalid() == '') {
49
- throw new Payone_Api_Exception_Request_InvalidPortalid();
50
- }
51
- if ($request->getKey() == '') {
52
- throw new Payone_Api_Exception_Request_InvalidKey();
53
- }
54
- if ($request->getMode() == '') {
55
- throw new Payone_Api_Exception_Request_InvalidMode();
56
- }
57
-
58
- return true;
59
- }
60
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Validator
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Validator
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_Api_Validator_DefaultParameters extends Payone_Api_Validator_Abstract
34
+ {
35
+ /**
36
+ * @param Payone_Api_Request_Interface $request
37
+ * @return bool
38
+ * @throws Payone_Api_Exception_Request_InvalidKey
39
+ * @throws Payone_Api_Exception_Request_InvalidMid
40
+ * @throws Payone_Api_Exception_Request_InvalidMode
41
+ * @throws Payone_Api_Exception_Request_InvalidPortalid
42
+ */
43
+ public function validateRequest(Payone_Api_Request_Interface $request)
44
+ {
45
+ if ($request->getMid() == '') {
46
+ throw new Payone_Api_Exception_Request_InvalidMid();
47
+ }
48
+ if ($request->getPortalid() == '') {
49
+ throw new Payone_Api_Exception_Request_InvalidPortalid();
50
+ }
51
+ if ($request->getKey() == '') {
52
+ throw new Payone_Api_Exception_Request_InvalidKey();
53
+ }
54
+ if ($request->getMode() == '') {
55
+ throw new Payone_Api_Exception_Request_InvalidMode();
56
+ }
57
+
58
+ return true;
59
+ }
60
+ }
lib/Payone/Api/Validator/Interface.php CHANGED
@@ -1,41 +1,41 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_Api
17
- * @subpackage Validator
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_Api
28
- * @subpackage Validator
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- interface Payone_Api_Validator_Interface
34
- {
35
- /**
36
- * @abstract
37
- * @param Payone_Api_Request_Interface $request
38
- * @return bool
39
- */
40
- public function validateRequest(Payone_Api_Request_Interface $request);
41
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_Api
17
+ * @subpackage Validator
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_Api
28
+ * @subpackage Validator
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ interface Payone_Api_Validator_Interface
34
+ {
35
+ /**
36
+ * @abstract
37
+ * @param Payone_Api_Request_Interface $request
38
+ * @return bool
39
+ */
40
+ public function validateRequest(Payone_Api_Request_Interface $request);
41
+ }
lib/Payone/Bootstrap.php CHANGED
@@ -1,48 +1,48 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone
17
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
18
- * @author Matthias Walter <info@noovias.com>
19
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
20
- * @link http://www.noovias.com
21
- */
22
-
23
- /**
24
- * This Class Initializes the PAYONE SDK
25
- *
26
- * It configures the Autoloader for the included Log4php framework
27
- * And also includes the PAYONE Autoloader
28
- *
29
- * @category Payone
30
- * @package Payone
31
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
32
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
33
- * @link http://www.noovias.com
34
- */
35
- class Payone_Bootstrap
36
- {
37
- public function init()
38
- {
39
- $this->initPayone();
40
- }
41
-
42
- protected function initPayone()
43
- {
44
- require_once 'Payone/Autoload.php';
45
- new Payone_Autoload();
46
- }
47
-
48
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone
17
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
18
+ * @author Matthias Walter <info@noovias.com>
19
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
20
+ * @link http://www.noovias.com
21
+ */
22
+
23
+ /**
24
+ * This Class Initializes the PAYONE SDK
25
+ *
26
+ * It configures the Autoloader for the included Log4php framework
27
+ * And also includes the PAYONE Autoloader
28
+ *
29
+ * @category Payone
30
+ * @package Payone
31
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
32
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
33
+ * @link http://www.noovias.com
34
+ */
35
+ class Payone_Bootstrap
36
+ {
37
+ public function init()
38
+ {
39
+ $this->initPayone();
40
+ }
41
+
42
+ protected function initPayone()
43
+ {
44
+ require_once 'Payone/Autoload.php';
45
+ new Payone_Autoload();
46
+ }
47
+
48
+ }
lib/Payone/ClientApi/Enum/RequestType.php CHANGED
@@ -1,36 +1,36 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_ClientApi
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_ClientApi
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_ClientApi_Enum_RequestType
34
- {
35
- const CREDITCARDCHECK = 'creditcardcheck';
36
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_ClientApi
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_ClientApi
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_ClientApi_Enum_RequestType
34
+ {
35
+ const CREDITCARDCHECK = 'creditcardcheck';
36
+ }
lib/Payone/ClientApi/Enum/ResponseType.php CHANGED
@@ -1,37 +1,37 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_ClientApi
17
- * @subpackage Enum
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_ClientApi
28
- * @subpackage Enum
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- class Payone_ClientApi_Enum_ResponseType
34
- {
35
- const JSON = 'JSON';
36
- const REDIRECT = 'REDIRECT';
37
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_ClientApi
17
+ * @subpackage Enum
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_ClientApi
28
+ * @subpackage Enum
29
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
+ * @link http://www.noovias.com
32
+ */
33
+ class Payone_ClientApi_Enum_ResponseType
34
+ {
35
+ const JSON = 'JSON';
36
+ const REDIRECT = 'REDIRECT';
37
+ }
lib/Payone/ClientApi/Exception/Abstract.php CHANGED
@@ -1,36 +1,36 @@
1
- <?php
2
- /**
3
- *
4
- * NOTICE OF LICENSE
5
- *
6
- * This source file is subject to the GNU General Public License (GPL 3)
7
- * that is bundled with this package in the file LICENSE.txt
8
- *
9
- * DISCLAIMER
10
- *
11
- * Do not edit or add to this file if you wish to upgrade Payone to newer
12
- * versions in the future. If you wish to customize Payone for your
13
- * needs please refer to http://www.payone.de for more information.
14
- *
15
- * @category Payone
16
- * @package Payone_ClientApi
17
- * @subpackage Exception
18
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
- * @author Matthias Walter <info@noovias.com>
20
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
- * @link http://www.noovias.com
22
- */
23
-
24
- /**
25
- *
26
- * @category Payone
27
- * @package Payone_ClientApi
28
- * @subpackage Exception
29
- * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
30
- * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
- * @link http://www.noovias.com
32
- */
33
- abstract class Payone_ClientApi_Exception_Abstract extends Exception
34
- {
35
-
36
- }
1
+ <?php
2
+ /**
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the GNU General Public License (GPL 3)
7
+ * that is bundled with this package in the file LICENSE.txt
8
+ *
9
+ * DISCLAIMER
10
+ *
11
+ * Do not edit or add to this file if you wish to upgrade Payone to newer
12
+ * versions in the future. If you wish to customize Payone for your
13
+ * needs please refer to http://www.payone.de for more information.
14
+ *
15
+ * @category Payone
16
+ * @package Payone_ClientApi
17
+ * @subpackage Exception
18
+ * @copyright Copyright (c) 2012 <info@noovias.com> - www.noovias.com
19
+ * @author Matthias Walter <info@noovias.com>
20
+ * @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
+ * @link http://www.noovias.com
22
+ */
23
+
24
+ /**
25
+ *
26
+ * @category Payone
27
+ * @package Payone_ClientApi
28
+ * @subpackage Exception
29
+