AddContactItemPayload
public struct AddContactItemPayload : Equatable, Codable, Hashable
Represents the payload for adding a contact item.
-
The type of the source proxy.
Declaration
Swift
public let type: PaymentSourceProxyType
-
The value of the contact item.
Declaration
Swift
public let value: String
-
Initializes an instance of
AddContactItemPayload
.Declaration
Swift
public init(type: PaymentSourceProxyType = .phoneNumber, value: String)
Parameters
type
The type of the source proxy. Defaults to
.phoneNumber
.value
The value of the contact item.
-
Provides a stub instance of
AddContactItemPayload
for testing purposes.Declaration
Swift
static let stub: AddContactItemPayload