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 for beta #1924

Merged
merged 11 commits into from
Nov 21, 2024
24 changes: 22 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# Changelog

## 28.1.0 - 2024-11-20
* [#1923](https://github.com/stripe/stripe-java/pull/1923) This release changes the pinned API version to `2024-11-20.acacia`.
* Add support for `respond` test helper method on resource `Issuing.Authorization`
* Add support for `authorizer` on `AccountPersonsParams.relationship` and `TokenCreateParams.person.relationship`
* Add support for `adaptive_pricing` on `Checkout.Session` and `checkout.SessionCreateParams`
* Add support for `mandate_options` on `Checkout.Session.payment_method_options.bacs_debit`, `Checkout.Session.payment_method_options.sepa_debit`, `checkout.SessionCreateParams.payment_method_options.bacs_debit`, and `checkout.SessionCreateParams.payment_method_options.sepa_debit`
* Add support for `request_extended_authorization`, `request_incremental_authorization`, `request_multicapture`, and `request_overcapture` on `Checkout.Session.payment_method_options.card` and `checkout.SessionCreateParams.payment_method_options.card`
* Add support for `capture_method` on `checkout.SessionCreateParams.payment_method_options.kakao_pay`, `checkout.SessionCreateParams.payment_method_options.kr_card`, `checkout.SessionCreateParams.payment_method_options.naver_pay`, `checkout.SessionCreateParams.payment_method_options.payco`, and `checkout.SessionCreateParams.payment_method_options.samsung_pay`
* Add support for new value `subscribe` on enums `PaymentLinkCreateParams.submit_type` and `checkout.SessionCreateParams.submit_type`
* Add support for new value `li_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `TaxIdCreateParams.type`, and `tax.CalculationCreateParams.customer_details.tax_ids[].type`
* Add support for new value `financial_account_statement` on enum `FileListParams.purpose`
* Add support for `account_holder_address`, `account_holder_name`, `account_type`, and `bank_address` on `FundingInstructions.bank_transfer.financial_addresses[].aba`, `FundingInstructions.bank_transfer.financial_addresses[].swift`, `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].aba`, and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].swift`
* Add support for new value `service_tax` on enums `InvoiceAddLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `InvoiceUpdateLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type`
* Add support for `merchant_amount` and `merchant_currency` on `issuing.AuthorizationCreateParams`
* Change `issuing.AuthorizationCreateParams.amount` to be optional
* Add support for `fraud_challenges` and `verified_by_fraud_challenge` on `Issuing.Authorization`
* Add support for new value `link` on enums `PaymentIntentConfirmParams.payment_method_options.card.network`, `PaymentIntentCreateParams.payment_method_options.card.network`, `PaymentIntentUpdateParams.payment_method_options.card.network`, `SetupIntentConfirmParams.payment_method_options.card.network`, `SetupIntentCreateParams.payment_method_options.card.network`, `SetupIntentUpdateParams.payment_method_options.card.network`, `SubscriptionCreateParams.payment_settings.payment_method_options.card.network`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.card.network`
* Add support for `submit_type` on `PaymentLinkUpdateParams`
* Add support for `trace_id` on `Payout`
* Add support for `network_decline_code` on `Refund.destination_details.blik` and `Refund.destination_details.swish`
* Add support for new value `2024-11-20.acacia` on enum `WebhookEndpointCreateParams.api_version`

