public static class

PassRequest.Builder

extends Object
java.lang.Object
   ↳ com.urbanairship.wallet.PassRequest.Builder

Class Overview

Builds the PassRequest object.

Summary

Fields
public String userName
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

Fields

public String userName

Public Constructors

public Builder ()

Public Methods

public PassRequest.Builder addField (Field field)

Adds field information for the pass.

Parameters
field The field instance.
Returns
  • Builder object.

public PassRequest build ()

Builds the PassRequest.

Returns
  • A @link PassRequest} instance.
Throws
IllegalStateException if the apiKey or templateId is null or empty.

public PassRequest.Builder setAuth (String userName, String token)

Sets the request auth.

Parameters
userName The request user name.
token The request token.
Returns
  • Builder object.

public PassRequest.Builder setBarcodeAltText (String value, String label)

Sets the barcodeAltText field.

Parameters
value The barcodeAltText value.
label The barcodeAltText label.
Returns
  • Builder object.

public PassRequest.Builder setBarcodeValue (String value, String label)

Sets the barcode_value field.

Parameters
value The barcode_value value.
label The barcode_value label.
Returns
  • Builder object.

public PassRequest.Builder setExpirationDate (String value, String label)

Sets the expirationDate field.

Parameters
value The expiration date value.
label The expiration date label.
Returns
  • Builder object.

public PassRequest.Builder setExternalId (String externalId)

Sets the external ID.

Parameters
externalId The external ID.
Returns
  • Builder object.

public PassRequest.Builder setTag (String tag)

Sets the pass tag.

Parameters
tag The pass tag.
Returns
  • Builder object.

public PassRequest.Builder setTemplateId (String templateId)

Sets the Template ID.

Parameters
templateId The ID of the template.
Returns
  • Builder object.