Skip to main content

PaymentRule

Payment rule

type PaymentRule {
id: ID!
accountId: ID!
ruleType: PaymentRuleType!
conditions: PaymentConditions!
action: PaymentAction!
createdAt: AWSDateTime!
updatedAt: AWSDateTime
}

Fields

PaymentRule.id ● ID! non-null scalar

Rule ID

PaymentRule.accountId ● ID! non-null scalar

Account ID

PaymentRule.ruleType ● PaymentRuleType! non-null enum

Type of payment rule

PaymentRule.conditions ● PaymentConditions! non-null object

The conditions that must be met for this rule to apply

PaymentRule.action ● PaymentAction! non-null object

The action to take when conditions are met

PaymentRule.createdAt ● AWSDateTime! non-null scalar

When the rule was created

PaymentRule.updatedAt ● AWSDateTime scalar

When the rule was last updated

Returned By

createPaymentRule mutation ● paymentRule query ● updatePaymentRule mutation

Member Of

PaymentRulesConnection object