init(id:url:shouldSendURLOnly:localizedName:)
Creates a new merchant object with the specified information.
Declaration
init(id: String, url: URL? = nil, shouldSendURLOnly: Bool = false, localizedName: String? = nil)Parameters
- id:
The merchant’s unique identifier. Obtain this value from the merchant.
- url:
The URL to display if the customer doesn’t belong to the merchant’s loyalty program.
- shouldSendURLOnly:
A Boolean value that indicates whether to send the URL information to the customer’s device.
- localizedName:
The name of the merchant, localized for the current device.