mirror of https://github.com/Squidex/squidex.git
21 changed files with 278 additions and 58 deletions
@ -0,0 +1,14 @@ |
|||
// ==========================================================================
|
|||
// IChangePlanResult.cs
|
|||
// Squidex Headless CMS
|
|||
// ==========================================================================
|
|||
// Copyright (c) Squidex Group
|
|||
// All rights reserved.
|
|||
// ==========================================================================
|
|||
|
|||
namespace Squidex.Domain.Apps.Read.Apps.Services |
|||
{ |
|||
public interface IChangePlanResult |
|||
{ |
|||
} |
|||
} |
|||
@ -0,0 +1,18 @@ |
|||
// ==========================================================================
|
|||
// PlanChangeAsyncResult.cs
|
|||
// Squidex Headless CMS
|
|||
// ==========================================================================
|
|||
// Copyright (c) Squidex Group
|
|||
// All rights reserved.
|
|||
// ==========================================================================
|
|||
namespace Squidex.Domain.Apps.Read.Apps.Services |
|||
{ |
|||
public sealed class PlanChangeAsyncResult : IChangePlanResult |
|||
{ |
|||
public static readonly PlanChangeAsyncResult Instance = new PlanChangeAsyncResult(); |
|||
|
|||
private PlanChangeAsyncResult() |
|||
{ |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,19 @@ |
|||
// ==========================================================================
|
|||
// PlanChangedResult.cs
|
|||
// Squidex Headless CMS
|
|||
// ==========================================================================
|
|||
// Copyright (c) Squidex Group
|
|||
// All rights reserved.
|
|||
// ==========================================================================
|
|||
|
|||
namespace Squidex.Domain.Apps.Read.Apps.Services |
|||
{ |
|||
public sealed class PlanChangedResult : IChangePlanResult |
|||
{ |
|||
public static readonly PlanChangedResult Instance = new PlanChangedResult(); |
|||
|
|||
private PlanChangedResult() |
|||
{ |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,25 @@ |
|||
// ==========================================================================
|
|||
// RedirectToCheckoutResult.cs
|
|||
// Squidex Headless CMS
|
|||
// ==========================================================================
|
|||
// Copyright (c) Squidex Group
|
|||
// All rights reserved.
|
|||
// ==========================================================================
|
|||
|
|||
using System; |
|||
using Squidex.Infrastructure; |
|||
|
|||
namespace Squidex.Domain.Apps.Read.Apps.Services |
|||
{ |
|||
public sealed class RedirectToCheckoutResult : IChangePlanResult |
|||
{ |
|||
public Uri Url { get; } |
|||
|
|||
public RedirectToCheckoutResult(Uri url) |
|||
{ |
|||
Guard.NotNull(url, nameof(url)); |
|||
|
|||
Url = url; |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,18 @@ |
|||
// ==========================================================================
|
|||
// PlanChangedDto.cs
|
|||
// Squidex Headless CMS
|
|||
// ==========================================================================
|
|||
// Copyright (c) Squidex Group
|
|||
// All rights reserved.
|
|||
// ==========================================================================
|
|||
|
|||
namespace Squidex.Controllers.Api.Plans.Models |
|||
{ |
|||
public class PlanChangedDto |
|||
{ |
|||
/// <summary>
|
|||
/// Optional redirect uri.
|
|||
/// </summary>
|
|||
public string RedirectUri { get; set; } |
|||
} |
|||
} |
|||
Loading…
Reference in new issue