UNPKG

@getopenpay/client

Version:

OpenPay API TypeScript SDK

55 lines (54 loc) 1.67 kB
/** * OpenPay API * super charge your subscription management. * * The version of the OpenAPI document: 1.2.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { RouteConditionAttribute } from './RouteConditionAttribute'; import type { RouteConditionOperator } from './RouteConditionOperator'; import type { Value } from './Value'; /** * Represents a single condition in a payment route: * condition = attribute_name <operator> value * @export * @interface Condition */ export interface Condition { /** * The attribute to apply the operator on * @type {RouteConditionAttribute} * @memberof Condition */ attributeName: RouteConditionAttribute; /** * * @type {string} * @memberof Condition */ attributePropertiesId?: string | null; /** * The operator to use for the condition * @type {RouteConditionOperator} * @memberof Condition */ operator: RouteConditionOperator; /** * * @type {Value} * @memberof Condition */ value: Value; } /** * Check if a given object implements the Condition interface. */ export declare function instanceOfCondition(value: object): value is Condition; export declare function ConditionFromJSON(json: any): Condition; export declare function ConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Condition; export declare function ConditionToJSON(json: any): Condition; export declare function ConditionToJSONTyped(value?: Condition | null, ignoreDiscriminator?: boolean): any;