One Logo Pool Ball
ProximityReader · IOS API REFERENCE

VASRequest

class · iOS 15.4+ · SDK 27.1

class VASRequest

A request to read a contactless loyalty card and retrieve loyalty program identifiers for the person. Create a `VASRequest` object to obtain details from someone's loyalty card so that you can process associated transactions. After you create this object, pass it to the ``PaymentCardReaderSession/readVAS(_:)``or ``PaymentCardReaderSession/readPaymentCard(_:vasRequest:stopOnVASResult:)`` method of ``PaymentCardReaderSession``.

Members (5)

init · iOS 15.4+

init

TypeScript
static init(vasMerchants?: Array<VASRequest_Merchant>, localizedVASType?: string): VASRequest
Swift declaration
init(vasMerchants: [VASRequest.Merchant] = [], localizedVASType: String = "")

Creates a request to read loyalty card service information. - Parameters: - vasMerchants: The merchants associated with the requested loyalty program. - localizedVASType: The localized name of the loyalty program.

get · iOS 15.4+

vasMerchants

TypeScript
get vasMerchants(): Array<VASRequest_Merchant>
Swift declaration
final let vasMerchants: [VASRequest.Merchant]

The list of merchants to match against the user's Wallet content or loyalty card.

get · iOS 15.4+

localizedVASType

TypeScript
get localizedVASType(): string
Swift declaration
final let localizedVASType: String

The localized name of the loyalty program. Specify the loyalty program name, instead of a payment amount, when you request only a Value Added Services (VAS) read. The maximum length of this string is 22 characters.

get · iOS 17.0+

userInterfaceLanguage

TypeScript
get userInterfaceLanguage(): (_Foundation_Locale_Language) | null
Swift declaration
var userInterfaceLanguage: Locale.Language?

The language to use when localizing the user interface. Setting this attribute only affects customer facing elements, screen elements, or audio targeted at the merchant (device owner) remains set to the language defined in the system settings. When you set this option to `nil`, the framework uses the person's preferred language defined in System Settings.

set · iOS 17.0+

userInterfaceLanguage

TypeScript
set userInterfaceLanguage(value: (_Foundation_Locale_Language) | null)
Swift declaration
var userInterfaceLanguage: Locale.Language?

The language to use when localizing the user interface. Setting this attribute only affects customer facing elements, screen elements, or audio targeted at the merchant (device owner) remains set to the language defined in the system settings. When you set this option to `nil`, the framework uses the person's preferred language defined in System Settings.

Skipped declarations

No declarations were skipped in this snapshot.

All ProximityReader types →