Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
openapi: 3.1.0

Check warning on line 1 in openapi.yaml

View workflow job for this annotation

GitHub Actions / Run Spectral

oas3-api-servers OpenAPI "servers" must be present and non-empty array.

info:

Check warning on line 3 in openapi.yaml

View workflow job for this annotation

GitHub Actions / Run Spectral

info-contact Info object must have "contact" object. info
title: Checkin API
Expand All @@ -7,7 +7,7 @@

paths:
/customer:
get:

Check warning on line 10 in openapi.yaml

View workflow job for this annotation

GitHub Actions / Run Spectral

operation-description Operation "description" must be present and non-empty string. paths./customer.get
summary: Customer を取得
tags:
- Customer
Expand Down Expand Up @@ -35,7 +35,7 @@
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
post:

Check warning on line 38 in openapi.yaml

View workflow job for this annotation

GitHub Actions / Run Spectral

operation-description Operation "description" must be present and non-empty string. paths./customer.post
summary: Customer を作成
tags:
- Customer
Expand All @@ -54,7 +54,7 @@
$ref: '#/components/schemas/Customer'
'500':
$ref: '#/components/responses/InternalServerError'
patch:

Check warning on line 57 in openapi.yaml

View workflow job for this annotation

GitHub Actions / Run Spectral

operation-description Operation "description" must be present and non-empty string. paths./customer.patch
summary: Customer を更新
tags:
- Customer
Expand All @@ -74,7 +74,7 @@
'500':
$ref: '#/components/responses/InternalServerError'
/invoice:
post:

Check warning on line 77 in openapi.yaml

View workflow job for this annotation

GitHub Actions / Run Spectral

operation-description Operation "description" must be present and non-empty string. paths./invoice.post
summary: Invoice を作成
tags:
- Invoice
Expand All @@ -94,7 +94,7 @@
'500':
$ref: '#/components/responses/InternalServerError'
/webhook/invoice-paid:
post:

Check warning on line 97 in openapi.yaml

View workflow job for this annotation

GitHub Actions / Run Spectral

operation-description Operation "description" must be present and non-empty string. paths./webhook/invoice-paid.post
summary: Webhook の invoice.paid イベントを受け取る
tags:
- Webhook
Expand All @@ -119,7 +119,7 @@
'500':
$ref: '#/components/responses/InternalServerError'
/list/invoices:
get:

Check warning on line 122 in openapi.yaml

View workflow job for this annotation

GitHub Actions / Run Spectral

operation-description Operation "description" must be present and non-empty string. paths./list/invoices.get
summary: 請求書由来の入金一覧を取得
tags:
- List
Expand Down Expand Up @@ -162,7 +162,7 @@
$ref: '#/components/responses/InternalServerError'

/list/checkout-sessions:
get:

Check warning on line 165 in openapi.yaml

View workflow job for this annotation

GitHub Actions / Run Spectral

operation-description Operation "description" must be present and non-empty string. paths./list/checkout-sessions.get
summary: オンライン決済ページ由来の入金一覧を取得
tags:
- List
Expand Down Expand Up @@ -199,7 +199,7 @@
'500':
$ref: '#/components/responses/InternalServerError'
/admin:
get:

Check warning on line 202 in openapi.yaml

View workflow job for this annotation

GitHub Actions / Run Spectral

operation-description Operation "description" must be present and non-empty string. paths./admin.get
summary: 管理者の一覧を取得
tags:
- Admin
Expand Down Expand Up @@ -380,18 +380,22 @@
example: in_1MtHbELkdIwHu7ixl4OzzPMv
amount_due:
type: integer
format: int64
description: 最終的に支払う金額
example: 0
amount_paid:
type: integer
format: int64
description: 支払い済み金額
example: 0
amount_remaining:
type: integer
format: int64
description: 支払い残高
example: 0
created:
type: integer
format: int64
description: 作成日時 (Unix 時間)
example: 1680644467
customer:
Expand Down Expand Up @@ -433,14 +437,17 @@
example: cs_test_1234567890
amount_total:
type: integer
format: int64
description: 支払い金額
example: 2198
amount_subtotal:
type: integer
format: int64
description: 割引・税金を含まない支払い金額
example: 1998
created:
type: integer
format: int64
description: 作成日時 (Unix 時間)
example: 1679600215
customer:
Expand Down
85 changes: 43 additions & 42 deletions server/gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.