-
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.
* [EACQAPW-5625] Added Card Options to pass DATA field in /AttachCard
- Loading branch information
1 parent
388823a
commit 59676b4
Showing
31 changed files
with
199 additions
and
95 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) | ||
} |
6 changes: 3 additions & 3 deletions
6
...essLogic/AddCard/Models/CardOptions.swift → ...sinessLogic/AddCard/Models/CardData.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
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.