updateRegionsStep - Medusa Core Workflows Reference
This documentation provides a reference to the updateRegionsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step updates regions matching the specified filters.
Example#
Input#
UpdateRegionsStepInput
UpdateRegionsStepInputThe data to update regions.
UpdateRegionsStepInput
UpdateRegionsStepInputselector
FilterableRegionPropsThe filters to select the regions to update.
selector
FilterableRegionPropsupdate
UpdateRegionDTOThe data to update in the regions.
update
UpdateRegionDTOOutput#
RegionDTO[]
RegionDTO[]
RegionDTO[]
RegionDTO[]id
stringThe ID of the region.
id
stringname
stringThe name of the region.
name
stringcurrency_code
stringThe currency code of the region.
currency_code
stringautomatic_taxes
booleanSetting to indicate whether taxes need to be applied automatically
automatic_taxes
booleancountries
RegionCountryDTO[]The countries of the region.
countries
RegionCountryDTO[]payment_providers
PaymentProviderDTO[]Payment providers available in the region
payment_providers
PaymentProviderDTO[]created_at
stringThe date the region was created.
created_at
stringupdated_at
stringThe date the region was updated.
updated_at
stringmetadata
Record<string, any>OptionalHolds custom data in key-value pairs.
metadata
Record<string, any>OptionalWas this page helpful?