Skip to content

Commit

Permalink
move class to its own file
Browse files Browse the repository at this point in the history
  • Loading branch information
saperi22 committed Dec 12, 2023
1 parent 93d9278 commit 4da0f4c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -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
)
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
*
Expand Down

0 comments on commit 4da0f4c

Please sign in to comment.