diff --git a/BraintreeCore/src/main/java/com/braintreepayments/api/BuyerPhone.kt b/BraintreeCore/src/main/java/com/braintreepayments/api/BuyerPhone.kt new file mode 100644 index 0000000000..4f1d7e20f3 --- /dev/null +++ b/BraintreeCore/src/main/java/com/braintreepayments/api/BuyerPhone.kt @@ -0,0 +1,14 @@ +package com.braintreepayments.api + +/** + * Representation of a user phone number. + * @property countryCode The international country code for the shopper's phone number + * (e.g., "1" for the United States). + * @property nationalNumber The national segment of the shopper's phone number + * (excluding the country code). + */ + +data class BuyerPhone( + var countryCode: String, + var nationalNumber: String +) diff --git a/BraintreeCore/src/main/java/com/braintreepayments/api/PaymentReadyApi.kt b/BraintreeCore/src/main/java/com/braintreepayments/api/PaymentReadyApi.kt index e9cfa10791..220fd6d805 100644 --- a/BraintreeCore/src/main/java/com/braintreepayments/api/PaymentReadyApi.kt +++ b/BraintreeCore/src/main/java/com/braintreepayments/api/PaymentReadyApi.kt @@ -3,7 +3,7 @@ package com.braintreepayments.api import org.json.JSONObject // TODO: Implementation, documentation and interface. -class PaymentReadyApi { +internal class PaymentReadyApi { fun processRequest(request: ShopperInsightsRequest): String = request.toJson() private fun ShopperInsightsRequest.toJson(): String { diff --git a/BraintreeCore/src/main/java/com/braintreepayments/api/ShopperInsightsRequest.kt b/BraintreeCore/src/main/java/com/braintreepayments/api/ShopperInsightsRequest.kt index edcb15b377..c9c3abc07d 100644 --- a/BraintreeCore/src/main/java/com/braintreepayments/api/ShopperInsightsRequest.kt +++ b/BraintreeCore/src/main/java/com/braintreepayments/api/ShopperInsightsRequest.kt @@ -1,18 +1,5 @@ package com.braintreepayments.api -/** - * Representation of a user phone number. - * @property countryCode The international country code for the shopper's phone number - * (e.g., "1" for the United States). - * @property nationalNumber The national segment of the shopper's phone number - * (excluding the country code). - */ - -data class BuyerPhone( - var countryCode: String, - var nationalNumber: String -) - /** * Data class representing a request for shopper insights. *