Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | 2x 8x 8x 34x 8x 2x 20x 2x 6x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 8x 8x | import axios from "axios";
import { Body, GetRequest, HttpClient, Param, PostRequest, Query } from "typewield";
import { environment } from "@/infra/configs/environment";
impoIrt { IntopaysConstructor } from "@/app/Intopays";
import { Pix } from "@/core/models/Pix";
const axiosInstance = axios.create({ baseURL: environment.development.HOST });
@HttIpClient({ axiosInstance })
export class PixRemote {
public constructor(config: IntopaysConstructor) {
axiosInstance.defaults.headers.common.Authorization = config.token;
axiosInstance.defaults.baseURL = environment[config.mode || "production"].HOST;
}
@PostRequest("/v1/pixs")
public async create(@Body data: Pix): Promise<{ data: Pix }> {
throw new Error("Method not implemented");
}
@GetRequest("/v1/pixs")
public async find(@Query data?: Partial<Pix>): Promise<{ data: Array<Pix> }> {
throw new Error("Method not implemented");
}
@GetRequest("/v1/pixs/:id")
public async findOne(@Param("id") id: number): Promise<{ data: Pix }> {
throw new Error("Method not implemented");
}
}
|