def __init__(self, *args, **kwargs):  # noqa: E501
        """Attachment - a model defined in OpenAPI

        Keyword Args:
            _check_type (bool): if True, values for parameters in openapi_types
                                will be type checked and a TypeError will be
                                raised if the wrong type is input.
                                Defaults to True
            _path_to_item (tuple/list): This is a list of keys or values to
                                drill down to the model in received_data
                                when deserializing a response
            _spec_property_naming (bool): True if the variable names in the input data
                                are serialized names, as specified in the OpenAPI document.
                                False if the variable names in the input data
                                are pythonic names, e.g. snake case (default)
            _configuration (Configuration): the instance to use when
                                deserializing a file_type parameter.
                                If passed, type conversion is attempted
                                If omitted no type conversion is done.
            _visited_composed_classes (tuple): This stores a tuple of
                                classes that we have traveled through so that
                                if we see that class again we will not use its
                                discriminator again.
                                When traveling through a discriminator, the
                                composed schema that is
                                is traveled through is added to this set.
                                For example if Animal has a discriminator
                                petType and we pass in "Dog", and the class Dog
                                allOf includes Animal, we move through Animal
                                once using the discriminator, and pick Dog.
                                Then in Dog, we will make an instance of the
                                Animal class but this time we won't travel
                                through its discriminator because we passed in
                                _visited_composed_classes = (Animal,)
            content_type (str): The content type of the attachment.. [optional]  # noqa: E501
            content_type_meta (AttachmentContentTypeMeta): [optional]  # noqa: E501
            created_at (datetime): When the attachment was created. [optional]  # noqa: E501
            file_name (str): The file name of the attachment. [optional]  # noqa: E501
            id (int): The unique identifier of the attachment. [optional]  # noqa: E501
            original_url (str): The url of the attachment. [optional]  # noqa: E501
            title (str): The title of the attachment. If blank or not provided, the title will be derived from the file name.. [optional]  # noqa: E501
            type (str): The type of attachment. [optional]  # noqa: E501
            updated_at (datetime): When the attachment was last updated. [optional]  # noqa: E501
            variants (AttachmentVariants): [optional]  # noqa: E501
        """

        _check_type = kwargs.pop('_check_type', True)
        _spec_property_naming = kwargs.pop('_spec_property_naming', False)
        _path_to_item = kwargs.pop('_path_to_item', ())
        _configuration = kwargs.pop('_configuration', None)
        _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())

        if args:
            raise ApiTypeError(
                "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments."
                % (
                    args,
                    self.__class__.__name__,
                ),
                path_to_item=_path_to_item,
                valid_classes=(self.__class__, ),
            )

        self._data_store = {}
        self._check_type = _check_type
        self._spec_property_naming = _spec_property_naming
        self._path_to_item = _path_to_item
        self._configuration = _configuration
        self._visited_composed_classes = _visited_composed_classes + (
            self.__class__, )

        for var_name, var_value in kwargs.items():
            if var_name not in self.attribute_map and \
                        self._configuration is not None and \
                        self._configuration.discard_unknown_keys and \
                        self.additional_properties_type is None:
                # discard variable.
                continue
            setattr(self, var_name, var_value)
            if var_name in self.read_only_vars:
                raise ApiAttributeError(
                    f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
                    f"class with read only attributes.")
    def __init__(self, *args, **kwargs):  # noqa: E501
        """Provider - a model defined in OpenAPI

        Keyword Args:
            _check_type (bool): if True, values for parameters in openapi_types
                                will be type checked and a TypeError will be
                                raised if the wrong type is input.
                                Defaults to True
            _path_to_item (tuple/list): This is a list of keys or values to
                                drill down to the model in received_data
                                when deserializing a response
            _spec_property_naming (bool): True if the variable names in the input data
                                are serialized names, as specified in the OpenAPI document.
                                False if the variable names in the input data
                                are pythonic names, e.g. snake case (default)
            _configuration (Configuration): the instance to use when
                                deserializing a file_type parameter.
                                If passed, type conversion is attempted
                                If omitted no type conversion is done.
            _visited_composed_classes (tuple): This stores a tuple of
                                classes that we have traveled through so that
                                if we see that class again we will not use its
                                discriminator again.
                                When traveling through a discriminator, the
                                composed schema that is
                                is traveled through is added to this set.
                                For example if Animal has a discriminator
                                petType and we pass in "Dog", and the class Dog
                                allOf includes Animal, we move through Animal
                                once using the discriminator, and pick Dog.
                                Then in Dog, we will make an instance of the
                                Animal class but this time we won't travel
                                through its discriminator because we passed in
                                _visited_composed_classes = (Animal,)
            id (bool, date, datetime, dict, float, int, list, str, none_type): The unique identifier of the data connection feed provider. [optional]  # noqa: E501
            name (str): Name of the data connection feed provider. [optional]  # noqa: E501
            ascii_name (str): ASCII version of the data connection feed provider name. [optional]  # noqa: E501
            backend (str): Data connection feed provider. [optional]  # noqa: E501
            country (str): Country of origin of the provider. [optional]  # noqa: E501
            authorisation_method (str): UNKNOWN. [optional]  # noqa: E501
            external_authorisation (bool): UNKNOWN. [optional]  # noqa: E501
            syncing_method (str): UNKNOWN. [optional]  # noqa: E501
            external_syncing (bool): UNKNOWN. [optional]  # noqa: E501
            available (bool): UNKNOWN. [optional]  # noqa: E501
            brand_sensitive (bool): UNKNOWN. [optional]  # noqa: E501
            experimental (bool): UNKNOWN. [optional]  # noqa: E501
            enabled (bool): Whether the provider can be used. [optional]  # noqa: E501
            home_url (str, none_type): Link to homepage of provider. [optional]  # noqa: E501
            login_url (str, none_type): Link to login page of provider. [optional]  # noqa: E501
            default_logo_url (str, none_type): Default URL to provider's logo. [optional]  # noqa: E501
            custom_logo_url (str, none_type): URL to provider's logo to override the default. [optional]  # noqa: E501
            provider_notices ([ProviderProviderNotices]): UNKNOWN. [optional]  # noqa: E501
            backend_requires_consent (bool): UNKNOWN. [optional]  # noqa: E501
            backend_consent_text (str, none_type): UNKNOWN. [optional]  # noqa: E501
            backend_consent_html (str, none_type): UNKNOWN. [optional]  # noqa: E501
            created_at (datetime): When the data connection feed provider was first created. [optional]  # noqa: E501
            updated_at (datetime, none_type): When the data connection feed provider was last updated. [optional]  # noqa: E501
        """

        _check_type = kwargs.pop('_check_type', True)
        _spec_property_naming = kwargs.pop('_spec_property_naming', False)
        _path_to_item = kwargs.pop('_path_to_item', ())
        _configuration = kwargs.pop('_configuration', None)
        _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())

        if args:
            raise ApiTypeError(
                "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments."
                % (
                    args,
                    self.__class__.__name__,
                ),
                path_to_item=_path_to_item,
                valid_classes=(self.__class__, ),
            )

        self._data_store = {}
        self._check_type = _check_type
        self._spec_property_naming = _spec_property_naming
        self._path_to_item = _path_to_item
        self._configuration = _configuration
        self._visited_composed_classes = _visited_composed_classes + (
            self.__class__, )

        for var_name, var_value in kwargs.items():
            if var_name not in self.attribute_map and \
                        self._configuration is not None and \
                        self._configuration.discard_unknown_keys and \
                        self.additional_properties_type is None:
                # discard variable.
                continue
            setattr(self, var_name, var_value)
            if var_name in self.read_only_vars:
                raise ApiAttributeError(
                    f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
                    f"class with read only attributes.")
