-
Notifications
You must be signed in to change notification settings - Fork 572
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
stripe-dotnet v37.0 #2039
stripe-dotnet v37.0 #2039
Conversation
71cc9c8
to
77b81de
Compare
b0ded0d
to
e67a2a4
Compare
Rename many properties to have the name matching the API in the JSON
Hello, do you have any idea when the release is to be expected? Someone accidentally upgraded our api version which broke all our subscription process. |
@lomithrani This should be merged on Monday but those changes are unrelated to any API version and you should be able to use 36.* without issue |
Webhooks for checkout session comes back with Customer Rather than customerId, I thought this was related |
@lomithrani No that should be unrelated. |
This repo requires using GitHub's Code Review features in order to review a PR, so adding the approved label can no longer be used. Please go to the "Files changed" tab => "Review changes" to approve changes. This work is happening as part of the "Restricting Self Approvals" project. Please see this email for more details. |
Was all the renaming of properties really necessary? I value API stability. |
@stephen-imperfect Thanks for reaching out about this! Originally the stripe-dotnet was entirely written by hand. Whenever a new parameter, property, API method or entire resource was designed we would add it by hand to stripe-dotnet. As we did, we sometimes were inconsistent with how we named the property or the inner class(es) unfortunately. Doing this led to code examples in our docs not matching the library, or similar properties having different names across resources and not matching the name in the API itself. In 2020, we set to fix the library to be automatically code-generated from our official openapi spec. While doing this, we designed the code to ensure classes and properties matched the exact name of the API and mirrored JSON. This led to discovering a lot of those inconsistencies around names in the library. While we could have special-cased most of the differences, it would have added tech debt to the generation and it would have led to even more inconsistencies over time. For that reason, we decided that it was best to temporarily rename a lot of those properties or classes as breaking changes so that the library was as cleaned up as possible in 37.0.0 and 39.0.0. The library has now been automatically generated for months and is more consistent overall. It is still not perfect, as there are some subsets of changes we could not properly fix yet. For example we didn't re-design the Upcoming Invoice API's classes in big parts because we know the I hope this helps! |
@remi-stripe thanks so much for that, I truly appreciate the context! |
Integration branch for the next major version of stripe-dotnet
Quantity
to be nullable onCreditNoteLineItem
(FixQuantity
to be nullable onCreditNoteLineItem
#2036)ExchangeRate
resource and APIs #2038)PrimaryColor
inAccountBusinessProfileOptions
. UsePrimaryColor
inAccountSettingsBrandingOptions
instead.metadata
onCreditNoteLineOptions
as it was never supportedExchangeRate
resource and APIs (Remove deprecated support for theExchangeRate
resource and APIs #2038)ExchangeRate
APIs have been in a small private beta for a few years and have never been used in stripe-dotnet this year. We are considering this API mostly deprecated as we're working on re-building the feature. This will require large changes to the resource and APIs once we are ready to ship it.Product
orProductData
onPrice
#2043)Id
suffix such asPaymentMethodId
renamed toPaymentMethod
onCharge
IIN
is nowIin
onCard
AmountReceivd
is nowAmountReceived
onChargePaymentMethodDetailsBitcoin
BankCode
is nowBank
onChargePaymentMethodDetailsIdeal
.CustomerPurchaseIP
is nowCustomerPurchaseIp
onDisputeEvidence
andDisputeEvidenceOptions
OrderItems
is nowItems
onOrder
andOrderReturn
CardList
is nowCards
onRecipient
BankAddressLinePostalCode
is nowBankAddressPostalCode
onSourceAcssDebit
StripeError
have been renamed,ChargeId
isCharge
,ErrorType
isType
andParameter
isParam