Skip to content

WishlistRequest

// RB2 Core Connect
namespace CoreConnect.Commerce.Customer;
public record WishlistRequest
{
public WishlistRequest(Name? name = null, Description? description = null, string? anonymousId = null, List<WishlistItem>? lineItems = null)
{
Name = name;
Description = description;
AnonymousId = anonymousId;
LineItems = lineItems;
}
public Name? Name { get; set; }
public Description? Description { get; set; }
public string? AnonymousId { get; set; }
public List<WishlistItem>? LineItems { get; set; }
}
public record Description
{
public Description(string en)
{
En = en;
}
public string En { get; set; }
}
public record LineItem
{
public LineItem(string sku, int quantity, string productId, int? variantId)
{
Sku = sku;
Quantity = quantity;
ProductId = productId;
VariantId = variantId;
}
public string Sku { get; set; }
public int Quantity { get; set; }
public string ProductId { get; set; }
public int? VariantId { get; set; }
}
public record Name
{
public Name(string en)
{
En = en;
}
public string En { get; set; }
}
public record TextLineItem
{
public TextLineItem(Name name, Description description, int quantity)
{
Name = name;
Description = description;
Quantity = quantity;
}
public Name Name { get; set; }
public Description Description { get; set; }
public int Quantity { get; set; }
}