Package com.adyen.model.tapi
Class GetTotalsRequest
- java.lang.Object
-
- com.adyen.model.tapi.GetTotalsRequest
-
public class GetTotalsRequest extends Object
It conveys information from the Sale System related to the scope and the format of the totals to be computed by the POI System. Content of the Get Totals Request message.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGetTotalsRequest.TotalDetailsEnumGets or Sets totalDetails
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_TOTAL_DETAILSstatic StringJSON_PROPERTY_TOTAL_FILTER
-
Constructor Summary
Constructors Constructor Description GetTotalsRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GetTotalsRequestaddTotalDetailsItem(GetTotalsRequest.TotalDetailsEnum totalDetailsItem)booleanequals(Object o)Return true if this GetTotalsRequest object is equal to o.static GetTotalsRequestfromJson(String jsonString)Create an instance of GetTotalsRequest given an JSON stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.List<GetTotalsRequest.TotalDetailsEnum>getTotalDetails()Indicates the hierarchical structure of the reconciliation result of the Sale to POI reconciliation.TotalFiltergetTotalFilter()Get totalFilterinthashCode()GetTotalsRequestincludeNullValues(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.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetTotalDetails(List<GetTotalsRequest.TotalDetailsEnum> totalDetails)Indicates the hierarchical structure of the reconciliation result of the Sale to POI reconciliation.voidsetTotalFilter(TotalFilter totalFilter)totalFilterStringtoJson()Convert an instance of GetTotalsRequest to an JSON stringStringtoString()GetTotalsRequesttotalDetails(List<GetTotalsRequest.TotalDetailsEnum> totalDetails)Indicates the hierarchical structure of the reconciliation result of the Sale to POI reconciliation.GetTotalsRequesttotalFilter(TotalFilter totalFilter)totalFilter
-
-
-
Field Detail
-
JSON_PROPERTY_TOTAL_DETAILS
public static final String JSON_PROPERTY_TOTAL_DETAILS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TOTAL_FILTER
public static final String JSON_PROPERTY_TOTAL_FILTER
- See Also:
- Constant Field Values
-
-
Method Detail
-
totalDetails
public GetTotalsRequest totalDetails(List<GetTotalsRequest.TotalDetailsEnum> totalDetails)
Indicates the hierarchical structure of the reconciliation result of the Sale to POI reconciliation. Required to present totals per value of element included in this cluster (POI Terminal, Sale Terminal, Cashier, Shift, TotalsGroupID). Possible values: * **OperatorID** * **POIID** * **SaleID** * **ShiftNumber** * **TotalsGroupID**- Parameters:
totalDetails- Indicates the hierarchical structure of the reconciliation result of the Sale to POI reconciliation. Required to present totals per value of element included in this cluster (POI Terminal, Sale Terminal, Cashier, Shift, TotalsGroupID). Possible values: * **OperatorID** * **POIID** * **SaleID** * **ShiftNumber** * **TotalsGroupID**- Returns:
- the current
GetTotalsRequestinstance, allowing for method chaining
-
addTotalDetailsItem
public GetTotalsRequest addTotalDetailsItem(GetTotalsRequest.TotalDetailsEnum totalDetailsItem)
-
getTotalDetails
public List<GetTotalsRequest.TotalDetailsEnum> getTotalDetails()
Indicates the hierarchical structure of the reconciliation result of the Sale to POI reconciliation. Required to present totals per value of element included in this cluster (POI Terminal, Sale Terminal, Cashier, Shift, TotalsGroupID). Possible values: * **OperatorID** * **POIID** * **SaleID** * **ShiftNumber** * **TotalsGroupID**- Returns:
- totalDetails Indicates the hierarchical structure of the reconciliation result of the Sale to POI reconciliation. Required to present totals per value of element included in this cluster (POI Terminal, Sale Terminal, Cashier, Shift, TotalsGroupID). Possible values: * **OperatorID** * **POIID** * **SaleID** * **ShiftNumber** * **TotalsGroupID**
-
setTotalDetails
public void setTotalDetails(List<GetTotalsRequest.TotalDetailsEnum> totalDetails)
Indicates the hierarchical structure of the reconciliation result of the Sale to POI reconciliation. Required to present totals per value of element included in this cluster (POI Terminal, Sale Terminal, Cashier, Shift, TotalsGroupID). Possible values: * **OperatorID** * **POIID** * **SaleID** * **ShiftNumber** * **TotalsGroupID**- Parameters:
totalDetails- Indicates the hierarchical structure of the reconciliation result of the Sale to POI reconciliation. Required to present totals per value of element included in this cluster (POI Terminal, Sale Terminal, Cashier, Shift, TotalsGroupID). Possible values: * **OperatorID** * **POIID** * **SaleID** * **ShiftNumber** * **TotalsGroupID**
-
totalFilter
public GetTotalsRequest totalFilter(TotalFilter totalFilter)
totalFilter- Parameters:
totalFilter-- Returns:
- the current
GetTotalsRequestinstance, allowing for method chaining
-
getTotalFilter
public TotalFilter getTotalFilter()
Get totalFilter- Returns:
- totalFilter
-
setTotalFilter
public void setTotalFilter(TotalFilter totalFilter)
totalFilter- Parameters:
totalFilter-
-
includeNullValues
public GetTotalsRequest 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 GetTotalsRequest 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 GetTotalsRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of GetTotalsRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GetTotalsRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to GetTotalsRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of GetTotalsRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-