From d7c4ffce1ddbd55278b73e2ff35fa2dcc1ed07c0 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 15 Nov 2024 01:20:45 +0000 Subject: [PATCH 01/10] Update generated code for v1357 --- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/model/Charge.java | 136 ++++++++++++++++++++- 2 files changed, 135 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 20cbdd30484..d469526029c 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1356 \ No newline at end of file +v1357 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/Charge.java b/src/main/java/com/stripe/model/Charge.java index 95f47a4bd4e..240e5288e42 100644 --- a/src/main/java/com/stripe/model/Charge.java +++ b/src/main/java/com/stripe/model/Charge.java @@ -1497,7 +1497,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 API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Funding extends StripeObject { + @SerializedName("card") + Card card; + + /** + * funding type of the underlying payment method. + * + *

Equal to {@code card}. + */ + @SerializedName("type") + String type; + + /** + * For more details about Card, please refer to the API Reference. + */ + @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 API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Funding extends StripeObject { + @SerializedName("card") + Card card; + + /** + * funding type of the underlying payment method. + * + *

Equal to {@code card}. + */ + @SerializedName("type") + String type; + + /** + * For more details about Card, please refer to the API Reference. + */ + @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 Date: Fri, 15 Nov 2024 01:50:15 +0000 Subject: [PATCH 02/10] Update generated code for v1358 --- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/model/Charge.java | 14 ++++++++++++++ src/main/java/com/stripe/model/StripeError.java | 14 ++++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index d469526029c..dc09197e85a 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1357 \ No newline at end of file +v1358 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/Charge.java b/src/main/java/com/stripe/model/Charge.java index 240e5288e42..ea9ee2d154b 100644 --- a/src/main/java/com/stripe/model/Charge.java +++ b/src/main/java/com/stripe/model/Charge.java @@ -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 diff --git a/src/main/java/com/stripe/model/StripeError.java b/src/main/java/com/stripe/model/StripeError.java index 2cbbd68fa97..e11a267b828 100644 --- a/src/main/java/com/stripe/model/StripeError.java +++ b/src/main/java/com/stripe/model/StripeError.java @@ -124,6 +124,20 @@ public class StripeError extends StripeObject { @SerializedName("message") String message; + /** + * For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice + * given to merchant by the card network on how to proceed with an error. + */ + @SerializedName("network_advice_code") + String networkAdviceCode; + + /** + * For card errors resulting from a card issuer decline, a brand specific 2, 3, or 4 digit code + * which indicates the reason the authorization failed. + */ + @SerializedName("network_decline_code") + String networkDeclineCode; + /** * If the error is parameter-specific, the parameter related to the error. For example, you can * use this to display a message near the correct form field. From 8643398bda87bc7774c88294f997044ac8ce2b4e Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 15 Nov 2024 22:32:09 +0000 Subject: [PATCH 03/10] Update generated code for v1359 --- OPENAPI_VERSION | 2 +- .../stripe/param/terminal/LocationUpdateParams.java | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index dc09197e85a..c20f8e67ef2 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1358 \ No newline at end of file +v1359 \ No newline at end of file diff --git a/src/main/java/com/stripe/param/terminal/LocationUpdateParams.java b/src/main/java/com/stripe/param/terminal/LocationUpdateParams.java index f2989e6def0..bdcd34e505d 100644 --- a/src/main/java/com/stripe/param/terminal/LocationUpdateParams.java +++ b/src/main/java/com/stripe/param/terminal/LocationUpdateParams.java @@ -13,9 +13,9 @@ @Getter public class LocationUpdateParams extends ApiRequestParams { /** - * The full address of the location. If you're updating the {@code address} field, avoid changing - * the {@code country}. If you need to modify the {@code country} field, create a new {@code - * Location} object and re-register any existing readers to that location. + * The full address of the location. You can't change the location's {@code country}. If you need + * to modify the {@code country} field, create a new {@code Location} object and re-register any + * existing readers to that location. */ @SerializedName("address") Address address; @@ -94,9 +94,9 @@ public LocationUpdateParams build() { } /** - * The full address of the location. If you're updating the {@code address} field, avoid - * changing the {@code country}. If you need to modify the {@code country} field, create a new - * {@code Location} object and re-register any existing readers to that location. + * The full address of the location. You can't change the location's {@code country}. If you + * need to modify the {@code country} field, create a new {@code Location} object and + * re-register any existing readers to that location. */ public Builder setAddress(LocationUpdateParams.Address address) { this.address = address; From 71cbb0e6d595584808ade21eb69b56c769601b76 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 19 Nov 2024 18:36:37 +0000 Subject: [PATCH 04/10] Update generated code for v1362 --- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/model/Event.java | 19 ++++++++++--------- .../param/WebhookEndpointCreateParams.java | 3 +++ .../param/WebhookEndpointUpdateParams.java | 3 +++ 4 files changed, 17 insertions(+), 10 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index c20f8e67ef2..6ccc407d42f 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1359 \ No newline at end of file +v1362 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/Event.java b/src/main/java/com/stripe/model/Event.java index fb5d67e8963..33398d75353 100644 --- a/src/main/java/com/stripe/model/Event.java +++ b/src/main/java/com/stripe/model/Event.java @@ -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 diff --git a/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java b/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java index a0687d33064..aafa8fa1791 100644 --- a/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java +++ b/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java @@ -935,6 +935,9 @@ public enum EnabledEvent implements ApiRequestParams.EnumParam { @SerializedName("invoice.overdue") INVOICE__OVERDUE("invoice.overdue"), + @SerializedName("invoice.overpaid") + INVOICE__OVERPAID("invoice.overpaid"), + @SerializedName("invoice.paid") INVOICE__PAID("invoice.paid"), diff --git a/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java b/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java index 73e8e77d4a3..3917187c2da 100644 --- a/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java +++ b/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java @@ -590,6 +590,9 @@ public enum EnabledEvent implements ApiRequestParams.EnumParam { @SerializedName("invoice.overdue") INVOICE__OVERDUE("invoice.overdue"), + @SerializedName("invoice.overpaid") + INVOICE__OVERPAID("invoice.overpaid"), + @SerializedName("invoice.paid") INVOICE__PAID("invoice.paid"), From b462f5268d83e436db564237c7c1a4e61c7d1710 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 19 Nov 2024 23:25:47 +0000 Subject: [PATCH 05/10] Update generated code for v1365 --- OPENAPI_VERSION | 2 +- .../java/com/stripe/model/AccountSession.java | 40 ++++---- .../param/AccountSessionCreateParams.java | 96 +++++++++---------- 3 files changed, 69 insertions(+), 69 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 6ccc407d42f..998a0ecff35 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1362 \ No newline at end of file +v1365 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/AccountSession.java b/src/main/java/com/stripe/model/AccountSession.java index ea1c2feaa05..eefb39a4b44 100644 --- a/src/main/java/com/stripe/model/AccountSession.java +++ b/src/main/java/com/stripe/model/AccountSession.java @@ -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; @@ -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; @@ -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; @@ -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; @@ -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; diff --git a/src/main/java/com/stripe/param/AccountSessionCreateParams.java b/src/main/java/com/stripe/param/AccountSessionCreateParams.java index 55880118c46..62fea18419a 100644 --- a/src/main/java/com/stripe/param/AccountSessionCreateParams.java +++ b/src/main/java/com/stripe/param/AccountSessionCreateParams.java @@ -655,10 +655,10 @@ public Builder setFeatures( public static class Features { /** * 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; @@ -713,10 +713,10 @@ public AccountSessionCreateParams.Components.AccountManagement.Features build() /** * 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. + * be {@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. */ public Builder setDisableStripeUserAuthentication( Boolean disableStripeUserAuthentication) { @@ -858,10 +858,10 @@ public Builder setFeatures( public static class Features { /** * 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; @@ -916,10 +916,10 @@ public AccountSessionCreateParams.Components.AccountOnboarding.Features build() /** * 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. + * be {@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. */ public Builder setDisableStripeUserAuthentication( Boolean disableStripeUserAuthentication) { @@ -1446,10 +1446,10 @@ public Builder setFeatures( public static class Features { /** * 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; @@ -1540,10 +1540,10 @@ public AccountSessionCreateParams.Components.Balances.Features build() { /** * 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. + * be {@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. */ public Builder setDisableStripeUserAuthentication( Boolean disableStripeUserAuthentication) { @@ -2445,10 +2445,10 @@ public Builder setFeatures( public static class Features { /** * 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; @@ -2515,10 +2515,10 @@ public AccountSessionCreateParams.Components.FinancialAccount.Features build() { /** * 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. + * be {@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. */ public Builder setDisableStripeUserAuthentication( Boolean disableStripeUserAuthentication) { @@ -3266,10 +3266,10 @@ public Builder setFeatures( public static class Features { /** * 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; @@ -3324,10 +3324,10 @@ public AccountSessionCreateParams.Components.NotificationBanner.Features build() /** * 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. + * be {@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. */ public Builder setDisableStripeUserAuthentication( Boolean disableStripeUserAuthentication) { @@ -4065,10 +4065,10 @@ public Builder setFeatures( public static class Features { /** * 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; @@ -4159,10 +4159,10 @@ public AccountSessionCreateParams.Components.Payouts.Features build() { /** * 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. + * be {@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. */ public Builder setDisableStripeUserAuthentication( Boolean disableStripeUserAuthentication) { From e54ae8ddd423867c4bed0bcc93e9a877f6927180 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 20 Nov 2024 00:32:20 +0000 Subject: [PATCH 06/10] Update generated code for v1366 --- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/model/LineItem.java | 51 +++ .../com/stripe/model/checkout/Session.java | 16 + .../param/checkout/SessionCreateParams.java | 94 +++- .../param/checkout/SessionUpdateParams.java | 425 ++++++++++++++++++ 5 files changed, 585 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 998a0ecff35..fc4d95130ae 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1365 \ No newline at end of file +v1366 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/LineItem.java b/src/main/java/com/stripe/model/LineItem.java index fdf0dc75b86..ebfe62e4bd3 100644 --- a/src/main/java/com/stripe/model/LineItem.java +++ b/src/main/java/com/stripe/model/LineItem.java @@ -4,6 +4,7 @@ import com.google.gson.annotations.SerializedName; import com.stripe.net.ApiResource; import java.util.List; +import java.util.Map; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.Setter; @@ -13,6 +14,9 @@ @Setter @EqualsAndHashCode(callSuper = false) public class LineItem extends StripeObject implements HasId { + @SerializedName("adjustable_quantity") + AdjustableQuantity adjustableQuantity; + /** Total discount amount applied. If no discounts were applied, defaults to 0. */ @SerializedName("amount_discount") Long amountDiscount; @@ -47,11 +51,22 @@ public class LineItem extends StripeObject implements HasId { @SerializedName("discounts") List discounts; + @SerializedName("display") + Display display; + /** Unique identifier for the object. */ @Getter(onMethod_ = {@Override}) @SerializedName("id") String id; + /** + * Set of key-value pairs that you can attach + * to an object. This can be useful for storing additional information about the object in a + * structured format. + */ + @SerializedName("metadata") + Map metadata; + /** * String representing the object's type. Objects of the same type share the same value. * @@ -100,6 +115,24 @@ public void setProductObject(Product expandableObject) { this.product = new ExpandableField(expandableObject.getId(), expandableObject); } + /** + * For more details about AdjustableQuantity, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class AdjustableQuantity extends StripeObject { + @SerializedName("enabled") + Boolean enabled; + + @SerializedName("maximum") + Long maximum; + + @SerializedName("minimum") + Long minimum; + } + /** * For more details about Discount, please refer to the API * Reference. @@ -125,6 +158,24 @@ public static class Discount extends StripeObject { com.stripe.model.Discount discount; } + /** + * For more details about Display, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Display extends StripeObject { + @SerializedName("description") + String description; + + @SerializedName("images") + List images; + + @SerializedName("name") + String name; + } + /** * For more details about Tax, please refer to the API * Reference. diff --git a/src/main/java/com/stripe/model/checkout/Session.java b/src/main/java/com/stripe/model/checkout/Session.java index 2cb673c0676..7cad015af98 100644 --- a/src/main/java/com/stripe/model/checkout/Session.java +++ b/src/main/java/com/stripe/model/checkout/Session.java @@ -3413,6 +3413,22 @@ public static class Permissions extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Update extends StripeObject { + /** + * Determines which entity is allowed to update the line items. + * + *

Default is {@code client_only}. Stripe Checkout client will automatically update the + * line items. If set to {@code server_only}, only your server is allowed to update the line + * items. + * + *

When set to {@code server_only}, you must add the onLineItemsChange event handler when + * initializing the Stripe Checkout client and manually update the line items from your server + * using the Stripe API. + * + *

One of {@code client_only}, or {@code server_only}. + */ + @SerializedName("line_items") + String lineItems; + /** * Determines which entity is allowed to update the shipping details. * diff --git a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java index 6114c21f4c0..d7c55b6547e 100644 --- a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java +++ b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java @@ -3929,6 +3929,15 @@ public static class LineItem { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** + * Set of key-value pairs that you can attach + * to an object. This can be useful for storing additional information about the object in a + * structured format. Individual keys can be unset by posting an empty value to them. All keys + * can be unset by posting an empty value to {@code metadata}. + */ + @SerializedName("metadata") + Map metadata; + /** * The ID of the Price or Plan object. One of {@code price} or {@code @@ -3962,6 +3971,7 @@ private LineItem( AdjustableQuantity adjustableQuantity, List dynamicTaxRates, Map extraParams, + Map metadata, String price, PriceData priceData, Long quantity, @@ -3969,6 +3979,7 @@ private LineItem( this.adjustableQuantity = adjustableQuantity; this.dynamicTaxRates = dynamicTaxRates; this.extraParams = extraParams; + this.metadata = metadata; this.price = price; this.priceData = priceData; this.quantity = quantity; @@ -3986,6 +3997,8 @@ public static class Builder { private Map extraParams; + private Map metadata; + private String price; private PriceData priceData; @@ -4000,6 +4013,7 @@ public SessionCreateParams.LineItem build() { this.adjustableQuantity, this.dynamicTaxRates, this.extraParams, + this.metadata, this.price, this.priceData, this.quantity, @@ -4068,6 +4082,32 @@ public Builder putAllExtraParam(Map map) { return this; } + /** + * Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * SessionCreateParams.LineItem#metadata} for the field documentation. + */ + public Builder putMetadata(String key, String value) { + if (this.metadata == null) { + this.metadata = new HashMap<>(); + } + this.metadata.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `metadata` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link SessionCreateParams.LineItem#metadata} for the field documentation. + */ + public Builder putAllMetadata(Map map) { + if (this.metadata == null) { + this.metadata = new HashMap<>(); + } + this.metadata.putAll(map); + return this; + } + /** * The ID of the Price or Plan object. One of {@code price} or {@code @@ -13355,6 +13395,20 @@ public static class Update { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** + * Determines which entity is allowed to update the line items. + * + *

Default is {@code client_only}. Stripe Checkout client will automatically update the + * line items. If set to {@code server_only}, only your server is allowed to update the line + * items. + * + *

When set to {@code server_only}, you must add the onLineItemsChange event handler when + * initializing the Stripe Checkout client and manually update the line items from your server + * using the Stripe API. + */ + @SerializedName("line_items") + LineItems lineItems; + /** * Determines which entity is allowed to update the shipping details. * @@ -13369,8 +13423,10 @@ public static class Update { @SerializedName("shipping_details") ShippingDetails shippingDetails; - private Update(Map extraParams, ShippingDetails shippingDetails) { + private Update( + Map extraParams, LineItems lineItems, ShippingDetails shippingDetails) { this.extraParams = extraParams; + this.lineItems = lineItems; this.shippingDetails = shippingDetails; } @@ -13381,11 +13437,14 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private LineItems lineItems; + private ShippingDetails shippingDetails; /** Finalize and obtain parameter instance from this builder. */ public SessionCreateParams.Permissions.Update build() { - return new SessionCreateParams.Permissions.Update(this.extraParams, this.shippingDetails); + return new SessionCreateParams.Permissions.Update( + this.extraParams, this.lineItems, this.shippingDetails); } /** @@ -13416,6 +13475,22 @@ public Builder putAllExtraParam(Map map) { return this; } + /** + * Determines which entity is allowed to update the line items. + * + *

Default is {@code client_only}. Stripe Checkout client will automatically update the + * line items. If set to {@code server_only}, only your server is allowed to update the line + * items. + * + *

When set to {@code server_only}, you must add the onLineItemsChange event handler when + * initializing the Stripe Checkout client and manually update the line items from your + * server using the Stripe API. + */ + public Builder setLineItems(SessionCreateParams.Permissions.Update.LineItems lineItems) { + this.lineItems = lineItems; + return this; + } + /** * Determines which entity is allowed to update the shipping details. * @@ -13434,6 +13509,21 @@ public Builder setShippingDetails( } } + public enum LineItems implements ApiRequestParams.EnumParam { + @SerializedName("client_only") + CLIENT_ONLY("client_only"), + + @SerializedName("server_only") + SERVER_ONLY("server_only"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + LineItems(String value) { + this.value = value; + } + } + public enum ShippingDetails implements ApiRequestParams.EnumParam { @SerializedName("client_only") CLIENT_ONLY("client_only"), diff --git a/src/main/java/com/stripe/param/checkout/SessionUpdateParams.java b/src/main/java/com/stripe/param/checkout/SessionUpdateParams.java index a01d7e98265..f2a296f7066 100644 --- a/src/main/java/com/stripe/param/checkout/SessionUpdateParams.java +++ b/src/main/java/com/stripe/param/checkout/SessionUpdateParams.java @@ -29,6 +29,26 @@ public class SessionUpdateParams extends ApiRequestParams { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** + * A list of items the customer is purchasing. + * + *

When updating line items, the entire array of line items must be retransmitted. + * + *

To retain an existing line item, specify its {@code id}. + * + *

To update an existing line item, specify its {@code id} along with the new values of the + * fields to be updated. + * + *

To add a new line item, specify a {@code price} and {@code quantity}. Recurring prices are + * not supported yet. + * + *

To remove an existing line item, omit the line item's ID from the retransmitted array. + * + *

To reorder a line item, specify it at the desired position in the retransmitted array. + */ + @SerializedName("line_items") + List lineItems; + /** * Set of key-value pairs that you can attach * to an object. This can be useful for storing additional information about the object in a @@ -46,11 +66,13 @@ private SessionUpdateParams( CollectedInformation collectedInformation, List expand, Map extraParams, + List lineItems, Object metadata, Object shippingOptions) { this.collectedInformation = collectedInformation; this.expand = expand; this.extraParams = extraParams; + this.lineItems = lineItems; this.metadata = metadata; this.shippingOptions = shippingOptions; } @@ -66,6 +88,8 @@ public static class Builder { private Map extraParams; + private List lineItems; + private Object metadata; private Object shippingOptions; @@ -76,6 +100,7 @@ public SessionUpdateParams build() { this.collectedInformation, this.expand, this.extraParams, + this.lineItems, this.metadata, this.shippingOptions); } @@ -139,6 +164,32 @@ public Builder putAllExtraParam(Map map) { return this; } + /** + * Add an element to `lineItems` list. A list is initialized for the first `add/addAll` call, + * and subsequent calls adds additional elements to the original list. See {@link + * SessionUpdateParams#lineItems} for the field documentation. + */ + public Builder addLineItem(SessionUpdateParams.LineItem element) { + if (this.lineItems == null) { + this.lineItems = new ArrayList<>(); + } + this.lineItems.add(element); + return this; + } + + /** + * Add all elements to `lineItems` list. A list is initialized for the first `add/addAll` call, + * and subsequent calls adds additional elements to the original list. See {@link + * SessionUpdateParams#lineItems} for the field documentation. + */ + public Builder addAllLineItem(List elements) { + if (this.lineItems == null) { + this.lineItems = new ArrayList<>(); + } + this.lineItems.addAll(elements); + return this; + } + /** * Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` call, * and subsequent calls add additional key/value pairs to the original map. See {@link @@ -588,6 +639,380 @@ public Builder setState(EmptyParam state) { } } + @Getter + public static class LineItem { + /** + * When set, provides configuration for this item’s quantity to be adjusted by the customer + * during Checkout. + */ + @SerializedName("adjustable_quantity") + AdjustableQuantity adjustableQuantity; + + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** ID of an existing line item. */ + @SerializedName("id") + Object id; + + /** + * Set of key-value pairs that you can attach + * to an object. This can be useful for storing additional information about the object in a + * structured format. Individual keys can be unset by posting an empty value to them. All keys + * can be unset by posting an empty value to {@code metadata}. + */ + @SerializedName("metadata") + Object metadata; + + /** The ID of the Price. */ + @SerializedName("price") + Object price; + + /** The quantity of the line item being purchased. */ + @SerializedName("quantity") + Long quantity; + + /** + * The tax rates which apply to this line + * item. + */ + @SerializedName("tax_rates") + Object taxRates; + + private LineItem( + AdjustableQuantity adjustableQuantity, + Map extraParams, + Object id, + Object metadata, + Object price, + Long quantity, + Object taxRates) { + this.adjustableQuantity = adjustableQuantity; + this.extraParams = extraParams; + this.id = id; + this.metadata = metadata; + this.price = price; + this.quantity = quantity; + this.taxRates = taxRates; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private AdjustableQuantity adjustableQuantity; + + private Map extraParams; + + private Object id; + + private Object metadata; + + private Object price; + + private Long quantity; + + private Object taxRates; + + /** Finalize and obtain parameter instance from this builder. */ + public SessionUpdateParams.LineItem build() { + return new SessionUpdateParams.LineItem( + this.adjustableQuantity, + this.extraParams, + this.id, + this.metadata, + this.price, + this.quantity, + this.taxRates); + } + + /** + * When set, provides configuration for this item’s quantity to be adjusted by the customer + * during Checkout. + */ + public Builder setAdjustableQuantity( + SessionUpdateParams.LineItem.AdjustableQuantity adjustableQuantity) { + this.adjustableQuantity = adjustableQuantity; + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * SessionUpdateParams.LineItem#extraParams} for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link SessionUpdateParams.LineItem#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** ID of an existing line item. */ + public Builder setId(String id) { + this.id = id; + return this; + } + + /** ID of an existing line item. */ + public Builder setId(EmptyParam id) { + this.id = id; + return this; + } + + /** + * Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * SessionUpdateParams.LineItem#metadata} for the field documentation. + */ + @SuppressWarnings("unchecked") + public Builder putMetadata(String key, String value) { + if (this.metadata == null || this.metadata instanceof EmptyParam) { + this.metadata = new HashMap(); + } + ((Map) this.metadata).put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `metadata` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link SessionUpdateParams.LineItem#metadata} for the field documentation. + */ + @SuppressWarnings("unchecked") + public Builder putAllMetadata(Map map) { + if (this.metadata == null || this.metadata instanceof EmptyParam) { + this.metadata = new HashMap(); + } + ((Map) this.metadata).putAll(map); + return this; + } + + /** + * Set of key-value pairs that you can + * attach to an object. This can be useful for storing additional information about the object + * in a structured format. Individual keys can be unset by posting an empty value to them. All + * keys can be unset by posting an empty value to {@code metadata}. + */ + public Builder setMetadata(EmptyParam metadata) { + this.metadata = metadata; + return this; + } + + /** + * Set of key-value pairs that you can + * attach to an object. This can be useful for storing additional information about the object + * in a structured format. Individual keys can be unset by posting an empty value to them. All + * keys can be unset by posting an empty value to {@code metadata}. + */ + public Builder setMetadata(Map metadata) { + this.metadata = metadata; + return this; + } + + /** The ID of the Price. */ + public Builder setPrice(String price) { + this.price = price; + return this; + } + + /** The ID of the Price. */ + public Builder setPrice(EmptyParam price) { + this.price = price; + return this; + } + + /** The quantity of the line item being purchased. */ + public Builder setQuantity(Long quantity) { + this.quantity = quantity; + return this; + } + + /** + * Add an element to `taxRates` list. A list is initialized for the first `add/addAll` call, + * and subsequent calls adds additional elements to the original list. See {@link + * SessionUpdateParams.LineItem#taxRates} for the field documentation. + */ + @SuppressWarnings("unchecked") + public Builder addTaxRate(String element) { + if (this.taxRates == null || this.taxRates instanceof EmptyParam) { + this.taxRates = new ArrayList(); + } + ((List) this.taxRates).add(element); + return this; + } + + /** + * Add all elements to `taxRates` list. A list is initialized for the first `add/addAll` call, + * and subsequent calls adds additional elements to the original list. See {@link + * SessionUpdateParams.LineItem#taxRates} for the field documentation. + */ + @SuppressWarnings("unchecked") + public Builder addAllTaxRate(List elements) { + if (this.taxRates == null || this.taxRates instanceof EmptyParam) { + this.taxRates = new ArrayList(); + } + ((List) this.taxRates).addAll(elements); + return this; + } + + /** + * The tax rates which apply to this line + * item. + */ + public Builder setTaxRates(EmptyParam taxRates) { + this.taxRates = taxRates; + return this; + } + + /** + * The tax rates which apply to this line + * item. + */ + public Builder setTaxRates(List taxRates) { + this.taxRates = taxRates; + return this; + } + } + + @Getter + public static class AdjustableQuantity { + /** + * Required. Set to true if the quantity can be adjusted to any positive + * integer. Setting to false will remove any previously specified constraints on quantity. + */ + @SerializedName("enabled") + Boolean enabled; + + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) + * name in this param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** + * The maximum quantity the customer can purchase for the Checkout Session. By default this + * value is 99. You can specify a value up to 999999. + */ + @SerializedName("maximum") + Long maximum; + + /** + * The minimum quantity the customer must purchase for the Checkout Session. By default this + * value is 0. + */ + @SerializedName("minimum") + Long minimum; + + private AdjustableQuantity( + Boolean enabled, Map extraParams, Long maximum, Long minimum) { + this.enabled = enabled; + this.extraParams = extraParams; + this.maximum = maximum; + this.minimum = minimum; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Boolean enabled; + + private Map extraParams; + + private Long maximum; + + private Long minimum; + + /** Finalize and obtain parameter instance from this builder. */ + public SessionUpdateParams.LineItem.AdjustableQuantity build() { + return new SessionUpdateParams.LineItem.AdjustableQuantity( + this.enabled, this.extraParams, this.maximum, this.minimum); + } + + /** + * Required. Set to true if the quantity can be adjusted to any positive + * integer. Setting to false will remove any previously specified constraints on quantity. + */ + public Builder setEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link SessionUpdateParams.LineItem.AdjustableQuantity#extraParams} for the + * field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link SessionUpdateParams.LineItem.AdjustableQuantity#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * The maximum quantity the customer can purchase for the Checkout Session. By default this + * value is 99. You can specify a value up to 999999. + */ + public Builder setMaximum(Long maximum) { + this.maximum = maximum; + return this; + } + + /** + * The minimum quantity the customer must purchase for the Checkout Session. By default this + * value is 0. + */ + public Builder setMinimum(Long minimum) { + this.minimum = minimum; + return this; + } + } + } + } + @Getter public static class ShippingOption { /** From 82aea2c3074adb98960ed64266c8feeea5068ef4 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 20 Nov 2024 17:52:12 +0000 Subject: [PATCH 07/10] Update generated code for v1368 --- OPENAPI_VERSION | 2 +- .../stripe/param/PaymentLinkCreateParams.java | 16 ++++++++++++---- .../stripe/param/PaymentLinkUpdateParams.java | 16 ++++++++++++---- .../param/checkout/SessionCreateParams.java | 18 ++++++++++++++++-- 4 files changed, 41 insertions(+), 11 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index fc4d95130ae..e16afd5cbb5 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1366 \ No newline at end of file +v1368 \ No newline at end of file diff --git a/src/main/java/com/stripe/param/PaymentLinkCreateParams.java b/src/main/java/com/stripe/param/PaymentLinkCreateParams.java index a6fea73f6f8..18d2e17c570 100644 --- a/src/main/java/com/stripe/param/PaymentLinkCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentLinkCreateParams.java @@ -1006,8 +1006,12 @@ public enum Type implements ApiRequestParams.EnumParam { @Getter public static class AutomaticTax { /** - * Required. If {@code true}, tax will be calculated automatically using the - * customer's location. + * Required. Set to {@code true} to calculate tax automatically using the customer's + * location. + * + *

Enabling this parameter causes the payment link to collect any billing address information + * necessary for tax calculation. */ @SerializedName("enabled") Boolean enabled; @@ -1053,8 +1057,12 @@ public PaymentLinkCreateParams.AutomaticTax build() { } /** - * Required. If {@code true}, tax will be calculated automatically using the - * customer's location. + * Required. Set to {@code true} to calculate tax automatically using the customer's + * location. + * + *

Enabling this parameter causes the payment link to collect any billing address + * information necessary for tax calculation. */ public Builder setEnabled(Boolean enabled) { this.enabled = enabled; diff --git a/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java b/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java index b8660d7e1cb..907ac43774e 100644 --- a/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java @@ -917,8 +917,12 @@ public enum Type implements ApiRequestParams.EnumParam { @Getter public static class AutomaticTax { /** - * Required. If {@code true}, tax will be calculated automatically using the - * customer's location. + * Required. Set to {@code true} to calculate tax automatically using the customer's + * location. + * + *

Enabling this parameter causes the payment link to collect any billing address information + * necessary for tax calculation. */ @SerializedName("enabled") Boolean enabled; @@ -964,8 +968,12 @@ public PaymentLinkUpdateParams.AutomaticTax build() { } /** - * Required. If {@code true}, tax will be calculated automatically using the - * customer's location. + * Required. Set to {@code true} to calculate tax automatically using the customer's + * location. + * + *

Enabling this parameter causes the payment link to collect any billing address + * information necessary for tax calculation. */ public Builder setEnabled(Boolean enabled) { this.enabled = enabled; diff --git a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java index d7c55b6547e..63aeb7ca614 100644 --- a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java +++ b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java @@ -1392,7 +1392,14 @@ public Builder putAllExtraParam(Map map) { @Getter public static class AutomaticTax { - /** Required. Set to true to enable automatic taxes. */ + /** + * Required. Set to {@code true} to calculate tax automatically using the customer's + * location. + * + *

Enabling this parameter causes Checkout to collect any billing address information + * necessary for tax calculation. + */ @SerializedName("enabled") Boolean enabled; @@ -1435,7 +1442,14 @@ public SessionCreateParams.AutomaticTax build() { return new SessionCreateParams.AutomaticTax(this.enabled, this.extraParams, this.liability); } - /** Required. Set to true to enable automatic taxes. */ + /** + * Required. Set to {@code true} to calculate tax automatically using the customer's + * location. + * + *

Enabling this parameter causes Checkout to collect any billing address information + * necessary for tax calculation. + */ public Builder setEnabled(Boolean enabled) { this.enabled = enabled; return this; From 38bda52b69b983bfaa8dc13d8435215f622c6cd0 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 20 Nov 2024 22:51:07 +0000 Subject: [PATCH 08/10] Update generated code for v1369 --- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/model/Charge.java | 26 +++ .../java/com/stripe/model/PaymentIntent.java | 8 + .../param/PaymentIntentConfirmParams.java | 32 ++++ .../param/PaymentIntentCreateParams.java | 32 ++++ ...entIntentIncrementAuthorizationParams.java | 181 ++++++++++++++++++ .../param/PaymentIntentUpdateParams.java | 32 ++++ 7 files changed, 312 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index e16afd5cbb5..4b855ecebb9 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1368 \ No newline at end of file +v1369 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/Charge.java b/src/main/java/com/stripe/model/Charge.java index ea9ee2d154b..42034e3ed55 100644 --- a/src/main/java/com/stripe/model/Charge.java +++ b/src/main/java/com/stripe/model/Charge.java @@ -1770,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; @@ -1900,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; @@ -2084,6 +2091,25 @@ public static class Overcapture extends StripeObject { String status; } + /** + * For more details about PartialAuthorization, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class PartialAuthorization extends StripeObject { + /** + * Indicates whether the transaction requested for partial authorization feature and the + * authorization outcome. + * + *

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 API Reference. diff --git a/src/main/java/com/stripe/model/PaymentIntent.java b/src/main/java/com/stripe/model/PaymentIntent.java index 9d502f49767..a33b50ed677 100644 --- a/src/main/java/com/stripe/model/PaymentIntent.java +++ b/src/main/java/com/stripe/model/PaymentIntent.java @@ -3737,6 +3737,14 @@ public static class Card extends StripeObject { @SerializedName("request_overcapture") String requestOvercapture; + /** + * Request partial authorization on this PaymentIntent. + * + *

One of {@code if_available}, or {@code never}. + */ + @SerializedName("request_partial_authorization") + String requestPartialAuthorization; + /** * We strongly recommend that you rely on our SCA Engine to automatically prompt your * customers for authentication based on risk level and metadata; + /** Payment method-specific configuration for this PaymentIntent. */ + @SerializedName("payment_method_options") + PaymentMethodOptions paymentMethodOptions; + /** * Text that appears on the customer's statement as the statement descriptor for a non-card or * card charge. This value overrides the account's default statement descriptor. For information @@ -85,6 +89,7 @@ private PaymentIntentIncrementAuthorizationParams( List expand, Map extraParams, Map metadata, + PaymentMethodOptions paymentMethodOptions, String statementDescriptor, TransferData transferData) { this.amount = amount; @@ -94,6 +99,7 @@ private PaymentIntentIncrementAuthorizationParams( this.expand = expand; this.extraParams = extraParams; this.metadata = metadata; + this.paymentMethodOptions = paymentMethodOptions; this.statementDescriptor = statementDescriptor; this.transferData = transferData; } @@ -117,6 +123,8 @@ public static class Builder { private Map metadata; + private PaymentMethodOptions paymentMethodOptions; + private String statementDescriptor; private TransferData transferData; @@ -131,6 +139,7 @@ public PaymentIntentIncrementAuthorizationParams build() { this.expand, this.extraParams, this.metadata, + this.paymentMethodOptions, this.statementDescriptor, this.transferData); } @@ -248,6 +257,13 @@ public Builder putAllMetadata(Map map) { return this; } + /** Payment method-specific configuration for this PaymentIntent. */ + public Builder setPaymentMethodOptions( + PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions paymentMethodOptions) { + this.paymentMethodOptions = paymentMethodOptions; + return this; + } + /** * Text that appears on the customer's statement as the statement descriptor for a non-card or * card charge. This value overrides the account's default statement descriptor. For information @@ -507,6 +523,171 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class PaymentMethodOptions { + /** Configuration for any card payments attempted on this PaymentIntent. */ + @SerializedName("card") + Card card; + + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + private PaymentMethodOptions(Card card, Map extraParams) { + this.card = card; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Card card; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions build() { + return new PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions( + this.card, this.extraParams); + } + + /** Configuration for any card payments attempted on this PaymentIntent. */ + public Builder setCard( + PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions.Card card) { + this.card = card; + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions#extraParams} for the field + * documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } + + @Getter + public static class Card { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) + * name in this param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Request partial authorization on this PaymentIntent. */ + @SerializedName("request_partial_authorization") + RequestPartialAuthorization requestPartialAuthorization; + + private Card( + Map extraParams, + RequestPartialAuthorization requestPartialAuthorization) { + this.extraParams = extraParams; + this.requestPartialAuthorization = requestPartialAuthorization; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private RequestPartialAuthorization requestPartialAuthorization; + + /** Finalize and obtain parameter instance from this builder. */ + public PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions.Card build() { + return new PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions.Card( + this.extraParams, this.requestPartialAuthorization); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions.Card#extraParams} for the + * field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions.Card#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Request partial authorization on this PaymentIntent. */ + public Builder setRequestPartialAuthorization( + PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions.Card + .RequestPartialAuthorization + requestPartialAuthorization) { + this.requestPartialAuthorization = requestPartialAuthorization; + return this; + } + } + + public enum RequestPartialAuthorization implements ApiRequestParams.EnumParam { + @SerializedName("if_available") + IF_AVAILABLE("if_available"), + + @SerializedName("never") + NEVER("never"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + RequestPartialAuthorization(String value) { + this.value = value; + } + } + } + } + @Getter public static class TransferData { /** The amount that will be transferred automatically when a charge succeeds. */ diff --git a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java index 0cd2436510f..ae694af9bd2 100644 --- a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java @@ -15752,6 +15752,10 @@ public static class Card { @SerializedName("request_overcapture") RequestOvercapture requestOvercapture; + /** Request partial authorization on this PaymentIntent. */ + @SerializedName("request_partial_authorization") + RequestPartialAuthorization requestPartialAuthorization; + /** * We strongly recommend that you rely on our SCA Engine to automatically prompt your * customers for authentication based on risk level and Date: Wed, 20 Nov 2024 15:23:18 -0800 Subject: [PATCH 09/10] Update generated code (#1923) * Update generated code for v1341 * Update generated code for v1347 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/ApiVersion.java | 2 +- src/main/java/com/stripe/model/Account.java | 26 +- src/main/java/com/stripe/model/Charge.java | 15 +- .../com/stripe/model/ConfirmationToken.java | 13 +- src/main/java/com/stripe/model/Dispute.java | 3 +- src/main/java/com/stripe/model/File.java | 9 +- .../com/stripe/model/FundingInstructions.java | 28 + src/main/java/com/stripe/model/Invoice.java | 17 +- .../java/com/stripe/model/PaymentIntent.java | 34 +- .../java/com/stripe/model/PaymentLink.java | 2 +- .../java/com/stripe/model/PaymentMethod.java | 11 +- src/main/java/com/stripe/model/Payout.java | 34 + src/main/java/com/stripe/model/Person.java | 4 + src/main/java/com/stripe/model/Refund.java | 14 + .../java/com/stripe/model/SetupAttempt.java | 6 +- .../java/com/stripe/model/SetupIntent.java | 6 +- .../java/com/stripe/model/Subscription.java | 17 +- src/main/java/com/stripe/model/TaxId.java | 14 +- src/main/java/com/stripe/model/TaxRate.java | 2 +- .../com/stripe/model/billing/CreditGrant.java | 17 +- .../com/stripe/model/checkout/Session.java | 100 ++- .../model/identity/VerificationReport.java | 2 +- .../model/identity/VerificationSession.java | 2 +- .../stripe/model/issuing/Authorization.java | 105 +++- .../java/com/stripe/model/issuing/Card.java | 7 +- .../com/stripe/model/issuing/Cardholder.java | 3 +- .../com/stripe/model/tax/Calculation.java | 21 +- .../stripe/model/tax/CalculationLineItem.java | 2 +- .../com/stripe/model/tax/Transaction.java | 19 +- .../param/AccountPersonCreateParams.java | 15 + .../stripe/param/AccountPersonListParams.java | 21 + .../param/AccountPersonUpdateParams.java | 15 + .../stripe/param/AccountPersonsParams.java | 21 + .../stripe/param/CustomerCreateParams.java | 31 +- .../param/CustomerTaxIdCreateParams.java | 31 +- .../stripe/param/FileLinkCreateParams.java | 12 +- .../java/com/stripe/param/FileListParams.java | 3 + .../stripe/param/InvoiceAddLinesParams.java | 3 + .../param/InvoiceCreatePreviewParams.java | 31 +- .../param/InvoiceLineItemUpdateParams.java | 3 + .../param/InvoiceUpcomingLinesListParams.java | 31 +- .../param/InvoiceUpcomingLinesParams.java | 31 +- .../stripe/param/InvoiceUpcomingParams.java | 31 +- .../param/InvoiceUpdateLinesParams.java | 3 + .../param/PaymentIntentConfirmParams.java | 3 + .../param/PaymentIntentCreateParams.java | 18 +- .../param/PaymentIntentUpdateParams.java | 18 +- .../stripe/param/PaymentLinkCreateParams.java | 8 +- .../stripe/param/PaymentLinkUpdateParams.java | 52 +- .../param/PersonCollectionCreateParams.java | 15 + .../param/PersonCollectionListParams.java | 21 + .../com/stripe/param/PersonUpdateParams.java | 15 + .../param/SetupIntentConfirmParams.java | 3 + .../stripe/param/SetupIntentCreateParams.java | 16 +- .../stripe/param/SetupIntentUpdateParams.java | 21 +- .../param/SubscriptionCreateParams.java | 3 + .../param/SubscriptionUpdateParams.java | 10 +- .../param/TaxIdCollectionCreateParams.java | 31 +- .../com/stripe/param/TaxIdCreateParams.java | 31 +- .../com/stripe/param/TaxRateCreateParams.java | 3 + .../com/stripe/param/TaxRateUpdateParams.java | 3 + .../com/stripe/param/TokenCreateParams.java | 15 + .../param/WebhookEndpointCreateParams.java | 5 +- .../CreditBalanceSummaryRetrieveParams.java | 8 +- .../billing/CreditGrantCreateParams.java | 36 +- .../billing/CreditGrantUpdateParams.java | 16 +- .../param/billing/MeterEventCreateParams.java | 15 +- .../param/checkout/SessionCreateParams.java | 588 +++++++++++++++++- .../VerificationSessionCreateParams.java | 4 +- .../issuing/AuthorizationCreateParams.java | 54 +- .../issuing/AuthorizationRespondParams.java | 118 ++++ .../param/tax/CalculationCreateParams.java | 31 +- .../stripe/service/SubscriptionService.java | 8 +- .../issuing/AuthorizationService.java | 29 + 75 files changed, 1690 insertions(+), 327 deletions(-) create mode 100644 src/main/java/com/stripe/param/issuing/AuthorizationRespondParams.java diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index c626f7dd819..7ab08411da8 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1319 \ No newline at end of file +v1347 \ No newline at end of file diff --git a/src/main/java/com/stripe/ApiVersion.java b/src/main/java/com/stripe/ApiVersion.java index 631e13a482b..d00fa011271 100644 --- a/src/main/java/com/stripe/ApiVersion.java +++ b/src/main/java/com/stripe/ApiVersion.java @@ -2,5 +2,5 @@ package com.stripe; final class ApiVersion { - public static final String CURRENT = "2024-10-28.acacia"; + public static final String CURRENT = "2024-11-20.acacia"; } diff --git a/src/main/java/com/stripe/model/Account.java b/src/main/java/com/stripe/model/Account.java index 01322ffc7ce..8dddcf4d8f8 100644 --- a/src/main/java/com/stripe/model/Account.java +++ b/src/main/java/com/stripe/model/Account.java @@ -1778,7 +1778,16 @@ public static class FutureRequirements extends StripeObject { @SerializedName("currently_due") List currentlyDue; - /** This is typed as a string for consistency with {@code requirements.disabled_reason}. */ + /** + * This is typed as an enum for consistency with {@code requirements.disabled_reason}. + * + *

One of {@code action_required.requested_capabilities}, {@code listed}, {@code other}, + * {@code platform_paused}, {@code rejected.fraud}, {@code rejected.incomplete_verification}, + * {@code rejected.listed}, {@code rejected.other}, {@code rejected.platform_fraud}, {@code + * rejected.platform_other}, {@code rejected.platform_terms_of_service}, {@code + * rejected.terms_of_service}, {@code requirements.past_due}, {@code + * requirements.pending_verification}, or {@code under_review}. + */ @SerializedName("disabled_reason") String disabledReason; @@ -1970,13 +1979,16 @@ public static class Requirements extends StripeObject { List currentlyDue; /** - * If the account is disabled, this string describes why. Learn more about handling - * verification issues. Can be {@code action_required.requested_capabilities}, {@code - * requirements.past_due}, {@code requirements.pending_verification}, {@code listed}, {@code - * platform_paused}, {@code rejected.fraud}, {@code rejected.incomplete_verification}, {@code - * rejected.listed}, {@code rejected.other}, {@code rejected.terms_of_service}, {@code - * under_review}, or {@code other}. + * verification issues. + * + *

One of {@code action_required.requested_capabilities}, {@code listed}, {@code other}, + * {@code platform_paused}, {@code rejected.fraud}, {@code rejected.incomplete_verification}, + * {@code rejected.listed}, {@code rejected.other}, {@code rejected.platform_fraud}, {@code + * rejected.platform_other}, {@code rejected.platform_terms_of_service}, {@code + * rejected.terms_of_service}, {@code requirements.past_due}, {@code + * requirements.pending_verification}, or {@code under_review}. */ @SerializedName("disabled_reason") String disabledReason; diff --git a/src/main/java/com/stripe/model/Charge.java b/src/main/java/com/stripe/model/Charge.java index 3ba6cd29506..f1b1022543e 100644 --- a/src/main/java/com/stripe/model/Charge.java +++ b/src/main/java/com/stripe/model/Charge.java @@ -1675,7 +1675,8 @@ public static class Card extends StripeObject { /** * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, - * {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. + * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code + * unknown}. */ @SerializedName("brand") String brand; @@ -1779,7 +1780,8 @@ public static class Card extends StripeObject { /** * Identifies which network this charge was processed on. Can be {@code amex}, {@code * cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code interac}, - * {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. + * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code + * unknown}. */ @SerializedName("network") String network; @@ -2218,7 +2220,8 @@ public static class CardPresent extends StripeObject { /** * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, - * {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. + * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code + * unknown}. */ @SerializedName("brand") String brand; @@ -2330,7 +2333,8 @@ public static class CardPresent extends StripeObject { /** * Identifies which network this charge was processed on. Can be {@code amex}, {@code * cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code interac}, - * {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. + * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code + * unknown}. */ @SerializedName("network") String network; @@ -2792,7 +2796,8 @@ public static class InteracPresent extends StripeObject { /** * Identifies which network this charge was processed on. Can be {@code amex}, {@code * cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code interac}, - * {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. + * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code + * unknown}. */ @SerializedName("network") String network; diff --git a/src/main/java/com/stripe/model/ConfirmationToken.java b/src/main/java/com/stripe/model/ConfirmationToken.java index 7be185f94ae..7e0e1add208 100644 --- a/src/main/java/com/stripe/model/ConfirmationToken.java +++ b/src/main/java/com/stripe/model/ConfirmationToken.java @@ -610,7 +610,8 @@ public static class Boleto extends StripeObject { public static class Card extends StripeObject { /** * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, - * {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. + * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code + * unknown}. */ @SerializedName("brand") String brand; @@ -807,7 +808,8 @@ public static class CardPresent extends StripeObject { /** * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, - * {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. + * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or + * {@code unknown}. */ @SerializedName("brand") String brand; @@ -920,8 +922,8 @@ public static class CardPresent extends StripeObject { /** * Identifies which network this charge was processed on. Can be {@code amex}, {@code * cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code - * interac}, {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code - * unknown}. + * interac}, {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code + * visa}, or {@code unknown}. */ @SerializedName("network") String network; @@ -1277,7 +1279,8 @@ public static class VisaCheckout extends StripeObject { public static class CardPresent extends StripeObject { /** * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, - * {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. + * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code + * unknown}. */ @SerializedName("brand") String brand; diff --git a/src/main/java/com/stripe/model/Dispute.java b/src/main/java/com/stripe/model/Dispute.java index 790d5a5a542..e8c6c92ebd8 100644 --- a/src/main/java/com/stripe/model/Dispute.java +++ b/src/main/java/com/stripe/model/Dispute.java @@ -1113,7 +1113,8 @@ public static class AmazonPay extends StripeObject { public static class Card extends StripeObject { /** * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, - * {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. + * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code + * unknown}. */ @SerializedName("brand") String brand; diff --git a/src/main/java/com/stripe/model/File.java b/src/main/java/com/stripe/model/File.java index b5c52b45e57..09ba4022a2b 100644 --- a/src/main/java/com/stripe/model/File.java +++ b/src/main/java/com/stripe/model/File.java @@ -67,10 +67,11 @@ public class File extends ApiResource implements HasId { * *

One of {@code account_requirement}, {@code additional_verification}, {@code business_icon}, * {@code business_logo}, {@code customer_signature}, {@code dispute_evidence}, {@code - * document_provider_identity_document}, {@code finance_report_run}, {@code identity_document}, - * {@code identity_document_downloadable}, {@code issuing_regulatory_reporting}, {@code - * pci_document}, {@code selfie}, {@code sigma_scheduled_query}, {@code tax_document_user_upload}, - * or {@code terminal_reader_splashscreen}. + * document_provider_identity_document}, {@code finance_report_run}, {@code + * financial_account_statement}, {@code identity_document}, {@code + * identity_document_downloadable}, {@code issuing_regulatory_reporting}, {@code pci_document}, + * {@code selfie}, {@code sigma_scheduled_query}, {@code tax_document_user_upload}, or {@code + * terminal_reader_splashscreen}. */ @SerializedName("purpose") String purpose; diff --git a/src/main/java/com/stripe/model/FundingInstructions.java b/src/main/java/com/stripe/model/FundingInstructions.java index 67ab75417e5..17db7de5395 100644 --- a/src/main/java/com/stripe/model/FundingInstructions.java +++ b/src/main/java/com/stripe/model/FundingInstructions.java @@ -124,10 +124,24 @@ public static class FinancialAddress extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Aba extends StripeObject { + @SerializedName("account_holder_address") + Address accountHolderAddress; + + /** The account holder name. */ + @SerializedName("account_holder_name") + String accountHolderName; + /** The ABA account number. */ @SerializedName("account_number") String accountNumber; + /** The account type. */ + @SerializedName("account_type") + String accountType; + + @SerializedName("bank_address") + Address bankAddress; + /** The bank name. */ @SerializedName("bank_name") String bankName; @@ -203,10 +217,24 @@ public static class Spei extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Swift extends StripeObject { + @SerializedName("account_holder_address") + Address accountHolderAddress; + + /** The account holder name. */ + @SerializedName("account_holder_name") + String accountHolderName; + /** The account number. */ @SerializedName("account_number") String accountNumber; + /** The account type. */ + @SerializedName("account_type") + String accountType; + + @SerializedName("bank_address") + Address bankAddress; + /** The bank name. */ @SerializedName("bank_name") String bankName; diff --git a/src/main/java/com/stripe/model/Invoice.java b/src/main/java/com/stripe/model/Invoice.java index 27856c2d8bd..060f1051f50 100644 --- a/src/main/java/com/stripe/model/Invoice.java +++ b/src/main/java/com/stripe/model/Invoice.java @@ -2267,14 +2267,15 @@ public static class CustomerTaxId extends StripeObject { * {@code gb_vat}, {@code nz_gst}, {@code au_abn}, {@code au_arn}, {@code in_gst}, {@code * no_vat}, {@code no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen}, * {@code ru_inn}, {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code tw_vat}, - * {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid}, {@code my_itn}, - * {@code us_ein}, {@code kr_brn}, {@code ca_qst}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code - * ca_pst_mb}, {@code ca_pst_sk}, {@code my_sst}, {@code sg_gst}, {@code ae_trn}, {@code - * cl_tin}, {@code sa_vat}, {@code id_npwp}, {@code my_frp}, {@code il_vat}, {@code ge_vat}, - * {@code ua_vat}, {@code is_vat}, {@code bg_uic}, {@code hu_tin}, {@code si_tin}, {@code - * ke_pin}, {@code tr_tin}, {@code eg_tin}, {@code ph_tin}, {@code bh_vat}, {@code kz_bin}, - * {@code ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, {@code tz_vat}, {@code - * uz_vat}, {@code uz_tin}, {@code md_vat}, {@code ma_vat}, {@code by_tin}, or {@code unknown}. + * {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid}, {@code li_vat}, + * {@code my_itn}, {@code us_ein}, {@code kr_brn}, {@code ca_qst}, {@code ca_gst_hst}, {@code + * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code my_sst}, {@code sg_gst}, {@code + * ae_trn}, {@code cl_tin}, {@code sa_vat}, {@code id_npwp}, {@code my_frp}, {@code il_vat}, + * {@code ge_vat}, {@code ua_vat}, {@code is_vat}, {@code bg_uic}, {@code hu_tin}, {@code + * si_tin}, {@code ke_pin}, {@code tr_tin}, {@code eg_tin}, {@code ph_tin}, {@code bh_vat}, + * {@code kz_bin}, {@code ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, {@code + * tz_vat}, {@code uz_vat}, {@code uz_tin}, {@code md_vat}, {@code ma_vat}, {@code by_tin}, or + * {@code unknown}. */ @SerializedName("type") String type; diff --git a/src/main/java/com/stripe/model/PaymentIntent.java b/src/main/java/com/stripe/model/PaymentIntent.java index 289a78e82e7..06493408af6 100644 --- a/src/main/java/com/stripe/model/PaymentIntent.java +++ b/src/main/java/com/stripe/model/PaymentIntent.java @@ -251,7 +251,11 @@ public class PaymentIntent extends ApiResource implements HasId, MetadataStore

paymentMethod; - /** Information about the payment method configuration used for this PaymentIntent. */ + /** + * Information about the payment method + * configuration used for this PaymentIntent. + */ @SerializedName("payment_method_configuration_details") PaymentMethodConfigurationDetails paymentMethodConfigurationDetails; @@ -1822,10 +1826,24 @@ public static class FinancialAddress extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Aba extends StripeObject { + @SerializedName("account_holder_address") + Address accountHolderAddress; + + /** The account holder name. */ + @SerializedName("account_holder_name") + String accountHolderName; + /** The ABA account number. */ @SerializedName("account_number") String accountNumber; + /** The account type. */ + @SerializedName("account_type") + String accountType; + + @SerializedName("bank_address") + Address bankAddress; + /** The bank name. */ @SerializedName("bank_name") String bankName; @@ -1901,10 +1919,24 @@ public static class Spei extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Swift extends StripeObject { + @SerializedName("account_holder_address") + Address accountHolderAddress; + + /** The account holder name. */ + @SerializedName("account_holder_name") + String accountHolderName; + /** The account number. */ @SerializedName("account_number") String accountNumber; + /** The account type. */ + @SerializedName("account_type") + String accountType; + + @SerializedName("bank_address") + Address bankAddress; + /** The bank name. */ @SerializedName("bank_name") String bankName; diff --git a/src/main/java/com/stripe/model/PaymentLink.java b/src/main/java/com/stripe/model/PaymentLink.java index 8a3a23026a3..077ad74fb35 100644 --- a/src/main/java/com/stripe/model/PaymentLink.java +++ b/src/main/java/com/stripe/model/PaymentLink.java @@ -202,7 +202,7 @@ public class PaymentLink extends ApiResource implements HasId, MetadataStoreOne of {@code auto}, {@code book}, {@code donate}, or {@code pay}. + *

One of {@code auto}, {@code book}, {@code donate}, {@code pay}, or {@code subscribe}. */ @SerializedName("submit_type") String submitType; diff --git a/src/main/java/com/stripe/model/PaymentMethod.java b/src/main/java/com/stripe/model/PaymentMethod.java index 76a741d2485..7be4badbe15 100644 --- a/src/main/java/com/stripe/model/PaymentMethod.java +++ b/src/main/java/com/stripe/model/PaymentMethod.java @@ -843,7 +843,7 @@ public static class Boleto extends StripeObject { public static class Card extends StripeObject { /** * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code - * jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. + * jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. */ @SerializedName("brand") String brand; @@ -1039,7 +1039,8 @@ public static class CardPresent extends StripeObject { /** * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, - * {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. + * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or + * {@code unknown}. */ @SerializedName("brand") String brand; @@ -1151,8 +1152,8 @@ public static class CardPresent extends StripeObject { /** * Identifies which network this charge was processed on. Can be {@code amex}, {@code * cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code - * interac}, {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code - * unknown}. + * interac}, {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code + * visa}, or {@code unknown}. */ @SerializedName("network") String network; @@ -1503,7 +1504,7 @@ public static class VisaCheckout extends StripeObject { public static class CardPresent extends StripeObject { /** * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code - * jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. + * jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. */ @SerializedName("brand") String brand; diff --git a/src/main/java/com/stripe/model/Payout.java b/src/main/java/com/stripe/model/Payout.java index 19f3590ca05..3bc8183df69 100644 --- a/src/main/java/com/stripe/model/Payout.java +++ b/src/main/java/com/stripe/model/Payout.java @@ -203,6 +203,13 @@ public class Payout extends ApiResource implements MetadataStore, Balanc @SerializedName("status") String status; + /** + * A value that generates from the beneficiary's bank that allows users to track payouts with + * their bank. Banks might call this a "reference number" or something similar. + */ + @SerializedName("trace_id") + TraceId traceId; + /** Can be {@code bank_account} or {@code card}. */ @SerializedName("type") String type; @@ -696,6 +703,32 @@ public Payout update(PayoutUpdateParams params, RequestOptions options) throws S return getResponseGetter().request(request, Payout.class); } + /** + * For more details about TraceId, please refer to the API + * Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class TraceId extends StripeObject { + /** + * Possible values are {@code pending}, {@code supported}, and {@code unsupported}. When {@code + * payout.status} is {@code pending} or {@code in_transit}, this will be {@code pending}. When + * the payout transitions to {@code paid}, {@code failed}, or {@code canceled}, this status will + * become {@code supported} or {@code unsupported} shortly after in most cases. In some cases, + * this may appear as {@code pending} for up to 10 days after {@code arrival_date} until + * transitioning to {@code supported} or {@code unsupported}. + */ + @SerializedName("status") + String status; + + /** + * The trace ID value if {@code trace_id.status} is {@code supported}, otherwise {@code nil}. + */ + @SerializedName("value") + String value; + } + @Override public void setResponseGetter(StripeResponseGetter responseGetter) { super.setResponseGetter(responseGetter); @@ -705,5 +738,6 @@ public void setResponseGetter(StripeResponseGetter responseGetter) { trySetResponseGetter(failureBalanceTransaction, responseGetter); trySetResponseGetter(originalPayout, responseGetter); trySetResponseGetter(reversedBy, responseGetter); + trySetResponseGetter(traceId, responseGetter); } } diff --git a/src/main/java/com/stripe/model/Person.java b/src/main/java/com/stripe/model/Person.java index 371b5bb096b..2101b84409e 100644 --- a/src/main/java/com/stripe/model/Person.java +++ b/src/main/java/com/stripe/model/Person.java @@ -584,6 +584,10 @@ public static class Errors extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Relationship extends StripeObject { + /** Whether the person is the authorizer of the account's representative. */ + @SerializedName("authorizer") + Boolean authorizer; + /** * Whether the person is a director of the account's legal entity. Directors are typically * members of the governing board of the company, or responsible for ensuring the company meets diff --git a/src/main/java/com/stripe/model/Refund.java b/src/main/java/com/stripe/model/Refund.java index 4435944a0f2..88884b59a5a 100644 --- a/src/main/java/com/stripe/model/Refund.java +++ b/src/main/java/com/stripe/model/Refund.java @@ -746,6 +746,13 @@ public static class AuBankTransfer extends StripeObject {} @Setter @EqualsAndHashCode(callSuper = false) public static class Blik extends StripeObject { + /** + * For refunds declined by the network, a decline code provided by the network which indicates + * the reason the refund failed. + */ + @SerializedName("network_decline_code") + String networkDeclineCode; + /** The reference assigned to the refund. */ @SerializedName("reference") String reference; @@ -1037,6 +1044,13 @@ public static class Sofort extends StripeObject {} @Setter @EqualsAndHashCode(callSuper = false) public static class Swish extends StripeObject { + /** + * For refunds declined by the network, a decline code provided by the network which indicates + * the reason the refund failed. + */ + @SerializedName("network_decline_code") + String networkDeclineCode; + /** The reference assigned to the refund. */ @SerializedName("reference") String reference; diff --git a/src/main/java/com/stripe/model/SetupAttempt.java b/src/main/java/com/stripe/model/SetupAttempt.java index 91e7c0504c1..245eef779f9 100644 --- a/src/main/java/com/stripe/model/SetupAttempt.java +++ b/src/main/java/com/stripe/model/SetupAttempt.java @@ -485,7 +485,8 @@ public static class Boleto extends StripeObject {} public static class Card extends StripeObject { /** * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, - * {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. + * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code + * unknown}. */ @SerializedName("brand") String brand; @@ -556,7 +557,8 @@ public static class Card extends StripeObject { /** * Identifies which network this charge was processed on. Can be {@code amex}, {@code * cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code interac}, - * {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. + * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code + * unknown}. */ @SerializedName("network") String network; diff --git a/src/main/java/com/stripe/model/SetupIntent.java b/src/main/java/com/stripe/model/SetupIntent.java index b6b0301514c..1272118c232 100644 --- a/src/main/java/com/stripe/model/SetupIntent.java +++ b/src/main/java/com/stripe/model/SetupIntent.java @@ -193,7 +193,11 @@ public class SetupIntent extends ApiResource implements HasId, MetadataStore paymentMethod; - /** Information about the payment method configuration used for this Setup Intent. */ + /** + * Information about the payment method + * configuration used for this Setup Intent. + */ @SerializedName("payment_method_configuration_details") PaymentMethodConfigurationDetails paymentMethodConfigurationDetails; diff --git a/src/main/java/com/stripe/model/Subscription.java b/src/main/java/com/stripe/model/Subscription.java index 40d8991bc6f..4a71991e985 100644 --- a/src/main/java/com/stripe/model/Subscription.java +++ b/src/main/java/com/stripe/model/Subscription.java @@ -266,7 +266,8 @@ public class Subscription extends ApiResource implements HasId, MetadataStorepausing collection. + * about pausing + * collection. */ @SerializedName("pause_collection") PauseCollection pauseCollection; @@ -332,12 +333,12 @@ public class Subscription extends ApiResource implements HasId, MetadataStoreA subscription can only enter a {@code paused} status when + * href="https://stripe.com/docs/billing/subscriptions/trials#create-free-trials-without-payment">when * a trial ends without a payment method. A {@code paused} subscription doesn't generate * invoices and can be resumed after your customer adds their payment method. The {@code paused} * status is different from pausing collection, which - * still generates invoices and leaves the subscription's status unchanged. + * href="https://stripe.com/docs/billing/subscriptions/pause-payment">pausing collection, + * which still generates invoices and leaves the subscription's status unchanged. * *

If subscription {@code collection_method=charge_automatically}, it becomes {@code past_due} * when payment is required but cannot be paid (due to failed payment or awaiting additional user @@ -1070,7 +1071,7 @@ public static SubscriptionSearchResult search( * *

In these cases, we apply a credit for the unused time on the previous price, immediately * charge the customer using the new price, and reset the billing date. Learn about how Stripe + * href="https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment">Stripe * immediately attempts payment for subscription changes. * *

If you want to charge for an upgrade immediately, pass {@code proration_behavior} as {@code @@ -1123,7 +1124,7 @@ public Subscription update(Map params) throws StripeException { * *

In these cases, we apply a credit for the unused time on the previous price, immediately * charge the customer using the new price, and reset the billing date. Learn about how Stripe + * href="https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment">Stripe * immediately attempts payment for subscription changes. * *

If you want to charge for an upgrade immediately, pass {@code proration_behavior} as {@code @@ -1180,7 +1181,7 @@ public Subscription update(Map params, RequestOptions options) * *

In these cases, we apply a credit for the unused time on the previous price, immediately * charge the customer using the new price, and reset the billing date. Learn about how Stripe + * href="https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment">Stripe * immediately attempts payment for subscription changes. * *

If you want to charge for an upgrade immediately, pass {@code proration_behavior} as {@code @@ -1232,7 +1233,7 @@ public Subscription update(SubscriptionUpdateParams params) throws StripeExcepti * *

In these cases, we apply a credit for the unused time on the previous price, immediately * charge the customer using the new price, and reset the billing date. Learn about how Stripe + * href="https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment">Stripe * immediately attempts payment for subscription changes. * *

If you want to charge for an upgrade immediately, pass {@code proration_behavior} as {@code diff --git a/src/main/java/com/stripe/model/TaxId.java b/src/main/java/com/stripe/model/TaxId.java index 8ae108c649a..d53166ff8c7 100644 --- a/src/main/java/com/stripe/model/TaxId.java +++ b/src/main/java/com/stripe/model/TaxId.java @@ -81,13 +81,13 @@ public class TaxId extends ApiResource implements HasId { * {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code * ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code * in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code - * kr_brn}, {@code kz_bin}, {@code li_uid}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code - * my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, - * {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, - * {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, - * {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, - * {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code vn_tin}, - * or {@code za_vat}. Note that some legacy tax IDs have type {@code unknown} + * kr_brn}, {@code kz_bin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, {@code md_vat}, {@code + * mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code + * no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, + * {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, + * {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, + * {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, + * {@code vn_tin}, or {@code za_vat}. Note that some legacy tax IDs have type {@code unknown} */ @SerializedName("type") String type; diff --git a/src/main/java/com/stripe/model/TaxRate.java b/src/main/java/com/stripe/model/TaxRate.java index 2e2f6797c35..84195dd5852 100644 --- a/src/main/java/com/stripe/model/TaxRate.java +++ b/src/main/java/com/stripe/model/TaxRate.java @@ -160,7 +160,7 @@ public class TaxRate extends ApiResource implements HasId, MetadataStoreOne of {@code amusement_tax}, {@code communications_tax}, {@code gst}, {@code hst}, {@code * igst}, {@code jct}, {@code lease_tax}, {@code pst}, {@code qst}, {@code retail_delivery_fee}, - * {@code rst}, {@code sales_tax}, or {@code vat}. + * {@code rst}, {@code sales_tax}, {@code service_tax}, or {@code vat}. */ @SerializedName("tax_type") String taxType; diff --git a/src/main/java/com/stripe/model/billing/CreditGrant.java b/src/main/java/com/stripe/model/billing/CreditGrant.java index 64563a07182..091662a63a4 100644 --- a/src/main/java/com/stripe/model/billing/CreditGrant.java +++ b/src/main/java/com/stripe/model/billing/CreditGrant.java @@ -32,7 +32,7 @@ * *

Related guide: Billing - * credits end + * credits */ @Getter @Setter @@ -45,8 +45,8 @@ public class CreditGrant extends ApiResource implements HasId, MetadataStoreOne of {@code paid}, or {@code promotional}. */ @@ -57,20 +57,17 @@ public class CreditGrant extends ApiResource implements HasId, MetadataStore customer; - /** The time when the billing credits become effective i.e when they are eligible to be used. */ + /** The time when the billing credits become effective—when they're eligible for use. */ @SerializedName("effective_at") Long effectiveAt; - /** - * The time when the billing credits will expire. If not present, the billing credits will never - * expire. - */ + /** The time when the billing credits expire. If not present, the billing credits don't expire. */ @SerializedName("expires_at") Long expiresAt; @@ -454,7 +451,7 @@ public static class ApplicabilityConfig extends StripeObject { @EqualsAndHashCode(callSuper = false) public static class Scope extends StripeObject { /** - * The price type to which credit grants can apply to. We currently only support {@code + * The price type for which credit grants can apply. We currently only support the {@code * metered} price type. This refers to prices that have a Billing Meter attached to them. * diff --git a/src/main/java/com/stripe/model/checkout/Session.java b/src/main/java/com/stripe/model/checkout/Session.java index 1747e2e5db5..f28a95d9cea 100644 --- a/src/main/java/com/stripe/model/checkout/Session.java +++ b/src/main/java/com/stripe/model/checkout/Session.java @@ -58,6 +58,13 @@ @Setter @EqualsAndHashCode(callSuper = false) public class Session extends ApiResource implements HasId, MetadataStore { + /** + * Settings for price localization with Adaptive Pricing. + */ + @SerializedName("adaptive_pricing") + AdaptivePricing adaptivePricing; + /** When set, provides configuration for actions to take if this Checkout Session expires. */ @SerializedName("after_expiration") AfterExpiration afterExpiration; @@ -371,7 +378,7 @@ public class Session extends ApiResource implements HasId, MetadataStoreOne of {@code auto}, {@code book}, {@code donate}, or {@code pay}. + *

One of {@code auto}, {@code book}, {@code donate}, {@code pay}, or {@code subscribe}. */ @SerializedName("submit_type") String submitType; @@ -795,6 +802,19 @@ public Session update(SessionUpdateParams params, RequestOptions options) throws return getResponseGetter().request(request, Session.class); } + /** + * For more details about AdaptivePricing, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class AdaptivePricing extends StripeObject { + /** Whether Adaptive Pricing is enabled. */ + @SerializedName("enabled") + Boolean enabled; + } + /** * For more details about AfterExpiration, please refer to the API Reference. @@ -1320,14 +1340,14 @@ public static class TaxId extends StripeObject { * no_vat}, {@code no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen}, * {@code ru_inn}, {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code * tw_vat}, {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid}, - * {@code my_itn}, {@code us_ein}, {@code kr_brn}, {@code ca_qst}, {@code ca_gst_hst}, {@code - * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code my_sst}, {@code sg_gst}, {@code - * ae_trn}, {@code cl_tin}, {@code sa_vat}, {@code id_npwp}, {@code my_frp}, {@code il_vat}, - * {@code ge_vat}, {@code ua_vat}, {@code is_vat}, {@code bg_uic}, {@code hu_tin}, {@code - * si_tin}, {@code ke_pin}, {@code tr_tin}, {@code eg_tin}, {@code ph_tin}, {@code bh_vat}, - * {@code kz_bin}, {@code ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, {@code - * tz_vat}, {@code uz_vat}, {@code uz_tin}, {@code md_vat}, {@code ma_vat}, {@code by_tin}, or - * {@code unknown}. + * {@code li_vat}, {@code my_itn}, {@code us_ein}, {@code kr_brn}, {@code ca_qst}, {@code + * ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code my_sst}, + * {@code sg_gst}, {@code ae_trn}, {@code cl_tin}, {@code sa_vat}, {@code id_npwp}, {@code + * my_frp}, {@code il_vat}, {@code ge_vat}, {@code ua_vat}, {@code is_vat}, {@code bg_uic}, + * {@code hu_tin}, {@code si_tin}, {@code ke_pin}, {@code tr_tin}, {@code eg_tin}, {@code + * ph_tin}, {@code bh_vat}, {@code kz_bin}, {@code ng_tin}, {@code om_vat}, {@code de_stn}, + * {@code ch_uid}, {@code tz_vat}, {@code uz_vat}, {@code uz_tin}, {@code md_vat}, {@code + * ma_vat}, {@code by_tin}, or {@code unknown}. */ @SerializedName("type") String type; @@ -1920,6 +1940,9 @@ public static class AuBecsDebit extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class BacsDebit extends StripeObject { + @SerializedName("mandate_options") + MandateOptions mandateOptions; + /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * @@ -1943,6 +1966,15 @@ public static class BacsDebit extends StripeObject { */ @SerializedName("setup_future_usage") String setupFutureUsage; + + /** + * For more details about MandateOptions, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class MandateOptions extends StripeObject {} } /** @@ -2030,6 +2062,43 @@ public static class Card extends StripeObject { @SerializedName("installments") Installments installments; + /** + * Request ability to capture + * beyond the standard authorization validity window for this CheckoutSession. + * + *

One of {@code if_available}, or {@code never}. + */ + @SerializedName("request_extended_authorization") + String requestExtendedAuthorization; + + /** + * Request ability to increment the + * authorization for this CheckoutSession. + * + *

One of {@code if_available}, or {@code never}. + */ + @SerializedName("request_incremental_authorization") + String requestIncrementalAuthorization; + + /** + * Request ability to make multiple + * captures for this CheckoutSession. + * + *

One of {@code if_available}, or {@code never}. + */ + @SerializedName("request_multicapture") + String requestMulticapture; + + /** + * Request ability to overcapture for + * this CheckoutSession. + * + *

One of {@code if_available}, or {@code never}. + */ + @SerializedName("request_overcapture") + String requestOvercapture; + /** * We strongly recommend that you rely on our SCA Engine to automatically prompt your * customers for authentication based on risk level and API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class MandateOptions extends StripeObject {} } /** @@ -3412,6 +3493,7 @@ public static class Tax extends StripeObject { @Override public void setResponseGetter(StripeResponseGetter responseGetter) { super.setResponseGetter(responseGetter); + trySetResponseGetter(adaptivePricing, responseGetter); trySetResponseGetter(afterExpiration, responseGetter); trySetResponseGetter(automaticTax, responseGetter); trySetResponseGetter(consent, responseGetter); diff --git a/src/main/java/com/stripe/model/identity/VerificationReport.java b/src/main/java/com/stripe/model/identity/VerificationReport.java index ebc14e94857..ee0fef5d21a 100644 --- a/src/main/java/com/stripe/model/identity/VerificationReport.java +++ b/src/main/java/com/stripe/model/identity/VerificationReport.java @@ -102,7 +102,7 @@ public class VerificationReport extends ApiResource implements HasId { @SerializedName("type") String type; - /** The configuration token of a Verification Flow from the dashboard. */ + /** The configuration token of a verification flow from the dashboard. */ @SerializedName("verification_flow") String verificationFlow; diff --git a/src/main/java/com/stripe/model/identity/VerificationSession.java b/src/main/java/com/stripe/model/identity/VerificationSession.java index 54c1da3c2d7..cd26557bff8 100644 --- a/src/main/java/com/stripe/model/identity/VerificationSession.java +++ b/src/main/java/com/stripe/model/identity/VerificationSession.java @@ -162,7 +162,7 @@ public class VerificationSession extends ApiResource @SerializedName("url") String url; - /** The configuration token of a Verification Flow from the dashboard. */ + /** The configuration token of a verification flow from the dashboard. */ @SerializedName("verification_flow") String verificationFlow; diff --git a/src/main/java/com/stripe/model/issuing/Authorization.java b/src/main/java/com/stripe/model/issuing/Authorization.java index 8c9da51055c..05b589e57ff 100644 --- a/src/main/java/com/stripe/model/issuing/Authorization.java +++ b/src/main/java/com/stripe/model/issuing/Authorization.java @@ -22,6 +22,7 @@ import com.stripe.param.issuing.AuthorizationFinalizeAmountParams; import com.stripe.param.issuing.AuthorizationIncrementParams; import com.stripe.param.issuing.AuthorizationListParams; +import com.stripe.param.issuing.AuthorizationRespondParams; import com.stripe.param.issuing.AuthorizationRetrieveParams; import com.stripe.param.issuing.AuthorizationReverseParams; import com.stripe.param.issuing.AuthorizationUpdateParams; @@ -80,8 +81,8 @@ public class Authorization extends ApiResource List balanceTransactions; /** - * You can create physical or virtual cards - * that are issued to cardholders. + * You can create physical or virtual cards that are + * issued to cardholders. */ @SerializedName("card") Card card; @@ -109,6 +110,13 @@ public class Authorization extends ApiResource @SerializedName("fleet") Fleet fleet; + /** + * Fraud challenges sent to the cardholder, if this authorization was declined for fraud risk + * reasons. + */ + @SerializedName("fraud_challenges") + List fraudChallenges; + /** * Information about fuel that was purchased with this transaction. Typically this information is * received from the merchant after the authorization has been approved and the fuel dispensed. @@ -224,6 +232,13 @@ public class Authorization extends ApiResource @SerializedName("verification_data") VerificationData verificationData; + /** + * Whether the authorization bypassed fraud risk checks because the cardholder has previously + * completed a fraud challenge on a similar high-risk authorization from the same merchant. + */ + @SerializedName("verified_by_fraud_challenge") + Boolean verifiedByFraudChallenge; + /** * The digital wallet used for this transaction. One of {@code apple_pay}, {@code google_pay}, or * {@code samsung_pay}. Will populate as {@code null} when no digital wallet was utilized. @@ -770,6 +785,40 @@ public static class Tax extends StripeObject { } } + /** + * For more details about FraudChallenge, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class FraudChallenge extends StripeObject { + /** + * The method by which the fraud challenge was delivered to the cardholder. + * + *

Equal to {@code sms}. + */ + @SerializedName("channel") + String channel; + + /** + * The status of the fraud challenge. + * + *

One of {@code expired}, {@code pending}, {@code rejected}, {@code undeliverable}, or + * {@code verified}. + */ + @SerializedName("status") + String status; + + /** + * If the challenge is not deliverable, the reason why. + * + *

One of {@code no_phone_number}, or {@code unsupported_phone_number}. + */ + @SerializedName("undeliverable_reason") + String undeliverableReason; + } + /** * For more details about Fuel, please refer to the API * Reference. @@ -1434,6 +1483,58 @@ public Authorization finalizeAmount( return resource.getResponseGetter().request(request, Authorization.class); } + /** + * Respond to a fraud challenge on a testmode Issuing authorization, simulating either a + * confirmation of fraud or a correction of legitimacy. + */ + public Authorization respond(Map params) throws StripeException { + return respond(params, (RequestOptions) null); + } + + /** + * Respond to a fraud challenge on a testmode Issuing authorization, simulating either a + * confirmation of fraud or a correction of legitimacy. + */ + public Authorization respond(Map params, RequestOptions options) + throws StripeException { + String path = + String.format( + "/v1/test_helpers/issuing/authorizations/%s/fraud_challenges/respond", + ApiResource.urlEncodeId(this.resource.getId())); + ApiRequest request = + new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options); + return resource.getResponseGetter().request(request, Authorization.class); + } + + /** + * Respond to a fraud challenge on a testmode Issuing authorization, simulating either a + * confirmation of fraud or a correction of legitimacy. + */ + public Authorization respond(AuthorizationRespondParams params) throws StripeException { + return respond(params, (RequestOptions) null); + } + + /** + * Respond to a fraud challenge on a testmode Issuing authorization, simulating either a + * confirmation of fraud or a correction of legitimacy. + */ + public Authorization respond(AuthorizationRespondParams params, RequestOptions options) + throws StripeException { + String path = + String.format( + "/v1/test_helpers/issuing/authorizations/%s/fraud_challenges/respond", + ApiResource.urlEncodeId(this.resource.getId())); + ApiResource.checkNullTypedParams(path, params); + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + path, + ApiRequestParams.paramsToMap(params), + options); + return resource.getResponseGetter().request(request, Authorization.class); + } + /** Increment a test-mode Authorization. */ public Authorization increment(Map params) throws StripeException { return increment(params, (RequestOptions) null); diff --git a/src/main/java/com/stripe/model/issuing/Card.java b/src/main/java/com/stripe/model/issuing/Card.java index 1a0a8afac24..979aff4b95e 100644 --- a/src/main/java/com/stripe/model/issuing/Card.java +++ b/src/main/java/com/stripe/model/issuing/Card.java @@ -30,8 +30,8 @@ import lombok.Setter; /** - * You can create physical or virtual cards that - * are issued to cardholders. + * You can create physical or virtual cards that are + * issued to cardholders. */ @Getter @Setter @@ -53,7 +53,8 @@ public class Card extends ApiResource implements HasId, MetadataStore { * An Issuing {@code Cardholder} object represents an individual or business entity who is issued cards. * - *

Related guide: How to + *

Related guide: How to * create a cardholder */ @SerializedName("cardholder") diff --git a/src/main/java/com/stripe/model/issuing/Cardholder.java b/src/main/java/com/stripe/model/issuing/Cardholder.java index 42a75396962..3e0b8556aab 100644 --- a/src/main/java/com/stripe/model/issuing/Cardholder.java +++ b/src/main/java/com/stripe/model/issuing/Cardholder.java @@ -29,7 +29,8 @@ * An Issuing {@code Cardholder} object represents an individual or business entity who is issued cards. * - *

Related guide: How to create + *

Related guide: How to create * a cardholder */ @Getter diff --git a/src/main/java/com/stripe/model/tax/Calculation.java b/src/main/java/com/stripe/model/tax/Calculation.java index 5fadc7b6d33..916eaf99ba6 100644 --- a/src/main/java/com/stripe/model/tax/Calculation.java +++ b/src/main/java/com/stripe/model/tax/Calculation.java @@ -327,14 +327,14 @@ public static class TaxId extends StripeObject { * no_vat}, {@code no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen}, * {@code ru_inn}, {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code * tw_vat}, {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid}, - * {@code my_itn}, {@code us_ein}, {@code kr_brn}, {@code ca_qst}, {@code ca_gst_hst}, {@code - * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code my_sst}, {@code sg_gst}, {@code - * ae_trn}, {@code cl_tin}, {@code sa_vat}, {@code id_npwp}, {@code my_frp}, {@code il_vat}, - * {@code ge_vat}, {@code ua_vat}, {@code is_vat}, {@code bg_uic}, {@code hu_tin}, {@code - * si_tin}, {@code ke_pin}, {@code tr_tin}, {@code eg_tin}, {@code ph_tin}, {@code bh_vat}, - * {@code kz_bin}, {@code ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, {@code - * tz_vat}, {@code uz_vat}, {@code uz_tin}, {@code md_vat}, {@code ma_vat}, {@code by_tin}, or - * {@code unknown}. + * {@code li_vat}, {@code my_itn}, {@code us_ein}, {@code kr_brn}, {@code ca_qst}, {@code + * ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code my_sst}, + * {@code sg_gst}, {@code ae_trn}, {@code cl_tin}, {@code sa_vat}, {@code id_npwp}, {@code + * my_frp}, {@code il_vat}, {@code ge_vat}, {@code ua_vat}, {@code is_vat}, {@code bg_uic}, + * {@code hu_tin}, {@code si_tin}, {@code ke_pin}, {@code tr_tin}, {@code eg_tin}, {@code + * ph_tin}, {@code bh_vat}, {@code kz_bin}, {@code ng_tin}, {@code om_vat}, {@code de_stn}, + * {@code ch_uid}, {@code tz_vat}, {@code uz_vat}, {@code uz_tin}, {@code md_vat}, {@code + * ma_vat}, {@code by_tin}, or {@code unknown}. */ @SerializedName("type") String type; @@ -562,7 +562,8 @@ public static class TaxRateDetails extends StripeObject { * *

One of {@code amusement_tax}, {@code communications_tax}, {@code gst}, {@code hst}, * {@code igst}, {@code jct}, {@code lease_tax}, {@code pst}, {@code qst}, {@code - * retail_delivery_fee}, {@code rst}, {@code sales_tax}, or {@code vat}. + * retail_delivery_fee}, {@code rst}, {@code sales_tax}, {@code service_tax}, or {@code + * vat}. */ @SerializedName("tax_type") String taxType; @@ -658,7 +659,7 @@ public static class TaxRateDetails extends StripeObject { * *

One of {@code amusement_tax}, {@code communications_tax}, {@code gst}, {@code hst}, * {@code igst}, {@code jct}, {@code lease_tax}, {@code pst}, {@code qst}, {@code - * retail_delivery_fee}, {@code rst}, {@code sales_tax}, or {@code vat}. + * retail_delivery_fee}, {@code rst}, {@code sales_tax}, {@code service_tax}, or {@code vat}. */ @SerializedName("tax_type") String taxType; diff --git a/src/main/java/com/stripe/model/tax/CalculationLineItem.java b/src/main/java/com/stripe/model/tax/CalculationLineItem.java index 0d231fcacab..041f16d431a 100644 --- a/src/main/java/com/stripe/model/tax/CalculationLineItem.java +++ b/src/main/java/com/stripe/model/tax/CalculationLineItem.java @@ -199,7 +199,7 @@ public static class TaxRateDetails extends StripeObject { * *

One of {@code amusement_tax}, {@code communications_tax}, {@code gst}, {@code hst}, * {@code igst}, {@code jct}, {@code lease_tax}, {@code pst}, {@code qst}, {@code - * retail_delivery_fee}, {@code rst}, {@code sales_tax}, or {@code vat}. + * retail_delivery_fee}, {@code rst}, {@code sales_tax}, {@code service_tax}, or {@code vat}. */ @SerializedName("tax_type") String taxType; diff --git a/src/main/java/com/stripe/model/tax/Transaction.java b/src/main/java/com/stripe/model/tax/Transaction.java index 3cf65286ee9..cbb0832d0c2 100644 --- a/src/main/java/com/stripe/model/tax/Transaction.java +++ b/src/main/java/com/stripe/model/tax/Transaction.java @@ -372,14 +372,14 @@ public static class TaxId extends StripeObject { * no_vat}, {@code no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen}, * {@code ru_inn}, {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code * tw_vat}, {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid}, - * {@code my_itn}, {@code us_ein}, {@code kr_brn}, {@code ca_qst}, {@code ca_gst_hst}, {@code - * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code my_sst}, {@code sg_gst}, {@code - * ae_trn}, {@code cl_tin}, {@code sa_vat}, {@code id_npwp}, {@code my_frp}, {@code il_vat}, - * {@code ge_vat}, {@code ua_vat}, {@code is_vat}, {@code bg_uic}, {@code hu_tin}, {@code - * si_tin}, {@code ke_pin}, {@code tr_tin}, {@code eg_tin}, {@code ph_tin}, {@code bh_vat}, - * {@code kz_bin}, {@code ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, {@code - * tz_vat}, {@code uz_vat}, {@code uz_tin}, {@code md_vat}, {@code ma_vat}, {@code by_tin}, or - * {@code unknown}. + * {@code li_vat}, {@code my_itn}, {@code us_ein}, {@code kr_brn}, {@code ca_qst}, {@code + * ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code my_sst}, + * {@code sg_gst}, {@code ae_trn}, {@code cl_tin}, {@code sa_vat}, {@code id_npwp}, {@code + * my_frp}, {@code il_vat}, {@code ge_vat}, {@code ua_vat}, {@code is_vat}, {@code bg_uic}, + * {@code hu_tin}, {@code si_tin}, {@code ke_pin}, {@code tr_tin}, {@code eg_tin}, {@code + * ph_tin}, {@code bh_vat}, {@code kz_bin}, {@code ng_tin}, {@code om_vat}, {@code de_stn}, + * {@code ch_uid}, {@code tz_vat}, {@code uz_vat}, {@code uz_tin}, {@code md_vat}, {@code + * ma_vat}, {@code by_tin}, or {@code unknown}. */ @SerializedName("type") String type; @@ -623,7 +623,8 @@ public static class TaxRateDetails extends StripeObject { * *

One of {@code amusement_tax}, {@code communications_tax}, {@code gst}, {@code hst}, * {@code igst}, {@code jct}, {@code lease_tax}, {@code pst}, {@code qst}, {@code - * retail_delivery_fee}, {@code rst}, {@code sales_tax}, or {@code vat}. + * retail_delivery_fee}, {@code rst}, {@code sales_tax}, {@code service_tax}, or {@code + * vat}. */ @SerializedName("tax_type") String taxType; diff --git a/src/main/java/com/stripe/param/AccountPersonCreateParams.java b/src/main/java/com/stripe/param/AccountPersonCreateParams.java index cb47088e7bc..e937acbd681 100644 --- a/src/main/java/com/stripe/param/AccountPersonCreateParams.java +++ b/src/main/java/com/stripe/param/AccountPersonCreateParams.java @@ -1977,6 +1977,10 @@ public Builder setState(String state) { @Getter public static class Relationship { + /** Whether the person is the authorizer of the account's representative. */ + @SerializedName("authorizer") + Boolean authorizer; + /** * Whether the person is a director of the account's legal entity. Directors are typically * members of the governing board of the company, or responsible for ensuring the company meets @@ -2028,6 +2032,7 @@ public static class Relationship { String title; private Relationship( + Boolean authorizer, Boolean director, Boolean executive, Map extraParams, @@ -2036,6 +2041,7 @@ private Relationship( Object percentOwnership, Boolean representative, String title) { + this.authorizer = authorizer; this.director = director; this.executive = executive; this.extraParams = extraParams; @@ -2051,6 +2057,8 @@ public static Builder builder() { } public static class Builder { + private Boolean authorizer; + private Boolean director; private Boolean executive; @@ -2070,6 +2078,7 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public AccountPersonCreateParams.Relationship build() { return new AccountPersonCreateParams.Relationship( + this.authorizer, this.director, this.executive, this.extraParams, @@ -2080,6 +2089,12 @@ public AccountPersonCreateParams.Relationship build() { this.title); } + /** Whether the person is the authorizer of the account's representative. */ + public Builder setAuthorizer(Boolean authorizer) { + this.authorizer = authorizer; + return this; + } + /** * Whether the person is a director of the account's legal entity. Directors are typically * members of the governing board of the company, or responsible for ensuring the company diff --git a/src/main/java/com/stripe/param/AccountPersonListParams.java b/src/main/java/com/stripe/param/AccountPersonListParams.java index 6f2d0344f57..ea897c16060 100644 --- a/src/main/java/com/stripe/param/AccountPersonListParams.java +++ b/src/main/java/com/stripe/param/AccountPersonListParams.java @@ -194,6 +194,13 @@ public Builder setStartingAfter(String startingAfter) { @Getter public static class Relationship { + /** + * A filter on the list of people returned based on whether these people are authorizers of the + * account's representative. + */ + @SerializedName("authorizer") + Boolean authorizer; + /** * A filter on the list of people returned based on whether these people are directors of the * account's company. @@ -239,12 +246,14 @@ public static class Relationship { Boolean representative; private Relationship( + Boolean authorizer, Boolean director, Boolean executive, Map extraParams, Boolean legalGuardian, Boolean owner, Boolean representative) { + this.authorizer = authorizer; this.director = director; this.executive = executive; this.extraParams = extraParams; @@ -258,6 +267,8 @@ public static Builder builder() { } public static class Builder { + private Boolean authorizer; + private Boolean director; private Boolean executive; @@ -273,6 +284,7 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public AccountPersonListParams.Relationship build() { return new AccountPersonListParams.Relationship( + this.authorizer, this.director, this.executive, this.extraParams, @@ -281,6 +293,15 @@ public AccountPersonListParams.Relationship build() { this.representative); } + /** + * A filter on the list of people returned based on whether these people are authorizers of + * the account's representative. + */ + public Builder setAuthorizer(Boolean authorizer) { + this.authorizer = authorizer; + return this; + } + /** * A filter on the list of people returned based on whether these people are directors of the * account's company. diff --git a/src/main/java/com/stripe/param/AccountPersonUpdateParams.java b/src/main/java/com/stripe/param/AccountPersonUpdateParams.java index d60e41f4ac8..bab641a2155 100644 --- a/src/main/java/com/stripe/param/AccountPersonUpdateParams.java +++ b/src/main/java/com/stripe/param/AccountPersonUpdateParams.java @@ -2272,6 +2272,10 @@ public Builder setState(EmptyParam state) { @Getter public static class Relationship { + /** Whether the person is the authorizer of the account's representative. */ + @SerializedName("authorizer") + Boolean authorizer; + /** * Whether the person is a director of the account's legal entity. Directors are typically * members of the governing board of the company, or responsible for ensuring the company meets @@ -2323,6 +2327,7 @@ public static class Relationship { Object title; private Relationship( + Boolean authorizer, Boolean director, Boolean executive, Map extraParams, @@ -2331,6 +2336,7 @@ private Relationship( Object percentOwnership, Boolean representative, Object title) { + this.authorizer = authorizer; this.director = director; this.executive = executive; this.extraParams = extraParams; @@ -2346,6 +2352,8 @@ public static Builder builder() { } public static class Builder { + private Boolean authorizer; + private Boolean director; private Boolean executive; @@ -2365,6 +2373,7 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public AccountPersonUpdateParams.Relationship build() { return new AccountPersonUpdateParams.Relationship( + this.authorizer, this.director, this.executive, this.extraParams, @@ -2375,6 +2384,12 @@ public AccountPersonUpdateParams.Relationship build() { this.title); } + /** Whether the person is the authorizer of the account's representative. */ + public Builder setAuthorizer(Boolean authorizer) { + this.authorizer = authorizer; + return this; + } + /** * Whether the person is a director of the account's legal entity. Directors are typically * members of the governing board of the company, or responsible for ensuring the company diff --git a/src/main/java/com/stripe/param/AccountPersonsParams.java b/src/main/java/com/stripe/param/AccountPersonsParams.java index 054e8347ad5..4752eeb169b 100644 --- a/src/main/java/com/stripe/param/AccountPersonsParams.java +++ b/src/main/java/com/stripe/param/AccountPersonsParams.java @@ -194,6 +194,13 @@ public Builder setStartingAfter(String startingAfter) { @Getter public static class Relationship { + /** + * A filter on the list of people returned based on whether these people are authorizers of the + * account's representative. + */ + @SerializedName("authorizer") + Boolean authorizer; + /** * A filter on the list of people returned based on whether these people are directors of the * account's company. @@ -239,12 +246,14 @@ public static class Relationship { Boolean representative; private Relationship( + Boolean authorizer, Boolean director, Boolean executive, Map extraParams, Boolean legalGuardian, Boolean owner, Boolean representative) { + this.authorizer = authorizer; this.director = director; this.executive = executive; this.extraParams = extraParams; @@ -258,6 +267,8 @@ public static Builder builder() { } public static class Builder { + private Boolean authorizer; + private Boolean director; private Boolean executive; @@ -273,6 +284,7 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public AccountPersonsParams.Relationship build() { return new AccountPersonsParams.Relationship( + this.authorizer, this.director, this.executive, this.extraParams, @@ -281,6 +293,15 @@ public AccountPersonsParams.Relationship build() { this.representative); } + /** + * A filter on the list of people returned based on whether these people are authorizers of + * the account's representative. + */ + public Builder setAuthorizer(Boolean authorizer) { + this.authorizer = authorizer; + return this; + } + /** * A filter on the list of people returned based on whether these people are directors of the * account's company. diff --git a/src/main/java/com/stripe/param/CustomerCreateParams.java b/src/main/java/com/stripe/param/CustomerCreateParams.java index 7c6f21300d5..7f09c119bc9 100644 --- a/src/main/java/com/stripe/param/CustomerCreateParams.java +++ b/src/main/java/com/stripe/param/CustomerCreateParams.java @@ -1689,13 +1689,13 @@ public static class TaxIdData { * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, * {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code * jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, - * {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code - * my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, - * {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code - * ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, - * {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code - * us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code vn_tin}, or - * {@code za_vat} + * {@code li_vat}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code my_frp}, {@code + * my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code nz_gst}, + * {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code + * ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, + * {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code + * ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, + * {@code vn_tin}, or {@code za_vat} */ @SerializedName("type") Type type; @@ -1762,13 +1762,13 @@ public Builder putAllExtraParam(Map map) { * {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code * hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, * {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code - * kz_bin}, {@code li_uid}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code my_frp}, - * {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code - * nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, - * {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code - * si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, - * {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code - * ve_rif}, {@code vn_tin}, or {@code za_vat} + * kz_bin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, + * {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code + * no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, + * {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code + * sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, + * {@code tz_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code + * uz_vat}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} */ public Builder setType(CustomerCreateParams.TaxIdData.Type type) { this.type = type; @@ -1921,6 +1921,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("li_uid") LI_UID("li_uid"), + @SerializedName("li_vat") + LI_VAT("li_vat"), + @SerializedName("ma_vat") MA_VAT("ma_vat"), diff --git a/src/main/java/com/stripe/param/CustomerTaxIdCreateParams.java b/src/main/java/com/stripe/param/CustomerTaxIdCreateParams.java index c96f11f9110..dbc72bfabe0 100644 --- a/src/main/java/com/stripe/param/CustomerTaxIdCreateParams.java +++ b/src/main/java/com/stripe/param/CustomerTaxIdCreateParams.java @@ -33,13 +33,13 @@ public class CustomerTaxIdCreateParams extends ApiRequestParams { * do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code eu_vat}, * {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, * {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, - * {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code ma_vat}, {@code md_vat}, - * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, - * {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code - * ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code - * sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code - * tz_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code - * ve_rif}, {@code vn_tin}, or {@code za_vat} + * {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, + * {@code md_vat}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, + * {@code no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code + * ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code + * sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code + * tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code + * uz_vat}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} */ @SerializedName("type") Type type; @@ -136,13 +136,13 @@ public Builder putAllExtraParam(Map map) { * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, * {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code * jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, - * {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code - * my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, - * {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code - * ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, - * {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code - * us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code vn_tin}, or - * {@code za_vat} + * {@code li_vat}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code my_frp}, {@code + * my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code nz_gst}, + * {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code + * ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, + * {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code + * ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, + * {@code vn_tin}, or {@code za_vat} */ public Builder setType(CustomerTaxIdCreateParams.Type type) { this.type = type; @@ -295,6 +295,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("li_uid") LI_UID("li_uid"), + @SerializedName("li_vat") + LI_VAT("li_vat"), + @SerializedName("ma_vat") MA_VAT("ma_vat"), diff --git a/src/main/java/com/stripe/param/FileLinkCreateParams.java b/src/main/java/com/stripe/param/FileLinkCreateParams.java index 8af6e55221b..45e0137c875 100644 --- a/src/main/java/com/stripe/param/FileLinkCreateParams.java +++ b/src/main/java/com/stripe/param/FileLinkCreateParams.java @@ -32,9 +32,9 @@ public class FileLinkCreateParams extends ApiRequestParams { /** * Required. The ID of the file. The file's {@code purpose} must be one of the * following: {@code business_icon}, {@code business_logo}, {@code customer_signature}, {@code - * dispute_evidence}, {@code finance_report_run}, {@code identity_document_downloadable}, {@code - * issuing_regulatory_reporting}, {@code pci_document}, {@code selfie}, {@code - * sigma_scheduled_query}, {@code tax_document_user_upload}, or {@code + * dispute_evidence}, {@code finance_report_run}, {@code financial_account_statement}, {@code + * identity_document_downloadable}, {@code issuing_regulatory_reporting}, {@code pci_document}, + * {@code selfie}, {@code sigma_scheduled_query}, {@code tax_document_user_upload}, or {@code * terminal_reader_splashscreen}. */ @SerializedName("file") @@ -144,9 +144,9 @@ public Builder putAllExtraParam(Map map) { /** * Required. The ID of the file. The file's {@code purpose} must be one of the * following: {@code business_icon}, {@code business_logo}, {@code customer_signature}, {@code - * dispute_evidence}, {@code finance_report_run}, {@code identity_document_downloadable}, {@code - * issuing_regulatory_reporting}, {@code pci_document}, {@code selfie}, {@code - * sigma_scheduled_query}, {@code tax_document_user_upload}, or {@code + * dispute_evidence}, {@code finance_report_run}, {@code financial_account_statement}, {@code + * identity_document_downloadable}, {@code issuing_regulatory_reporting}, {@code pci_document}, + * {@code selfie}, {@code sigma_scheduled_query}, {@code tax_document_user_upload}, or {@code * terminal_reader_splashscreen}. */ public Builder setFile(String file) { diff --git a/src/main/java/com/stripe/param/FileListParams.java b/src/main/java/com/stripe/param/FileListParams.java index 6f2a04b4d53..f0414bc75f6 100644 --- a/src/main/java/com/stripe/param/FileListParams.java +++ b/src/main/java/com/stripe/param/FileListParams.java @@ -345,6 +345,9 @@ public enum Purpose implements ApiRequestParams.EnumParam { @SerializedName("finance_report_run") FINANCE_REPORT_RUN("finance_report_run"), + @SerializedName("financial_account_statement") + FINANCIAL_ACCOUNT_STATEMENT("financial_account_statement"), + @SerializedName("identity_document") IDENTITY_DOCUMENT("identity_document"), diff --git a/src/main/java/com/stripe/param/InvoiceAddLinesParams.java b/src/main/java/com/stripe/param/InvoiceAddLinesParams.java index 8a4a50006f9..b50a01042fc 100644 --- a/src/main/java/com/stripe/param/InvoiceAddLinesParams.java +++ b/src/main/java/com/stripe/param/InvoiceAddLinesParams.java @@ -1665,6 +1665,9 @@ public enum TaxType implements ApiRequestParams.EnumParam { @SerializedName("sales_tax") SALES_TAX("sales_tax"), + @SerializedName("service_tax") + SERVICE_TAX("service_tax"), + @SerializedName("vat") VAT("vat"); diff --git a/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java b/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java index 3845bd338f1..edfa2218e62 100644 --- a/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java +++ b/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java @@ -1364,13 +1364,13 @@ public static class TaxId { * {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code * hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, * {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code - * kz_bin}, {@code li_uid}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code my_frp}, - * {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code - * nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, - * {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code - * si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, - * {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code - * ve_rif}, {@code vn_tin}, or {@code za_vat} + * kz_bin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, + * {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code + * no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, + * {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code + * sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, + * {@code tz_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code + * uz_vat}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} */ @SerializedName("type") Type type; @@ -1440,13 +1440,13 @@ public Builder putAllExtraParam(Map map) { * {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code * hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, * {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code - * kz_bin}, {@code li_uid}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code my_frp}, - * {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code - * nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, - * {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code - * si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, - * {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code - * ve_rif}, {@code vn_tin}, or {@code za_vat} + * kz_bin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, + * {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code + * no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, + * {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code + * sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, + * {@code tz_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code + * uz_vat}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} */ public Builder setType(InvoiceCreatePreviewParams.CustomerDetails.TaxId.Type type) { this.type = type; @@ -1599,6 +1599,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("li_uid") LI_UID("li_uid"), + @SerializedName("li_vat") + LI_VAT("li_vat"), + @SerializedName("ma_vat") MA_VAT("ma_vat"), diff --git a/src/main/java/com/stripe/param/InvoiceLineItemUpdateParams.java b/src/main/java/com/stripe/param/InvoiceLineItemUpdateParams.java index 2f29a61fa7f..4e2b62eff3f 100644 --- a/src/main/java/com/stripe/param/InvoiceLineItemUpdateParams.java +++ b/src/main/java/com/stripe/param/InvoiceLineItemUpdateParams.java @@ -1613,6 +1613,9 @@ public enum TaxType implements ApiRequestParams.EnumParam { @SerializedName("sales_tax") SALES_TAX("sales_tax"), + @SerializedName("service_tax") + SERVICE_TAX("service_tax"), + @SerializedName("vat") VAT("vat"); diff --git a/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java b/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java index 47005100b28..f9819ba92ab 100644 --- a/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java +++ b/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java @@ -1856,13 +1856,13 @@ public static class TaxId { * {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code * hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, * {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code - * kz_bin}, {@code li_uid}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code my_frp}, - * {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code - * nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, - * {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code - * si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, - * {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code - * ve_rif}, {@code vn_tin}, or {@code za_vat} + * kz_bin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, + * {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code + * no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, + * {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code + * sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, + * {@code tz_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code + * uz_vat}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} */ @SerializedName("type") Type type; @@ -1932,13 +1932,13 @@ public Builder putAllExtraParam(Map map) { * {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code * hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, * {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code - * kz_bin}, {@code li_uid}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code my_frp}, - * {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code - * nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, - * {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code - * si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, - * {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code - * ve_rif}, {@code vn_tin}, or {@code za_vat} + * kz_bin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, + * {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code + * no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, + * {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code + * sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, + * {@code tz_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code + * uz_vat}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} */ public Builder setType(InvoiceUpcomingLinesListParams.CustomerDetails.TaxId.Type type) { this.type = type; @@ -2091,6 +2091,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("li_uid") LI_UID("li_uid"), + @SerializedName("li_vat") + LI_VAT("li_vat"), + @SerializedName("ma_vat") MA_VAT("ma_vat"), diff --git a/src/main/java/com/stripe/param/InvoiceUpcomingLinesParams.java b/src/main/java/com/stripe/param/InvoiceUpcomingLinesParams.java index c2fdce3648d..77da275f068 100644 --- a/src/main/java/com/stripe/param/InvoiceUpcomingLinesParams.java +++ b/src/main/java/com/stripe/param/InvoiceUpcomingLinesParams.java @@ -1848,13 +1848,13 @@ public static class TaxId { * {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code * hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, * {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code - * kz_bin}, {@code li_uid}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code my_frp}, - * {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code - * nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, - * {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code - * si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, - * {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code - * ve_rif}, {@code vn_tin}, or {@code za_vat} + * kz_bin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, + * {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code + * no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, + * {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code + * sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, + * {@code tz_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code + * uz_vat}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} */ @SerializedName("type") Type type; @@ -1924,13 +1924,13 @@ public Builder putAllExtraParam(Map map) { * {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code * hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, * {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code - * kz_bin}, {@code li_uid}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code my_frp}, - * {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code - * nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, - * {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code - * si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, - * {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code - * ve_rif}, {@code vn_tin}, or {@code za_vat} + * kz_bin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, + * {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code + * no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, + * {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code + * sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, + * {@code tz_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code + * uz_vat}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} */ public Builder setType(InvoiceUpcomingLinesParams.CustomerDetails.TaxId.Type type) { this.type = type; @@ -2083,6 +2083,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("li_uid") LI_UID("li_uid"), + @SerializedName("li_vat") + LI_VAT("li_vat"), + @SerializedName("ma_vat") MA_VAT("ma_vat"), diff --git a/src/main/java/com/stripe/param/InvoiceUpcomingParams.java b/src/main/java/com/stripe/param/InvoiceUpcomingParams.java index 2395d4b8aca..5659c84f109 100644 --- a/src/main/java/com/stripe/param/InvoiceUpcomingParams.java +++ b/src/main/java/com/stripe/param/InvoiceUpcomingParams.java @@ -1770,13 +1770,13 @@ public static class TaxId { * {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code * hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, * {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code - * kz_bin}, {@code li_uid}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code my_frp}, - * {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code - * nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, - * {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code - * si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, - * {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code - * ve_rif}, {@code vn_tin}, or {@code za_vat} + * kz_bin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, + * {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code + * no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, + * {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code + * sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, + * {@code tz_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code + * uz_vat}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} */ @SerializedName("type") Type type; @@ -1846,13 +1846,13 @@ public Builder putAllExtraParam(Map map) { * {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code * hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, * {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code - * kz_bin}, {@code li_uid}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code my_frp}, - * {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code - * nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, - * {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code - * si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, - * {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code - * ve_rif}, {@code vn_tin}, or {@code za_vat} + * kz_bin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, + * {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code + * no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, + * {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code + * sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, + * {@code tz_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code + * uz_vat}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} */ public Builder setType(InvoiceUpcomingParams.CustomerDetails.TaxId.Type type) { this.type = type; @@ -2005,6 +2005,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("li_uid") LI_UID("li_uid"), + @SerializedName("li_vat") + LI_VAT("li_vat"), + @SerializedName("ma_vat") MA_VAT("ma_vat"), diff --git a/src/main/java/com/stripe/param/InvoiceUpdateLinesParams.java b/src/main/java/com/stripe/param/InvoiceUpdateLinesParams.java index 3165e698db5..554e287b15f 100644 --- a/src/main/java/com/stripe/param/InvoiceUpdateLinesParams.java +++ b/src/main/java/com/stripe/param/InvoiceUpdateLinesParams.java @@ -1691,6 +1691,9 @@ public enum TaxType implements ApiRequestParams.EnumParam { @SerializedName("sales_tax") SALES_TAX("sales_tax"), + @SerializedName("service_tax") + SERVICE_TAX("service_tax"), + @SerializedName("vat") VAT("vat"); diff --git a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java index 5c02d9dda8a..a519de9b02f 100644 --- a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java @@ -11311,6 +11311,9 @@ public enum Network implements ApiRequestParams.EnumParam { @SerializedName("jcb") JCB("jcb"), + @SerializedName("link") + LINK("link"), + @SerializedName("mastercard") MASTERCARD("mastercard"), diff --git a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java index b21a3d0a76c..7477332327c 100644 --- a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java @@ -182,7 +182,10 @@ public class PaymentIntentCreateParams extends ApiRequestParams { @SerializedName("payment_method") String paymentMethod; - /** The ID of the payment method configuration to use with this PaymentIntent. */ + /** + * The ID of the payment + * method configuration to use with this PaymentIntent. + */ @SerializedName("payment_method_configuration") String paymentMethodConfiguration; @@ -201,9 +204,8 @@ public class PaymentIntentCreateParams extends ApiRequestParams { /** * The list of payment method types (for example, a card) that this PaymentIntent can use. If you - * don't provide this, it defaults to ["card"]. Use {@code automatic_payment_methods} to - * manage payment methods from the Stripe Dashboard. + * don't provide this, Stripe will dynamically show relevant payment methods from your payment method settings. */ @SerializedName("payment_method_types") List paymentMethodTypes; @@ -769,7 +771,10 @@ public Builder setPaymentMethod(String paymentMethod) { return this; } - /** The ID of the payment method configuration to use with this PaymentIntent. */ + /** + * The ID of the payment + * method configuration to use with this PaymentIntent. + */ public Builder setPaymentMethodConfiguration(String paymentMethodConfiguration) { this.paymentMethodConfiguration = paymentMethodConfiguration; return this; @@ -11814,6 +11819,9 @@ public enum Network implements ApiRequestParams.EnumParam { @SerializedName("jcb") JCB("jcb"), + @SerializedName("link") + LINK("link"), + @SerializedName("mastercard") MASTERCARD("mastercard"), diff --git a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java index f301ca65eb2..c347babe145 100644 --- a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java @@ -97,7 +97,10 @@ public class PaymentIntentUpdateParams extends ApiRequestParams { @SerializedName("payment_method") Object paymentMethod; - /** The ID of the payment method configuration to use with this PaymentIntent. */ + /** + * The ID of the payment + * method configuration to use with this PaymentIntent. + */ @SerializedName("payment_method_configuration") Object paymentMethodConfiguration; @@ -554,13 +557,19 @@ public Builder setPaymentMethod(EmptyParam paymentMethod) { return this; } - /** The ID of the payment method configuration to use with this PaymentIntent. */ + /** + * The ID of the payment + * method configuration to use with this PaymentIntent. + */ public Builder setPaymentMethodConfiguration(String paymentMethodConfiguration) { this.paymentMethodConfiguration = paymentMethodConfiguration; return this; } - /** The ID of the payment method configuration to use with this PaymentIntent. */ + /** + * The ID of the payment + * method configuration to use with this PaymentIntent. + */ public Builder setPaymentMethodConfiguration(EmptyParam paymentMethodConfiguration) { this.paymentMethodConfiguration = paymentMethodConfiguration; return this; @@ -11385,6 +11394,9 @@ public enum Network implements ApiRequestParams.EnumParam { @SerializedName("jcb") JCB("jcb"), + @SerializedName("link") + LINK("link"), + @SerializedName("mastercard") MASTERCARD("mastercard"), diff --git a/src/main/java/com/stripe/param/PaymentLinkCreateParams.java b/src/main/java/com/stripe/param/PaymentLinkCreateParams.java index 90a0ffb3ad7..78e83b42c2a 100644 --- a/src/main/java/com/stripe/param/PaymentLinkCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentLinkCreateParams.java @@ -4015,8 +4015,7 @@ public Builder setLimit(Long limit) { public static class ShippingAddressCollection { /** * Required. An array of two-letter ISO country codes representing which - * countries Checkout should provide as options for shipping locations. Unsupported country - * codes: {@code AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SD, SY, UM, VI}. + * countries Checkout should provide as options for shipping locations. */ @SerializedName("allowed_countries") List allowedCountries; @@ -5799,7 +5798,10 @@ public enum SubmitType implements ApiRequestParams.EnumParam { DONATE("donate"), @SerializedName("pay") - PAY("pay"); + PAY("pay"), + + @SerializedName("subscribe") + SUBSCRIBE("subscribe"); @Getter(onMethod_ = {@Override}) private final String value; diff --git a/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java b/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java index 478eaecd0bf..31a19f3614d 100644 --- a/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java @@ -131,6 +131,15 @@ public class PaymentLinkUpdateParams extends ApiRequestParams { @SerializedName("shipping_address_collection") Object shippingAddressCollection; + /** + * Describes the type of transaction being performed in order to customize relevant text on the + * page, such as the submit button. Changing this value will also affect the hostname in the url property + * (example: {@code donate.stripe.com}). + */ + @SerializedName("submit_type") + SubmitType submitType; + /** * When creating a subscription, the specified configuration data will be used. There must be at * least one line item with a recurring price to use {@code subscription_data}. @@ -162,6 +171,7 @@ private PaymentLinkUpdateParams( Object paymentMethodTypes, Object restrictions, Object shippingAddressCollection, + SubmitType submitType, SubscriptionData subscriptionData, TaxIdCollection taxIdCollection) { this.active = active; @@ -183,6 +193,7 @@ private PaymentLinkUpdateParams( this.paymentMethodTypes = paymentMethodTypes; this.restrictions = restrictions; this.shippingAddressCollection = shippingAddressCollection; + this.submitType = submitType; this.subscriptionData = subscriptionData; this.taxIdCollection = taxIdCollection; } @@ -230,6 +241,8 @@ public static class Builder { private Object shippingAddressCollection; + private SubmitType submitType; + private SubscriptionData subscriptionData; private TaxIdCollection taxIdCollection; @@ -256,6 +269,7 @@ public PaymentLinkUpdateParams build() { this.paymentMethodTypes, this.restrictions, this.shippingAddressCollection, + this.submitType, this.subscriptionData, this.taxIdCollection); } @@ -580,6 +594,17 @@ public Builder setShippingAddressCollection(EmptyParam shippingAddressCollection return this; } + /** + * Describes the type of transaction being performed in order to customize relevant text on the + * page, such as the submit button. Changing this value will also affect the hostname in the url property + * (example: {@code donate.stripe.com}). + */ + public Builder setSubmitType(PaymentLinkUpdateParams.SubmitType submitType) { + this.submitType = submitType; + return this; + } + /** * When creating a subscription, the specified configuration data will be used. There must be at * least one line item with a recurring price to use {@code subscription_data}. @@ -3633,8 +3658,7 @@ public Builder setLimit(Long limit) { public static class ShippingAddressCollection { /** * Required. An array of two-letter ISO country codes representing which - * countries Checkout should provide as options for shipping locations. Unsupported country - * codes: {@code AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SD, SY, UM, VI}. + * countries Checkout should provide as options for shipping locations. */ @SerializedName("allowed_countries") List allowedCountries; @@ -5236,4 +5260,28 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam { this.value = value; } } + + public enum SubmitType implements ApiRequestParams.EnumParam { + @SerializedName("auto") + AUTO("auto"), + + @SerializedName("book") + BOOK("book"), + + @SerializedName("donate") + DONATE("donate"), + + @SerializedName("pay") + PAY("pay"), + + @SerializedName("subscribe") + SUBSCRIBE("subscribe"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + SubmitType(String value) { + this.value = value; + } + } } diff --git a/src/main/java/com/stripe/param/PersonCollectionCreateParams.java b/src/main/java/com/stripe/param/PersonCollectionCreateParams.java index e27a2902c37..c056d733e01 100644 --- a/src/main/java/com/stripe/param/PersonCollectionCreateParams.java +++ b/src/main/java/com/stripe/param/PersonCollectionCreateParams.java @@ -1982,6 +1982,10 @@ public Builder setState(String state) { @Getter public static class Relationship { + /** Whether the person is the authorizer of the account's representative. */ + @SerializedName("authorizer") + Boolean authorizer; + /** * Whether the person is a director of the account's legal entity. Directors are typically * members of the governing board of the company, or responsible for ensuring the company meets @@ -2033,6 +2037,7 @@ public static class Relationship { String title; private Relationship( + Boolean authorizer, Boolean director, Boolean executive, Map extraParams, @@ -2041,6 +2046,7 @@ private Relationship( Object percentOwnership, Boolean representative, String title) { + this.authorizer = authorizer; this.director = director; this.executive = executive; this.extraParams = extraParams; @@ -2056,6 +2062,8 @@ public static Builder builder() { } public static class Builder { + private Boolean authorizer; + private Boolean director; private Boolean executive; @@ -2075,6 +2083,7 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public PersonCollectionCreateParams.Relationship build() { return new PersonCollectionCreateParams.Relationship( + this.authorizer, this.director, this.executive, this.extraParams, @@ -2085,6 +2094,12 @@ public PersonCollectionCreateParams.Relationship build() { this.title); } + /** Whether the person is the authorizer of the account's representative. */ + public Builder setAuthorizer(Boolean authorizer) { + this.authorizer = authorizer; + return this; + } + /** * Whether the person is a director of the account's legal entity. Directors are typically * members of the governing board of the company, or responsible for ensuring the company diff --git a/src/main/java/com/stripe/param/PersonCollectionListParams.java b/src/main/java/com/stripe/param/PersonCollectionListParams.java index 96bf4194057..7f16eead33f 100644 --- a/src/main/java/com/stripe/param/PersonCollectionListParams.java +++ b/src/main/java/com/stripe/param/PersonCollectionListParams.java @@ -194,6 +194,13 @@ public Builder setStartingAfter(String startingAfter) { @Getter public static class Relationship { + /** + * A filter on the list of people returned based on whether these people are authorizers of the + * account's representative. + */ + @SerializedName("authorizer") + Boolean authorizer; + /** * A filter on the list of people returned based on whether these people are directors of the * account's company. @@ -239,12 +246,14 @@ public static class Relationship { Boolean representative; private Relationship( + Boolean authorizer, Boolean director, Boolean executive, Map extraParams, Boolean legalGuardian, Boolean owner, Boolean representative) { + this.authorizer = authorizer; this.director = director; this.executive = executive; this.extraParams = extraParams; @@ -258,6 +267,8 @@ public static Builder builder() { } public static class Builder { + private Boolean authorizer; + private Boolean director; private Boolean executive; @@ -273,6 +284,7 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public PersonCollectionListParams.Relationship build() { return new PersonCollectionListParams.Relationship( + this.authorizer, this.director, this.executive, this.extraParams, @@ -281,6 +293,15 @@ public PersonCollectionListParams.Relationship build() { this.representative); } + /** + * A filter on the list of people returned based on whether these people are authorizers of + * the account's representative. + */ + public Builder setAuthorizer(Boolean authorizer) { + this.authorizer = authorizer; + return this; + } + /** * A filter on the list of people returned based on whether these people are directors of the * account's company. diff --git a/src/main/java/com/stripe/param/PersonUpdateParams.java b/src/main/java/com/stripe/param/PersonUpdateParams.java index f5a6ef6f15a..dc4ed3975da 100644 --- a/src/main/java/com/stripe/param/PersonUpdateParams.java +++ b/src/main/java/com/stripe/param/PersonUpdateParams.java @@ -2265,6 +2265,10 @@ public Builder setState(EmptyParam state) { @Getter public static class Relationship { + /** Whether the person is the authorizer of the account's representative. */ + @SerializedName("authorizer") + Boolean authorizer; + /** * Whether the person is a director of the account's legal entity. Directors are typically * members of the governing board of the company, or responsible for ensuring the company meets @@ -2316,6 +2320,7 @@ public static class Relationship { Object title; private Relationship( + Boolean authorizer, Boolean director, Boolean executive, Map extraParams, @@ -2324,6 +2329,7 @@ private Relationship( Object percentOwnership, Boolean representative, Object title) { + this.authorizer = authorizer; this.director = director; this.executive = executive; this.extraParams = extraParams; @@ -2339,6 +2345,8 @@ public static Builder builder() { } public static class Builder { + private Boolean authorizer; + private Boolean director; private Boolean executive; @@ -2358,6 +2366,7 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public PersonUpdateParams.Relationship build() { return new PersonUpdateParams.Relationship( + this.authorizer, this.director, this.executive, this.extraParams, @@ -2368,6 +2377,12 @@ public PersonUpdateParams.Relationship build() { this.title); } + /** Whether the person is the authorizer of the account's representative. */ + public Builder setAuthorizer(Boolean authorizer) { + this.authorizer = authorizer; + return this; + } + /** * Whether the person is a director of the account's legal entity. Directors are typically * members of the governing board of the company, or responsible for ensuring the company diff --git a/src/main/java/com/stripe/param/SetupIntentConfirmParams.java b/src/main/java/com/stripe/param/SetupIntentConfirmParams.java index 96aff01fc18..2b2f85f524a 100644 --- a/src/main/java/com/stripe/param/SetupIntentConfirmParams.java +++ b/src/main/java/com/stripe/param/SetupIntentConfirmParams.java @@ -7442,6 +7442,9 @@ public enum Network implements ApiRequestParams.EnumParam { @SerializedName("jcb") JCB("jcb"), + @SerializedName("link") + LINK("link"), + @SerializedName("mastercard") MASTERCARD("mastercard"), diff --git a/src/main/java/com/stripe/param/SetupIntentCreateParams.java b/src/main/java/com/stripe/param/SetupIntentCreateParams.java index 1233e5f8e3d..ad9151e22ce 100644 --- a/src/main/java/com/stripe/param/SetupIntentCreateParams.java +++ b/src/main/java/com/stripe/param/SetupIntentCreateParams.java @@ -111,7 +111,10 @@ public class SetupIntentCreateParams extends ApiRequestParams { @SerializedName("payment_method") String paymentMethod; - /** The ID of the payment method configuration to use with this SetupIntent. */ + /** + * The ID of the payment + * method configuration to use with this SetupIntent. + */ @SerializedName("payment_method_configuration") String paymentMethodConfiguration; @@ -129,7 +132,8 @@ public class SetupIntentCreateParams extends ApiRequestParams { /** * The list of payment method types (for example, card) that this SetupIntent can use. If you - * don't provide this, it defaults to ["card"]. + * don't provide this, Stripe will dynamically show relevant payment methods from your payment method settings. */ @SerializedName("payment_method_types") List paymentMethodTypes; @@ -486,7 +490,10 @@ public Builder setPaymentMethod(String paymentMethod) { return this; } - /** The ID of the payment method configuration to use with this SetupIntent. */ + /** + * The ID of the payment + * method configuration to use with this SetupIntent. + */ public Builder setPaymentMethodConfiguration(String paymentMethodConfiguration) { this.paymentMethodConfiguration = paymentMethodConfiguration; return this; @@ -7896,6 +7903,9 @@ public enum Network implements ApiRequestParams.EnumParam { @SerializedName("jcb") JCB("jcb"), + @SerializedName("link") + LINK("link"), + @SerializedName("mastercard") MASTERCARD("mastercard"), diff --git a/src/main/java/com/stripe/param/SetupIntentUpdateParams.java b/src/main/java/com/stripe/param/SetupIntentUpdateParams.java index 6210a333a91..2b89aa41f9c 100644 --- a/src/main/java/com/stripe/param/SetupIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/SetupIntentUpdateParams.java @@ -75,7 +75,10 @@ public class SetupIntentUpdateParams extends ApiRequestParams { @SerializedName("payment_method") Object paymentMethod; - /** The ID of the payment method configuration to use with this SetupIntent. */ + /** + * The ID of the payment + * method configuration to use with this SetupIntent. + */ @SerializedName("payment_method_configuration") Object paymentMethodConfiguration; @@ -93,7 +96,8 @@ public class SetupIntentUpdateParams extends ApiRequestParams { /** * The list of payment method types (for example, card) that this SetupIntent can set up. If you - * don't provide this array, it defaults to ["card"]. + * don't provide this, Stripe will dynamically show relevant payment methods from your payment method settings. */ @SerializedName("payment_method_types") List paymentMethodTypes; @@ -367,13 +371,19 @@ public Builder setPaymentMethod(EmptyParam paymentMethod) { return this; } - /** The ID of the payment method configuration to use with this SetupIntent. */ + /** + * The ID of the payment + * method configuration to use with this SetupIntent. + */ public Builder setPaymentMethodConfiguration(String paymentMethodConfiguration) { this.paymentMethodConfiguration = paymentMethodConfiguration; return this; } - /** The ID of the payment method configuration to use with this SetupIntent. */ + /** + * The ID of the payment + * method configuration to use with this SetupIntent. + */ public Builder setPaymentMethodConfiguration(EmptyParam paymentMethodConfiguration) { this.paymentMethodConfiguration = paymentMethodConfiguration; return this; @@ -7441,6 +7451,9 @@ public enum Network implements ApiRequestParams.EnumParam { @SerializedName("jcb") JCB("jcb"), + @SerializedName("link") + LINK("link"), + @SerializedName("mastercard") MASTERCARD("mastercard"), diff --git a/src/main/java/com/stripe/param/SubscriptionCreateParams.java b/src/main/java/com/stripe/param/SubscriptionCreateParams.java index dbe9e2dc954..367991e8a04 100644 --- a/src/main/java/com/stripe/param/SubscriptionCreateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionCreateParams.java @@ -4248,6 +4248,9 @@ public enum Network implements ApiRequestParams.EnumParam { @SerializedName("jcb") JCB("jcb"), + @SerializedName("link") + LINK("link"), + @SerializedName("mastercard") MASTERCARD("mastercard"), diff --git a/src/main/java/com/stripe/param/SubscriptionUpdateParams.java b/src/main/java/com/stripe/param/SubscriptionUpdateParams.java index b81e61b8e1e..c953b8f3a52 100644 --- a/src/main/java/com/stripe/param/SubscriptionUpdateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionUpdateParams.java @@ -189,7 +189,8 @@ public class SubscriptionUpdateParams extends ApiRequestParams { /** * If specified, payment collection for this subscription will be paused. Note that the * subscription status will be unchanged and will not be updated to {@code paused}. Learn more - * about pausing collection. + * about pausing + * collection. */ @SerializedName("pause_collection") Object pauseCollection; @@ -977,7 +978,7 @@ public Builder setOnBehalfOf(EmptyParam onBehalfOf) { /** * If specified, payment collection for this subscription will be paused. Note that the * subscription status will be unchanged and will not be updated to {@code paused}. Learn more - * about pausing + * about pausing * collection. */ public Builder setPauseCollection(SubscriptionUpdateParams.PauseCollection pauseCollection) { @@ -988,7 +989,7 @@ public Builder setPauseCollection(SubscriptionUpdateParams.PauseCollection pause /** * If specified, payment collection for this subscription will be paused. Note that the * subscription status will be unchanged and will not be updated to {@code paused}. Learn more - * about pausing + * about pausing * collection. */ public Builder setPauseCollection(EmptyParam pauseCollection) { @@ -4641,6 +4642,9 @@ public enum Network implements ApiRequestParams.EnumParam { @SerializedName("jcb") JCB("jcb"), + @SerializedName("link") + LINK("link"), + @SerializedName("mastercard") MASTERCARD("mastercard"), diff --git a/src/main/java/com/stripe/param/TaxIdCollectionCreateParams.java b/src/main/java/com/stripe/param/TaxIdCollectionCreateParams.java index 467044f224f..24b2317f61d 100644 --- a/src/main/java/com/stripe/param/TaxIdCollectionCreateParams.java +++ b/src/main/java/com/stripe/param/TaxIdCollectionCreateParams.java @@ -33,13 +33,13 @@ public class TaxIdCollectionCreateParams extends ApiRequestParams { * do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code eu_vat}, * {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, * {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, - * {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code ma_vat}, {@code md_vat}, - * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, - * {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code - * ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code - * sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code - * tz_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code - * ve_rif}, {@code vn_tin}, or {@code za_vat} + * {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, + * {@code md_vat}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, + * {@code no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code + * ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code + * sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code + * tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code + * uz_vat}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} */ @SerializedName("type") Type type; @@ -136,13 +136,13 @@ public Builder putAllExtraParam(Map map) { * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, * {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code * jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, - * {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code - * my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, - * {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code - * ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, - * {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code - * us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code vn_tin}, or - * {@code za_vat} + * {@code li_vat}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code my_frp}, {@code + * my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code nz_gst}, + * {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code + * ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, + * {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code + * ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, + * {@code vn_tin}, or {@code za_vat} */ public Builder setType(TaxIdCollectionCreateParams.Type type) { this.type = type; @@ -295,6 +295,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("li_uid") LI_UID("li_uid"), + @SerializedName("li_vat") + LI_VAT("li_vat"), + @SerializedName("ma_vat") MA_VAT("ma_vat"), diff --git a/src/main/java/com/stripe/param/TaxIdCreateParams.java b/src/main/java/com/stripe/param/TaxIdCreateParams.java index e8c04d77f6a..6a7dea021d0 100644 --- a/src/main/java/com/stripe/param/TaxIdCreateParams.java +++ b/src/main/java/com/stripe/param/TaxIdCreateParams.java @@ -37,13 +37,13 @@ public class TaxIdCreateParams extends ApiRequestParams { * do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code eu_vat}, * {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, * {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, - * {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code ma_vat}, {@code md_vat}, - * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, - * {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code - * ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code - * sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code - * tz_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code - * ve_rif}, {@code vn_tin}, or {@code za_vat} + * {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, + * {@code md_vat}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, + * {@code no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code + * ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code + * sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code + * tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code + * uz_vat}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} */ @SerializedName("type") Type type; @@ -150,13 +150,13 @@ public Builder setOwner(TaxIdCreateParams.Owner owner) { * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, * {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code * jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, - * {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code - * my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, - * {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code - * ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, - * {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code - * us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code vn_tin}, or - * {@code za_vat} + * {@code li_vat}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code my_frp}, {@code + * my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code nz_gst}, + * {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code + * ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, + * {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code + * ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, + * {@code vn_tin}, or {@code za_vat} */ public Builder setType(TaxIdCreateParams.Type type) { this.type = type; @@ -425,6 +425,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("li_uid") LI_UID("li_uid"), + @SerializedName("li_vat") + LI_VAT("li_vat"), + @SerializedName("ma_vat") MA_VAT("ma_vat"), diff --git a/src/main/java/com/stripe/param/TaxRateCreateParams.java b/src/main/java/com/stripe/param/TaxRateCreateParams.java index 6dfde76285c..a3df1a13942 100644 --- a/src/main/java/com/stripe/param/TaxRateCreateParams.java +++ b/src/main/java/com/stripe/param/TaxRateCreateParams.java @@ -347,6 +347,9 @@ public enum TaxType implements ApiRequestParams.EnumParam { @SerializedName("sales_tax") SALES_TAX("sales_tax"), + @SerializedName("service_tax") + SERVICE_TAX("service_tax"), + @SerializedName("vat") VAT("vat"); diff --git a/src/main/java/com/stripe/param/TaxRateUpdateParams.java b/src/main/java/com/stripe/param/TaxRateUpdateParams.java index 3ad5c153a02..7e24c42954b 100644 --- a/src/main/java/com/stripe/param/TaxRateUpdateParams.java +++ b/src/main/java/com/stripe/param/TaxRateUpdateParams.java @@ -381,6 +381,9 @@ public enum TaxType implements ApiRequestParams.EnumParam { @SerializedName("sales_tax") SALES_TAX("sales_tax"), + @SerializedName("service_tax") + SERVICE_TAX("service_tax"), + @SerializedName("vat") VAT("vat"); diff --git a/src/main/java/com/stripe/param/TokenCreateParams.java b/src/main/java/com/stripe/param/TokenCreateParams.java index 16b974ec1f4..a7ca783a21a 100644 --- a/src/main/java/com/stripe/param/TokenCreateParams.java +++ b/src/main/java/com/stripe/param/TokenCreateParams.java @@ -6097,6 +6097,10 @@ public Builder setState(String state) { @Getter public static class Relationship { + /** Whether the person is the authorizer of the account's representative. */ + @SerializedName("authorizer") + Boolean authorizer; + /** * Whether the person is a director of the account's legal entity. Directors are typically * members of the governing board of the company, or responsible for ensuring the company @@ -6148,6 +6152,7 @@ public static class Relationship { String title; private Relationship( + Boolean authorizer, Boolean director, Boolean executive, Map extraParams, @@ -6156,6 +6161,7 @@ private Relationship( Object percentOwnership, Boolean representative, String title) { + this.authorizer = authorizer; this.director = director; this.executive = executive; this.extraParams = extraParams; @@ -6171,6 +6177,8 @@ public static Builder builder() { } public static class Builder { + private Boolean authorizer; + private Boolean director; private Boolean executive; @@ -6190,6 +6198,7 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public TokenCreateParams.Person.Relationship build() { return new TokenCreateParams.Person.Relationship( + this.authorizer, this.director, this.executive, this.extraParams, @@ -6200,6 +6209,12 @@ public TokenCreateParams.Person.Relationship build() { this.title); } + /** Whether the person is the authorizer of the account's representative. */ + public Builder setAuthorizer(Boolean authorizer) { + this.authorizer = authorizer; + return this; + } + /** * Whether the person is a director of the account's legal entity. Directors are typically * members of the governing board of the company, or responsible for ensuring the company diff --git a/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java b/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java index 312d0edffea..0580d57feca 100644 --- a/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java +++ b/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java @@ -592,7 +592,10 @@ public enum ApiVersion implements ApiRequestParams.EnumParam { VERSION_2024_09_30_ACACIA("2024-09-30.acacia"), @SerializedName("2024-10-28.acacia") - VERSION_2024_10_28_ACACIA("2024-10-28.acacia"); + VERSION_2024_10_28_ACACIA("2024-10-28.acacia"), + + @SerializedName("2024-11-20.acacia") + VERSION_2024_11_20_ACACIA("2024-11-20.acacia"); @Getter(onMethod_ = {@Override}) private final String value; diff --git a/src/main/java/com/stripe/param/billing/CreditBalanceSummaryRetrieveParams.java b/src/main/java/com/stripe/param/billing/CreditBalanceSummaryRetrieveParams.java index a56cf342eb3..90edb084feb 100644 --- a/src/main/java/com/stripe/param/billing/CreditBalanceSummaryRetrieveParams.java +++ b/src/main/java/com/stripe/param/billing/CreditBalanceSummaryRetrieveParams.java @@ -236,8 +236,8 @@ public static class ApplicabilityScope { Map extraParams; /** - * Required. The price type to which credit grants can apply to. We currently - * only support {@code metered} price type. + * Required. The price type for which credit grants can apply. We currently + * only support the {@code metered} price type. */ @SerializedName("price_type") PriceType priceType; @@ -291,8 +291,8 @@ public Builder putAllExtraParam(Map map) { } /** - * Required. The price type to which credit grants can apply to. We - * currently only support {@code metered} price type. + * Required. The price type for which credit grants can apply. We currently + * only support the {@code metered} price type. */ public Builder setPriceType( CreditBalanceSummaryRetrieveParams.Filter.ApplicabilityScope.PriceType priceType) { diff --git a/src/main/java/com/stripe/param/billing/CreditGrantCreateParams.java b/src/main/java/com/stripe/param/billing/CreditGrantCreateParams.java index 2efeb965b30..a00472e10e3 100644 --- a/src/main/java/com/stripe/param/billing/CreditGrantCreateParams.java +++ b/src/main/java/com/stripe/param/billing/CreditGrantCreateParams.java @@ -23,15 +23,13 @@ public class CreditGrantCreateParams extends ApiRequestParams { @SerializedName("category") Category category; - /** - * Required. ID of the customer to whom the billing credits should be granted. - */ + /** Required. ID of the customer to receive the billing credits. */ @SerializedName("customer") String customer; /** - * The time when the billing credits become effective i.e when they are eligible to be used. - * Defaults to the current timestamp if not specified. + * The time when the billing credits become effective—when they're eligible for use. Defaults to + * the current timestamp if not specified. */ @SerializedName("effective_at") Long effectiveAt; @@ -41,7 +39,7 @@ public class CreditGrantCreateParams extends ApiRequestParams { List expand; /** - * The time when the billing credits will expire. If not specified, the billing credits will never + * The time when the billing credits will expire. If not specified, the billing credits don't * expire. */ @SerializedName("expires_at") @@ -58,12 +56,12 @@ public class CreditGrantCreateParams extends ApiRequestParams { /** * Set of key-value pairs that you can attach to an object. This can be useful for storing - * additional information about the object (ex: cost basis) in a structured format. + * additional information about the object (for example, cost basis) in a structured format. */ @SerializedName("metadata") Map metadata; - /** A descriptive name shown in dashboard. */ + /** A descriptive name shown in the Dashboard. */ @SerializedName("name") String name; @@ -149,17 +147,15 @@ public Builder setCategory(CreditGrantCreateParams.Category category) { return this; } - /** - * Required. ID of the customer to whom the billing credits should be granted. - */ + /** Required. ID of the customer to receive the billing credits. */ public Builder setCustomer(String customer) { this.customer = customer; return this; } /** - * The time when the billing credits become effective i.e when they are eligible to be used. - * Defaults to the current timestamp if not specified. + * The time when the billing credits become effective—when they're eligible for use. Defaults to + * the current timestamp if not specified. */ public Builder setEffectiveAt(Long effectiveAt) { this.effectiveAt = effectiveAt; @@ -193,8 +189,8 @@ public Builder addAllExpand(List elements) { } /** - * The time when the billing credits will expire. If not specified, the billing credits will - * never expire. + * The time when the billing credits will expire. If not specified, the billing credits don't + * expire. */ public Builder setExpiresAt(Long expiresAt) { this.expiresAt = expiresAt; @@ -253,7 +249,7 @@ public Builder putAllMetadata(Map map) { return this; } - /** A descriptive name shown in dashboard. */ + /** A descriptive name shown in the Dashboard. */ public Builder setName(String name) { this.name = name; return this; @@ -534,8 +530,8 @@ public static class Scope { Map extraParams; /** - * Required. The price type to which credit grants can apply to. We currently - * only support {@code metered} price type. + * Required. The price type for which credit grants can apply. We currently + * only support the {@code metered} price type. */ @SerializedName("price_type") PriceType priceType; @@ -589,8 +585,8 @@ public Builder putAllExtraParam(Map map) { } /** - * Required. The price type to which credit grants can apply to. We - * currently only support {@code metered} price type. + * Required. The price type for which credit grants can apply. We currently + * only support the {@code metered} price type. */ public Builder setPriceType( CreditGrantCreateParams.ApplicabilityConfig.Scope.PriceType priceType) { diff --git a/src/main/java/com/stripe/param/billing/CreditGrantUpdateParams.java b/src/main/java/com/stripe/param/billing/CreditGrantUpdateParams.java index a4a2020e00c..cde992e155d 100644 --- a/src/main/java/com/stripe/param/billing/CreditGrantUpdateParams.java +++ b/src/main/java/com/stripe/param/billing/CreditGrantUpdateParams.java @@ -17,8 +17,8 @@ public class CreditGrantUpdateParams extends ApiRequestParams { List expand; /** - * The time when the billing credits created by this credit grant will expire. If set to empty, - * the billing credits will never expire. + * The time when the billing credits created by this credit grant expire. If set to empty, the + * billing credits never expire. */ @SerializedName("expires_at") Object expiresAt; @@ -33,8 +33,8 @@ public class CreditGrantUpdateParams extends ApiRequestParams { Map extraParams; /** - * Set of key-value pairs that you can attach to an object. This can be useful for storing - * additional information about the object (ex: cost basis) in a structured format. + * Set of key-value pairs you can attach to an object. This can be useful for storing additional + * information about the object (for example, cost basis) in a structured format. */ @SerializedName("metadata") Map metadata; @@ -96,8 +96,8 @@ public Builder addAllExpand(List elements) { } /** - * The time when the billing credits created by this credit grant will expire. If set to empty, - * the billing credits will never expire. + * The time when the billing credits created by this credit grant expire. If set to empty, the + * billing credits never expire. */ public Builder setExpiresAt(Long expiresAt) { this.expiresAt = expiresAt; @@ -105,8 +105,8 @@ public Builder setExpiresAt(Long expiresAt) { } /** - * The time when the billing credits created by this credit grant will expire. If set to empty, - * the billing credits will never expire. + * The time when the billing credits created by this credit grant expire. If set to empty, the + * billing credits never expire. */ public Builder setExpiresAt(EmptyParam expiresAt) { this.expiresAt = expiresAt; diff --git a/src/main/java/com/stripe/param/billing/MeterEventCreateParams.java b/src/main/java/com/stripe/param/billing/MeterEventCreateParams.java index 11b7b1a2f92..be342f300fe 100644 --- a/src/main/java/com/stripe/param/billing/MeterEventCreateParams.java +++ b/src/main/java/com/stripe/param/billing/MeterEventCreateParams.java @@ -32,8 +32,11 @@ public class MeterEventCreateParams extends ApiRequestParams { Map extraParams; /** - * A unique identifier for the event. If not provided, one will be generated. We recommend using a - * globally unique identifier for this. We'll enforce uniqueness within a rolling 24 hour period. + * A unique identifier for the event. If not provided, one will be generated. We strongly advise + * using UUID-like identifiers. We will enforce uniqueness within a rolling period of at least 24 + * hours. The enforcement of uniqueness primarily addresses issues arising from accidental retries + * or other problems occurring within extremely brief time intervals. This approach helps prevent + * duplicate entries and ensures data integrity in high-frequency operations. */ @SerializedName("identifier") String identifier; @@ -159,9 +162,11 @@ public Builder putAllExtraParam(Map map) { } /** - * A unique identifier for the event. If not provided, one will be generated. We recommend using - * a globally unique identifier for this. We'll enforce uniqueness within a rolling 24 hour - * period. + * A unique identifier for the event. If not provided, one will be generated. We strongly advise + * using UUID-like identifiers. We will enforce uniqueness within a rolling period of at least + * 24 hours. The enforcement of uniqueness primarily addresses issues arising from accidental + * retries or other problems occurring within extremely brief time intervals. This approach + * helps prevent duplicate entries and ensures data integrity in high-frequency operations. */ public Builder setIdentifier(String identifier) { this.identifier = identifier; diff --git a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java index 59de3fb2a51..e5d713ef794 100644 --- a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java +++ b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java @@ -13,6 +13,13 @@ @Getter public class SessionCreateParams extends ApiRequestParams { + /** + * Settings for price localization with Adaptive Pricing. + */ + @SerializedName("adaptive_pricing") + AdaptivePricing adaptivePricing; + /** Configure actions after a Checkout Session has expired. */ @SerializedName("after_expiration") AfterExpiration afterExpiration; @@ -342,6 +349,7 @@ public class SessionCreateParams extends ApiRequestParams { UiMode uiMode; private SessionCreateParams( + AdaptivePricing adaptivePricing, AfterExpiration afterExpiration, Boolean allowPromotionCodes, AutomaticTax automaticTax, @@ -383,6 +391,7 @@ private SessionCreateParams( String successUrl, TaxIdCollection taxIdCollection, UiMode uiMode) { + this.adaptivePricing = adaptivePricing; this.afterExpiration = afterExpiration; this.allowPromotionCodes = allowPromotionCodes; this.automaticTax = automaticTax; @@ -431,6 +440,8 @@ public static Builder builder() { } public static class Builder { + private AdaptivePricing adaptivePricing; + private AfterExpiration afterExpiration; private Boolean allowPromotionCodes; @@ -516,6 +527,7 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public SessionCreateParams build() { return new SessionCreateParams( + this.adaptivePricing, this.afterExpiration, this.allowPromotionCodes, this.automaticTax, @@ -559,6 +571,15 @@ public SessionCreateParams build() { this.uiMode); } + /** + * Settings for price localization with Adaptive Pricing. + */ + public Builder setAdaptivePricing(SessionCreateParams.AdaptivePricing adaptivePricing) { + this.adaptivePricing = adaptivePricing; + return this; + } + /** Configure actions after a Checkout Session has expired. */ public Builder setAfterExpiration(SessionCreateParams.AfterExpiration afterExpiration) { this.afterExpiration = afterExpiration; @@ -1097,6 +1118,84 @@ public Builder setUiMode(SessionCreateParams.UiMode uiMode) { } } + @Getter + public static class AdaptivePricing { + /** + * Set to {@code true} to enable Adaptive Pricing. + * Defaults to your dashboard + * setting. + */ + @SerializedName("enabled") + Boolean enabled; + + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + private AdaptivePricing(Boolean enabled, Map extraParams) { + this.enabled = enabled; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Boolean enabled; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public SessionCreateParams.AdaptivePricing build() { + return new SessionCreateParams.AdaptivePricing(this.enabled, this.extraParams); + } + + /** + * Set to {@code true} to enable Adaptive Pricing. + * Defaults to your dashboard + * setting. + */ + public Builder setEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * SessionCreateParams.AdaptivePricing#extraParams} for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link SessionCreateParams.AdaptivePricing#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } + } + @Getter public static class AfterExpiration { /** @@ -5676,7 +5775,7 @@ public static class PaymentMethodOptions { @SerializedName("multibanco") Multibanco multibanco; - /** contains details about the Kakao Pay payment method options. */ + /** contains details about the Naver Pay payment method options. */ @SerializedName("naver_pay") NaverPay naverPay; @@ -6114,7 +6213,7 @@ public Builder setMultibanco(SessionCreateParams.PaymentMethodOptions.Multibanco return this; } - /** contains details about the Kakao Pay payment method options. */ + /** contains details about the Naver Pay payment method options. */ public Builder setNaverPay(SessionCreateParams.PaymentMethodOptions.NaverPay naverPay) { this.naverPay = naverPay; return this; @@ -7289,6 +7388,10 @@ public static class BacsDebit { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Additional fields for Mandate creation. */ + @SerializedName("mandate_options") + MandateOptions mandateOptions; + /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * @@ -7311,8 +7414,12 @@ public static class BacsDebit { @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; - private BacsDebit(Map extraParams, SetupFutureUsage setupFutureUsage) { + private BacsDebit( + Map extraParams, + MandateOptions mandateOptions, + SetupFutureUsage setupFutureUsage) { this.extraParams = extraParams; + this.mandateOptions = mandateOptions; this.setupFutureUsage = setupFutureUsage; } @@ -7323,12 +7430,14 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private MandateOptions mandateOptions; + private SetupFutureUsage setupFutureUsage; /** Finalize and obtain parameter instance from this builder. */ public SessionCreateParams.PaymentMethodOptions.BacsDebit build() { return new SessionCreateParams.PaymentMethodOptions.BacsDebit( - this.extraParams, this.setupFutureUsage); + this.extraParams, this.mandateOptions, this.setupFutureUsage); } /** @@ -7359,6 +7468,13 @@ public Builder putAllExtraParam(Map map) { return this; } + /** Additional fields for Mandate creation. */ + public Builder setMandateOptions( + SessionCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions mandateOptions) { + this.mandateOptions = mandateOptions; + return this; + } + /** * Indicates that you intend to make future payments with this PaymentIntent's payment * method. @@ -7386,6 +7502,67 @@ public Builder setSetupFutureUsage( } } + @Getter + public static class MandateOptions { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its parent + * instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + private MandateOptions(Map extraParams) { + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public SessionCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions build() { + return new SessionCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions( + this.extraParams); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * SessionCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions#extraParams} for the + * field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * SessionCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } + } + public enum SetupFutureUsage implements ApiRequestParams.EnumParam { @SerializedName("none") NONE("none"), @@ -7692,6 +7869,35 @@ public static class Card { @SerializedName("installments") Installments installments; + /** + * Request ability to capture + * beyond the standard authorization validity window for this CheckoutSession. + */ + @SerializedName("request_extended_authorization") + RequestExtendedAuthorization requestExtendedAuthorization; + + /** + * Request ability to increment the + * authorization for this CheckoutSession. + */ + @SerializedName("request_incremental_authorization") + RequestIncrementalAuthorization requestIncrementalAuthorization; + + /** + * Request ability to make multiple + * captures for this CheckoutSession. + */ + @SerializedName("request_multicapture") + RequestMulticapture requestMulticapture; + + /** + * Request ability to overcapture for + * this CheckoutSession. + */ + @SerializedName("request_overcapture") + RequestOvercapture requestOvercapture; + /** * We strongly recommend that you rely on our SCA Engine to automatically prompt your * customers for authentication based on risk level and extraParams, Installments installments, + RequestExtendedAuthorization requestExtendedAuthorization, + RequestIncrementalAuthorization requestIncrementalAuthorization, + RequestMulticapture requestMulticapture, + RequestOvercapture requestOvercapture, RequestThreeDSecure requestThreeDSecure, SetupFutureUsage setupFutureUsage, String statementDescriptorSuffixKana, String statementDescriptorSuffixKanji) { this.extraParams = extraParams; this.installments = installments; + this.requestExtendedAuthorization = requestExtendedAuthorization; + this.requestIncrementalAuthorization = requestIncrementalAuthorization; + this.requestMulticapture = requestMulticapture; + this.requestOvercapture = requestOvercapture; this.requestThreeDSecure = requestThreeDSecure; this.setupFutureUsage = setupFutureUsage; this.statementDescriptorSuffixKana = statementDescriptorSuffixKana; @@ -7772,6 +7986,14 @@ public static class Builder { private Installments installments; + private RequestExtendedAuthorization requestExtendedAuthorization; + + private RequestIncrementalAuthorization requestIncrementalAuthorization; + + private RequestMulticapture requestMulticapture; + + private RequestOvercapture requestOvercapture; + private RequestThreeDSecure requestThreeDSecure; private SetupFutureUsage setupFutureUsage; @@ -7785,6 +8007,10 @@ public SessionCreateParams.PaymentMethodOptions.Card build() { return new SessionCreateParams.PaymentMethodOptions.Card( this.extraParams, this.installments, + this.requestExtendedAuthorization, + this.requestIncrementalAuthorization, + this.requestMulticapture, + this.requestOvercapture, this.requestThreeDSecure, this.setupFutureUsage, this.statementDescriptorSuffixKana, @@ -7826,6 +8052,49 @@ public Builder setInstallments( return this; } + /** + * Request ability to capture + * beyond the standard authorization validity window for this CheckoutSession. + */ + public Builder setRequestExtendedAuthorization( + SessionCreateParams.PaymentMethodOptions.Card.RequestExtendedAuthorization + requestExtendedAuthorization) { + this.requestExtendedAuthorization = requestExtendedAuthorization; + return this; + } + + /** + * Request ability to increment the + * authorization for this CheckoutSession. + */ + public Builder setRequestIncrementalAuthorization( + SessionCreateParams.PaymentMethodOptions.Card.RequestIncrementalAuthorization + requestIncrementalAuthorization) { + this.requestIncrementalAuthorization = requestIncrementalAuthorization; + return this; + } + + /** + * Request ability to make multiple + * captures for this CheckoutSession. + */ + public Builder setRequestMulticapture( + SessionCreateParams.PaymentMethodOptions.Card.RequestMulticapture requestMulticapture) { + this.requestMulticapture = requestMulticapture; + return this; + } + + /** + * Request ability to overcapture for + * this CheckoutSession. + */ + public Builder setRequestOvercapture( + SessionCreateParams.PaymentMethodOptions.Card.RequestOvercapture requestOvercapture) { + this.requestOvercapture = requestOvercapture; + return this; + } + /** * We strongly recommend that you rely on our SCA Engine to automatically prompt your * customers for authentication based on risk level and map) { } } + public enum RequestExtendedAuthorization implements ApiRequestParams.EnumParam { + @SerializedName("if_available") + IF_AVAILABLE("if_available"), + + @SerializedName("never") + NEVER("never"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + RequestExtendedAuthorization(String value) { + this.value = value; + } + } + + public enum RequestIncrementalAuthorization implements ApiRequestParams.EnumParam { + @SerializedName("if_available") + IF_AVAILABLE("if_available"), + + @SerializedName("never") + NEVER("never"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + RequestIncrementalAuthorization(String value) { + this.value = value; + } + } + + public enum RequestMulticapture implements ApiRequestParams.EnumParam { + @SerializedName("if_available") + IF_AVAILABLE("if_available"), + + @SerializedName("never") + NEVER("never"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + RequestMulticapture(String value) { + this.value = value; + } + } + + public enum RequestOvercapture implements ApiRequestParams.EnumParam { + @SerializedName("if_available") + IF_AVAILABLE("if_available"), + + @SerializedName("never") + NEVER("never"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + RequestOvercapture(String value) { + this.value = value; + } + } + public enum RequestThreeDSecure implements ApiRequestParams.EnumParam { @SerializedName("any") ANY("any"), @@ -9215,6 +9544,10 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { @Getter public static class KakaoPay { + /** Controls when the funds will be captured from the customer's account. */ + @SerializedName("capture_method") + CaptureMethod captureMethod; + /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -9246,7 +9579,11 @@ public static class KakaoPay { @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; - private KakaoPay(Map extraParams, SetupFutureUsage setupFutureUsage) { + private KakaoPay( + CaptureMethod captureMethod, + Map extraParams, + SetupFutureUsage setupFutureUsage) { + this.captureMethod = captureMethod; this.extraParams = extraParams; this.setupFutureUsage = setupFutureUsage; } @@ -9256,6 +9593,8 @@ public static Builder builder() { } public static class Builder { + private CaptureMethod captureMethod; + private Map extraParams; private SetupFutureUsage setupFutureUsage; @@ -9263,7 +9602,14 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public SessionCreateParams.PaymentMethodOptions.KakaoPay build() { return new SessionCreateParams.PaymentMethodOptions.KakaoPay( - this.extraParams, this.setupFutureUsage); + this.captureMethod, this.extraParams, this.setupFutureUsage); + } + + /** Controls when the funds will be captured from the customer's account. */ + public Builder setCaptureMethod( + SessionCreateParams.PaymentMethodOptions.KakaoPay.CaptureMethod captureMethod) { + this.captureMethod = captureMethod; + return this; } /** @@ -9321,6 +9667,18 @@ public Builder setSetupFutureUsage( } } + public enum CaptureMethod implements ApiRequestParams.EnumParam { + @SerializedName("manual") + MANUAL("manual"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + CaptureMethod(String value) { + this.value = value; + } + } + public enum SetupFutureUsage implements ApiRequestParams.EnumParam { @SerializedName("none") NONE("none"), @@ -9607,6 +9965,10 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { @Getter public static class KrCard { + /** Controls when the funds will be captured from the customer's account. */ + @SerializedName("capture_method") + CaptureMethod captureMethod; + /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -9638,7 +10000,11 @@ public static class KrCard { @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; - private KrCard(Map extraParams, SetupFutureUsage setupFutureUsage) { + private KrCard( + CaptureMethod captureMethod, + Map extraParams, + SetupFutureUsage setupFutureUsage) { + this.captureMethod = captureMethod; this.extraParams = extraParams; this.setupFutureUsage = setupFutureUsage; } @@ -9648,6 +10014,8 @@ public static Builder builder() { } public static class Builder { + private CaptureMethod captureMethod; + private Map extraParams; private SetupFutureUsage setupFutureUsage; @@ -9655,7 +10023,14 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public SessionCreateParams.PaymentMethodOptions.KrCard build() { return new SessionCreateParams.PaymentMethodOptions.KrCard( - this.extraParams, this.setupFutureUsage); + this.captureMethod, this.extraParams, this.setupFutureUsage); + } + + /** Controls when the funds will be captured from the customer's account. */ + public Builder setCaptureMethod( + SessionCreateParams.PaymentMethodOptions.KrCard.CaptureMethod captureMethod) { + this.captureMethod = captureMethod; + return this; } /** @@ -9713,6 +10088,18 @@ public Builder setSetupFutureUsage( } } + public enum CaptureMethod implements ApiRequestParams.EnumParam { + @SerializedName("manual") + MANUAL("manual"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + CaptureMethod(String value) { + this.value = value; + } + } + public enum SetupFutureUsage implements ApiRequestParams.EnumParam { @SerializedName("none") NONE("none"), @@ -10097,6 +10484,10 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { @Getter public static class NaverPay { + /** Controls when the funds will be captured from the customer's account. */ + @SerializedName("capture_method") + CaptureMethod captureMethod; + /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -10128,7 +10519,11 @@ public static class NaverPay { @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; - private NaverPay(Map extraParams, SetupFutureUsage setupFutureUsage) { + private NaverPay( + CaptureMethod captureMethod, + Map extraParams, + SetupFutureUsage setupFutureUsage) { + this.captureMethod = captureMethod; this.extraParams = extraParams; this.setupFutureUsage = setupFutureUsage; } @@ -10138,6 +10533,8 @@ public static Builder builder() { } public static class Builder { + private CaptureMethod captureMethod; + private Map extraParams; private SetupFutureUsage setupFutureUsage; @@ -10145,7 +10542,14 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public SessionCreateParams.PaymentMethodOptions.NaverPay build() { return new SessionCreateParams.PaymentMethodOptions.NaverPay( - this.extraParams, this.setupFutureUsage); + this.captureMethod, this.extraParams, this.setupFutureUsage); + } + + /** Controls when the funds will be captured from the customer's account. */ + public Builder setCaptureMethod( + SessionCreateParams.PaymentMethodOptions.NaverPay.CaptureMethod captureMethod) { + this.captureMethod = captureMethod; + return this; } /** @@ -10203,6 +10607,18 @@ public Builder setSetupFutureUsage( } } + public enum CaptureMethod implements ApiRequestParams.EnumParam { + @SerializedName("manual") + MANUAL("manual"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + CaptureMethod(String value) { + this.value = value; + } + } + public enum SetupFutureUsage implements ApiRequestParams.EnumParam { @SerializedName("none") NONE("none"), @@ -10503,6 +10919,10 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { @Getter public static class Payco { + /** Controls when the funds will be captured from the customer's account. */ + @SerializedName("capture_method") + CaptureMethod captureMethod; + /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -10512,7 +10932,8 @@ public static class Payco { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private Payco(Map extraParams) { + private Payco(CaptureMethod captureMethod, Map extraParams) { + this.captureMethod = captureMethod; this.extraParams = extraParams; } @@ -10521,11 +10942,21 @@ public static Builder builder() { } public static class Builder { + private CaptureMethod captureMethod; + private Map extraParams; /** Finalize and obtain parameter instance from this builder. */ public SessionCreateParams.PaymentMethodOptions.Payco build() { - return new SessionCreateParams.PaymentMethodOptions.Payco(this.extraParams); + return new SessionCreateParams.PaymentMethodOptions.Payco( + this.captureMethod, this.extraParams); + } + + /** Controls when the funds will be captured from the customer's account. */ + public Builder setCaptureMethod( + SessionCreateParams.PaymentMethodOptions.Payco.CaptureMethod captureMethod) { + this.captureMethod = captureMethod; + return this; } /** @@ -10556,6 +10987,18 @@ public Builder putAllExtraParam(Map map) { return this; } } + + public enum CaptureMethod implements ApiRequestParams.EnumParam { + @SerializedName("manual") + MANUAL("manual"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + CaptureMethod(String value) { + this.value = value; + } + } } @Getter @@ -11214,6 +11657,10 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { @Getter public static class SamsungPay { + /** Controls when the funds will be captured from the customer's account. */ + @SerializedName("capture_method") + CaptureMethod captureMethod; + /** * Map of extra parameters for custom features not available in this client library. The * content in this map is not serialized under this field's {@code @SerializedName} value. @@ -11223,7 +11670,8 @@ public static class SamsungPay { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private SamsungPay(Map extraParams) { + private SamsungPay(CaptureMethod captureMethod, Map extraParams) { + this.captureMethod = captureMethod; this.extraParams = extraParams; } @@ -11232,11 +11680,21 @@ public static Builder builder() { } public static class Builder { + private CaptureMethod captureMethod; + private Map extraParams; /** Finalize and obtain parameter instance from this builder. */ public SessionCreateParams.PaymentMethodOptions.SamsungPay build() { - return new SessionCreateParams.PaymentMethodOptions.SamsungPay(this.extraParams); + return new SessionCreateParams.PaymentMethodOptions.SamsungPay( + this.captureMethod, this.extraParams); + } + + /** Controls when the funds will be captured from the customer's account. */ + public Builder setCaptureMethod( + SessionCreateParams.PaymentMethodOptions.SamsungPay.CaptureMethod captureMethod) { + this.captureMethod = captureMethod; + return this; } /** @@ -11267,6 +11725,18 @@ public Builder putAllExtraParam(Map map) { return this; } } + + public enum CaptureMethod implements ApiRequestParams.EnumParam { + @SerializedName("manual") + MANUAL("manual"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + CaptureMethod(String value) { + this.value = value; + } + } } @Getter @@ -11280,6 +11750,10 @@ public static class SepaDebit { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Additional fields for Mandate creation. */ + @SerializedName("mandate_options") + MandateOptions mandateOptions; + /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * @@ -11302,8 +11776,12 @@ public static class SepaDebit { @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; - private SepaDebit(Map extraParams, SetupFutureUsage setupFutureUsage) { + private SepaDebit( + Map extraParams, + MandateOptions mandateOptions, + SetupFutureUsage setupFutureUsage) { this.extraParams = extraParams; + this.mandateOptions = mandateOptions; this.setupFutureUsage = setupFutureUsage; } @@ -11314,12 +11792,14 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private MandateOptions mandateOptions; + private SetupFutureUsage setupFutureUsage; /** Finalize and obtain parameter instance from this builder. */ public SessionCreateParams.PaymentMethodOptions.SepaDebit build() { return new SessionCreateParams.PaymentMethodOptions.SepaDebit( - this.extraParams, this.setupFutureUsage); + this.extraParams, this.mandateOptions, this.setupFutureUsage); } /** @@ -11350,6 +11830,13 @@ public Builder putAllExtraParam(Map map) { return this; } + /** Additional fields for Mandate creation. */ + public Builder setMandateOptions( + SessionCreateParams.PaymentMethodOptions.SepaDebit.MandateOptions mandateOptions) { + this.mandateOptions = mandateOptions; + return this; + } + /** * Indicates that you intend to make future payments with this PaymentIntent's payment * method. @@ -11377,6 +11864,67 @@ public Builder setSetupFutureUsage( } } + @Getter + public static class MandateOptions { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its parent + * instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + private MandateOptions(Map extraParams) { + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public SessionCreateParams.PaymentMethodOptions.SepaDebit.MandateOptions build() { + return new SessionCreateParams.PaymentMethodOptions.SepaDebit.MandateOptions( + this.extraParams); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * SessionCreateParams.PaymentMethodOptions.SepaDebit.MandateOptions#extraParams} for the + * field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * SessionCreateParams.PaymentMethodOptions.SepaDebit.MandateOptions#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } + } + public enum SetupFutureUsage implements ApiRequestParams.EnumParam { @SerializedName("none") NONE("none"), @@ -12502,8 +13050,7 @@ public Builder setOnBehalfOf(String onBehalfOf) { public static class ShippingAddressCollection { /** * Required. An array of two-letter ISO country codes representing which - * countries Checkout should provide as options for shipping locations. Unsupported country - * codes: {@code AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SD, SY, UM, VI}. + * countries Checkout should provide as options for shipping locations. */ @SerializedName("allowed_countries") List allowedCountries; @@ -15535,7 +16082,10 @@ public enum SubmitType implements ApiRequestParams.EnumParam { DONATE("donate"), @SerializedName("pay") - PAY("pay"); + PAY("pay"), + + @SerializedName("subscribe") + SUBSCRIBE("subscribe"); @Getter(onMethod_ = {@Override}) private final String value; diff --git a/src/main/java/com/stripe/param/identity/VerificationSessionCreateParams.java b/src/main/java/com/stripe/param/identity/VerificationSessionCreateParams.java index 9f47aecddbe..bf58632728a 100644 --- a/src/main/java/com/stripe/param/identity/VerificationSessionCreateParams.java +++ b/src/main/java/com/stripe/param/identity/VerificationSessionCreateParams.java @@ -66,7 +66,7 @@ public class VerificationSessionCreateParams extends ApiRequestParams { Type type; /** - * The ID of a Verification Flow from the Dashboard. See + * The ID of a verification flow from the Dashboard. See * https://docs.stripe.com/identity/verification-flows. */ @SerializedName("verification_flow") @@ -258,7 +258,7 @@ public Builder setType(VerificationSessionCreateParams.Type type) { } /** - * The ID of a Verification Flow from the Dashboard. See + * The ID of a verification flow from the Dashboard. See * https://docs.stripe.com/identity/verification-flows. */ public Builder setVerificationFlow(String verificationFlow) { diff --git a/src/main/java/com/stripe/param/issuing/AuthorizationCreateParams.java b/src/main/java/com/stripe/param/issuing/AuthorizationCreateParams.java index 703a3c79756..bcddaceb4b2 100644 --- a/src/main/java/com/stripe/param/issuing/AuthorizationCreateParams.java +++ b/src/main/java/com/stripe/param/issuing/AuthorizationCreateParams.java @@ -13,8 +13,8 @@ @Getter public class AuthorizationCreateParams extends ApiRequestParams { /** - * Required. The total amount to attempt to authorize. This amount is in the - * provided currency, or defaults to the card's currency, and in the smallest currency unit. */ @SerializedName("amount") @@ -72,6 +72,21 @@ public class AuthorizationCreateParams extends ApiRequestParams { @SerializedName("is_amount_controllable") Boolean isAmountControllable; + /** + * The total amount to attempt to authorize. This amount is in the provided merchant currency, and + * in the smallest currency unit. + */ + @SerializedName("merchant_amount") + Long merchantAmount; + + /** + * The currency of the authorization. If not provided, defaults to the currency of the card. + * Three-letter ISO currency code, + * in lowercase. Must be a supported currency. + */ + @SerializedName("merchant_currency") + String merchantCurrency; + /** * Details about the seller (grocery store, e-commerce website, etc.) where the card authorization * happened. @@ -108,6 +123,8 @@ private AuthorizationCreateParams( Fleet fleet, Fuel fuel, Boolean isAmountControllable, + Long merchantAmount, + String merchantCurrency, MerchantData merchantData, NetworkData networkData, VerificationData verificationData, @@ -122,6 +139,8 @@ private AuthorizationCreateParams( this.fleet = fleet; this.fuel = fuel; this.isAmountControllable = isAmountControllable; + this.merchantAmount = merchantAmount; + this.merchantCurrency = merchantCurrency; this.merchantData = merchantData; this.networkData = networkData; this.verificationData = verificationData; @@ -153,6 +172,10 @@ public static class Builder { private Boolean isAmountControllable; + private Long merchantAmount; + + private String merchantCurrency; + private MerchantData merchantData; private NetworkData networkData; @@ -174,6 +197,8 @@ public AuthorizationCreateParams build() { this.fleet, this.fuel, this.isAmountControllable, + this.merchantAmount, + this.merchantCurrency, this.merchantData, this.networkData, this.verificationData, @@ -181,8 +206,8 @@ public AuthorizationCreateParams build() { } /** - * Required. The total amount to attempt to authorize. This amount is in the - * provided currency, or defaults to the card's currency, and in the smallest currency unit. */ public Builder setAmount(Long amount) { @@ -298,6 +323,27 @@ public Builder setIsAmountControllable(Boolean isAmountControllable) { return this; } + /** + * The total amount to attempt to authorize. This amount is in the provided merchant currency, + * and in the smallest currency + * unit. + */ + public Builder setMerchantAmount(Long merchantAmount) { + this.merchantAmount = merchantAmount; + return this; + } + + /** + * The currency of the authorization. If not provided, defaults to the currency of the card. + * Three-letter ISO currency + * code, in lowercase. Must be a supported + * currency. + */ + public Builder setMerchantCurrency(String merchantCurrency) { + this.merchantCurrency = merchantCurrency; + return this; + } + /** * Details about the seller (grocery store, e-commerce website, etc.) where the card * authorization happened. diff --git a/src/main/java/com/stripe/param/issuing/AuthorizationRespondParams.java b/src/main/java/com/stripe/param/issuing/AuthorizationRespondParams.java new file mode 100644 index 00000000000..18efce535ec --- /dev/null +++ b/src/main/java/com/stripe/param/issuing/AuthorizationRespondParams.java @@ -0,0 +1,118 @@ +// File generated from our OpenAPI spec +package com.stripe.param.issuing; + +import com.google.gson.annotations.SerializedName; +import com.stripe.net.ApiRequestParams; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import lombok.Getter; + +@Getter +public class AuthorizationRespondParams extends ApiRequestParams { + /** + * Required. Whether to simulate the user confirming that the transaction was + * legitimate (true) or telling Stripe that it was fraudulent (false). + */ + @SerializedName("confirmed") + Boolean confirmed; + + /** Specifies which fields in the response should be expanded. */ + @SerializedName("expand") + List expand; + + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + private AuthorizationRespondParams( + Boolean confirmed, List expand, Map extraParams) { + this.confirmed = confirmed; + this.expand = expand; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Boolean confirmed; + + private List expand; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public AuthorizationRespondParams build() { + return new AuthorizationRespondParams(this.confirmed, this.expand, this.extraParams); + } + + /** + * Required. Whether to simulate the user confirming that the transaction was + * legitimate (true) or telling Stripe that it was fraudulent (false). + */ + public Builder setConfirmed(Boolean confirmed) { + this.confirmed = confirmed; + return this; + } + + /** + * Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and + * subsequent calls adds additional elements to the original list. See {@link + * AuthorizationRespondParams#expand} for the field documentation. + */ + public Builder addExpand(String element) { + if (this.expand == null) { + this.expand = new ArrayList<>(); + } + this.expand.add(element); + return this; + } + + /** + * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and + * subsequent calls adds additional elements to the original list. See {@link + * AuthorizationRespondParams#expand} for the field documentation. + */ + public Builder addAllExpand(List elements) { + if (this.expand == null) { + this.expand = new ArrayList<>(); + } + this.expand.addAll(elements); + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * AuthorizationRespondParams#extraParams} for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link AuthorizationRespondParams#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } +} diff --git a/src/main/java/com/stripe/param/tax/CalculationCreateParams.java b/src/main/java/com/stripe/param/tax/CalculationCreateParams.java index a408d6ae5c3..5948d1f6023 100644 --- a/src/main/java/com/stripe/param/tax/CalculationCreateParams.java +++ b/src/main/java/com/stripe/param/tax/CalculationCreateParams.java @@ -634,13 +634,13 @@ public static class TaxId { * {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code * hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, * {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code - * kz_bin}, {@code li_uid}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code my_frp}, - * {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code - * nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, - * {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code - * si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, - * {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code - * ve_rif}, {@code vn_tin}, or {@code za_vat} + * kz_bin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, + * {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code + * no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, + * {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code + * sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, + * {@code tz_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code + * uz_vat}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} */ @SerializedName("type") Type type; @@ -710,13 +710,13 @@ public Builder putAllExtraParam(Map map) { * {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code * hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, * {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code - * kz_bin}, {@code li_uid}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, {@code my_frp}, - * {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code - * nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, - * {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code - * si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, - * {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code - * ve_rif}, {@code vn_tin}, or {@code za_vat} + * kz_bin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, {@code md_vat}, {@code mx_rfc}, + * {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code + * no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, + * {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code + * sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, + * {@code tz_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code + * uz_vat}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} */ public Builder setType(CalculationCreateParams.CustomerDetails.TaxId.Type type) { this.type = type; @@ -869,6 +869,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("li_uid") LI_UID("li_uid"), + @SerializedName("li_vat") + LI_VAT("li_vat"), + @SerializedName("ma_vat") MA_VAT("ma_vat"), diff --git a/src/main/java/com/stripe/service/SubscriptionService.java b/src/main/java/com/stripe/service/SubscriptionService.java index e716e23a4b7..e885a444c25 100644 --- a/src/main/java/com/stripe/service/SubscriptionService.java +++ b/src/main/java/com/stripe/service/SubscriptionService.java @@ -176,7 +176,7 @@ public Subscription retrieve( * *

In these cases, we apply a credit for the unused time on the previous price, immediately * charge the customer using the new price, and reset the billing date. Learn about how Stripe + * href="https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment">Stripe * immediately attempts payment for subscription changes. * *

If you want to charge for an upgrade immediately, pass {@code proration_behavior} as {@code @@ -228,7 +228,7 @@ public Subscription update(String subscriptionExposedId, SubscriptionUpdateParam * *

In these cases, we apply a credit for the unused time on the previous price, immediately * charge the customer using the new price, and reset the billing date. Learn about how Stripe + * href="https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment">Stripe * immediately attempts payment for subscription changes. * *

If you want to charge for an upgrade immediately, pass {@code proration_behavior} as {@code @@ -280,7 +280,7 @@ public Subscription update(String subscriptionExposedId, RequestOptions options) * *

In these cases, we apply a credit for the unused time on the previous price, immediately * charge the customer using the new price, and reset the billing date. Learn about how Stripe + * href="https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment">Stripe * immediately attempts payment for subscription changes. * *

If you want to charge for an upgrade immediately, pass {@code proration_behavior} as {@code @@ -331,7 +331,7 @@ public Subscription update(String subscriptionExposedId) throws StripeException * *

In these cases, we apply a credit for the unused time on the previous price, immediately * charge the customer using the new price, and reset the billing date. Learn about how Stripe + * href="https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment">Stripe * immediately attempts payment for subscription changes. * *

If you want to charge for an upgrade immediately, pass {@code proration_behavior} as {@code diff --git a/src/main/java/com/stripe/service/testhelpers/issuing/AuthorizationService.java b/src/main/java/com/stripe/service/testhelpers/issuing/AuthorizationService.java index db7bb9468d9..0fdf60f2b00 100644 --- a/src/main/java/com/stripe/service/testhelpers/issuing/AuthorizationService.java +++ b/src/main/java/com/stripe/service/testhelpers/issuing/AuthorizationService.java @@ -15,6 +15,7 @@ import com.stripe.param.issuing.AuthorizationExpireParams; import com.stripe.param.issuing.AuthorizationFinalizeAmountParams; import com.stripe.param.issuing.AuthorizationIncrementParams; +import com.stripe.param.issuing.AuthorizationRespondParams; import com.stripe.param.issuing.AuthorizationReverseParams; public final class AuthorizationService extends ApiService { @@ -128,6 +129,34 @@ public Authorization finalizeAmount( options); return this.request(request, Authorization.class); } + /** + * Respond to a fraud challenge on a testmode Issuing authorization, simulating either a + * confirmation of fraud or a correction of legitimacy. + */ + public Authorization respond(String authorization, AuthorizationRespondParams params) + throws StripeException { + return respond(authorization, params, (RequestOptions) null); + } + /** + * Respond to a fraud challenge on a testmode Issuing authorization, simulating either a + * confirmation of fraud or a correction of legitimacy. + */ + public Authorization respond( + String authorization, AuthorizationRespondParams params, RequestOptions options) + throws StripeException { + String path = + String.format( + "/v1/test_helpers/issuing/authorizations/%s/fraud_challenges/respond", + ApiResource.urlEncodeId(authorization)); + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + path, + ApiRequestParams.paramsToMap(params), + options); + return this.request(request, Authorization.class); + } /** Increment a test-mode Authorization. */ public Authorization increment(String authorization, AuthorizationIncrementParams params) throws StripeException { From cf528f2c896e99af0898cf61e8db8c3a9144e544 Mon Sep 17 00:00:00 2001 From: Ramya Rao Date: Wed, 20 Nov 2024 15:32:06 -0800 Subject: [PATCH 10/10] Bump version to 28.1.0 --- CHANGELOG.md | 24 ++++++++++++++++++++++-- README.md | 8 ++++---- VERSION | 2 +- gradle.properties | 2 +- src/main/java/com/stripe/Stripe.java | 2 +- 5 files changed, 29 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7fee7466aa6..a5fe34c12a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,29 @@ # 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.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 diff --git a/README.md b/README.md index e78b81e07fb..4be493bfea1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Stripe Java client library -[![Maven Central](https://img.shields.io/badge/maven--central-v28.0.1-blue)](https://mvnrepository.com/artifact/com.stripe/stripe-java) +[![Maven Central](https://img.shields.io/badge/maven--central-v28.1.0-blue)](https://mvnrepository.com/artifact/com.stripe/stripe-java) [![JavaDoc](http://img.shields.io/badge/javadoc-reference-blue.svg)](https://stripe.dev/stripe-java) [![Build Status](https://github.com/stripe/stripe-java/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/stripe/stripe-java/actions?query=branch%3Amaster) [![Coverage Status](https://coveralls.io/repos/github/stripe/stripe-java/badge.svg?branch=master)](https://coveralls.io/github/stripe/stripe-java?branch=master) @@ -18,7 +18,7 @@ The official [Stripe][stripe] Java client library. Add this dependency to your project's build file: ```groovy -implementation "com.stripe:stripe-java:28.0.1" +implementation "com.stripe:stripe-java:28.1.0" ``` ### Maven users @@ -29,7 +29,7 @@ Add this dependency to your project's POM: com.stripe stripe-java - 28.0.1 + 28.1.0 ``` @@ -37,7 +37,7 @@ Add this dependency to your project's POM: You'll need to manually install the following JARs: -- [The Stripe JAR](https://search.maven.org/remotecontent?filepath=com/stripe/stripe-java/28.0.1/stripe-java-28.0.1.jar) +- [The Stripe JAR](https://search.maven.org/remotecontent?filepath=com/stripe/stripe-java/28.1.0/stripe-java-28.1.0.jar) - [Google Gson][gson] from . ### [ProGuard][proguard] diff --git a/VERSION b/VERSION index eebc120d380..811e3cfc4e8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -28.0.1 +28.1.0 diff --git a/gradle.properties b/gradle.properties index f63c1cf9c56..cea58122b09 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ GROUP=com.stripe -VERSION_NAME=28.0.1 +VERSION_NAME=28.1.0 POM_URL=https://github.com/stripe/stripe-java POM_SCM_URL=git@github.com:stripe/stripe-java.git diff --git a/src/main/java/com/stripe/Stripe.java b/src/main/java/com/stripe/Stripe.java index 9b90f76fa03..4e7a636b2bf 100644 --- a/src/main/java/com/stripe/Stripe.java +++ b/src/main/java/com/stripe/Stripe.java @@ -14,7 +14,7 @@ public abstract class Stripe { public static final String LIVE_API_BASE = "https://api.stripe.com"; public static final String UPLOAD_API_BASE = "https://files.stripe.com"; public static final String METER_EVENTS_API_BASE = "https://meter-events.stripe.com"; - public static final String VERSION = "28.0.1"; + public static final String VERSION = "28.1.0"; public static volatile String apiKey; public static volatile String clientId;