Example #3
0
    def __init__(self, *args, **kwargs):  # noqa: E501
        """Period - a model defined in OpenAPI

        Keyword Args:
            _check_type (bool): if True, values for parameters in openapi_types
                                will be type checked and a TypeError will be
                                raised if the wrong type is input.
                                Defaults to True
            _path_to_item (tuple/list): This is a list of keys or values to
                                drill down to the model in received_data
                                when deserializing a response
            _spec_property_naming (bool): True if the variable names in the input data
                                are serialized names, as specified in the OpenAPI document.
                                False if the variable names in the input data
                                are pythonic names, e.g. snake case (default)
            _configuration (Configuration): the instance to use when
                                deserializing a file_type parameter.
                                If passed, type conversion is attempted
                                If omitted no type conversion is done.
            _visited_composed_classes (tuple): This stores a tuple of
                                classes that we have traveled through so that
                                if we see that class again we will not use its
                                discriminator again.
                                When traveling through a discriminator, the
                                composed schema that is
                                is traveled through is added to this set.
                                For example if Animal has a discriminator
                                petType and we pass in "Dog", and the class Dog
                                allOf includes Animal, we move through Animal
                                once using the discriminator, and pick Dog.
                                Then in Dog, we will make an instance of the
                                Animal class but this time we won't travel
                                through its discriminator because we passed in
                                _visited_composed_classes = (Animal,)
            actual_amount (float): The sum of all actuals (transactions) in the period.. [optional]  # noqa: E501
            current (bool): Whether this period is current, such that the current date (in the user's time zone) falls within the date range.. [optional]  # noqa: E501
            end_date (date): The end date of the period.. [optional]  # noqa: E501
            currency_code (str): The currency code for amounts in this Period.. [optional]  # noqa: E501
            forecast_amount (float): The sum of all forecast sources (budget events) in the period, for comparison against the actual amount.. [optional]  # noqa: E501
            over_budget (bool): Whether the budget has been exceeded in the period.. [optional]  # noqa: E501
            over_by (float): How much the budget has been exceeded by in the period.. [optional]  # noqa: E501
            percentage_used (float): The percentage of the budget that has been used in the period.. [optional]  # noqa: E501
            refund_amount (float): This attribute tracks the amount that has been refunded or deducted to the actual amount. When a category is set to \"always expense\", any credit transactions are treated as refunds and when set to \"always income\", any debit transactions are treated as deductions.. [optional]  # noqa: E501
            start_date (date): The start date of the period.. [optional]  # noqa: E501
            under_budget (bool): Whether the budget has not been exceeded in the period.. [optional]  # noqa: E501
            under_by (float): How much there is left in the budget for the period.. [optional]  # noqa: E501
        """

        _check_type = kwargs.pop('_check_type', True)
        _spec_property_naming = kwargs.pop('_spec_property_naming', False)
        _path_to_item = kwargs.pop('_path_to_item', ())
        _configuration = kwargs.pop('_configuration', None)
        _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())

        if args:
            raise ApiTypeError(
                "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments."
                % (
                    args,
                    self.__class__.__name__,
                ),
                path_to_item=_path_to_item,
                valid_classes=(self.__class__, ),
            )

        self._data_store = {}
        self._check_type = _check_type
        self._spec_property_naming = _spec_property_naming
        self._path_to_item = _path_to_item
        self._configuration = _configuration
        self._visited_composed_classes = _visited_composed_classes + (
            self.__class__, )

        for var_name, var_value in kwargs.items():
            if var_name not in self.attribute_map and \
                        self._configuration is not None and \
                        self._configuration.discard_unknown_keys and \
                        self.additional_properties_type is None:
                # discard variable.
                continue
            setattr(self, var_name, var_value)
            if var_name in self.read_only_vars:
                raise ApiAttributeError(
                    f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
                    f"class with read only attributes.")
    def __init__(self, *args, **kwargs):  # noqa: E501
        """InlineObject10 - a model defined in OpenAPI

        Keyword Args:
            _check_type (bool): if True, values for parameters in openapi_types
                                will be type checked and a TypeError will be
                                raised if the wrong type is input.
                                Defaults to True
            _path_to_item (tuple/list): This is a list of keys or values to
                                drill down to the model in received_data
                                when deserializing a response
            _spec_property_naming (bool): True if the variable names in the input data
                                are serialized names, as specified in the OpenAPI document.
                                False if the variable names in the input data
                                are pythonic names, e.g. snake case (default)
            _configuration (Configuration): the instance to use when
                                deserializing a file_type parameter.
                                If passed, type conversion is attempted
                                If omitted no type conversion is done.
            _visited_composed_classes (tuple): This stores a tuple of
                                classes that we have traveled through so that
                                if we see that class again we will not use its
                                discriminator again.
                                When traveling through a discriminator, the
                                composed schema that is
                                is traveled through is added to this set.
                                For example if Animal has a discriminator
                                petType and we pass in "Dog", and the class Dog
                                allOf includes Animal, we move through Animal
                                once using the discriminator, and pick Dog.
                                Then in Dog, we will make an instance of the
                                Animal class but this time we won't travel
                                through its discriminator because we passed in
                                _visited_composed_classes = (Animal,)
            always_show_base_currency (bool): Whether the user wishes to have all monetary values converted to their base currency.. [optional]  # noqa: E501
            base_currency_code (str): A new base currency code for the user.. [optional]  # noqa: E501
            beta_user (bool): Whether the user is a beta user, and wishes to try out new features.. [optional]  # noqa: E501
            email (str): A new email address for the user.. [optional]  # noqa: E501
            name (str): A new name for the user.. [optional]  # noqa: E501
            time_zone (str): A new time zone for the user.. [optional]  # noqa: E501
            week_start_day (int): The day of the week the user wishes their calendars to start on. A number between 0 and 6, where 0 is Sunday and 6 is Saturday.. [optional]  # noqa: E501
        """

        _check_type = kwargs.pop('_check_type', True)
        _spec_property_naming = kwargs.pop('_spec_property_naming', False)
        _path_to_item = kwargs.pop('_path_to_item', ())
        _configuration = kwargs.pop('_configuration', None)
        _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())

        if args:
            raise ApiTypeError(
                "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments."
                % (
                    args,
                    self.__class__.__name__,
                ),
                path_to_item=_path_to_item,
                valid_classes=(self.__class__, ),
            )

        self._data_store = {}
        self._check_type = _check_type
        self._spec_property_naming = _spec_property_naming
        self._path_to_item = _path_to_item
        self._configuration = _configuration
        self._visited_composed_classes = _visited_composed_classes + (
            self.__class__, )

        for var_name, var_value in kwargs.items():
            if var_name not in self.attribute_map and \
                        self._configuration is not None and \
                        self._configuration.discard_unknown_keys and \
                        self.additional_properties_type is None:
                # discard variable.
                continue
            setattr(self, var_name, var_value)
            if var_name in self.read_only_vars:
                raise ApiAttributeError(
                    f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
                    f"class with read only attributes.")
    def __init__(self, *args, **kwargs):  # noqa: E501
        """Scenario - a model defined in OpenAPI

        Keyword Args:
            _check_type (bool): if True, values for parameters in openapi_types
                                will be type checked and a TypeError will be
                                raised if the wrong type is input.
                                Defaults to True
            _path_to_item (tuple/list): This is a list of keys or values to
                                drill down to the model in received_data
                                when deserializing a response
            _spec_property_naming (bool): True if the variable names in the input data
                                are serialized names, as specified in the OpenAPI document.
                                False if the variable names in the input data
                                are pythonic names, e.g. snake case (default)
            _configuration (Configuration): the instance to use when
                                deserializing a file_type parameter.
                                If passed, type conversion is attempted
                                If omitted no type conversion is done.
            _visited_composed_classes (tuple): This stores a tuple of
                                classes that we have traveled through so that
                                if we see that class again we will not use its
                                discriminator again.
                                When traveling through a discriminator, the
                                composed schema that is
                                is traveled through is added to this set.
                                For example if Animal has a discriminator
                                petType and we pass in "Dog", and the class Dog
                                allOf includes Animal, we move through Animal
                                once using the discriminator, and pick Dog.
                                Then in Dog, we will make an instance of the
                                Animal class but this time we won't travel
                                through its discriminator because we passed in
                                _visited_composed_classes = (Animal,)
            achieve_date (str): For goals, the date that they should be achieved by.. [optional]  # noqa: E501
            closing_balance (float): The closing balance of the scenario.. [optional]  # noqa: E501
            closing_balance_date (date): The date of the closing balance.. [optional]  # noqa: E501
            created_at (datetime): When the scenario was created.. [optional]  # noqa: E501
            current_balance (float): The current balance of the scenario.. [optional]  # noqa: E501
            current_balance_date (date): The date of the current balance.. [optional]  # noqa: E501
            description (str): A short description of what the scenario is modelling.. [optional]  # noqa: E501
            id (int): The unique identifier of the scenario.. [optional]  # noqa: E501
            interest_rate (float): The amount of interest to apply to the balance. Will apply periodically depending on what `interest_rate_repeat_id` is set to.. [optional]  # noqa: E501
            interest_rate_repeat_id (int): A number representing how often the interest should be applied. 0 is used for no interest, 2 is weekly, 3 is fortnightly, 4 is monthly, 5 is yearly and 7 for quarterly.. [optional]  # noqa: E501
            maximum_value (float): [optional]  # noqa: E501
            minimum_value (float): [optional]  # noqa: E501
            starting_balance (float): The starting balance of the scenario.. [optional]  # noqa: E501
            starting_balance_date (date): The date of the starting balance.. [optional]  # noqa: E501
            title (str): The title of the scenario.. [optional]  # noqa: E501
            type (str): The type of the scenario.. [optional]  # noqa: E501
            updated_at (datetime): When the scenario was last updated.. [optional]  # noqa: E501
        """

        _check_type = kwargs.pop('_check_type', True)
        _spec_property_naming = kwargs.pop('_spec_property_naming', False)
        _path_to_item = kwargs.pop('_path_to_item', ())
        _configuration = kwargs.pop('_configuration', None)
        _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())

        if args:
            raise ApiTypeError(
                "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
                    args,
                    self.__class__.__name__,
                ),
                path_to_item=_path_to_item,
                valid_classes=(self.__class__,),
            )

        self._data_store = {}
        self._check_type = _check_type
        self._spec_property_naming = _spec_property_naming
        self._path_to_item = _path_to_item
        self._configuration = _configuration
        self._visited_composed_classes = _visited_composed_classes + (self.__class__,)

        for var_name, var_value in kwargs.items():
            if var_name not in self.attribute_map and \
                        self._configuration is not None and \
                        self._configuration.discard_unknown_keys and \
                        self.additional_properties_type is None:
                # discard variable.
                continue
            setattr(self, var_name, var_value)
            if var_name in self.read_only_vars:
                raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
                                     f"class with read only attributes.")
