EveryAction API Objects

This module contains EveryAction objects, such as Person or CanvassResponse, which represent structured EveryAction data directly corresponding to objects in the EveryAction 8 VAN API docs.

class everyaction.objects.APIKeyProfile(**kwargs: EAValue)

Represents an API key profile.

Properties
class everyaction.objects.AVEVDataFileAction(**kwargs: EAValue)

Represents an AVEV Data File Action.

Properties
class everyaction.objects.ActivistCode(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents an Activist Code.

Properties
class everyaction.objects.ActivistCodeData(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents the data associated with responses to getting Activist Codes.

Properties
class everyaction.objects.ActivistCodeResponse(id: Optional[int] = None, **kwargs: EAValue)

Represents an Activist Code Response.

Properties
class everyaction.objects.AddRegistrantsResponse(**kwargs: EAValue)

Represents the data associated with a response to adding registrants to a Voter Registration Batch.

Properties
class everyaction.objects.Address(id: Optional[int] = None, **kwargs: EAValue)

Represents an Address.

Properties
class everyaction.objects.Adjustment(**kwargs: EAValue)

Represents the data associated with responses to adjusting a Contribution.

Properties
class everyaction.objects.AdjustmentResponse(**kwargs: EAValue)

Represents the data associated with a response to a Contribution adjustment.

Properties
class everyaction.objects.Attribution(**kwargs: EAValue)

Represents an Attribution object.

Properties
class everyaction.objects.AvailableValue(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents AvailableValues for a Custom Field.

Properties
class everyaction.objects.BallotRequestType(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Ballot Request Type.

Properties
class everyaction.objects.BallotReturnStatus(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Ballot Return Status.

Properties
class everyaction.objects.BallotType(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Ballot Type.

Properties
class everyaction.objects.BankAccount(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Contribution Bank Account object.

Properties
class everyaction.objects.BargainingUnit(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Bargaining Unit.

Properties
class everyaction.objects.BargainingUnitJobClass(id: Optional[int] = None, **kwargs: EAValue)

Represents an Employer Bargaining Unit Job Class.

Properties
class everyaction.objects.BulkImportAction(**kwargs: EAValue)

Represents a bulk import action.

Properties
class everyaction.objects.BulkImportField(name: Optional[str] = None, **kwargs: EAValue)

Represents a mapping type field.

Properties
class everyaction.objects.BulkImportJob(**kwargs: EAValue)

Represents a Bulk Import Job.

Properties
class everyaction.objects.BulkImportJobData(id: Optional[int] = None, **kwargs: EAValue)

Represents data for an existing Bulk Import Job.

Properties
class everyaction.objects.Campaign(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Campaign.

Properties
class everyaction.objects.CampaignType(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Campaign Type.

Properties
class everyaction.objects.CanvassContext(**kwargs: EAValue)

Represents a Canvass Context.

Properties
class everyaction.objects.CanvassFileRequest(id: Optional[int] = None, **kwargs: EAValue)

Represents a Canvass File Request.

Properties
class everyaction.objects.CanvassResponse(**kwargs: EAValue)

Represents a Canvass Response.

Properties
class everyaction.objects.Canvasser(id: Optional[int] = None, **kwargs: EAValue)

Represents a Canvasser.

Properties
class everyaction.objects.ChangeType(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a changeType.

Properties
class everyaction.objects.ChangedEntityBulkImportField(**kwargs: EAValue)

Represents a bulk import field in the context of changed entities.

Properties
class everyaction.objects.ChangedEntityExportJob(id: Optional[int] = None, **kwargs: EAValue)

Represents data for an existing ChangedEntityExportJob.

Properties
class everyaction.objects.ChangedEntityExportRequest(id: Optional[int] = None, **kwargs: EAValue)

Represents data associated with a request to create a Changed Entity Export Job.

Properties
class everyaction.objects.ChangedEntityField(name: Optional[str] = None, **kwargs: EAValue)

Represents a changed entity field.

Properties
parse(value: str) Union[bool, int, str, datetime]

Parse the raw string value of a field into a typed result. The below table gives the behavior of this function for each field type.

Field Type

Behavior

B

Parses “true” to True and “false” to False.

D

Parses into a naive datetime object.

M

Keeps the original string value.

N

Parses into an int.

T

Keeps the original string value.

Parameters

value – The value to parse.

Returns

The parsed value.

class everyaction.objects.Code(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Code object.

Properties
class everyaction.objects.CodeResult(id: Optional[int] = None, **kwargs: EAValue)

Represents the data associated with a response to a code batch request. See POST /codes/batch for an example.

Properties
class everyaction.objects.Column(name: Optional[str] = None, **kwargs: EAValue)

Represents a Column.

Properties
  • name

class everyaction.objects.Commitment(id: Optional[int] = None, **kwargs: EAValue)

Represents a Commitment.

Properties
class everyaction.objects.ConfirmationEmailData(**kwargs: EAValue)

Represents Confirmation Email Data.

Properties
class everyaction.objects.Constraints(**kwargs: EAValue)

Represents a description of the violated constraints for Error objects.

Properties
class everyaction.objects.ContactHistory(**kwargs: EAValue)

Represents a Contact History object.

Properties
class everyaction.objects.ContactType(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Contact Type.

Properties
class everyaction.objects.Content(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Content object.

Properties
class everyaction.objects.ContentType(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Content Type.

Properties
class everyaction.objects.Contribution(**kwargs: EAValue)

Represents a Contribution.

Properties
class everyaction.objects.Currency(**kwargs: EAValue)

Represents the type and the amount of a currency. Found, for instance, in the response of GET /people/{vanId}/membership.

Properties
class everyaction.objects.CustomField(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Custom Field.

Properties
class everyaction.objects.CustomFieldValue(customFieldId: Optional[int] = None, customFieldGroupId: Optional[int] = None, assignedValue: Optional[str] = None, **kwargs: EAValue)

Represents a CustomFieldValue.

Properties
class everyaction.objects.Department(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Department.

Properties
class everyaction.objects.Designation(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Designation.

Properties
class everyaction.objects.Disbursement(id: Optional[int] = None, **kwargs: EAValue)

Represents a Disbursement.

Properties
class everyaction.objects.DisclosureFieldValue(disclosureFieldId: Optional[int] = None, disclosureFieldValue: Optional[str] = None, designationId: Optional[int] = None, **kwargs: EAValue)

Represents a Disclosure Field Value.

Properties
class everyaction.objects.DistrictField(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a District Field.

Properties
class everyaction.objects.DistrictFieldValue(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a District Field Value.

Properties
class everyaction.objects.Email(email: Optional[str] = None, **kwargs: EAValue)

Represents an Email.

Properties
class everyaction.objects.EmailMessage(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents an email message.

Properties
class everyaction.objects.EmailMessageContent(**kwargs: EAValue)

Represents an email message content object.

Properties
class everyaction.objects.EmailMessageContentDistributions(**kwargs: EAValue)

Represents an Email Message Content Distributions object.

Properties
class everyaction.objects.Employer(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents an Employer.

Properties
class everyaction.objects.EmployerBargainingUnit(id: Optional[int] = None, **kwargs: EAValue)

Represents an Employer Bargaining Unit.

Properties
class everyaction.objects.EmployerPhone(id: Optional[int] = None, **kwargs: EAValue)

Represents a Phone for an employer.

Properties
class everyaction.objects.Error(**kwargs: EAValue)

Represents an Error object.

Properties
class everyaction.objects.Event(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents an Event.

Properties
class everyaction.objects.EventRole(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Role for an Event Type.

Properties
class everyaction.objects.EventShift(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Shift.

Properties
class everyaction.objects.EventType(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents an Event Type.

Properties
class everyaction.objects.ExportJob(id: Optional[int] = None, **kwargs: EAValue)

Represents an Export Job.

Properties
class everyaction.objects.ExportJobType(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents an Export Job Type.

Properties
class everyaction.objects.ExtendedSourceCode(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents an Extended Source Code.

Properties
class everyaction.objects.FieldValueMapping(**kwargs: EAValue)

Represents a fieldValueMapping.

Properties
class everyaction.objects.File(**kwargs: EAValue)

Represents a File object in EveryAction. Used in many contexts.

Properties
class everyaction.objects.FileLoadingJob(id: Optional[int] = None, **kwargs: EAValue)

Represents a File Loading Job.

Properties
class everyaction.objects.FinancialBatch(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Financial Batch.

Properties
class everyaction.objects.Folder(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a folder.

Properties
class everyaction.objects.GeoCoordinate(**kwargs: EAValue)

Represents a Geographic Coordinate.

Properties
  • lat

  • lon

class everyaction.objects.Identifier(**kwargs: EAValue)

Represents an Identifier.

Properties
class everyaction.objects.InputType(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents an Input Type.

Properties
class everyaction.objects.IsCellStatus(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents an Phone Is a Cell Status.

Properties
class everyaction.objects.JobActionType(**kwargs: EAValue)

Represents a Job Action Type.

Properties
class everyaction.objects.JobClass(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Job Class.

Properties
class everyaction.objects.JobFile(**kwargs: EAValue)

Represents a file object for a job.

Properties
class everyaction.objects.JobNotification(**kwargs: EAValue)

Represents a Notification for File Loading Jobs.

Properties
  • description (desc)

  • message

  • status

class everyaction.objects.KeyValuePair(**kwargs: EAValue)

Represents a key value pair for possible values of a Support Field.

Properties
  • key

  • value

class everyaction.objects.ListLoadCallbackData(**kwargs: EAValue)

Represents Callback Data for a Saved List Load action.

Properties
class everyaction.objects.Listener(**kwargs: EAValue)

Represents a Listener for a file-loading job.

Properties
  • type

  • value

class everyaction.objects.Location(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Location.

Properties
class everyaction.objects.MappingParent(**kwargs: EAValue)

Represents prerequisites for mapping a field as described here.

Properties
class everyaction.objects.MappingType(name: Optional[str] = None, **kwargs: EAValue)

Represents a bulk import mapping type.

Properties
class everyaction.objects.MappingTypeData(name: Optional[str] = None, **kwargs: EAValue)

Represents data for an existing bulk import mapping type.

Properties
class everyaction.objects.MappingValue(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a value in the context of bulk import jobs.

Properties
class everyaction.objects.MemberStatus(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Member Status.

Properties
class everyaction.objects.Membership(**kwargs: EAValue)

Contains membership information for a person.

Properties
class everyaction.objects.MembershipSourceCode(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Membership Source Code.

Properties
class everyaction.objects.MiniVANExport(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a MiniVAN Export.

Properties
class everyaction.objects.Note(id: Optional[int] = None, **kwargs: EAValue)

Represents a Note.

Properties
class everyaction.objects.NoteCategory(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Note Category.

Properties
class everyaction.objects.OnlineActionsForm(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents an Online Actions Form.

Properties
class everyaction.objects.Person(id: Optional[int] = None, **kwargs: EAValue)

Represents a Person.

Properties
add_suppression(suppression: Suppression) bool

Adds the given suppression to this person if it is not already present.

Parameters

suppression – The suppression to add.

Returns

True if the suppression was added, False if it was already present.

property do_not_call: Optional[bool]

Determine if this contact is marked as “Do Not Call”.

Returns

True is this contact is marked as “Do Not Call”, False is suppressions are present and do not contain “Do Not Call”, or None if no suppression information is available.

property do_not_email: Optional[bool]

Determine if this contact is marked as “Do Not Email”.

Returns

True is this contact is marked as “Do Not Email”, False is suppressions are present and do not contain “Do Not Email”, or None if no suppression information is available.

property do_not_mail: Optional[bool]

Determine if this contact is marked as “Do Not Mail”.

Returns

True is this contact is marked as “Do Not Mail”, False is suppressions are present and do not contain “Do Not Mail”, or None if no suppression information is available.

property do_not_walk: Optional[bool]

Determine if this contact is marked as “Do Not Mail”.

Returns

True is this contact is marked as “Do Not Walk”, False is suppressions are present and do not contain “Do Not Walk”, or None if no suppression information is available.

has_suppression(suppression: Suppression) Optional[bool]

Determines whether this contact has the given suppression.

Parameters

suppression – The suppression to check for.

Returns

True if this contact has the suppression, False if suppression information is available (when suppressions attribute is not None) and the suppression was not found, or None if no suppression information is available.

property preferred_address: Optional[Address]

Get this contact’s preferred mailing address as an Address object if it exists, or None if this contact has no addresses or if information on what address is preferred is unavailable.

Returns

The preferred mailing address object, or None if no preferred mailing address could be determined.

property preferred_email: Optional[str]

Get the address of this contact’s preferred email if it exists, or None if this contact has no email addresses or if information on what address is preferred is unavailable.

Returns

The preferred email address, or code:None if no preferred email address could be determined.

property preferred_phone: Optional[str]

Get the number of this contact’s preferred phone if it exists, or None if this contact has no phone numbers or if information on what number is preferred is unavailable.

Returns

The preferred phone number, or code:None if no preferred phone number could be determined.

remove_suppression(suppression: Suppression) bool

Removes the given suppression from this person if it is present.

Parameters

suppression – The suppression to remove.

Returns

True if the suppression was removed, False if the suppression was not found.

set_suppression(suppression: Suppression, value: bool) bool

Add or remove the given suppression.

Parameters
  • suppression – Suppression to add or remove.

  • valueTrue to add the suppression, False to remove it.

Returns

True if suppressions were changed, False otherwise.

class everyaction.objects.Phone(id_or_number: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Phone.

Properties
class everyaction.objects.PhonesFileAction(**kwargs: EAValue)

Represents a Phones File Action.

Properties
class everyaction.objects.Pledge(id: Optional[int] = None, **kwargs: EAValue)

Represents a Pledge object.

Properties
class everyaction.objects.PrintedList(name: Optional[str] = None, **kwargs: EAValue)

Represents a Printed List.

Properties
  • name

  • number

class everyaction.objects.ProgramType(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Program Type.

Properties
class everyaction.objects.Pronoun(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a pronoun.

Properties
class everyaction.objects.Registrant(**kwargs: EAValue)

Represents a Registrant for a Voter Registration Batch.

Properties
class everyaction.objects.RegistrationForm(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Registration Form.

Properties
class everyaction.objects.RelationalMapping(**kwargs: EAValue)

Represents a Relational Mapping.

Properties
class everyaction.objects.Relationship(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Relationship.

Properties
class everyaction.objects.ReportedEthnicity(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Reported Ethnicity.

Properties
class everyaction.objects.ReportedGender(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Reported Gender.

Properties
class everyaction.objects.ReportedLanguagePreference(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Reported Language Preference.

Properties
class everyaction.objects.ReportedRace(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Reported Race.

Properties
class everyaction.objects.ReportedSexualOrientation(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Reported Sexual Orientation.

Properties
class everyaction.objects.ResultCode(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Result Code.

Properties
class everyaction.objects.SavedList(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Saved List.

Properties
class everyaction.objects.SavedListData(id: Optional[int] = None, **kwargs: EAValue)

Represents Saved List Data for Saved List Load actions.

Properties
class everyaction.objects.SavedListLoadAction(**kwargs: EAValue)

Represents a Saved List Load action.

Properties
class everyaction.objects.ScheduleType(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Schedule Type.

Properties
class everyaction.objects.Score(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Score.

Properties
class everyaction.objects.ScoreApprovalCriteria(**kwargs: EAValue)

Represents Score Approval Criteria for Score Load actions.

Properties
class everyaction.objects.ScoreLoadAction(**kwargs: EAValue)

Represents a Score Load Action.

Properties
class everyaction.objects.ScoreUpdate(id: Optional[int] = None, **kwargs: EAValue)

Represents a Score Update.

Properties
class everyaction.objects.ScriptResponse(**kwargs: EAValue)

Represents a Script Response.

Properties
  • type

class everyaction.objects.ShiftType(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Shift Type.

Properties
class everyaction.objects.Signup(id: Optional[int] = None, **kwargs: EAValue)

Represents a Signup.

Properties
class everyaction.objects.Status(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Status in EveryAction. Used in multiple contexts.

Properties
class everyaction.objects.Story(id: Optional[int] = None, **kwargs: EAValue)

Represents a Story.

Properties
class everyaction.objects.StoryStatus(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a StoryStatus.

Properties
class everyaction.objects.Subgroup(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Subgroup for a Target.

Properties
class everyaction.objects.SupportField(**kwargs: EAValue)

Represents a Support Field for a Voter Registration Batch.

Properties
class everyaction.objects.SupportedEntity(name: Optional[str] = None, **kwargs: EAValue)

Represents a Supported Entity in the context of codes.

Properties
class everyaction.objects.SupporterGroup(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Supporter Group.

Properties
class everyaction.objects.Suppression(code_or_name: Optional[str] = None, **kwargs: EAValue)

Represents a Suppression.

Properties
property no_call: bool

Indicates whether this is a “Do Not Call” suppression.

Returns

True if this is a “Do Not Call” suppression, False otherwise.

property no_email: bool

Indicates whether this is a “Do Not Email” suppression.

Returns

True if this is a “Do Not Email” suppression, False otherwise.

property no_mail: bool

Indicates whether this is a “Do Not Mail” suppression.

Returns

True if this is a “Do Not Mail” suppression, False otherwise.

property no_walk: bool

Indicate whether this is a “Do Not Walk” suppression.

Returns

True if this is a “Do Not Walk” suppression, False otherwise.

class everyaction.objects.SurveyCanvassResponse(surveyQuestionId: Optional[int] = None, surveyResponseId: Optional[int] = None, **kwargs: EAValue)

Represents a Survey Response in the context of a canvass response.

Properties
class everyaction.objects.SurveyQuestion(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Survey Question.

Properties
class everyaction.objects.SurveyResponse(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Survey Response.

Properties
class everyaction.objects.Target(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Target.

Properties
class everyaction.objects.TargetExportJob(id: Optional[int] = None, **kwargs: EAValue)

Represents a Target Export Job.

Properties
class everyaction.objects.UpdateStatistics(**kwargs: EAValue)

Represents an Update Statistics object.

class everyaction.objects.User(id: Optional[int] = None, **kwargs: EAValue)

Represents a VAN User.

Properties
class everyaction.objects.ValueMappingData(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents data for an existing value mapping in the context of bulk import jobs.

Properties
class everyaction.objects.VolunteerActivityResponse(id: Optional[int] = None, **kwargs: EAValue)

Represents a Volunteer Activity.

Properties
  • action

  • type

class everyaction.objects.VoterRegistrationBatch(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Voter Registration Batch.

Properties
class everyaction.objects.WorkArea(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Work Area.

Properties
class everyaction.objects.Worksite(id_or_name: Optional[Union[int, str]] = None, **kwargs: EAValue)

Represents a Worksite.

Properties