-
Notifications
You must be signed in to change notification settings - Fork 35
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 #509 from tinkoff-mobile-tech/EACQAPW-5625/data_at…
…tach_card * [EACQAPW-5625] Added Card Options to pass DATA field in /AttachCard
- Loading branch information
Showing
36 changed files
with
263 additions
and
124 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
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
32 changes: 32 additions & 0 deletions
32
TinkoffASDKUI/TinkoffASDKUI/BusinessLogic/AddCard/Models/AddCardOptions.swift
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,32 @@ | ||
// | ||
// AddCardOptions.swift | ||
// TinkoffASDKUI | ||
// | ||
// Created by Ivan Glushko on 07.08.2023. | ||
// | ||
|
||
import Foundation | ||
import TinkoffASDKCore | ||
|
||
/// Параметры для флоу привязки карты | ||
public struct AddCardOptions { | ||
|
||
/// DATA - дополнительные поля для отправки на запрос `/AttachCard` | ||
/// | ||
/// `JSON` объект, содержащий дополнительные параметры в виде `[Key: Value]` | ||
/// | ||
/// `Key: String` – 20 знаков, | ||
/// `Value: DataValue` – 100 знаков. | ||
/// - Warning: Максимальное количество пар параметров не может превышать 20. | ||
/// Часть может быть зарезервирована `TinkoffAcquiringSDK` | ||
public let attachCardData: AdditionalData? | ||
|
||
public init(attachCardData: AdditionalData?) { | ||
self.attachCardData = attachCardData | ||
} | ||
} | ||
|
||
public extension AddCardOptions { | ||
|
||
static let empty = AddCardOptions(attachCardData: nil) | ||
} |
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.