You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: EasyPost/Parameters/Claim/Create.cs
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -71,11 +71,18 @@ public class Create : BaseParameters<Models.API.Claim>, IClaimParameter
71
71
publicstring?ContactEmail{get;set;}
72
72
73
73
/// <summary>
74
-
/// The <see cref="ClaimPaymentMethod"/> for the claim reimbursement.
74
+
/// The <see cref="ClaimPaymentMethod"/> for the claim reimbursement. If set to <see cref="ClaimPaymentMethod.MailedCheck"/>, the <see cref="CheckDeliveryAddress"/> must be provided.
/// Initializes a new instance of the <see cref="RequestParameterDependentsAttribute"/> class.
151
151
/// </summary>
152
152
/// <param name="independentStatus">The set status of the independent property.</param>
153
-
/// <param name="independentValue">The value of the independent property.</param>
153
+
/// <param name="independentValue">The value of the independent property. If enforcing a custom <see cref="ValueEnum"/>, provide the underlying value.</param>
154
154
/// <param name="dependentStatus">The set status of the dependent properties.</param>
155
-
/// <param name="dependentValue">The value of the dependent properties.</param>
155
+
/// <param name="dependentValue">The value of the dependent properties. If enforcing a custom <see cref="ValueEnum"/>, provide the underlying value.</param>
156
156
/// <param name="dependentProperties">The names of the dependent properties.</param>
/// <param name="independentStatus">The set status of the independent property.</param>
170
170
/// <param name="dependentStatus">The set status of the dependent properties.</param>
171
-
/// <param name="dependentValue">The value of the dependent properties.</param>
171
+
/// <param name="dependentValue">The value of the dependent properties. If enforcing a custom <see cref="ValueEnum"/>, provide the underlying value.</param>
172
172
/// <param name="dependentProperties">The names of the dependent properties.</param>
/// Initializes a new instance of the <see cref="RequestParameterDependentsAttribute"/> class.
183
183
/// </summary>
184
184
/// <param name="independentStatus">The set status of the independent property.</param>
185
-
/// <param name="independentValue">The value of the independent property.</param>
185
+
/// <param name="independentValue">The value of the independent property. If enforcing a custom <see cref="ValueEnum"/>, provide the underlying value.</param>
186
186
/// <param name="dependentStatus">The set status of the dependent properties.</param>
187
187
/// <param name="dependentProperties">The names of the dependent properties.</param>
/// Check that the expected value state of the property is met.
198
198
/// </summary>
199
199
/// <param name="propertyValue">Optional, the value of the independent property.</param>
200
-
/// <param name="dependentPropertyValue">The value of the dependent property.</param>
200
+
/// <param name="dependentPropertyValue">The value of the dependent property. Do not pass in <see cref="ValueEnum"/>; instead, pass in the underlying value.</param>
201
201
/// <returns>True if the dependent property meets the dependency condition, false otherwise.</returns>
/// Check that all dependent properties are compliant with the dependency conditions.
229
229
/// </summary>
230
230
/// <param name="obj">The object containing the dependent properties.</param>
231
-
/// <param name="propertyValue">The value of the independent property.</param>
231
+
/// <param name="propertyValue">The value of the independent property. A <see cref="ValueEnum"/> will be converted to its underlying value.</param>
232
232
/// <returns>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.</returns>
// Convert any value enums to their underlying values (this cannot work with non-value Enums, but those can't be passed to attributes, so it is safe to ignore)
@@ -304,9 +311,9 @@ public TopLevelRequestParameterDependentsAttribute(IndependentStatus independent
304
311
/// Initializes a new instance of the <see cref="TopLevelRequestParameterDependentsAttribute"/> class.
305
312
/// </summary>
306
313
/// <param name="independentStatus">The set status of the independent property.</param>
307
-
/// <param name="independentValue">The value of the independent property.</param>
314
+
/// <param name="independentValue">The value of the independent property. If enforcing a custom <see cref="ValueEnum"/>, provide the underlying value.</param>
308
315
/// <param name="dependentStatus">The set status of the dependent properties.</param>
309
-
/// <param name="dependentValue">The value of the dependent properties.</param>
316
+
/// <param name="dependentValue">The value of the dependent properties. If enforcing a custom <see cref="ValueEnum"/>, provide the underlying value.</param>
310
317
/// <param name="dependentProperties">The names of the dependent properties.</param>
@@ -318,7 +325,7 @@ public TopLevelRequestParameterDependentsAttribute(IndependentStatus independent
318
325
/// </summary>
319
326
/// <param name="independentStatus">The set status of the independent property.</param>
320
327
/// <param name="dependentStatus">The set status of the dependent properties.</param>
321
-
/// <param name="dependentValue">The value of the dependent properties.</param>
328
+
/// <param name="dependentValue">The value of the dependent properties. If enforcing a custom <see cref="ValueEnum"/>, provide the underlying value.</param>
322
329
/// <param name="dependentProperties">The names of the dependent properties.</param>
@@ -329,7 +336,7 @@ public TopLevelRequestParameterDependentsAttribute(IndependentStatus independent
329
336
/// Initializes a new instance of the <see cref="TopLevelRequestParameterDependentsAttribute"/> class.
330
337
/// </summary>
331
338
/// <param name="independentStatus">The set status of the independent property.</param>
332
-
/// <param name="independentValue">The value of the independent property.</param>
339
+
/// <param name="independentValue">The value of the independent property. If enforcing a custom <see cref="ValueEnum"/>, provide the underlying value.</param>
333
340
/// <param name="dependentStatus">The set status of the dependent properties.</param>
334
341
/// <param name="dependentProperties">The names of the dependent properties.</param>
@@ -392,9 +399,9 @@ public NestedRequestParameterDependentsAttribute(IndependentStatus independentSt
392
399
/// Initializes a new instance of the <see cref="NestedRequestParameterDependentsAttribute"/> class.
393
400
/// </summary>
394
401
/// <param name="independentStatus">The set status of the independent property.</param>
395
-
/// <param name="independentValue">The value of the independent property.</param>
402
+
/// <param name="independentValue">The value of the independent property. If enforcing a custom <see cref="ValueEnum"/>, provide the underlying value.</param>
396
403
/// <param name="dependentStatus">The set status of the dependent properties.</param>
397
-
/// <param name="dependentValue">The value of the dependent properties.</param>
404
+
/// <param name="dependentValue">The value of the dependent properties. If enforcing a custom <see cref="ValueEnum"/>, provide the underlying value.</param>
398
405
/// <param name="dependentProperties">The names of the dependent properties.</param>
@@ -406,7 +413,7 @@ public NestedRequestParameterDependentsAttribute(IndependentStatus independentSt
406
413
/// </summary>
407
414
/// <param name="independentStatus">The set status of the independent property.</param>
408
415
/// <param name="dependentStatus">The set status of the dependent properties.</param>
409
-
/// <param name="dependentValue">The value of the dependent properties.</param>
416
+
/// <param name="dependentValue">The value of the dependent properties. If enforcing a custom <see cref="ValueEnum"/>, provide the underlying value.</param>
410
417
/// <param name="dependentProperties">The names of the dependent properties.</param>
@@ -417,7 +424,7 @@ public NestedRequestParameterDependentsAttribute(IndependentStatus independentSt
417
424
/// Initializes a new instance of the <see cref="NestedRequestParameterDependentsAttribute"/> class.
418
425
/// </summary>
419
426
/// <param name="independentStatus">The set status of the independent property.</param>
420
-
/// <param name="independentValue">The value of the independent property.</param>
427
+
/// <param name="independentValue">The value of the independent property. If enforcing a custom <see cref="ValueEnum"/>, provide the underlying value.</param>
421
428
/// <param name="dependentStatus">The set status of the dependent properties.</param>
422
429
/// <param name="dependentProperties">The names of the dependent properties.</param>
0 commit comments