Skip to content

Commit

Permalink
Update generated code for v1332
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Nov 5, 2024
1 parent 22a13ba commit 65353b8
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 29 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1331
v1332
Original file line number Diff line number Diff line change
Expand Up @@ -656,8 +656,8 @@ public static class Address {
String city;

/**
* <strong>Required.</strong> Two-letter country code (<a
* href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO 3166-1 alpha-2</a>).
* Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO
* 3166-1 alpha-2</a>).
*/
@SerializedName("country")
String country;
Expand Down Expand Up @@ -745,8 +745,8 @@ public Builder setCity(String city) {
}

/**
* <strong>Required.</strong> Two-letter country code (<a
* href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO 3166-1 alpha-2</a>).
* Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO
* 3166-1 alpha-2</a>).
*/
public Builder setCountry(String country) {
this.country = country;
Expand Down Expand Up @@ -813,8 +813,7 @@ public Builder setState(String state) {
@Getter
public static class Custom {
/**
* <strong>Required.</strong> Display name for the custom (user-defined) payment method type
* used to make this payment.
* Display name for the custom (user-defined) payment method type used to make this payment.
*/
@SerializedName("display_name")
String displayName;
Expand All @@ -828,9 +827,14 @@ public static class Custom {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map<String, Object> extraParams;

private Custom(String displayName, Map<String, Object> extraParams) {
/** The custom payment method type associated with this payment. */
@SerializedName("type")
String type;

private Custom(String displayName, Map<String, Object> extraParams, String type) {
this.displayName = displayName;
this.extraParams = extraParams;
this.type = type;
}

public static Builder builder() {
Expand All @@ -842,15 +846,16 @@ public static class Builder {

private Map<String, Object> extraParams;

private String type;

/** Finalize and obtain parameter instance from this builder. */
public PaymentRecordReportPaymentAttemptParams.PaymentMethodDetails.Custom build() {
return new PaymentRecordReportPaymentAttemptParams.PaymentMethodDetails.Custom(
this.displayName, this.extraParams);
this.displayName, this.extraParams, this.type);
}

/**
* <strong>Required.</strong> Display name for the custom (user-defined) payment method type
* used to make this payment.
* Display name for the custom (user-defined) payment method type used to make this payment.
*/
public Builder setDisplayName(String displayName) {
this.displayName = displayName;
Expand Down Expand Up @@ -886,6 +891,12 @@ public Builder putAllExtraParam(Map<String, Object> map) {
this.extraParams.putAll(map);
return this;
}

/** The custom payment method type associated with this payment. */
public Builder setType(String type) {
this.type = type;
return this;
}
}
}

Expand Down Expand Up @@ -1007,8 +1018,8 @@ public static class Address {
String city;

/**
* <strong>Required.</strong> Two-letter country code (<a
* href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO 3166-1 alpha-2</a>).
* Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO
* 3166-1 alpha-2</a>).
*/
@SerializedName("country")
String country;
Expand Down Expand Up @@ -1093,8 +1104,8 @@ public Builder setCity(String city) {
}

/**
* <strong>Required.</strong> Two-letter country code (<a
* href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO 3166-1 alpha-2</a>).
* Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO
* 3166-1 alpha-2</a>).
*/
public Builder setCountry(String country) {
this.country = country;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -929,8 +929,8 @@ public static class Address {
String city;

/**
* <strong>Required.</strong> Two-letter country code (<a
* href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO 3166-1 alpha-2</a>).
* Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO
* 3166-1 alpha-2</a>).
*/
@SerializedName("country")
String country;
Expand Down Expand Up @@ -1017,8 +1017,8 @@ public Builder setCity(String city) {
}

/**
* <strong>Required.</strong> Two-letter country code (<a
* href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO 3166-1 alpha-2</a>).
* Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO
* 3166-1 alpha-2</a>).
*/
public Builder setCountry(String country) {
this.country = country;
Expand Down Expand Up @@ -1085,8 +1085,7 @@ public Builder setState(String state) {
@Getter
public static class Custom {
/**
* <strong>Required.</strong> Display name for the custom (user-defined) payment method type
* used to make this payment.
* Display name for the custom (user-defined) payment method type used to make this payment.
*/
@SerializedName("display_name")
String displayName;
Expand All @@ -1100,9 +1099,14 @@ public static class Custom {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map<String, Object> extraParams;

private Custom(String displayName, Map<String, Object> extraParams) {
/** The custom payment method type associated with this payment. */
@SerializedName("type")
String type;

private Custom(String displayName, Map<String, Object> extraParams, String type) {
this.displayName = displayName;
this.extraParams = extraParams;
this.type = type;
}

public static Builder builder() {
Expand All @@ -1114,15 +1118,16 @@ public static class Builder {

private Map<String, Object> extraParams;

private String type;

/** Finalize and obtain parameter instance from this builder. */
public PaymentRecordReportPaymentParams.PaymentMethodDetails.Custom build() {
return new PaymentRecordReportPaymentParams.PaymentMethodDetails.Custom(
this.displayName, this.extraParams);
this.displayName, this.extraParams, this.type);
}

/**
* <strong>Required.</strong> Display name for the custom (user-defined) payment method type
* used to make this payment.
* Display name for the custom (user-defined) payment method type used to make this payment.
*/
public Builder setDisplayName(String displayName) {
this.displayName = displayName;
Expand Down Expand Up @@ -1156,6 +1161,12 @@ public Builder putAllExtraParam(Map<String, Object> map) {
this.extraParams.putAll(map);
return this;
}

/** The custom payment method type associated with this payment. */
public Builder setType(String type) {
this.type = type;
return this;
}
}
}

Expand Down Expand Up @@ -1275,8 +1286,8 @@ public static class Address {
String city;

/**
* <strong>Required.</strong> Two-letter country code (<a
* href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO 3166-1 alpha-2</a>).
* Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO
* 3166-1 alpha-2</a>).
*/
@SerializedName("country")
String country;
Expand Down Expand Up @@ -1361,8 +1372,8 @@ public Builder setCity(String city) {
}

/**
* <strong>Required.</strong> Two-letter country code (<a
* href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO 3166-1 alpha-2</a>).
* Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO
* 3166-1 alpha-2</a>).
*/
public Builder setCountry(String country) {
this.country = country;
Expand Down

0 comments on commit 65353b8

Please sign in to comment.