diff --git a/CHANGELOG.md b/CHANGELOG.md index d1f9f0cb..b657df84 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ Changelog ========= +[1.0.1](https://github.com/hyperwallet/hyperwallet-ios-sdk/releases/tag/1.0.1) +------------------- +- Fetch Default currency on list of Transfer Method country. + [1.0.0-beta20](https://github.com/hyperwallet/hyperwallet-ios-sdk/releases/tag/1.0.0-beta20) ------------------- - Add privacy manifest on CocoaPods Spec diff --git a/HyperwalletSDK.podspec b/HyperwalletSDK.podspec index 0e16b614..a2d559d5 100644 --- a/HyperwalletSDK.podspec +++ b/HyperwalletSDK.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |spec| spec.name = 'HyperwalletSDK' - spec.version = '1.0.0-beta20' + spec.version = '1.0.1' spec.summary = 'Hyperwallet Core SDK for iOS to integrate with Hyperwallet Platform' spec.homepage = 'https://github.com/hyperwallet/hyperwallet-ios-sdk' spec.license = { :type => 'MIT', :file => 'LICENSE' } diff --git a/README.md b/README.md index da857808..47b27006 100644 --- a/README.md +++ b/README.md @@ -27,13 +27,13 @@ Use [Carthage](https://github.com/Carthage/Carthage) or [CocoaPods](https://coco ### Carthage Specify it in your Cartfile: ```ogdl -github "hyperwallet/hyperwallet-ios-sdk" "1.0.0-beta20" +github "hyperwallet/hyperwallet-ios-sdk" "1.0.1" ``` ### CocoaPods Specify it in your Podfile: ```ruby -pod 'HyperwalletSDK', '~> 1.0.0-beta20' +pod 'HyperwalletSDK', '~> 1.0.1' ``` ## Initialization diff --git a/Sources/Info.plist b/Sources/Info.plist index a85a0b07..cf465b59 100644 --- a/Sources/Info.plist +++ b/Sources/Info.plist @@ -21,6 +21,6 @@ CFBundleVersion $(CURRENT_PROJECT_VERSION) TAG_VERSION - 1.0.0-beta20 + 1.0.1 diff --git a/Sources/Model/GraphQL/HyperwalletTransferMethodConfiguration.swift b/Sources/Model/GraphQL/HyperwalletTransferMethodConfiguration.swift index e85bef3d..63e1a028 100644 --- a/Sources/Model/GraphQL/HyperwalletTransferMethodConfiguration.swift +++ b/Sources/Model/GraphQL/HyperwalletTransferMethodConfiguration.swift @@ -24,6 +24,8 @@ public struct HyperwalletCountry: Codable { public let code: String? /// The country name public let name: String? + /// The 3 letter ISO 4217-1 default currency code + public let defaultCurrencyCode: String? /// The `HyperwalletCurrency` nodes that connect to this country node public let currencies: Connection? } diff --git a/Sources/Model/GraphQL/Query/HyperwalletTransferMethodConfigurationQueries.swift b/Sources/Model/GraphQL/Query/HyperwalletTransferMethodConfigurationQueries.swift index c7795b6e..4251e69a 100644 --- a/Sources/Model/GraphQL/Query/HyperwalletTransferMethodConfigurationQueries.swift +++ b/Sources/Model/GraphQL/Query/HyperwalletTransferMethodConfigurationQueries.swift @@ -164,7 +164,8 @@ public struct HyperwalletTransferMethodConfigurationKeysQuery: GraphQlQuery { nodes { code name - currencies { + defaultCurrencyCode + currencies { nodes { code name