-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add MerchantRepository for holding BraintreeClient properties (#1202)
* Move properties from BraintreeClient to MerchantRepository * Add kdocs for MerchantRepository
- Loading branch information
Showing
21 changed files
with
1,241 additions
and
672 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
26 changes: 26 additions & 0 deletions
26
BraintreeCore/src/main/java/com/braintreepayments/api/core/MerchantRepository.kt
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 @@ | ||
package com.braintreepayments.api.core | ||
|
||
import android.content.Context | ||
import android.net.Uri | ||
import androidx.annotation.RestrictTo | ||
|
||
/** | ||
* An internal repository that holds properties set by the integrating merchant. | ||
*/ | ||
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) | ||
class MerchantRepository { | ||
|
||
lateinit var applicationContext: Context | ||
lateinit var integrationType: IntegrationType | ||
lateinit var authorization: Authorization | ||
lateinit var returnUrlScheme: String | ||
var appLinkReturnUri: Uri? = null | ||
|
||
companion object { | ||
|
||
/** | ||
* Singleton instance of the MerchantRepository. | ||
*/ | ||
val instance: MerchantRepository by lazy { MerchantRepository() } | ||
} | ||
} |
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
Oops, something went wrong.