Skip to content

Commit ab9497b

Browse files
Update generated code for v2141 and
1 parent b9daaeb commit ab9497b

23 files changed

+1005
-404
lines changed

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3754185f27424301fe8e10987298640d9043e9e9
1+
3602014a6583f6c0fbfdde3c575839ac7d0b4e9c

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2139
1+
v2141

src/main/java/com/stripe/events/V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ public static final class EventData {
2222
/**
2323
* Open Enum. The capability which had its status updated.
2424
*
25-
* <p>One of {@code bank_accounts.local}, {@code bank_accounts.wire}, {@code cards}, {@code
26-
* crypto_wallets_v2}, {@code stripe_balance.payouts}, {@code stripe_balance.stripe_transfers},
27-
* or {@code stripe.transfers}.
25+
* <p>One of {@code bank_accounts.instant}, {@code bank_accounts.local}, {@code
26+
* bank_accounts.wire}, {@code cards}, {@code crypto_wallets_v2}, {@code
27+
* stripe_balance.payouts}, {@code stripe_balance.stripe_transfers}, or {@code
28+
* stripe.transfers}.
2829
*/
2930
@SerializedName("updated_capability")
3031
String updatedCapability;

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

Lines changed: 105 additions & 41 deletions
Large diffs are not rendered by default.

src/main/java/com/stripe/model/v2/iam/ApiKey.java

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ public class ApiKey extends StripeObject implements HasId {
2828
@SerializedName("id")
2929
String id;
3030

31-
/** List of IP addresses allowed to use this API key. */
31+
/**
32+
* List of IP addresses allowed to use this API key. Addresses use IPv4 protocol, and may be a
33+
* CIDR range (e.g., [100.10.38.255, 100.10.38.0/24]).
34+
*/
3235
@SerializedName("ip_allowlist")
3336
List<String> ipAllowlist;
3437

@@ -45,7 +48,7 @@ public class ApiKey extends StripeObject implements HasId {
4548

4649
/** Account that manages this API key (for keys managed by platforms). */
4750
@SerializedName("managed_by")
48-
String managedBy;
51+
ManagedBy managedBy;
4952

5053
/** Name of the API key. */
5154
@SerializedName("name")
@@ -88,6 +91,35 @@ public class ApiKey extends StripeObject implements HasId {
8891
@SerializedName("type")
8992
String type;
9093

94+
/** Account that manages this API key (for keys managed by platforms). */
95+
@Getter
96+
@Setter
97+
@EqualsAndHashCode(callSuper = false)
98+
public static class ManagedBy extends StripeObject {
99+
/** An application. */
100+
@SerializedName("application")
101+
Application application;
102+
103+
/**
104+
* The type of entity.
105+
*
106+
* <p>Equal to {@code application}.
107+
*/
108+
@SerializedName("type")
109+
String type;
110+
111+
/** An application. */
112+
@Getter
113+
@Setter
114+
@EqualsAndHashCode(callSuper = false)
115+
public static class Application extends StripeObject implements HasId {
116+
/** Identifier of the application. */
117+
@Getter(onMethod_ = {@Override})
118+
@SerializedName("id")
119+
String id;
120+
}
121+
}
122+
91123
/** Token set for a publishable key. */
92124
@Getter
93125
@Setter

src/main/java/com/stripe/model/v2/moneymanagement/FinancialAccount.java

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ public class FinancialAccount extends StripeObject implements HasId {
5757
@SerializedName("livemode")
5858
Boolean livemode;
5959

60+
/**
61+
* If this is a managed FinancialAccount, {@code managed_by} indicates the product that created
62+
* and manages this FinancialAccount. For managed FinancialAccounts, creation of money management
63+
* resources can only be orchestrated by the managing product.
64+
*/
65+
@SerializedName("managed_by")
66+
ManagedBy managedBy;
67+
6068
/** Metadata associated with the FinancialAccount. */
6169
@SerializedName("metadata")
6270
Map<String, String> metadata;
@@ -77,6 +85,13 @@ public class FinancialAccount extends StripeObject implements HasId {
7785
@SerializedName("other")
7886
Other other;
7987

88+
/**
89+
* If this is a {@code payments} FinancialAccount, this hash include details specific to {@code
90+
* payments} FinancialAccount.
91+
*/
92+
@SerializedName("payments")
93+
Payments payments;
94+
8095
/**
8196
* Closed Enum. An enum representing the status of the FinancialAccount. This indicates whether or
8297
* not the FinancialAccount can be used for any money movement flows.
@@ -101,7 +116,7 @@ public class FinancialAccount extends StripeObject implements HasId {
101116
* name matching this value. It contains additional information specific to the FinancialAccount
102117
* type.
103118
*
104-
* <p>One of {@code other}, or {@code storage}.
119+
* <p>One of {@code other}, {@code payments}, or {@code storage}.
105120
*/
106121
@SerializedName("type")
107122
String type;
@@ -200,6 +215,24 @@ public static class OutboundPending extends StripeObject {
200215
}
201216
}
202217

218+
/**
219+
* If this is a managed FinancialAccount, {@code managed_by} indicates the product that created
220+
* and manages this FinancialAccount. For managed FinancialAccounts, creation of money management
221+
* resources can only be orchestrated by the managing product.
222+
*/
223+
@Getter
224+
@Setter
225+
@EqualsAndHashCode(callSuper = false)
226+
public static class ManagedBy extends StripeObject {
227+
/**
228+
* Enum describing the Stripe product that is managing this FinancialAccount.
229+
*
230+
* <p>Equal to {@code multiprocessor_settlement}.
231+
*/
232+
@SerializedName("type")
233+
String type;
234+
}
235+
203236
/**
204237
* If this is a {@code other} FinancialAccount, this hash indicates what the actual type is.
205238
* Upgrade your API version to see it reflected in {@code type}.
@@ -216,6 +249,26 @@ public static class Other extends StripeObject {
216249
String type;
217250
}
218251

252+
/**
253+
* If this is a {@code payments} FinancialAccount, this hash include details specific to {@code
254+
* payments} FinancialAccount.
255+
*/
256+
@Getter
257+
@Setter
258+
@EqualsAndHashCode(callSuper = false)
259+
public static class Payments extends StripeObject {
260+
/** The currency that non-settlement currency payments will be converted to. */
261+
@SerializedName("default_currency")
262+
String defaultCurrency;
263+
264+
/**
265+
* Settlement currencies enabled for this FinancialAccount. Payments in other currencies will be
266+
* automatically converted to {@code default_currency}.
267+
*/
268+
@SerializedName("settlement_currencies")
269+
List<String> settlementCurrencies;
270+
}
271+
219272
/**
220273
* For more details about StatusDetails, please refer to the <a
221274
* href="https://docs.stripe.com/api">API Reference.</a>

src/main/java/com/stripe/model/v2/moneymanagement/OutboundPayment.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,14 @@ public static class DeliveryOptions extends StripeObject {
182182
*/
183183
@SerializedName("bank_account")
184184
String bankAccount;
185+
186+
/**
187+
* Open Enum. Speed of the payout.
188+
*
189+
* <p>One of {@code instant}, {@code next_business_day}, or {@code standard}.
190+
*/
191+
@SerializedName("speed")
192+
String speed;
185193
}
186194

187195
/** The FinancialAccount that funds were pulled from. */

src/main/java/com/stripe/model/v2/moneymanagement/OutboundPaymentQuote.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,14 @@ public static class DeliveryOptions extends StripeObject {
104104
*/
105105
@SerializedName("bank_account")
106106
String bankAccount;
107+
108+
/**
109+
* Open Enum. Speed of the payout.
110+
*
111+
* <p>One of {@code instant}, {@code next_business_day}, or {@code standard}.
112+
*/
113+
@SerializedName("speed")
114+
String speed;
107115
}
108116

109117
/**
@@ -122,7 +130,8 @@ public static class EstimatedFee extends StripeObject {
122130
* The fee type.
123131
*
124132
* <p>One of {@code cross_border_payout_fee}, {@code foreign_exchange_fee}, {@code
125-
* instant_payout_fee}, {@code standard_payout_fee}, or {@code wire_payout_fee}.
133+
* instant_payout_fee}, {@code real_time_payout_fee}, {@code standard_payout_fee}, or {@code
134+
* wire_payout_fee}.
126135
*/
127136
@SerializedName("type")
128137
String type;

src/main/java/com/stripe/model/v2/payments/SettlementAllocationIntent.java

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ public class SettlementAllocationIntent extends StripeObject implements HasId {
2020
@SerializedName("amount")
2121
Amount amount;
2222

23-
/** Timestamp at which Settlement Intent was created . */
23+
/** Timestamp at which SettlementAllocationIntent was created . */
2424
@SerializedName("created")
2525
Instant created;
2626

27-
/** Expected date when we expect to receive the funds. */
27+
/** Date when we expect to receive the funds. */
2828
@SerializedName("expected_settlement_date")
2929
Instant expectedSettlementDate;
3030

31-
/** Financial Account Id where the funds are expected. */
31+
/** FinancialAccount ID where the funds are expected. */
3232
@SerializedName("financial_account")
3333
String financialAccount;
3434

@@ -61,24 +61,23 @@ public class SettlementAllocationIntent extends StripeObject implements HasId {
6161
@SerializedName("object")
6262
String object;
6363

64-
/** Reference for the settlement intent . The reference used by PSP to send funds to Stripe . */
64+
/**
65+
* Reference for the SettlementAllocationIntent. This is the transaction reference used by
66+
* payments processor to send funds to Stripe .
67+
*/
6568
@SerializedName("reference")
6669
String reference;
6770

6871
/**
69-
* Settlement Intent status.
72+
* SettlementAllocationIntent status.
7073
*
7174
* <p>One of {@code canceled}, {@code errored}, {@code matched}, {@code pending}, {@code settled},
7275
* or {@code submitted}.
7376
*/
7477
@SerializedName("status")
7578
String status;
7679

77-
/**
78-
* This hash contains detailed information that elaborates on the specific status of the
79-
* SettlementAllocationIntent. e.g the reason behind the error failure if the status is marked as
80-
* {@code errored}.
81-
*/
80+
/** Status details for a SettlementAllocationIntent in {@code errored} state. */
8281
@SerializedName("status_details")
8382
StatusDetails statusDetails;
8483

@@ -103,11 +102,7 @@ public static class Amount extends StripeObject {
103102
Long value;
104103
}
105104

106-
/**
107-
* This hash contains detailed information that elaborates on the specific status of the
108-
* SettlementAllocationIntent. e.g the reason behind the error failure if the status is marked as
109-
* {@code errored}.
110-
*/
105+
/** Status details for a SettlementAllocationIntent in {@code errored} state. */
111106
@Getter
112107
@Setter
113108
@EqualsAndHashCode(callSuper = false)

src/main/java/com/stripe/model/v2/payments/SettlementAllocationIntentSplit.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
@Setter
1515
@EqualsAndHashCode(callSuper = false)
1616
public class SettlementAllocationIntentSplit extends StripeObject implements HasId {
17-
/** The ID of the account that will be used for the debit/credit. */
17+
/** The account id against which the SettlementAllocationIntentSplit should be settled. */
1818
@SerializedName("account")
1919
String account;
2020

@@ -97,21 +97,21 @@ public static class Amount extends StripeObject {
9797
@Setter
9898
@EqualsAndHashCode(callSuper = false)
9999
public static class Flow extends StripeObject {
100-
/** If applicable, the ID of the OutboundPayment that created this Transaction. */
100+
/** If applicable, the ID of the OutboundPayment that created this transaction. */
101101
@SerializedName("outbound_payment")
102102
String outboundPayment;
103103

104-
/** If applicable, the ID of the OutboundTransfer that created this Transaction. */
104+
/** If applicable, the ID of the OutboundTransfer that created this transaction. */
105105
@SerializedName("outbound_transfer")
106106
String outboundTransfer;
107107

108-
/** If applicable, the ID of the ReceivedCredit that created this Transaction. */
108+
/** If applicable, the ID of the ReceivedCredit that created this transaction. */
109109
@SerializedName("received_credit")
110110
String receivedCredit;
111111

112112
/**
113-
* Type of the flow linked to the transaction which settled the split. The field matching this
114-
* value will contain the ID of the flow.
113+
* Type of the flow linked to the transaction which settled the SettlementAllocationIntentSplit.
114+
* The field matching this value will contain the ID of the flow.
115115
*
116116
* <p>One of {@code outbound_payment}, {@code outbound_transfer}, or {@code received_credit}.
117117
*/

0 commit comments

Comments
 (0)