Skip to content

Commit

Permalink
Update generated code (#1829)
Browse files Browse the repository at this point in the history
* Update generated code for v1096

* Update generated code for v1097

* Update generated code for v1099

* Update generated code for v1101

* Update generated code for v1103

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] committed Jun 27, 2024
1 parent 2b6f0d6 commit 432cc6b
Show file tree
Hide file tree
Showing 28 changed files with 2,141 additions and 19 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1095
v1103
4 changes: 2 additions & 2 deletions src/main/java/com/stripe/model/Capability.java
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ public static class FutureRequirements extends StripeObject {
List<String> currentlyDue;

/**
* This is typed as a string for consistency with {@code requirements.disabled_reason}, but it
* safe to assume {@code future_requirements.disabled_reason} is empty because fields in {@code
* This is typed as an enum for consistency with {@code requirements.disabled_reason}, but it
* safe to assume {@code future_requirements.disabled_reason} is null because fields in {@code
* future_requirements} will never disable the account.
*
* <p>One of {@code other}, {@code paused.inactivity}, {@code pending.onboarding}, {@code
Expand Down
15 changes: 15 additions & 0 deletions src/main/java/com/stripe/model/Invoice.java
Original file line number Diff line number Diff line change
Expand Up @@ -2436,6 +2436,9 @@ public static class UsBankAccount extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class FinancialConnections extends StripeObject {
@SerializedName("filters")
Filters filters;

/**
* The list of permissions to request. The {@code payment_method} permission must be
* included.
Expand All @@ -2446,6 +2449,18 @@ public static class FinancialConnections extends StripeObject {
/** Data features requested to be retrieved upon account creation. */
@SerializedName("prefetch")
List<String> prefetch;

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Filters extends StripeObject {
/**
* The account subcategories to use to filter for possible accounts to link. Valid
* subcategories are {@code checking} and {@code savings}.
*/
@SerializedName("account_subcategories")
List<String> accountSubcategories;
}
}
}
}
Expand Down
15 changes: 15 additions & 0 deletions src/main/java/com/stripe/model/PaymentIntent.java
Original file line number Diff line number Diff line change
Expand Up @@ -3886,6 +3886,9 @@ public static class UsBankAccount extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class FinancialConnections extends StripeObject {
@SerializedName("filters")
Filters filters;

/**
* The list of permissions to request. The {@code payment_method} permission must be
* included.
Expand All @@ -3903,6 +3906,18 @@ public static class FinancialConnections extends StripeObject {
*/
@SerializedName("return_url")
String returnUrl;

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Filters extends StripeObject {
/**
* The account subcategories to use to filter for possible accounts to link. Valid
* subcategories are {@code checking} and {@code savings}.
*/
@SerializedName("account_subcategories")
List<String> accountSubcategories;
}
}

@Getter
Expand Down
15 changes: 15 additions & 0 deletions src/main/java/com/stripe/model/SetupIntent.java
Original file line number Diff line number Diff line change
Expand Up @@ -1229,6 +1229,9 @@ public static class UsBankAccount extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class FinancialConnections extends StripeObject {
@SerializedName("filters")
Filters filters;

/**
* The list of permissions to request. The {@code payment_method} permission must be
* included.
Expand All @@ -1246,6 +1249,18 @@ public static class FinancialConnections extends StripeObject {
*/
@SerializedName("return_url")
String returnUrl;

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Filters extends StripeObject {
/**
* The account subcategories to use to filter for possible accounts to link. Valid
* subcategories are {@code checking} and {@code savings}.
*/
@SerializedName("account_subcategories")
List<String> accountSubcategories;
}
}

