AI-generated Key Takeaways
-
PaymentCardEntity extracts payment card information from text, providing the card network and a canonical format for the card number.
-
It supports various payment card networks, including Visa, Mastercard, American Express, and more.
-
The entity provides methods to retrieve the detected payment card network and the canonically formatted card number.
A payment card entity extracted from a piece of text. It provides the network the card belongs to and a canonical format for the card number.
Nested Class Summary
| @interface | PaymentCardEntity.PaymentCardNetwork | The list of supported payment card networks that could be detected (e.g. | |
Constant Summary
| int | CARD_AMEX | |
| int | CARD_DINERS_CLUB | |
| int | CARD_DISCOVER | |
| int | CARD_INTER_PAYMENT | |
| int | CARD_JCB | |
| int | CARD_MAESTRO | |
| int | CARD_MASTERCARD | |
| int | CARD_MIR | |
| int | CARD_TROY | |
| int | CARD_UNIONPAY | |
| int | CARD_UNKNOWN | |
| int | CARD_VISA |
Inherited Constant Summary
Public Method Summary
| int |
getPaymentCardNetwork()
Returns the payment card network (e.g.
|
| String |
getPaymentCardNumber()
Returns the payment card number detected for this entity but canonically
formatted.
|
Inherited Method Summary
Constants
public static final int CARD_AMEX
public static final int CARD_DINERS_CLUB
public static final int CARD_DISCOVER
public static final int CARD_INTER_PAYMENT
public static final int CARD_JCB
public static final int CARD_MAESTRO
public static final int CARD_MASTERCARD
public static final int CARD_MIR
public static final int CARD_TROY
public static final int CARD_UNIONPAY
public static final int CARD_UNKNOWN
public static final int CARD_VISA
Public Methods
public int getPaymentCardNetwork ()
Returns the payment card network (e.g.
CARD_AMEX) detected for this entity.
public String getPaymentCardNumber ()
Returns the payment card number detected for this entity but canonically formatted.