Class AsyncAccounts
- java.lang.Object
-
- pl.gsmservice.gateway.AsyncAccounts
-
public class AsyncAccounts extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetAccountDetailsRequestBuilderget()Get account detailsjava.util.concurrent.CompletableFuture<GetAccountDetailsResponse>get(java.util.Optional<Options> options)Get account detailsjava.util.concurrent.CompletableFuture<GetAccountDetailsResponse>getDirect()Get account detailsGetSubaccountDetailsRequestBuildergetSubaccount()Get subaccount detailsjava.util.concurrent.CompletableFuture<GetSubaccountDetailsResponse>getSubaccount(java.lang.String userLogin)Get subaccount detailsjava.util.concurrent.CompletableFuture<GetSubaccountDetailsResponse>getSubaccount(java.lang.String userLogin, java.util.Optional<Options> options)Get subaccount detailsAccountssync()Switches to the sync SDK.
-
-
-
Method Detail
-
sync
public Accounts sync()
Switches to the sync SDK.- Returns:
- The sync SDK
-
get
public GetAccountDetailsRequestBuilder get()
Get account details
Get current account balance and other details of your account. You can check also account limit and if account is main one. Main accounts have unlimited privileges and using User Panel you can create as many subaccounts as you need.
This method doesn't take any parameters. As a successful result a details of current account you are logged in using an API Access Token will be returned.- Returns:
- The async call builder
-
getDirect
public java.util.concurrent.CompletableFuture<GetAccountDetailsResponse> getDirect()
Get account details
Get current account balance and other details of your account. You can check also account limit and if account is main one. Main accounts have unlimited privileges and using User Panel you can create as many subaccounts as you need.
This method doesn't take any parameters. As a successful result a details of current account you are logged in using an API Access Token will be returned.- Returns:
- CompletableFuture<GetAccountDetailsResponse> - The async response
-
get
public java.util.concurrent.CompletableFuture<GetAccountDetailsResponse> get(java.util.Optional<Options> options)
Get account details
Get current account balance and other details of your account. You can check also account limit and if account is main one. Main accounts have unlimited privileges and using User Panel you can create as many subaccounts as you need.
This method doesn't take any parameters. As a successful result a details of current account you are logged in using an API Access Token will be returned.- Parameters:
options- additional options- Returns:
- CompletableFuture<GetAccountDetailsResponse> - The async response
-
getSubaccount
public GetSubaccountDetailsRequestBuilder getSubaccount()
Get subaccount details
Check account balance and other details such subcredit balance of a subaccount. Subaccounts are additional users who can access your account services and the details. You can restrict access level and setup privileges to subaccounts using User Panel.
You should pass the subaccount user login to access its data. Please use builder style:
GetSubaccountDetailsResponse res = sdk.accounts().getSubaccount() .userLogin("some-login") .call();
As a successful result the details of subaccount with provided login will be returned.- Returns:
- The async call builder
-
getSubaccount
public java.util.concurrent.CompletableFuture<GetSubaccountDetailsResponse> getSubaccount(java.lang.String userLogin)
Get subaccount details
Check account balance and other details such subcredit balance of a subaccount. Subaccounts are additional users who can access your account services and the details. You can restrict access level and setup privileges to subaccounts using User Panel.
You should pass the subaccount user login to access its data. Please use builder style:
GetSubaccountDetailsResponse res = sdk.accounts().getSubaccount() .userLogin("some-login") .call();
As a successful result the details of subaccount with provided login will be returned.- Parameters:
userLogin- Login of the subaccount (user) to get the data for- Returns:
- CompletableFuture<GetSubaccountDetailsResponse> - The async response
-
getSubaccount
public java.util.concurrent.CompletableFuture<GetSubaccountDetailsResponse> getSubaccount(java.lang.String userLogin, java.util.Optional<Options> options)
Get subaccount details
Check account balance and other details such subcredit balance of a subaccount. Subaccounts are additional users who can access your account services and the details. You can restrict access level and setup privileges to subaccounts using User Panel.
You should pass the subaccount user login to access its data. Please use builder style:
GetSubaccountDetailsResponse res = sdk.accounts().getSubaccount() .userLogin("some-login") .call();
As a successful result the details of subaccount with provided login will be returned.- Parameters:
userLogin- Login of the subaccount (user) to get the data foroptions- additional options- Returns:
- CompletableFuture<GetSubaccountDetailsResponse> - The async response
-
-