ProxyCustomerDetailsResponse
public struct ProxyCustomerDetailsResponse : Decodable, Equatable
The response containing details of a proxy customer.
-
The display name of the proxy customer.
Declaration
Swift
public let displayName: String
-
The proxy value associated with the customer.
Declaration
Swift
public let proxyValue: String?
-
The profile image of the proxy customer.
Declaration
Swift
public let profileImage: UIImage?
-
Initializes a
ProxyCustomerDetailsResponse
instance with the provided property values.Declaration
Swift
public init( displayName: String, proxyValue: String?, profileImage: UIImage? )
Parameters
displayName
The display name of the proxy customer.
proxyValue
The proxy value associated with the customer.
profileImage
The profile image of the proxy customer.
-
Initializes a
ProxyCustomerDetailsResponse
instance by decoding data from the given decoder.Throws
An error if the decoding process fails, or if required data is missing or invalid.Declaration
Swift
public init(from decoder: Decoder) throws
Parameters
decoder
The decoder to read data from.
-
A stubed instance of
ProxyCustomerDetailsResponse
for testing or placeholder purposes.Declaration
Swift
static let stub: ProxyCustomerDetailsResponse