|
| 1 | +# eZmaxApi.ObjectCurrencyApi |
| 2 | + |
| 3 | +All URIs are relative to *https://prod.api.appcluster01.ca-central-1.ezmax.com/rest* |
| 4 | + |
| 5 | +Method | HTTP request | Description |
| 6 | +------------- | ------------- | ------------- |
| 7 | +[**currency_get_autocomplete_v2**](ObjectCurrencyApi.md#currency_get_autocomplete_v2) | **GET** /2/object/currency/getAutocomplete/{sSelector} | Retrieve Currencies and IDs |
| 8 | + |
| 9 | + |
| 10 | +# **currency_get_autocomplete_v2** |
| 11 | +> CurrencyGetAutocompleteV2Response currency_get_autocomplete_v2(s_selector, e_filter_active=e_filter_active, s_query=s_query, accept_language=accept_language) |
| 12 | +
|
| 13 | +Retrieve Currencies and IDs |
| 14 | + |
| 15 | +Get the list of Currency to be used in a dropdown or autocomplete control. |
| 16 | + |
| 17 | +### Example |
| 18 | + |
| 19 | +* Api Key Authentication (Authorization): |
| 20 | + |
| 21 | +```python |
| 22 | +import eZmaxApi |
| 23 | +from eZmaxApi.models.currency_get_autocomplete_v2_response import CurrencyGetAutocompleteV2Response |
| 24 | +from eZmaxApi.models.header_accept_language import HeaderAcceptLanguage |
| 25 | +from eZmaxApi.rest import ApiException |
| 26 | +from pprint import pprint |
| 27 | + |
| 28 | +# Defining the host is optional and defaults to https://prod.api.appcluster01.ca-central-1.ezmax.com/rest |
| 29 | +# See configuration.py for a list of all supported configuration parameters. |
| 30 | +configuration = eZmaxApi.Configuration( |
| 31 | + host = "https://prod.api.appcluster01.ca-central-1.ezmax.com/rest" |
| 32 | +) |
| 33 | + |
| 34 | +# The client must configure the authentication and authorization parameters |
| 35 | +# in accordance with the API server security policy. |
| 36 | +# Examples for each auth method are provided below, use the example that |
| 37 | +# satisfies your auth use case. |
| 38 | + |
| 39 | +# Configure API key authorization: Authorization |
| 40 | +configuration.api_key['Authorization'] = os.environ["API_KEY"] |
| 41 | + |
| 42 | +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed |
| 43 | +# configuration.api_key_prefix['Authorization'] = 'Bearer' |
| 44 | + |
| 45 | +# Enter a context with an instance of the API client |
| 46 | +with eZmaxApi.ApiClient(configuration) as api_client: |
| 47 | + # Create an instance of the API class |
| 48 | + api_instance = eZmaxApi.ObjectCurrencyApi(api_client) |
| 49 | + s_selector = 's_selector_example' # str | The type of Currencies to return |
| 50 | + e_filter_active = Active # str | Specify which results we want to display. (optional) (default to Active) |
| 51 | + s_query = 's_query_example' # str | Allow to filter the returned results (optional) |
| 52 | + accept_language = eZmaxApi.HeaderAcceptLanguage() # HeaderAcceptLanguage | (optional) |
| 53 | + |
| 54 | + try: |
| 55 | + # Retrieve Currencies and IDs |
| 56 | + api_response = api_instance.currency_get_autocomplete_v2(s_selector, e_filter_active=e_filter_active, s_query=s_query, accept_language=accept_language) |
| 57 | + print("The response of ObjectCurrencyApi->currency_get_autocomplete_v2:\n") |
| 58 | + pprint(api_response) |
| 59 | + except Exception as e: |
| 60 | + print("Exception when calling ObjectCurrencyApi->currency_get_autocomplete_v2: %s\n" % e) |
| 61 | +``` |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | +### Parameters |
| 66 | + |
| 67 | + |
| 68 | +Name | Type | Description | Notes |
| 69 | +------------- | ------------- | ------------- | ------------- |
| 70 | + **s_selector** | **str**| The type of Currencies to return | |
| 71 | + **e_filter_active** | **str**| Specify which results we want to display. | [optional] [default to Active] |
| 72 | + **s_query** | **str**| Allow to filter the returned results | [optional] |
| 73 | + **accept_language** | [**HeaderAcceptLanguage**](.md)| | [optional] |
| 74 | + |
| 75 | +### Return type |
| 76 | + |
| 77 | +[**CurrencyGetAutocompleteV2Response**](CurrencyGetAutocompleteV2Response.md) |
| 78 | + |
| 79 | +### Authorization |
| 80 | + |
| 81 | +[Authorization](../README.md#Authorization) |
| 82 | + |
| 83 | +### HTTP request headers |
| 84 | + |
| 85 | + - **Content-Type**: Not defined |
| 86 | + - **Accept**: application/json |
| 87 | + |
| 88 | +### HTTP response details |
| 89 | + |
| 90 | +| Status code | Description | Response headers | |
| 91 | +|-------------|-------------|------------------| |
| 92 | +**200** | Successful response | - | |
| 93 | + |
| 94 | +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) |
| 95 | + |
0 commit comments