Skip to content

Commit

Permalink
Merge pull request #1510 from stripe/latest-codegen-master
Browse files Browse the repository at this point in the history
API Updates
  • Loading branch information
anniel-stripe committed Jan 26, 2023
2 parents 71b17fb + 0a8a25e commit 63ebbdf
Show file tree
Hide file tree
Showing 16 changed files with 92 additions and 50 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v219
v221
7 changes: 4 additions & 3 deletions src/main/java/com/stripe/model/Charge.java
Original file line number Diff line number Diff line change
Expand Up @@ -2416,9 +2416,10 @@ public static class Klarna extends StripeObject {
* de-DE}, {@code en-DE}, {@code da-DK}, {@code en-DK}, {@code es-ES}, {@code en-ES}, {@code
* fi-FI}, {@code sv-FI}, {@code en-FI}, {@code en-GB}, {@code en-IE}, {@code it-IT}, {@code
* en-IT}, {@code nl-NL}, {@code en-NL}, {@code nb-NO}, {@code en-NO}, {@code sv-SE}, {@code
* en-SE}, {@code en-US}, {@code es-US}, {@code fr-FR}, {@code en-FR}, {@code en-AU}, {@code
* en-NZ}, {@code en-CA}, {@code fr-CA}, {@code pl-PL}, {@code en-PL}, {@code pt-PT}, {@code
* en-PT}, {@code de-CH}, {@code fr-CH}, {@code it-CH}, or {@code en-CH}
* en-SE}, {@code en-US}, {@code es-US}, {@code fr-FR}, {@code en-FR}, {@code cs-CZ}, {@code
* en-CZ}, {@code el-GR}, {@code en-GR}, {@code en-AU}, {@code en-NZ}, {@code en-CA}, {@code
* fr-CA}, {@code pl-PL}, {@code en-PL}, {@code pt-PT}, {@code en-PT}, {@code de-CH}, {@code
* fr-CH}, {@code it-CH}, or {@code en-CH}
*/
@SerializedName("preferred_locale")
String preferredLocale;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/stripe/model/Invoice.java
Original file line number Diff line number Diff line change
Expand Up @@ -1947,9 +1947,9 @@ public static class BankTransfer extends StripeObject {
public static class EuBankTransfer extends StripeObject {
/**
* The desired country code of the bank account information. Permitted values include:
* {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
* {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
*
* <p>One of {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
* <p>One of {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
*/
@SerializedName("country")
String country;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/stripe/model/PaymentIntent.java
Original file line number Diff line number Diff line change
Expand Up @@ -2751,9 +2751,9 @@ public static class BankTransfer extends StripeObject {
public static class EuBankTransfer extends StripeObject {
/**
* The desired country code of the bank account information. Permitted values include:
* {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
* {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
*
* <p>One of {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
* <p>One of {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
*/
@SerializedName("country")
String country;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/stripe/model/Subscription.java
Original file line number Diff line number Diff line change
Expand Up @@ -1160,9 +1160,9 @@ public static class BankTransfer extends StripeObject {
public static class EuBankTransfer extends StripeObject {
/**
* The desired country code of the bank account information. Permitted values include:
* {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
* {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
*
* <p>One of {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
* <p>One of {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
*/
@SerializedName("country")
String country;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/stripe/model/checkout/Session.java
Original file line number Diff line number Diff line change
Expand Up @@ -1448,9 +1448,9 @@ public static class BankTransfer extends StripeObject {
public static class EuBankTransfer extends StripeObject {
/**
* The desired country code of the bank account information. Permitted values include:
* {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
* {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
*
* <p>One of {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
* <p>One of {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
*/
@SerializedName("country")
String country;
Expand Down
10 changes: 8 additions & 2 deletions src/main/java/com/stripe/model/issuing/Cardholder.java
Original file line number Diff line number Diff line change
Expand Up @@ -291,11 +291,17 @@ public static class Individual extends StripeObject {
@SerializedName("dob")
Dob dob;

/** The first name of this cardholder. */
/**
* The first name of this cardholder. This field cannot contain any numbers, special characters
* (except periods, commas, hyphens, spaces and apostrophes) or non-latin letters.
*/
@SerializedName("first_name")
String firstName;

/** The last name of this cardholder. */
/**
* The last name of this cardholder. This field cannot contain any numbers, special characters
* (except periods, commas, hyphens, spaces and apostrophes) or non-latin letters.
*/
@SerializedName("last_name")
String lastName;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ public Builder setType(CustomerCreateFundingInstructionsParams.BankTransfer.Type
public static class EuBankTransfer {
/**
* The desired country code of the bank account information. Permitted values include: {@code
* DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
* BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
*/
@SerializedName("country")
String country;
Expand Down Expand Up @@ -324,7 +324,7 @@ public CustomerCreateFundingInstructionsParams.BankTransfer.EuBankTransfer build

/**
* The desired country code of the bank account information. Permitted values include:
* {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
* {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
*/
public Builder setCountry(String country) {
this.country = country;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/stripe/param/InvoiceCreateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -2444,7 +2444,7 @@ public Builder setType(String type) {
public static class EuBankTransfer {
/**
* The desired country code of the bank account information. Permitted values include:
* {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
* {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
*/
@SerializedName("country")
String country;
Expand Down Expand Up @@ -2483,7 +2483,7 @@ public static class Builder {

/**
* The desired country code of the bank account information. Permitted values include:
* {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
* {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
*/
public Builder setCountry(String country) {
this.country = country;
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/stripe/param/InvoiceUpdateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -2389,7 +2389,7 @@ public Builder setType(EmptyParam type) {
public static class EuBankTransfer {
/**
* The desired country code of the bank account information. Permitted values include:
* {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
* {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
*/
@SerializedName("country")
Object country;
Expand Down Expand Up @@ -2428,7 +2428,7 @@ public static class Builder {

/**
* The desired country code of the bank account information. Permitted values include:
* {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
* {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
*/
public Builder setCountry(String country) {
this.country = country;
Expand All @@ -2437,7 +2437,7 @@ public Builder setCountry(String country) {

/**
* The desired country code of the bank account information. Permitted values include:
* {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
* {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
*/
public Builder setCountry(EmptyParam country) {
this.country = country;
Expand Down
16 changes: 14 additions & 2 deletions src/main/java/com/stripe/param/PaymentIntentConfirmParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -8592,7 +8592,7 @@ public Builder setType(
public static class EuBankTransfer {
/**
* The desired country code of the bank account information. Permitted values include:
* {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
* {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
*/
@SerializedName("country")
String country;
Expand Down Expand Up @@ -8631,7 +8631,7 @@ public static class Builder {

/**
* The desired country code of the bank account information. Permitted values include:
* {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
* {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
*/
public Builder setCountry(String country) {
this.country = country;
Expand Down Expand Up @@ -9624,6 +9624,9 @@ public enum CaptureMethod implements ApiRequestParams.EnumParam {
}

public enum PreferredLocale implements ApiRequestParams.EnumParam {
@SerializedName("cs-CZ")
CS_CZ("cs-CZ"),

@SerializedName("da-DK")
DA_DK("da-DK"),

Expand All @@ -9636,6 +9639,9 @@ public enum PreferredLocale implements ApiRequestParams.EnumParam {
@SerializedName("de-DE")
DE_DE("de-DE"),

@SerializedName("el-GR")
EL_GR("el-GR"),

@SerializedName("en-AT")
EN_AT("en-AT"),

Expand All @@ -9651,6 +9657,9 @@ public enum PreferredLocale implements ApiRequestParams.EnumParam {
@SerializedName("en-CH")
EN_CH("en-CH"),

@SerializedName("en-CZ")
EN_CZ("en-CZ"),

@SerializedName("en-DE")
EN_DE("en-DE"),

Expand All @@ -9669,6 +9678,9 @@ public enum PreferredLocale implements ApiRequestParams.EnumParam {
@SerializedName("en-GB")
EN_GB("en-GB"),

@SerializedName("en-GR")
EN_GR("en-GR"),

@SerializedName("en-IE")
EN_IE("en-IE"),

Expand Down
16 changes: 14 additions & 2 deletions src/main/java/com/stripe/param/PaymentIntentCreateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -9031,7 +9031,7 @@ public Builder setType(
public static class EuBankTransfer {
/**
* The desired country code of the bank account information. Permitted values include:
* {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
* {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
*/
@SerializedName("country")
String country;
Expand Down Expand Up @@ -9070,7 +9070,7 @@ public static class Builder {

/**
* The desired country code of the bank account information. Permitted values include:
* {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
* {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
*/
public Builder setCountry(String country) {
this.country = country;
Expand Down Expand Up @@ -10062,6 +10062,9 @@ public enum CaptureMethod implements ApiRequestParams.EnumParam {
}

public enum PreferredLocale implements ApiRequestParams.EnumParam {
@SerializedName("cs-CZ")
CS_CZ("cs-CZ"),

@SerializedName("da-DK")
DA_DK("da-DK"),

Expand All @@ -10074,6 +10077,9 @@ public enum PreferredLocale implements ApiRequestParams.EnumParam {
@SerializedName("de-DE")
DE_DE("de-DE"),

@SerializedName("el-GR")
EL_GR("el-GR"),

@SerializedName("en-AT")
EN_AT("en-AT"),

Expand All @@ -10089,6 +10095,9 @@ public enum PreferredLocale implements ApiRequestParams.EnumParam {
@SerializedName("en-CH")
EN_CH("en-CH"),

@SerializedName("en-CZ")
EN_CZ("en-CZ"),

@SerializedName("en-DE")
EN_DE("en-DE"),

Expand All @@ -10107,6 +10116,9 @@ public enum PreferredLocale implements ApiRequestParams.EnumParam {
@SerializedName("en-GB")
EN_GB("en-GB"),

@SerializedName("en-GR")
EN_GR("en-GR"),

@SerializedName("en-IE")
EN_IE("en-IE"),

Expand Down
18 changes: 15 additions & 3 deletions src/main/java/com/stripe/param/PaymentIntentUpdateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -8649,7 +8649,7 @@ public Builder setType(
public static class EuBankTransfer {
/**
* The desired country code of the bank account information. Permitted values include:
* {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
* {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
*/
@SerializedName("country")
Object country;
Expand Down Expand Up @@ -8688,7 +8688,7 @@ public static class Builder {

/**
* The desired country code of the bank account information. Permitted values include:
* {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
* {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
*/
public Builder setCountry(String country) {
this.country = country;
Expand All @@ -8697,7 +8697,7 @@ public Builder setCountry(String country) {

/**
* The desired country code of the bank account information. Permitted values include:
* {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
* {@code BE}, {@code DE}, {@code ES}, {@code FR}, {@code IE}, or {@code NL}.
*/
public Builder setCountry(EmptyParam country) {
this.country = country;
Expand Down Expand Up @@ -9689,6 +9689,9 @@ public enum CaptureMethod implements ApiRequestParams.EnumParam {
}

public enum PreferredLocale implements ApiRequestParams.EnumParam {
@SerializedName("cs-CZ")
CS_CZ("cs-CZ"),

@SerializedName("da-DK")
DA_DK("da-DK"),

Expand All @@ -9701,6 +9704,9 @@ public enum PreferredLocale implements ApiRequestParams.EnumParam {
@SerializedName("de-DE")
DE_DE("de-DE"),

@SerializedName("el-GR")
EL_GR("el-GR"),

@SerializedName("en-AT")
EN_AT("en-AT"),

Expand All @@ -9716,6 +9722,9 @@ public enum PreferredLocale implements ApiRequestParams.EnumParam {
@SerializedName("en-CH")
EN_CH("en-CH"),

@SerializedName("en-CZ")
EN_CZ("en-CZ"),

@SerializedName("en-DE")
EN_DE("en-DE"),

Expand All @@ -9734,6 +9743,9 @@ public enum PreferredLocale implements ApiRequestParams.EnumParam {
@SerializedName("en-GB")
EN_GB("en-GB"),

@SerializedName("en-GR")
EN_GR("en-GR"),

@SerializedName("en-IE")
EN_IE("en-IE"),

Expand Down

0 comments on commit 63ebbdf

Please sign in to comment.