## 28.1.0-beta.3 - 2024-11-14
* [#1922](https://github.com/stripe/stripe-java/pull/1922) Update generated code for beta
* Add support for `account_holder_address` and `bank_address` on `FundingInstructions.bank_transfer.financial_addresses[].iban`, `FundingInstructions.bank_transfer.financial_addresses[].sort_code`, `FundingInstructions.bank_transfer.financial_addresses[].spei`, `FundingInstructions.bank_transfer.financial_addresses[].zengin`, `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].iban`, `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].sort_code`, `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].spei`, and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].zengin`
Expand Down Expand Up @@ -44,8 +66,6 @@

## 28.0.1 - 2024-11-06
* [#1919](https://github.com/stripe/stripe-java/pull/1919) Catch `JsonSyntaxException` when processing all errors
* [#1916](https://github.com/stripe/stripe-java/pull/1916) Restore `testReportsRawRequestUsageTelemetry` test
* [#1915](https://github.com/stripe/stripe-java/pull/1915) add major version blurb to changelog

## 28.0.0 - 2024-10-29

Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1356
v1370
40 changes: 20 additions & 20 deletions src/main/java/com/stripe/model/AccountSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,10 @@ public static class AccountManagement extends StripeObject {
public static class Features extends StripeObject {
/**
* 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. The default value for this feature
* is {@code false} when {@code external_account_collection} is enabled and {@code true}
* otherwise.
* {@code true} for accounts where you’re responsible for collecting updated information
* when requirements are due or change, like Custom accounts. The default value for this
* feature is {@code false} when {@code external_account_collection} is enabled and {@code
* true} otherwise.
*/
@SerializedName("disable_stripe_user_authentication")
Boolean disableStripeUserAuthentication;
Expand Down Expand Up @@ -238,10 +238,10 @@ public static class AccountOnboarding extends StripeObject {
public static class Features extends StripeObject {
/**
* 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. The default value for this feature
* is {@code false} when {@code external_account_collection} is enabled and {@code true}
* otherwise.
* {@code true} for accounts where you’re responsible for collecting updated information
* when requirements are due or change, like Custom accounts. The default value for this
* feature is {@code false} when {@code external_account_collection} is enabled and {@code
* true} otherwise.
*/
@SerializedName("disable_stripe_user_authentication")
Boolean disableStripeUserAuthentication;
Expand Down Expand Up @@ -283,10 +283,10 @@ public static class Balances extends StripeObject {
public static class Features extends StripeObject {
/**
* 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. The default value for this feature
* is {@code false} when {@code external_account_collection} is enabled and {@code true}
* otherwise.
* {@code true} for accounts where you’re responsible for collecting updated information
* when requirements are due or change, like Custom accounts. The default value for this
* feature is {@code false} when {@code external_account_collection} is enabled and {@code
* true} otherwise.
*/
@SerializedName("disable_stripe_user_authentication")
Boolean disableStripeUserAuthentication;
Expand Down Expand Up @@ -449,10 +449,10 @@ public static class NotificationBanner extends StripeObject {
public static class Features extends StripeObject {
/**
* 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. The default value for this feature
* is {@code false} when {@code external_account_collection} is enabled and {@code true}
* otherwise.
* {@code true} for accounts where you’re responsible for collecting updated information
* when requirements are due or change, like Custom accounts. The default value for this
* feature is {@code false} when {@code external_account_collection} is enabled and {@code
* true} otherwise.
*/
@SerializedName("disable_stripe_user_authentication")
Boolean disableStripeUserAuthentication;
Expand Down Expand Up @@ -594,10 +594,10 @@ public static class Payouts extends StripeObject {
public static class Features extends StripeObject {
/**
* 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. The default value for this feature
* is {@code false} when {@code external_account_collection} is enabled and {@code true}
* otherwise.
* {@code true} for accounts where you’re responsible for collecting updated information
* when requirements are due or change, like Custom accounts. The default value for this
* feature is {@code false} when {@code external_account_collection} is enabled and {@code
* true} otherwise.
*/
@SerializedName("disable_stripe_user_authentication")
Boolean disableStripeUserAuthentication;
Expand Down
176 changes: 174 additions & 2 deletions src/main/java/com/stripe/model/Charge.java
Original file line number Diff line number Diff line change
Expand Up @@ -1028,6 +1028,20 @@ public static class LineItem extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Outcome extends StripeObject {
/**
* 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.
*/
@SerializedName("network_advice_code")
String networkAdviceCode;

/**
* For charges declined by the network, a brand specific 2, 3, or 4 digit code which indicates
* the reason the authorization failed.
*/
@SerializedName("network_decline_code")
String networkDeclineCode;

/**
* Possible values are {@code approved_by_network}, {@code declined_by_network}, {@code
* not_sent_to_network}, and {@code reversed_after_approval}. The value {@code
Expand Down Expand Up @@ -1497,7 +1511,73 @@ public static class Alma extends StripeObject {}
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class AmazonPay extends StripeObject {}
public static class AmazonPay extends StripeObject {
@SerializedName("funding")
Funding funding;

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

/**
* funding type of the underlying payment method.
*
* <p>Equal to {@code card}.
*/
@SerializedName("type")
String type;

/**
* For more details about Card, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Card extends StripeObject {
/**
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or
* {@code unknown}.
*/
@SerializedName("brand")
String brand;

/**
* Two-letter ISO code representing the country of the card. You could use this attribute
* to get a sense of the international breakdown of cards you've collected.
*/
@SerializedName("country")
String country;

/** Two-digit number representing the card's expiration month. */
@SerializedName("exp_month")
Long expMonth;

/** Four-digit number representing the card's expiration year. */
@SerializedName("exp_year")
Long expYear;

/**
* Card funding type. Can be {@code credit}, {@code debit}, {@code prepaid}, or {@code
* unknown}.
*/
@SerializedName("funding")
String funding;

/** The last four digits of the card. */
@SerializedName("last4")
String last4;
}
}
}

/**
* For more details about AuBecsDebit, please refer to the <a
Expand Down Expand Up @@ -1690,6 +1770,10 @@ public static class Card extends StripeObject {
@SerializedName("amount_authorized")
Long amountAuthorized;

/** The latest amount intended to be authorized by this charge. */
@SerializedName("amount_requested")
Long amountRequested;

/** Authorization code on the charge. */
@SerializedName("authorization_code")
String authorizationCode;
Expand Down Expand Up @@ -1820,6 +1904,9 @@ public static class Card extends StripeObject {
@SerializedName("overcapture")
Overcapture overcapture;

@SerializedName("partial_authorization")
PartialAuthorization partialAuthorization;

/** Populated if this transaction used 3D Secure authentication. */
@SerializedName("three_d_secure")
ThreeDSecure threeDSecure;
Expand Down Expand Up @@ -2004,6 +2091,25 @@ public static class Overcapture extends StripeObject {
String status;
}

/**
* For more details about PartialAuthorization, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class PartialAuthorization extends StripeObject {
/**
* Indicates whether the transaction requested for partial authorization feature and the
* authorization outcome.
*
* <p>One of {@code declined}, {@code fully_authorized}, {@code not_requested}, or {@code
* partially_authorized}.
*/
@SerializedName("status")
String status;
}

/**
* For more details about ThreeDSecure, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
Expand Down Expand Up @@ -3445,7 +3551,73 @@ public static class Rechnung extends StripeObject {}
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class RevolutPay extends StripeObject {}
public static class RevolutPay extends StripeObject {
@SerializedName("funding")
Funding funding;

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

/**
* funding type of the underlying payment method.
*
* <p>Equal to {@code card}.
*/
@SerializedName("type")
String type;

/**
* For more details about Card, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Card extends StripeObject {
/**
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or
* {@code unknown}.
*/
@SerializedName("brand")
String brand;

/**
* Two-letter ISO code representing the country of the card. You could use this attribute
* to get a sense of the international breakdown of cards you've collected.
*/
@SerializedName("country")
String country;

/** Two-digit number representing the card's expiration month. */
@SerializedName("exp_month")
Long expMonth;

/** Four-digit number representing the card's expiration year. */
@SerializedName("exp_year")
Long expYear;

/**
* Card funding type. Can be {@code credit}, {@code debit}, {@code prepaid}, or {@code
* unknown}.
*/
@SerializedName("funding")
String funding;

/** The last four digits of the card. */
@SerializedName("last4")
String last4;
}
}
}

/**
* For more details about SamsungPay, please refer to the <a
Expand Down
19 changes: 10 additions & 9 deletions src/main/java/com/stripe/model/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,16 @@ public class Event extends ApiResource implements HasId {
* identity.verification_session.requires_input}, {@code identity.verification_session.verified},
* {@code invoice.created}, {@code invoice.deleted}, {@code invoice.finalization_failed}, {@code
* invoice.finalized}, {@code invoice.marked_uncollectible}, {@code invoice.overdue}, {@code
* invoice.paid}, {@code invoice.payment.overpaid}, {@code invoice.payment_action_required},
* {@code invoice.payment_attempt_required}, {@code invoice.payment_failed}, {@code
* invoice.payment_succeeded}, {@code invoice.sent}, {@code invoice.upcoming}, {@code
* invoice.updated}, {@code invoice.voided}, {@code invoice.will_be_due}, {@code
* invoiceitem.created}, {@code invoiceitem.deleted}, {@code issuing_authorization.created},
* {@code issuing_authorization.request}, {@code issuing_authorization.updated}, {@code
* issuing_card.created}, {@code issuing_card.updated}, {@code issuing_cardholder.created}, {@code
* issuing_cardholder.updated}, {@code issuing_dispute.closed}, {@code issuing_dispute.created},
* {@code issuing_dispute.funds_reinstated}, {@code issuing_dispute.funds_rescinded}, {@code
* invoice.overpaid}, {@code invoice.paid}, {@code invoice.payment.overpaid}, {@code
* invoice.payment_action_required}, {@code invoice.payment_attempt_required}, {@code
* invoice.payment_failed}, {@code invoice.payment_succeeded}, {@code invoice.sent}, {@code
* invoice.upcoming}, {@code invoice.updated}, {@code invoice.voided}, {@code
* invoice.will_be_due}, {@code invoiceitem.created}, {@code invoiceitem.deleted}, {@code
* issuing_authorization.created}, {@code issuing_authorization.request}, {@code
* issuing_authorization.updated}, {@code issuing_card.created}, {@code issuing_card.updated},
* {@code issuing_cardholder.created}, {@code issuing_cardholder.updated}, {@code
* issuing_dispute.closed}, {@code issuing_dispute.created}, {@code
* issuing_dispute.funds_reinstated}, {@code issuing_dispute.funds_rescinded}, {@code
* issuing_dispute.submitted}, {@code issuing_dispute.updated}, {@code
* issuing_dispute_settlement_detail.created}, {@code issuing_dispute_settlement_detail.updated},
* {@code issuing_fraud_liability_debit.created}, {@code
Expand Down
Loading
Loading