fix(stock-location): Stock location address required (#3065)

What:
- Removes the requirement to have an address id while creating a new stock location.
- Add field company to Location Address

FIXES: CORE-1018

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
This commit is contained in:
Carlos R. L. Rodrigues
2023-01-23 12:47:04 +00:00
committed by GitHub
co-authored by Oliver Windall Juhl
parent f65f590a27
commit 2d525237b6
8 changed files with 51 additions and 32 deletions
@@ -92,6 +92,10 @@ class StockLocationAddress {
@IsString()
address_2?: string
@IsOptional()
@IsString()
company?: string
@IsOptional()
@IsString()
city?: string
@@ -92,6 +92,10 @@ class StockLocationAddress {
@IsString()
address_2?: string
@IsOptional()
@IsString()
company?: string
@IsOptional()
@IsString()
city?: string
@@ -23,6 +23,10 @@ import { StringComparisonOperator } from "./common"
* type: string
* description: Stock location address' complement
* example: apartment 4432
* company:
* type: string
* description: Stock location company' name
* example: Medusa
* city:
* type: string
* description: Stock location address' city
@@ -64,6 +68,7 @@ export type StockLocationAddressDTO = {
id?: string
address_1: string
address_2?: string | null
company?: string | null
country_code: string
city?: string | null
phone?: string | null