Example #6
0
    def __init__(self, *args, **kwargs):  # noqa: E501
        """Form - a model defined in OpenAPI

        Keyword Args:
            _check_type (bool): if True, values for parameters in openapi_types
                                will be type checked and a TypeError will be
                                raised if the wrong type is input.
                                Defaults to True
            _path_to_item (tuple/list): This is a list of keys or values to
                                drill down to the model in received_data
                                when deserializing a response
            _spec_property_naming (bool): True if the variable names in the input data
                                are serialized names, as specified in the OpenAPI document.
                                False if the variable names in the input data
                                are pythonic names, e.g. snake case (default)
            _configuration (Configuration): the instance to use when
                                deserializing a file_type parameter.
                                If passed, type conversion is attempted
                                If omitted no type conversion is done.
            _visited_composed_classes (tuple): This stores a tuple of
                                classes that we have traveled through so that
                                if we see that class again we will not use its
                                discriminator again.
                                When traveling through a discriminator, the
                                composed schema that is
                                is traveled through is added to this set.
                                For example if Animal has a discriminator
                                petType and we pass in "Dog", and the class Dog
                                allOf includes Animal, we move through Animal
                                once using the discriminator, and pick Dog.
                                Then in Dog, we will make an instance of the
                                Animal class but this time we won't travel
                                through its discriminator because we passed in
                                _visited_composed_classes = (Animal,)
            approximate_expiry_at (datetime, none_type): Estimated time when the form will no longer accept submissions. [optional]  # noqa: E501
            encryption (str): Type of encryption employed by the form. [optional] if omitted the server will use the default value of "pki"  # noqa: E501
            public_key (str): RSA public key in PKCS#8 PEM format with which to encrypt values of encrypted fields with. [optional]  # noqa: E501
            rows ([FormRows]): Rows of form fields to display. [optional]  # noqa: E501
        """

        _check_type = kwargs.pop('_check_type', True)
        _spec_property_naming = kwargs.pop('_spec_property_naming', False)
        _path_to_item = kwargs.pop('_path_to_item', ())
        _configuration = kwargs.pop('_configuration', None)
        _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())

        if args:
            raise ApiTypeError(
                "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
                    args,
                    self.__class__.__name__,
                ),
                path_to_item=_path_to_item,
                valid_classes=(self.__class__,),
            )

        self._data_store = {}
        self._check_type = _check_type
        self._spec_property_naming = _spec_property_naming
        self._path_to_item = _path_to_item
        self._configuration = _configuration
        self._visited_composed_classes = _visited_composed_classes + (self.__class__,)

        for var_name, var_value in kwargs.items():
            if var_name not in self.attribute_map and \
                        self._configuration is not None and \
                        self._configuration.discard_unknown_keys and \
                        self.additional_properties_type is None:
                # discard variable.
                continue
            setattr(self, var_name, var_value)
            if var_name in self.read_only_vars:
                raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
                                     f"class with read only attributes.")
    def __init__(self, amount, date, payee, *args, **kwargs):  # noqa: E501
        """InlineObject7 - a model defined in OpenAPI

        Args:
            amount (float): The amount of the transaction. A positive amount is a credit, and a negative amount is a debit.
            date (str): The date when the transaction occurred.
            payee (str): The payee/merchant of the transaction.

        Keyword Args:
            _check_type (bool): if True, values for parameters in openapi_types
                                will be type checked and a TypeError will be
                                raised if the wrong type is input.
                                Defaults to True
            _path_to_item (tuple/list): This is a list of keys or values to
                                drill down to the model in received_data
                                when deserializing a response
            _spec_property_naming (bool): True if the variable names in the input data
                                are serialized names, as specified in the OpenAPI document.
                                False if the variable names in the input data
                                are pythonic names, e.g. snake case (default)
            _configuration (Configuration): the instance to use when
                                deserializing a file_type parameter.
                                If passed, type conversion is attempted
                                If omitted no type conversion is done.
            _visited_composed_classes (tuple): This stores a tuple of
                                classes that we have traveled through so that
                                if we see that class again we will not use its
                                discriminator again.
                                When traveling through a discriminator, the
                                composed schema that is
                                is traveled through is added to this set.
                                For example if Animal has a discriminator
                                petType and we pass in "Dog", and the class Dog
                                allOf includes Animal, we move through Animal
                                once using the discriminator, and pick Dog.
                                Then in Dog, we will make an instance of the
                                Animal class but this time we won't travel
                                through its discriminator because we passed in
                                _visited_composed_classes = (Animal,)
            category_id (int): The unique identifier of a category for the transaction.. [optional]  # noqa: E501
            cheque_number (str): A cheque number for the transaction.. [optional]  # noqa: E501
            is_transfer (bool): Whether the transaction should be indicated as a transfer.. [optional]  # noqa: E501
            labels (str): A set of comma-separated labels for the transaction.. [optional]  # noqa: E501
            memo (str): A memo for the transaction.. [optional]  # noqa: E501
            note (str): A note for the transaction.. [optional]  # noqa: E501
        """

        _check_type = kwargs.pop('_check_type', True)
        _spec_property_naming = kwargs.pop('_spec_property_naming', False)
        _path_to_item = kwargs.pop('_path_to_item', ())
        _configuration = kwargs.pop('_configuration', None)
        _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())

        if args:
            raise ApiTypeError(
                "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
                    args,
                    self.__class__.__name__,
                ),
                path_to_item=_path_to_item,
                valid_classes=(self.__class__,),
            )

        self._data_store = {}
        self._check_type = _check_type
        self._spec_property_naming = _spec_property_naming
        self._path_to_item = _path_to_item
        self._configuration = _configuration
        self._visited_composed_classes = _visited_composed_classes + (self.__class__,)

        self.amount = amount
        self.date = date
        self.payee = payee
        for var_name, var_value in kwargs.items():
            if var_name not in self.attribute_map and \
                        self._configuration is not None and \
                        self._configuration.discard_unknown_keys and \
                        self.additional_properties_type is None:
                # discard variable.
                continue
            setattr(self, var_name, var_value)
            if var_name in self.read_only_vars:
                raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
                                     f"class with read only attributes.")
