Module: ApiV5::Constants
- Defined in:
- lib/api_v5/constants.rb
Constant Summary collapse
- STATUS_HEADER =
'X-HH-Status'- STATUS_SUCCESS =
'1'- STATUS_FAILURE =
'0'- STATUS_INVALID_TOKEN =
'-1'- LANGUAGE_HEADER =
'X-HH-Language'- RATE_LIMIT_HEADER =
'X-RateLimit-Limit'- RATE_LIMIT_REMAINING_HEADER =
'X-RateLimit-Remaining'- RATE_LIMIT_RESET_HEADER =
'X-RateLimit-Reset'- DEFAULT_MINOR_VERSION =
'1'- DEFAULT_PAYMENT_TYPE =
'alipay_plus'- ROBOTS_TAG_HEADER =
'X-Robots-Tag'- COUNTRY_CODE_TH =
Country codes - defined individually to avoid fragile parallel assignment
'THA'- COUNTRY_CODE_SG =
'SGP'- COUNTRY_CODE_MY =
'MYS'- COUNTRY_CODES =
country codes that are allowed - ordered as: Thailand, Singapore, Malaysia. This ordering is used throughout the application for consistency in UI displays and API responses.
[COUNTRY_CODE_TH, COUNTRY_CODE_SG, COUNTRY_CODE_MY].freeze
- OMISE_CHARGE_SUCCESSFUL =
Omise charge status
'successful'- OMISE_CHARGE_PENDING =
'pending'- VALID_OMISE_CHARGE_STATUSES =
[ OMISE_CHARGE_SUCCESSFUL, OMISE_CHARGE_PENDING ].freeze
- SHOPEE_PAY =
Payment types that are not supported at the moment
'shopee_pay'- TRUE_WALLET =
'true_wallet'- INVALID_PAYMENT_TYPES =
[SHOPEE_PAY, TRUE_WALLET].freeze
- VALID_CURRENCY_CODES =
[ Country::THAI_CURRENCY_CODE, Country::SINGAPORE_CURRENCY_CODE, Country::MALAYSIA_CURRENCY_CODE, ].freeze
- CLIENT_TYPE_WEB =
Client types
'web'- CLIENT_TYPE_ANDROID =
'android'- CLIENT_TYPE_IOS =
'ios'