> For the complete documentation index, see [llms.txt](https://docs.payments.thalescloud.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.payments.thalescloud.io/transit-digitization/ja/apple-transit-no/kdobsunochikettingucbt/raifusaikuru/debaisukaranopku.md).

# デバイスからのパーク

デバイス発信のパーキングワークフローは、ユーザーがApple Walletからカードを削除したときにトリガーされます。この操作はデバイス上で直接実行されるため、デバイスがオンラインであることが保証されます。

このセクションでは、ワークフローの概要（詳細な手順、シーケンス図、および潜在的なエラーシナリオを含む）を提供します。

### ワークフロー <a href="#workflow" id="workflow"></a>

以下はデバイス発信のパーキングワークフローのハイレベルな手順です：

1. **カードの削除**：ユーザーはトランジットカードを選択し、「カードを削除」をタップして削除プロセスを開始します。
2. **カードのリンク解除**：Appleはユーザーがデバイスからトランジットカードを削除したいことをD1 Transitプラットフォームに通知します。これはCBTであるため、パークセッションが開始されます。
3. **カードのパーク**：Appleデバイスはappletインスタンスの内容を読み取るためにD1 Transitプラットフォームに接続し、Transit イシュアがバックエンド側でカードの状態を保存できるようにします。

### シーケンス図 <a href="#sequence-diagram" id="sequence-diagram"></a>

#### カードのリンク解除 <a href="#unlink-card" id="unlink-card"></a>

ユーザーが削除のためにトランジットカードを選択すると、Appleはアクション **unlink** を伴うmanagePass APIコールをD1 Transitプラットフォームに対して開始し、カードを削除する意図を示します。

#### カードのパーク <a href="#park-card" id="park-card"></a>

CBTエコシステムでは、appletインスタンスは直ちに削除されません。デバイスはappletの内容の読み取りや更新に使用できるコマンドを実行するためにD1 Transitプラットフォームに接続します。

D1 Transitは **getDigitalCardBundleCommands** をTransit イシュアに送信して、デバイス側で返却され実行されるべきコマンドを取得します。

パークセッションを完了するために複数回の往復が発生する場合があります。

パークセッションが完了すると、appletインスタンスはデバイスから削除されます。

<figure><img src="/files/a4db747c31a7510adcbd97adadb25f3f087e15b5" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.payments.thalescloud.io/transit-digitization/ja/apple-transit-no/kdobsunochikettingucbt/raifusaikuru/debaisukaranopku.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
