Skip to content

NXC-216: Add UpdateCustomer Method - #11

Merged
raymens merged 2 commits into
mainfrom
revamp_customer_methods
May 13, 2026
Merged

raymens merged 2 commits into
mainfrom
revamp_customer_methods

Conversation

@AsimaksiAnt

Copy link
Copy Markdown
Contributor

No description provided.

@AsimaksiAnt
AsimaksiAnt marked this pull request as ready for review May 12, 2026 11:17
Copilot AI review requested due to automatic review settings May 12, 2026 11:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds support in the SDK for updating an existing customer via the Nexus Label API.

Changes:

  • Introduces UpdateCustomer(customerCode, request) on ICustomerService and implements it in CustomerService using a PUT call.
  • Adds UpdateCustomerRequest (and RiskQualificationEnum) to the customer models.
  • Ensures BaseService uses the configured JsonSerializerOptions for POST/PUT JSON serialization; minor test code cleanup.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/Nexus.Crypto.SDK.Tests/NexusLabelApiSdkTests.cs Minor test cleanup (uses Dictionary<,> shorthand).
src/Nexus.Crypto.SDK/Services/ICustomerService.cs Adds UpdateCustomer to the customer service interface.
src/Nexus.Crypto.SDK/Services/CustomerService.cs Implements UpdateCustomer via PutAsync(...).
src/Nexus.Crypto.SDK/Services/BaseService.cs Passes _serializerOptions into PostAsJsonAsync / PutAsJsonAsync.
src/Nexus.Crypto.SDK/Models/Customer/CustomerModel.cs Adds UpdateCustomerRequest DTO and RiskQualificationEnum.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Nexus.Crypto.SDK/Services/CustomerService.cs
Comment thread src/Nexus.Crypto.SDK/Models/Customer/CustomerModel.cs Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@raymens
raymens merged commit 34f6049 into main May 13, 2026
5 checks passed
@raymens
raymens deleted the revamp_customer_methods branch May 13, 2026 12:34
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.

3 participants