Class CreateOrderResponse


  • public class CreateOrderResponse
    extends Object
    CreateOrderResponse
    • Constructor Detail

      • CreateOrderResponse

        public CreateOrderResponse()
    • Method Detail

      • getAdditionalData

        public Map<String,​String> getAdditionalData()
        Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**.
        Returns:
        additionalData
      • setAdditionalData

        public void setAdditionalData​(Map<String,​String> additionalData)
        Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**.
        Parameters:
        additionalData -
      • getAmount

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

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

        public String getExpiresAt()
        The date that the order will expire.
        Returns:
        expiresAt
      • setExpiresAt

        public void setExpiresAt​(String expiresAt)
        The date that the order will expire.
        Parameters:
        expiresAt -
      • getFraudResult

        public FraudResult getFraudResult()
        Get fraudResult
        Returns:
        fraudResult
      • setFraudResult

        public void setFraudResult​(FraudResult fraudResult)
        fraudResult
        Parameters:
        fraudResult -
      • getOrderData

        public String getOrderData()
        The encrypted data that will be used by merchant for adding payments to the order.
        Returns:
        orderData
      • setOrderData

        public void setOrderData​(String orderData)
        The encrypted data that will be used by merchant for adding payments to the order.
        Parameters:
        orderData -
      • getPspReference

        public String getPspReference()
        Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request.
        Returns:
        pspReference
      • setPspReference

        public void setPspReference​(String pspReference)
        Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request.
        Parameters:
        pspReference -
      • getReference

        public String getReference()
        The reference provided by merchant for creating the order.
        Returns:
        reference
      • setReference

        public void setReference​(String reference)
        The reference provided by merchant for creating the order.
        Parameters:
        reference -
      • getRefusalReason

        public String getRefusalReason()
        If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons).
        Returns:
        refusalReason
      • setRefusalReason

        public void setRefusalReason​(String refusalReason)
        If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons).
        Parameters:
        refusalReason -
      • getRemainingAmount

        public Amount getRemainingAmount()
        Get remainingAmount
        Returns:
        remainingAmount
      • setRemainingAmount

        public void setRemainingAmount​(Amount remainingAmount)
        remainingAmount
        Parameters:
        remainingAmount -
      • getResultCode

        public CreateOrderResponse.ResultCodeEnum getResultCode()
        The result of the order creation request. The value is always **Success**.
        Returns:
        resultCode
      • setResultCode

        public void setResultCode​(CreateOrderResponse.ResultCodeEnum resultCode)
        The result of the order creation request. The value is always **Success**.
        Parameters:
        resultCode -
      • equals

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

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

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

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