Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion API_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
368be7755d15d02a1038325c7d159703b01662b0
1307ab81356642fb1bf890524815d5cb6997a34d
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2129
v2132
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ jar {
"Implementation-Version": VERSION_NAME,
"Implementation-Vendor": VENDOR_NAME,
"Bundle-SymbolicName": POM_ARTIFACT_ID,
"Export-Package": "com.stripe.*")
"Export-Package": "com.stripe.*",
"Automatic-Module-Name": "stripe.java")

archiveVersion = VERSION_NAME
}
Expand Down
33 changes: 33 additions & 0 deletions src/main/java/com/stripe/model/AccountSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,14 @@ public static class Components extends StripeObject {
@SerializedName("capital_financing_promotion")
CapitalFinancingPromotion capitalFinancingPromotion;

/**
* Configuration for the <a
* href="https://stripe.com/connect/supported-embedded-components/check-scanning/">check
* scanning</a> embedded component.
*/
@SerializedName("check_scanning")
CheckScanning checkScanning;

@SerializedName("disputes_list")
DisputesList disputesList;

Expand Down Expand Up @@ -423,6 +431,31 @@ public static class CapitalFinancingPromotion extends StripeObject {
public static class Features extends StripeObject {}
}

/**
* For more details about CheckScanning, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class CheckScanning extends StripeObject {
/** Whether the embedded component is enabled. */
@SerializedName("enabled")
Boolean enabled;

@SerializedName("features")
Features features;

/**
* For more details about Features, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Features extends StripeObject {}
}

/**
* For more details about DisputesList, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/stripe/model/Person.java
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ public static class Errors extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class SelfReportedIncome extends StripeObject {
/** Amount in the minor currency unit (e.g., cents for USD). */
/** The amount in the minor currency unit (for example, cents for USD). */
@SerializedName("amount")
Long amount;

Expand All @@ -871,7 +871,7 @@ public static class SelfReportedIncome extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class SelfReportedMonthlyHousingPayment extends StripeObject {
/** Amount in the minor currency unit (e.g., cents for USD). */
/** The amount in the minor currency unit (for example, cents for USD). */
@SerializedName("amount")
Long amount;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,10 @@ public static class Address extends StripeObject {
@SerializedName("postal_code")
String postalCode;

/** State, county, province, or region. */
/**
* State, county, province, or region (<a href="https://en.wikipedia.org/wiki/ISO_3166-2">ISO
* 3166-2</a>).
*/
@SerializedName("state")
String state;
}
Expand Down Expand Up @@ -657,7 +660,10 @@ public static class Address extends StripeObject {
@SerializedName("postal_code")
String postalCode;

/** State, county, province, or region. */
/**
* State, county, province, or region (<a
* href="https://en.wikipedia.org/wiki/ISO_3166-2">ISO 3166-2</a>).
*/
@SerializedName("state")
String state;
}
Expand Down
59 changes: 59 additions & 0 deletions src/main/java/com/stripe/model/v2/core/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ public static class Reason extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Request extends StripeObject implements HasId {
/** The client details that made the request. */
@SerializedName("client")
Client client;

/** ID of the API request that caused the event. */
@Getter(onMethod_ = {@Override})
@SerializedName("id")
Expand All @@ -169,6 +173,61 @@ public static class Request extends StripeObject implements HasId {
/** The idempotency key transmitted during the request. */
@SerializedName("idempotency_key")
String idempotencyKey;

/** The client details that made the request. */
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Client extends StripeObject {
/** API key that triggered the event. */
@SerializedName("api_key")
ApiKey apiKey;

/** Dashboard user that triggered the event. */
@SerializedName("dashboard_user")
DashboardUser dashboardUser;

/** Stripe action that triggered the event. */
@SerializedName("stripe_action")
Map<String, Object> stripeAction;

/**
* The type of the client.
*
* <p>One of {@code api_key}, {@code dashboard_user}, or {@code stripe_action}.
*/
@SerializedName("type")
String type;

/** API key that triggered the event. */
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class ApiKey extends StripeObject implements HasId {
/** The ID of the API key. */
@Getter(onMethod_ = {@Override})
@SerializedName("id")
String id;
}

/** Dashboard user that triggered the event. */
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class DashboardUser extends StripeObject {
/** The email of the dashboard user. */
@SerializedName("email")
String email;

/** The IP address of the user. */
@SerializedName("ip_address")
String ipAddress;

/** The machine identifier of the user. */
@SerializedName("machine_identifier")
String machineIdentifier;
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,18 @@ public class ReceivedCredit extends StripeObject implements HasId {
@SerializedName("status_transitions")
StatusTransitions statusTransitions;

/**
* This object stores details about the stripe balance pay refund that resulted in the
* ReceivedCredit. Present if {@code type} field value is {@code stripe_balance_payment}.
*/
@SerializedName("stripe_balance_payment")
StripeBalancePayment stripeBalancePayment;

/**
* Open Enum. The type of flow that caused the ReceivedCredit.
*
* <p>One of {@code balance_transfer}, {@code bank_transfer}, or {@code external_credit}.
* <p>One of {@code balance_transfer}, {@code bank_transfer}, {@code external_credit}, or {@code
* stripe_balance_payment}.
*/
@SerializedName("type")
String type;
Expand Down Expand Up @@ -416,4 +424,17 @@ public static class StatusTransitions extends StripeObject {
@SerializedName("succeeded_at")
Instant succeededAt;
}

/**
* This object stores details about the stripe balance pay refund that resulted in the
* ReceivedCredit. Present if {@code type} field value is {@code stripe_balance_payment}.
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class StripeBalancePayment extends StripeObject {
/** Statement descriptor for the Stripe Balance Payment. */
@SerializedName("statement_descriptor")
String statementDescriptor;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ public class ReceivedDebit extends StripeObject implements HasId {
@SerializedName("amount")
Amount amount;

/**
* This object stores details about the balance transfer object that resulted in the
* ReceivedDebit.
*/
@SerializedName("balance_transfer")
BalanceTransfer balanceTransfer;

/**
* This object stores details about the originating banking transaction that resulted in the
* ReceivedDebit. Present if {@code type} field value is {@code bank_transfer}.
Expand Down Expand Up @@ -87,9 +94,16 @@ public class ReceivedDebit extends StripeObject implements HasId {
StatusTransitions statusTransitions;

/**
* Open Enum. The type of the ReceivedDebit.
* This object stores details about the Stripe Balance Payment that resulted in the ReceivedDebit.
*/
@SerializedName("stripe_balance_payment")
StripeBalancePayment stripeBalancePayment;

/**
* Open enum, the type of the received debit.
*
* <p>One of {@code bank_transfer}, or {@code external_debit}.
* <p>One of {@code balance_transfer}, {@code bank_transfer}, {@code external_debit}, or {@code
* stripe_balance_payment}.
*/
@SerializedName("type")
String type;
Expand All @@ -115,6 +129,27 @@ public static class Amount extends StripeObject {
Long value;
}

/**
* This object stores details about the balance transfer object that resulted in the
* ReceivedDebit.
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class BalanceTransfer extends StripeObject {
/** The ID of the topup object that originated the ReceivedDebit. */
@SerializedName("topup")
String topup;

/**
* Open Enum. The type of balance transfer that originated the ReceivedDebit.
*
* <p>Equal to {@code topup}.
*/
@SerializedName("type")
String type;
}

/**
* This object stores details about the originating banking transaction that resulted in the
* ReceivedDebit. Present if {@code type} field value is {@code bank_transfer}.
Expand Down Expand Up @@ -254,4 +289,20 @@ public static class StatusTransitions extends StripeObject {
@SerializedName("succeeded_at")
Instant succeededAt;
}

/**
* This object stores details about the Stripe Balance Payment that resulted in the ReceivedDebit.
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class StripeBalancePayment extends StripeObject {
/** ID of the debit agreement associated with this payment. */
@SerializedName("debit_agreement")
String debitAgreement;

/** Statement descriptor for the Stripe Balance Payment. */
@SerializedName("statement_descriptor")
String statementDescriptor;
}
}
44 changes: 36 additions & 8 deletions src/main/java/com/stripe/param/AccountCreateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -13521,11 +13521,18 @@ public Builder setTitle(String title) {
@Getter
@EqualsAndHashCode(callSuper = false)
public static class SelfReportedIncome {
/** <strong>Required.</strong> */
/**
* <strong>Required.</strong> The amount in the minor currency unit (for example, cents for
* USD).
*/
@SerializedName("amount")
Long amount;

/** <strong>Required.</strong> */
/**
* <strong>Required.</strong> Three-letter <a
* href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in
* lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
*/
@SerializedName("currency")
String currency;

Expand Down Expand Up @@ -13561,13 +13568,20 @@ public AccountCreateParams.Individual.SelfReportedIncome build() {
this.amount, this.currency, this.extraParams);
}

/** <strong>Required.</strong> */
/**
* <strong>Required.</strong> The amount in the minor currency unit (for example, cents for
* USD).
*/
public Builder setAmount(Long amount) {
this.amount = amount;
return this;
}

/** <strong>Required.</strong> */
/**
* <strong>Required.</strong> Three-letter <a
* href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in
* lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
*/
public Builder setCurrency(String currency) {
this.currency = currency;
return this;
Expand Down Expand Up @@ -13606,11 +13620,18 @@ public Builder putAllExtraParam(Map<String, Object> map) {
@Getter
@EqualsAndHashCode(callSuper = false)
public static class SelfReportedMonthlyHousingPayment {
/** <strong>Required.</strong> */
/**
* <strong>Required.</strong> The amount in the minor currency unit (for example, cents for
* USD).
*/
@SerializedName("amount")
Long amount;

/** <strong>Required.</strong> */
/**
* <strong>Required.</strong> Three-letter <a
* href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in
* lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
*/
@SerializedName("currency")
String currency;

Expand Down Expand Up @@ -13647,13 +13668,20 @@ public AccountCreateParams.Individual.SelfReportedMonthlyHousingPayment build()
this.amount, this.currency, this.extraParams);
}

/** <strong>Required.</strong> */
/**
* <strong>Required.</strong> The amount in the minor currency unit (for example, cents for
* USD).
*/
public Builder setAmount(Long amount) {
this.amount = amount;
return this;
}

/** <strong>Required.</strong> */
/**
* <strong>Required.</strong> Three-letter <a
* href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in
* lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
*/
public Builder setCurrency(String currency) {
this.currency = currency;
return this;
Expand Down
Loading