<?php
return [
    'apiUrl' => env('API_URL', 'https://a2papiintl.mnpspbd.com/a2p-sms/api/v1/send-sms'),
    'apiDelivery' => env('API_DELIVERY', 'https://api.mnpspbd.com/a2p-proxy-api/api/v1/check-delivery-report'),
    'country_code' => env('COUNTRY_CODE', '88'),
    'encrypt_number' => 2565234256,
    'encrypt_string' => 'abs',
    'encrypt_key' => '',
    'keyValidity' => "+30 days",

    'statusCode' => [
        9000 => [
            'code' => 9000,
            'message' => 'Request successful!',
            'reason' => '	Request is processed successfully',
        ],
        9001 => [
            'code' => 9001,
            'message' => 'Required field missing!',
            'reason' => 'Mandatory field not provided in request payload, eg: apiKey, username, password, cli etc.',
        ],
        9002 => [
            'code' => 9002,
            'message' => 'Client credentials mismatch!',
            'reason' => 'Provided client username-billMSISDN does not match with any billMSISDN entry registered in MNPSP',
        ],
        9003 => [
            'code' => 9003,
            'message' => 'Out of balance!!',
            'reason' => 'Client balance is less than 0 or minimum balance required !',
        ],
        9004 => [
            'code' => 9004,
            'message' => 'Insufficient balance!',
            'reason' => 'Client does not have enough balance to process the request!',
        ],
        9005 => [
            'code' => 9005,
            'message' => 'Client not found!',
            'reason' => 'No active client found by provided master key/secondary api key!',
        ],
        9006 => [
            'code' => 9006,
            'message' => 'Invalid source IP!',
            'reason' => 'Request IP did not match with registered whitelisted IP!',
        ],
        9007 => [
            'code' => 9007,
            'message' => 'Invalid bill MSISDN!',
            'reason' => 'Requested BIll MSISDN was not found in registered list!',
        ],
        9008 => [
            'code' => 9008,
            'message' => 'Invalid CLI!',
            'reason' => 'Requested CLI-billMSISDN-apiKey mapping did not match with registered list!',
        ],
        9009 => [
            'code' => 9009,
            'message' => 'Missing destination MSISDN!',
            'reason' => 'Iff no destination MSISDN is provided for broadcasting message!',
        ],
        9010 => [
            'code' => 9010,
            'message' => 'Max limit for destination MSISDN exceeds!',
            'reason' => 'Iff more than 1 destination MSISDN is provided!',
        ],
        9011 => [
            'code' => 9011,
            'message' => 'MNO server failure!',
            'reason' => 'Failed to get response from MNO!',
        ],
        9012 => [
            'code' => 9012,
            'message' => 'Dipping failure!',
            'reason' => 'Dipping server was unreachable or responded with malformed data!',
        ],
        9013 => [
            'code' => 9013,
            'message' => 'Invalid Content!',
            'reason' => '',
        ],
        9014 => [
            'code' => 9014,
            'message' => 'Invalid keyword!',
            'reason' => '',
        ],
        9015 => [
            'code' => 9015,
            'message' => 'DND server failure!',
            'reason' => '',
        ],
        9016 => [
            'code' => 9016,
            'message' => 'Invalid check delivery request!',
            'reason' => '',
        ],
        9017 => [
            'code' => 9017,
            'message' => 'Invalid check balance request!',
            'reason' => '',
        ],
        9018 => [
            'code' => 9018,
            'message' => 'Invalid check CLI request!',
            'reason' => '',
        ],
        9019 => [
            'code' => 9019,
            'message' => 'Invalid transaction type!',
            'reason' => 'If transactionType is not set to T !',
        ],
        9020 => [
            'code' => 9020,
            'message' => 'Invalid message type!',
            'reason' => 'If invalid messageType is provided. Possible Values:
                    1 - English Text
                    2 - English Flash
                    3 - Unicode Bangla
                    4 - Unicode Flash Bangla',
        ],
        9099 => [
            'code' => 9099,
            'message' => 'Server failure!',
            'reason' => 'MNPSP server failure',
        ],
        5001 => [
            'code' => 5001,
            'message' => 'Receiver Problem!',
            'reason' => 'Receiver Number Must be Array and at least one number',
        ],
        5000 => [
            'code' => 5000,
            'message' => 'Server Error !',
            'reason' => 'Server Error !',
        ],
        // ANS API Response Code Map
        1000 => [
            'code' => 1000,
            'message' => 'Success !',
            'reason' => 'Success !',
        ],
        1001 => [
            'code' => 1001,
            'message' => 'IP Blacklist !',
            'reason' => '',
        ],
        1002 => [
            'code' => 1002,
            'message' => 'Invalid Username !',
            'reason' => '',
        ],
        1003 => [
            'code' => 1003,
            'message' => 'Invalid Password !',
            'reason' => '',
        ],
        1004 => [
            'code' => 1004,
            'message' => 'Parameter missing !',
            'reason' => '',
        ],
        1005 => [
            'code' => 1005,
            'message' => 'Parameter missing !',
            'reason' => '',
        ],
        1006 => [
            'code' => 1006,
            'message' => 'CLI/Masking Invalid !',
            'reason' => '',
        ],
        1007 => [
            'code' => 1007,
            'message' => 'Account Barred !',
            'reason' => '',
        ],
        1008 => [
            'code' => 1008,
            'message' => 'Insufficient Balance !',
            'reason' => '',
        ],
        1009 => [
            'code' => 1009,
            'message' => 'DND User !',
            'reason' => '',
        ],
        1010 => [
            'code' => 1010,
            'message' => 'Invalid MSISDN !',
            'reason' => '',
        ],
        1011 => [
            'code' => 1011,
            'message' => 'Duplicate Transaction ID !',
            'reason' => '',
        ],
        1012 => [
            'code' => 1012,
            'message' => 'Message lengths exceed !',
            'reason' => '',
        ],
        1013 => [
            'code' => 1013,
            'message' => 'No Request found !',
            'reason' => '',
        ],
        1014 => [
            'code' => 1014,
            'message' => 'Delivery pending !',
            'reason' => '',
        ],
        1015 => [
            'code' => 1015,
            'message' => 'TPS Limit Exceeded !',
            'reason' => '',
        ],
        1016 => [
            'code' => 1016,
            'message' => 'Number Barred !',
            'reason' => '',
        ],
        1017 => [
            'code' => 1017,
            'message' => 'API is not allowed for user !',
            'reason' => '',
        ],
        1018 => [
            'code' => 1018,
            'message' => 'No Live Campaign!',
            'reason' => '',
        ],
        1019 => [
            'code' => 1019,
            'message' => 'Messagebody Invalid!',
            'reason' => '',
        ],
        1020 => [
            'code' => 1020,
            'message' => 'Internal Server Error!',
            'reason' => '',
        ],
        1021 => [
            'code' => 1021,
            'message' => 'CLI/Masking Already Exists!',
            'reason' => '',
        ],
        1050 => [
            'code' => 1050,
            'message' => 'Allowed campaigns limit exceeded!',
            'reason' => '',
        ],
        1051 => [
            'code' => 1051,
            'message' => 'Allowed SMS quota is completed !',
            'reason' => '',
        ],
        1052 => [
            'code' => 1052,
            'message' => 'Submission record not found !',
            'reason' => '',
        ],
        1053 => [
            'code' => 1053,
            'message' => 'Invalid Transaction Id !',
            'reason' => '',
        ],
        1054 => [
            'code' => 1054,
            'message' => 'MSISDN Limit Exceeded !',
            'reason' => '',
        ],
    ]
];
