From fcd5c1588ee05206423227bb217b3990d6e4a310 Mon Sep 17 00:00:00 2001 From: richherrera Date: Mon, 25 Nov 2024 11:40:39 -0600 Subject: [PATCH] Address PR feedback, update docstrings --- Sources/BraintreePayPal/BTContactInformation.swift | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Sources/BraintreePayPal/BTContactInformation.swift b/Sources/BraintreePayPal/BTContactInformation.swift index 2ed84ca15..035a5746a 100644 --- a/Sources/BraintreePayPal/BTContactInformation.swift +++ b/Sources/BraintreePayPal/BTContactInformation.swift @@ -1,12 +1,17 @@ /// Contact information of the recipient for the order public struct BTContactInformation { - /// Email address of the recipient - let recipientEmail: String? + // MARK: - Internal Properties - /// Phone number of the recipient + let recipientEmail: String? let recipientPhoneNumber: BTPayPalPhoneNumber? + + // MARK: - Initializer + /// Intialize a BTContactInformation + /// - Parameters: + /// - recipientEmail: Optional: Email address of the recipient. + /// - recipientPhoneNumber: Optional:Phone number of the recipient. public init(recipientEmail: String? = nil, recipientPhoneNumber: BTPayPalPhoneNumber? = nil) { self.recipientEmail = recipientEmail self.recipientPhoneNumber = recipientPhoneNumber