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 stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.BooleangetHasNext()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)Indicates whether there are more items on the next page.PaginatedPaymentInstrumentsResponsehasPrevious(Boolean hasPrevious)Indicates whether there are more items on the previous page.PaginatedPaymentInstrumentsResponseincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.PaginatedPaymentInstrumentsResponsepaymentInstruments(List<PaymentInstrument> paymentInstruments)List of payment instruments associated with the balance account.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.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.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)
Indicates whether there are more items on the next page.- Parameters:
hasNext- Indicates whether there are more items on the next page.- Returns:
- the current
PaginatedPaymentInstrumentsResponseinstance, allowing for method chaining
-
getHasNext
public Boolean getHasNext()
Indicates whether there are more items on the next page.- Returns:
- hasNext Indicates whether there are more items on the next page.
-
setHasNext
public void setHasNext(Boolean hasNext)
Indicates whether there are more items on the next page.- Parameters:
hasNext- Indicates whether there are more items on the next page.
-
hasPrevious
public PaginatedPaymentInstrumentsResponse hasPrevious(Boolean hasPrevious)
Indicates whether there are more items on the previous page.- Parameters:
hasPrevious- Indicates whether there are more items on the previous page.- Returns:
- the current
PaginatedPaymentInstrumentsResponseinstance, allowing for method chaining
-
getHasPrevious
public Boolean getHasPrevious()
Indicates whether there are more items on the previous page.- Returns:
- hasPrevious Indicates whether there are more items on the previous page.
-
setHasPrevious
public void setHasPrevious(Boolean hasPrevious)
Indicates whether there are more items on the previous page.- Parameters:
hasPrevious- Indicates whether there are more items on the previous page.
-
paymentInstruments
public PaginatedPaymentInstrumentsResponse paymentInstruments(List<PaymentInstrument> paymentInstruments)
List of payment instruments associated with the balance account.- Parameters:
paymentInstruments- List of payment instruments associated with the balance account.- Returns:
- the current
PaginatedPaymentInstrumentsResponseinstance, allowing for method chaining
-
addPaymentInstrumentsItem
public PaginatedPaymentInstrumentsResponse addPaymentInstrumentsItem(PaymentInstrument paymentInstrumentsItem)
-
getPaymentInstruments
public List<PaymentInstrument> getPaymentInstruments()
List of payment instruments associated with the balance account.- Returns:
- paymentInstruments List of payment instruments associated with the balance account.
-
setPaymentInstruments
public void setPaymentInstruments(List<PaymentInstrument> paymentInstruments)
List of payment instruments associated with the balance account.- Parameters:
paymentInstruments- List of payment instruments associated with the balance account.
-
includeNullValues
public PaginatedPaymentInstrumentsResponse includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this PaginatedPaymentInstrumentsResponse object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
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
-
-