Files
portal/config/unity.php
T
2021-08-05 10:52:26 +08:00

59 lines
2.1 KiB
PHP

<?php
use App\Classes\ValueObjects\Constants as Constant;
use App\Classes\Modules\OrderSteps\Processors\Steps as Step;
return [
'url' => env('UNITY_API_URL', 'https://dev.unity.izyim.com/user-backsys/api/'),
'endpoint' => [
'login' => env('UNITY_LOGIN_ENDPOINT','login'),
'create_entity' => env('UNITY_CREATE_ENTITY_ENDPOINT','entity/store'),
'create_entity_signature' => env('UNITY_CREATE_ENTITY_SIGNATURE_ENDPOINT','entity-signature/store'),
'create_contract_entity' => env('UNITY_CREATE_ENTITY_ENDPOINT','contract-entity/store'),
'get_contract_obligations' => env('UNITY_OB_LIST_ENDPOINT','contract-template-obligation/list'),
'create_contract' => env('UNITY_OB_LIST_ENDPOINT','contract/generate'),
'activate_contract' => 'contract/active/{hash}',
'assign_entity' => env('UNITY_OB_LIST_ENDPOINT','contract-obligation/assign-contract-entity/{hash}'),
'update_obligation_status' => env('UNITY_OB_LIST_ENDPOINT','contract-obligation/update-complete/{hash}'),
],
'access_token_cache' => env('UNITY_TOKEN_CACHE', 86400),
//Set API key empty if using login as auth
'auth' => [
'api_key' => [
'key' => env('UNITY_API_KEY', ''),
],
'login' => [
'username' => env('UNITY_LOGIN_USERNAME','one@izyim.com'),
'password' => env('UNITY_LOGIN_PASSWORD','pass123'),
],
],
#'get_ob_endpoint' => env('UNITY_OB_LIST_ENDPOINT','contract-template-obligation/list'),
#'create_entity_endpoint' => env('UNITY_CREATE_ENTITY_ENDPOINT','entity/store'),
'on_error_email' => env('UNITY_ON_ERROR_EMAIL','dev@shipping.com,dev@unity.com'),
'contract_template_id' => env('UNITY_CONTRACT_TEMPLATE_ID', 105),
'contract_template_hash_id' => env('UNITY_CONTRACT_TEMPLATE_HASH_ID', 'zDMkNBK3dpej1Zpg7yv9'),
'contract_template_cache' => env('UNITY_CONTRACT_TEMPLATE_CACHE','60'),
'obligations' => [
'PACKING' => Constant\OrderSteps::PACKING,
],
'step_processors' => [
Constant\OrderSteps::PACKING => Step\Packing::class,
],
];