Package com.highdeal.allowance.tool
Class AllowanceBlob
java.lang.Object
com.highdeal.allowance.tool.AllowanceBlob
This Java class allows you to interpret the binary representation of an allowance in a provider contract and stored in the back-end database system.
You implement this class to understand and view the content of the ALLO_DATA column of the ALLO table in SAP CC Core Database.
Consult the Core Database Reference for more information about customer master data stored in the SAP CC back-end database for each service provider. See the ALLO table.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThisJava classrepresents a parameter defined in an allowance. -
Method Summary
Modifier and TypeMethodDescriptionstatic final AllowanceBlobcreate(byte[] allowanceBlob) Creates anAllowanceBlobobject from a byte array.static final AllowanceBlobCreates anAllowanceBlobobject from a hexadecimal string.Gets the identifier of the account in thesubscriber accountthat is assigned to the allowance.Gets thetypeof the account that is assigned to the allowance.Gets thecurrency codeof the allowance.Gets the list of theparametersdefined the allowance.Gets the identifier of thecharging contractthat created the allowance (Only available from the version 3).longGets the unique identifier of thecharge activationthat created the allowance.Gets the identifier of the share group of the allowance, or null if the allowance is not shared (Only available from the version 3).Gets the external identifier of the charging contract item that creates this allowance.shortGets the version used to serialize the allowance blob in the back-end database system.
-
Method Details
-
getVersion
public short getVersion()Gets the version used to serialize the allowance blob in the back-end database system. The version number is a zero or positive number.- Returns:
- The version used to serialize the allowance blob in the database
-
getAllowanceParentId
public long getAllowanceParentId()Gets the unique identifier of thecharge activationthat created the allowance.- Returns:
- The unique identifier of the charge activation that created the allowance
-
getAllowanceParentContractId
Gets the identifier of thecharging contractthat created the allowance (Only available from the version 3).- Returns:
- The identifier of the charging contract that created the allowance
-
getChargingContractItemExternalId
Gets the external identifier of the charging contract item that creates this allowance.- Returns:
- The external identifier of the charging contract item that creates this allowance
-
getAllowanceCurrencyCode
Gets thecurrency codeof the allowance.- Returns:
- The code of the
Currencydefined in the allowance
-
getAllowanceAccountId
Gets the identifier of the account in thesubscriber accountthat is assigned to the allowance.- Returns:
- The identifier of the account that is assigned to the allowance
-
getAllowanceAccountType
Gets thetypeof the account that is assigned to the allowance.- Returns:
- The
typeof the account that is assigned to the allowance
-
getAllowanceParameterList
Gets the list of theparametersdefined the allowance.- Returns:
- The list of the
parametersof the allowance
-
create
Creates anAllowanceBlobobject from a hexadecimal string.The hexadecimal string must contain only digits or characters from 'A' to 'F', in lower case or upper case. It may start with the prefix '0x'.
- Parameters:
hexadecimalValue- The hexadecimal string from which the allowance information must be extracted- Returns:
- An
AllowanceBlobobject which contains the data extracted from the specified hexadecimal string - Throws:
IllegalArgumentException- if the specified hexadecimal string is invalid
-
create
Creates anAllowanceBlobobject from a byte array.- Parameters:
allowanceBlob- The byte array from which the allowance information must be extracted- Returns:
- An
AllowanceBlobobject which contains the data extracted from the specified byte array - Throws:
IllegalArgumentException- if the specified byte array is invalid
-