Message-ID: <274558795.15859.1614958479005.JavaMail.confluence@wiki> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_15858_1613978119.1614958479005" ------=_Part_15858_1613978119.1614958479005 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Transfer credits from one account to another account, using the integer = account number to specify the target account.
Hashtable<String, String> result =3D tmClient.transferCreditsTo= Account(3, "1234"); System.out.println("Transfered 3 Credits (have " + result.get(&qu= ot;source_credits_after") + " now), to account 1234, now with &qu= ot; + result.get("target_credits_after") + "Credits");=20
Arguments:
int quantity:
The number of credits to transfer from the source account to the target = account.
String targetAccountNumber:
The account number of the account to transfer the credits to (available = in the web-based UI)
Returns:
an Hashtable with four keys: 'source_credits_before', 'source_cred=
its_after',
'target_credits_before' and 'target_credits_after' e.g. r=
esult.get("source_credits_after")
Hashtable key | Value |
---|---|
source_credits_before | The number of credits on the source account befo= re the transfer. |
source_credits_after | The number of credits on the source account a= fter the transfer. |
target_credits_before | The number of credits on the target account b= efore the transfer. |
target_credits_after | The number of credits on the target account a= fter the transfer. |
Specific error codes:
Code | Meaning |
---|---|
0 | There are insufficient credits available to t= ransfer the specified quantity, or the specified quantity is not a positive= number. |
1 | The target account number specified is not a = valid number or username/password combination does not refer to any known a= ccount. |