ConsideringContractPrevalidation

webhook_api.v1.ConsideringContractPrevalidation

type ConsideringContractPrevalidation

webhook_api.v1.ConsideringContractPrevalidation

FieldTypeDescription
conditionsValidationCondition repeatedConditions to be evaluated
outcomeValidationOutcome enum
FieldNumberDescription
CONSIDERING_CONTRACT_OUTCOME_UNSPECIFIED0Outcome of the prevalidation if the condition is trueConsidering Contract Unspecified.
CONSIDERING_CONTRACT_OUTCOME_ACCEPTED1Outcome of the prevalidation if the condition is trueConsidering Contract Accepted.
CONSIDERING_CONTRACT_OUTCOME_REJECTED2Outcome of the prevalidation if the condition is trueConsidering Contract Rejected.
logical_baseLogicalOperator enum
FieldNumberDescription
LOGICAL_OPERATOR_UNSPECIFIED0Logical Operator.Logical Operator Unspecified.
LOGICAL_OPERATOR_AND1Logical Operator.Logical Operator AND.
LOGICAL_OPERATOR_OR2Logical Operator.Logical Operator OR.
{
  "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
}