Ejemplo n.º 1
0
    def soap(self, soap):
        utils.validate_boolean_input(soap, 'soap')

        if self.__api is not None:
            self.__api = self.__get_api(soap)

        self.__soap = soap
Ejemplo n.º 2
0
    def soap(self, soap):
        utils.validate_boolean_input(soap, 'soap')

        if self.__api is not None:
            self.__api = self.__get_api(soap)

        self.__soap = soap
Ejemplo n.º 3
0
    def sandbox(self, sandbox):
        utils.validate_boolean_input(sandbox, 'sanbox')

        self.__sandbox = sandbox

        if self.__api is not None:
            self.__api.url_resources.sandbox = sandbox
            self.__api.url_resources.domain = 'test' if self.sandbox else 'login'
Ejemplo n.º 4
0
    def sandbox(self, sandbox):
        utils.validate_boolean_input(sandbox, 'sanbox')

        self.__sandbox = sandbox

        if self.__api is not None:
            self.__api.url_resources.sandbox = sandbox
            self.__api.url_resources.domain = 'test' if self.sandbox else 'login'