Skip to content

Commit fc13c71

Browse files
Update generated code for v2205 and (#2191)
Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
1 parent 28de1d0 commit fc13c71

14 files changed

Lines changed: 30 additions & 87 deletions

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
273184f052dd3c191b1993098365d0c2437d2cb4
1+
b51a9d09327603fa3a61d076f4bf7f07b43e1659

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2204
1+
v2205

src/main/java/com/stripe/model/PaymentIntent.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2721,10 +2721,6 @@ public static class PaymentDetails extends StripeObject {
27212721
* A unique value assigned by the business to identify the transaction. Required for L2 and L3
27222722
* rates.
27232723
*
2724-
* <p>Required when the Payment Method Types array contains {@code card}, including when <a
2725-
* href="https://stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled">automatic_payment_methods.enabled</a>
2726-
* is set to {@code true}.
2727-
*
27282724
* <p>For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before
27292725
* being sent to card networks. For Klarna, this field is truncated to 255 characters and is
27302726
* visible to customers when they view the order in the Klarna app.

src/main/java/com/stripe/model/Subscription.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,9 @@ public class Subscription extends ApiResource implements HasId, MetadataStore<Su
299299
@SerializedName("pending_update")
300300
PendingUpdate pendingUpdate;
301301

302+
@SerializedName("presentment_details")
303+
PresentmentDetails presentmentDetails;
304+
302305
/** The schedule attached to the subscription. */
303306
@SerializedName("schedule")
304307
@Getter(lombok.AccessLevel.NONE)
@@ -2096,6 +2099,19 @@ public static class PendingUpdate extends StripeObject {
20962099
Boolean trialFromPlan;
20972100
}
20982101

2102+
/**
2103+
* For more details about PresentmentDetails, please refer to the <a
2104+
* href="https://docs.stripe.com/api">API Reference.</a>
2105+
*/
2106+
@Getter
2107+
@Setter
2108+
@EqualsAndHashCode(callSuper = false)
2109+
public static class PresentmentDetails extends StripeObject {
2110+
/** Currency used for customer payments. */
2111+
@SerializedName("presentment_currency")
2112+
String presentmentCurrency;
2113+
}
2114+
20992115
/**
21002116
* For more details about TransferData, please refer to the <a
21012117
* href="https://docs.stripe.com/api">API Reference.</a>
@@ -2183,6 +2199,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
21832199
trySetResponseGetter(pendingInvoiceItemInterval, responseGetter);
21842200
trySetResponseGetter(pendingSetupIntent, responseGetter);
21852201
trySetResponseGetter(pendingUpdate, responseGetter);
2202+
trySetResponseGetter(presentmentDetails, responseGetter);
21862203
trySetResponseGetter(schedule, responseGetter);
21872204
trySetResponseGetter(testClock, responseGetter);
21882205
trySetResponseGetter(transferData, responseGetter);

src/main/java/com/stripe/model/checkout/Session.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -471,10 +471,9 @@ public class Session extends ApiResource implements HasId, MetadataStore<Session
471471
TotalDetails totalDetails;
472472

473473
/**
474-
* The UI mode of the Session. Defaults to {@code hosted}.
474+
* The UI mode of the Session. Defaults to {@code hosted_page}.
475475
*
476-
* <p>One of {@code custom}, {@code elements}, {@code embedded}, {@code embedded_page}, {@code
477-
* form}, {@code hosted}, or {@code hosted_page}.
476+
* <p>One of {@code elements}, {@code embedded_page}, {@code form}, or {@code hosted_page}.
478477
*/
479478
@SerializedName("ui_mode")
480479
String uiMode;

src/main/java/com/stripe/model/issuing/Cardholder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ public class Cardholder extends ApiResource implements HasId, MetadataStore<Card
9999

100100
/**
101101
* The cardholder’s preferred locales (languages), ordered by preference. Locales can be {@code
102-
* de}, {@code en}, {@code es}, {@code fr}, or {@code it}. This changes the language of the <a
103-
* href="https://docs.stripe.com/issuing/3d-secure">3D Secure flow</a> and one-time password
104-
* messages sent to the cardholder.
102+
* da}, {@code de}, {@code en}, {@code es}, {@code fr}, {@code it}, {@code pl}, or {@code sv}.
103+
* This changes the language of the <a href="https://docs.stripe.com/issuing/3d-secure">3D Secure
104+
* flow</a> and one-time password messages sent to the cardholder.
105105
*/
106106
@SerializedName("preferred_locales")
107107
List<String> preferredLocales;

src/main/java/com/stripe/param/PaymentIntentCaptureParams.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1993,10 +1993,6 @@ public static class PaymentDetails {
19931993
* A unique value assigned by the business to identify the transaction. Required for L2 and L3
19941994
* rates.
19951995
*
1996-
* <p>Required when the Payment Method Types array contains {@code card}, including when <a
1997-
* href="https://stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled">automatic_payment_methods.enabled</a>
1998-
* is set to {@code true}.
1999-
*
20001996
* <p>For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before
20011997
* being sent to card networks. For Klarna, this field is truncated to 255 characters and is
20021998
* visible to customers when they view the order in the Klarna app.
@@ -2081,10 +2077,6 @@ public Builder putAllExtraParam(Map<String, Object> map) {
20812077
* A unique value assigned by the business to identify the transaction. Required for L2 and L3
20822078
* rates.
20832079
*
2084-
* <p>Required when the Payment Method Types array contains {@code card}, including when <a
2085-
* href="https://stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled">automatic_payment_methods.enabled</a>
2086-
* is set to {@code true}.
2087-
*
20882080
* <p>For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces,
20892081
* before being sent to card networks. For Klarna, this field is truncated to 255 characters
20902082
* and is visible to customers when they view the order in the Klarna app.
@@ -2098,10 +2090,6 @@ public Builder setOrderReference(String orderReference) {
20982090
* A unique value assigned by the business to identify the transaction. Required for L2 and L3
20992091
* rates.
21002092
*
2101-
* <p>Required when the Payment Method Types array contains {@code card}, including when <a
2102-
* href="https://stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled">automatic_payment_methods.enabled</a>
2103-
* is set to {@code true}.
2104-
*
21052093
* <p>For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces,
21062094
* before being sent to card networks. For Klarna, this field is truncated to 255 characters
21072095
* and is visible to customers when they view the order in the Klarna app.

src/main/java/com/stripe/param/PaymentIntentConfirmParams.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2664,10 +2664,6 @@ public static class PaymentDetails {
26642664
* A unique value assigned by the business to identify the transaction. Required for L2 and L3
26652665
* rates.
26662666
*
2667-
* <p>Required when the Payment Method Types array contains {@code card}, including when <a
2668-
* href="https://stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled">automatic_payment_methods.enabled</a>
2669-
* is set to {@code true}.
2670-
*
26712667
* <p>For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before
26722668
* being sent to card networks. For Klarna, this field is truncated to 255 characters and is
26732669
* visible to customers when they view the order in the Klarna app.
@@ -2752,10 +2748,6 @@ public Builder putAllExtraParam(Map<String, Object> map) {
27522748
* A unique value assigned by the business to identify the transaction. Required for L2 and L3
27532749
* rates.
27542750
*
2755-
* <p>Required when the Payment Method Types array contains {@code card}, including when <a
2756-
* href="https://stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled">automatic_payment_methods.enabled</a>
2757-
* is set to {@code true}.
2758-
*
27592751
* <p>For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces,
27602752
* before being sent to card networks. For Klarna, this field is truncated to 255 characters
27612753
* and is visible to customers when they view the order in the Klarna app.
@@ -2769,10 +2761,6 @@ public Builder setOrderReference(String orderReference) {
27692761
* A unique value assigned by the business to identify the transaction. Required for L2 and L3
27702762
* rates.
27712763
*
2772-
* <p>Required when the Payment Method Types array contains {@code card}, including when <a
2773-
* href="https://stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled">automatic_payment_methods.enabled</a>
2774-
* is set to {@code true}.
2775-
*
27762764
* <p>For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces,
27772765
* before being sent to card networks. For Klarna, this field is truncated to 255 characters
27782766
* and is visible to customers when they view the order in the Klarna app.

src/main/java/com/stripe/param/PaymentIntentCreateParams.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3197,10 +3197,6 @@ public static class PaymentDetails {
31973197
* A unique value assigned by the business to identify the transaction. Required for L2 and L3
31983198
* rates.
31993199
*
3200-
* <p>Required when the Payment Method Types array contains {@code card}, including when <a
3201-
* href="https://stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled">automatic_payment_methods.enabled</a>
3202-
* is set to {@code true}.
3203-
*
32043200
* <p>For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before
32053201
* being sent to card networks. For Klarna, this field is truncated to 255 characters and is
32063202
* visible to customers when they view the order in the Klarna app.
@@ -3285,10 +3281,6 @@ public Builder putAllExtraParam(Map<String, Object> map) {
32853281
* A unique value assigned by the business to identify the transaction. Required for L2 and L3
32863282
* rates.
32873283
*
3288-
* <p>Required when the Payment Method Types array contains {@code card}, including when <a
3289-
* href="https://stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled">automatic_payment_methods.enabled</a>
3290-
* is set to {@code true}.
3291-
*
32923284
* <p>For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces,
32933285
* before being sent to card networks. For Klarna, this field is truncated to 255 characters
32943286
* and is visible to customers when they view the order in the Klarna app.
@@ -3302,10 +3294,6 @@ public Builder setOrderReference(String orderReference) {
33023294
* A unique value assigned by the business to identify the transaction. Required for L2 and L3
33033295
* rates.
33043296
*
3305-
* <p>Required when the Payment Method Types array contains {@code card}, including when <a
3306-
* href="https://stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled">automatic_payment_methods.enabled</a>
3307-
* is set to {@code true}.
3308-
*
33093297
* <p>For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces,
33103298
* before being sent to card networks. For Klarna, this field is truncated to 255 characters
33113299
* and is visible to customers when they view the order in the Klarna app.

src/main/java/com/stripe/param/PaymentIntentIncrementAuthorizationParams.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1951,10 +1951,6 @@ public static class PaymentDetails {
19511951
* A unique value assigned by the business to identify the transaction. Required for L2 and L3
19521952
* rates.
19531953
*
1954-
* <p>Required when the Payment Method Types array contains {@code card}, including when <a
1955-
* href="https://stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled">automatic_payment_methods.enabled</a>
1956-
* is set to {@code true}.
1957-
*
19581954
* <p>For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before
19591955
* being sent to card networks. For Klarna, this field is truncated to 255 characters and is
19601956
* visible to customers when they view the order in the Klarna app.
@@ -2040,10 +2036,6 @@ public Builder putAllExtraParam(Map<String, Object> map) {
20402036
* A unique value assigned by the business to identify the transaction. Required for L2 and L3
20412037
* rates.
20422038
*
2043-
* <p>Required when the Payment Method Types array contains {@code card}, including when <a
2044-
* href="https://stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled">automatic_payment_methods.enabled</a>
2045-
* is set to {@code true}.
2046-
*
20472039
* <p>For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces,
20482040
* before being sent to card networks. For Klarna, this field is truncated to 255 characters
20492041
* and is visible to customers when they view the order in the Klarna app.
@@ -2057,10 +2049,6 @@ public Builder setOrderReference(String orderReference) {
20572049
* A unique value assigned by the business to identify the transaction. Required for L2 and L3
20582050
* rates.
20592051
*
2060-
* <p>Required when the Payment Method Types array contains {@code card}, including when <a
2061-
* href="https://stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled">automatic_payment_methods.enabled</a>
2062-
* is set to {@code true}.
2063-
*
20642052
* <p>For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces,
20652053
* before being sent to card networks. For Klarna, this field is truncated to 255 characters
20662054
* and is visible to customers when they view the order in the Klarna app.

0 commit comments

Comments
 (0)