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 の場合はデフォルトでイシュア_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) {
                // エラーを処理します。
            }
        });

最終更新

役に立ちましたか?