All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.accelbyte.sdk.api.gdpr.operations.data_deletion.PublicSubmitMyAccountDeletionRequest Maven / Gradle / Ivy

There is a newer version: 0.69.0
Show newest version
/*
 * Copyright (c) 2022 AccelByte Inc. All Rights Reserved
 * This is licensed software from AccelByte Inc, for limitations
 * and restrictions contact your company contract manager.
 *
 * Code generated. DO NOT EDIT.
 */

package net.accelbyte.sdk.api.gdpr.operations.data_deletion;

import java.io.*;
import java.util.*;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import net.accelbyte.sdk.api.gdpr.models.*;
import net.accelbyte.sdk.core.HttpResponseException;
import net.accelbyte.sdk.core.Operation;
import net.accelbyte.sdk.core.util.Helper;

/**
 * PublicSubmitMyAccountDeletionRequest
 *
 * 

Submit my account deletion requests. Requires valid user access token This is for in-game only * and require a valid platformId and platform token. If a full account is not logged by 3rd * platform, then please use * [/gdpr/public/namespaces/{namespace}/users/{userId}/deletions](#operations-Data_Deletion-PublicSubmitUserAccountDeletionRequest) * *

### Request Header: - **Content-Type: application/x-www-form-urlencoded** */ @Getter @Setter public class PublicSubmitMyAccountDeletionRequest extends Operation { /** generated field's value */ private String path = "/gdpr/public/users/me/deletions"; private String method = "POST"; private List consumes = Arrays.asList("application/x-www-form-urlencoded"); private List produces = Arrays.asList("application/json"); private String locationQuery = null; /** fields as input parameter */ private String platformId; private String platformToken; /** * @param platformId required * @param platformToken required */ @Builder // @deprecated 2022-08-29 - All args constructor may cause problems. Use builder instead. @Deprecated public PublicSubmitMyAccountDeletionRequest(String platformId, String platformToken) { this.platformId = platformId; this.platformToken = platformToken; securities.add("Bearer"); } @Override public Map getFormParams() { Map formDataParams = new HashMap<>(); if (this.platformId != null) { formDataParams.put("platformId", this.platformId); } if (this.platformToken != null) { formDataParams.put("platformToken", this.platformToken); } return formDataParams; } @Override public boolean isValid() { if (this.platformId == null) { return false; } if (this.platformToken == null) { return false; } return true; } public ModelsRequestDeleteResponse parseResponse( int code, String contentType, InputStream payload) throws HttpResponseException, IOException { if (code != 201) { final String json = Helper.convertInputStreamToString(payload); throw new HttpResponseException(code, json); } final String json = Helper.convertInputStreamToString(payload); return new ModelsRequestDeleteResponse().createFromJson(json); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy