AI-generated Key Takeaways
-
PaymentCardEntity
extracts payment card information, like network and card number, from text. -
It provides the card network through
getPaymentCardNetwork()
and a standardized card number viagetPaymentCardNumber()
. -
Supported card networks include Visa, Mastercard, Amex, Discover, and more, represented by constants like
CARD_VISA
,CARD_MASTERCARD
, etc. -
This class inherits from
Entity
and provides convenient methods to access the extracted payment card data.
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.