Class AccountResponse
- java.lang.Object
-
- pl.gsmservice.gateway.models.components.AccountResponse
-
public class AccountResponse extends java.lang.ObjectAccountResponseAn object containing information about the User's account and balance
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAccountResponse.Builder
-
Constructor Summary
Constructors Constructor Description AccountResponse()AccountResponse(java.util.Optional<java.lang.String> login, java.util.Optional<? extends AccountType> accountType, java.util.Optional<java.lang.Float> limit, java.util.Optional<java.lang.Float> credit, org.openapitools.jackson.nullable.JsonNullable<java.lang.Float> subcredit, java.util.Optional<java.lang.String> currency, java.util.Optional<java.lang.String> name, java.util.Optional<java.lang.Boolean> isMain)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<AccountType>accountType()Account typestatic AccountResponse.Builderbuilder()java.util.Optional<java.lang.Float>credit()Current account balancejava.util.Optional<java.lang.String>currency()Account currencybooleanequals(java.lang.Object o)inthashCode()java.util.Optional<java.lang.Boolean>isMain()Is main account?java.util.Optional<java.lang.Float>limit()Acount limitjava.util.Optional<java.lang.String>login()User Loginjava.util.Optional<java.lang.String>name()User name and surnameorg.openapitools.jackson.nullable.JsonNullable<java.lang.Float>subcredit()Subaccount credit balance (null if unlimited)java.lang.StringtoString()AccountResponsewithAccountType(java.util.Optional<? extends AccountType> accountType)Account typeAccountResponsewithAccountType(AccountType accountType)Account typeAccountResponsewithCredit(float credit)Current account balanceAccountResponsewithCredit(java.util.Optional<java.lang.Float> credit)Current account balanceAccountResponsewithCurrency(java.lang.String currency)Account currencyAccountResponsewithCurrency(java.util.Optional<java.lang.String> currency)Account currencyAccountResponsewithIsMain(boolean isMain)Is main account?AccountResponsewithIsMain(java.util.Optional<java.lang.Boolean> isMain)Is main account?AccountResponsewithLimit(float limit)Acount limitAccountResponsewithLimit(java.util.Optional<java.lang.Float> limit)Acount limitAccountResponsewithLogin(java.lang.String login)User LoginAccountResponsewithLogin(java.util.Optional<java.lang.String> login)User LoginAccountResponsewithName(java.lang.String name)User name and surnameAccountResponsewithName(java.util.Optional<java.lang.String> name)User name and surnameAccountResponsewithSubcredit(float subcredit)Subaccount credit balance (null if unlimited)AccountResponsewithSubcredit(org.openapitools.jackson.nullable.JsonNullable<java.lang.Float> subcredit)Subaccount credit balance (null if unlimited)
-
-
-
Constructor Detail
-
AccountResponse
public AccountResponse(java.util.Optional<java.lang.String> login, java.util.Optional<? extends AccountType> accountType, java.util.Optional<java.lang.Float> limit, java.util.Optional<java.lang.Float> credit, org.openapitools.jackson.nullable.JsonNullable<java.lang.Float> subcredit, java.util.Optional<java.lang.String> currency, java.util.Optional<java.lang.String> name, java.util.Optional<java.lang.Boolean> isMain)
-
AccountResponse
public AccountResponse()
-
-
Method Detail
-
login
public java.util.Optional<java.lang.String> login()
User Login
-
accountType
public java.util.Optional<AccountType> accountType()
Account type
-
limit
public java.util.Optional<java.lang.Float> limit()
Acount limit
-
credit
public java.util.Optional<java.lang.Float> credit()
Current account balance
-
subcredit
public org.openapitools.jackson.nullable.JsonNullable<java.lang.Float> subcredit()
Subaccount credit balance (null if unlimited)
-
currency
public java.util.Optional<java.lang.String> currency()
Account currency
-
name
public java.util.Optional<java.lang.String> name()
User name and surname
-
isMain
public java.util.Optional<java.lang.Boolean> isMain()
Is main account?
-
builder
public static AccountResponse.Builder builder()
-
withLogin
public AccountResponse withLogin(java.lang.String login)
User Login
-
withLogin
public AccountResponse withLogin(java.util.Optional<java.lang.String> login)
User Login
-
withAccountType
public AccountResponse withAccountType(AccountType accountType)
Account type
-
withAccountType
public AccountResponse withAccountType(java.util.Optional<? extends AccountType> accountType)
Account type
-
withLimit
public AccountResponse withLimit(float limit)
Acount limit
-
withLimit
public AccountResponse withLimit(java.util.Optional<java.lang.Float> limit)
Acount limit
-
withCredit
public AccountResponse withCredit(float credit)
Current account balance
-
withCredit
public AccountResponse withCredit(java.util.Optional<java.lang.Float> credit)
Current account balance
-
withSubcredit
public AccountResponse withSubcredit(float subcredit)
Subaccount credit balance (null if unlimited)
-
withSubcredit
public AccountResponse withSubcredit(org.openapitools.jackson.nullable.JsonNullable<java.lang.Float> subcredit)
Subaccount credit balance (null if unlimited)
-
withCurrency
public AccountResponse withCurrency(java.lang.String currency)
Account currency
-
withCurrency
public AccountResponse withCurrency(java.util.Optional<java.lang.String> currency)
Account currency
-
withName
public AccountResponse withName(java.lang.String name)
User name and surname
-
withName
public AccountResponse withName(java.util.Optional<java.lang.String> name)
User name and surname
-
withIsMain
public AccountResponse withIsMain(boolean isMain)
Is main account?
-
withIsMain
public AccountResponse withIsMain(java.util.Optional<java.lang.Boolean> isMain)
Is main account?
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-