docs: add loyalty plugin routes to OAS (#12811)
* generated OAS * remove unused schemas * generated specs * add cloud badge for routes * add to loyalty plugin page * allow clicking the tooltip
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
type: object
|
||||
description: The transaction's details.
|
||||
x-schemaName: AdminTransaction
|
||||
required:
|
||||
- account
|
||||
- id
|
||||
- account_id
|
||||
- transaction_group_id
|
||||
- type
|
||||
- amount
|
||||
- metadata
|
||||
- created_at
|
||||
- updated_at
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
title: id
|
||||
description: The transaction's ID.
|
||||
account_id:
|
||||
type: string
|
||||
title: account_id
|
||||
description: The ID of the store credit account that the transaction belongs to.
|
||||
transaction_group_id:
|
||||
type: string
|
||||
title: transaction_group_id
|
||||
description: The ID of the transaction group that the transaction belongs to.
|
||||
type:
|
||||
type: string
|
||||
description: The transaction's type.
|
||||
enum:
|
||||
- credit
|
||||
- debit
|
||||
amount:
|
||||
type: number
|
||||
title: amount
|
||||
description: The transaction's amount.
|
||||
account:
|
||||
$ref: ./AdminStoreCreditAccount.yaml
|
||||
note:
|
||||
type: string
|
||||
title: note
|
||||
description: The transaction's note.
|
||||
reference:
|
||||
type: string
|
||||
title: reference
|
||||
description: The transaction's reference.
|
||||
reference_id:
|
||||
type: string
|
||||
title: reference_id
|
||||
description: The transaction's reference ID.
|
||||
metadata:
|
||||
type: object
|
||||
description: The transaction's metadata, can hold custom key-value pairs.
|
||||
created_at:
|
||||
type: string
|
||||
format: date-time
|
||||
title: created_at
|
||||
description: The date the transaction was created at.
|
||||
updated_at:
|
||||
type: string
|
||||
format: date-time
|
||||
title: updated_at
|
||||
description: The date the transaction was updated at.
|
||||
Reference in New Issue
Block a user