-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #245 from tinkoff-mobile-tech/v.2.13.2
V.2.13.2
- Loading branch information
Showing
18 changed files
with
194 additions
and
72 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
20 changes: 20 additions & 0 deletions
20
core/src/main/java/ru/tinkoff/acquiring/sdk/exceptions/NspkOpenException.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,20 @@ | ||
package ru.tinkoff.acquiring.sdk.exceptions | ||
|
||
/** | ||
* | ||
* Исключение, выбрасываемое при неуспешном открытии какого либо банка по контракту NSPK в | ||
* Cценарии оплаты по СБП | ||
* | ||
* @param throwable - родительская ошибка | ||
* @param message - дополнительное сообщение | ||
* @param deeplink - диплинк для октрытия прилоежния | ||
* @param paymentId - идентификатор платежной сессии | ||
* | ||
* Created by i.golovachev | ||
*/ | ||
class NspkOpenException( | ||
throwable: Throwable, | ||
message: String? = null, | ||
val deeplink: String? = null, | ||
val paymentId: Long? = null | ||
) : RuntimeException(message ?: throwable.message, throwable) |
40 changes: 40 additions & 0 deletions
40
core/src/main/java/ru/tinkoff/acquiring/sdk/responses/NspkC2bResponse.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,40 @@ | ||
package ru.tinkoff.acquiring.sdk.responses | ||
|
||
import com.google.gson.annotations.SerializedName | ||
import java.io.Serializable | ||
|
||
/** | ||
* Created by i.golovachev | ||
* Ответ на запрос https://qr.nspk.ru/proxyapp/c2bmembers.json | ||
* представляет список приложений для взаимодействия с СБП | ||
* 182 организации и 181 приложение на момент version - 1.0 | ||
* | ||
* @param version - версия справочника | ||
* @param dictionary - список приложений | ||
*/ | ||
class NspkC2bResponse( | ||
@SerializedName("version") | ||
val version: String, | ||
@SerializedName("dictionary") | ||
val dictionary: List<NspkAppInfo>, | ||
) : Serializable { | ||
|
||
/** | ||
* Информация о приложении банка | ||
* | ||
* @param bankName - наименование организации | ||
* @param logoURL - адресс статического ресурса с логотипом приложения | ||
* @param schema - выделенная схема организации в системе сбп | ||
* @param packageName - наименование пакета приложения организации, если null - приложения не существует или оно удалено | ||
*/ | ||
class NspkAppInfo( | ||
@SerializedName("bankName") | ||
val bankName: String, | ||
@SerializedName("logoURL") | ||
val logoURL: String, | ||
@SerializedName("schema") | ||
val schema: String, | ||
@SerializedName("package_name") | ||
val packageName: String?, | ||
) : Serializable | ||
} |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
VERSION_NAME=2.13.1 | ||
VERSION_NAME=2.13.2 | ||
VERSION_CODE=21 | ||
GROUP=ru.tinkoff.acquiring | ||
|
||
|
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
14 changes: 14 additions & 0 deletions
14
ui/src/main/java/ru/tinkoff/acquiring/sdk/models/BankChooseInfo.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,14 @@ | ||
package ru.tinkoff.acquiring.sdk.models | ||
|
||
|
||
/** | ||
* Created by i.golovachev | ||
*/ | ||
class BankChooseInfo( | ||
val appsAndLinks: Map<String, String> | ||
) : java.io.Serializable { | ||
|
||
val apps: Set<String> get() = appsAndLinks.keys | ||
|
||
fun getDeeplink(packageName: String) : String = appsAndLinks.getValue(packageName) | ||
} |
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
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
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.