Skip to content

Commit

Permalink
Update generated code for v1455
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Jan 17, 2025
1 parent cdd6143 commit c26e246
Show file tree
Hide file tree
Showing 48 changed files with 4,919 additions and 33 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1441
v1455
2 changes: 1 addition & 1 deletion src/main/java/com/stripe/ApiVersion.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
package com.stripe;

final class ApiVersion {
public static final String CURRENT = "2024-12-18.acacia";
public static final String CURRENT = "2025-01-27.acacia";
}
43 changes: 43 additions & 0 deletions src/main/java/com/stripe/model/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -1180,6 +1180,15 @@ public static class Capabilities extends StripeObject {
@SerializedName("p24_payments")
String p24Payments;

/**
* The status of the pay_by_bank payments capability of the account, or whether the account can
* directly process pay_by_bank charges.
*
* <p>One of {@code active}, {@code inactive}, or {@code pending}.
*/
@SerializedName("pay_by_bank_payments")
String payByBankPayments;

/**
* The status of the Payco capability of the account, or whether the account can directly
* process Payco payments.
Expand Down Expand Up @@ -1359,6 +1368,13 @@ public static class Company extends StripeObject {
@SerializedName("directors_provided")
Boolean directorsProvided;

/**
* This hash is used to attest that the director information provided to Stripe is both current
* and correct.
*/
@SerializedName("directorship_declaration")
DirectorshipDeclaration directorshipDeclaration;

/**
* Whether the company's executives have been provided. This Boolean will be {@code true} if
* you've manually indicated that all executives are provided via <a
Expand Down Expand Up @@ -1411,6 +1427,9 @@ public static class Company extends StripeObject {
@SerializedName("ownership_declaration")
OwnershipDeclaration ownershipDeclaration;

@SerializedName("ownership_exemption_reason")
String ownershipExemptionReason;

/** The company's phone number (used for verification). */
@SerializedName("phone")
String phone;
Expand Down Expand Up @@ -1531,6 +1550,30 @@ public static class AddressKanji extends StripeObject {
String town;
}

/**
* For more details about DirectorshipDeclaration, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class DirectorshipDeclaration extends StripeObject {
/** The Unix timestamp marking when the directorship declaration attestation was made. */
@SerializedName("date")
Long date;

/** The IP address from which the directorship declaration attestation was made. */
@SerializedName("ip")
String ip;

/**
* The user-agent string from the browser where the directorship declaration attestation was
* made.
*/
@SerializedName("user_agent")
String userAgent;
}

/**
* For more details about OwnershipDeclaration, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
Expand Down
178 changes: 178 additions & 0 deletions src/main/java/com/stripe/model/AccountSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,18 @@ public static class Components extends StripeObject {
@SerializedName("documents")
Documents documents;

@SerializedName("financial_account")
FinancialAccount financialAccount;

@SerializedName("financial_account_transactions")
FinancialAccountTransactions financialAccountTransactions;

@SerializedName("issuing_card")
IssuingCard issuingCard;

@SerializedName("issuing_cards_list")
IssuingCardsList issuingCardsList;

@SerializedName("notification_banner")
NotificationBanner notificationBanner;

Expand Down Expand Up @@ -340,6 +352,172 @@ public static class Documents extends StripeObject {
public static class Features extends StripeObject {}
}

/**
* For more details about FinancialAccount, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class FinancialAccount extends StripeObject {
/** Whether the embedded component is enabled. */
@SerializedName("enabled")
Boolean enabled;

@SerializedName("features")
Features features;

/**
* For more details about Features, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Features extends StripeObject {
/**
* Disables Stripe user authentication for this embedded component. This value can only be
* true for accounts where {@code controller.requirement_collection} is {@code application}.
* The default value is the opposite of the {@code external_account_collection} value. For
* example, if you don’t set {@code external_account_collection}, it defaults to true and
* {@code disable_stripe_user_authentication} defaults to false.
*/
@SerializedName("disable_stripe_user_authentication")
Boolean disableStripeUserAuthentication;

/** Whether to allow external accounts to be linked for money transfer. */
@SerializedName("external_account_collection")
Boolean externalAccountCollection;

/** Whether to allow sending money. */
@SerializedName("send_money")
Boolean sendMoney;

/** Whether to allow transferring balance. */
@SerializedName("transfer_balance")
Boolean transferBalance;
}
}

/**
* For more details about FinancialAccountTransactions, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class FinancialAccountTransactions extends StripeObject {
/** Whether the embedded component is enabled. */
@SerializedName("enabled")
Boolean enabled;

@SerializedName("features")
Features features;

/**
* For more details about Features, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Features extends StripeObject {
/** Whether to allow card spend dispute management features. */
@SerializedName("card_spend_dispute_management")
Boolean cardSpendDisputeManagement;
}
}

/**
* For more details about IssuingCard, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class IssuingCard extends StripeObject {
/** Whether the embedded component is enabled. */
@SerializedName("enabled")
Boolean enabled;

@SerializedName("features")
Features features;

/**
* For more details about Features, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Features extends StripeObject {
/** Whether to allow card management features. */
@SerializedName("card_management")
Boolean cardManagement;

/** Whether to allow card spend dispute management features. */
@SerializedName("card_spend_dispute_management")
Boolean cardSpendDisputeManagement;

/** Whether to allow cardholder management features. */
@SerializedName("cardholder_management")
Boolean cardholderManagement;

