This repository has been archived by the owner on Oct 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CreateProduct.ts
77 lines (77 loc) · 1.97 KB
/
CreateProduct.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/**
* Auto-generated file. Do not change.
*/
import { WriteProductClassification } from './WriteProductClassification'
import { WriteProductProperty } from './WriteProductProperty'
import { WriteProductSupplier } from './WriteProductSupplier'
export type CreateProduct = {
/**
* Always required. Name of product
*
* JSON-schema: string
* @example "AC Adapter 12V"
*/
readonly name: string
/**
* Always required. SKU of product
*
* JSON-schema: string
* @example "WDVCDFD-RM00472"
*/
readonly sku: string
/**
* Description of product
*
* JSON-schema: string
* @example "The best 12V AC Adapter on the market"
*/
readonly description?: string
/**
* The category of the product
*
* JSON-schema: string
* @example "Cosmetics"
*/
readonly product_category: string
/**
* Nation in which the product is manufactured
*
* JSON-schema: string
* @example "China"
*/
readonly country_of_origin: string
/**
* Indicates whether Client has verified this Product.
*
* JSON-schema: boolean
* @example true
*/
readonly client_verified?: boolean
/**
* Array of product properties, custom key value pairs that describe the product
*
* JSON-schema: array
*/
readonly product_properties?: WriteProductProperty[]
/**
* Array of product classifications. If a value is specified, the array of product classifications will replace the existing set of product classifications.
*
* JSON-schema: array
*/
readonly classifications?: WriteProductClassification[]
/**
* Array of suppliers. If a value is specified, the array of suppliers will replace the existing set of suppliers.
*
* JSON-schema: array
*/
readonly suppliers?: WriteProductSupplier[]
}
export type LiftedCreateProduct = CreateProduct
/**
* Lifts an object return from a Flexport API responses into the SDK domain by augmenting them with higher level properties.
*/
export const liftCreateProduct = (
original: CreateProduct,
): LiftedCreateProduct => {
return original
}