Source code for worldline.connect.sdk.v1.v1_client

#
# This class was auto-generated from the API references found at
# https://apireference.connect.worldline-solutions.com/
#
from worldline.connect.sdk.api_resource import ApiResource
from worldline.connect.sdk.v1.merchant.merchant_client import MerchantClient


[docs]class V1Client(ApiResource): """ V1 client. Thread-safe. """
[docs] def __init__(self, parent, path_context): """ :param parent: :class:`worldline.connect.sdk.api_resource.ApiResource` :param path_context: dict[str, str] """ super(V1Client, self).__init__(parent=parent, path_context=path_context)
[docs] def merchant(self, merchant_id): """ Resource /{merchantId} :param merchant_id: str :return: :class:`worldline.connect.sdk.v1.merchant.merchant_client.MerchantClient` """ sub_context = { "merchantId": merchant_id, } return MerchantClient(self, sub_context)