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

Create InvoiceStatuses and InvoiceBillingReasons classes #1731

Closed
adrianofo opened this issue Aug 6, 2019 · 2 comments
Closed

Create InvoiceStatuses and InvoiceBillingReasons classes #1731

adrianofo opened this issue Aug 6, 2019 · 2 comments

Comments

@adrianofo
Copy link

Hello,

I am implementing a solution that we are needing to get the Status and BillingReason properties of an Invoice.
It would be more elegant to use constants instead of strings.
Currently, they support only string values.
If possible, could you please create two static classes with constant values (for example):

Similar to the SubscriptionStatuses class.

These two classes will be used in the Invoice class.

Thanks,

Adriano

@remi-stripe
Copy link
Contributor

@adrianofo At the moment, we don't want to add enum classes in the library and we recommend that you rely on the strings directly. There's another issue discussing adding Enums in the future potentially but it's not something we're ready to build in the short term. You can follow along in #1673.

I'm going to close this out, I hope it's okay!

@adrianofo
Copy link
Author

Thank you!
I understand. No worries.

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

No branches or pull requests

2 participants