CyberSource / cybersource-rest-client-dotnetstandard

.NET Standard client library for the CyberSource REST API
7 stars 20 forks source link

Rbsv1plansPlanInformation expects a "Name" in ctor or throws InvalidDataException #78

Open bleepzter opened 7 months ago

bleepzter commented 7 months ago

The Rbsv1plansPlanInformation ctor must have the "Name" 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 parameter as optional!?!

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

CyberSource.Rest.Client.NetStandard v0.0.1.30