-
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.
Merge pull request #1 from mrprompt/development
Refactoring
- Loading branch information
Showing
76 changed files
with
217 additions
and
6,523 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,11 @@ | |
* | ||
* @author Thiago Paes <[email protected]> | ||
*/ | ||
use MrPrompt\Centercob\Common\Base\Bank; | ||
use MrPrompt\Centercob\Common\Base\Charge; | ||
use MrPrompt\Centercob\Common\Base\ConsumerUnity; | ||
use MrPrompt\Centercob\Common\Base\CreditCard; | ||
use MrPrompt\Centercob\Common\Base\Occurrence; | ||
use MrPrompt\ShipmentCommon\Base\Bank; | ||
use MrPrompt\ShipmentCommon\Base\Charge; | ||
use MrPrompt\ShipmentCommon\Base\ConsumerUnity; | ||
use MrPrompt\ShipmentCommon\Base\CreditCard; | ||
use MrPrompt\ShipmentCommon\Base\Occurrence; | ||
|
||
/* @var $vencimento \DateTime */ | ||
$vencimento = (new DateTime())->add(new DateInterval('P30D')); | ||
|
@@ -21,7 +21,7 @@ | |
'vendedor' => [ | ||
'codigo' => 1234, // Código de Cliente na Centercob | ||
'nome' => 'NOME DA EMPRESA', | ||
'documento' => '', // cpf/cnpj de cadastro do vendedor | ||
'documento' => '11111111111', // cpf/cnpj de cadastro do vendedor | ||
'nascimento' => '01011970', // data de nascimento do vendeor | ||
'email' => '[email protected]', // email do vendedor | ||
'telefone1' => '4811111111', | ||
|
@@ -107,7 +107,7 @@ | |
'vendedor' => [ | ||
'codigo' => 1234, // Código de Cliente na Centercob | ||
'nome' => 'NOME DA EMPRESA', | ||
'documento' => '', // cpf/cnpj de cadastro do vendedor | ||
'documento' => '11111111111', // cpf/cnpj de cadastro do vendedor | ||
'nascimento' => '01011970', // data de nascimento do vendeor | ||
'email' => '[email protected]', // email do vendedor | ||
'telefone1' => '4811111111', | ||
|
@@ -226,7 +226,7 @@ | |
'vendedor' => [ | ||
'codigo' => 1234, // Código de Cliente na Centercob | ||
'nome' => 'NOME DA EMPRESA', | ||
'documento' => '', // cpf/cnpj de cadastro do vendedor | ||
'documento' => '111111111', // cpf/cnpj de cadastro do vendedor | ||
'nascimento' => '01011970', // data de nascimento do vendeor | ||
'email' => '[email protected]', // email do vendedor | ||
'telefone1' => '4811111111', | ||
|
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 |
---|---|---|
|
@@ -6,11 +6,11 @@ | |
* | ||
* @author Thiago Paes <[email protected]> | ||
*/ | ||
use MrPrompt\Centercob\Common\Base\Sequence; | ||
use MrPrompt\ShipmentCommon\Base\Sequence; | ||
use MrPrompt\Centercob\Shipment\File; | ||
use MrPrompt\Centercob\Factory; | ||
|
||
require __DIR__ . '/../bootstrap.php'; | ||
require __DIR__ . '/bootstrap.php'; | ||
|
||
/* @var $lista array */ | ||
$lista = require __DIR__ . '/cart.php'; | ||
|
@@ -19,10 +19,10 @@ | |
/* @var $date \DateTime */ | ||
$date = new DateTime('2015-05-27'); | ||
|
||
/* @var $sequence \MrPrompt\Centercob\Common\Base\Sequence */ | ||
/* @var $sequence \MrPrompt\ShipmentCommon\Base\Sequence */ | ||
$sequence = new Sequence(6); | ||
|
||
/* @var $customer \MrPrompt\Centercob\Common\Base\Customer */ | ||
/* @var $customer \MrPrompt\ShipmentCommon\Base\Customer */ | ||
$customer = Factory::createCustomerFromArray(array_shift($lista)); | ||
|
||
/* @var $importer \MrPrompt\Centercob\Shipment\File */ | ||
|
@@ -31,7 +31,7 @@ | |
// importing file data | ||
$result = $importer->read(); | ||
|
||
/* @var \MrPrompt\Centercob\Common\Base\Cart */ | ||
/* @var \MrPrompt\ShipmentCommon\Base\Cart */ | ||
$cart = $importer->getCart(); | ||
|
||
/* @var $lista array */ | ||
|
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
Oops, something went wrong.