Skip to content

Rbsv1plansOrderInformationAmountDetails DTO expects Currency and BIlling Amount in CTOR or throws InvalidDataException #79

@bleepzter

Description

@bleepzter

The Rbsv1plansOrderInformationAmountDetails ctor must have the "Currency" and "BillingAmount" 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 Currency and any BillingAmount through property assignment and the ctor sets the Currency and BillingAmount as optional?!?

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

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

CyberSource.Rest.Client.NetStandard v0.0.1.30

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions