Package com.adyen.model.balanceplatform
Class PaginatedPaymentInstrumentsResponse
- java.lang.Object
-
- com.adyen.model.balanceplatform.PaginatedPaymentInstrumentsResponse
-
public class PaginatedPaymentInstrumentsResponse extends Object
PaginatedPaymentInstrumentsResponse
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_HAS_NEXTstatic StringJSON_PROPERTY_HAS_PREVIOUSstatic StringJSON_PROPERTY_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)Return true if this PaginatedPaymentInstrumentsResponse object is equal to 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)Indicates whether there are more items on the next page.voidsetHasPrevious(Boolean hasPrevious)Indicates whether there are more items on the previous page.voidsetPaymentInstruments(List<PaymentInstrument> paymentInstruments)List of payment instruments associated with the balance account.StringtoJson()Convert an instance of PaginatedPaymentInstrumentsResponse to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_HAS_NEXT
public static final String JSON_PROPERTY_HAS_NEXT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HAS_PREVIOUS
public static final String JSON_PROPERTY_HAS_PREVIOUS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_INSTRUMENTS
public static final String JSON_PROPERTY_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)
Indicates whether there are more items on the next page.- Parameters:
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)
Indicates whether there are more items on the previous page.- Parameters:
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)
List of payment instruments associated with the balance account.- Parameters:
paymentInstruments-
-
equals
public boolean equals(Object o)
Return true if this PaginatedPaymentInstrumentsResponse object is equal to o.
-
fromJson
public static PaginatedPaymentInstrumentsResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PaginatedPaymentInstrumentsResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaginatedPaymentInstrumentsResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PaginatedPaymentInstrumentsResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PaginatedPaymentInstrumentsResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-