/** Whether to allow spend control management features. */
@SerializedName("spend_control_management")
Boolean spendControlManagement;
}
}

/**
* For more details about IssuingCardsList, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class IssuingCardsList extends StripeObject {
/** Whether the embedded component is enabled. */
@SerializedName("enabled")
Boolean enabled;

@SerializedName("features")
Features features;

/**
* For more details about Features, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Features extends StripeObject {
/** Whether to allow card management features. */
@SerializedName("card_management")
Boolean cardManagement;

/** Whether to allow card spend dispute management features. */
@SerializedName("card_spend_dispute_management")
Boolean cardSpendDisputeManagement;

/** Whether to allow cardholder management features. */
@SerializedName("cardholder_management")
Boolean cardholderManagement;

/**
* Disables Stripe user authentication for this embedded component. This feature can only be
* false for accounts where you’re responsible for collecting updated information when
* requirements are due or change, like custom accounts.
*/
@SerializedName("disable_stripe_user_authentication")
Boolean disableStripeUserAuthentication;

/** Whether to allow spend control management features. */
@SerializedName("spend_control_management")
Boolean spendControlManagement;
}
}

/**
* For more details about NotificationBanner, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
Expand Down
30 changes: 30 additions & 0 deletions src/main/java/com/stripe/model/Charge.java
Original file line number Diff line number Diff line change
Expand Up @@ -1028,6 +1028,16 @@ public static class LineItem extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Outcome extends StripeObject {
/**
* An enumerated value providing a more detailed explanation on <a
* href="https://stripe.com/docs/declines#retrying-issuer-declines">how to proceed with an
* error</a>.
*
* <p>One of {@code confirm_card_data}, {@code do_not_try_again}, or {@code try_again_later}.
*/
@SerializedName("advice_code")
String adviceCode;

/**
* For charges declined by the network, a 2 digit code which indicates the advice returned by
* the network on how to proceed with an error.
Expand Down Expand Up @@ -1252,6 +1262,9 @@ public static class PaymentMethodDetails extends StripeObject {
@SerializedName("p24")
P24 p24;

@SerializedName("pay_by_bank")
PayByBank payByBank;

@SerializedName("payco")
Payco payco;

Expand Down Expand Up @@ -3258,6 +3271,15 @@ public static class P24 extends StripeObject {
String verifiedName;
}

/**
* For more details about PayByBank, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class PayByBank extends StripeObject {}

/**
* For more details about Payco, please refer to the <a href="https://docs.stripe.com/api">API
* Reference.</a>
Expand Down Expand Up @@ -3292,6 +3314,14 @@ public static class Paynow extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Paypal extends StripeObject {
/**
* Two-letter ISO code representing the buyer's country. Values are provided by PayPal
* directly (if supported) at the time of authorization or settlement. They cannot be set or
* mutated.
*/
@SerializedName("country")
String country;

/**
* Owner's email. Values are provided by PayPal directly (if supported) at the time of
* authorization or settlement. They cannot be set or mutated.
Expand Down
28 changes: 24 additions & 4 deletions src/main/java/com/stripe/model/ConfirmationToken.java
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,9 @@ public static class PaymentMethodPreview extends StripeObject {
@SerializedName("p24")
P24 p24;

@SerializedName("pay_by_bank")
PayByBank payByBank;

@SerializedName("payco")
Payco payco;

Expand Down Expand Up @@ -384,10 +387,10 @@ public static class PaymentMethodPreview extends StripeObject {
* cashapp}, {@code customer_balance}, {@code eps}, {@code fpx}, {@code giropay}, {@code
* grabpay}, {@code ideal}, {@code interac_present}, {@code kakao_pay}, {@code klarna}, {@code
* konbini}, {@code kr_card}, {@code link}, {@code mobilepay}, {@code multibanco}, {@code
* naver_pay}, {@code oxxo}, {@code p24}, {@code payco}, {@code paynow}, {@code paypal}, {@code
* pix}, {@code promptpay}, {@code revolut_pay}, {@code samsung_pay}, {@code sepa_debit}, {@code
* sofort}, {@code swish}, {@code twint}, {@code us_bank_account}, {@code wechat_pay}, or {@code
* zip}.
* naver_pay}, {@code oxxo}, {@code p24}, {@code pay_by_bank}, {@code payco}, {@code paynow},
* {@code paypal}, {@code pix}, {@code promptpay}, {@code revolut_pay}, {@code samsung_pay},
* {@code sepa_debit}, {@code sofort}, {@code swish}, {@code twint}, {@code us_bank_account},
* {@code wechat_pay}, or {@code zip}.
*/
@SerializedName("type")
String type;
Expand Down Expand Up @@ -1851,6 +1854,15 @@ public static class P24 extends StripeObject {
String bank;
}

/**
* For more details about PayByBank, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class PayByBank extends StripeObject {}

/**
* For more details about Payco, please refer to the <a href="https://docs.stripe.com/api">API
* Reference.</a>
Expand All @@ -1877,6 +1889,14 @@ public static class Paynow extends StripeObject {}
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Paypal extends StripeObject {
/**
* Two-letter ISO code representing the buyer's country. Values are provided by PayPal
* directly (if supported) at the time of authorization or settlement. They cannot be set or
* mutated.
*/
@SerializedName("country")
String country;

/**
* Owner's email. Values are provided by PayPal directly (if supported) at the time of
* authorization or settlement. They cannot be set or mutated.
Expand Down
Loading

0 comments on commit c26e246

Please sign in to comment.