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
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'