-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move email & phone details to BTPaymentInsightsRequest
- Loading branch information
Showing
4 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import Foundation | ||
|
||
/// Buyer data required to use the Payment Insights feature. | ||
/// - Note: This feature is in beta. It's public API may change in future releases. | ||
@objcMembers public class BTPaymentInsightsRequest: NSObject { | ||
|
||
/// The buyer's email address. | ||
public let email: String | ||
|
||
/// The buyer's country code prefix to the national telephone number. An identifier for a specific country. | ||
public let phoneCountryCode: String | ||
|
||
/// The buyer's national phone number. | ||
public let phoneNationalNumber: String | ||
|
||
/// Initialize a `BTPaymentInsightsRequest` | ||
/// - Parameters: | ||
/// - email: The buyer's email address. | ||
/// - phoneCountryCode: The buyer's country code prefix to the national telephone number. An identifier for a specific country. | ||
/// - phoneNationalNumber: The buyer's national phone number. | ||
init(email: String, phoneCountryCode: String, phoneNationalNumber: String) { | ||
self.email = email | ||
self.phoneCountryCode = phoneCountryCode | ||
self.phoneNationalNumber = phoneNationalNumber | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters