Skip to content

Commit

Permalink
Update generated code for v996
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Apr 26, 2024
1 parent 3691ec6 commit d579a9b
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 17 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v994
v996
12 changes: 8 additions & 4 deletions src/main/java/com/stripe/model/CustomerSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -180,31 +180,35 @@ public static class PaymentElement extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Features extends StripeObject {
/**
* Controls whether the Payment Element allows the removal of a saved payment method.
* Controls whether the Payment Element displays the option to remove a saved payment
* method.
*
* <p>One of {@code disabled}, or {@code enabled}.
*/
@SerializedName("payment_method_remove")
String paymentMethodRemove;

/**
* Controls whether the Payment Element offers to save a new payment method.
* Controls whether the Payment Element displays a checkbox offering to save a new payment
* method.
*
* <p>One of {@code disabled}, or {@code enabled}.
*/
@SerializedName("payment_method_save")
String paymentMethodSave;

/**
* Controls whether the Payment Element offers to set a payment method as the default.
* Controls whether the Payment Element displays a checkbox offering to set a saved payment
* method as the default.
*
* <p>One of {@code disabled}, or {@code enabled}.
*/
@SerializedName("payment_method_set_as_default")
String paymentMethodSetAsDefault;

/**
* Controls whether the Payment Element allows the updating of a saved payment method.
* Controls whether the Payment Element displays the option to update a saved payment
* method.
*
* <p>One of {@code disabled}, or {@code enabled}.
*/
Expand Down
14 changes: 12 additions & 2 deletions src/main/java/com/stripe/model/Invoice.java
Original file line number Diff line number Diff line change
Expand Up @@ -488,11 +488,21 @@ public class Invoice extends ApiResource implements HasId, MetadataStore<Invoice
@SerializedName("payments")
InvoicePaymentCollection payments;

/** End of the usage period during which invoice items were added to this invoice. */
/**
* End of the usage period during which invoice items were added to this invoice. This looks back
* one period for a subscription invoice. Use the <a
* href="https://stripe.com/api/invoices/line_item#invoice_line_item_object-period">line item
* period</a> to get the service period for each price.
*/
@SerializedName("period_end")
Long periodEnd;

/** Start of the usage period during which invoice items were added to this invoice. */
/**
* Start of the usage period during which invoice items were added to this invoice. This looks
* back one period for a subscription invoice. Use the <a
* href="https://stripe.com/api/invoices/line_item#invoice_line_item_object-period">line item
* period</a> to get the service period for each price.
*/
@SerializedName("period_start")
Long periodStart;

Expand Down
14 changes: 12 additions & 2 deletions src/main/java/com/stripe/model/QuotePreviewInvoice.java
Original file line number Diff line number Diff line change
Expand Up @@ -435,11 +435,21 @@ public class QuotePreviewInvoice extends ApiResource implements HasId {
@SerializedName("payments")
InvoicePaymentCollection payments;

/** End of the usage period during which invoice items were added to this invoice. */
/**
* End of the usage period during which invoice items were added to this invoice. This looks back
* one period for a subscription invoice. Use the <a
* href="https://stripe.com/api/invoices/line_item#invoice_line_item_object-period">line item
* period</a> to get the service period for each price.
*/
@SerializedName("period_end")
Long periodEnd;

/** Start of the usage period during which invoice items were added to this invoice. */
/**
* Start of the usage period during which invoice items were added to this invoice. This looks
* back one period for a subscription invoice. Use the <a
* href="https://stripe.com/api/invoices/line_item#invoice_line_item_object-period">line item
* period</a> to get the service period for each price.
*/
@SerializedName("period_start")
Long periodStart;

Expand Down
40 changes: 32 additions & 8 deletions src/main/java/com/stripe/param/CustomerSessionCreateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -406,19 +406,31 @@ public static class Features {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map<String, Object> extraParams;

/** Controls whether the Payment Element allows the removal of a saved payment method. */
/**
* Controls whether the Payment Element displays the option to remove a saved payment
* method.
*/
@SerializedName("payment_method_remove")
PaymentMethodRemove paymentMethodRemove;

/** Controls whether the Payment Element offers to save a new payment method. */
/**
* Controls whether the Payment Element displays a checkbox offering to save a new payment
* method.
*/
@SerializedName("payment_method_save")
PaymentMethodSave paymentMethodSave;

/** Controls whether the Payment Element offers to set a payment method as the default. */
/**
* Controls whether the Payment Element displays a checkbox offering to set a saved payment
* method as the default.
*/
@SerializedName("payment_method_set_as_default")
PaymentMethodSetAsDefault paymentMethodSetAsDefault;

/** Controls whether the Payment Element allows the updating of a saved payment method. */
/**
* Controls whether the Payment Element displays the option to update a saved payment
* method.
*/
@SerializedName("payment_method_update")
PaymentMethodUpdate paymentMethodUpdate;

Expand Down Expand Up @@ -490,23 +502,32 @@ public Builder putAllExtraParam(Map<String, Object> map) {
return this;
}

/** Controls whether the Payment Element allows the removal of a saved payment method. */
/**
* Controls whether the Payment Element displays the option to remove a saved payment
* method.
*/
public Builder setPaymentMethodRemove(
CustomerSessionCreateParams.Components.PaymentElement.Features.PaymentMethodRemove
paymentMethodRemove) {
this.paymentMethodRemove = paymentMethodRemove;
return this;
}

/** Controls whether the Payment Element offers to save a new payment method. */
/**
* Controls whether the Payment Element displays a checkbox offering to save a new payment
* method.
*/
public Builder setPaymentMethodSave(
CustomerSessionCreateParams.Components.PaymentElement.Features.PaymentMethodSave
paymentMethodSave) {
this.paymentMethodSave = paymentMethodSave;
return this;
}

/** Controls whether the Payment Element offers to set a payment method as the default. */
/**
* Controls whether the Payment Element displays a checkbox offering to set a saved
* payment method as the default.
*/
public Builder setPaymentMethodSetAsDefault(
CustomerSessionCreateParams.Components.PaymentElement.Features
.PaymentMethodSetAsDefault
Expand All @@ -515,7 +536,10 @@ public Builder setPaymentMethodSetAsDefault(
return this;
}

/** Controls whether the Payment Element allows the updating of a saved payment method. */
/**
* Controls whether the Payment Element displays the option to update a saved payment
* method.
*/
public Builder setPaymentMethodUpdate(
CustomerSessionCreateParams.Components.PaymentElement.Features.PaymentMethodUpdate
paymentMethodUpdate) {
Expand Down

0 comments on commit d579a9b

Please sign in to comment.