Skip to content

omatech/seur-dispatches-service

Repository files navigation

SEUR Dispatches Service

Latest Version on Packagist Total Downloads

Use of SEUR dispatches services. Available:

  • ConsultaListadoExpedicionesStr
  • ConsultaDetalleExpedicionesStr

Installation

You can install the package via composer:

composer require omatech/seur-dispatches-service

Environment configuration:

SEUR_MODE=
SEUR_USER=
SEUR_PASSWORD=

Usage

ConsultaListadoExpedicionesStr:

$search = [
  'in0' => 'S',
  'in1' => '',
  'in2' => null,
  'in3' => '',
  'in4' => '1234-56',
  'in5' => '01-05-2019',
  'in6' => '08-05-2019',
  'in7' => '',
  'in8' => '',
  'in9' => '',
  'in10' => '',
  'in11' => null,
  'in12' => 'MYUSERNAME', //Not mandatory if environment variables have been configured
  'in13' => 'MYPASSWORD', //Not mandatory if environment variables have been configured
  'in14' => 'N'
];
$seur = new Seur();
$dispatches = $seur->dispatches($search);

ConsultaDetalleExpedicionesStr:

$search = [
  'in0' => 'S',
  'in1' => 'REF',
  'in2' => 'MYUSERNAME', //Not mandatory if environment variables have been configured
  'in3' => 'MYPASSWORD', //Not mandatory if environment variables have been configured
];
$seur = new Seur();
$dispatch = $seur->dispatch($search);
$seur = new Seur();
$dispatch = $seur->getTypeLDispatchById('ID');
$seur = new Seur();
$dispatch = $seur->getTypeSDispatchById('ID');

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email aroca@omatech.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

Use of SEUR dispatches services

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors