7.21.6 Recharge Method
The Recharge Method is recharging money to an account associated to the current UserId.
If the execution of the Method cannot be done due to some application logic, the Method should return an Uncertain StatusCode and provide details of the failure in the Status output Argument. When the Method returns an Uncertain StatusCode, the Method is considered to be failed.
If the Method returns successful, it does not indicate, that the recharge has been completed successful. Clients need to access the RechargeStatus Variable to get the information, if the recharge successfully finished.
The signature of this Method is specified below. Table 73 and Table 74 specify the Arguments and AddressSpace representation, respectively.
Signature
Recharge (
[in] PriceDataType Value,
[in] 0:String UserId,
[out] 0:Int32 Status);| Argument | Description |
| Value | The value to recharged to the account of the UserId. |
| UserId | The UserId where the Value should be recharged to the associated account. |
| Status | Status of the execution of the method. If issues occurred during execution. 0 = Execution was successful. -1 = Invalid UserId - UserId unknown -2 = Invalid UserId - Not the current UserId -3 = SelectionId unknown Vendors may return a vendor specific status starting with number -16 or smaller. |
Method Result Codes (defined in Call Service)
| Result Code | Description |
| Bad_UserAccessDenied | See OPC 10000-4 for a general description. |
| Attribute | Value | ||||
| BrowseName | Approve | ||||
| References | NodeClass | BrowseName | DataType | TypeDefinition | ModellingRule |
|---|---|---|---|---|---|
| 0:HasProperty | Variable | 0:InputArguments | 0:Argument[] | 0:PropertyType | 0:Mandatory |
| 0:HasProperty | Variable | 0:OutputArguments | 0:Argument[] | 0:PropertyType | 0:Mandatory |