feat(dashboard): Admin UI regions v2 (#6943)
This commit is contained in:
@@ -8,6 +8,7 @@ import { customers } from "./customers"
|
||||
import { invites } from "./invites"
|
||||
import { productTypes } from "./product-types"
|
||||
import { products } from "./products"
|
||||
import { payments } from "./payments"
|
||||
import { promotions } from "./promotions"
|
||||
import { regions } from "./regions"
|
||||
import { salesChannels } from "./sales-channels"
|
||||
@@ -26,6 +27,7 @@ export const client = {
|
||||
currencies: currencies,
|
||||
collections: collections,
|
||||
promotions: promotions,
|
||||
payments: payments,
|
||||
stores: stores,
|
||||
salesChannels: salesChannels,
|
||||
tags: tags,
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
import { getRequest } from "./common"
|
||||
import { PaymentProvidersListRes } from "../../types/api-responses"
|
||||
|
||||
async function listPaymentProviders(query?: Record<string, any>) {
|
||||
return getRequest<PaymentProvidersListRes, Record<string, any>>(
|
||||
`/admin/payments/payment-providers`,
|
||||
query
|
||||
)
|
||||
}
|
||||
|
||||
export const payments = {
|
||||
listPaymentProviders,
|
||||
}
|
||||
Reference in New Issue
Block a user