everyaction.services.VoterRegistrationBatches¶
- class everyaction.services.VoterRegistrationBatches(ea: EAClient)¶
Represents the Voter Registration Batches service.
Methods
add_registrants(batch_id, /, *, data)create(**kwargs)forms(*[, limit])list(*[, limit])programs([limit])supported_fields(state, /, *[, limit])See GET /voterRegistrationBatches/states/{state}/supportedFields.
update_status(batch_id, /, **kwargs)- add_registrants(batch_id: int, /, *, data: List[Registrant]) List[AddRegistrantsResponse]¶
See POST /voterRegistrationBatches/{batchId}/people.
- Parameters
batch_id – The batchId path parameter.
data – List of the
Registrantobjects to add.
- Returns
The resulting
AddRegistrantsResponseobjects.
- create(**kwargs: EAValue) VoterRegistrationBatch¶
See POST /voterRegistrationBatches.
- Parameters
kwargs – The applicable query arguments and JSON data for the request. A
VoterRegistrationBatchis appropriate to unpack here.- Returns
The created
VoterRegistrationBatch.- Keyword Arguments
dateCreated (date_created, created)
description (desc)
name
personType (person_type)
stateCode (state_code, state)
status
voterRegistrationBatchId (voter_registration_batch_id, id)
- forms(*, limit: Optional[int] = None, **kwargs: EAValue) List[RegistrationForm]¶
See GET /voterRegistrationBatches/registrationForms.
- Parameters
limit – Maximum number of records to get for this request.
kwargs – The applicable query arguments and JSON data for the request.
- Returns
List of the resulting
RegistrationFormobjects.
- list(*, limit: Optional[int] = None, **kwargs: EAValue) List[VoterRegistrationBatch]¶
See GET /voterRegistrationBatches.
- Parameters
limit – Maximum number of records to get for this request.
kwargs – The applicable query arguments and JSON data for the request.
- Returns
List of the resulting
VoterRegistrationBatchobjects.- Keyword Arguments
createdAfter (created_after, after)
createdBefore (created_before, before)
onlyMyBatches (only_my_batches, only_mine)
orderby (order_by)
personType (person_type)
stateCode (state_code, state)
status
- programs(limit: Optional[int] = None, **kwargs: EAValue) List[ProgramType]¶
See GET /voterRegistrationBatches/programTypes.
- Parameters
limit – Maximum number of records to get for this request.
kwargs – The applicable query arguments and JSON data for the request.
- Returns
List of the resulting
ProgramTypeobjects.
- supported_fields(state: str, /, *, limit: Optional[int] = None, **kwargs: EAValue) List[SupportField]¶
See GET /voterRegistrationBatches/states/{state}/supportedFields.
- Parameters
limit – Maximum number of records to get for this request.
state – The state path parameter.
kwargs – The applicable query arguments and JSON data for the request.
- Returns
List of the resulting
SupportFieldobjects.
- update_status(batch_id: int, /, **kwargs: EAValue) None¶
See PATCH /voterRegistrationBatches/{batchId}.
- Parameters
batch_id – The batchId path parameter.
kwargs – The applicable query arguments and JSON data for the request.
- Keyword Arguments
status