- Updated all service files to replace hardcoded API paths with `${import.meta.env.VITE_API_PREFIX}` for better configurability.
- Ensured consistency across user, common, and gateway services by applying the new API prefix format.
- Removed unnecessary comments and maintained ESLint disable directives where applicable.
15 lines
435 B
TypeScript
15 lines
435 B
TypeScript
/* eslint-disable */
|
|
import request from "@workspace/ui/lib/request";
|
|
|
|
/** Get available payment methods GET /v1/public/payment/methods */
|
|
export async function getAvailablePaymentMethods(options?: {
|
|
[key: string]: any;
|
|
}) {
|
|
return request<
|
|
API.Response & { data?: API.GetAvailablePaymentMethodsResponse }
|
|
>(`${import.meta.env.VITE_API_PREFIX}/v1/public/payment/methods`, {
|
|
method: "GET",
|
|
...(options || {}),
|
|
});
|
|
}
|