Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
01d1ea0975f54150dffdde2a2c3d21e609c3b89f
8c4f5245c3c9e5b8d0a4c7cdbe9f895f312c464a
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2458
v2468
4 changes: 2 additions & 2 deletions src/main/java/com/stripe/model/Charge.java
Original file line number Diff line number Diff line change
Expand Up @@ -2404,8 +2404,8 @@ public static class ThreeDSecure extends StripeObject {
/**
* Indicates the outcome of 3D Secure authentication.
*
* <p>One of {@code attempt_acknowledged}, {@code authenticated}, {@code exempted}, {@code
* failed}, {@code not_supported}, or {@code processing_error}.
* <p>One of {@code attempt_acknowledged}, {@code authenticated}, {@code data_share_only},
* {@code exempted}, {@code failed}, {@code not_supported}, or {@code processing_error}.
*/
@SerializedName("result")
String result;
Expand Down
20 changes: 12 additions & 8 deletions src/main/java/com/stripe/model/Invoice.java
Original file line number Diff line number Diff line change
Expand Up @@ -1893,8 +1893,9 @@ public Invoice sendInvoice(InvoiceSendInvoiceParams params, RequestOptions optio

/**
* Draft invoices are fully editable. Once an invoice is <a
* href="https://stripe.com/docs/billing/invoices/workflow#finalized">finalized</a>, monetary
* values, as well as {@code collection_method}, become uneditable.
* href="https://stripe.com/docs/billing/invoices/workflow#finalized">finalized</a>, you can no
* longer change most of its details, including monetary values and {@code collection_method}. For
* most invoices, this also includes {@code description}.
*
* <p>If you would like to stop the Stripe Billing engine from automatically finalizing,
* reattempting payments on, sending reminders for, or <a
Expand All @@ -1908,8 +1909,9 @@ public Invoice update(Map<String, Object> params) throws StripeException {

/**
* Draft invoices are fully editable. Once an invoice is <a
* href="https://stripe.com/docs/billing/invoices/workflow#finalized">finalized</a>, monetary
* values, as well as {@code collection_method}, become uneditable.
* href="https://stripe.com/docs/billing/invoices/workflow#finalized">finalized</a>, you can no
* longer change most of its details, including monetary values and {@code collection_method}. For
* most invoices, this also includes {@code description}.
*
* <p>If you would like to stop the Stripe Billing engine from automatically finalizing,
* reattempting payments on, sending reminders for, or <a
Expand All @@ -1926,8 +1928,9 @@ public Invoice update(Map<String, Object> params, RequestOptions options) throws

/**
* Draft invoices are fully editable. Once an invoice is <a
* href="https://stripe.com/docs/billing/invoices/workflow#finalized">finalized</a>, monetary
* values, as well as {@code collection_method}, become uneditable.
* href="https://stripe.com/docs/billing/invoices/workflow#finalized">finalized</a>, you can no
* longer change most of its details, including monetary values and {@code collection_method}. For
* most invoices, this also includes {@code description}.
*
* <p>If you would like to stop the Stripe Billing engine from automatically finalizing,
* reattempting payments on, sending reminders for, or <a
Expand All @@ -1940,8 +1943,9 @@ public Invoice update(InvoiceUpdateParams params) throws StripeException {

/**
* Draft invoices are fully editable. Once an invoice is <a
* href="https://stripe.com/docs/billing/invoices/workflow#finalized">finalized</a>, monetary
* values, as well as {@code collection_method}, become uneditable.
* href="https://stripe.com/docs/billing/invoices/workflow#finalized">finalized</a>, you can no
* longer change most of its details, including monetary values and {@code collection_method}. For
* most invoices, this also includes {@code description}.
*
* <p>If you would like to stop the Stripe Billing engine from automatically finalizing,
* reattempting payments on, sending reminders for, or <a
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/stripe/model/PaymentAttemptRecord.java
Original file line number Diff line number Diff line change
Expand Up @@ -1856,8 +1856,8 @@ public static class ThreeDSecure extends StripeObject {
/**
* Indicates the outcome of 3D Secure authentication.
*
* <p>One of {@code attempt_acknowledged}, {@code authenticated}, {@code exempted}, {@code
* failed}, {@code not_supported}, or {@code processing_error}.
* <p>One of {@code attempt_acknowledged}, {@code authenticated}, {@code data_share_only},
* {@code exempted}, {@code failed}, {@code not_supported}, or {@code processing_error}.
*/
@SerializedName("result")
String result;
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/com/stripe/model/PaymentIntent.java
Original file line number Diff line number Diff line change
Expand Up @@ -1614,7 +1614,7 @@ public PaymentIntent reauthorize(PaymentIntentReauthorizeParams params, RequestO
* client_secret} is in the query string.
*
* <p>If you retrieve a PaymentIntent with a publishable key, it only returns a subset of
* properties. Refer to the <a href="https://stripe.com/docs/api#payment_intent_object">payment
* properties. Refer to the <a href="https://stripe.com/api/payment_intents/object">payment
* intent</a> object reference for more details.
*/
public static PaymentIntent retrieve(String intent) throws StripeException {
Expand All @@ -1628,7 +1628,7 @@ public static PaymentIntent retrieve(String intent) throws StripeException {
* client_secret} is in the query string.
*
* <p>If you retrieve a PaymentIntent with a publishable key, it only returns a subset of
* properties. Refer to the <a href="https://stripe.com/docs/api#payment_intent_object">payment
* properties. Refer to the <a href="https://stripe.com/api/payment_intents/object">payment
* intent</a> object reference for more details.
*/
public static PaymentIntent retrieve(String intent, RequestOptions options)
Expand All @@ -1643,7 +1643,7 @@ public static PaymentIntent retrieve(String intent, RequestOptions options)
* client_secret} is in the query string.
*
* <p>If you retrieve a PaymentIntent with a publishable key, it only returns a subset of
* properties. Refer to the <a href="https://stripe.com/docs/api#payment_intent_object">payment
* properties. Refer to the <a href="https://stripe.com/api/payment_intents/object">payment
* intent</a> object reference for more details.
*/
public static PaymentIntent retrieve(
Expand All @@ -1661,7 +1661,7 @@ public static PaymentIntent retrieve(
* client_secret} is in the query string.
*
* <p>If you retrieve a PaymentIntent with a publishable key, it only returns a subset of
* properties. Refer to the <a href="https://stripe.com/docs/api#payment_intent_object">payment
* properties. Refer to the <a href="https://stripe.com/api/payment_intents/object">payment
* intent</a> object reference for more details.
*/
public static PaymentIntent retrieve(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@ public class PaymentIntentAmountDetailsLineItem extends ApiResource implements H
@SerializedName("unit_cost")
Long unitCost;

/**
* The number of decimal places implied in the unit_cost. For example, if unit_cost is 10000 and
* unit_cost_precision is 1, the actual unit cost is 1000.0. Defaults to 0 if not provided.
*/
@SerializedName("unit_cost_precision")
Long unitCostPrecision;

/**
* A unit of measure for the line item, such as gallons, feet, meters, etc. Required for L3 rates.
* At most 12 alphanumeric characters long.
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/stripe/model/PaymentRecord.java
Original file line number Diff line number Diff line change
Expand Up @@ -1931,8 +1931,8 @@ public static class ThreeDSecure extends StripeObject {
/**
* Indicates the outcome of 3D Secure authentication.
*
* <p>One of {@code attempt_acknowledged}, {@code authenticated}, {@code exempted}, {@code
* failed}, {@code not_supported}, or {@code processing_error}.
* <p>One of {@code attempt_acknowledged}, {@code authenticated}, {@code data_share_only},
* {@code exempted}, {@code failed}, {@code not_supported}, or {@code processing_error}.
*/
@SerializedName("result")
String result;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/stripe/model/SetupAttempt.java
Original file line number Diff line number Diff line change
Expand Up @@ -671,8 +671,8 @@ public static class ThreeDSecure extends StripeObject {
/**
* Indicates the outcome of 3D Secure authentication.
*
* <p>One of {@code attempt_acknowledged}, {@code authenticated}, {@code exempted}, {@code
* failed}, {@code not_supported}, or {@code processing_error}.
* <p>One of {@code attempt_acknowledged}, {@code authenticated}, {@code data_share_only},
* {@code exempted}, {@code failed}, {@code not_supported}, or {@code processing_error}.
*/
@SerializedName("result")
String result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@
import lombok.Getter;
import lombok.Setter;

/**
* A financing summary object describes a connected account's financing status in real time. A
* financing status is either {@code accepted}, {@code delivered}, or {@code none}. You can read the
* status of your connected accounts.
*/
/** A financing summary object describes a connected account's financing details in real time. */
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/stripe/model/checkout/Session.java
Original file line number Diff line number Diff line change
Expand Up @@ -2581,6 +2581,10 @@ public static class Item extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Subscription extends StripeObject {
/** The Unix timestamp marking the subscription's backdated start date. */
@SerializedName("backdate_start_date")
Long backdateStartDate;

/** The description for the subscription. */
@SerializedName("description")
String description;
Expand Down
192 changes: 192 additions & 0 deletions src/main/java/com/stripe/model/identity/VerificationReport.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ public class VerificationReport extends ApiResource implements HasId {
@SerializedName("selfie")
Selfie selfie;

@SerializedName("signals")
Signals signals;

/**
* Type of report.
*
Expand Down Expand Up @@ -812,6 +815,194 @@ public static class Errors extends StripeObject {
}
}

/**
* For more details about Signals, please refer to the <a href="https://docs.stripe.com/api">API
* Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Signals extends StripeObject {
@SerializedName("fraudulent_email")
FraudulentEmail fraudulentEmail;

@SerializedName("fraudulent_person")
FraudulentPerson fraudulentPerson;

@SerializedName("fraudulent_phone")
FraudulentPhone fraudulentPhone;

/**
* For more details about FraudulentEmail, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class FraudulentEmail extends StripeObject {
/**
* Array of objects representing individual factors that contributed to the calculated risk
* level.
*/
@SerializedName("indicators")
List<VerificationReport.Signals.FraudulentEmail.Indicator> indicators;

/**
* Categorical assessment of the email risk.
*
* <p>One of {@code elevated}, {@code highest}, {@code low}, {@code normal}, {@code
* not_assessed}, or {@code unknown}.
*/
@SerializedName("risk_level")
String riskLevel;

/**
* For more details about Indicator, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Indicator extends StripeObject {
/** A brief explanation of how this indicator contributed to the risk level. */
@SerializedName("explanation")
String explanation;

/**
* The effect this indicator had on the overall risk level.
*
* <p>One of {@code decrease}, {@code neutral}, {@code slight_increase}, or {@code
* strong_increase}.
*/
@SerializedName("impact")
String impact;

/**
* The name of the specific indicator used in the risk assessment.
*
* <p>One of {@code address_mismatch}, {@code domain_reputation}, {@code domain_tenure},
* {@code email_reputation}, {@code email_tenure}, {@code gibberish_email}, {@code
* invalid_email}, {@code name_mismatch}, {@code other}, or {@code phone_mismatch}.
*/
@SerializedName("indicator")
String indicator;
}
}

/**
* For more details about FraudulentPerson, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class FraudulentPerson extends StripeObject {
/**
* Array of objects representing individual factors that contributed to the calculated risk
* level.
*/
@SerializedName("indicators")
List<VerificationReport.Signals.FraudulentPerson.Indicator> indicators;

/**
* Categorical assessment of the fraudulent person risk.
*
* <p>One of {@code elevated}, {@code highest}, {@code low}, {@code normal}, {@code
* not_assessed}, or {@code unknown}.
*/
@SerializedName("risk_level")
String riskLevel;

/**
* For more details about Indicator, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Indicator extends StripeObject {
/** A brief explanation of how this indicator contributed to the risk level. */
@SerializedName("explanation")
String explanation;

/**
* The effect this indicator had on the overall risk level.
*
* <p>One of {@code decrease}, {@code neutral}, {@code slight_increase}, or {@code
* strong_increase}.
*/
@SerializedName("impact")
String impact;

/**
* The name of the specific indicator used in the risk assessment.
*
* <p>One of {@code fraudulent_person_match}, {@code no_transaction_match}, or {@code
* other}.
*/
@SerializedName("indicator")
String indicator;
}
}

/**
* For more details about FraudulentPhone, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class FraudulentPhone extends StripeObject {
/**
* Array of objects representing individual factors that contributed to the calculated risk
* level.
*/
@SerializedName("indicators")
List<VerificationReport.Signals.FraudulentPhone.Indicator> indicators;

/**
* Categorical assessment of the phone risk.
*
* <p>One of {@code elevated}, {@code highest}, {@code low}, {@code normal}, {@code
* not_assessed}, or {@code unknown}.
*/
@SerializedName("risk_level")
String riskLevel;

/**
* For more details about Indicator, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Indicator extends StripeObject {
/** A brief explanation of how this indicator contributed to the risk level. */
@SerializedName("explanation")
String explanation;

/**
* The effect this indicator had on the overall risk level.
*
* <p>One of {@code decrease}, {@code neutral}, {@code slight_increase}, or {@code
* strong_increase}.
*/
@SerializedName("impact")
String impact;

/**
* The name of the specific indicator used in the risk assessment.
*
* <p>One of {@code address_mismatch}, {@code carrier_reputation}, {@code line_type}, {@code
* name_mismatch}, {@code other}, {@code phone_reputation}, {@code phone_tenure}, or {@code
* phone_velocity}.
*/
@SerializedName("indicator")
String indicator;
}
}
}

@Override
public void setResponseGetter(StripeResponseGetter responseGetter) {
super.setResponseGetter(responseGetter);
Expand All @@ -821,5 +1012,6 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
trySetResponseGetter(options, responseGetter);
trySetResponseGetter(phone, responseGetter);
trySetResponseGetter(selfie, responseGetter);
trySetResponseGetter(signals, responseGetter);
}
}
Loading
Loading