{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/StoredDetails",
  "title": "StoredDetails",
  "properties": {
    "bank": {
      "description": "The stored bank account.",
      "$ref": "#/components/schemas/BankAccount"
    },
    "card": {
      "description": "The stored card information.",
      "$ref": "#/components/schemas/Card"
    },
    "emailAddress": {
      "description": "The email associated with stored payment details.",
      "type": "string"
    }
  },
  "type": "object"
}