AddContactItemResponse
public struct AddContactItemResponse : Equatable, Codable, Hashable
Represents the response for adding a contact item.
-
Represents HAL links associated with the source proxy.
See moreDeclaration
Swift
public struct PaymentSourceProxyLinks : Codable, Equatable, Hashable
-
The ID of the contact item.
Declaration
Swift
public let contactItemId: String
-
The type of the instrument source.
Declaration
Swift
public let type: PaymentSourceProxyType
-
The value of the contact item.
Declaration
Swift
public let value: String
-
The creation date of the contact item.
Declaration
Swift
public let createdAt: Date
-
Indicates whether the contact item is verified.
Declaration
Swift
public let verified: Bool
-
HAL links associated with the instrument proxy.
Declaration
Swift
public let links: PaymentSourceProxyLinks?
-
The verification date of the contact item, available if the contact item is verified.
Declaration
Swift
public let verifiedAt: Date?
-
The date when the next challenge can be attempted, available if the contact item is unverified.
Declaration
Swift
public let nextChallengeNotBefore: Date?
-
The ID of the linked payment source, available if the contact item is linked to a payment source.
Declaration
Swift
public let linkedPaymentSourceID: String?
-
init(contactItemId:
type: value: createdAt: verified: verifiedAt: nextChallengeNotBefore: links: linkedPaymentSourceID: ) Initializes an instance of
AddContactItemResponse
.- nextChallengeNotBefore: The date when the next challenge can be attempted. Defaults to nil.
- links: HAL links associated with the instrument proxy. Defaults to nil.
- linkedInstrumentID: The ID of the linked payment source. Defaults to nil.
Declaration
Swift
public init( contactItemId: String, type: PaymentSourceProxyType, value: String, createdAt: Date, verified: Bool, verifiedAt: Date? = nil, nextChallengeNotBefore: Date? = nil, links: PaymentSourceProxyLinks? = nil, linkedPaymentSourceID: String? = nil )
Parameters
contactItemId
The ID of the contact item.
type
The type of the instrument proxy.
value
The value of the contact item.
createdAt
The creation date of the contact item.
verified
Indicates whether the contact item is verified.
verifiedAt
The verification date of the contact item. Defaults to
nil
. -
Represents the state of a contact item.
See moreDeclaration
Swift
enum ContactItemState
-
Returns the current verification state of the contact item based on its properties.
Declaration
Swift
var state: ContactItemState { get }
-
Provides a stub instance of
AddContactItemResponse
for testing purposes.Declaration
Swift
static let stub: AddContactItemResponse