public static class Track2.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
Track2 |
build() |
Track2.Builder |
buildTrackData()
Constructs the Track2 data based on the card data provided.
|
Track2.Builder |
cvv(java.lang.String cvv) |
Track2.Builder |
discretionaryData(java.lang.String discretionaryData) |
Track2.Builder |
exp(java.lang.String exp) |
Track2.Builder |
pan(java.lang.String pan) |
Track2.Builder |
pattern(java.util.regex.Pattern pattern)
Optional method, can be used to override default pattern
|
Track2.Builder |
serviceCode(java.lang.String serviceCode) |
Track2.Builder |
track(java.lang.String s) |
public Track2.Builder pan(java.lang.String pan)
public Track2.Builder exp(java.lang.String exp)
public Track2.Builder cvv(java.lang.String cvv)
public Track2.Builder serviceCode(java.lang.String serviceCode)
public Track2.Builder discretionaryData(java.lang.String discretionaryData)
public Track2.Builder pattern(java.util.regex.Pattern pattern)
pattern
- overrides default patternpublic Track2.Builder track(java.lang.String s) throws InvalidCardException
InvalidCardException
public Track2.Builder buildTrackData()
public Track2 build()