java.lang.Object | |
↳ | com.urbanairship.wallet.PassRequest.Builder |
Builds the PassRequest
object.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Builder() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PassRequest.Builder |
addField(Field field)
Adds field information for the pass.
| ||||||||||
PassRequest |
build()
Builds the
PassRequest . | ||||||||||
PassRequest.Builder |
setAuth(String userName, String token)
Sets the request auth.
| ||||||||||
PassRequest.Builder |
setBarcodeAltText(String value, String label)
Sets the barcodeAltText field.
| ||||||||||
PassRequest.Builder |
setBarcodeValue(String value, String label)
Sets the barcode_value field.
| ||||||||||
PassRequest.Builder |
setExpirationDate(String value, String label)
Sets the expirationDate field.
| ||||||||||
PassRequest.Builder |
setExternalId(String externalId)
Sets the external ID.
| ||||||||||
PassRequest.Builder |
setTag(String tag)
Sets the pass tag.
| ||||||||||
PassRequest.Builder |
setTemplateId(String templateId)
Sets the Template ID.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Adds field information for the pass.
field | The field instance. |
---|
Builds the PassRequest
.
IllegalStateException | if the apiKey or templateId is null or empty. |
---|
Sets the request auth.
userName | The request user name. |
---|---|
token | The request token. |
Sets the barcodeAltText field.
value | The barcodeAltText value. |
---|---|
label | The barcodeAltText label. |
Sets the barcode_value field.
value | The barcode_value value. |
---|---|
label | The barcode_value label. |
Sets the expirationDate field.
value | The expiration date value. |
---|---|
label | The expiration date label. |
Sets the external ID.
externalId | The external ID. |
---|
Sets the pass tag.
tag | The pass tag. |
---|
Sets the Template ID.
templateId | The ID of the template. |
---|