Skip to content

Commit 45e172b

Browse files
committed
Codegen for openapi v152
1 parent 3b89c7f commit 45e172b

22 files changed

+3331
-242
lines changed

OPENAPI_VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v150
1+
v152

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public class Invoice extends ApiResource implements HasId, MetadataStore<Invoice
6262
@SerializedName("amount_paid")
6363
Long amountPaid;
6464

65-
/** The amount remaining, in %s, that is due. */
65+
/** The difference between amount_due and amount_paid, in %s. */
6666
@SerializedName("amount_remaining")
6767
Long amountRemaining;
6868

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

+22
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import com.stripe.net.ApiResource;
88
import com.stripe.net.RequestOptions;
99
import com.stripe.param.SetupAttemptListParams;
10+
import java.util.List;
1011
import java.util.Map;
1112
import lombok.EqualsAndHashCode;
1213
import lombok.Getter;
@@ -26,6 +27,16 @@ public class SetupAttempt extends ApiResource implements HasId {
2627
@Setter(lombok.AccessLevel.NONE)
2728
ExpandableField<Application> application;
2829

30+
/**
31+
* If present, the SetupIntent's payment method will be attached to the in-context Stripe Account.
32+
*
33+
* <p>It can only be used for this Stripe Account’s own money movement flows like InboundTransfer
34+
* and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer,
35+
* and defaults to false when attaching a PaymentMethod to a Customer.
36+
*/
37+
@SerializedName("attach_to_self")
38+
Boolean attachToSelf;
39+
2940
/** Time at which the object was created. Measured in seconds since the Unix epoch. */
3041
@SerializedName("created")
3142
Long created;
@@ -40,6 +51,17 @@ public class SetupAttempt extends ApiResource implements HasId {
4051
@Setter(lombok.AccessLevel.NONE)
4152
ExpandableField<Customer> customer;
4253

54+
/**
55+
* Indicates the directions of money movement for which this payment method is intended to be
56+
* used.
57+
*
58+
* <p>Include {@code inbound} if you intend to use the payment method as the origin to pull funds
59+
* from. Include {@code outbound} if you intend to use the payment method as the destination to
60+
* send funds to. You can include both if you intend to use the payment method for both purposes.
61+
*/
62+
@SerializedName("flow_directions")
63+
List<String> flowDirections;
64+
4365
/** Unique identifier for the object. */
4466
@Getter(onMethod_ = {@Override})
4567
@SerializedName("id")

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class Subscription extends ApiResource implements HasId, MetadataStore<Su
4343

4444
/**
4545
* Determines the date of the first full invoice, and, for plans with {@code month} or {@code
46-
* year} intervals, the day of the month for subsequent invoices.
46+
* year} intervals, the day of the month for subsequent invoices. The timestamp is in UTC format.
4747
*/
4848
@SerializedName("billing_cycle_anchor")
4949
Long billingCycleAnchor;
@@ -1163,7 +1163,8 @@ public static class PendingInvoiceItemInterval extends StripeObject {
11631163
public static class PendingUpdate extends StripeObject {
11641164
/**
11651165
* If the update is applied, determines the date of the first full invoice, and, for plans with
1166-
* {@code month} or {@code year} intervals, the day of the month for subsequent invoices.
1166+
* {@code month} or {@code year} intervals, the day of the month for subsequent invoices. The
1167+
* timestamp is in UTC format.
11671168
*/
11681169
@SerializedName("billing_cycle_anchor")
11691170
Long billingCycleAnchor;

0 commit comments

Comments
 (0)