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 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 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 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 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 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 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 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 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, MetadataStore 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
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 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 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, MetadataStore Related guide: Billing
- * credits end
+ * credits
*/
@Getter
@Setter
@@ -45,8 +45,8 @@ public class CreditGrant extends ApiResource implements HasId, MetadataStore 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 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 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 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