Package com.six.timapi
Class TransactionRequest
- java.lang.Object
-
- com.six.timapi.TransactionRequest
-
public class TransactionRequest extends Object
Contains configuration for transaction used byTerminal.transaction(com.six.timapi.constants.TransactionType, com.six.timapi.Amount)
orTerminal.transactionAsync(com.six.timapi.constants.TransactionType, com.six.timapi.Amount)
.
-
-
Constructor Summary
Constructors Constructor Description TransactionRequest()
Create transaction request.TransactionRequest(TransactionRequest request)
Create copy of transaction request.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Map<Long,String>
getAdditionalInfo()
Additional information list.Amount
getAmount()
Transaction amount and currency.AmountDiscount
getAmountDiscount()
Discount amount.Amount
getAmountOther()
Cashback amount.Amount
getAmountTip()
Proposed tip amount.Basket
getBasket()
Petrol: Basket.Map<CustomerDataType,String>
getCustomerData()
Customer data.List<LoyaltyCoupon>
getLoyaltyCouponList()
Loyalty coupon list.List<MerchantOption>
getMerchantOptions()
Additional merchant options.Boolean
getRetainCard()
Retain card.Amount
getTipAmount()
Deprecated.UsegetAmountTip()
.TransactionData
getTransactionData()
Transaction information.Long
getUserId()
ECR user identifier.void
setAdditionalInfo(Map<Long,String> additionalInfo)
Set additional information list.void
setAmount(Amount amount)
Set transaction amount and currency.void
setAmountDiscount(AmountDiscount amountDiscount)
Set discount amount.void
setAmountOther(Amount amountOther)
Set cashback amount.void
setAmountTip(Amount amountTip)
Set proposed tip amount.void
setBasket(Basket basket)
Petrol: Set basket.void
setCustomerData(Map<CustomerDataType,String> customerData)
Set customer data.void
setLoyaltyCouponList(List<LoyaltyCoupon> loyaltyCouponList)
Set loyalty coupon list.void
setMerchantOptions(List<MerchantOption> merchantOptions)
Set additional merchant options.void
setRetainCard(Boolean retainCard)
Set retain card.void
setTipAmount(Amount amount)
Deprecated.UsesetAmountTip(Amount)
.void
setTransactionData(TransactionData transactionData)
Set transaction information.void
setUserId(Long userId)
Set ECR user identifier.String
toString()
String representation for debugging purpose.
-
-
-
Constructor Detail
-
TransactionRequest
public TransactionRequest()
Create transaction request.
-
TransactionRequest
public TransactionRequest(TransactionRequest request)
Create copy of transaction request.
-
-
Method Detail
-
getUserId
public Long getUserId()
ECR user identifier.
-
setUserId
public void setUserId(Long userId)
Set ECR user identifier.
-
getAmount
public Amount getAmount()
Transaction amount and currency.
-
setAmount
public void setAmount(Amount amount)
Set transaction amount and currency.
-
getTransactionData
public TransactionData getTransactionData()
Transaction information.
-
setTransactionData
public void setTransactionData(TransactionData transactionData)
Set transaction information.
-
getMerchantOptions
public List<MerchantOption> getMerchantOptions()
Additional merchant options.
-
setMerchantOptions
public void setMerchantOptions(List<MerchantOption> merchantOptions)
Set additional merchant options.
-
getCustomerData
public Map<CustomerDataType,String> getCustomerData()
Customer data.
-
setCustomerData
public void setCustomerData(Map<CustomerDataType,String> customerData)
Set customer data.
-
setAdditionalInfo
public void setAdditionalInfo(Map<Long,String> additionalInfo)
Set additional information list.
-
getBasket
public Basket getBasket()
Petrol: Basket.
-
setBasket
public void setBasket(Basket basket)
Petrol: Set basket.
-
getAmountDiscount
public AmountDiscount getAmountDiscount()
Discount amount. This parameter is only used ifGuides.VALUE_ADDED_SERVICES
is enabled.
-
setAmountDiscount
public void setAmountDiscount(AmountDiscount amountDiscount)
Set discount amount. This parameter is only used ifGuides.VALUE_ADDED_SERVICES
is enabled.
-
getAmountTip
public Amount getAmountTip()
Proposed tip amount. This parameter is only used ifGuides.GASTRO
is enabled.
-
setAmountTip
public void setAmountTip(Amount amountTip)
Set proposed tip amount. This parameter is only used ifGuides.GASTRO
is enabled.
-
getTipAmount
public Amount getTipAmount()
Deprecated.UsegetAmountTip()
.
-
setTipAmount
public void setTipAmount(Amount amount)
Deprecated.UsesetAmountTip(Amount)
.
-
getAmountOther
public Amount getAmountOther()
Cashback amount. This parameter is only used ifGuides.ADVANCED_RETAIL
is enabled.
-
setAmountOther
public void setAmountOther(Amount amountOther)
Set cashback amount. This parameter is only used ifGuides.ADVANCED_RETAIL
is enabled.
-
getRetainCard
public Boolean getRetainCard()
Retain card.
-
setRetainCard
public void setRetainCard(Boolean retainCard)
Set retain card.
-
getLoyaltyCouponList
public List<LoyaltyCoupon> getLoyaltyCouponList()
Loyalty coupon list.
-
setLoyaltyCouponList
public void setLoyaltyCouponList(List<LoyaltyCoupon> loyaltyCouponList)
Set loyalty coupon list.
-
-