Welcome to our new developer portal! Use the "Ask" button to chat with our AI Agent.
For the complete documentation index, see llms.txt. This page is also available as Markdown.

デバイスのバインドを解除する

イシュアは、eコマースのデジタルカードとデバイスの間に以前設定されたバインディングを削除できます。

この機能は以下を通じて利用できます DigitalCardService および unbindDevice API。

以下の例では、APIの使い方を示します。

val digitalCardID = "" // デジタルカードのデバイスバインディング一覧から取得
val bindingReference = "" // デバイスバインディング一覧の deviceIndex
val reason: DigitalCardService.UnbindReason? =
    DigitalCardService.UnbindReason.USER_DECISION // 任意。null の場合は ISSUER_DECISION が既定値

d1Task.digitalCardService().unbindDevice(
    digitalCardID,
    bindingReference,
    reason,
    object : D1Task.Callback<Void> {
        override fun onSuccess(data: Void?) {
            // 成功を処理します。
        }

        override fun onError(e: D1Exception) {
            // エラーを処理します。
        }
    }
)
String digitalCardID = ""; // デジタルカードのデバイスバインディング一覧から取得
String bindingReference = ""; // デバイスバインディング一覧の deviceIndex
DigitalCardService.UnbindReason reason =
        DigitalCardService.UnbindReason.USER_DECISION; // 任意。null の場合は ISSUER_DECISION が既定値

d1Task.digitalCardService().unbindDevice(
        digitalCardID,
        bindingReference,
        reason,
        new D1Task.Callback<Void>() {
            @Override
            public void onSuccess(Void data) {
                // 成功を処理します。
            }

            @Override
            public void onError(@NonNull D1Exception exception) {
                // エラーを処理します。
            }
        });

最終更新

役に立ちましたか?