Skip to content

[DAS 336] - Update Acc Admin models and endpoints #166

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

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

Arrotech
Copy link
Contributor

What does this PR do?

Update Acc Admin models and endpoints

Branch Name?

DAS-336-update-acc-admin-models

@Arrotech Arrotech requested review from sajith-subramanian and nishchhaldagar and removed request for sajith-subramanian May 21, 2025 14:23
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the Account Admin models and endpoints to align with the latest API schema by renaming several response classes and modifying property types. Key changes include renaming model classes (e.g. from ProjectPatchResponse to ProjectPatch), removing nullable types where not required, and updating HTTP API method signatures to use the new model names.

Reviewed Changes

Copilot reviewed 26 out of 27 changed files in this pull request and generated no comments.

File Description
construction/accountadmin/source/Model/ProjectPatch.gen.cs Renamed class from ProjectPatchResponse to ProjectPatch and updated the Value property from nullable to non-nullable.
construction/accountadmin/source/Model/ProjectCompanies.gen.cs Renamed CompanyResponse to ProjectCompanies for clearer domain context.
construction/accountadmin/source/Model/BusinessUnitsPayload.gen.cs & related BusinessUnits files Corrected naming from BusinessUnitsRequestPyload to BusinessUnitsPayload and updated associated references.
construction/accountadmin/source/Http/*.gen.cs Updated endpoint return types and signatures to use the new model names across various API interfaces.
Files not reviewed (1)
  • Directory.Packages.props: Language not supported
Comments suppressed due to low confidence (3)

construction/accountadmin/source/Model/ProjectCompanies.gen.cs:37

  • [nitpick] The renaming from 'CompanyResponse' to 'ProjectCompanies' improves clarity by better reflecting the domain context. Ensure that documentation and consumers of this class are updated accordingly.
/// ProjectCompanies

construction/accountadmin/source/Http/BusinessUnitsApi.gen.cs:196

  • [nitpick] Renaming 'BusinessUnitsRequestPyload' to 'BusinessUnitsPayload' fixes a typographical error and improves consistency. Please verify that all related references and documentation reflect this change.
request.Content = Marshalling.Serialize(businessUnitsPayload); // http body (model) parameter

construction/accountadmin/source/Model/ProjectPatch.gen.cs:114

  • Changing the 'Value' property from a nullable decimal to a non-nullable type may lead to runtime exceptions if the data is missing. Please confirm that the API contract guarantees a valid value for this field.
public decimal Value { get; set; }

@@ -110,7 +111,7 @@ public ProjectPatchResponse()
///Monetary value of the project
/// </value>
[DataMember(Name="value", EmitDefaultValue=false)]
public decimal? Value { get; set; }
public decimal Value { get; set; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why change this to non optional?

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

Successfully merging this pull request may close these issues.

2 participants