+
+
+ Class RequestParameterDependentsAttribute
+
+ A BaseCustomAttribute to denote the required dependents of a request parameter, and the conditions under which they are required.
+
+
+
+
Inheritance
+
System.Object
+
+
RequestParameterDependentsAttribute
+
+
+
+
+
+ Assembly: EasyPost.dll
+ Syntax
+
+
public abstract class RequestParameterDependentsAttribute : BaseCustomAttribute
+
+ Constructors
+
+
+ |
+ Improve this Doc
+
+
+ View Source
+
+
+ RequestParameterDependentsAttribute(IndependentStatus, DependentStatus, String[])
+
+
+ Declaration
+
+
protected RequestParameterDependentsAttribute(IndependentStatus independentStatus, DependentStatus dependentStatus, params string[] dependentProperties)
+
+ Parameters
+
+
+
+ Type |
+ Name |
+ Description |
+
+
+
+
+ IndependentStatus |
+ independentStatus |
+ The set status of the independent property.
+ |
+
+
+ DependentStatus |
+ dependentStatus |
+ The set status of the dependent properties.
+ |
+
+
+ System.String[] |
+ dependentProperties |
+ The names of the dependent properties.
+ |
+
+
+
+ Methods
+
+
+ |
+ Improve this Doc
+
+
+ View Source
+
+
+ DependentsAreCompliant(Object, Nullable<Object>)
+ Check that all dependent properties are compliant with the dependency conditions.
+
+
+ Declaration
+
+
public Tuple<bool, string> DependentsAreCompliant(object obj, object? propertyValue)
+
+ Parameters
+
+
+
+ Type |
+ Name |
+ Description |
+
+
+
+
+ System.Object |
+ obj |
+ The object containing the dependent properties.
+ |
+
+
+ System.Nullable<System.Object> |
+ propertyValue |
+ The value of the independent property.
+ |
+
+
+
+ Returns
+
+
+
+ Type |
+ Description |
+
+
+
+
+ Tuple<System.Boolean, System.String> |
+ A tuple containing a boolean indicating whether the dependency is met, and a string containing the name of the first dependent property that does not meet the dependency conditions.
+ |
+
+
+
+