everyaction.services.Contributions

class everyaction.services.Contributions(ea: EAClient)

Represents the Contributions service.

Methods

adjust(contribution_id, /, **kwargs)

See POST /contributions/{contributionId}/adjustments.

attribution_types()

See GET /contributions/attributionTypes.

create(**kwargs)

See POST /contributions.

create_or_update_attribution(...)

See PUT /contributions/{contributionId}/attributions/{vanId}.

delete_attribution(contribution_id, van_id, /)

See DELETE /contributions/{contributionId}/attributions/{vanId}.

get(contribution_id, /)

See GET /contributions/{contributionId}.

get_(alternate_id_type, alternate_id, /)

See GET /contributions/{alternateIdType}:{alternateId}.

adjust(contribution_id: int, /, **kwargs: EAValue) AdjustmentResponse

See POST /contributions/{contributionId}/adjustments.

Parameters
  • contribution_id – The contributionId path parameter.

  • kwargs – The applicable query arguments and JSON data for the request. A Adjustment is appropriate to unpack here.

Returns

The resulting AdjustmentResponse object.

Keyword Arguments
attribution_types() List[str]

See GET /contributions/attributionTypes.

Returns

List of the attribution types.

create(**kwargs: EAValue) Contribution

See POST /contributions.

Parameters

kwargs – The applicable query arguments and JSON data for the request. A Contribution is appropriate to unpack here.

Returns

The created Contribution object.

Keyword Arguments
create_or_update_attribution(contribution_id: int, van_id: int, /, **kwargs: EAValue) None

See PUT /contributions/{contributionId}/attributions/{vanId}.

Parameters
  • contribution_id – The contributionId path parameter.

  • van_id – The vanId path parameter.

  • kwargs – The applicable query arguments and JSON data for the request. A Attribution is appropriate to unpack here.

Keyword Arguments
delete_attribution(contribution_id: int, van_id: int, /) None

See DELETE /contributions/{contributionId}/attributions/{vanId}.

Parameters
  • contribution_id – The contributionId path parameter.

  • van_id – The vanId path parameter.

get(contribution_id: int, /) Contribution

See GET /contributions/{contributionId}.

Parameters

contribution_id – The contributionId path parameter.

Returns

The resulting Contribution object.

get_(alternate_id_type: str, alternate_id: str, /) Contribution

See GET /contributions/{alternateIdType}:{alternateId}.

Parameters
  • alternate_id_type – The alternateIdType path parameter.

  • alternate_id – The alternateId path parameter.

Returns

The resulting Contribution object.