PaymentRule

struct PaymentRule : Codable, Equatable

Represents a signle payment rule.

  • Initializes a payment rule.

    Declaration

    Swift

    public init(
        type: String,
        constraint: Constraint,
        startOffset: String,
        windowDuration: String
    )

    Parameters

    type

    The type of the payment rule.

    constraint

    The constraint of the payment rule.

    startOffset

    The start offset of the payment rule.

    windowDuration

    The window duration of the payment rule.