Class CreatedTokenResponse

java.lang.Object
com.onlinepayments.domain.CreatedTokenResponse

public class CreatedTokenResponse extends Object
  • Constructor Details

    • CreatedTokenResponse

      public CreatedTokenResponse()
  • Method Details

    • getCard

      public CardWithoutCvv getCard()
    • setCard

      public void setCard(CardWithoutCvv value)
    • withCard

      public CreatedTokenResponse withCard(CardWithoutCvv value)
    • getExternalTokenLinked

      public ExternalTokenLinked getExternalTokenLinked()
    • setExternalTokenLinked

      public void setExternalTokenLinked(ExternalTokenLinked value)
    • withExternalTokenLinked

      public CreatedTokenResponse withExternalTokenLinked(ExternalTokenLinked value)
    • getIsNewToken

      public Boolean getIsNewToken()
      Indicates if a new token was created
      • true - A new token was created
      • false - A token with the same card number already exists and is returned. Please note that the existing token has not been updated. When you want to update other data then the card number, you need to update data stored in the token explicitly, as data is never updated during the creation of a token.
    • setIsNewToken

      public void setIsNewToken(Boolean value)
      Indicates if a new token was created
      • true - A new token was created
      • false - A token with the same card number already exists and is returned. Please note that the existing token has not been updated. When you want to update other data then the card number, you need to update data stored in the token explicitly, as data is never updated during the creation of a token.
    • withIsNewToken

      public CreatedTokenResponse withIsNewToken(Boolean value)
      Indicates if a new token was created
      • true - A new token was created
      • false - A token with the same card number already exists and is returned. Please note that the existing token has not been updated. When you want to update other data then the card number, you need to update data stored in the token explicitly, as data is never updated during the creation of a token.
    • getToken

      public String getToken()
      ID of the token
    • setToken

      public void setToken(String value)
      ID of the token
    • withToken

      public CreatedTokenResponse withToken(String value)
      ID of the token
    • getTokenStatus

      public String getTokenStatus()
      This is the status of the token in the hosted tokenization session. Possible values are:
      • UNCHANGED - The token has not changed
      • CREATED - The token has been created
      • UPDATED - The token has been updated
    • setTokenStatus

      public void setTokenStatus(String value)
      This is the status of the token in the hosted tokenization session. Possible values are:
      • UNCHANGED - The token has not changed
      • CREATED - The token has been created
      • UPDATED - The token has been updated
    • withTokenStatus

      public CreatedTokenResponse withTokenStatus(String value)
      This is the status of the token in the hosted tokenization session. Possible values are:
      • UNCHANGED - The token has not changed
      • CREATED - The token has been created
      • UPDATED - The token has been updated