Class RelayedAuthorisationRequest


  • public class RelayedAuthorisationRequest
    extends Object
    RelayedAuthorisationRequest
    • Constructor Detail

      • RelayedAuthorisationRequest

        public RelayedAuthorisationRequest()
    • Method Detail

      • accountHolder

        public RelayedAuthorisationRequest accountHolder​(ResourceReference accountHolder)
        accountHolder
        Parameters:
        accountHolder -
        Returns:
        the current RelayedAuthorisationRequest instance, allowing for method chaining
      • getAccountHolder

        public ResourceReference getAccountHolder()
        Get accountHolder
        Returns:
        accountHolder
      • setAccountHolder

        public void setAccountHolder​(ResourceReference accountHolder)
        accountHolder
        Parameters:
        accountHolder -
      • amount

        public RelayedAuthorisationRequest amount​(Amount amount)
        amount
        Parameters:
        amount -
        Returns:
        the current RelayedAuthorisationRequest instance, allowing for method chaining
      • getAmount

        public Amount getAmount()
        Get amount
        Returns:
        amount
      • setAmount

        public void setAmount​(Amount amount)
        amount
        Parameters:
        amount -
      • amountAdjustments

        public RelayedAuthorisationRequest amountAdjustments​(List<AmountAdjustment> amountAdjustments)
        The amount adjustments in the transaction.
        Parameters:
        amountAdjustments - The amount adjustments in the transaction.
        Returns:
        the current RelayedAuthorisationRequest instance, allowing for method chaining
      • getAmountAdjustments

        public List<AmountAdjustment> getAmountAdjustments()
        The amount adjustments in the transaction.
        Returns:
        amountAdjustments The amount adjustments in the transaction.
      • setAmountAdjustments

        public void setAmountAdjustments​(List<AmountAdjustment> amountAdjustments)
        The amount adjustments in the transaction.
        Parameters:
        amountAdjustments - The amount adjustments in the transaction.
      • authCode

        public RelayedAuthorisationRequest authCode​(String authCode)
        The authorization code for the payment.
        Parameters:
        authCode - The authorization code for the payment.
        Returns:
        the current RelayedAuthorisationRequest instance, allowing for method chaining
      • getAuthCode

        public String getAuthCode()
        The authorization code for the payment.
        Returns:
        authCode The authorization code for the payment.
      • setAuthCode

        public void setAuthCode​(String authCode)
        The authorization code for the payment.
        Parameters:
        authCode - The authorization code for the payment.
      • authorisationDecision

        public RelayedAuthorisationRequest authorisationDecision​(AuthorisationDecisionRequest authorisationDecision)
        authorisationDecision
        Parameters:
        authorisationDecision -
        Returns:
        the current RelayedAuthorisationRequest instance, allowing for method chaining
      • getAuthorisationDecision

        public AuthorisationDecisionRequest getAuthorisationDecision()
        Get authorisationDecision
        Returns:
        authorisationDecision
      • setAuthorisationDecision

        public void setAuthorisationDecision​(AuthorisationDecisionRequest authorisationDecision)
        authorisationDecision
        Parameters:
        authorisationDecision -
      • authorisationType

        public RelayedAuthorisationRequest authorisationType​(String authorisationType)
        The authorization type. Possible values: * **finalAuthorisation** * **preAuthorisation** * **defaultAuthorisation**
        Parameters:
        authorisationType - The authorization type. Possible values: * **finalAuthorisation** * **preAuthorisation** * **defaultAuthorisation**
        Returns:
        the current RelayedAuthorisationRequest instance, allowing for method chaining
      • getAuthorisationType

        public String getAuthorisationType()
        The authorization type. Possible values: * **finalAuthorisation** * **preAuthorisation** * **defaultAuthorisation**
        Returns:
        authorisationType The authorization type. Possible values: * **finalAuthorisation** * **preAuthorisation** * **defaultAuthorisation**
      • setAuthorisationType

        public void setAuthorisationType​(String authorisationType)
        The authorization type. Possible values: * **finalAuthorisation** * **preAuthorisation** * **defaultAuthorisation**
        Parameters:
        authorisationType - The authorization type. Possible values: * **finalAuthorisation** * **preAuthorisation** * **defaultAuthorisation**
      • balanceAccount

        public RelayedAuthorisationRequest balanceAccount​(ResourceReference balanceAccount)
        balanceAccount
        Parameters:
        balanceAccount -
        Returns:
        the current RelayedAuthorisationRequest instance, allowing for method chaining
      • getBalanceAccount

        public ResourceReference getBalanceAccount()
        Get balanceAccount
        Returns:
        balanceAccount
      • setBalanceAccount

        public void setBalanceAccount​(ResourceReference balanceAccount)
        balanceAccount
        Parameters:
        balanceAccount -
      • balanceMutations

        public RelayedAuthorisationRequest balanceMutations​(List<BalanceMutation> balanceMutations)
        The list of balance mutations per event.
        Parameters:
        balanceMutations - The list of balance mutations per event.
        Returns:
        the current RelayedAuthorisationRequest instance, allowing for method chaining
      • getBalanceMutations

        public List<BalanceMutation> getBalanceMutations()
        The list of balance mutations per event.
        Returns:
        balanceMutations The list of balance mutations per event.
      • setBalanceMutations

        public void setBalanceMutations​(List<BalanceMutation> balanceMutations)
        The list of balance mutations per event.
        Parameters:
        balanceMutations - The list of balance mutations per event.
      • balancePlatform

        public RelayedAuthorisationRequest balancePlatform​(String balancePlatform)
        The unique identifier of the balance platform.
        Parameters:
        balancePlatform - The unique identifier of the balance platform.
        Returns:
        the current RelayedAuthorisationRequest instance, allowing for method chaining
      • getBalancePlatform

        public String getBalancePlatform()
        The unique identifier of the balance platform.
        Returns:
        balancePlatform The unique identifier of the balance platform.
      • setBalancePlatform

        public void setBalancePlatform​(String balancePlatform)
        The unique identifier of the balance platform.
        Parameters:
        balancePlatform - The unique identifier of the balance platform.
      • entryMode

        public RelayedAuthorisationRequest entryMode​(String entryMode)
        The entry mode of the information of the payment instrument. For example: **contactless**, **chip**, **magstripe**.
        Parameters:
        entryMode - The entry mode of the information of the payment instrument. For example: **contactless**, **chip**, **magstripe**.
        Returns:
        the current RelayedAuthorisationRequest instance, allowing for method chaining
      • getEntryMode

        public String getEntryMode()
        The entry mode of the information of the payment instrument. For example: **contactless**, **chip**, **magstripe**.
        Returns:
        entryMode The entry mode of the information of the payment instrument. For example: **contactless**, **chip**, **magstripe**.
      • setEntryMode

        public void setEntryMode​(String entryMode)
        The entry mode of the information of the payment instrument. For example: **contactless**, **chip**, **magstripe**.
        Parameters:
        entryMode - The entry mode of the information of the payment instrument. For example: **contactless**, **chip**, **magstripe**.
      • environment

        public RelayedAuthorisationRequest environment​(String environment)
        The environment from which the webhook originated. Possible values: **test**, **live**.
        Parameters:
        environment - The environment from which the webhook originated. Possible values: **test**, **live**.
        Returns:
        the current RelayedAuthorisationRequest instance, allowing for method chaining
      • getEnvironment

        public String getEnvironment()
        The environment from which the webhook originated. Possible values: **test**, **live**.
        Returns:
        environment The environment from which the webhook originated. Possible values: **test**, **live**.
      • setEnvironment

        public void setEnvironment​(String environment)
        The environment from which the webhook originated. Possible values: **test**, **live**.
        Parameters:
        environment - The environment from which the webhook originated. Possible values: **test**, **live**.
      • id

        public RelayedAuthorisationRequest id​(String id)
        The unique identifier of the transfer.
        Parameters:
        id - The unique identifier of the transfer.
        Returns:
        the current RelayedAuthorisationRequest instance, allowing for method chaining
      • getId

        public String getId()
        The unique identifier of the transfer.
        Returns:
        id The unique identifier of the transfer.
      • setId

        public void setId​(String id)
        The unique identifier of the transfer.
        Parameters:
        id - The unique identifier of the transfer.
      • merchantData

        public RelayedAuthorisationRequest merchantData​(MerchantData merchantData)
        merchantData
        Parameters:
        merchantData -
        Returns:
        the current RelayedAuthorisationRequest instance, allowing for method chaining
      • getMerchantData

        public MerchantData getMerchantData()
        Get merchantData
        Returns:
        merchantData
      • setMerchantData

        public void setMerchantData​(MerchantData merchantData)
        merchantData
        Parameters:
        merchantData -
      • originalAmount

        public RelayedAuthorisationRequest originalAmount​(Amount originalAmount)
        originalAmount
        Parameters:
        originalAmount -
        Returns:
        the current RelayedAuthorisationRequest instance, allowing for method chaining
      • getOriginalAmount

        public Amount getOriginalAmount()
        Get originalAmount
        Returns:
        originalAmount
      • setOriginalAmount

        public void setOriginalAmount​(Amount originalAmount)
        originalAmount
        Parameters:
        originalAmount -
      • paymentInstrument

        public RelayedAuthorisationRequest paymentInstrument​(PaymentInstrument paymentInstrument)
        paymentInstrument
        Parameters:
        paymentInstrument -
        Returns:
        the current RelayedAuthorisationRequest instance, allowing for method chaining
      • getPaymentInstrument

        public PaymentInstrument getPaymentInstrument()
        Get paymentInstrument
        Returns:
        paymentInstrument
      • setPaymentInstrument

        public void setPaymentInstrument​(PaymentInstrument paymentInstrument)
        paymentInstrument
        Parameters:
        paymentInstrument -
      • processingType

        public RelayedAuthorisationRequest processingType​(String processingType)
        The processing type used for this payment. For example: **ecommerce**, **pos**, **moto**.
        Parameters:
        processingType - The processing type used for this payment. For example: **ecommerce**, **pos**, **moto**.
        Returns:
        the current RelayedAuthorisationRequest instance, allowing for method chaining
      • getProcessingType

        public String getProcessingType()
        The processing type used for this payment. For example: **ecommerce**, **pos**, **moto**.
        Returns:
        processingType The processing type used for this payment. For example: **ecommerce**, **pos**, **moto**.
      • setProcessingType

        public void setProcessingType​(String processingType)
        The processing type used for this payment. For example: **ecommerce**, **pos**, **moto**.
        Parameters:
        processingType - The processing type used for this payment. For example: **ecommerce**, **pos**, **moto**.
      • reference

        public RelayedAuthorisationRequest reference​(String reference)
        The reference of the payment.
        Parameters:
        reference - The reference of the payment.
        Returns:
        the current RelayedAuthorisationRequest instance, allowing for method chaining
      • getReference

        public String getReference()
        The reference of the payment.
        Returns:
        reference The reference of the payment.
      • setReference

        public void setReference​(String reference)
        The reference of the payment.
        Parameters:
        reference - The reference of the payment.
      • schemeRiskScore

        public RelayedAuthorisationRequest schemeRiskScore​(Integer schemeRiskScore)
        The risk score provided by the card schemes.
        Parameters:
        schemeRiskScore - The risk score provided by the card schemes.
        Returns:
        the current RelayedAuthorisationRequest instance, allowing for method chaining
      • getSchemeRiskScore

        public Integer getSchemeRiskScore()
        The risk score provided by the card schemes.
        Returns:
        schemeRiskScore The risk score provided by the card schemes.
      • setSchemeRiskScore

        public void setSchemeRiskScore​(Integer schemeRiskScore)
        The risk score provided by the card schemes.
        Parameters:
        schemeRiskScore - The risk score provided by the card schemes.
      • schemeTraceId

        public RelayedAuthorisationRequest schemeTraceId​(String schemeTraceId)
        The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme.
        Parameters:
        schemeTraceId - The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme.
        Returns:
        the current RelayedAuthorisationRequest instance, allowing for method chaining
      • getSchemeTraceId

        public String getSchemeTraceId()
        The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme.
        Returns:
        schemeTraceId The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme.
      • setSchemeTraceId

        public void setSchemeTraceId​(String schemeTraceId)
        The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme.
        Parameters:
        schemeTraceId - The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme.
      • schemeUniqueTransactionId

        public RelayedAuthorisationRequest schemeUniqueTransactionId​(String schemeUniqueTransactionId)
        The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme.
        Parameters:
        schemeUniqueTransactionId - The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme.
        Returns:
        the current RelayedAuthorisationRequest instance, allowing for method chaining
      • getSchemeUniqueTransactionId

        public String getSchemeUniqueTransactionId()
        The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme.
        Returns:
        schemeUniqueTransactionId The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme.
      • setSchemeUniqueTransactionId

        public void setSchemeUniqueTransactionId​(String schemeUniqueTransactionId)
        The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme.
        Parameters:
        schemeUniqueTransactionId - The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme.
      • scores

        public RelayedAuthorisationRequest scores​(List<TransactionScoring> scores)
        The list of transaction scores.
        Parameters:
        scores - The list of transaction scores.
        Returns:
        the current RelayedAuthorisationRequest instance, allowing for method chaining
      • getScores

        public List<TransactionScoring> getScores()
        The list of transaction scores.
        Returns:
        scores The list of transaction scores.
      • setScores

        public void setScores​(List<TransactionScoring> scores)
        The list of transaction scores.
        Parameters:
        scores - The list of transaction scores.
      • threeDSecure

        public RelayedAuthorisationRequest threeDSecure​(ThreeDSecure threeDSecure)
        threeDSecure
        Parameters:
        threeDSecure -
        Returns:
        the current RelayedAuthorisationRequest instance, allowing for method chaining
      • getThreeDSecure

        public ThreeDSecure getThreeDSecure()
        Get threeDSecure
        Returns:
        threeDSecure
      • setThreeDSecure

        public void setThreeDSecure​(ThreeDSecure threeDSecure)
        threeDSecure
        Parameters:
        threeDSecure -
      • transactionRulesResult

        public RelayedAuthorisationRequest transactionRulesResult​(TransactionRulesResult transactionRulesResult)
        transactionRulesResult
        Parameters:
        transactionRulesResult -
        Returns:
        the current RelayedAuthorisationRequest instance, allowing for method chaining
      • getTransactionRulesResult

        public TransactionRulesResult getTransactionRulesResult()
        Get transactionRulesResult
        Returns:
        transactionRulesResult
      • setTransactionRulesResult

        public void setTransactionRulesResult​(TransactionRulesResult transactionRulesResult)
        transactionRulesResult
        Parameters:
        transactionRulesResult -
      • validationResult

        public RelayedAuthorisationRequest validationResult​(List<ValidationResult> validationResult)
        Contains the checks that Adyen performed to validate the payment and the result of each.
        Parameters:
        validationResult - Contains the checks that Adyen performed to validate the payment and the result of each.
        Returns:
        the current RelayedAuthorisationRequest instance, allowing for method chaining
      • getValidationResult

        public List<ValidationResult> getValidationResult()
        Contains the checks that Adyen performed to validate the payment and the result of each.
        Returns:
        validationResult Contains the checks that Adyen performed to validate the payment and the result of each.
      • setValidationResult

        public void setValidationResult​(List<ValidationResult> validationResult)
        Contains the checks that Adyen performed to validate the payment and the result of each.
        Parameters:
        validationResult - Contains the checks that Adyen performed to validate the payment and the result of each.
      • equals

        public boolean equals​(Object o)
        Return true if this RelayedAuthorisationRequest object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static RelayedAuthorisationRequest fromJson​(String jsonString)
                                                    throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of RelayedAuthorisationRequest given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of RelayedAuthorisationRequest
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to RelayedAuthorisationRequest
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of RelayedAuthorisationRequest to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException