Class: Constants
- Inherits:
-
Object
- Object
- Constants
- 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_OAUTH =
'OAUTH'
- AUTH_TYPE_MUTUAL_AUTH =
'MUTUAL_AUTH'
- AUTH_TYPE_JWT =
'JWT'
- OLD_RUN_ENVIRONMENT_CONSTANTS =
['CYBERSOURCE.ENVIRONMENT.SANDBOX', 'CYBERSOURCE.ENVIRONMENT.PRODUCTION', 'CYBERSOURCE.IN.ENVIRONMENT.SANDBOX', 'CYBERSOURCE.IN.ENVIRONMENT.PRODUCTION', 'BANKOFAMERICA.ENVIRONMENT.SANDBOX', 'BANKOFAMERICA.ENVIRONMENT.PRODUCTION']
- DEFAULT_LOG_SIZE =
constants for fall back logic
'10485760'
- DEFAULT_TIMEOUT =
'1000'
- DEFAULT_LOG_DIRECTORY =
'log'
- DEFAULT_KEY_DIRECTORY =
'resource'
- DEFAULT_LOGFILE_NAME =
'cybs'
- DEFAULT_MAX_LOG_FILES =
'5'
- DEFAULT_LOG_LEVEL =
'debug'
- LOG_LEVELS =
['UNKNOWN', 'FATAL', 'ERROR', 'WARN', 'INFO', 'DEBUG']
- 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'
- PORTFOLIO_ID_MANDATORY =
'PortfolioID 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 Missing/Incorrect. Using Default Path: '
- INVALID_MAX_LOG_SIZE =
'Entered MaxLogSize is Missing/Incorrect. Using Default Value: '
- INVALID_MAX_LOG_FILES =
'Entered MaxLogFiles is Missing/Incorrect. Using Default Value: '
- INVALID_LOG_LEVEL =
'Entered LogLevel is Missing/Incorrect. Using Default Value: '
- 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'
- ENABLE_CLIENT_CERT_EMPTY =
'Enable Clientcert is Empty/Null.'
- CLIENT_CERT_DIR_EMPTY =
'Client Cert Directory is Empty/Null'
- SSL_CLIENT_CERT_EMPTY =
'SSL Client Cert is Empty/Null'
- PRIVATE_KEY_EMPTY =
'Private Key is Empty/Null'
- SSL_KEY_PASSWORD_EMPTY =
'SSL Key Password is Empty/Null'
- CLIENT_ID_EMPTY =
'Client Id is Empty/Null'
- CLIENT_SECRET_EMPTY =
'Client Secret is Empty/Null'
- ACCESS_TOKEN_EMPTY =
'AccessToken is Empty/Null'
- REFRESH_TOKEN_EMPTY =
'RefreshToken is Empty/Null'
- DEPRECATED_ENVIRONMENT =
'The value provided for this field `RunEnvironment` has been deprecated and will not be used anymore.\n\nPlease refer to the README file [ https://github.com/CyberSource/cybersource-rest-samples-node/blob/master/README.md ] for information about the new values that are accepted.'