TransactionRequest

public class TransactionRequest : CustomStringConvertible

Contains configuration for transaction used by {@link Terminal#transaction} or {@link Terminal#transactionAsync}.

  • Create transaction request.

    Declaration

    Swift

    public init()
  • Create copy of transaction request.

    Declaration

    Swift

    public init(request: TransactionRequest)
  • ECR user identifier.

    Declaration

    Swift

    public var userId: Int?
  • Transaction amount and currency.

    Declaration

    Swift

    public var amount: Amount?
  • Transaction information.

    Declaration

    Swift

    public var transactionData: TransactionData?
  • Additional merchant options.

    Declaration

    Swift

    public var merchantOptions: [CMerchantOptionType : String]
  • Customer data.

    Declaration

    Swift

    public var customerData: [CCustomerDataType : String]
  • Additional information list.

    Declaration

    Swift

    public var additionalInfo: [Int : String]
  • Petrol: Basket.

    Declaration

    Swift

    public var basket: Basket?
  • Discount amount.

    This parameter is only used if CGuides.valueAddedServices

    Declaration

    Swift

    public var amountDiscount: AmountDiscount?
  • Proposed tip amount.

    This parameter is only used if {@link com.six.timapi.constants.Guides#GASTRO} is enabled.

    Declaration

    Swift

    public var amountTip: Amount?
  • Cashback amount and currency.

    This parameter is only used if {@link com.six.timapi.constants.Guides#ADVANCED_RETAIL} is enabled.

    Declaration

    Swift

    public var amountOther: Amount?
  • Petrol retain card.

    Declaration

    Swift

    public var retainCard: Bool?
  • Loyalty coupon list.

    Declaration

    Swift

    public var loyaltyCouponList: [LoyaltyCoupon]
  • Textual representation.

    Declaration

    Swift

    public var description: String { get }