Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generated code #1866

Merged
merged 4 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
Update generated code for v1254
  • Loading branch information
stripe-openapi[bot] committed Sep 13, 2024
commit cd0769a6a7fb6350bed06a99b5b7a7f53622e387
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1259
v1254
3 changes: 0 additions & 3 deletions src/main/java/com/stripe/model/PaymentLink.java
Original file line number Diff line number Diff line change
Expand Up @@ -1180,9 +1180,6 @@ public static class TaxIdCollection extends StripeObject {
/** Indicates whether tax ID collection is enabled for the session. */
@SerializedName("enabled")
Boolean enabled;

@SerializedName("required")
String required;
}

@Getter
Expand Down
8 changes: 0 additions & 8 deletions src/main/java/com/stripe/model/checkout/Session.java
Original file line number Diff line number Diff line change
Expand Up @@ -2849,14 +2849,6 @@ public static class TaxIdCollection extends StripeObject {
/** Indicates whether tax ID collection is enabled for the session. */
@SerializedName("enabled")
Boolean enabled;

/**
* Indicates whether a tax ID is required on the payment page
*
* <p>One of {@code if_supported}, or {@code never}.
*/
@SerializedName("required")
String required;
}

@Getter
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/stripe/model/issuing/Card.java
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ public static class Shipping extends StripeObject {
* The delivery status of the card.
*
* <p>One of {@code canceled}, {@code delivered}, {@code failure}, {@code pending}, {@code
* returned}, {@code shipped}, or {@code submitted}.
* returned}, or {@code shipped}.
*/
@SerializedName("status")
String status;
Expand Down
33 changes: 2 additions & 31 deletions src/main/java/com/stripe/param/PaymentLinkCreateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -5454,14 +5454,9 @@ public static class TaxIdCollection {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map<String, Object> extraParams;

/** Describes whether a tax ID is required during checkout. Defaults to {@code never}. */
@SerializedName("required")
Required required;

private TaxIdCollection(Boolean enabled, Map<String, Object> extraParams, Required required) {
private TaxIdCollection(Boolean enabled, Map<String, Object> extraParams) {
this.enabled = enabled;
this.extraParams = extraParams;
this.required = required;
}

public static Builder builder() {
Expand All @@ -5473,12 +5468,9 @@ public static class Builder {

private Map<String, Object> extraParams;

private Required required;

/** Finalize and obtain parameter instance from this builder. */
public PaymentLinkCreateParams.TaxIdCollection build() {
return new PaymentLinkCreateParams.TaxIdCollection(
this.enabled, this.extraParams, this.required);
return new PaymentLinkCreateParams.TaxIdCollection(this.enabled, this.extraParams);
}

/**
Expand Down Expand Up @@ -5516,27 +5508,6 @@ public Builder putAllExtraParam(Map<String, Object> map) {
this.extraParams.putAll(map);
return this;
}

/** Describes whether a tax ID is required during checkout. Defaults to {@code never}. */
public Builder setRequired(PaymentLinkCreateParams.TaxIdCollection.Required required) {
this.required = required;
return this;
}
}

public enum Required implements ApiRequestParams.EnumParam {
@SerializedName("if_supported")
IF_SUPPORTED("if_supported"),

@SerializedName("never")
NEVER("never");

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

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

Expand Down
33 changes: 2 additions & 31 deletions src/main/java/com/stripe/param/PaymentLinkUpdateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -4995,14 +4995,9 @@ public static class TaxIdCollection {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map<String, Object> extraParams;

/** Describes whether a tax ID is required during checkout. Defaults to {@code never}. */
@SerializedName("required")
Required required;

private TaxIdCollection(Boolean enabled, Map<String, Object> extraParams, Required required) {
private TaxIdCollection(Boolean enabled, Map<String, Object> extraParams) {
this.enabled = enabled;
this.extraParams = extraParams;
this.required = required;
}

public static Builder builder() {
Expand All @@ -5014,12 +5009,9 @@ public static class Builder {

private Map<String, Object> extraParams;

private Required required;

/** Finalize and obtain parameter instance from this builder. */
public PaymentLinkUpdateParams.TaxIdCollection build() {
return new PaymentLinkUpdateParams.TaxIdCollection(
this.enabled, this.extraParams, this.required);
return new PaymentLinkUpdateParams.TaxIdCollection(this.enabled, this.extraParams);
}

/**
Expand Down Expand Up @@ -5057,27 +5049,6 @@ public Builder putAllExtraParam(Map<String, Object> map) {
this.extraParams.putAll(map);
return this;
}

/** Describes whether a tax ID is required during checkout. Defaults to {@code never}. */
public Builder setRequired(PaymentLinkUpdateParams.TaxIdCollection.Required required) {
this.required = required;
return this;
}
}

public enum Required implements ApiRequestParams.EnumParam {
@SerializedName("if_supported")
IF_SUPPORTED("if_supported"),

@SerializedName("never")
NEVER("never");

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

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

Expand Down
33 changes: 2 additions & 31 deletions src/main/java/com/stripe/param/checkout/SessionCreateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -14529,14 +14529,9 @@ public static class TaxIdCollection {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map<String, Object> extraParams;

/** Describes whether a tax ID is required during checkout. Defaults to {@code never}. */
@SerializedName("required")
Required required;

private TaxIdCollection(Boolean enabled, Map<String, Object> extraParams, Required required) {
private TaxIdCollection(Boolean enabled, Map<String, Object> extraParams) {
this.enabled = enabled;
this.extraParams = extraParams;
this.required = required;
}

public static Builder builder() {
Expand All @@ -14548,12 +14543,9 @@ public static class Builder {

private Map<String, Object> extraParams;

private Required required;

/** Finalize and obtain parameter instance from this builder. */
public SessionCreateParams.TaxIdCollection build() {
return new SessionCreateParams.TaxIdCollection(
this.enabled, this.extraParams, this.required);
return new SessionCreateParams.TaxIdCollection(this.enabled, this.extraParams);
}

/**
Expand Down Expand Up @@ -14590,27 +14582,6 @@ public Builder putAllExtraParam(Map<String, Object> map) {
this.extraParams.putAll(map);
return this;
}

/** Describes whether a tax ID is required during checkout. Defaults to {@code never}. */
public Builder setRequired(SessionCreateParams.TaxIdCollection.Required required) {
this.required = required;
return this;
}
}

public enum Required implements ApiRequestParams.EnumParam {
@SerializedName("if_supported")
IF_SUPPORTED("if_supported"),

@SerializedName("never")
NEVER("never");

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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class LocationCreateParams extends ApiRequestParams {
@SerializedName("configuration_overrides")
String configurationOverrides;

/** <strong>Required.</strong> A name for the location. Maximum length is 1000 characters. */
/** <strong>Required.</strong> A name for the location. */
@SerializedName("display_name")
String displayName;

Expand Down Expand Up @@ -101,7 +101,7 @@ public Builder setConfigurationOverrides(String configurationOverrides) {
return this;
}

/** <strong>Required.</strong> A name for the location. Maximum length is 1000 characters. */
/** <strong>Required.</strong> A name for the location. */
public Builder setDisplayName(String displayName) {
this.displayName = displayName;
return this;
Expand Down
Loading