Class MeaRemotePaymentData

    • Constructor Detail

      • MeaRemotePaymentData

        public MeaRemotePaymentData()
    • Method Detail

      • fromJson

        @Nullable
        public static MeaRemotePaymentData fromJson​(java.lang.String remotePaymentDataJson)
        Parse MeaRemotePaymentData object from JSON string.
        Parameters:
        remotePaymentDataJson - JSON string with remote payment data.
        Returns:
        MeaRemotePaymentData object, or null if JSON could not be parsed.
      • setTransactionAmount

        public MeaRemotePaymentData setTransactionAmount​(long transactionAmount)
        Sets the amount of transaction.
        Parameters:
        transactionAmount - Transaction amount as long.
        Returns:
        MeaRemotePaymentData object.
      • setCurrencyCode

        public MeaRemotePaymentData setCurrencyCode​(int currencyCode)
        Sets the 3 digit numeric currency code.
        Parameters:
        currencyCode - Currency code as integer.
        Returns:
        MeaRemotePaymentData object.
      • getCountryCode

        @Nullable
        public java.lang.Integer getCountryCode()
        Description copied from interface: RemotePaymentData
        Retrieves the 3 digit numeric country code.
        Specified by:
        getCountryCode in interface RemotePaymentData
        Returns:
        Country code.
      • setCountryCode

        public MeaRemotePaymentData setCountryCode​(java.lang.Integer countryCode)
        Sets the 3 digit numeric country code.
        Parameters:
        countryCode - Country code as Integer.
        Returns:
        MeaRemotePaymentData object.
      • setTransactionType

        public MeaRemotePaymentData setTransactionType​(byte transactionType)
        Sets the type of the transaction.
        Parameters:
        transactionType - Transaction type as byte.
        Returns:
        MeaRemotePaymentData object.
      • setOptionalUnpredictableNumber

        public MeaRemotePaymentData setOptionalUnpredictableNumber​(int optionalUnpredictableNumber)
        Sets the unpredictable number (optional field).
        Parameters:
        optionalUnpredictableNumber - Optional unpredictable number as integer.
        Returns:
        MeaRemotePaymentData object.
      • setTransactionDay

        public MeaRemotePaymentData setTransactionDay​(int transactionDay)
        Sets the transaction day.
        Parameters:
        transactionDay - Transaction day.
        Returns:
        MeaRemotePaymentData object.
      • setTransactionMonth

        public MeaRemotePaymentData setTransactionMonth​(int transactionMonth)
        Sets the transaction month.
        Parameters:
        transactionMonth - Transaction month.
        Returns:
        MeaRemotePaymentData object.
      • setTransactionYear

        public MeaRemotePaymentData setTransactionYear​(int transactionYear)
        Sets the transaction year.
        Parameters:
        transactionYear - Transaction year.
        Returns:
        MeaRemotePaymentData object.
      • isValid

        public boolean isValid()
        Returns true if all remote payment data are valid for DSRP transaction.
        Returns:
        Returns true/false if data is valid.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object