Skip to content

Commit da6145b

Browse files
Update generated code (#2102)
* Update generated code for v2108 and * Update generated code for v2109 and * Update generated code for v2111 and * Update generated code for v2111 and --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
1 parent 4a3ea81 commit da6145b

16 files changed

+215
-50
lines changed

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3ccf295957c8cadc88e1463ea3ab4ec683a0314f
1+
6d15a7f20cb77c2c22091a30e499cb89d7e3248c

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2102
1+
v2111

src/main/java/com/stripe/model/Account.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2600,8 +2600,9 @@ public static class Invoices extends StripeObject {
26002600
List<ExpandableField<TaxId>> defaultAccountTaxIds;
26012601

26022602
/**
2603-
* Whether payment methods should be saved when a payment is completed for a one-time invoices
2604-
* on a hosted invoice page.
2603+
* Whether to save the payment method after a payment is completed for a one-time invoice or a
2604+
* subscription invoice when the customer already has a default payment method on the hosted
2605+
* invoice page.
26052606
*
26062607
* <p>One of {@code always}, {@code never}, or {@code offer}.
26072608
*/

src/main/java/com/stripe/model/Invoice.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ public class Invoice extends ApiResource implements HasId, MetadataStore<Invoice
174174
* A new subscription was created. * {@code subscription_cycle}: A subscription advanced into a
175175
* new period. * {@code subscription_threshold}: A subscription reached a billing threshold. *
176176
* {@code subscription_update}: A subscription was updated. * {@code upcoming}: Reserved for
177-
* simulated invoices, per the upcoming invoice endpoint.
177+
* upcoming invoices created through the Create Preview Invoice API or when an {@code
178+
* invoice.upcoming} event is generated for an upcoming invoice on a subscription.
178179
*
179180
* <p>One of {@code automatic_pending_invoice_item_invoice}, {@code manual}, {@code quote_accept},
180181
* {@code subscription}, {@code subscription_create}, {@code subscription_cycle}, {@code

src/main/java/com/stripe/model/InvoicePayment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public static class Payment extends StripeObject {
244244
/**
245245
* Type of payment object associated with this invoice payment.
246246
*
247-
* <p>One of {@code charge}, or {@code payment_intent}.
247+
* <p>One of {@code charge}, {@code payment_intent}, or {@code payment_record}.
248248
*/
249249
@SerializedName("type")
250250
String type;

src/main/java/com/stripe/model/PaymentIntent.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3591,6 +3591,14 @@ public static class MandateOptions extends StripeObject {
35913591
@Setter
35923592
@EqualsAndHashCode(callSuper = false)
35933593
public static class CardPresent extends StripeObject {
3594+
/**
3595+
* Controls when the funds will be captured from the customer's account.
3596+
*
3597+
* <p>One of {@code manual}, or {@code manual_preferred}.
3598+
*/
3599+
@SerializedName("capture_method")
3600+
String captureMethod;
3601+
35943602
/**
35953603
* Request ability to capture this payment beyond the standard <a
35963604
* href="https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity">authorization

src/main/java/com/stripe/model/v2/billing/MeterEvent.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ public class MeterEvent extends StripeObject {
4848
/**
4949
* The payload of the event. This must contain the fields corresponding to a meter’s {@code
5050
* customer_mapping.event_payload_key} (default is {@code stripe_customer_id}) and {@code
51-
* value_settings.event_payload_key} (default is {@code value}). Read more about the payload.
51+
* value_settings.event_payload_key} (default is {@code value}). Read more about the <a
52+
* href="https://docs.stripe.com/billing/subscriptions/usage-based/recording-usage#payload-key-overrides">payload</a>..
5253
*/
5354
@SerializedName("payload")
5455
Map<String, String> payload;

src/main/java/com/stripe/param/AccountCreateParams.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13078,8 +13078,9 @@ public static class Invoices {
1307813078
Map<String, Object> extraParams;
1307913079

1308013080
/**
13081-
* Whether payment methods should be saved when a payment is completed for a one-time invoices
13082-
* on a hosted invoice page.
13081+
* Whether to save the payment method after a payment is completed for a one-time invoice or a
13082+
* subscription invoice when the customer already has a default payment method on the hosted
13083+
* invoice page.
1308313084
*/
1308413085
@SerializedName("hosted_payment_method_save")
1308513086
HostedPaymentMethodSave hostedPaymentMethodSave;
@@ -13134,8 +13135,9 @@ public Builder putAllExtraParam(Map<String, Object> map) {
1313413135
}
1313513136

1313613137
/**
13137-
* Whether payment methods should be saved when a payment is completed for a one-time
13138-
* invoices on a hosted invoice page.
13138+
* Whether to save the payment method after a payment is completed for a one-time invoice or
13139+
* a subscription invoice when the customer already has a default payment method on the
13140+
* hosted invoice page.
1313913141
*/
1314013142
public Builder setHostedPaymentMethodSave(
1314113143
AccountCreateParams.Settings.Invoices.HostedPaymentMethodSave hostedPaymentMethodSave) {

src/main/java/com/stripe/param/AccountUpdateParams.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13389,8 +13389,9 @@ public static class Invoices {
1338913389
Map<String, Object> extraParams;
1339013390

1339113391
/**
13392-
* Whether payment methods should be saved when a payment is completed for a one-time invoices
13393-
* on a hosted invoice page.
13392+
* Whether to save the payment method after a payment is completed for a one-time invoice or a
13393+
* subscription invoice when the customer already has a default payment method on the hosted
13394+
* invoice page.
1339413395
*/
1339513396
@SerializedName("hosted_payment_method_save")
1339613397
HostedPaymentMethodSave hostedPaymentMethodSave;
@@ -13500,8 +13501,9 @@ public Builder putAllExtraParam(Map<String, Object> map) {
1350013501
}
1350113502

1350213503
/**
13503-
* Whether payment methods should be saved when a payment is completed for a one-time
13504-
* invoices on a hosted invoice page.
13504+
* Whether to save the payment method after a payment is completed for a one-time invoice or
13505+
* a subscription invoice when the customer already has a default payment method on the
13506+
* hosted invoice page.
1350513507
*/
1350613508
public Builder setHostedPaymentMethodSave(
1350713509
AccountUpdateParams.Settings.Invoices.HostedPaymentMethodSave hostedPaymentMethodSave) {

src/main/java/com/stripe/param/CustomerSessionCreateParams.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
@EqualsAndHashCode(callSuper = false)
1515
public class CustomerSessionCreateParams extends ApiRequestParams {
1616
/**
17-
* <strong>Required.</strong> Configuration for each component. Exactly 1 component must be
17+
* <strong>Required.</strong> Configuration for each component. At least 1 component must be
1818
* enabled.
1919
*/
2020
@SerializedName("components")
@@ -71,7 +71,7 @@ public CustomerSessionCreateParams build() {
7171
}
7272

7373
/**
74-
* <strong>Required.</strong> Configuration for each component. Exactly 1 component must be
74+
* <strong>Required.</strong> Configuration for each component. At least 1 component must be
7575
* enabled.
7676
*/
7777
public Builder setComponents(CustomerSessionCreateParams.Components components) {

0 commit comments

Comments
 (0)