public class ChargeExecutionContext
extends java.lang.Object
Java class defines the conditions under which a charge operation is executed.
The conditions are defined as properties. The properties are grouped by domains.
The list of the available domains is:
ChargingResultContextDomainChargingResultOnErrorContextDomainChargingOutputContextDomainSenderContextDomain
Use the domains and related get methods to set up this class.
Code Snippet
The following snippet shows how to set up the value of a property of the charging result domain:
ChargeExecutionContext context = new ChargeExecutionContext();
context.getChargingResultDomain().setChargedItemReturned(true);
Code Snippet
The following snippet shows how to read the value of a property of the charging result domain:
ChargeExecutionContext context = ...;
...
boolean isChargedItemReturned = context.getChargingOutputDomain().isChargedItemReturned();
| Constructor and Description |
|---|
ChargeExecutionContext()
Creates a charge execution context with an empty
OperationExecutionContext. |
ChargeExecutionContext(OperationExecutionContext innerContext)
Creates a charge execution context using the content of the specified
OperationExecutionContext. |
| Modifier and Type | Method and Description |
|---|---|
ChargeExecutionContext |
duplicate()
Returns a copy of this context, containing a copy of each of its properties.
|
ChargingOutputContextDomain |
getChargingOutputDomain()
Gets the domain used to configure the output of the charging operation.
|
ChargingResultContextDomain |
getChargingResultDomain()
Gets the domain used to configure the content of the result of the charging operation.
|
ChargingResultOnErrorContextDomain |
getChargingResultOnErrorDomain()
Gets the domain used to configure the content of the result of the charging operation when an error occurs.
|
OperationExecutionContext |
getInnerContext()
This method is reserved for SAP internal use only.
|
SenderContextDomain |
getSenderDomain()
Gets the domain used to specify information about the sender of the operation.
|
boolean |
isNotificationPropertiesFormatted()
Gets whether the properties of
notification must be returned formatted in the result of the charging operation. |
void |
setNotificationPropertiesFormatted(boolean isNotificationPropertiesFormatted)
Sets whether the properties of
notification must be returned formatted in the result of the charging operation. |
public ChargeExecutionContext()
OperationExecutionContext.public ChargeExecutionContext(OperationExecutionContext innerContext)
OperationExecutionContext.innerContext - The OperationExecutionContext to usepublic OperationExecutionContext getInnerContext()
public ChargingResultContextDomain getChargingResultDomain()
public ChargingResultOnErrorContextDomain getChargingResultOnErrorDomain()
public ChargingOutputContextDomain getChargingOutputDomain()
public SenderContextDomain getSenderDomain()
public boolean isNotificationPropertiesFormatted()
notification must be returned formatted in the result of the charging operation.true if the properties of notification must be returned formatted, false otherwisepublic void setNotificationPropertiesFormatted(boolean isNotificationPropertiesFormatted)
notification must be returned formatted in the result of the charging operation.isNotificationPropertiesFormatted - true to format the properties of notification returned, false otherwisepublic ChargeExecutionContext duplicate()