@Getter
Expand Down
15 changes: 15 additions & 0 deletions src/main/java/com/stripe/model/Subscription.java
Original file line number Diff line number Diff line change
Expand Up @@ -1776,6 +1776,9 @@ public static class UsBankAccount extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class FinancialConnections extends StripeObject {
@SerializedName("filters")
Filters filters;

/**
* The list of permissions to request. The {@code payment_method} permission must be
* included.
Expand All @@ -1786,6 +1789,18 @@ public static class FinancialConnections extends StripeObject {
/** Data features requested to be retrieved upon account creation. */
@SerializedName("prefetch")
List<String> prefetch;

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Filters extends StripeObject {
/**
* The account subcategories to use to filter for possible accounts to link. Valid
* subcategories are {@code checking} and {@code savings}.
*/
@SerializedName("account_subcategories")
List<String> accountSubcategories;
}
}
}
}
Expand Down
15 changes: 15 additions & 0 deletions src/main/java/com/stripe/model/checkout/Session.java
Original file line number Diff line number Diff line change
Expand Up @@ -2486,6 +2486,9 @@ public static class UsBankAccount extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class FinancialConnections extends StripeObject {
@SerializedName("filters")
Filters filters;

/**
* The list of permissions to request. The {@code payment_method} permission must be
* included.
Expand All @@ -2503,6 +2506,18 @@ public static class FinancialConnections extends StripeObject {
*/
@SerializedName("return_url")
String returnUrl;

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Filters extends StripeObject {
/**
* The account subcategories to use to filter for possible accounts to link. Valid
* subcategories are {@code checking} and {@code savings}.
*/
@SerializedName("account_subcategories")
List<String> accountSubcategories;
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,14 @@ public void setCustomerObject(Customer expandableObject) {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Filters extends StripeObject {
/**
* Restricts the Session to subcategories of accounts that can be linked. Valid subcategories
* are: {@code checking}, {@code savings}, {@code mortgage}, {@code line_of_credit}, {@code
* credit_card}.
*/
@SerializedName("account_subcategories")
List<String> accountSubcategories;

/** List of countries from which to filter accounts. */
@SerializedName("countries")
List<String> countries;
Expand Down
20 changes: 20 additions & 0 deletions src/main/java/com/stripe/model/terminal/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ public class Configuration extends ApiResource implements HasId {
@SerializedName("offline")
Offline offline;

@SerializedName("reboot_window")
RebootWindow rebootWindow;

@SerializedName("stripe_s700")
StripeS700 stripeS700;

Expand Down Expand Up @@ -295,6 +298,22 @@ public static class Offline extends StripeObject {
Boolean enabled;
}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class RebootWindow extends StripeObject {
/**
* Integer between 0 to 23 that represents the end hour of the reboot time window. The value
* must be different than the start_hour.
*/
@SerializedName("end_hour")
Long endHour;

/** Integer between 0 to 23 that represents the start hour of the reboot time window. */
@SerializedName("start_hour")
Long startHour;
}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
Expand Down Expand Up @@ -685,6 +704,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
super.setResponseGetter(responseGetter);
trySetResponseGetter(bbposWiseposE, responseGetter);
trySetResponseGetter(offline, responseGetter);
trySetResponseGetter(rebootWindow, responseGetter);
trySetResponseGetter(stripeS700, responseGetter);
trySetResponseGetter(tipping, responseGetter);
trySetResponseGetter(verifoneP400, responseGetter);
Expand Down
36 changes: 36 additions & 0 deletions src/main/java/com/stripe/param/CreditNoteCreateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ public class CreditNoteCreateParams extends ApiRequestParams {
@SerializedName("effective_at")
Long effectiveAt;

/**
* Type of email to send to the customer, one of {@code credit_note} or {@code none} and the
* default is {@code credit_note}.
*/
@SerializedName("email_type")
EmailType emailType;

/** Specifies which fields in the response should be expanded. */
@SerializedName("expand")
List<String> expand;
Expand Down Expand Up @@ -105,6 +112,7 @@ private CreditNoteCreateParams(
Long amount,
Long creditAmount,
Long effectiveAt,
EmailType emailType,
List<String> expand,
Map<String, Object> extraParams,
String invoice,
Expand All @@ -119,6 +127,7 @@ private CreditNoteCreateParams(
this.amount = amount;
this.creditAmount = creditAmount;
this.effectiveAt = effectiveAt;
this.emailType = emailType;
this.expand = expand;
this.extraParams = extraParams;
this.invoice = invoice;
Expand All @@ -143,6 +152,8 @@ public static class Builder {

private Long effectiveAt;

private EmailType emailType;

private List<String> expand;

private Map<String, Object> extraParams;
Expand Down Expand Up @@ -171,6 +182,7 @@ public CreditNoteCreateParams build() {
this.amount,
this.creditAmount,
this.effectiveAt,
this.emailType,
this.expand,
this.extraParams,
this.invoice,
Expand Down Expand Up @@ -212,6 +224,15 @@ public Builder setEffectiveAt(Long effectiveAt) {
return this;
}

/**
* Type of email to send to the customer, one of {@code credit_note} or {@code none} and the
* default is {@code credit_note}.
*/
public Builder setEmailType(CreditNoteCreateParams.EmailType emailType) {
this.emailType = emailType;
return this;
}

/**
* Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and
* subsequent calls adds additional elements to the original list. See {@link
Expand Down Expand Up @@ -880,6 +901,21 @@ public Builder setShippingRate(String shippingRate) {
}
}

public enum EmailType implements ApiRequestParams.EnumParam {
@SerializedName("credit_note")
CREDIT_NOTE("credit_note"),

@SerializedName("none")
NONE("none");

@Getter(onMethod_ = {@Override})
private final String value;

EmailType(String value) {
this.value = value;
}
}

public enum Reason implements ApiRequestParams.EnumParam {
@SerializedName("duplicate")
DUPLICATE("duplicate"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ public class CreditNotePreviewLinesListParams extends ApiRequestParams {
@SerializedName("effective_at")
Long effectiveAt;

/**
* Type of email to send to the customer, one of {@code credit_note} or {@code none} and the
* default is {@code credit_note}.
*/
@SerializedName("email_type")
EmailType emailType;

/**
* A cursor for use in pagination. {@code ending_before} is an object ID that defines your place
* in the list. For instance, if you make a list request and receive 100 objects, starting with
Expand Down Expand Up @@ -130,6 +137,7 @@ private CreditNotePreviewLinesListParams(
Long amount,
Long creditAmount,
Long effectiveAt,
EmailType emailType,
String endingBefore,
List<String> expand,
Map<String, Object> extraParams,
Expand All @@ -147,6 +155,7 @@ private CreditNotePreviewLinesListParams(
this.amount = amount;
this.creditAmount = creditAmount;
this.effectiveAt = effectiveAt;
this.emailType = emailType;
this.endingBefore = endingBefore;
this.expand = expand;
this.extraParams = extraParams;
Expand Down Expand Up @@ -174,6 +183,8 @@ public static class Builder {

private Long effectiveAt;

private EmailType emailType;

private String endingBefore;

private List<String> expand;
Expand Down Expand Up @@ -208,6 +219,7 @@ public CreditNotePreviewLinesListParams build() {
this.amount,
this.creditAmount,
this.effectiveAt,
this.emailType,
this.endingBefore,
this.expand,
this.extraParams,
Expand Down Expand Up @@ -252,6 +264,15 @@ public Builder setEffectiveAt(Long effectiveAt) {
return this;
}

/**
* Type of email to send to the customer, one of {@code credit_note} or {@code none} and the
* default is {@code credit_note}.
*/
public Builder setEmailType(CreditNotePreviewLinesListParams.EmailType emailType) {
this.emailType = emailType;
return this;
}

/**
* A cursor for use in pagination. {@code ending_before} is an object ID that defines your place
* in the list. For instance, if you make a list request and receive 100 objects, starting with
Expand Down Expand Up @@ -955,6 +976,21 @@ public Builder setShippingRate(String shippingRate) {
}
}

public enum EmailType implements ApiRequestParams.EnumParam {
@SerializedName("credit_note")
CREDIT_NOTE("credit_note"),

@SerializedName("none")
NONE("none");

@Getter(onMethod_ = {@Override})
private final String value;

EmailType(String value) {
this.value = value;
}
}

public enum Reason implements ApiRequestParams.EnumParam {
@SerializedName("duplicate")
DUPLICATE("duplicate"),
Expand Down
Loading

0 comments on commit 432cc6b

Please sign in to comment.