Skip to content
Merged
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 @@
4b8685a69ee5061fca67cc7e3fd69c8e6890b24e
4ec19847e2d6cb16e17bd2ad2aee2bf48d86013c
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2150
v2151
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ public class RequestedSession extends ApiResource
@SerializedName("payment_method_preview")
PaymentMethodPreview paymentMethodPreview;

/** The risk details of the requested session. */
@SerializedName("risk_details")
RiskDetails riskDetails;

@SerializedName("seller_details")
SellerDetails sellerDetails;

Expand Down Expand Up @@ -539,22 +543,10 @@ public static class LineItemDetail extends StripeObject {
@SerializedName("amount_subtotal")
Long amountSubtotal;

/** The description of the line item. */
@SerializedName("description")
String description;

/** The images of the line item. */
@SerializedName("images")
List<String> images;

/** The key of the line item. */
@SerializedName("key")
String key;

/** The name of the line item. */
@SerializedName("name")
String name;

@SerializedName("product_details")
ProductDetails productDetails;

Expand Down Expand Up @@ -769,6 +761,48 @@ public static class Card extends StripeObject {
}
}

/**
* For more details about RiskDetails, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class RiskDetails extends StripeObject {
/** The risk metadata for the client device. */
@SerializedName("client_device_metadata_details")
ClientDeviceMetadataDetails clientDeviceMetadataDetails;

/**
* For more details about ClientDeviceMetadataDetails, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class ClientDeviceMetadataDetails extends StripeObject {
/** The radar session for the client device. */
@SerializedName("radar_session")
String radarSession;

/** The referrer of the client device. */
@SerializedName("referrer")
String referrer;

/** The remote IP address of the client device. */
@SerializedName("remote_ip")
String remoteIp;

/** The time spent on the page by the client device. */
@SerializedName("time_on_page_ms")
Long timeOnPageMs;

/** The user agent of the client device. */
@SerializedName("user_agent")
String userAgent;
}
}

/**
* For more details about SellerDetails, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
Expand Down Expand Up @@ -840,6 +874,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
trySetResponseGetter(fulfillmentDetails, responseGetter);
trySetResponseGetter(orderDetails, responseGetter);
trySetResponseGetter(paymentMethodPreview, responseGetter);
trySetResponseGetter(riskDetails, responseGetter);
trySetResponseGetter(sellerDetails, responseGetter);
trySetResponseGetter(totalDetails, responseGetter);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ public class TrialOffer extends ApiResource implements HasId {
@SerializedName("livemode")
Boolean livemode;

/** A brief, user-friendly name for the trial offer-for identification purposes. */
@SerializedName("name")
String name;

/**
* String representing the object's type. Objects of the same type share the same value.
*
Expand Down
28 changes: 28 additions & 0 deletions src/main/java/com/stripe/model/radar/AccountEvaluation.java
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,41 @@ public AccountEvaluation update(AccountEvaluationUpdateParams params, RequestOpt
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Event extends StripeObject {
/** Data about a failed login event. */
@SerializedName("login_failed")
LoginFailed loginFailed;

/** Time at which the event occurred. Measured in seconds since the Unix epoch. */
@SerializedName("occurred_at")
Long occurredAt;

/** Data about a failed registration event. */
@SerializedName("registration_failed")
RegistrationFailed registrationFailed;

/** The type of event that occurred. */
@SerializedName("type")
String type;

/** Data about a failed login event. */
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class LoginFailed extends StripeObject {
/** The reason why this login failed. */
@SerializedName("reason")
String reason;
}

/** Data about a failed registration event. */
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class RegistrationFailed extends StripeObject {
/** The reason why this registration failed. */
@SerializedName("reason")
String reason;
}
}

/** Account Evaluation Signal resource returned by the Radar Account Evaluations API. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ public class TrialOfferCreateParams extends ApiRequestParams {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map<String, Object> extraParams;

/** A brief, user-friendly name for the trial offer-for identification purposes. */
@SerializedName("name")
String name;

/**
* <strong>Required.</strong> Price configuration during the trial period (amount, billing scheme,
* etc).
Expand All @@ -46,11 +50,13 @@ private TrialOfferCreateParams(
EndBehavior endBehavior,
List<String> expand,
Map<String, Object> extraParams,
String name,
String price) {
this.duration = duration;
this.endBehavior = endBehavior;
this.expand = expand;
this.extraParams = extraParams;
this.name = name;
this.price = price;
}

Expand All @@ -67,12 +73,14 @@ public static class Builder {

private Map<String, Object> extraParams;

private String name;

private String price;

/** Finalize and obtain parameter instance from this builder. */
public TrialOfferCreateParams build() {
return new TrialOfferCreateParams(
this.duration, this.endBehavior, this.expand, this.extraParams, this.price);
this.duration, this.endBehavior, this.expand, this.extraParams, this.name, this.price);
}

/** <strong>Required.</strong> Duration of one service period of the trial. */
Expand Down Expand Up @@ -139,6 +147,12 @@ public Builder putAllExtraParam(Map<String, Object> map) {
return this;
}

/** A brief, user-friendly name for the trial offer-for identification purposes. */
public Builder setName(String name) {
this.name = name;
return this;
}

/**
* <strong>Required.</strong> Price configuration during the trial period (amount, billing
* scheme, etc).
Expand Down
Loading
Loading