Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions Nexus.Sdk.Shared/Responses/CustomerResponses.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Nexus.Sdk.Shared.Responses;
public record CustomerResponse
{
[JsonConstructor]
public CustomerResponse(string customerCode, string? name, string? firstName, string? lastName, string? dateOfBirth, string? phone, string? companyName, string trustLevel, string currencyCode, string? address, string? city, string? zipCode, string? state, string countryCode, string? email, string status, string bankAccount, bool isBusiness, string? riskQualification, string? created, string? portFolioCode, string? externalCustomerCode, bool? isReviewRecommended, bool? isPEP, IDictionary<string, string> data)
public CustomerResponse(string customerCode, string? name, string? firstName, string? lastName, string? dateOfBirth, string? phone, string? companyName, string trustLevel, string currencyCode, string? address, string? city, string? zipCode, string? state, string countryCode, string? email, string status, string bankAccount, bool isBusiness, string? riskQualification, string? created, string? portFolioCode, string? externalCustomerCode, bool? isReviewRecommended, bool? isPEP, IDictionary<string, string> data, PrimaryInternalAccountResponse? primaryInternalAccount = null)
{
CustomerCode = customerCode;
Name = name;
Expand All @@ -31,6 +31,7 @@ public CustomerResponse(string customerCode, string? name, string? firstName, st
ExternalCustomerCode = externalCustomerCode;
IsReviewRecommended = isReviewRecommended;
IsPEP = isPEP;
PrimaryInternalAccount = primaryInternalAccount;
Data = data;
}

Expand Down Expand Up @@ -105,11 +106,26 @@ public CustomerResponse(string customerCode, string? name, string? firstName, st

[JsonPropertyName("isPEP")]
public bool? IsPEP { get; set; }


[JsonPropertyName("primaryInternalAccount")]
public PrimaryInternalAccountResponse? PrimaryInternalAccount { get; set; }

[JsonPropertyName("data")]
public IDictionary<string, string> Data { get; set; }
}

public class PrimaryInternalAccountResponse
{
[JsonConstructor]
public PrimaryInternalAccountResponse(string accountCode)
{
AccountCode = accountCode;
}

[JsonPropertyName("accountCode")]
public string AccountCode { get; set; }
}

public class DeleteCustomerResponse
{
[JsonConstructor]
Expand Down
Loading