Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
finicityapi / finicityapi / models / payroll_provider_refresh_response_data.py
Size: Mime:
# -*- coding: utf-8 -*-


class PayrollProviderRefreshResponseData(object):

    """Implementation of the 'Payroll Provider Refresh Response Data' model.

    TODO: type model description here.

    Attributes:
        payroll_data_retrieval_id (string): An id to identify the data
            retrieved from the payroll providers for the report.
        employer_names (list of string): An array of employer names that the
            consumer submitted after completing the Connect application.
        report_id (string): The `reportId` of the original VOIE Payroll
            report.

    """

    # Create a mapping from Model property names to API property names
    _names = {
        "payroll_data_retrieval_id":'payrollDataRetrievalId',
        "employer_names":'employerNames',
        "report_id":'reportId'
    }

    def __init__(self,
                 payroll_data_retrieval_id=None,
                 employer_names=None,
                 report_id=None,
                 additional_properties = {}):
        """Constructor for the PayrollProviderRefreshResponseData class"""

        # Initialize members of the class
        self.payroll_data_retrieval_id = payroll_data_retrieval_id
        self.employer_names = employer_names
        self.report_id = report_id

        # Add additional model properties to the instance
        self.additional_properties = additional_properties


    @classmethod
    def from_dictionary(cls,
                        dictionary):
        """Creates an instance of this model from a dictionary

        Args:
            dictionary (dictionary): A dictionary representation of the object as
            obtained from the deserialization of the server's response. The keys
            MUST match property names in the API description.

        Returns:
            object: An instance of this structure class.

        """
        if dictionary is None:
            return None

        # Extract variables from the dictionary
        payroll_data_retrieval_id = dictionary.get('payrollDataRetrievalId')
        employer_names = dictionary.get('employerNames')
        report_id = dictionary.get('reportId')

        # Clean out expected properties from dictionary
        for key in cls._names.values():
            if key in dictionary:
                del dictionary[key]

        # Return an object of this model
        return cls(payroll_data_retrieval_id,
                   employer_names,
                   report_id,
                   dictionary)