> 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-wosuru/kdobsunochikettingu-cbt/raifusaikuru/debaisukara.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="https://931441515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZoFRCpZeaDWwcHYhJY7B%2Fuploads%2F3Wjgph8Xp3cqmNFll8BN%2FPark%20from%20Device.svg?alt=media&amp;token=dfc41db4-603a-419a-a12f-904a8989e16f" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.payments.thalescloud.io/transit-digitization/ja/apple-transit-wosuru/kdobsunochikettingu-cbt/raifusaikuru/debaisukara.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
