-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
*Added support for Create Transfer Funds *Added support for Objective-C
- Loading branch information
Showing
305 changed files
with
23,656 additions
and
1,438 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,25 @@ | ||
Changelog | ||
========= | ||
|
||
[1.0.0-beta01](https://github.com/hyperwallet/hyperwallet-ios-ui-sdk/releases/tag/1.0.0-beta01) | ||
[1.0.0-beta04](https://github.com/hyperwallet/hyperwallet-ios-ui-sdk/releases/tag/1.0.0-beta04) | ||
------------------- | ||
- Initial beta release of Hyperwallet UI SDK for iOS. This beta release has the following functionality: | ||
* UI components to create Bank Account and Bank Card for United States (USD) | ||
* UI components to list and deactivate accounts | ||
|
||
- Added support for Create Transfer Funds | ||
- Added support for Objective-C | ||
|
||
[1.0.0-beta03](https://github.com/hyperwallet/hyperwallet-ios-ui-sdk/releases/tag/1.0.0-beta03) | ||
------------------- | ||
- Enhancements to Add Transfer Method | ||
- Added support to the following: | ||
* List Prepaid Card Receipts | ||
* List User Receipts | ||
|
||
[1.0.0-beta02](https://github.com/hyperwallet/hyperwallet-ios-ui-sdk/releases/tag/1.0.0-beta02) | ||
------------------- | ||
- Added PayPal as a Transfer method | ||
- Defaulted in Transfer Method selection to country of User | ||
|
||
|
||
[1.0.0-beta03](https://github.com/hyperwallet/hyperwallet-ios-ui-sdk/releases/tag/1.0.0-beta03) | ||
[1.0.0-beta01](https://github.com/hyperwallet/hyperwallet-ios-ui-sdk/releases/tag/1.0.0-beta01) | ||
------------------- | ||
- Enhancements to Add Transfer Method | ||
- Added support to the following: | ||
* List Prepaid Card Receipts | ||
* List User Receipts | ||
- Initial beta release of Hyperwallet UI SDK for iOS. This beta release has the following functionality: | ||
* UI components to create Bank Account and Bank Card for United States (USD) | ||
* UI components to list and deactivate accounts |
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 +1 @@ | ||
github "hyperwallet/hyperwallet-ios-sdk" "1.0.0-beta03" | ||
github "hyperwallet/hyperwallet-ios-sdk" "1.0.0-beta05" |
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,2 +1,2 @@ | ||
github "JanGorman/Hippolyte" "0.6.0" | ||
github "JanGorman/Hippolyte" "0.8.0" | ||
github "httpswift/swifter" "1.4.6" |
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,3 +1,3 @@ | ||
github "JanGorman/Hippolyte" "0.6.0" | ||
github "JanGorman/Hippolyte" "0.8.0" | ||
github "httpswift/swifter" "1.4.6" | ||
github "hyperwallet/hyperwallet-ios-sdk" "1.0.0-beta03" | ||
github "hyperwallet/hyperwallet-ios-sdk" "1.0.0-beta05" |
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,29 @@ | ||
// | ||
// Copyright 2018 - Present Hyperwallet | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software | ||
// and associated documentation files (the "Software"), to deal in the Software without restriction, | ||
// including without limitation the rights to use, copy, modify, merge, publish, distribute, | ||
// sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is | ||
// furnished to do so, subject to the following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be included in all copies or | ||
// substantial portions of the Software. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING | ||
// BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, | ||
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
//! Project version number for Common. | ||
FOUNDATION_EXPORT double CommonVersionNumber; | ||
|
||
//! Project version string for Common. | ||
FOUNDATION_EXPORT const unsigned char CommonVersionString[]; | ||
|
||
// In this header, you should import all the public headers of your framework using statements like #import <Common/PublicHeader.h> | ||
|
||
|
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,39 @@ | ||
// | ||
// Copyright 2018 - Present Hyperwallet | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software | ||
// and associated documentation files (the "Software"), to deal in the Software without restriction, | ||
// including without limitation the rights to use, copy, modify, merge, publish, distribute, | ||
// sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is | ||
// furnished to do so, subject to the following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be included in all copies or | ||
// substantial portions of the Software. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING | ||
// BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, | ||
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
import Foundation | ||
|
||
/// The Array extension | ||
public extension Array { | ||
/// A Boolean value indicating whether the collection is not empty. | ||
var isNotEmpty: Bool { | ||
return !self.isEmpty | ||
} | ||
|
||
/// Check if the current index is the last element in this array | ||
func isLast(index: Int) -> Bool { | ||
return index == endIndex - 1 | ||
} | ||
|
||
/// A safe way to check if element exists in this array | ||
/// | ||
/// - Parameter index: the index of an element | ||
subscript(safe index: Index) -> Element? { | ||
return indices.contains(index) ? self[index] : 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
// | ||
// Copyright 2018 - Present Hyperwallet | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software | ||
// and associated documentation files (the "Software"), to deal in the Software without restriction, | ||
// including without limitation the rights to use, copy, modify, merge, publish, distribute, | ||
// sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is | ||
// furnished to do so, subject to the following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be included in all copies or | ||
// substantial portions of the Software. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING | ||
// BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, | ||
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
import Foundation | ||
|
||
/// The Date extension | ||
public extension Date { | ||
/// The Date type format | ||
/// | ||
/// - date: The yMMMd format | ||
/// - dateTime: The yMMMEdjm format | ||
enum DateFormatMode { | ||
/// - date: The yMMMd format | ||
case date | ||
/// - dateTime: The yMMMEdjm format | ||
case dateTime | ||
} | ||
|
||
/// Formats date to string | ||
/// | ||
/// - Parameter dateFormat: format of the date | ||
/// - Returns: formatted date in string | ||
func formatDateToString(dateFormat: String) -> String { | ||
let dateFormatter = DateFormatter() | ||
dateFormatter.dateFormat = dateFormat | ||
return dateFormatter.string(from: self) | ||
} | ||
|
||
/// Returns 1st day of the month | ||
/// | ||
/// - Returns: 1st day of the month | ||
func firstDayOfMonth() -> Date { | ||
let calendar = Calendar.current | ||
let components = calendar.dateComponents([.year, .month], from: self) | ||
return calendar.date(from: components)! | ||
} | ||
|
||
/// Format date | ||
/// | ||
/// - Parameter formatMode: format date/datetime | ||
/// - Returns: formatted date | ||
func format(for formatMode: DateFormatMode) -> String { | ||
switch formatMode { | ||
case .date: | ||
return Date.dateFormatterOnlyDate.string(from: self) | ||
|
||
case .dateTime: | ||
return Date.dateFormatterDateAndTime.string(from: self) | ||
} | ||
} | ||
|
||
private static let dateFormatterOnlyDate: DateFormatter = { | ||
let formatter = DateFormatter() | ||
formatter.setLocalizedDateFormatFromTemplate("yMMMd") | ||
formatter.formattingContext = .beginningOfSentence | ||
return formatter | ||
}() | ||
|
||
private static let dateFormatterDateAndTime: DateFormatter = { | ||
let formatter = DateFormatter() | ||
formatter.setLocalizedDateFormatFromTemplate("yMMMEdjm") | ||
formatter.formattingContext = .beginningOfSentence | ||
return formatter | ||
}() | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// Copyright 2018 - Present Hyperwallet | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software | ||
// and associated documentation files (the "Software"), to deal in the Software without restriction, | ||
// including without limitation the rights to use, copy, modify, merge, publish, distribute, | ||
// sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is | ||
// furnished to do so, subject to the following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be included in all copies or | ||
// substantial portions of the Software. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING | ||
// BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, | ||
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
import HyperwalletSDK | ||
|
||
extension HyperwalletCurrency: GenericCellConfiguration { | ||
public var title: String? { | ||
return name | ||
} | ||
|
||
public var value: String? { | ||
return code | ||
} | ||
} |
Oops, something went wrong.