> 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/nfc-wallet-sdk-ios/ja/implement-nfc-wallet/manage-digital-cards/manage-digital-card-lcm.md).

# デジタルカードのLCMを管理する

## 概要

デジタルウォレットアプリケーションでNFCウォレットSDKを使用して、デジタルカードのライフサイクル管理（LCM）を行います。

主なユースケース：

* デジタルウォレットアプリケーションからデジタルカードを削除する

{% hint style="info" %}
このセクションでは、デジタルウォレットアプリケーションから開始されるLCM操作について説明します。イシュアのバックエンドもTSPと直接デジタルカードのLCMを開始できます。
{% endhint %}

## SDK統合

使用する `DigitalCardManager.manage` 実行するには **LCM** デジタルカードに対する操作。

サポートされている操作：

* `.delete`
* `.suspend`
* `.resume`

{% hint style="info" %}
の変更は **NFCウォレットバックエンド** にすぐには表示されません **デジタルウォレットアプリケーション**.

デジタルカードの状態を同期するにはプッシュ通知を送信してください。参照： [プッシュ通知の処理](/nfc-wallet-sdk-ios/ja/get-started/configuration/4.-push-notifications/handle-push-notifications.md).
{% endhint %}

### カードを削除する

カードを削除すると、デジタルウォレットアプリケーションから恒久的に削除されます。

{% code title="カードを削除" %}

```swift
func deleteCard(card: DigitalCard) async {
  do {
      _ = try await DigitalCardManager().manage(digitalCardID: card.digitalCardID, action: .delete)
  } catch {
    // エラーハンドリング
  }
}
```

{% endcode %}

### カードを一時停止

一時停止されたカードは支払いに使用できません。

{% code title="カードを一時停止" %}

```swift
func suspendCard(card: DigitalCard) async {
    do {
        _ = try await DigitalCardManager().manage(digitalCardID: card.digitalCardID, action: .suspend)
    } catch {
        // エラーハンドリング
    }
}
```

{% endcode %}

### カードを再開

一時停止されたカードを再開すると状態がアクティブに戻り、支払いに使用できるようになります。

{% code title="カードを再開" %}

```swift
func resumeCard(card: DigitalCard) async {
  do {
      _ = try await DigitalCardManager().manage(digitalCardID: card.digitalCardID, action: .resume)
  } catch {
      // エラーハンドリング
  }
}
```

{% endcode %}


---

# 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:

```
GET https://docs.payments.thalescloud.io/nfc-wallet-sdk-ios/ja/implement-nfc-wallet/manage-digital-cards/manage-digital-card-lcm.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
