Skip to content

Commit

Permalink
Update generated code for v597
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Oct 11, 2023
1 parent 5b1fbb9 commit 6b35f1c
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 16 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v596
v597
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,6 @@ public class CreditUnderwritingRecord : StripeEntity<CreditUnderwritingRecord>,
[JsonConverter(typeof(UnixDateTimeConverter))]
public DateTime? DecisionDeadline { get; set; }

/// <summary>
/// If an exception to the usual underwriting criteria was made for this application,
/// details about the exception must be provided. Exceptions should only be granted in rare
/// circumstances, in consultation with Stripe Compliance.
/// </summary>
[JsonProperty("exception")]
public CreditUnderwritingRecordException Exception { get; set; }

/// <summary>
/// Has the value <c>true</c> if the object exists in live mode or the value <c>false</c> if
/// the object exists in test mode.
Expand All @@ -95,5 +87,13 @@ public class CreditUnderwritingRecord : StripeEntity<CreditUnderwritingRecord>,
/// </summary>
[JsonProperty("metadata")]
public Dictionary<string, string> Metadata { get; set; }

/// <summary>
/// If an exception to the usual underwriting criteria was made for this application,
/// details about the exception must be provided. Exceptions should only be granted in rare
/// circumstances, in consultation with Stripe Compliance.
/// </summary>
[JsonProperty("underwriting_exception")]
public CreditUnderwritingRecordUnderwritingException UnderwritingException { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// File generated from our OpenAPI spec
namespace Stripe.Issuing
{
using Newtonsoft.Json;

public class CreditUnderwritingRecordUnderwritingException : StripeEntity<CreditUnderwritingRecordUnderwritingException>
{
/// <summary>
/// Written explanation for the exception.
/// </summary>
[JsonProperty("explanation")]
public string Explanation { get; set; }

/// <summary>
/// The decision before the exception was applied.
/// One of: <c>additional_information_requested</c>, <c>application_rejected</c>,
/// <c>credit_limit_approved</c>, <c>credit_limit_decreased</c>, <c>credit_line_closed</c>,
/// <c>no_changes</c>, or <c>withdrawn_by_applicant</c>.
/// </summary>
[JsonProperty("original_decision_type")]
public string OriginalDecisionType { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,13 @@ public class CreditUnderwritingRecordCorrectOptions : BaseOptions, IHasMetadata
/// </summary>
[JsonProperty("metadata")]
public Dictionary<string, string> Metadata { get; set; }

/// <summary>
/// If an exception to the usual underwriting criteria was made for this decision, details
/// about the exception must be provided. Exceptions should only be granted in rare
/// circumstances, in consultation with Stripe Compliance.
/// </summary>
[JsonProperty("underwriting_exception")]
public CreditUnderwritingRecordUnderwritingExceptionOptions UnderwritingException { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,13 @@ public class CreditUnderwritingRecordCreateFromProactiveReviewOptions : BaseOpti
/// </summary>
[JsonProperty("metadata")]
public Dictionary<string, string> Metadata { get; set; }

/// <summary>
/// If an exception to the usual underwriting criteria was made for this decision, details
/// about the exception must be provided. Exceptions should only be granted in rare
/// circumstances, in consultation with Stripe Compliance.
/// </summary>
[JsonProperty("underwriting_exception")]
public CreditUnderwritingRecordUnderwritingExceptionOptions UnderwritingException { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,13 @@ public class CreditUnderwritingRecordReportDecisionOptions : BaseOptions, IHasMe
/// </summary>
[JsonProperty("metadata")]
public Dictionary<string, string> Metadata { get; set; }

/// <summary>
/// If an exception to the usual underwriting criteria was made for this decision, details
/// about the exception must be provided. Exceptions should only be granted in rare
/// circumstances, in consultation with Stripe Compliance.
/// </summary>
[JsonProperty("underwriting_exception")]
public CreditUnderwritingRecordUnderwritingExceptionOptions UnderwritingException { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@ namespace Stripe.Issuing
{
using Newtonsoft.Json;

public class CreditUnderwritingRecordException : StripeEntity<CreditUnderwritingRecordException>
public class CreditUnderwritingRecordUnderwritingExceptionOptions : INestedOptions
{
/// <summary>
/// Written explanation for the exception.
/// </summary>
[JsonProperty("explanation")]
public string Explanation { get; set; }

/// <summary>
/// The decision before the exception was applied.
/// One of: <c>additional_information_requested</c>, <c>application_rejected</c>,
Expand All @@ -13,11 +19,5 @@ public class CreditUnderwritingRecordException : StripeEntity<CreditUnderwriting
/// </summary>
[JsonProperty("original_decision_type")]
public string OriginalDecisionType { get; set; }

/// <summary>
/// Written explanation for the exception.
/// </summary>
[JsonProperty("reason")]
public string Reason { get; set; }
}
}

0 comments on commit 6b35f1c

Please sign in to comment.