customer
This commit is contained in:
@@ -193,6 +193,20 @@ namespace Webshop.Api.SwaggerFilters
|
||||
["defaultBillingAddressId"] = new OpenApiNull()
|
||||
};
|
||||
}
|
||||
else if (type == typeof(UpdateCustomerDto)) // Dieses DTO verarbeitet jetzt alles
|
||||
{
|
||||
schema.Example = new OpenApiObject
|
||||
{
|
||||
["firstName"] = new OpenApiString("Max"),
|
||||
["lastName"] = new OpenApiString("Mustermann"),
|
||||
["phoneNumber"] = new OpenApiString("+491701234567"),
|
||||
["email"] = new OpenApiString($"max.mustermann.neu.{uniqueId}@example.com"),
|
||||
["currentPassword"] = new OpenApiString("SecureCustomerPass123!"),
|
||||
["defaultShippingAddressId"] = new OpenApiNull(),
|
||||
["defaultBillingAddressId"] = new OpenApiNull()
|
||||
};
|
||||
}
|
||||
|
||||
// --- Rabatte ---
|
||||
else if (type == typeof(DiscountDto))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user