| CLASS info |
| public class WalletPassConstant |
| Provides constants required for adding a pass. |
| Type | Name | Desc |
| String | PASS_COMMON_FIELD_KEY_BACKGROUND_IMG | Adds the key value of the background image URI to commendFields. |
| String | PASS_COMMON_FIELD_KEY_LOGO | Adds the key value of the pass logo URI to commendFields. |
| String | PASS_COMMON_FIELD_KEY_MERCHANT_NAME | Adds the key value of the pass issuer name to commendFields. |
| String | PASS_COMMON_FIELD_KEY_NAME | Adds the key value of the pass name to commendFields. |
| String | PASS_COMMON_FIELD_KEY_CARD_NUMBER | Adds the key value of the pass number to commendFields. |
| String | PASS_COMMON_FIELD_KEY_BALANCE | Adds the key value of the pass balance to commendFields. |
| String | PASS_COMMON_FIELD_KEY_BALANCE_REFRESH_TIME | Adds the key value of the pass balance refresh time to commendFields. |
| String | PASS_COMMON_FIELD_KEY_BLANCE_PIN | Adds the key value of the PIN to commendFields. |
| String | PASS_COMMON_FIELD_KEY_MEMBER_NAME | Adds the key value of the member name to commendFields. |
| String | PASS_COMMON_FIELD_KEY_PROVIDER_NAME | Adds the key value of the coupon provider name to commendFields. |
| String | PASS_APPEND_FIELD_KEY_BACKGROUND_COLOR | Adds the key value of the background color to appendFields. |
| String | PASS_APPEND_FIELD_KEY_EVENT_NUMBER | Adds the key value of the event number to appendFields. |
| String | PASS_APPEND_FIELD_KEY_NEARBY_LOCATIONS | Adds the key value of the location to appendFields. |
| String | PASS_APPEND_FIELD_KEY_MAINPAGE | Adds the key value of the home page to appendFields. |
| String | PASS_APPEND_FIELD_KEY_HOTLINE | Adds the key value of the hotline to appendFields. |
| String | PASS_APPEND_FIELD_KEY_POINTS | Adds the key value of the bonus point to appendFields. |
| String | PASS_APPEND_FIELD_KEY_REWARDS_LEVEL | Adds the key value of the reward level to appendFields. |
| String | PASS_APPEND_FIELD_KEY_DETAILS | Adds the key value of the detailed description to appendFields. |
| String | PASS_APPEND_FIELD_KEY_DISCLAIMER | Adds the key value of the declaration to appendFields. |
| String | PASS_STATE_COMPLETED | The pass is in complete state. |
| String | PASS_STATE_EXPIRED | The pass is in expired state. |
| String | PASS_STATE_INACTIVE | The pass is not activated. |
| String | PASS_STATE_ACTIVE | The pass is in activated state. |
| int | ERROR_CODE_SERVICE_UNAVAILABLE | The service is temporarily unavailable. |
| int | ERROR_CODE_UNSUPPORTED_API_REQUEST | The API is not supported any more. |
| int | ERROR_CODE_INTERNAL_ERROR | Internal error. |
| int | ERROR_CODE_OTHERS | Unknown error. |
| int | ERROR_CODE_INVALID_PARAMETERS | Missing or invalid parameters. |
| int | ERROR_CODE_USER_ACCOUNT_ERROR | The account is abnormal. |
| int | ERROR_CODE_DEVELOPER_ERROR | The app configuration is incorrect. Check logs for further confirmation. |
| int | ERROR_CODE_MERCHANT_ACCOUNT_ERROR | The merchant account is abnormal. For example, the JWE authentication failed. |
| String | EXTRA_ERROR_CODE | Error code. |
| String | PASS_FORMAT_VERSION | Pass version. |
| Constant |
| public static final String PASS_COMMON_FIELD_KEY_BACKGROUND_IMG |
| Adds the key value of the background image URI to commendFields. The value is backgroundImage. |
| Constant |
| public static final String PASS_COMMON_FIELD_KEY_LOGO |
| Adds the key value of the pass logo URI to commendFields. The value is logo. |
| Constant |
| public static final String PASS_COMMON_FIELD_KEY_MERCHANT_NAME |
| Adds the key value of the pass issuer name to commendFields. The value is merchantName. |
| Constant |
| public static final String PASS_COMMON_FIELD_KEY_NAME |
| Adds the key value of the pass name to commendFields. The value is name. |
| Constant |
| public static final String PASS_COMMON_FIELD_KEY_CARD_NUMBER |
| Adds the key value of the pass number to commendFields. The value is cardNumber. |
| Constant |
| public static final String PASS_COMMON_FIELD_KEY_BALANCE |
| Adds the key value of the pass balance to commendFields. The value is balance. |
| Constant |
| public static final String PASS_COMMON_FIELD_KEY_BALANCE_REFRESH_TIME |
| Adds the key value of the pass balance refresh time to commendFields. The value is balanceRefreshTime. |
| Constant |
| public static final String PASS_COMMON_FIELD_KEY_BLANCE_PIN |
| Adds the key value of the PIN to commendFields. The value is pin. |
| Constant |
| public static final String PASS_COMMON_FIELD_KEY_MEMBER_NAME |
| Adds the key value of the member name to commendFields. The value is memberName. |
| Constant |
| public static final String PASS_COMMON_FIELD_KEY_PROVIDER_NAME |
| Adds the key value of the coupon provider name to commendFields. The value is providerName. |
| Constant |
| public static final String PASS_APPEND_FIELD_KEY_BACKGROUND_COLOR |
| Adds the key value of the background color to appendFields. The value is backgroundColor. |
| Constant |
| public static final String PASS_APPEND_FIELD_KEY_EVENT_NUMBER |
| Adds the key value of the event number to appendFields. The value is eventNumber. |
| Constant |
| public static final String PASS_APPEND_FIELD_KEY_NEARBY_LOCATIONS |
| Adds the key value of the location to appendFields. The value is nearbyLocations. |
| Constant |
| public static final String PASS_APPEND_FIELD_KEY_MAINPAGE |
| Adds the key value of the home page to appendFields. The value is website. |
| Constant |
| public static final String PASS_APPEND_FIELD_KEY_HOTLINE |
| Adds the key value of the hotline to appendFields. The value is hotline. |
| Constant |
| public static final String PASS_APPEND_FIELD_KEY_POINTS |
| Adds the key value of the bonus point to appendFields. The value is points. |
| Constant |
| public static final String PASS_APPEND_FIELD_KEY_REWARDS_LEVEL |
| Adds the key value of the reward level to appendFields. The value is level. |
| Constant |
| public static final String PASS_APPEND_FIELD_KEY_DETAILS |
Adds the key value of the detailed description to appendFields. The value is details. |
| public static final String PASS_APPEND_FIELD_KEY_DETAILS |
| Adds the key value of the declaration to appendFields. The value is declaration. |
| public static final String PASS_STATE_COMPLETED |
| The pass is in complete state. The value is completed. |
| public static final String PASS_STATE_EXPIRED |
| The pass is in expired state. The value is expired. |
| public static final String PASS_STATE_INACTIVE |
| The pass is not activated. The value is inactive. |
| public static final String PASS_STATE_ACTIVE |
| The pass is in activated state. The value is active. |
| public static final String ERROR_CODE_SERVICE_UNAVAILABLE |
| The service is temporarily unavailable. The value is -10. |
| public static final String ERROR_CODE_UNSUPPORTED_API_REQUEST |
| The API is no longer supported. The value is -11. |
| public static final String ERROR_CODE_INTERNAL_ERROR |
| Internal error. The value is 3. |
| public static final String ERROR_CODE_OTHERS |
| Unknown error. The value is -100. |
| public static final String ERROR_CODE_INVALID_PARAMETERS |
| Missing or invalid parameters. The value is 1. |
| public static final String ERROR_CODE_USER_ACCOUNT_ERROR |
| The account is abnormal. The value is 2. |
| public static final String ERROR_CODE_DEVELOPER_ERROR |
| The app configuration is incorrect. Check logs for further confirmation. The value is 10. |
| public static final String ERROR_CODE_MERCHANT_ACCOUNT_ERROR |
| The merchant account is abnormal. For example, the JWE authentication failed. The value is 101. |
| public static final String EXTRA_ERROR_CODE |
| Key value of the error code returned through the intent. The value is “com.huawei.wallet.EXTRA_ERROR_CODE”. |
| public static final String PASS_FORMAT_VERSION |
| Pass version. The value is “10.0”. |