KamiSama.Modules.ServicePlans.Abstractions
10.0.11.5
dotnet add package KamiSama.Modules.ServicePlans.Abstractions --version 10.0.11.5
NuGet\Install-Package KamiSama.Modules.ServicePlans.Abstractions -Version 10.0.11.5
<PackageReference Include="KamiSama.Modules.ServicePlans.Abstractions" Version="10.0.11.5" />
<PackageVersion Include="KamiSama.Modules.ServicePlans.Abstractions" Version="10.0.11.5" />
<PackageReference Include="KamiSama.Modules.ServicePlans.Abstractions" />
paket add KamiSama.Modules.ServicePlans.Abstractions --version 10.0.11.5
#r "nuget: KamiSama.Modules.ServicePlans.Abstractions, 10.0.11.5"
#:package KamiSama.Modules.ServicePlans.Abstractions@10.0.11.5
#addin nuget:?package=KamiSama.Modules.ServicePlans.Abstractions&version=10.0.11.5
#tool nuget:?package=KamiSama.Modules.ServicePlans.Abstractions&version=10.0.11.5
KamiSama.Modules.ServicePlans.Abstractions
Version: 10.0.0
Description
Provider-neutral ServicePlans feature contracts, requests, DTOs, search models, and subscription data types. Reference this package from callers or alternative implementations that should not depend on EF Core, ASP.NET Core module setup, or a database provider.
How to use
dotnet add package KamiSama.Modules.ServicePlans.Abstractions --version 10.0.0
Publication mismatch: 10.0.0 in the required install command is the current workspace/root documentation version. NuGet returned no published package or version for this package ID when reviewed.
Inject the plan, subscriber, and subscription feature contracts after a concrete implementation has registered them. This package contains contracts and data shapes only: it registers no services, persistence, offer-management API, controllers, endpoints, validation pipeline, authentication, or authorization. Alternative implementations define query, mutation, transaction, validation, and cancellation semantics.
Current Core treats request subscriber identifiers, subscription statuses, dates, allowances, and usage counters as trusted input. Protect mutation operations at the host boundary and validate ownership, status transitions, date ranges, non-negative counters, plan availability, and subscriber eligibility before invoking them.
Namespaces
- KamiSama.Modules.ServicePlans.DataTypes (4 types)
- KamiSama.Modules.ServicePlans.Features.Plans (13 types)
- KamiSama.Modules.ServicePlans.Features.Subscribers (9 types)
- KamiSama.Modules.ServicePlans.Features.Subscriptions (9 types)
Types
- KamiSama.Modules.ServicePlans.DataTypes.OfferType - Specifies how a subscription offer is presented to eligible users. Use it with the surrounding package APIs when composing application code.
- KamiSama.Modules.ServicePlans.DataTypes.PaymentMethodType - Specifies a payment method category accepted by a subscription offer. Use it with the surrounding package APIs when composing application code.
- KamiSama.Modules.ServicePlans.DataTypes.SubscriptionPeriodType - Specifies the period over which a subscription allowance is measured. Use it with the surrounding package APIs when composing application code.
- KamiSama.Modules.ServicePlans.DataTypes.SubscriptionStatus - Specifies the state of a subscription. Use it with the surrounding package APIs when composing application code.
- KamiSama.Modules.ServicePlans.Features.Plans.AddPlanRequest - Carries caller-supplied values for creating a plan. Use it with the surrounding package APIs when composing application code.
- KamiSama.Modules.ServicePlans.Features.Plans.IAddPlan - Defines plan creation. Core checks name duplication before immediately saving but performs no numeric, period/duration, or enabled-state domain validation.
- KamiSama.Modules.ServicePlans.Features.Plans.IDeletePlan - Defines deletion of a plan by
Guid. Core applies no deletion guard before saving the deletion. - KamiSama.Modules.ServicePlans.Features.Plans.IExistsPlanById - Defines an existence check for a plan
Guid. - KamiSama.Modules.ServicePlans.Features.Plans.IExistsPlanByName - Defines an existence check for a case-normalized exact plan name.
- KamiSama.Modules.ServicePlans.Features.Plans.IFindPlanById - Defines plan lookup by
Guid. Core throws the generic plan not-found HTTP exception when no row matches. - KamiSama.Modules.ServicePlans.Features.Plans.IFindPlanByName - Defines plan lookup by case-normalized exact name. Core's translated lowercase comparison depends on provider behavior.
- KamiSama.Modules.ServicePlans.Features.Plans.IListPlans - Defines paged plan listing. Core filters by exact case-normalized name, period, and enabled state, then recognizes
id,name,computationunits,ratelimit,periodtype,durationindays,isenabled,createdat, andupdatedatordering tokens. - KamiSama.Modules.ServicePlans.Features.Plans.IUpdatePlan - Defines replacement of a plan by
Guid. Core performs a separate duplicate-name read, updates timestamps, and saves immediately. - KamiSama.Modules.ServicePlans.Features.Plans.PlanDto - Returns a plan across the provider-neutral feature boundary. Use it with the surrounding package APIs when composing application code.
- KamiSama.Modules.ServicePlans.Features.Plans.PlanListItemDto - Returns the list-facing fields of a subscription plan. Use it with the surrounding package APIs when composing application code.
- KamiSama.Modules.ServicePlans.Features.Plans.PlanSearchModel - Carries paging, filtering, and ordering criteria for plan listing. Use it with the surrounding package APIs when composing application code.
- KamiSama.Modules.ServicePlans.Features.Plans.UpdatePlanRequest - Carries replacement values for an existing plan. Use it with the surrounding package APIs when composing application code.
- KamiSama.Modules.ServicePlans.Features.Subscribers.AddSubscriberRequest - Carries caller-supplied values for creating a subscriber. Use it with the surrounding package APIs when composing application code.
- KamiSama.Modules.ServicePlans.Features.Subscribers.IAddSubscriber - Defines subscriber creation for an externally managed user. Core performs a race-prone duplicate read and does not authenticate or validate ownership of the supplied external identifier.
- KamiSama.Modules.ServicePlans.Features.Subscribers.IDeleteSubscriber - Defines deletion of a subscriber by
Guid. Core applies no ownership or deletion guard. - KamiSama.Modules.ServicePlans.Features.Subscribers.IFindSubscriberById - Defines subscriber lookup by
Guid. - KamiSama.Modules.ServicePlans.Features.Subscribers.IListSubscribers - Defines paged subscriber listing by external user identifier and enabled state. Core recognizes
externaluserid,createdat, andupdatedatordering tokens. - KamiSama.Modules.ServicePlans.Features.Subscribers.IUpdateSubscriber - Defines replacement of a subscriber's external identifier and enabled state. Core does not authorize reassignment and saves immediately.
- KamiSama.Modules.ServicePlans.Features.Subscribers.SubscriberDto - Returns a subscriber linked to an externally managed user. Use it with the surrounding package APIs when composing application code.
- KamiSama.Modules.ServicePlans.Features.Subscribers.SubscriberSearchModel - Carries paging, filtering, and ordering criteria for subscriber listing. Use it with the surrounding package APIs when composing application code.
- KamiSama.Modules.ServicePlans.Features.Subscribers.UpdateSubscriberRequest - Carries replacement values for an existing subscriber. Use it with the surrounding package APIs when composing application code.
- KamiSama.Modules.ServicePlans.Features.Subscriptions.AddSubscriptionRequest - Carries caller-supplied relationship, lifecycle, and usage values for creating a subscription. Use it with the surrounding package APIs when composing application code.
- KamiSama.Modules.ServicePlans.Features.Subscriptions.IAddSubscription - Defines subscription creation for an existing subscriber and plan. Core accepts caller-selected lifecycle and usage values without eligibility, transition, range, or ownership validation.
- KamiSama.Modules.ServicePlans.Features.Subscriptions.IDeleteSubscription - Defines deletion of a subscription by
Guid. Core applies no ownership or lifecycle guard. - KamiSama.Modules.ServicePlans.Features.Subscriptions.IFindSubscriptionById - Defines subscription lookup by
Guidand returns related subscriber and plan identifiers from navigations. - KamiSama.Modules.ServicePlans.Features.Subscriptions.IListSubscriptions - Defines paged subscription listing by subscriber, plan, and status set. Core recognizes
status,startsat,endsat, andupdatedatordering tokens. - KamiSama.Modules.ServicePlans.Features.Subscriptions.IUpdateSubscription - Defines replacement of a subscription's subscriber, plan, lifecycle, and usage values. Core allows relationship reassignment and saves immediately without domain validation.
- KamiSama.Modules.ServicePlans.Features.Subscriptions.SubscriptionDto - Returns a subscriber's acquired plan, lifecycle state, and caller-managed usage counters. Use it with the surrounding package APIs when composing application code.
- KamiSama.Modules.ServicePlans.Features.Subscriptions.SubscriptionSearchModel - Carries paging, filtering, and ordering criteria for subscription listing. Use it with the surrounding package APIs when composing application code.
- KamiSama.Modules.ServicePlans.Features.Subscriptions.UpdateSubscriptionRequest - Carries replacement relationship, lifecycle, and usage values for an existing subscription. Use it with the surrounding package APIs when composing application code.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- KamiSama.Chassis.Commons.Abstractions (>= 10.0.11.5)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on KamiSama.Modules.ServicePlans.Abstractions:
| Package | Downloads |
|---|---|
|
KamiSama.ServicePlans.PolicyAction
ASP.NET Core registration and contracts for a ServicePlans-oriented handler over PolicyEngine contexts. The registered handler is currently unimplemented, and the package does not dispatch resolved actions or call ServicePlans features. |
|
|
KamiSama.Modules.ServicePlans.Core
ASP.NET Core ServicePlans implementation with EF Core plan, offer, subscriber, and subscription entities, scoped CRUD features, modular registration, and startup initialization. Install one provider, provision the schema separately, and enforce authorization and domain validation in the host. |
GitHub repositories
This package is not used by any popular GitHub repositories.