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

ECP-2415 -- add extra details to charge request #92

Merged
merged 4 commits into from
Jun 25, 2024

Conversation

nicmollel-ro
Copy link
Contributor

WHAT:

@@ -409,8 +409,15 @@ def charge(self, idempotency_key=None):
metadata = {
"object_id": self.object_id,
"content_type_id": self.content_type_id,
"member_uuid": str(self.user.uuid),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This lib is public and some other users might not have this field

Suggested change
"member_uuid": str(self.user.uuid),
"member_uuid": str(self.user.uuid) if hasattr(self.user, "uuid") else None,

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

made the updates

@@ -409,8 +409,15 @@ def charge(self, idempotency_key=None):
metadata = {
"object_id": self.object_id,
"content_type_id": self.content_type_id,
"member_uuid": str(self.user.uuid),
"origin": "roman_api",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move it to some settings.

remik
remik previously approved these changes Jun 21, 2024
Copy link
Contributor

@remik remik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, do you want to bump version and changelog in the same PR?

@nicmollel-ro
Copy link
Contributor Author

@remik i updated release details and version. if you can review

@remik
Copy link
Contributor

remik commented Jun 25, 2024

Looks good. Let me know if you have access with releasing it. If not I can add you to pypi or just release.

@nicmollel-ro nicmollel-ro merged commit 3ad5e3e into master Jun 25, 2024
3 checks passed
@nicmollel-ro nicmollel-ro deleted the nicmollel/ecp-2415-add-details-on-charges branch June 25, 2024 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants