Prevalidation

webhook_api.v1.Prevalidation

type Prevalidation

webhook_api.v1.Prevalidation

FieldTypeDescription
idstringUUID ID
namestringName
trigger_typePrevalidationTriggerType enum
FieldNumberDescription
PREVALIDATION_TRIGGER_UNSPECIFIED0Type of trigger for the prevalidation.Prevalidation Trigger Unspecified.
PREVALIDATION_TRIGGER_CONSIDERING_CONTRACT1Type of trigger for the prevalidation.Prevalidation Trigger Considering Contract.
payloadoneof
FieldTypeDescription
considering_contract_prevalidationConsideringContractPrevalidation
createdstringCreated Timestamp.
{
  "id": "PREVALIDATION_ID1",
  "name": "PREVALIDATION_NAME1",
  "trigger_type": 1,
  "payload": {
    "considering_contract_prevalidation": {
      "condition": [
        {
          "target": 1,
          "operator": 2,
          "value": {
            "amount_value": {
              "currency_code": "USD",
              "amount": 100,
              "decimals": 2
            }
          }
        },
        {
          "target": 1,
          "operator": 4,
          "value": {
            "amount_value": {
              "currency_code": "USD",
              "amount": 1000,
              "decimals": 2
            }
          }
        }
      ],
      "outcome": 1,
      "logical_base": 1
    }
  },
  "created": "2006-01-02T15:04:05Z"
}