Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add deprecated message in mustache model template #1064

Merged

Conversation

Kwok-he-Chu
Copy link
Contributor

Description
Modified mustache template to show deprecation message in the Obsolete-attribute within the .NET library.

Tested scenarios
Ran the adyen-sdk-generator on several model-classes to see whether the build is successful & whether the deprecation message is shown correctly.

Example:
Example w/ AuthenticationInfo.cs

/// <summary>
[DataMember(Name = "mobilePhone", EmitDefaultValue = false)]
[Obsolete("Deprecated since Adyen Checkout API v68 - Use `ThreeDS2RequestData.mobilePhone` instead.")]
public string MobilePhone { get; set; }

@Kwok-he-Chu Kwok-he-Chu requested a review from a team as a code owner October 7, 2024 14:06
Copy link

sonarqubecloud bot commented Oct 7, 2024

@DjoykeAbyah DjoykeAbyah merged commit a58a66d into main Oct 7, 2024
6 checks passed
@DjoykeAbyah DjoykeAbyah deleted the add-deprecation-message-in-mustache-template-for-models branch October 7, 2024 14:27
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants