Inital PoC#1776
Closed
mbroshi-stripe wants to merge 2 commits intobetafrom
Closed
Conversation
69482b9 to
275d0d1
Compare
275d0d1 to
0af1742
Compare
prathmesh-stripe
approved these changes
Mar 24, 2026
| # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. | ||
| attr_reader :livemode | ||
|
|
||
| ENDPOINT_PATH_V1_ACCOUNT_UPDATE = "/v1/accounts/:account" |
Contributor
There was a problem hiding this comment.
Where and how will these be used?
Contributor
Author
There was a problem hiding this comment.
Like this:
batch = client.v2.core.batch_jobs.create(
endpoint: {
http_method: 'post',
path: Stripe::V2::Core::BatchJob::ENDPOINT_PATH_V1_CUSTOMER_UPDATE
},
skip_validation: true,
metadata: {}
)Let me know if you know of a better way to handle that!
Contributor
Author
There was a problem hiding this comment.
The reason it's important to use constants is that sadly the actual substring :account in /v1/accounts/:account matters. I want to nudge users as best I can to use these blessed strings.
Contributor
There was a problem hiding this comment.
This makes sense. I was confused because the generated test didn't use it.
Contributor
Author
There was a problem hiding this comment.
Yep, good point. I'll investigate if there's a way I can use those constants in generated examples.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why?
What?
See Also