From ae0ab9f1e39d1d1b34b6dafd32c24f0410d7dbc7 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 4 Aug 2023 21:53:00 +0000 Subject: [PATCH 1/9] Update generated code for v449 --- OPENAPI_VERSION | 2 +- .../model/PaymentMethodConfiguration.java | 46 +++++ ...aymentMethodConfigurationCreateParams.java | 186 ++++++++++++++++++ ...aymentMethodConfigurationUpdateParams.java | 186 ++++++++++++++++++ 4 files changed, 419 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 1576a6cba8d..e0f8781c817 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v448 \ No newline at end of file +v449 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/PaymentMethodConfiguration.java b/src/main/java/com/stripe/model/PaymentMethodConfiguration.java index 3124347868b..407849011ff 100644 --- a/src/main/java/com/stripe/model/PaymentMethodConfiguration.java +++ b/src/main/java/com/stripe/model/PaymentMethodConfiguration.java @@ -150,6 +150,9 @@ public class PaymentMethodConfiguration extends ApiResource implements HasId { @SerializedName("paynow") Paynow paynow; + @SerializedName("paypal") + Paypal paypal; + @SerializedName("promptpay") Promptpay promptpay; @@ -1604,6 +1607,49 @@ public static class DisplayPreference extends StripeObject { } } + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Paypal extends StripeObject { + /** + * Whether this payment method may be offered at checkout. True if {@code display_preference} is + * {@code on} and the payment method's capability is active. + */ + @SerializedName("available") + Boolean available; + + @SerializedName("display_preference") + DisplayPreference displayPreference; + + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class DisplayPreference extends StripeObject { + /** + * For child configurations, whether or not the account's preference will be observed. If + * {@code false}, the parent configuration's preference is used. + */ + @SerializedName("overridable") + Boolean overridable; + + /** + * The account's display preference. + * + *
One of {@code none}, {@code off}, or {@code on}. + */ + @SerializedName("preference") + String preference; + + /** + * The effective display preference value. + * + *
One of {@code off}, or {@code on}.
+ */
+ @SerializedName("value")
+ String value;
+ }
+ }
+
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
diff --git a/src/main/java/com/stripe/param/PaymentMethodConfigurationCreateParams.java b/src/main/java/com/stripe/param/PaymentMethodConfigurationCreateParams.java
index 86975df4c4e..b3d42b38102 100644
--- a/src/main/java/com/stripe/param/PaymentMethodConfigurationCreateParams.java
+++ b/src/main/java/com/stripe/param/PaymentMethodConfigurationCreateParams.java
@@ -276,6 +276,14 @@ public class PaymentMethodConfigurationCreateParams extends ApiRequestParams {
@SerializedName("paynow")
Paynow paynow;
+ /**
+ * PayPal, a digital wallet popular with customers in Europe, allows your customers worldwide to
+ * pay using their PayPal account. Check this page for more details.
+ */
+ @SerializedName("paypal")
+ Paypal paypal;
+
/**
* PromptPay is a Thailand-based payment method that allows customers to make a payment using
* their preferred app from participating banks. Check this page for more details.
+ */
+ public Builder setPaypal(PaymentMethodConfigurationCreateParams.Paypal paypal) {
+ this.paypal = paypal;
+ return this;
+ }
+
/**
* PromptPay is a Thailand-based payment method that allows customers to make a payment using
* their preferred app from participating banks. Check this extraParams;
+
+ private Paypal(DisplayPreference displayPreference, Map One of {@code adjustment}, {@code advance}, {@code advance_funding}, {@code
* anticipation_repayment}, {@code application_fee}, {@code application_fee_refund}, {@code
* charge}, {@code connect_collection_transfer}, {@code contribution}, {@code
* issuing_authorization_hold}, {@code issuing_authorization_release}, {@code issuing_dispute},
* {@code issuing_transaction}, {@code payment}, {@code payment_failure_refund}, {@code
- * payment_refund}, {@code payout}, {@code payout_cancel}, {@code payout_failure}, {@code refund},
- * {@code refund_failure}, {@code reserve_transaction}, {@code reserved_funds}, {@code
- * stripe_fee}, {@code stripe_fx_fee}, {@code tax_fee}, {@code topup}, {@code topup_reversal},
- * {@code transfer}, {@code transfer_cancel}, {@code transfer_failure}, or {@code
- * transfer_refund}.
+ * payment_refund}, {@code payment_reversal}, {@code payout}, {@code payout_cancel}, {@code
+ * payout_failure}, {@code refund}, {@code refund_failure}, {@code reserve_transaction}, {@code
+ * reserved_funds}, {@code stripe_fee}, {@code stripe_fx_fee}, {@code tax_fee}, {@code topup},
+ * {@code topup_reversal}, {@code transfer}, {@code transfer_cancel}, {@code transfer_failure}, or
+ * {@code transfer_refund}.
*/
@SerializedName("type")
String type;
diff --git a/src/main/java/com/stripe/param/BalanceTransactionListParams.java b/src/main/java/com/stripe/param/BalanceTransactionListParams.java
index 142feb442b6..fba8d4cf4f2 100644
--- a/src/main/java/com/stripe/param/BalanceTransactionListParams.java
+++ b/src/main/java/com/stripe/param/BalanceTransactionListParams.java
@@ -84,11 +84,11 @@ public class BalanceTransactionListParams extends ApiRequestParams {
* application_fee_refund}, {@code charge}, {@code connect_collection_transfer}, {@code
* contribution}, {@code issuing_authorization_hold}, {@code issuing_authorization_release},
* {@code issuing_dispute}, {@code issuing_transaction}, {@code payment}, {@code
- * payment_failure_refund}, {@code payment_refund}, {@code payout}, {@code payout_cancel}, {@code
- * payout_failure}, {@code refund}, {@code refund_failure}, {@code reserve_transaction}, {@code
- * reserved_funds}, {@code stripe_fee}, {@code stripe_fx_fee}, {@code tax_fee}, {@code topup},
- * {@code topup_reversal}, {@code transfer}, {@code transfer_cancel}, {@code transfer_failure}, or
- * {@code transfer_refund}.
+ * payment_failure_refund}, {@code payment_refund}, {@code payment_reversal}, {@code payout},
+ * {@code payout_cancel}, {@code payout_failure}, {@code refund}, {@code refund_failure}, {@code
+ * reserve_transaction}, {@code reserved_funds}, {@code stripe_fee}, {@code stripe_fx_fee}, {@code
+ * tax_fee}, {@code topup}, {@code topup_reversal}, {@code transfer}, {@code transfer_cancel},
+ * {@code transfer_failure}, or {@code transfer_refund}.
*/
@SerializedName("type")
String type;
@@ -303,11 +303,11 @@ public Builder setStartingAfter(String startingAfter) {
* application_fee_refund}, {@code charge}, {@code connect_collection_transfer}, {@code
* contribution}, {@code issuing_authorization_hold}, {@code issuing_authorization_release},
* {@code issuing_dispute}, {@code issuing_transaction}, {@code payment}, {@code
- * payment_failure_refund}, {@code payment_refund}, {@code payout}, {@code payout_cancel},
- * {@code payout_failure}, {@code refund}, {@code refund_failure}, {@code reserve_transaction},
- * {@code reserved_funds}, {@code stripe_fee}, {@code stripe_fx_fee}, {@code tax_fee}, {@code
- * topup}, {@code topup_reversal}, {@code transfer}, {@code transfer_cancel}, {@code
- * transfer_failure}, or {@code transfer_refund}.
+ * payment_failure_refund}, {@code payment_refund}, {@code payment_reversal}, {@code payout},
+ * {@code payout_cancel}, {@code payout_failure}, {@code refund}, {@code refund_failure}, {@code
+ * reserve_transaction}, {@code reserved_funds}, {@code stripe_fee}, {@code stripe_fx_fee},
+ * {@code tax_fee}, {@code topup}, {@code topup_reversal}, {@code transfer}, {@code
+ * transfer_cancel}, {@code transfer_failure}, or {@code transfer_refund}.
*/
public Builder setType(String type) {
this.type = type;
From a0aef2467c46aa1f6affe4081c3a71932b727b46 Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Tue, 8 Aug 2023 17:49:43 +0000
Subject: [PATCH 5/9] Update generated code for v453
---
OPENAPI_VERSION | 2 +-
.../java/com/stripe/param/WebhookEndpointCreateParams.java | 3 +++
.../java/com/stripe/param/WebhookEndpointUpdateParams.java | 3 +++
3 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 85c8b08d1cc..9a80ace3db0 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v452
\ No newline at end of file
+v453
\ No newline at end of file
diff --git a/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java b/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java
index aeb7dfaef48..65ab85f88f7 100644
--- a/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java
+++ b/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java
@@ -1060,6 +1060,9 @@ public enum EnabledEvent implements ApiRequestParams.EnumParam {
@SerializedName("promotion_code.updated")
PROMOTION_CODE__UPDATED("promotion_code.updated"),
+ @SerializedName("quote.accept_failed")
+ QUOTE__ACCEPT_FAILED("quote.accept_failed"),
+
@SerializedName("quote.accepted")
QUOTE__ACCEPTED("quote.accepted"),
diff --git a/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java b/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java
index 68f0f6a535c..e51b84f219f 100644
--- a/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java
+++ b/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java
@@ -736,6 +736,9 @@ public enum EnabledEvent implements ApiRequestParams.EnumParam {
@SerializedName("promotion_code.updated")
PROMOTION_CODE__UPDATED("promotion_code.updated"),
+ @SerializedName("quote.accept_failed")
+ QUOTE__ACCEPT_FAILED("quote.accept_failed"),
+
@SerializedName("quote.accepted")
QUOTE__ACCEPTED("quote.accepted"),
From 480018212b9313e27dce5f993e799844830d6301 Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Wed, 9 Aug 2023 14:56:12 +0000
Subject: [PATCH 6/9] Update generated code for v454
---
OPENAPI_VERSION | 2 +-
.../model/CustomerCashBalanceTransaction.java | 43 +++++++++++++++++--
2 files changed, 41 insertions(+), 4 deletions(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 9a80ace3db0..1c6f65d1b44 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v453
\ No newline at end of file
+v454
\ No newline at end of file
diff --git a/src/main/java/com/stripe/model/CustomerCashBalanceTransaction.java b/src/main/java/com/stripe/model/CustomerCashBalanceTransaction.java
index b4481d06d66..c87807ad437 100644
--- a/src/main/java/com/stripe/model/CustomerCashBalanceTransaction.java
+++ b/src/main/java/com/stripe/model/CustomerCashBalanceTransaction.java
@@ -17,6 +17,9 @@
@Setter
@EqualsAndHashCode(callSuper = false)
public class CustomerCashBalanceTransaction extends StripeObject implements HasId {
+ @SerializedName("adjusted_for_overdraft")
+ AdjustedForOverdraft adjustedForOverdraft;
+
@SerializedName("applied_to_payment")
AppliedToPayment appliedToPayment;
@@ -85,9 +88,9 @@ public class CustomerCashBalanceTransaction extends StripeObject implements HasI
* href="https://stripe.com/docs/payments/customer-balance#types">Customer Balance One of {@code applied_to_payment}, {@code funded}, {@code funding_reversed}, {@code
- * refunded_from_payment}, {@code return_canceled}, {@code return_initiated}, or {@code
- * unapplied_from_payment}.
+ * One of {@code adjusted_for_overdraft}, {@code applied_to_payment}, {@code funded}, {@code
+ * funding_reversed}, {@code refunded_from_payment}, {@code return_canceled}, {@code
+ * return_initiated}, or {@code unapplied_from_payment}.
*/
@SerializedName("type")
String type;
@@ -113,6 +116,40 @@ public void setCustomerObject(Customer expandableObject) {
this.customer = new ExpandableField If you want to delete your own account, use the account information tab in your account
+ * href="https://dashboard.stripe.com/settings/account">account information tab in your account
* settings instead.
*/
public Account delete() throws StripeException {
@@ -296,7 +296,7 @@ public Account delete() throws StripeException {
* can only be deleted once all balances are zero.
*
* If you want to delete your own account, use the account information tab in your account
+ * href="https://dashboard.stripe.com/settings/account">account information tab in your account
* settings instead.
*/
public Account delete(RequestOptions options) throws StripeException {
@@ -311,7 +311,7 @@ public Account delete(RequestOptions options) throws StripeException {
* can only be deleted once all balances are zero.
*
* If you want to delete your own account, use the account information tab in your account
+ * href="https://dashboard.stripe.com/settings/account">account information tab in your account
* settings instead.
*/
public Account delete(Map If you want to delete your own account, use the account information tab in your account
+ * href="https://dashboard.stripe.com/settings/account">account information tab in your account
* settings instead.
*/
public Account delete(Map To update your own account, use the Dashboard. Refer to our Dashboard. Refer to our Connect documentation to learn
* more about updating accounts.
*/
@@ -576,7 +576,7 @@ public Account update(Map To update your own account, use the Dashboard. Refer to our Dashboard. Refer to our Connect documentation to learn
* more about updating accounts.
*/
@@ -601,7 +601,7 @@ public Account update(Map To update your own account, use the Dashboard. Refer to our Dashboard. Refer to our Connect documentation to learn
* more about updating accounts.
*/
@@ -620,7 +620,7 @@ public Account update(AccountUpdateParams params) throws StripeException {
* Custom Only or Custom and Express below.
*
* To update your own account, use the Dashboard. Refer to our Dashboard. Refer to our Connect documentation to learn
* more about updating accounts.
*/
From 93654f74c40f156bcab6862f779a8cce3b38c93f Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Thu, 10 Aug 2023 16:23:04 +0000
Subject: [PATCH 8/9] Update generated code for v457
---
OPENAPI_VERSION | 2 +-
src/main/java/com/stripe/model/Account.java | 13 +++++++------
.../java/com/stripe/param/AccountCreateParams.java | 8 +++++++-
.../java/com/stripe/param/AccountUpdateParams.java | 8 +++++++-
.../java/com/stripe/param/TokenCreateParams.java | 8 +++++++-
5 files changed, 29 insertions(+), 10 deletions(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index dad490c2365..bb32051fd0d 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v455
\ No newline at end of file
+v457
\ No newline at end of file
diff --git a/src/main/java/com/stripe/model/Account.java b/src/main/java/com/stripe/model/Account.java
index 2332b0f754e..2339276ba8a 100644
--- a/src/main/java/com/stripe/model/Account.java
+++ b/src/main/java/com/stripe/model/Account.java
@@ -1121,12 +1121,13 @@ public static class Company extends StripeObject {
*
* One of {@code free_zone_establishment}, {@code free_zone_llc}, {@code
* government_instrumentality}, {@code governmental_unit}, {@code incorporated_non_profit},
- * {@code limited_liability_partnership}, {@code llc}, {@code multi_member_llc}, {@code
- * private_company}, {@code private_corporation}, {@code private_partnership}, {@code
- * public_company}, {@code public_corporation}, {@code public_partnership}, {@code
- * single_member_llc}, {@code sole_establishment}, {@code sole_proprietorship}, {@code
- * tax_exempt_government_instrumentality}, {@code unincorporated_association}, or {@code
- * unincorporated_non_profit}.
+ * {@code incorporated_partnership}, {@code limited_liability_partnership}, {@code llc}, {@code
+ * multi_member_llc}, {@code private_company}, {@code private_corporation}, {@code
+ * private_partnership}, {@code public_company}, {@code public_corporation}, {@code
+ * public_partnership}, {@code single_member_llc}, {@code sole_establishment}, {@code
+ * sole_proprietorship}, {@code tax_exempt_government_instrumentality}, {@code
+ * unincorporated_association}, {@code unincorporated_non_profit}, or {@code
+ * unincorporated_partnership}.
*/
@SerializedName("structure")
String structure;
diff --git a/src/main/java/com/stripe/param/AccountCreateParams.java b/src/main/java/com/stripe/param/AccountCreateParams.java
index 3565b98dd22..a37bbbb727a 100644
--- a/src/main/java/com/stripe/param/AccountCreateParams.java
+++ b/src/main/java/com/stripe/param/AccountCreateParams.java
@@ -5727,6 +5727,9 @@ public enum Structure implements ApiRequestParams.EnumParam {
@SerializedName("incorporated_non_profit")
INCORPORATED_NON_PROFIT("incorporated_non_profit"),
+ @SerializedName("incorporated_partnership")
+ INCORPORATED_PARTNERSHIP("incorporated_partnership"),
+
@SerializedName("limited_liability_partnership")
LIMITED_LIABILITY_PARTNERSHIP("limited_liability_partnership"),
@@ -5770,7 +5773,10 @@ public enum Structure implements ApiRequestParams.EnumParam {
UNINCORPORATED_ASSOCIATION("unincorporated_association"),
@SerializedName("unincorporated_non_profit")
- UNINCORPORATED_NON_PROFIT("unincorporated_non_profit");
+ UNINCORPORATED_NON_PROFIT("unincorporated_non_profit"),
+
+ @SerializedName("unincorporated_partnership")
+ UNINCORPORATED_PARTNERSHIP("unincorporated_partnership");
@Getter(onMethod_ = {@Override})
private final String value;
diff --git a/src/main/java/com/stripe/param/AccountUpdateParams.java b/src/main/java/com/stripe/param/AccountUpdateParams.java
index 0323f94d474..7da478a5bd0 100644
--- a/src/main/java/com/stripe/param/AccountUpdateParams.java
+++ b/src/main/java/com/stripe/param/AccountUpdateParams.java
@@ -6038,6 +6038,9 @@ public enum Structure implements ApiRequestParams.EnumParam {
@SerializedName("incorporated_non_profit")
INCORPORATED_NON_PROFIT("incorporated_non_profit"),
+ @SerializedName("incorporated_partnership")
+ INCORPORATED_PARTNERSHIP("incorporated_partnership"),
+
@SerializedName("limited_liability_partnership")
LIMITED_LIABILITY_PARTNERSHIP("limited_liability_partnership"),
@@ -6081,7 +6084,10 @@ public enum Structure implements ApiRequestParams.EnumParam {
UNINCORPORATED_ASSOCIATION("unincorporated_association"),
@SerializedName("unincorporated_non_profit")
- UNINCORPORATED_NON_PROFIT("unincorporated_non_profit");
+ UNINCORPORATED_NON_PROFIT("unincorporated_non_profit"),
+
+ @SerializedName("unincorporated_partnership")
+ UNINCORPORATED_PARTNERSHIP("unincorporated_partnership");
@Getter(onMethod_ = {@Override})
private final String value;
diff --git a/src/main/java/com/stripe/param/TokenCreateParams.java b/src/main/java/com/stripe/param/TokenCreateParams.java
index 6aa327d6df7..2876ba5f6d9 100644
--- a/src/main/java/com/stripe/param/TokenCreateParams.java
+++ b/src/main/java/com/stripe/param/TokenCreateParams.java
@@ -1598,6 +1598,9 @@ public enum Structure implements ApiRequestParams.EnumParam {
@SerializedName("incorporated_non_profit")
INCORPORATED_NON_PROFIT("incorporated_non_profit"),
+ @SerializedName("incorporated_partnership")
+ INCORPORATED_PARTNERSHIP("incorporated_partnership"),
+
@SerializedName("limited_liability_partnership")
LIMITED_LIABILITY_PARTNERSHIP("limited_liability_partnership"),
@@ -1641,7 +1644,10 @@ public enum Structure implements ApiRequestParams.EnumParam {
UNINCORPORATED_ASSOCIATION("unincorporated_association"),
@SerializedName("unincorporated_non_profit")
- UNINCORPORATED_NON_PROFIT("unincorporated_non_profit");
+ UNINCORPORATED_NON_PROFIT("unincorporated_non_profit"),
+
+ @SerializedName("unincorporated_partnership")
+ UNINCORPORATED_PARTNERSHIP("unincorporated_partnership");
@Getter(onMethod_ = {@Override})
private final String value;
From c4f8327a38be7ca8b4becc372a5a061895d7a47a Mon Sep 17 00:00:00 2001
From: Richard Marmorstein