// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient
let authorization = "authorization_example" // String |
let fiat = "fiat_example" // String |
let crypto = "crypto_example" // String |
let amount = 987 // Double |
let paymentMethod = "paymentMethod_example" // String | (optional) (default to "creditcard")
let uuid = "uuid_example" // String | (optional) (default to "")
let clientName = "clientName_example" // String | (optional) (default to "")
let country = "country_example" // String | (optional) (default to "")
OnramperAPI.onRamperGetQuotesSell(authorization: authorization, fiat: fiat, crypto: crypto, amount: amount, paymentMethod: paymentMethod, uuid: uuid, clientName: clientName, country: country) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Parameters
Name
Type
Description
Notes
authorization
String
fiat
String
crypto
String
amount
Double
paymentMethod
String
[optional] [default to "creditcard"]
uuid
String
[optional] [default to ""]
clientName
String
[optional] [default to ""]
country
String
[optional] [default to ""]
Return type
[SellQuote]
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
onRamperGetSupportedAssets
open class func onRamperGetSupportedAssets(authorization: String, source: String, country: String, completion: @escaping (_ data: SupportedAssetResponse?, _ error: Error?) -> Void)
Example
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient
let authorization = "authorization_example" // String |
let source = "source_example" // String |
let country = "country_example" // String |
OnramperAPI.onRamperGetSupportedAssets(authorization: authorization, source: source, country: country) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Parameters
Name
Type
Description
Notes
authorization
String
source
String
country
String
Return type
SupportedAssetResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
onRamperGetSupportedCurrencies
open class func onRamperGetSupportedCurrencies(authorization: String, type: String, completion: @escaping (_ data: SupportedCurrenciesResponse?, _ error: Error?) -> Void)
Example
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient
let authorization = "authorization_example" // String |
let type = "type_example" // String |
OnramperAPI.onRamperGetSupportedCurrencies(authorization: authorization, type: type) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Parameters
Name
Type
Description
Notes
authorization
String
type
String
Return type
SupportedCurrenciesResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
onRamperGetSupportedDefaultsAll
open class func onRamperGetSupportedDefaultsAll(authorization: String, country: String, type: String, completion: @escaping (_ data: SupportedDefaultResponse?, _ error: Error?) -> Void)
Example
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient
let authorization = "authorization_example" // String |
let country = "country_example" // String |
let type = "type_example" // String |
OnramperAPI.onRamperGetSupportedDefaultsAll(authorization: authorization, country: country, type: type) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Parameters
Name
Type
Description
Notes
authorization
String
country
String
type
String
Return type
SupportedDefaultResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
onRamperGetSupportedOnRampsAll
open class func onRamperGetSupportedOnRampsAll(authorization: String, completion: @escaping (_ data: GetSupportedOnRampsResponse?, _ error: Error?) -> Void)
Example
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient
let authorization = "authorization_example" // String |
OnramperAPI.onRamperGetSupportedOnRampsAll(authorization: authorization) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Parameters
Name
Type
Description
Notes
authorization
String
Return type
GetSupportedOnRampsResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient
let authorization = "authorization_example" // String |
let fiat = "fiat_example" // String |
let country = "country_example" // String |
let type = "type_example" // String |
OnramperAPI.onRamperGetSupportedPaymentTypes(authorization: authorization, fiat: fiat, country: country, type: type) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Parameters
Name
Type
Description
Notes
authorization
String
fiat
String
country
String
type
String
Return type
SupportedPaymentTypesCurrencyResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
onRamperGetSupportedPaymentTypesFiat
open class func onRamperGetSupportedPaymentTypesFiat(authorization: String, fiat: String, country: String, completion: @escaping (_ data: SupportedPaymentTypesCurrencyResponse?, _ error: Error?) -> Void)
Example
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import OpenAPIClient
let authorization = "authorization_example" // String |
let fiat = "fiat_example" // String |
let country = "country_example" // String |
OnramperAPI.onRamperGetSupportedPaymentTypesFiat(authorization: authorization, fiat: fiat, country: country) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Parameters
Name
Type
Description
Notes
authorization
String
fiat
String
country
String
Return type
SupportedPaymentTypesCurrencyResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]