Skip to content

Commit f1f737b

Browse files
authored
Merge pull request #524 from freee/feature/sm_update_schema_files_2025-12-10-02-15
Update schema files
2 parents ca59867 + 5ab377d commit f1f737b

File tree

1 file changed

+35
-21
lines changed

1 file changed

+35
-21
lines changed

sm/open-api-3/api-schema.yml

Lines changed: 35 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,8 +1222,6 @@ components:
12221222
value: PJ-123456
12231223
- definition_id: 01JPP4FD1CVQWCDSWA90VE1ZTN
12241224
value: 234
1225-
required:
1226-
- name
12271225
additionalProperties: false
12281226
CustomField:
12291227
type: object
@@ -1822,7 +1820,7 @@ components:
18221820
description: 金額セット
18231821
additionalProperties: false
18241822
DeliveryProgress:
1825-
description: '納品ステータス (未納品: todo, 一部納品済: doing, 納品済: done)'
1823+
description: '納品進捗 (未納品: todo, 一部納品済: doing, 納品済: done)'
18261824
enum:
18271825
- todo
18281826
- doing
@@ -2238,14 +2236,28 @@ components:
22382236
type: array
22392237
items:
22402238
$ref: '#/components/schemas/LineParams'
2239+
additionalProperties: false
2240+
SalesOrderMinimalResponse:
2241+
type: object
2242+
properties:
2243+
id:
2244+
type: string
2245+
description: 受注ID
2246+
example: 01JPP4FD1CVQWCDSWA90VE1ZTM
2247+
registered_at:
2248+
type: string
2249+
format: date-time
2250+
description: 登録日時
2251+
example: '2025-01-15T10:30:00+09:00'
2252+
last_updated_at:
2253+
type: string
2254+
format: date-time
2255+
description: 変更日時
2256+
example: '2025-01-16T14:45:00+09:00'
22412257
required:
2242-
- sales_order_date
2243-
- customer_id
2244-
- billing_creating_method_type
2245-
- billing_partner_id
2246-
- collecting_partner_id
2247-
- collection_method_type
2248-
- lines
2258+
- id
2259+
- registered_at
2260+
- last_updated_at
22492261
additionalProperties: false
22502262
AmountSetRate:
22512263
description: 税率を含む金額セット
@@ -2326,10 +2338,6 @@ components:
23262338
description: 通常明細詳細
23272339
type: object
23282340
properties:
2329-
id:
2330-
description: 明細ID
2331-
type: string
2332-
example: 01JPP4FD1CVQWCDSWA90VE1ZTN
23332341
line_no:
23342342
description: 明細行番号
23352343
type: integer
@@ -2467,7 +2475,6 @@ components:
24672475
type: boolean
24682476
example: false
24692477
required:
2470-
- id
24712478
- line_no
24722479
- line_type
24732480
- deal_line_type
@@ -2479,10 +2486,6 @@ components:
24792486
description: テキスト明細詳細
24802487
type: object
24812488
properties:
2482-
id:
2483-
description: 明細ID
2484-
type: string
2485-
example: 01JPP4FD1CVQWCDSWA90VE1ZTN
24862489
line_no:
24872490
description: 明細行番号
24882491
type: integer
@@ -2496,7 +2499,6 @@ components:
24962499
type: string
24972500
example: 備考:特急料金が含まれます
24982501
required:
2499-
- id
25002502
- line_no
25012503
- line_type
25022504
- text
@@ -2919,7 +2921,7 @@ components:
29192921
content:
29202922
application/json:
29212923
schema:
2922-
$ref: '#/components/schemas/SalesOrderDetail'
2924+
$ref: '#/components/schemas/SalesOrderMinimalResponse'
29232925
requestBodies:
29242926
BusinessCreateRequest:
29252927
description: 案件登録リクエスト
@@ -2929,6 +2931,9 @@ components:
29292931
allOf:
29302932
- $ref: '#/components/schemas/WithCompanyId'
29312933
- $ref: '#/components/schemas/BusinessRequestBase'
2934+
- type: object
2935+
required:
2936+
- name
29322937
SalesOrderCreateRequest:
29332938
description: 受注登録リクエスト
29342939
content:
@@ -2937,3 +2942,12 @@ components:
29372942
allOf:
29382943
- $ref: '#/components/schemas/WithCompanyId'
29392944
- $ref: '#/components/schemas/SalesOrderRequestBase'
2945+
- type: object
2946+
required:
2947+
- sales_order_date
2948+
- customer_id
2949+
- billing_creating_method_type
2950+
- billing_partner_id
2951+
- collecting_partner_id
2952+
- collection_method_type
2953+
- lines

0 commit comments

Comments
 (0)