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