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

Rbsv1subscriptionsSubscriptionInformation expects Name and StartDate in CTOR or throws InvalidDataException #80

Open
bleepzter opened this issue Feb 27, 2024 · 0 comments

Comments

@bleepzter
Copy link

bleepzter commented Feb 27, 2024

The Rbsv1subscriptionsSubscriptionInformation ctor must have the "Name" and StartDate parameter passed in or it throws the exception. DTO's should allow empty ctors and not contain logic that creates side effects.

This is especially true when the DTO can accept any Name and any StartDate through property assignment and the ctor sets the Name and StartDate as optional?!?

[DataMember(Name = "name", EmitDefaultValue = false)]
public string Name { get; set; }

[DataMember(Name = "startDate", EmitDefaultValue = false)]
public string StartDate { get; set; }

CyberSource.Rest.Client.NetStandard v0.0.1.30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant