価格設定
Pricingは1つ以上のPlansをグループ化するため、ユーザーはアプリケーションへのサインアップ時に異なる価格帯でプランを選択できます。

価格設定のプロパティ
| Property | Description |
|---|---|
| Organization | Owning organization. |
| Name | Pricing identifier. |
| CreatedTime | Creation time. |
| DisplayName | Display name. |
| Description | Optional description. |
| Plans | List of plans in this pricing. |
| IsEnabled | Whether the pricing is active. |
| Application | Application this pricing applies to. |
| Is invite only | Limits the pricing to invited users. Off by default. |
| Invited users | Users of the pricing's organization who may use an invite-only pricing. Shown only when Is invite only is on. |

招待制の価格設定
Is invite onlyをオンにして、一部のユーザーだけに価格設定を提供します。例えば、パートナー向けの割引プランなどです。その後、Casdoorは誰がその価格設定を使用できるかを決定します:
| Invited users | Who may use the pricing |
|---|---|
| Empty | Every user of the pricing's organization |
| One or more users | Only the listed users |
他の組織のユーザーや未ログインの訪問者は、招待制の価格設定を使用できません。使用できないすべてのユーザーに対して:
GET /api/get-pricingはエラーThe pricing: <pricing-name> is invite-only, only invited users can use itを返します。グローバル管理者と組織管理者は常に価格設定を読み取ることができます。- その価格設定のプランで注文を行うと失敗します。
- アクティブなサブスクリプションを持たない有料ユーザーがサインインすると、Casdoorはそのユーザーが使用できるアプリケーションの最初に有効な価格設定を提供し、他はスキップします。
pricingパラメータとplanパラメータを含むサインアップリンクは、新しいユーザーがまだ存在しないため、招待制の価格設定を受け入れません。
Is invite onlyが無効な価格設定は誰でも利用可能です。