Skip to content

Commit

Permalink
Update generated code (#1758)
Browse files Browse the repository at this point in the history
* Update generated code for v859

* Update generated code for v860

* Update generated code for v862

* Update generated code for v864

* Update generated code for v865

* Update generated code for v866

* Update generated code for v867

* Update generated code for v869

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] committed Mar 7, 2024
1 parent 0a22df5 commit 4d4e379
Show file tree
Hide file tree
Showing 18 changed files with 638 additions and 23 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v857
v869
20 changes: 20 additions & 0 deletions src/main/java/com/stripe/model/AccountSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ public static class Components extends StripeObject {
@SerializedName("account_onboarding")
AccountOnboarding accountOnboarding;

@SerializedName("documents")
Documents documents;

@SerializedName("payment_details")
PaymentDetails paymentDetails;

Expand All @@ -154,6 +157,23 @@ public static class AccountOnboarding extends StripeObject {
public static class Features extends StripeObject {}
}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Documents extends StripeObject {
/** Whether the embedded component is enabled. */
@SerializedName("enabled")
Boolean enabled;

@SerializedName("features")
Features features;

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Features extends StripeObject {}
}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
Expand Down
17 changes: 15 additions & 2 deletions src/main/java/com/stripe/model/Invoice.java
Original file line number Diff line number Diff line change
Expand Up @@ -2045,6 +2045,13 @@ public static class PaymentMethodOptions extends StripeObject {
@SerializedName("konbini")
Konbini konbini;

/**
* If paying by {@code sepa_debit}, this sub-hash contains details about the SEPA Direct Debit
* payment method options to pass to the invoice’s PaymentIntent.
*/
@SerializedName("sepa_debit")
SepaDebit sepaDebit;

/**
* If paying by {@code us_bank_account}, this sub-hash contains details about the ACH direct
* debit payment method options to pass to the invoice’s PaymentIntent.
Expand Down Expand Up @@ -2179,6 +2186,11 @@ public static class EuBankTransfer extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Konbini extends StripeObject {}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class SepaDebit extends StripeObject {}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
Expand Down Expand Up @@ -2359,8 +2371,9 @@ public static class StatusTransitions extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class SubscriptionDetails extends StripeObject {
/**
* Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that will reflect
* the metadata of the subscription at the time of invoice creation. <em>Note: This attribute is
* Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> defined as
* subscription metadata when an invoice is created. Becomes an immutable snapshot of the
* subscription metadata at the time of invoice finalization. <em>Note: This attribute is
* populated only for invoices created on or after June 29, 2023.</em>
*/
@SerializedName("metadata")
Expand Down
16 changes: 16 additions & 0 deletions src/main/java/com/stripe/model/checkout/Session.java
Original file line number Diff line number Diff line change
Expand Up @@ -1728,6 +1728,22 @@ public static class Card extends StripeObject {
@SerializedName("installments")
Installments installments;

/**
* We strongly recommend that you rely on our SCA Engine to automatically prompt your
* customers for authentication based on risk level and <a
* href="https://stripe.com/docs/strong-customer-authentication">other requirements</a>.
* However, if you wish to request 3D Secure based on logic from your own fraud engine,
* provide this option. If not provided, this value defaults to {@code automatic}. Read our
* guide on <a
* href="https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds">manually
* requesting 3D Secure</a> for more information on how this configuration interacts with
* Radar and our SCA Engine.
*
* <p>One of {@code any}, {@code automatic}, or {@code challenge}.
*/
@SerializedName("request_three_d_secure")
String requestThreeDSecure;

/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
*
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/com/stripe/model/treasury/InboundTransfer.java
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,9 @@ public static class UsBankAccount extends StripeObject {
String last4;

/**
* The US bank account network used to debit funds.
* The network rails used. See the <a
* href="https://stripe.com/docs/treasury/money-movement/timelines">docs</a> to learn more
* about money movement timelines for each network type.
*
* <p>Equal to {@code ach}.
*/
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/com/stripe/model/treasury/OutboundPayment.java
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,9 @@ public static class UsBankAccount extends StripeObject {
String last4;

/**
* The US bank account network used to send funds.
* The network rails used. See the <a
* href="https://stripe.com/docs/treasury/money-movement/timelines">docs</a> to learn more
* about money movement timelines for each network type.
*
* <p>One of {@code ach}, or {@code us_domestic_wire}.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,9 @@ public static class UsBankAccount extends StripeObject {
String last4;

/**
* The US bank account network used to send funds.
* The network rails used. See the <a
* href="https://stripe.com/docs/treasury/money-movement/timelines">docs</a> to learn more
* about money movement timelines for each network type.
*
* <p>One of {@code ach}, or {@code us_domestic_wire}.
*/
Expand Down
156 changes: 156 additions & 0 deletions src/main/java/com/stripe/param/AccountSessionCreateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ public static class Components {
@SerializedName("account_onboarding")
AccountOnboarding accountOnboarding;

@SerializedName("documents")
Documents documents;

/**
* Map of extra parameters for custom features not available in this client library. The content
* in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
Expand All @@ -161,11 +164,13 @@ public static class Components {

private Components(
AccountOnboarding accountOnboarding,
Documents documents,
Map<String, Object> extraParams,
PaymentDetails paymentDetails,
Payments payments,
Payouts payouts) {
this.accountOnboarding = accountOnboarding;
this.documents = documents;
this.extraParams = extraParams;
this.paymentDetails = paymentDetails;
this.payments = payments;
Expand All @@ -179,6 +184,8 @@ public static Builder builder() {
public static class Builder {
private AccountOnboarding accountOnboarding;

private Documents documents;

private Map<String, Object> extraParams;

private PaymentDetails paymentDetails;
Expand All @@ -191,6 +198,7 @@ public static class Builder {
public AccountSessionCreateParams.Components build() {
return new AccountSessionCreateParams.Components(
this.accountOnboarding,
this.documents,
this.extraParams,
this.paymentDetails,
this.payments,
Expand All @@ -204,6 +212,11 @@ public Builder setAccountOnboarding(
return this;
}

public Builder setDocuments(AccountSessionCreateParams.Components.Documents documents) {
this.documents = documents;
return this;
}

/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
* call, and subsequent calls add additional key/value pairs to the original map. See {@link
Expand Down Expand Up @@ -397,6 +410,149 @@ public Builder putAllExtraParam(Map<String, Object> map) {
}
}

@Getter
public static class Documents {
/** <strong>Required.</strong> Whether the embedded component is enabled. */
@SerializedName("enabled")
Boolean enabled;

/**
* Map of extra parameters for custom features not available in this client library. The
* content in this map is not serialized under this field's {@code @SerializedName} value.
* Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
* name in this param object. Effectively, this map is flattened to its parent instance.
*/
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map<String, Object> extraParams;

/** The list of features enabled in the embedded component. */
@SerializedName("features")
Features features;

private Documents(Boolean enabled, Map<String, Object> extraParams, Features features) {
this.enabled = enabled;
this.extraParams = extraParams;
this.features = features;
}

public static Builder builder() {
return new Builder();
}

public static class Builder {
private Boolean enabled;

private Map<String, Object> extraParams;

private Features features;

/** Finalize and obtain parameter instance from this builder. */
public AccountSessionCreateParams.Components.Documents build() {
return new AccountSessionCreateParams.Components.Documents(
this.enabled, this.extraParams, this.features);
}

/** <strong>Required.</strong> Whether the embedded component is enabled. */
public Builder setEnabled(Boolean enabled) {
this.enabled = enabled;
return this;
}

/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
* map. See {@link AccountSessionCreateParams.Components.Documents#extraParams} for the
* field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.put(key, value);
return this;
}

/**
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
* map. See {@link AccountSessionCreateParams.Components.Documents#extraParams} for the
* field documentation.
*/
public Builder putAllExtraParam(Map<String, Object> map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}

/** The list of features enabled in the embedded component. */
public Builder setFeatures(
AccountSessionCreateParams.Components.Documents.Features features) {
this.features = features;
return this;
}
}

@Getter
public static class Features {
/**
* Map of extra parameters for custom features not available in this client library. The
* content in this map is not serialized under this field's {@code @SerializedName} value.
* Instead, each key/value pair is serialized as if the key is a root-level field
* (serialized) name in this param object. Effectively, this map is flattened to its parent
* instance.
*/
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map<String, Object> extraParams;

private Features(Map<String, Object> extraParams) {
this.extraParams = extraParams;
}

public static Builder builder() {
return new Builder();
}

public static class Builder {
private Map<String, Object> extraParams;

/** Finalize and obtain parameter instance from this builder. */
public AccountSessionCreateParams.Components.Documents.Features build() {
return new AccountSessionCreateParams.Components.Documents.Features(this.extraParams);
}

/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
* map. See {@link AccountSessionCreateParams.Components.Documents.Features#extraParams}
* for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.put(key, value);
return this;
}

/**
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
* map. See {@link AccountSessionCreateParams.Components.Documents.Features#extraParams}
* for the field documentation.
*/
public Builder putAllExtraParam(Map<String, Object> map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
}
}
}

@Getter
public static class PaymentDetails {
/** <strong>Required.</strong> Whether the embedded component is enabled. */
Expand Down

0 comments on commit 4d4e379

Please sign in to comment.