Skip to content

Commit 9af87d2

Browse files
Merge pull request #2143 from stripe/latest-codegen-private-preview
Update generated code for private-preview
2 parents de202c3 + 3310b51 commit 9af87d2

File tree

7 files changed

+309
-17
lines changed

7 files changed

+309
-17
lines changed

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4b8685a69ee5061fca67cc7e3fd69c8e6890b24e
1+
4ec19847e2d6cb16e17bd2ad2aee2bf48d86013c

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2150
1+
v2151

src/main/java/com/stripe/model/delegatedcheckout/RequestedSession.java

Lines changed: 47 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ public class RequestedSession extends ApiResource
105105
@SerializedName("payment_method_preview")
106106
PaymentMethodPreview paymentMethodPreview;
107107

108+
/** The risk details of the requested session. */
109+
@SerializedName("risk_details")
110+
RiskDetails riskDetails;
111+
108112
@SerializedName("seller_details")
109113
SellerDetails sellerDetails;
110114

@@ -539,22 +543,10 @@ public static class LineItemDetail extends StripeObject {
539543
@SerializedName("amount_subtotal")
540544
Long amountSubtotal;
541545

542-
/** The description of the line item. */
543-
@SerializedName("description")
544-
String description;
545-
546-
/** The images of the line item. */
547-
@SerializedName("images")
548-
List<String> images;
549-
550546
/** The key of the line item. */
551547
@SerializedName("key")
552548
String key;
553549

554-
/** The name of the line item. */
555-
@SerializedName("name")
556-
String name;
557-
558550
@SerializedName("product_details")
559551
ProductDetails productDetails;
560552

@@ -769,6 +761,48 @@ public static class Card extends StripeObject {
769761
}
770762
}
771763

764+
/**
765+
* For more details about RiskDetails, please refer to the <a
766+
* href="https://docs.stripe.com/api">API Reference.</a>
767+
*/
768+
@Getter
769+
@Setter
770+
@EqualsAndHashCode(callSuper = false)
771+
public static class RiskDetails extends StripeObject {
772+
/** The risk metadata for the client device. */
773+
@SerializedName("client_device_metadata_details")
774+
ClientDeviceMetadataDetails clientDeviceMetadataDetails;
775+
776+
/**
777+
* For more details about ClientDeviceMetadataDetails, please refer to the <a
778+
* href="https://docs.stripe.com/api">API Reference.</a>
779+
*/
780+
@Getter
781+
@Setter
782+
@EqualsAndHashCode(callSuper = false)
783+
public static class ClientDeviceMetadataDetails extends StripeObject {
784+
/** The radar session for the client device. */
785+
@SerializedName("radar_session")
786+
String radarSession;
787+
788+
/** The referrer of the client device. */
789+
@SerializedName("referrer")
790+
String referrer;
791+
792+
/** The remote IP address of the client device. */
793+
@SerializedName("remote_ip")
794+
String remoteIp;
795+
796+
/** The time spent on the page by the client device. */
797+
@SerializedName("time_on_page_ms")
798+
Long timeOnPageMs;
799+
800+
/** The user agent of the client device. */
801+
@SerializedName("user_agent")
802+
String userAgent;
803+
}
804+
}
805+
772806
/**
773807
* For more details about SellerDetails, please refer to the <a
774808
* href="https://docs.stripe.com/api">API Reference.</a>
@@ -840,6 +874,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
840874
trySetResponseGetter(fulfillmentDetails, responseGetter);
841875
trySetResponseGetter(orderDetails, responseGetter);
842876
trySetResponseGetter(paymentMethodPreview, responseGetter);
877+
trySetResponseGetter(riskDetails, responseGetter);
843878
trySetResponseGetter(sellerDetails, responseGetter);
844879
trySetResponseGetter(totalDetails, responseGetter);
845880
}

src/main/java/com/stripe/model/productcatalog/TrialOffer.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ public class TrialOffer extends ApiResource implements HasId {
4545
@SerializedName("livemode")
4646
Boolean livemode;
4747

48+
/** A brief, user-friendly name for the trial offer-for identification purposes. */
49+
@SerializedName("name")
50+
String name;
51+
4852
/**
4953
* String representing the object's type. Objects of the same type share the same value.
5054
*

src/main/java/com/stripe/model/radar/AccountEvaluation.java

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,41 @@ public AccountEvaluation update(AccountEvaluationUpdateParams params, RequestOpt
187187
@Setter
188188
@EqualsAndHashCode(callSuper = false)
189189
public static class Event extends StripeObject {
190+
/** Data about a failed login event. */
191+
@SerializedName("login_failed")
192+
LoginFailed loginFailed;
193+
190194
/** Time at which the event occurred. Measured in seconds since the Unix epoch. */
191195
@SerializedName("occurred_at")
192196
Long occurredAt;
193197

198+
/** Data about a failed registration event. */
199+
@SerializedName("registration_failed")
200+
RegistrationFailed registrationFailed;
201+
194202
/** The type of event that occurred. */
195203
@SerializedName("type")
196204
String type;
205+
206+
/** Data about a failed login event. */
207+
@Getter
208+
@Setter
209+
@EqualsAndHashCode(callSuper = false)
210+
public static class LoginFailed extends StripeObject {
211+
/** The reason why this login failed. */
212+
@SerializedName("reason")
213+
String reason;
214+
}
215+
216+
/** Data about a failed registration event. */
217+
@Getter
218+
@Setter
219+
@EqualsAndHashCode(callSuper = false)
220+
public static class RegistrationFailed extends StripeObject {
221+
/** The reason why this registration failed. */
222+
@SerializedName("reason")
223+
String reason;
224+
}
197225
}
198226

199227
/** Account Evaluation Signal resource returned by the Radar Account Evaluations API. */

src/main/java/com/stripe/param/productcatalog/TrialOfferCreateParams.java

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ public class TrialOfferCreateParams extends ApiRequestParams {
3434
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
3535
Map<String, Object> extraParams;
3636

37+
/** A brief, user-friendly name for the trial offer-for identification purposes. */
38+
@SerializedName("name")
39+
String name;
40+
3741
/**
3842
* <strong>Required.</strong> Price configuration during the trial period (amount, billing scheme,
3943
* etc).
@@ -46,11 +50,13 @@ private TrialOfferCreateParams(
4650
EndBehavior endBehavior,
4751
List<String> expand,
4852
Map<String, Object> extraParams,
53+
String name,
4954
String price) {
5055
this.duration = duration;
5156
this.endBehavior = endBehavior;
5257
this.expand = expand;
5358
this.extraParams = extraParams;
59+
this.name = name;
5460
this.price = price;
5561
}
5662

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

6874
private Map<String, Object> extraParams;
6975

76+
private String name;
77+
7078
private String price;
7179

7280
/** Finalize and obtain parameter instance from this builder. */
7381
public TrialOfferCreateParams build() {
7482
return new TrialOfferCreateParams(
75-
this.duration, this.endBehavior, this.expand, this.extraParams, this.price);
83+
this.duration, this.endBehavior, this.expand, this.extraParams, this.name, this.price);
7684
}
7785

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

150+
/** A brief, user-friendly name for the trial offer-for identification purposes. */
151+
public Builder setName(String name) {
152+
this.name = name;
153+
return this;
154+
}
155+
142156
/**
143157
* <strong>Required.</strong> Price configuration during the trial period (amount, billing
144158
* scheme, etc).

0 commit comments

Comments
 (0)