/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */

import type { CancelablePromise } from "../core/CancelablePromise";
import { OpenAPI } from "../core/OpenAPI";
import { request as __request } from "../core/request";
export class UsersService {
  /**
   * @returns any
   * @throws ApiError
   */
  public static usersControllerGetProfile(): CancelablePromise<any> {
    return __request(OpenAPI, {
      method: "GET",
      url: "/v1/users/me",
    });
  }

  public static paymentGatewayControllerGetProfile(): CancelablePromise<any> {
    return __request(OpenAPI, {
      method: "GET",
      url: "/v1/payment-gateway/auth-code",
    });
  }

  /**
   * @param productSku
   * @returns any
   * @throws ApiError
   */
  public static usersControllerGetUserProductPurchases(
    productSku: string,
  ): CancelablePromise<any> {
    return __request(OpenAPI, {
      method: "GET",
      url: "/v1/users/purchases/{productSKU}",
      path: {
        productSKU: productSku,
      },
    });
  }
  /**
   * @returns any
   * @throws ApiError
   */
  public static usersControllerSaveConsent(): CancelablePromise<any> {
    return __request(OpenAPI, {
      method: "POST",
      url: "/v1/users/wallet-consent",
    });
  }
}
