Class: Constants

Inherits:
Object
  • Object
show all
Defined in:
lib/AuthenticationSDK/util/Constants.rb

Constant Summary collapse

GET_REQUEST_TYPE_LOWER =
'get'
POST_REQUEST_TYPE_LOWER =
'post'
PUT_REQUEST_TYPE_LOWER =
'put'
PATCH_REQUEST_TYPE_LOWER =
'patch'
DELETE_REQUEST_TYPE_LOWER =
'delete'
GET_REQUEST_TYPE =
'GET'
POST_REQUEST_TYPE =
'POST'
PUT_REQUEST_TYPE =
'PUT'
PATCH_REQUEST_TYPE =
'PATCH'
DELETE_REQUEST_TYPE =
'DELETE'
V_C_MERCHANT_ID =
'v-c-merchant-id'
HOST =
'host'
DATE =
'date'
REQUEST_TARGET =
'(request-target)'
DIGEST =
'digest'
SIGNATURE =
'Signature'
HTTPS_URI_PREFIX =
'https://'
BEARER =
'Bearer'
MEDIA_TYPE_JSON =
'application/json'
SIGNATURE_ALGORITHM =
'HmacSHA256'
ALGORITHM =
"algorithm=\""
SHA256 =
'SHA-256='
CONTENT_TYPE =
'Content-Type'
USER_AGENT =
'User-Agent'
USER_AGENT_VALUE =
'Mozilla/5.0'
KEY_ID =
"keyid=\""
HEADERS_PARAM =
"headers=\""
SIGNATURE_PARAM =
"signature=\""
AUTH_TYPE_HTTP =
'HTTP_SIGNATURE'
AUTH_TYPE_JWT =
'JWT'
RUN_ENV_SANDBOX =
'CYBERSOURCE.ENVIRONMENT.SANDBOX'
RUN_ENV_PROD =
'CYBERSOURCE.ENVIRONMENT.PRODUCTION'
SANDBOX_URL =
'apitest.cybersource.com'
PRODUCTION_URL =
'api.cybersource.com'
DEFAULT_LOG_SIZE =

constants for fall back logic

'10485760'
DEFAULT_PROXY_ADDRESS =
'userproxy.visa.com'
DEFAULT_PROXY_PORT =
'443'
DEFAULT_TIMEOUT =
'1000'
DEFAULT_LOG_DIRECTORY =
'../log'
DEFAULT_KEY_DIRECTORY =
'resource'
DEFAULT_LOGFILE_NAME =
'cybs'
REQUEST_JSON_ERROR =

Constant for Fall back logic and Exception Handling

'Request Json File missing. File Path :: '
INVALID_ENABLE_LOG =
'EnableLog should be (True/False) in cybs.yml'
REFER_LOG =
'Please refer Log for details'
MERCHANT_ID_NULL =
'MerchantID is mandatory'
INCORRECT_KEY_PASS =
'The keyPass Entered is Incorrect'
AUTH_TYPE_MANDATORY =
'AuthenticationType is Mandatory'
MERCHANT_KEY_ID_MANDATORY =
'MerchantKeyId is Mandatory'
MERCHANT_SECRET_KEY_MANDATORY =
'MerchantSecretKey is Mandatory'
KEY_PASS_NULL =
'keyPass is empty, Assigining merchantID value'
REQUEST_JSON_PATH_EMPTY =
'RequestJsonPath not provided. Using Default Value:'
REQUEST_TYPE_EMPTY =
'RequestType Property of Merchant Config Not Set'
INVALID_REQUEST_TYPE_METHOD =
'Entered Request Type should be (GET/POST/PUT)'
INVALID_LOG_DIRECTORY =
'Entered LogDirectory is Incorrect. Using Default Path: '
RUN_ENVIRONMENT_ERROR =
'Entered RunEnvironment is Incorrect.'
PROPERTY_FILE_NOT_FOUND =
'Cybs.yml file not found'
ERROR_PREFIX =
'Error: '
WARNING_PREFIX =
'Warning: '
HIDDEN_MERCHANT_PROPERTIES =
'merchantID,merchantKeyId,merchantsecretKey,keyAlias,keyPass'
RUN_ENVIRONMENT =
'RunEnvironment is Mandatory'
KEY_DIRECTORY_EMPTY =
'KeysDirectory not provided. Using Default Path:'
FILE_NOT_FOUND =
'File not found, Re-Enter path/file name, Entered path/file name :: '
AUTH_ERROR =
'Check Authentication Type (HTTP_Signature/JWT) in cybs.yml.'
KEY_FILE_NAME_NULL_EMPTY =
'KeyFilename Empty/Null. Assigining merchantID value'
KEY_ALIAS_NULL_EMPTY =
'KeyAlias Empty/Null. Assigining merchantID value'
INCORRECT_KEY_ALIAS =
'The Entered KeyAlias is Incorrect. Assigining merchantID value'