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

dev.crashteam.openapi.keanalytics.api.SubscriptionApi Maven / Gradle / Ivy

Go to download

Generates jar artifact containing compiled openapi classes based on generated openapi yaml files

The newest version!
/**
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech) (6.6.0).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
package dev.crashteam.openapi.keanalytics.api;

import dev.crashteam.openapi.keanalytics.model.Error;
import dev.crashteam.openapi.keanalytics.model.GiveawayUserDemoRequest;
import dev.crashteam.openapi.keanalytics.model.ProductSkuHistory400Response;
import java.util.UUID;
import io.swagger.v3.oas.annotations.ExternalDocumentation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import io.swagger.v3.oas.annotations.media.ArraySchema;
import io.swagger.v3.oas.annotations.media.Content;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.server.ServerWebExchange;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import org.springframework.http.codec.multipart.Part;

import javax.validation.Valid;
import javax.validation.constraints.*;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Generated;

@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-03-26T08:59:12.399131532Z[Etc/UTC]")
@Validated
@Tag(name = "subscription", description = "the subscription API")
public interface SubscriptionApi {

    /**
     * POST /subscription/giveaway : Выдать демо подписку
     * Выдать демо тариф пользователю (только для администраторов) 
     *
     * @param xRequestID Уникальный идентификатор запроса к системе (required)
     * @param giveawayUserDemoRequest  (optional)
     * @return Выдан демо тариф (status code 200)
     *         or Переданы ошибочные данные (status code 400)
     *         or Несанкционированный доступ, использовались неверные учетные данные. (status code 401)
     *         or Access forbidden. (status code 403)
     */
    @Operation(
        operationId = "giveawayDemoSubscription",
        summary = "Выдать демо подписку",
        description = "Выдать демо тариф пользователю (только для администраторов) ",
        tags = { "subscription" },
        responses = {
            @ApiResponse(responseCode = "200", description = "Выдан демо тариф"),
            @ApiResponse(responseCode = "400", description = "Переданы ошибочные данные", content = {
                @Content(mediaType = "application/json", schema = @Schema(implementation = ProductSkuHistory400Response.class))
            }),
            @ApiResponse(responseCode = "401", description = "Несанкционированный доступ, использовались неверные учетные данные.", content = {
                @Content(mediaType = "application/json", schema = @Schema(implementation = Error.class))
            }),
            @ApiResponse(responseCode = "403", description = "Access forbidden.", content = {
                @Content(mediaType = "application/json", schema = @Schema(implementation = Error.class))
            })
        },
        security = {
            @SecurityRequirement(name = "bearer")
        }
    )
    @RequestMapping(
        method = RequestMethod.POST,
        value = "/subscription/giveaway",
        produces = { "application/json" },
        consumes = { "application/json" }
    )
    default Mono> giveawayDemoSubscription(
        @NotNull @Parameter(name = "X-Request-ID", description = "Уникальный идентификатор запроса к системе", required = true, in = ParameterIn.HEADER) @RequestHeader(value = "X-Request-ID", required = true) UUID xRequestID,
        @Parameter(name = "GiveawayUserDemoRequest", description = "") @Valid @RequestBody(required = false) Mono giveawayUserDemoRequest,
        @Parameter(hidden = true) final ServerWebExchange exchange
    ) {
        Mono result = Mono.empty();
        exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED);
        return result.then(giveawayUserDemoRequest).then(Mono.empty());

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy