forked from thalent/acumulus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added models for responses
- Loading branch information
Showing
8 changed files
with
114 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/NextTalent/AcumulusPhp/Models/Response/AbstractResponse.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
/** | ||
* Created by PhpStorm. | ||
* User: mthal_000 | ||
* Date: 3/30/2015 | ||
* Time: 6:02 AM | ||
*/ | ||
|
||
namespace NextTalent\AcumulusPhp\Models\Response; | ||
|
||
|
||
abstract class AbstractResponse { | ||
/** | ||
* @var string | ||
*/ | ||
public $status; | ||
/** | ||
* @var Errrors[] | ||
*/ | ||
public $errors; | ||
/** | ||
* @var Warning[] | ||
*/ | ||
public $warnings; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
/** | ||
* Created by PhpStorm. | ||
* User: mthal_000 | ||
* Date: 3/30/2015 | ||
* Time: 6:03 AM | ||
*/ | ||
|
||
namespace NextTalent\AcumulusPhp\Models\Response; | ||
|
||
|
||
class Warning { | ||
/** | ||
* @var string | ||
*/ | ||
public $code; | ||
/** | ||
* @var string | ||
*/ | ||
public $codetage; | ||
/** | ||
* @var string | ||
*/ | ||
public $message; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
namespace NextTalent\AcumulusPhp\Models\Response; | ||
|
||
class Invoice { | ||
public $invoicenumber; | ||
public $token; | ||
public $entryid; | ||
public $paymentstatus; | ||
|
||
function __construct($xml) { | ||
if(isset($xml['entryid'])) { | ||
$this->entryid = $xml['entryid']; | ||
} | ||
if(isset($xml['token'])) { | ||
$this->token = $xml['token']; | ||
} | ||
if(isset($xml['invoicenumber'])) { | ||
$this->invoicenumber = $xml['invoicenumber']; | ||
} | ||
if(isset($xml['paymentstatus'])) { | ||
$this->invoicenumber = $xml['paymentstatus']; | ||
} | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
/** | ||
* Created by PhpStorm. | ||
* User: mthal_000 | ||
* Date: 3/30/2015 | ||
* Time: 6:03 AM | ||
*/ | ||
|
||
namespace NextTalent\AcumulusPhp\Models\Response; | ||
|
||
|
||
class Warning { | ||
/** | ||
* @var string | ||
*/ | ||
public $code; | ||
/** | ||
* @var string | ||
*/ | ||
public $codetage; | ||
/** | ||
* @var string | ||
*/ | ||
public $message; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters