# Path: ingenico/connect/sdk/merchant/services/convert_amount_params.py
# class ConvertAmountParams(ParamRequest):
#     """
#     Query parameters for Convert amount
#     
#     See also https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/python/services/convertAmount.html
#     """
# 
#     __source = None
#     __target = None
#     __amount = None
# 
#     @property
#     def source(self):
#         """
#         | Three-letter ISO currency code representing the source currency
#         
#         Type: str
#         """
#         return self.__source
# 
#     @source.setter
#     def source(self, value):
#         self.__source = value
# 
#     @property
#     def target(self):
#         """
#         | Three-letter ISO currency code representing the target currency
#         
#         Type: str
#         """
#         return self.__target
# 
#     @target.setter
#     def target(self, value):
#         self.__target = value
# 
#     @property
#     def amount(self):
#         """
#         | Amount to be converted in cents and always having 2 decimals
#         
#         Type: int
#         """
#         return self.__amount
# 
#     @amount.setter
#     def amount(self, value):
#         self.__amount = value
# 
#     def to_request_parameters(self):
#         """
#         :return: list[RequestParam]
#         """
#         result = []
#         if self.source is not None:
#             result.append(RequestParam("source", self.source))
#         if self.target is not None:
#             result.append(RequestParam("target", self.target))
#         if self.amount is not None:
#             result.append(RequestParam("amount", str(self.amount)))
#         return result
# 
# Path: tests/integration/init_utils.py
# PROPERTIES_URL = os.path.abspath(os.path.join(__file__, os.pardir, "../resources/configuration.ini"))
# PROPERTIES_URL_PROXY = os.path.abspath(os.path.join(__file__, os.pardir, "../resources/configuration.proxy.ini"))
# API_KEY_ID = os.getenv("connect.api.apiKeyId")
# SECRET_API_KEY = os.getenv("connect.api.secretApiKey")
# MERCHANT_ID = str(os.getenv("connect.api.merchantId"))
# def create_communicator_configuration(properties_url=PROPERTIES_URL, max_connections=False):
# def create_session():
# def create_client(max_connections=False):
# def create_client_with_proxy(max_connections=False):
# 
# Path: tests/integration/init_utils.py
# MERCHANT_ID = str(os.getenv("connect.api.merchantId"))


import unittest
from ingenico.connect.sdk.merchant.services.convert_amount_params import ConvertAmountParams
from ingenico.connect.sdk.merchant.services.services_client import ServicesClient
from tests.integration import init_utils
from tests.integration.init_utils import MERCHANT_ID



class SDKProxyTest(unittest.TestCase):
    def test_sdk_proxy(self):
        request = ConvertAmountParams()
        request.amount = 123
        request.source = "USD"

# Path: ingenico/connect/sdk/merchant/services/convert_amount_params.py
# class ConvertAmountParams(ParamRequest):
#     """
#     Query parameters for Convert amount
#     
#     See also https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/python/services/convertAmount.html
#     """
# 
#     __source = None
#     __target = None
#     __amount = None
# 
#     @property
#     def source(self):
#         """
#         | Three-letter ISO currency code representing the source currency
#         
#         Type: str
#         """
#         return self.__source
# 
#     @source.setter
#     def source(self, value):
#         self.__source = value
# 
#     @property
#     def target(self):
#         """
#         | Three-letter ISO currency code representing the target currency
#         
#         Type: str
#         """
#         return self.__target
# 
#     @target.setter
#     def target(self, value):
#         self.__target = value
# 
#     @property
#     def amount(self):
#         """
#         | Amount to be converted in cents and always having 2 decimals
#         
#         Type: int
#         """
#         return self.__amount
# 
#     @amount.setter
#     def amount(self, value):
#         self.__amount = value
# 
#     def to_request_parameters(self):
#         """
#         :return: list[RequestParam]
#         """
#         result = []
#         if self.source is not None:
#             result.append(RequestParam("source", self.source))
#         if self.target is not None:
#             result.append(RequestParam("target", self.target))
#         if self.amount is not None:
#             result.append(RequestParam("amount", str(self.amount)))
#         return result
# 
# Path: tests/integration/init_utils.py
# PROPERTIES_URL = os.path.abspath(os.path.join(__file__, os.pardir, "../resources/configuration.ini"))
# PROPERTIES_URL_PROXY = os.path.abspath(os.path.join(__file__, os.pardir, "../resources/configuration.proxy.ini"))
# API_KEY_ID = os.getenv("connect.api.apiKeyId")
# SECRET_API_KEY = os.getenv("connect.api.secretApiKey")
# MERCHANT_ID = str(os.getenv("connect.api.merchantId"))
# def create_communicator_configuration(properties_url=PROPERTIES_URL, max_connections=False):
# def create_session():
# def create_client(max_connections=False):
# def create_client_with_proxy(max_connections=False):
# 
# Path: tests/integration/init_utils.py
# MERCHANT_ID = str(os.getenv("connect.api.merchantId"))


# Path: tests/integration/test_sdk_proxy.py
import unittest
from ingenico.connect.sdk.merchant.services.convert_amount_params import ConvertAmountParams
from ingenico.connect.sdk.merchant.services.services_client import ServicesClient
from tests.integration import init_utils
from tests.integration.init_utils import MERCHANT_ID




class SDKProxyTest(unittest.TestCase):
    def test_sdk_proxy(self):
        request = ConvertAmountParams()
        request.amount = 123
        request.source = "USD"

        request.target = "EUR"