Package com.adyen.model.tapi
Class CardAcquisitionResponse
- java.lang.Object
-
- com.adyen.model.tapi.CardAcquisitionResponse
-
public class CardAcquisitionResponse extends Object
It conveys Information related to the payment and loyalty cards read and processed by the POI System and entered by the Customer. Content of the Card Acquisition Response message.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_LOYALTY_ACCOUNTstatic StringJSON_PROPERTY_PAYMENT_BRANDstatic StringJSON_PROPERTY_PAYMENT_INSTRUMENT_DATAstatic StringJSON_PROPERTY_POI_DATAstatic StringJSON_PROPERTY_RESPONSEstatic StringJSON_PROPERTY_SALE_DATA
-
Constructor Summary
Constructors Constructor Description CardAcquisitionResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CardAcquisitionResponseaddLoyaltyAccountItem(LoyaltyAccount loyaltyAccountItem)CardAcquisitionResponseaddPaymentBrandItem(String paymentBrandItem)booleanequals(Object o)Return true if this CardAcquisitionResponse object is equal to o.static CardAcquisitionResponsefromJson(String jsonString)Create an instance of CardAcquisitionResponse given an JSON stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.List<LoyaltyAccount>getLoyaltyAccount()Data related to the loyalty System.List<String>getPaymentBrand()Type of payment card.PaymentInstrumentDatagetPaymentInstrumentData()Get paymentInstrumentDataPOIDatagetPoiData()Get poiDataResponsegetResponse()Get responseSaleDatagetSaleData()Get saleDatainthashCode()CardAcquisitionResponseincludeNullValues(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.CardAcquisitionResponseloyaltyAccount(List<LoyaltyAccount> loyaltyAccount)Data related to the loyalty System.CardAcquisitionResponsepaymentBrand(List<String> paymentBrand)Type of payment card.CardAcquisitionResponsepaymentInstrumentData(PaymentInstrumentData paymentInstrumentData)paymentInstrumentDataCardAcquisitionResponsepoiData(POIData poiData)poiDataCardAcquisitionResponseresponse(Response response)responseCardAcquisitionResponsesaleData(SaleData saleData)saleDatavoidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetLoyaltyAccount(List<LoyaltyAccount> loyaltyAccount)Data related to the loyalty System.voidsetPaymentBrand(List<String> paymentBrand)Type of payment card.voidsetPaymentInstrumentData(PaymentInstrumentData paymentInstrumentData)paymentInstrumentDatavoidsetPoiData(POIData poiData)poiDatavoidsetResponse(Response response)responsevoidsetSaleData(SaleData saleData)saleDataStringtoJson()Convert an instance of CardAcquisitionResponse to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_RESPONSE
public static final String JSON_PROPERTY_RESPONSE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SALE_DATA
public static final String JSON_PROPERTY_SALE_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_POI_DATA
public static final String JSON_PROPERTY_POI_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_BRAND
public static final String JSON_PROPERTY_PAYMENT_BRAND
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_INSTRUMENT_DATA
public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LOYALTY_ACCOUNT
public static final String JSON_PROPERTY_LOYALTY_ACCOUNT
- See Also:
- Constant Field Values
-
-
Method Detail
-
response
public CardAcquisitionResponse response(Response response)
response- Parameters:
response-- Returns:
- the current
CardAcquisitionResponseinstance, allowing for method chaining
-
getResponse
public Response getResponse()
Get response- Returns:
- response
-
setResponse
public void setResponse(Response response)
response- Parameters:
response-
-
saleData
public CardAcquisitionResponse saleData(SaleData saleData)
saleData- Parameters:
saleData-- Returns:
- the current
CardAcquisitionResponseinstance, allowing for method chaining
-
getSaleData
public SaleData getSaleData()
Get saleData- Returns:
- saleData
-
setSaleData
public void setSaleData(SaleData saleData)
saleData- Parameters:
saleData-
-
poiData
public CardAcquisitionResponse poiData(POIData poiData)
poiData- Parameters:
poiData-- Returns:
- the current
CardAcquisitionResponseinstance, allowing for method chaining
-
getPoiData
public POIData getPoiData()
Get poiData- Returns:
- poiData
-
setPoiData
public void setPoiData(POIData poiData)
poiData- Parameters:
poiData-
-
paymentBrand
public CardAcquisitionResponse paymentBrand(List<String> paymentBrand)
Type of payment card. Brands available for payment by the card and not chosen by the Customer.- Parameters:
paymentBrand- Type of payment card. Brands available for payment by the card and not chosen by the Customer.- Returns:
- the current
CardAcquisitionResponseinstance, allowing for method chaining
-
addPaymentBrandItem
public CardAcquisitionResponse addPaymentBrandItem(String paymentBrandItem)
-
getPaymentBrand
public List<String> getPaymentBrand()
Type of payment card. Brands available for payment by the card and not chosen by the Customer.- Returns:
- paymentBrand Type of payment card. Brands available for payment by the card and not chosen by the Customer.
-
setPaymentBrand
public void setPaymentBrand(List<String> paymentBrand)
Type of payment card. Brands available for payment by the card and not chosen by the Customer.- Parameters:
paymentBrand- Type of payment card. Brands available for payment by the card and not chosen by the Customer.
-
paymentInstrumentData
public CardAcquisitionResponse paymentInstrumentData(PaymentInstrumentData paymentInstrumentData)
paymentInstrumentData- Parameters:
paymentInstrumentData-- Returns:
- the current
CardAcquisitionResponseinstance, allowing for method chaining
-
getPaymentInstrumentData
public PaymentInstrumentData getPaymentInstrumentData()
Get paymentInstrumentData- Returns:
- paymentInstrumentData
-
setPaymentInstrumentData
public void setPaymentInstrumentData(PaymentInstrumentData paymentInstrumentData)
paymentInstrumentData- Parameters:
paymentInstrumentData-
-
loyaltyAccount
public CardAcquisitionResponse loyaltyAccount(List<LoyaltyAccount> loyaltyAccount)
Data related to the loyalty System.- Parameters:
loyaltyAccount- Data related to the loyalty System.- Returns:
- the current
CardAcquisitionResponseinstance, allowing for method chaining
-
addLoyaltyAccountItem
public CardAcquisitionResponse addLoyaltyAccountItem(LoyaltyAccount loyaltyAccountItem)
-
getLoyaltyAccount
public List<LoyaltyAccount> getLoyaltyAccount()
Data related to the loyalty System.- Returns:
- loyaltyAccount Data related to the loyalty System.
-
setLoyaltyAccount
public void setLoyaltyAccount(List<LoyaltyAccount> loyaltyAccount)
Data related to the loyalty System.- Parameters:
loyaltyAccount- Data related to the loyalty System.
-
includeNullValues
public CardAcquisitionResponse 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 CardAcquisitionResponse 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 CardAcquisitionResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CardAcquisitionResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CardAcquisitionResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CardAcquisitionResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CardAcquisitionResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-