@@ 74-91 (lines=18) @@ | ||
71 | /** |
|
72 | * @return array of Merchants |
|
73 | */ |
|
74 | public function getMerchants() : array |
|
75 | { |
|
76 | if (!$this->checkLogin()) { |
|
77 | return array(); |
|
78 | } |
|
79 | $arrResult = array(); |
|
80 | $merchantList = $this->_network->getMerchantList(); |
|
81 | foreach($merchantList as $merchant) { |
|
82 | $Merchant = Merchant::createInstance(); |
|
83 | $Merchant->merchant_ID = $merchant['cid']; |
|
84 | $Merchant->name = $merchant['name']; |
|
85 | $Merchant->url = $merchant['url']; |
|
86 | $Merchant->status = $merchant['status']; |
|
87 | $arrResult[] = $Merchant; |
|
88 | } |
|
89 | ||
90 | return $arrResult; |
|
91 | } |
|
92 | ||
93 | /** |
|
94 | * @param int|null $merchantID |
@@ 71-88 (lines=18) @@ | ||
68 | /** |
|
69 | * @return array of Merchants |
|
70 | */ |
|
71 | public function getMerchants() : array |
|
72 | { |
|
73 | if (!$this->checkLogin()) { |
|
74 | return array(); |
|
75 | } |
|
76 | $arrResult = array(); |
|
77 | $merchantList = $this->_network->getMerchantList(); |
|
78 | foreach($merchantList as $merchant) { |
|
79 | $Merchant = Merchant::createInstance(); |
|
80 | $Merchant->merchant_ID = $merchant['cid']; |
|
81 | $Merchant->name = $merchant['name']; |
|
82 | $Merchant->status = $merchant['status']; |
|
83 | $Merchant->url = $merchant['url']; |
|
84 | $arrResult[] = $Merchant; |
|
85 | } |
|
86 | ||
87 | return $arrResult; |
|
88 | } |
|
89 | ||
90 | /** |
|
91 | * @param int $merchantID |
@@ 73-89 (lines=17) @@ | ||
70 | /** |
|
71 | * @return array of Merchants |
|
72 | */ |
|
73 | public function getMerchants() : array |
|
74 | { |
|
75 | if (!$this->checkLogin()) { |
|
76 | return array(); |
|
77 | } |
|
78 | $arrResult = array(); |
|
79 | $merchantList = $this->_network->getMerchantList(); |
|
80 | foreach($merchantList as $merchant) { |
|
81 | $Merchant = Merchant::createInstance(); |
|
82 | $Merchant->merchant_ID = $merchant['cid']; |
|
83 | $Merchant->name = $merchant['name']; |
|
84 | $Merchant->url = $merchant['url']; |
|
85 | $Merchant->status = $merchant['status']; |
|
86 | $arrResult[] = $Merchant; |
|
87 | } |
|
88 | return $arrResult; |
|
89 | } |
|
90 | ||
91 | /** |
|
92 | * @param int|null $merchantID |
@@ 75-88 (lines=14) @@ | ||
72 | /** |
|
73 | * @return array of Merchants |
|
74 | */ |
|
75 | public function getMerchants() : array |
|
76 | { |
|
77 | $arrResult = array(); |
|
78 | $merchantList = $this->_network->getMerchantList(); |
|
79 | foreach($merchantList as $merchant) { |
|
80 | $Merchant = Merchant::createInstance(); |
|
81 | $Merchant->merchant_ID = $merchant['cid']; |
|
82 | $Merchant->name = $merchant['name']; |
|
83 | $Merchant->status = $merchant['status']; |
|
84 | $Merchant->termination_date = $merchant['termination_date']; |
|
85 | $arrResult[] = $Merchant; |
|
86 | } |
|
87 | return $arrResult; |
|
88 | } |
|
89 | ||
90 | /** |
|
91 | * @param int $merchantID |
@@ 81-96 (lines=16) @@ | ||
78 | /** |
|
79 | * @return array of Merchants |
|
80 | */ |
|
81 | public function getMerchants() : array |
|
82 | { |
|
83 | $arrResult = array(); |
|
84 | $merchantList = $this->_network->getMerchantList(); |
|
85 | foreach($merchantList as $merchant) { |
|
86 | $Merchant = Merchant::createInstance(); |
|
87 | $Merchant->merchant_ID = $merchant['cid']; |
|
88 | $Merchant->name = $merchant['name']; |
|
89 | // Added more info - 2018-04-23 <PN> |
|
90 | $Merchant->status = $merchant['status']; |
|
91 | $Merchant->url = $merchant['url']; |
|
92 | $arrResult[] = $Merchant; |
|
93 | } |
|
94 | ||
95 | return $arrResult; |
|
96 | } |
|
97 | ||
98 | /** |
|
99 | * @param int $merchantID to filter only one merchant |