Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The donor model should have "Company", "Avatar", "Addresses", and "Anonymous" as properties #6824

Open
1 task
glaubersilva opened this issue Jun 9, 2023 · 0 comments
Labels
keep-fresh "Keep Fresh" issues should not be marked as stale. type: enhancement An improvement to existing user-facing functionality

Comments

@glaubersilva
Copy link
Contributor

User Story

As a developer, when using the Donor model to update donor properties, I want to be able to update the following info:

  • Company
  • Avatar
  • Addresses
  • Anonymous

Details

Currently, to update this info is necessary to use workarounds based on legacy code like here:

https://github.com/impress-org/givewp/blob/develop/src/DonorDashboards/Profile.php#L47-L73

Additional Context

The ideal would be able to update this info using something like this:

$donor = Donor::find($donorId);
$donor->company = 'Company Name';
$donor->avatar = 'Avatar Data';
$donor->primaryAddress = 'Primary Address';
$donor->additionalAddresses = ['Additional Addresses 1', 'Additional Addresses 2'];
$donor->anonymous = false;
$donor->save();

Acceptance Criteria

  • The "Company", "Avatar", "Addresses", and "Anonymous" donor's info can be updated through the Donor model.
@glaubersilva glaubersilva added type: enhancement An improvement to existing user-facing functionality keep-fresh "Keep Fresh" issues should not be marked as stale. labels Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
keep-fresh "Keep Fresh" issues should not be marked as stale. type: enhancement An improvement to existing user-facing functionality
Projects
None yet
Development

No branches or pull requests

1 participant