diff --git a/src/main/java/com/stripe/model/Account.java b/src/main/java/com/stripe/model/Account.java index 8a6d48267ff..a4f377f3c93 100644 --- a/src/main/java/com/stripe/model/Account.java +++ b/src/main/java/com/stripe/model/Account.java @@ -657,6 +657,15 @@ public static class Capabilities extends StripeObject { @SerializedName("card_payments") String cardPayments; + /** + * The status of the JCB payments capability of the account, or whether the account (Japan only) + * can directly process JCB credit card charges in JPY currency. + * + *

One of {@code active}, {@code inactive}, or {@code pending}. + */ + @SerializedName("jcb_payments") + String jcbPayments; + /** * The status of the legacy payments capability of the account. * diff --git a/src/main/java/com/stripe/model/Product.java b/src/main/java/com/stripe/model/Product.java index 078e6375486..2910001146c 100644 --- a/src/main/java/com/stripe/model/Product.java +++ b/src/main/java/com/stripe/model/Product.java @@ -147,36 +147,24 @@ public class Product extends ApiResource implements HasId, MetadataStoreProducts. - */ + /** Creates a new product object. */ public static Product create(Map params) throws StripeException { return create(params, (RequestOptions) null); } - /** - * Creates a new product object. To create a product for use with orders, see Products. - */ + /** Creates a new product object. */ public static Product create(Map params, RequestOptions options) throws StripeException { String url = String.format("%s%s", Stripe.getApiBase(), "/v1/products"); return ApiResource.request(ApiResource.RequestMethod.POST, url, params, Product.class, options); } - /** - * Creates a new product object. To create a product for use with orders, see Products. - */ + /** Creates a new product object. */ public static Product create(ProductCreateParams params) throws StripeException { return create(params, (RequestOptions) null); } - /** - * Creates a new product object. To create a product for use with orders, see Products. - */ + /** Creates a new product object. */ public static Product create(ProductCreateParams params, RequestOptions options) throws StripeException { String url = String.format("%s%s", Stripe.getApiBase(), "/v1/products"); diff --git a/src/main/java/com/stripe/model/SubscriptionItem.java b/src/main/java/com/stripe/model/SubscriptionItem.java index 5e39f5b97c5..c811d02db02 100644 --- a/src/main/java/com/stripe/model/SubscriptionItem.java +++ b/src/main/java/com/stripe/model/SubscriptionItem.java @@ -59,9 +59,14 @@ public class SubscriptionItem extends ApiResource String object; /** - * Plans define the base price, currency, and billing cycle for subscriptions. For example, you - * might have a $5/month plan that provides limited access to your products, and a $15/month plan - * that allows full access. + * Plans define the base price, currency, and billing cycle for recurring purchases of products. + * Products help you track inventory or provisioning, and plans help you track pricing. Different + * physical goods or levels of service should be represented by products, and pricing options + * should be represented by plans. This approach lets you change prices without having to change + * your provisioning scheme. + * + *

For example, you might have a single "gold" product that has plans for $10/month, + * $100/year, €9/month, and €90/year. * *

Related guides: Set up a diff --git a/src/main/java/com/stripe/model/checkout/Session.java b/src/main/java/com/stripe/model/checkout/Session.java index 84118140241..c0fa72732a0 100644 --- a/src/main/java/com/stripe/model/checkout/Session.java +++ b/src/main/java/com/stripe/model/checkout/Session.java @@ -343,9 +343,14 @@ public static class DisplayItem extends StripeObject { Custom custom; /** - * Plans define the base price, currency, and billing cycle for subscriptions. For example, you - * might have a $5/month plan that provides limited access to your products, and a $15/month - * plan that allows full access. + * Plans define the base price, currency, and billing cycle for recurring purchases of products. + * Products help you track inventory or provisioning, and plans help you track pricing. + * Different physical goods or levels of service should be represented by products, and pricing + * options should be represented by plans. This approach lets you change prices without having + * to change your provisioning scheme. + * + *

For example, you might have a single "gold" product that has plans for + * $10/month, $100/year, €9/month, and €90/year. * *

Related guides: Set up a diff --git a/src/main/java/com/stripe/param/AccountCreateParams.java b/src/main/java/com/stripe/param/AccountCreateParams.java index 4752389d3a0..e14a87ad922 100644 --- a/src/main/java/com/stripe/param/AccountCreateParams.java +++ b/src/main/java/com/stripe/param/AccountCreateParams.java @@ -4071,6 +4071,9 @@ public enum RequestedCapability implements ApiRequestParams.EnumParam { @SerializedName("card_payments") CARD_PAYMENTS("card_payments"), + @SerializedName("jcb_payments") + JCB_PAYMENTS("jcb_payments"), + @SerializedName("legacy_payments") LEGACY_PAYMENTS("legacy_payments"), diff --git a/src/main/java/com/stripe/param/AccountUpdateParams.java b/src/main/java/com/stripe/param/AccountUpdateParams.java index 4f69cbd8b05..ac926da0fbe 100644 --- a/src/main/java/com/stripe/param/AccountUpdateParams.java +++ b/src/main/java/com/stripe/param/AccountUpdateParams.java @@ -4675,6 +4675,9 @@ public enum RequestedCapability implements ApiRequestParams.EnumParam { @SerializedName("card_payments") CARD_PAYMENTS("card_payments"), + @SerializedName("jcb_payments") + JCB_PAYMENTS("jcb_payments"), + @SerializedName("legacy_payments") LEGACY_PAYMENTS("legacy_payments"), diff --git a/src/main/java/com/stripe/param/InvoiceUpcomingParams.java b/src/main/java/com/stripe/param/InvoiceUpcomingParams.java index 8889d516fb9..aa643be5d2f 100644 --- a/src/main/java/com/stripe/param/InvoiceUpcomingParams.java +++ b/src/main/java/com/stripe/param/InvoiceUpcomingParams.java @@ -100,10 +100,10 @@ public class InvoiceUpcomingParams extends ApiRequestParams { List subscriptionItems; /** - * If previewing an update to a subscription, this decides whether the preview will show the - * result of applying prorations or not. If set, one of {@code subscription_items} or {@code - * subscription}, and one of {@code subscription_items} or {@code subscription_trial_end} are - * required. + * This field has been renamed to {@code subscription_proration_behavior}. {@code + * subscription_prorate=true} can be replaced with {@code + * subscription_proration_behavior=create_prorations} and {@code subscription_prorate=false} can + * be replaced with {@code subscription_proration_behavior=none}. */ @SerializedName("subscription_prorate") Boolean subscriptionProrate; @@ -531,10 +531,10 @@ public Builder addAllSubscriptionItem(List elements) { } /** - * If previewing an update to a subscription, this decides whether the preview will show the - * result of applying prorations or not. If set, one of {@code subscription_items} or {@code - * subscription}, and one of {@code subscription_items} or {@code subscription_trial_end} are - * required. + * This field has been renamed to {@code subscription_proration_behavior}. {@code + * subscription_prorate=true} can be replaced with {@code + * subscription_proration_behavior=create_prorations} and {@code subscription_prorate=false} can + * be replaced with {@code subscription_proration_behavior=none}. */ public Builder setSubscriptionProrate(Boolean subscriptionProrate) { this.subscriptionProrate = subscriptionProrate;