-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Errors output is extended for the registration request (#23)
- Loading branch information
Showing
5 changed files
with
50 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
...Commerce.ProfileExperienceApiModule.Data/Models/RegisterOrganization/RegistrationError.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace VirtoCommerce.ProfileExperienceApiModule.Data.Models.RegisterOrganization | ||
{ | ||
public class RegistrationError | ||
{ | ||
public string Code { get; set; } | ||
public string Description { get; set; } | ||
public string Parameter { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...Commerce.ProfileExperienceApiModule.Data/Schemas/RegisterCompany/RegistrationErrorType.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using GraphQL.Types; | ||
using VirtoCommerce.ProfileExperienceApiModule.Data.Models.RegisterOrganization; | ||
|
||
namespace VirtoCommerce.ProfileExperienceApiModule.Data.Schemas.RegisterCompany | ||
{ | ||
public class RegistrationErrorType : ObjectGraphType<RegistrationError> | ||
{ | ||
public RegistrationErrorType() | ||
{ | ||
Field(x => x.Code, true); | ||
Field(x => x.Description, true); | ||
Field(x => x.Parameter, true); | ||
} | ||
} | ||
} |