7
7
class MaibDescription extends Description {
8
8
/**
9
9
* @param array $options Custom options to apply to the description
10
+ * @param string $merchantHandler Merchant Handler URI
10
11
* - formatter: Can provide a custom SchemaFormatter class
11
12
*/
12
- public function __construct ( array $ options = [ ] ) {
13
+ public function __construct ( array $ options = [ ], $ merchantHandler = ' /ecomm2/MerchantHandler ' ) {
13
14
parent ::__construct ( [
14
15
'name ' => 'Maib API ' ,
15
16
// 'baseUrl' => 'https://ecomm.maib.md:4455/ecomm2/MerchantHandler/', // demo server
16
17
'operations ' => [
17
18
'registerSmsTransaction ' => [
18
19
'httpMethod ' => 'POST ' ,
19
- 'uri ' => ' /ecomm2/MerchantHandler ' ,
20
+ 'uri ' => $ merchantHandler ,
20
21
'description ' => 'identifies the request for register SMS transaction ' ,
21
22
'responseModel ' => 'getResponse ' ,
22
23
'parameters ' => [
@@ -65,7 +66,7 @@ public function __construct( array $options = [ ] ) {
65
66
],
66
67
'registerDmsAuthorization ' => [
67
68
'httpMethod ' => 'POST ' ,
68
- 'uri ' => ' /ecomm2/MerchantHandler ' ,
69
+ 'uri ' => $ merchantHandler ,
69
70
'description ' => 'identifies the request for register DMS transaction ' ,
70
71
'responseModel ' => 'getResponse ' ,
71
72
'parameters ' => [
@@ -115,7 +116,7 @@ public function __construct( array $options = [ ] ) {
115
116
],
116
117
'makeDMSTrans ' => [
117
118
'httpMethod ' => 'POST ' ,
118
- 'uri ' => ' /ecomm2/MerchantHandler ' ,
119
+ 'uri ' => $ merchantHandler ,
119
120
'description ' => 'identifies the request for execute DMS transaction ' ,
120
121
'responseModel ' => 'getResponse ' ,
121
122
'parameters ' => [
@@ -170,7 +171,7 @@ public function __construct( array $options = [ ] ) {
170
171
],
171
172
'getTransactionResult ' => [
172
173
'httpMethod ' => 'POST ' ,
173
- 'uri ' => ' /ecomm2/MerchantHandler ' ,
174
+ 'uri ' => $ merchantHandler ,
174
175
'description ' => 'identifies the request for get transaction result ' ,
175
176
'responseModel ' => 'getResponse ' ,
176
177
'parameters ' => [
@@ -195,7 +196,7 @@ public function __construct( array $options = [ ] ) {
195
196
],
196
197
'revertTransaction ' => [
197
198
'httpMethod ' => 'POST ' ,
198
- 'uri ' => ' /ecomm2/MerchantHandler ' ,
199
+ 'uri ' => $ merchantHandler ,
199
200
'description ' => 'identifies the request for revert transaction ' ,
200
201
'responseModel ' => 'getResponse ' ,
201
202
'parameters ' => [
@@ -219,7 +220,7 @@ public function __construct( array $options = [ ] ) {
219
220
],
220
221
'closeDay ' => [
221
222
'httpMethod ' => 'POST ' ,
222
- 'uri ' => ' /ecomm2/MerchantHandler ' ,
223
+ 'uri ' => $ merchantHandler ,
223
224
'description ' => 'End of business day ' ,
224
225
'responseModel ' => 'getResponse ' ,
225
226
'parameters ' => [
0 commit comments