Saltar al contenido principal

CreatePaymentRuleInput

Input for createPaymentRule.

input CreatePaymentRuleInput {
conditions: AWSJSON!
action: PaymentRuleActionInput!
name: String
priority: Int
enabled: Boolean
}

Fields​

CreatePaymentRuleInput.conditions ● AWSJSON! non-null scalar​

JsonLogic expression evaluated against the payment, as a JSON-encoded string. Use only paths from paymentRuleFields in var, and only these operators: var, ==, !=, <, <=, >, >=, !, !!, and, or, in, startsWith, endsWith, regexTest. At most 16 KB and 12 levels deep.

CreatePaymentRuleInput.action ● PaymentRuleActionInput! non-null input​

Action to apply when conditions match.

CreatePaymentRuleInput.name ● String scalar​

Name of the rule. Optional.

CreatePaymentRuleInput.priority ● Int scalar​

Evaluation order; lower runs first. When omitted, the rule runs as priority 0.

CreatePaymentRuleInput.enabled ● Boolean scalar​

Whether the rule runs. Defaults to true. At most 20 rules of an account can be enabled; one more enabled rule fails.

Member Of​

createPaymentRule mutation