P2PRequestApprovalResponse

public struct P2PRequestApprovalResponse : Decodable, Equatable

The response model for the approval of a person-to-person (P2P) request (sending money).

  • id

    The ID of the P2P request.

    Declaration

    Swift

    public let id: String
  • The amount of the P2P request.

    Declaration

    Swift

    public let amount: PaymentAmount
  • The message associated with the P2P request.

    Declaration

    Swift

    public let message: String
  • The status of the P2P request.

    Declaration

    Swift

    public let status: Status
  • The creation date of the P2P request.

    Declaration

    Swift

    public let created: Date
  • The embedded data within the P2P request approval response.

    Declaration

    Swift

    public let embedded: Embedded
  • The status of the person-to-person (P2P) request.

    See more

    Declaration

    Swift

    public struct Status : Decodable, Equatable
  • The embedded data within the person-to-person (P2P) request approval response.

    See more

    Declaration

    Swift

    public struct Embedded : Decodable, Equatable
  • Initializes a new instance of the P2PRequestApprovalResponse struct.

    Declaration

    Swift

    public init(
        id: String,
        amount: PaymentAmount,
        message: String,
        status: Status,
        created: Date,
        embedded: Embedded
    )

    Parameters

    id

    The ID of the P2P request.

    amount

    The amount of the P2P request.

    message

    The message associated with the P2P request.

    status

    The status of the P2P request.

    created

    The creation date of the P2P request.

    embedded

    The embedded data within the P2P request approval response.