目录

CLASS info
public class WalletPassConstant
Provides constants required for adding a pass.

Constant Summary

TypeNameDesc
StringPASS_COMMON_FIELD_KEY_BACKGROUND_IMGAdds the key value of the background image URI to commendFields.
StringPASS_COMMON_FIELD_KEY_LOGOAdds the key value of the pass logo URI to commendFields.
StringPASS_COMMON_FIELD_KEY_MERCHANT_NAMEAdds the key value of the pass issuer name to commendFields.
StringPASS_COMMON_FIELD_KEY_NAMEAdds the key value of the pass name to commendFields.
StringPASS_COMMON_FIELD_KEY_CARD_NUMBERAdds the key value of the pass number to commendFields.
StringPASS_COMMON_FIELD_KEY_BALANCEAdds the key value of the pass balance to commendFields.
StringPASS_COMMON_FIELD_KEY_BALANCE_REFRESH_TIMEAdds the key value of the pass balance refresh time to commendFields.
StringPASS_COMMON_FIELD_KEY_BLANCE_PINAdds the key value of the PIN to commendFields.
StringPASS_COMMON_FIELD_KEY_MEMBER_NAMEAdds the key value of the member name to commendFields.
StringPASS_COMMON_FIELD_KEY_PROVIDER_NAMEAdds the key value of the coupon provider name to commendFields.
StringPASS_APPEND_FIELD_KEY_BACKGROUND_COLORAdds the key value of the background color to appendFields.
StringPASS_APPEND_FIELD_KEY_EVENT_NUMBERAdds the key value of the event number to appendFields.
StringPASS_APPEND_FIELD_KEY_NEARBY_LOCATIONSAdds the key value of the location to appendFields.
StringPASS_APPEND_FIELD_KEY_MAINPAGEAdds the key value of the home page to appendFields.
StringPASS_APPEND_FIELD_KEY_HOTLINEAdds the key value of the hotline to appendFields.
StringPASS_APPEND_FIELD_KEY_POINTSAdds the key value of the bonus point to appendFields.
StringPASS_APPEND_FIELD_KEY_REWARDS_LEVELAdds the key value of the reward level to appendFields.
StringPASS_APPEND_FIELD_KEY_DETAILSAdds the key value of the detailed description to appendFields.
StringPASS_APPEND_FIELD_KEY_DISCLAIMERAdds the key value of the declaration to appendFields.
StringPASS_STATE_COMPLETEDThe pass is in complete state.
StringPASS_STATE_EXPIREDThe pass is in expired state.
StringPASS_STATE_INACTIVEThe pass is not activated.
StringPASS_STATE_ACTIVEThe pass is in activated state.
intERROR_CODE_SERVICE_UNAVAILABLEThe service is temporarily unavailable.
intERROR_CODE_UNSUPPORTED_API_REQUESTThe API is not supported any more.
intERROR_CODE_INTERNAL_ERRORInternal error.
intERROR_CODE_OTHERSUnknown error.
intERROR_CODE_INVALID_PARAMETERSMissing or invalid parameters.
intERROR_CODE_USER_ACCOUNT_ERRORThe account is abnormal.
intERROR_CODE_DEVELOPER_ERRORThe app configuration is incorrect. Check logs for further confirmation.
intERROR_CODE_MERCHANT_ACCOUNT_ERRORThe merchant account is abnormal. For example, the JWE authentication failed.
StringEXTRA_ERROR_CODEError code.
StringPASS_FORMAT_VERSIONPass version.

Constants

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”.