Package com.adyen.model.balanceplatform
Class PaginatedGetCardOrderItemResponse
- java.lang.Object
-
- com.adyen.model.balanceplatform.PaginatedGetCardOrderItemResponse
-
public class PaginatedGetCardOrderItemResponse extends Object
PaginatedGetCardOrderItemResponse
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DATAstatic StringJSON_PROPERTY_HAS_NEXTstatic StringJSON_PROPERTY_HAS_PREVIOUS
-
Constructor Summary
Constructors Constructor Description PaginatedGetCardOrderItemResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PaginatedGetCardOrderItemResponseaddDataItem(CardOrderItem dataItem)PaginatedGetCardOrderItemResponsedata(List<CardOrderItem> data)List of card order items in the card order batch.booleanequals(Object o)Return true if this PaginatedGetCardOrderItemResponse object is equal to o.static PaginatedGetCardOrderItemResponsefromJson(String jsonString)Create an instance of PaginatedGetCardOrderItemResponse given an JSON stringList<CardOrderItem>getData()List of card order items in the card order batch.BooleangetHasNext()Indicates whether there are more items on the next page.BooleangetHasPrevious()Indicates whether there are more items on the previous page.inthashCode()PaginatedGetCardOrderItemResponsehasNext(Boolean hasNext)Indicates whether there are more items on the next page.PaginatedGetCardOrderItemResponsehasPrevious(Boolean hasPrevious)Indicates whether there are more items on the previous page.voidsetData(List<CardOrderItem> data)List of card order items in the card order batch.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.StringtoJson()Convert an instance of PaginatedGetCardOrderItemResponse to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_DATA
public static final String JSON_PROPERTY_DATA
- See Also:
- Constant Field Values
-
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
-
-
Method Detail
-
data
public PaginatedGetCardOrderItemResponse data(List<CardOrderItem> data)
List of card order items in the card order batch.- Parameters:
data-- Returns:
- the current
PaginatedGetCardOrderItemResponseinstance, allowing for method chaining
-
addDataItem
public PaginatedGetCardOrderItemResponse addDataItem(CardOrderItem dataItem)
-
getData
public List<CardOrderItem> getData()
List of card order items in the card order batch.- Returns:
- data
-
setData
public void setData(List<CardOrderItem> data)
List of card order items in the card order batch.- Parameters:
data-
-
hasNext
public PaginatedGetCardOrderItemResponse hasNext(Boolean hasNext)
Indicates whether there are more items on the next page.- Parameters:
hasNext-- Returns:
- the current
PaginatedGetCardOrderItemResponseinstance, allowing for method chaining
-
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 PaginatedGetCardOrderItemResponse hasPrevious(Boolean hasPrevious)
Indicates whether there are more items on the previous page.- Parameters:
hasPrevious-- Returns:
- the current
PaginatedGetCardOrderItemResponseinstance, allowing for method chaining
-
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-
-
equals
public boolean equals(Object o)
Return true if this PaginatedGetCardOrderItemResponse object is equal to o.
-
fromJson
public static PaginatedGetCardOrderItemResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PaginatedGetCardOrderItemResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaginatedGetCardOrderItemResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PaginatedGetCardOrderItemResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PaginatedGetCardOrderItemResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-