Prevalidation

webhook_api.v1.Prevalidation

type Prevalidation

webhook_api.v1.Prevalidation

Field

Type

Description

id

string

UUID ID

name

string

Name

trigger_type

PrevalidationTriggerType

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.

payload

oneof

FieldTypeDescription
considering_contract_prevalidationConsideringContractPrevalidation

created

string

Created 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"
}