{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "id": "TransactionTransferObject",
  "title": "TransactionTransferObject",
  "properties": {
    "taxes": {
      "type": "string"
    },
    "approved_transaction_amount": {
      "type": "number"
    },
    "subtotal_iva": {
      "type": "number"
    },
    "subtotal_iva0": {
      "type": "number"
    },
    "document_number": {
      "type": "string",
      "pattern": "^[0-9]{6,}$"
    },
    "created": {
      "type": "string"
    },
    "response_code": {
      "type": "string"
    },
    "ticket_number": {
      "type": "string",
      "pattern": "^[0-9]{6,}$"
    },
    "kushki_transaction_type": {
      "type": "string"
    },
    "transaction_type": {
      "type": "string"
    },
    "approval_code": {
      "type": "string",
      "pattern": "^[0-9]+"
    },
    "transaction_status": {
      "type": "string"
    },
    "sync_mode": {
      "type": "string"
    },
    "metadata": {
      "type": "string"
    },
    "currency_code": {
      "type": "string"
    },
    "public_merchant_id": {
      "type": "string",
      "pattern": "^[0-9]{22,32}$"
    },
    "transaction_id": {
      "type": "number"
    },
    "payment_description": {
      "type": "string"
    },
    "bank_id": {
      "type": "string",
      "pattern": "^[0-9]{4,}$"
    },
    "user_type": {
      "type": "string",
      "enum": ["0", "1"]
    },
    "document_type": {
      "type": "string",
      "enum": ["CC", "NIT", "CE", "TI", "PP"]
    }
  },
  "required": [
    "taxes",
    "approved_transaction_amount",
    "subtotal_iva",
    "subtotal_iva0",
    "document_number",
    "date",
    "response_code",
    "kushki_transaction_type",
    "transaction_type",
    "approval_code",
    "transaction_status",
    "sync_mode",
    "currency_code",
    "public_merchant_id",
    "transaction_id",
    "payment_description",
    "bank_id",
    "user_type",
    "document_type"
  ],
  "type": "object"
}
