feat: region payment providers management workflows/api (#6864)
This commit is contained in:
@@ -465,7 +465,7 @@ export interface FilterablePaymentProviderProps
|
||||
/**
|
||||
* The IDs to filter the payment collection by.
|
||||
*/
|
||||
id?: string | string[]
|
||||
id?: string | string[] | OperatorMap<string | string[]>
|
||||
|
||||
/**
|
||||
* Filter by enabled status
|
||||
|
||||
@@ -76,7 +76,7 @@ export interface FilterableRegionProps
|
||||
/**
|
||||
* The IDs to filter the regions by.
|
||||
*/
|
||||
id?: string[] | string
|
||||
id?: string[] | string | OperatorMap<string | string[]>
|
||||
/**
|
||||
* Filter regions by their name.
|
||||
*/
|
||||
|
||||
@@ -4,4 +4,5 @@ export * as ProductWorkflow from "./product"
|
||||
export * as InventoryWorkflow from "./inventory"
|
||||
export * as PriceListWorkflow from "./price-list"
|
||||
export * as UserWorkflow from "./user"
|
||||
export * as RegionWorkflow from "./region"
|
||||
export * as InviteWorkflow from "./invite"
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
import { CreateRegionDTO, RegionDTO } from "../../region"
|
||||
|
||||
export interface CreateRegionsWorkflowInput {
|
||||
regions: (CreateRegionDTO & {
|
||||
payment_providers?: string[]
|
||||
})[]
|
||||
}
|
||||
|
||||
export type CreateRegionsWorkflowOutput = RegionDTO[]
|
||||
@@ -0,0 +1,2 @@
|
||||
export * from "./update-regions"
|
||||
export * from "./create-regions"
|
||||
@@ -0,0 +1,10 @@
|
||||
import { FilterableRegionProps, RegionDTO, UpdateRegionDTO } from "../../region"
|
||||
|
||||
export interface UpdateRegionsWorkflowInput {
|
||||
selector: FilterableRegionProps
|
||||
update: UpdateRegionDTO & {
|
||||
payment_providers?: string[]
|
||||
}
|
||||
}
|
||||
|
||||
export type UpdateRegionsWorkflowOutput = RegionDTO[]
|
||||
Reference in New Issue
Block a user