Example #8
0
    def __init__(self, *args, **kwargs):  # noqa: E501
        """DataFeedsConnection - a model defined in OpenAPI

        Keyword Args:
            _check_type (bool): if True, values for parameters in openapi_types
                                will be type checked and a TypeError will be
                                raised if the wrong type is input.
                                Defaults to True
            _path_to_item (tuple/list): This is a list of keys or values to
                                drill down to the model in received_data
                                when deserializing a response
            _spec_property_naming (bool): True if the variable names in the input data
                                are serialized names, as specified in the OpenAPI document.
                                False if the variable names in the input data
                                are pythonic names, e.g. snake case (default)
            _configuration (Configuration): the instance to use when
                                deserializing a file_type parameter.
                                If passed, type conversion is attempted
                                If omitted no type conversion is done.
            _visited_composed_classes (tuple): This stores a tuple of
                                classes that we have traveled through so that
                                if we see that class again we will not use its
                                discriminator again.
                                When traveling through a discriminator, the
                                composed schema that is
                                is traveled through is added to this set.
                                For example if Animal has a discriminator
                                petType and we pass in "Dog", and the class Dog
                                allOf includes Animal, we move through Animal
                                once using the discriminator, and pick Dog.
                                Then in Dog, we will make an instance of the
                                Animal class but this time we won't travel
                                through its discriminator because we passed in
                                _visited_composed_classes = (Animal,)
            id (bool, date, datetime, dict, float, int, list, str, none_type): The unique identifier of the data connection. [optional]  # noqa: E501
            name (str, none_type): User-defined nickname for the data connection. [optional]  # noqa: E501
            status (bool, date, datetime, dict, float, int, list, str, none_type): Sync/auth status of the data connection. [optional]  # noqa: E501
            status_changed_at (datetime, none_type): When the data connection's status last changed. [optional]  # noqa: E501
            status_changed_at_hash (str, none_type): MD5 hash of the status_changed_at field. [optional]  # noqa: E501
            error_detail (str, none_type): ?. [optional]  # noqa: E501
            user_interaction_likely (bool): GUESSING: Whether syncing this data connection is likely to require user interaction. [optional]  # noqa: E501
            categorisation (bool): Whether automatic categorisation of transactions is enabled. [optional]  # noqa: E501
            automatic_syncing (bool): Whether the data connection will automatically sync when logged in to PocketSmith. [optional]  # noqa: E501
            automatic_syncing_overridden (bool): UNKNOWN. [optional]  # noqa: E501
            pending_transactions (bool): Whether to receive pending transactions from this data connection, if available. [optional]  # noqa: E501
            login_form (bool, date, datetime, dict, float, int, list, str, none_type): [optional]  # noqa: E501
            interactive_login_form (bool, date, datetime, dict, float, int, list, str, none_type): [optional]  # noqa: E501
            external_authorisation_url (str, none_type): UNKNOWN. [optional]  # noqa: E501
            external_syncing_url (str, none_type): UNKNOWN. [optional]  # noqa: E501
            last_successful_sync_at (datetime, none_type): When the data connection last synced successfully. [optional]  # noqa: E501
            next_sync_possible_at (datetime, none_type): When the data connection is next allowed to sync at. [optional]  # noqa: E501
            next_background_sync_at (datetime, none_type): When the data connection is scheduled to sync in the background next. [optional]  # noqa: E501
            accounts_updated_at (datetime, none_type): When the accounts tied to the data connection were last updated. [optional]  # noqa: E501
            soft_locked_until (datetime, none_type): UNKNOWN. [optional]  # noqa: E501
            user (DataFeedsConnectionUser): [optional]  # noqa: E501
            provider (Provider): [optional]  # noqa: E501
            created_at (datetime, none_type): When the data connection was created. [optional]  # noqa: E501
            updated_at (datetime, none_type): When the data connection was last updated. [optional]  # noqa: E501
        """

        _check_type = kwargs.pop('_check_type', True)
        _spec_property_naming = kwargs.pop('_spec_property_naming', False)
        _path_to_item = kwargs.pop('_path_to_item', ())
        _configuration = kwargs.pop('_configuration', None)
        _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())

        if args:
            raise ApiTypeError(
                "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments."
                % (
                    args,
                    self.__class__.__name__,
                ),
                path_to_item=_path_to_item,
                valid_classes=(self.__class__, ),
            )

        self._data_store = {}
        self._check_type = _check_type
        self._spec_property_naming = _spec_property_naming
        self._path_to_item = _path_to_item
        self._configuration = _configuration
        self._visited_composed_classes = _visited_composed_classes + (
            self.__class__, )

        for var_name, var_value in kwargs.items():
            if var_name not in self.attribute_map and \
                        self._configuration is not None and \
                        self._configuration.discard_unknown_keys and \
                        self.additional_properties_type is None:
                # discard variable.
                continue
            setattr(self, var_name, var_value)
            if var_name in self.read_only_vars:
                raise ApiAttributeError(
                    f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
                    f"class with read only attributes.")
    def __init__(self, *args, **kwargs):  # noqa: E501
        """FormFields - a model defined in OpenAPI

        Keyword Args:
            _check_type (bool): if True, values for parameters in openapi_types
                                will be type checked and a TypeError will be
                                raised if the wrong type is input.
                                Defaults to True
            _path_to_item (tuple/list): This is a list of keys or values to
                                drill down to the model in received_data
                                when deserializing a response
            _spec_property_naming (bool): True if the variable names in the input data
                                are serialized names, as specified in the OpenAPI document.
                                False if the variable names in the input data
                                are pythonic names, e.g. snake case (default)
            _configuration (Configuration): the instance to use when
                                deserializing a file_type parameter.
                                If passed, type conversion is attempted
                                If omitted no type conversion is done.
            _visited_composed_classes (tuple): This stores a tuple of
                                classes that we have traveled through so that
                                if we see that class again we will not use its
                                discriminator again.
                                When traveling through a discriminator, the
                                composed schema that is
                                is traveled through is added to this set.
                                For example if Animal has a discriminator
                                petType and we pass in "Dog", and the class Dog
                                allOf includes Animal, we move through Animal
                                once using the discriminator, and pick Dog.
                                Then in Dog, we will make an instance of the
                                Animal class but this time we won't travel
                                through its discriminator because we passed in
                                _visited_composed_classes = (Animal,)
            id (int): Index of the field within the whole form. [optional]  # noqa: E501
            name (str): Unique name of the form field. [optional]  # noqa: E501
            type (str): Display type of the form field. [optional]  # noqa: E501
            encrypted (bool): Whether the value of the form field should be encrypted with the form's `public_key`. [optional]  # noqa: E501
            value (str, none_type): Value of the field, possibly encrypted. [optional]  # noqa: E501
            image (str, none_type): Base64-encoded JPEG image to display by the field. [optional]  # noqa: E501
            placeholder (str, none_type): Placeholder text to display in the field. [optional]  # noqa: E501
            editable (bool): Whether the user is allowed to edit the value of the field. [optional]  # noqa: E501
            optional (bool): Whether the form can be submitted without providing a value to the field. [optional]  # noqa: E501
            max_length (int, none_type): Maximum number of characters allowed in the field value. [optional]  # noqa: E501
            prefix (str, none_type): Text to display just before the form field. [optional]  # noqa: E501
            suffix (str, none_type): Text to display just after the form field. [optional]  # noqa: E501
            options ([FormOptions]): For fields with type=option, the options to be displayed in the dropdown. [optional]  # noqa: E501
        """

        _check_type = kwargs.pop('_check_type', True)
        _spec_property_naming = kwargs.pop('_spec_property_naming', False)
        _path_to_item = kwargs.pop('_path_to_item', ())
        _configuration = kwargs.pop('_configuration', None)
        _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())

        if args:
            raise ApiTypeError(
                "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments."
                % (
                    args,
                    self.__class__.__name__,
                ),
                path_to_item=_path_to_item,
                valid_classes=(self.__class__, ),
            )

        self._data_store = {}
        self._check_type = _check_type
        self._spec_property_naming = _spec_property_naming
        self._path_to_item = _path_to_item
        self._configuration = _configuration
        self._visited_composed_classes = _visited_composed_classes + (
            self.__class__, )

        for var_name, var_value in kwargs.items():
            if var_name not in self.attribute_map and \
                        self._configuration is not None and \
                        self._configuration.discard_unknown_keys and \
                        self.additional_properties_type is None:
                # discard variable.
                continue
            setattr(self, var_name, var_value)
            if var_name in self.read_only_vars:
                raise ApiAttributeError(
                    f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
                    f"class with read only attributes.")