everyaction.services.Contributions¶
- class everyaction.services.Contributions(ea: EAClient)¶
Represents the Contributions service.
Methods
adjust(contribution_id, /, **kwargs)create(**kwargs)See POST /contributions.
See PUT /contributions/{contributionId}/attributions/{vanId}.
delete_attribution(contribution_id, van_id, /)See DELETE /contributions/{contributionId}/attributions/{vanId}.
get(contribution_id, /)get_(alternate_id_type, alternate_id, /)- 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
Adjustmentis appropriate to unpack here.
- Returns
The resulting
AdjustmentResponseobject.- Keyword Arguments
adjustmentType (adjustment_type, type)
amount
datePosted (date_posted, posted)
- 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
Contributionis appropriate to unpack here.- Returns
The created
Contributionobject.- Keyword Arguments
acceptedOneTimeAmount (accepted_one_time_amount, accepted_one_time)
acceptedRecurringAmount (accepted_recurring_amount, accepted_recurring, recurring)
amount
bankAccount (bank_account, account)
checkDate (check_date)
checkNumber (check_number)
contact
contributionBankAccount(contribution_bank_account, contribution_account, account_obj)contributionId (contribution_id, contribution)
coverCostsAmount (cover_costs_amount, cover_costs)
dateReceived (date_received, received)
dateThanked (date_thanked, thanked)
depositDate (deposit_date)
depositNumber (deposit_number)
directMarketingCode (direct_marketing_code, marketing_code)
disclosureFieldValues(disclosure_field_values, field_values, disclosures, values, disclosure (singular))isUpsellAccepted (is_upsell_accepted, upsell_accepted)
isUpsellShown (is_upsell_shown, upsell_shown)
linkedJointFundraisingContributionId (linked_joint_fundraising_contribution_id, joint_fundraising_contribution, fundraising_contribution, fundraising)
linkedPartnershipContributionId (linked_partnership_contribution_id, partnership_contribution, partnership)
notes
onlineReferenceNumber (online_reference_number, reference_number, ref_number)
paymentType (payment_type)
processedAmount (processed_amount)
processedCurrency (processed_currency)
selectedOneTimeAmount (selected_one_time_amount, selected_one_time)
status
upsellType (upsell_type, upsell)
- 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
Attributionis appropriate to unpack here.
- Keyword Arguments
amountAttributed (amount_attributed, amount)
attributionType (attribution_type, type)
dateThanked (date_thanked, thanked)
notes
vanId (van_id, van)
- 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
Contributionobject.
- 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
Contributionobject.