Package com.adyen.model.balanceplatform
Class PaginatedPaymentInstrumentsResponse
- java.lang.Object
-
- com.adyen.model.balanceplatform.PaginatedPaymentInstrumentsResponse
-
public class PaginatedPaymentInstrumentsResponse extends Object
PaginatedPaymentInstrumentsResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPaginatedPaymentInstrumentsResponse.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_HAS_NEXTstatic StringSERIALIZED_NAME_HAS_PREVIOUSstatic StringSERIALIZED_NAME_PAYMENT_INSTRUMENTS
-
Constructor Summary
Constructors Constructor Description PaginatedPaymentInstrumentsResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PaginatedPaymentInstrumentsResponseaddPaymentInstrumentsItem(PaymentInstrument paymentInstrumentsItem)booleanequals(Object o)static PaginatedPaymentInstrumentsResponsefromJson(String jsonString)Create an instance of PaginatedPaymentInstrumentsResponse given an JSON stringBooleangetHasNext()Indicates whether there are more items on the next page.BooleangetHasPrevious()Indicates whether there are more items on the previous page.List<PaymentInstrument>getPaymentInstruments()List of payment instruments associated with the balance account.inthashCode()PaginatedPaymentInstrumentsResponsehasNext(Boolean hasNext)PaginatedPaymentInstrumentsResponsehasPrevious(Boolean hasPrevious)PaginatedPaymentInstrumentsResponsepaymentInstruments(List<PaymentInstrument> paymentInstruments)voidsetHasNext(Boolean hasNext)voidsetHasPrevious(Boolean hasPrevious)voidsetPaymentInstruments(List<PaymentInstrument> paymentInstruments)StringtoJson()Convert an instance of PaginatedPaymentInstrumentsResponse to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj, boolean strictValidation)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_HAS_NEXT
public static final String SERIALIZED_NAME_HAS_NEXT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_HAS_PREVIOUS
public static final String SERIALIZED_NAME_HAS_PREVIOUS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PAYMENT_INSTRUMENTS
public static final String SERIALIZED_NAME_PAYMENT_INSTRUMENTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
hasNext
public PaginatedPaymentInstrumentsResponse hasNext(Boolean hasNext)
-
getHasNext
public Boolean getHasNext()
Indicates whether there are more items on the next page.- Returns:
- hasNext
-
setHasNext
public void setHasNext(Boolean hasNext)
-
hasPrevious
public PaginatedPaymentInstrumentsResponse hasPrevious(Boolean hasPrevious)
-
getHasPrevious
public Boolean getHasPrevious()
Indicates whether there are more items on the previous page.- Returns:
- hasPrevious
-
setHasPrevious
public void setHasPrevious(Boolean hasPrevious)
-
paymentInstruments
public PaginatedPaymentInstrumentsResponse paymentInstruments(List<PaymentInstrument> paymentInstruments)
-
addPaymentInstrumentsItem
public PaginatedPaymentInstrumentsResponse addPaymentInstrumentsItem(PaymentInstrument paymentInstrumentsItem)
-
getPaymentInstruments
public List<PaymentInstrument> getPaymentInstruments()
List of payment instruments associated with the balance account.- Returns:
- paymentInstruments
-
setPaymentInstruments
public void setPaymentInstruments(List<PaymentInstrument> paymentInstruments)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException- Throws:
IOException
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj, boolean strictValidation) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON ObjectstrictValidation- reject (new) fields missing from the specifications- Throws:
IOException- if the JSON Object is invalid with respect to PaginatedPaymentInstrumentsResponse
-
fromJson
public static PaginatedPaymentInstrumentsResponse fromJson(String jsonString) throws IOException
Create an instance of PaginatedPaymentInstrumentsResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaginatedPaymentInstrumentsResponse
- Throws:
IOException- if the JSON string is invalid with respect to PaginatedPaymentInstrumentsResponse
-
toJson
public String toJson()
Convert an instance of PaginatedPaymentInstrumentsResponse to an JSON string- Returns:
- JSON string
-
-