chore(oas): [19/n] improve oas schemas (#9317)
- Improve OAS schemas [19/n] - docs-generator: combine `Date | string` type to just `Date`.
This commit is contained in:
@@ -1,8 +1,105 @@
|
||||
/**
|
||||
* @schema OrderChangeAction
|
||||
* type: object
|
||||
* description: The action's actions.
|
||||
* description: The order change action's details.
|
||||
* x-schemaName: OrderChangeAction
|
||||
* required:
|
||||
* - id
|
||||
* - order_change_id
|
||||
* - order_change
|
||||
* - order_id
|
||||
* - return_id
|
||||
* - claim_id
|
||||
* - exchange_id
|
||||
* - order
|
||||
* - reference
|
||||
* - reference_id
|
||||
* - action
|
||||
* - details
|
||||
* - internal_note
|
||||
* - created_at
|
||||
* - updated_at
|
||||
* properties:
|
||||
* id:
|
||||
* type: string
|
||||
* title: id
|
||||
* description: The action's ID.
|
||||
* order_change_id:
|
||||
* type: string
|
||||
* title: order_change_id
|
||||
* description: The ID of the order change that the action belongs to.
|
||||
* order_change:
|
||||
* $ref: "#/components/schemas/OrderChange"
|
||||
* order_id:
|
||||
* type: string
|
||||
* title: order_id
|
||||
* description: The ID of the order the associated change is for.
|
||||
* return_id:
|
||||
* type: string
|
||||
* title: return_id
|
||||
* description: The ID of the associated return.
|
||||
* claim_id:
|
||||
* type: string
|
||||
* title: claim_id
|
||||
* description: The ID of the associated claim.
|
||||
* exchange_id:
|
||||
* type: string
|
||||
* title: exchange_id
|
||||
* description: The ID of the associated exchange.
|
||||
* order:
|
||||
* $ref: "#/components/schemas/Order"
|
||||
* reference:
|
||||
* type: string
|
||||
* title: reference
|
||||
* description: The name of the table this action applies on.
|
||||
* enum:
|
||||
* - claim
|
||||
* - exchange
|
||||
* - return
|
||||
* - order_shipping_method
|
||||
* reference_id:
|
||||
* type: string
|
||||
* title: reference_id
|
||||
* description: The ID of the record in the referenced table.
|
||||
* action:
|
||||
* type: string
|
||||
* description: The applied action.
|
||||
* enum:
|
||||
* - CANCEL_RETURN_ITEM
|
||||
* - FULFILL_ITEM
|
||||
* - DELIVER_ITEM
|
||||
* - CANCEL_ITEM_FULFILLMENT
|
||||
* - ITEM_ADD
|
||||
* - ITEM_REMOVE
|
||||
* - ITEM_UPDATE
|
||||
* - RECEIVE_DAMAGED_RETURN_ITEM
|
||||
* - RECEIVE_RETURN_ITEM
|
||||
* - RETURN_ITEM
|
||||
* - SHIPPING_ADD
|
||||
* - SHIPPING_REMOVE
|
||||
* - SHIP_ITEM
|
||||
* - WRITE_OFF_ITEM
|
||||
* - REINSTATE_ITEM
|
||||
* details:
|
||||
* type: object
|
||||
* description: The action's details.
|
||||
* example:
|
||||
* reference_id: 123
|
||||
* quantity: 1
|
||||
* internal_note:
|
||||
* type: string
|
||||
* title: internal_note
|
||||
* description: A note that's viewed only by admin users.
|
||||
* created_at:
|
||||
* type: string
|
||||
* format: date-time
|
||||
* title: created_at
|
||||
* description: The date the action was created.
|
||||
* updated_at:
|
||||
* type: string
|
||||
* format: date-time
|
||||
* title: updated_at
|
||||
* description: The date the action was updated.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user