diff --git a/Nexus.Sdk.Shared/Responses/CustomerResponses.cs b/Nexus.Sdk.Shared/Responses/CustomerResponses.cs index 4face06..842b32d 100644 --- a/Nexus.Sdk.Shared/Responses/CustomerResponses.cs +++ b/Nexus.Sdk.Shared/Responses/CustomerResponses.cs @@ -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 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 data, PrimaryInternalAccountResponse? primaryInternalAccount = null) { CustomerCode = customerCode; Name = name; @@ -31,6 +31,7 @@ public CustomerResponse(string customerCode, string? name, string? firstName, st ExternalCustomerCode = externalCustomerCode; IsReviewRecommended = isReviewRecommended; IsPEP = isPEP; + PrimaryInternalAccount = primaryInternalAccount; Data = data; } @@ -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 Data { get; set; } } +public class PrimaryInternalAccountResponse +{ + [JsonConstructor] + public PrimaryInternalAccountResponse(string accountCode) + { + AccountCode = accountCode; + } + + [JsonPropertyName("accountCode")] + public string AccountCode { get; set; } +} + public class DeleteCustomerResponse { [JsonConstructor]