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

Add Metadata and Object on Topup #1108

Merged
merged 1 commit into from
May 29, 2020
Merged

Add Metadata and Object on Topup #1108

merged 1 commit into from
May 29, 2020

Conversation

remi-stripe
Copy link
Contributor

Fix #1107

r? @cjavilla-stripe
cc @stripe/api-libraries

Copy link
Contributor

@cjavilla-stripe cjavilla-stripe left a comment

Choose a reason for hiding this comment

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

one q

@@ -50,8 +49,13 @@ type Topup struct {
FailureMessage string `json:"failure_message"`
ID string `json:"id"`
Livemode bool `json:"livemode"`
Metadata map[string]string `json:"metadata"`
Object string `json:"object"`
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this one is an enum with just one value topup for now, right? Do we want to add that one value as TopupObject or something?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We've never done this so no. It's really just a string and I've added it manually to resources when I catch it.

Copy link
Contributor

@cjavilla-stripe cjavilla-stripe left a comment

Choose a reason for hiding this comment

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

LGTM

@remi-stripe remi-stripe merged commit 99f68b0 into master May 29, 2020
@remi-stripe remi-stripe deleted the remi-topup-metadata branch May 29, 2020 15:53
nadaismail-stripe added a commit that referenced this pull request Oct 18, 2024
* init#

* Add Stripe Revenue Contract Id field

* fixes and pr comments

* added tests

* fixes

* PR Comments addressed

---------

Co-authored-by: Nada Ismail <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TopUp Object does not include "Metadata"
2 participants