Skip to content

Commit e065f77

Browse files
Update generated code for v2254 and
1 parent 0b2da4c commit e065f77

91 files changed

Lines changed: 6607 additions & 561 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
505d252427d8aaae5b38486880ba3550b08958ec
1+
5214632d48fa0ade071cbbe4412e43790abd4438

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2253
1+
v2254

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -920,6 +920,15 @@ public static class Capabilities extends StripeObject {
920920
@SerializedName("amazon_pay_payments")
921921
String amazonPayPayments;
922922

923+
/**
924+
* The status of the {@code app_distribution} capability of the account, or whether the platform
925+
* can distribute apps to other accounts.
926+
*
927+
* <p>One of {@code active}, {@code inactive}, or {@code pending}.
928+
*/
929+
@SerializedName("app_distribution")
930+
String appDistribution;
931+
923932
/**
924933
* The status of the BECS Direct Debit (AU) payments capability of the account, or whether the
925934
* account can directly process BECS Direct Debit (AU) charges.
@@ -1430,6 +1439,15 @@ public static class Capabilities extends StripeObject {
14301439
@SerializedName("stripe_balance_payments")
14311440
String stripeBalancePayments;
14321441

1442+
/**
1443+
* The status of the Sunbit capability of the account, or whether the account can directly
1444+
* process Sunbit payments.
1445+
*
1446+
* <p>One of {@code active}, {@code inactive}, or {@code pending}.
1447+
*/
1448+
@SerializedName("sunbit_payments")
1449+
String sunbitPayments;
1450+
14331451
/**
14341452
* The status of the Swish capability of the account, or whether the account can directly
14351453
* process Swish payments.

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

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ public static class Components extends StripeObject {
140140
@SerializedName("agentic_commerce_settings")
141141
AgenticCommerceSettings agenticCommerceSettings;
142142

143+
@SerializedName("balance_report")
144+
BalanceReport balanceReport;
145+
143146
@SerializedName("balances")
144147
Balances balances;
145148

@@ -228,6 +231,9 @@ public static class Components extends StripeObject {
228231
@SerializedName("payout_details")
229232
PayoutDetails payoutDetails;
230233

234+
@SerializedName("payout_reconciliation_report")
235+
PayoutReconciliationReport payoutReconciliationReport;
236+
231237
@SerializedName("payouts")
232238
Payouts payouts;
233239

@@ -369,6 +375,31 @@ public static class AgenticCommerceSettings extends StripeObject {
369375
public static class Features extends StripeObject {}
370376
}
371377

378+
/**
379+
* For more details about BalanceReport, please refer to the <a
380+
* href="https://docs.stripe.com/api">API Reference.</a>
381+
*/
382+
@Getter
383+
@Setter
384+
@EqualsAndHashCode(callSuper = false)
385+
public static class BalanceReport extends StripeObject {
386+
/** Whether the embedded component is enabled. */
387+
@SerializedName("enabled")
388+
Boolean enabled;
389+
390+
@SerializedName("features")
391+
Features features;
392+
393+
/**
394+
* For more details about Features, please refer to the <a
395+
* href="https://docs.stripe.com/api">API Reference.</a>
396+
*/
397+
@Getter
398+
@Setter
399+
@EqualsAndHashCode(callSuper = false)
400+
public static class Features extends StripeObject {}
401+
}
402+
372403
/**
373404
* For more details about Balances, please refer to the <a
374405
* href="https://docs.stripe.com/api">API Reference.</a>
@@ -1162,6 +1193,31 @@ public static class PayoutDetails extends StripeObject {
11621193
public static class Features extends StripeObject {}
11631194
}
11641195

1196+
/**
1197+
* For more details about PayoutReconciliationReport, please refer to the <a
1198+
* href="https://docs.stripe.com/api">API Reference.</a>
1199+
*/
1200+
@Getter
1201+
@Setter
1202+
@EqualsAndHashCode(callSuper = false)
1203+
public static class PayoutReconciliationReport extends StripeObject {
1204+
/** Whether the embedded component is enabled. */
1205+
@SerializedName("enabled")
1206+
Boolean enabled;
1207+
1208+
@SerializedName("features")
1209+
Features features;
1210+
1211+
/**
1212+
* For more details about Features, please refer to the <a
1213+
* href="https://docs.stripe.com/api">API Reference.</a>
1214+
*/
1215+
@Getter
1216+
@Setter
1217+
@EqualsAndHashCode(callSuper = false)
1218+
public static class Features extends StripeObject {}
1219+
}
1220+
11651221
/**
11661222
* For more details about Payouts, please refer to the <a href="https://docs.stripe.com/api">API
11671223
* Reference.</a>

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ public class BalanceTransaction extends ApiResource implements HasId {
131131
* Transaction type: {@code adjustment}, {@code advance}, {@code advance_funding}, {@code
132132
* anticipation_repayment}, {@code application_fee}, {@code application_fee_refund}, {@code
133133
* charge}, {@code climate_order_purchase}, {@code climate_order_refund}, {@code
134-
* connect_collection_transfer}, {@code contribution}, {@code issuing_authorization_hold}, {@code
134+
* connect_collection_transfer}, {@code contribution}, {@code inbound_transfer}, {@code
135+
* inbound_transfer_reversal}, {@code issuing_authorization_hold}, {@code
135136
* issuing_authorization_release}, {@code issuing_dispute}, {@code issuing_transaction}, {@code
136137
* obligation_outbound}, {@code obligation_reversal_inbound}, {@code payment}, {@code
137138
* payment_failure_refund}, {@code payment_network_reserve_hold}, {@code
@@ -142,17 +143,18 @@ public class BalanceTransaction extends ApiResource implements HasId {
142143
* {@code reserve_release}, {@code stripe_fee}, {@code stripe_fx_fee}, {@code
143144
* stripe_balance_payment_debit}, {@code stripe_balance_payment_debit_reversal}, {@code tax_fee},
144145
* {@code topup}, {@code topup_reversal}, {@code transfer}, {@code transfer_cancel}, {@code
145-
* transfer_failure}, or {@code transfer_refund}. Learn more about <a
146+
* transfer_failure}, {@code transfer_refund}, or {@code fee_credit_funding}. Learn more about <a
146147
* href="https://stripe.com/docs/reports/balance-transaction-types">balance transaction types and
147148
* what they represent</a>. To classify transactions for accounting purposes, consider {@code
148149
* reporting_category} instead.
149150
*
150151
* <p>One of {@code adjustment}, {@code advance}, {@code advance_funding}, {@code
151152
* anticipation_repayment}, {@code application_fee}, {@code application_fee_refund}, {@code
152153
* charge}, {@code climate_order_purchase}, {@code climate_order_refund}, {@code
153-
* connect_collection_transfer}, {@code contribution}, {@code issuing_authorization_hold}, {@code
154-
* issuing_authorization_release}, {@code issuing_dispute}, {@code issuing_transaction}, {@code
155-
* obligation_outbound}, {@code obligation_reversal_inbound}, {@code payment}, {@code
154+
* connect_collection_transfer}, {@code contribution}, {@code fee_credit_funding}, {@code
155+
* inbound_transfer}, {@code inbound_transfer_reversal}, {@code issuing_authorization_hold},
156+
* {@code issuing_authorization_release}, {@code issuing_dispute}, {@code issuing_transaction},
157+
* {@code obligation_outbound}, {@code obligation_reversal_inbound}, {@code payment}, {@code
156158
* payment_failure_refund}, {@code payment_network_reserve_hold}, {@code
157159
* payment_network_reserve_release}, {@code payment_refund}, {@code payment_reversal}, {@code
158160
* payment_unreconciled}, {@code payout}, {@code payout_cancel}, {@code payout_failure}, {@code
@@ -331,7 +333,7 @@ public static class FeeDetail extends StripeObject {
331333

332334
/**
333335
* Type of the fee, one of: {@code application_fee}, {@code payment_method_passthrough_fee},
334-
* {@code stripe_fee} or {@code tax}.
336+
* {@code stripe_fee}, {@code tax}, or {@code withheld_tax}.
335337
*/
336338
@SerializedName("type")
337339
String type;

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

Lines changed: 38 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,6 +1331,9 @@ public static class PaymentMethodDetails extends StripeObject {
13311331
@SerializedName("stripe_balance")
13321332
StripeBalance stripeBalance;
13331333

1334+
@SerializedName("sunbit")
1335+
Sunbit sunbit;
1336+
13341337
@SerializedName("swish")
13351338
Swish swish;
13361339

@@ -1478,17 +1481,11 @@ public static class AcssDebit extends StripeObject {
14781481
@Setter
14791482
@EqualsAndHashCode(callSuper = false)
14801483
public static class Affirm extends StripeObject {
1481-
/**
1482-
* ID of the <a href="https://docs.stripe.com/api/terminal/locations">location</a> that this
1483-
* transaction's reader is assigned to.
1484-
*/
1484+
/** ID of the location that this reader is assigned to. */
14851485
@SerializedName("location")
14861486
String location;
14871487

1488-
/**
1489-
* ID of the <a href="https://docs.stripe.com/api/terminal/readers">reader</a> this
1490-
* transaction was made on.
1491-
*/
1488+
/** ID of the reader this transaction was made on. */
14921489
@SerializedName("reader")
14931490
String reader;
14941491

@@ -1509,7 +1506,7 @@ public static class AfterpayClearpay extends StripeObject {
15091506
@SerializedName("order_id")
15101507
String orderId;
15111508

1512-
/** Order identifier shown to the merchant in Afterpays online portal. */
1509+
/** Order identifier shown to the merchant in Afterpay's online portal. */
15131510
@SerializedName("reference")
15141511
String reference;
15151512
}
@@ -2910,7 +2907,7 @@ public static class Crypto extends StripeObject {
29102907
/**
29112908
* The token currency that the transaction was sent with.
29122909
*
2913-
* <p>One of {@code usdc}, {@code usdg}, or {@code usdp}.
2910+
* <p>One of {@code phantom_cash}, {@code usdc}, {@code usdg}, {@code usdp}, or {@code usdt}.
29142911
*/
29152912
@SerializedName("token_currency")
29162913
String tokenCurrency;
@@ -3022,6 +3019,10 @@ public static class GiftCard extends StripeObject {
30223019
@SerializedName("first6")
30233020
String first6;
30243021

3022+
/** The last four digits of the gift card number. */
3023+
@SerializedName("last4")
3024+
String last4;
3025+
30253026
/** The transaction ID from the gift card processor. */
30263027
@SerializedName("transaction_id")
30273028
String transactionId;
@@ -3477,6 +3478,13 @@ public static class KakaoPay extends StripeObject {
34773478
@Setter
34783479
@EqualsAndHashCode(callSuper = false)
34793480
public static class Klarna extends StripeObject {
3481+
/**
3482+
* ID of the <a href="https://docs.stripe.com/api/terminal/locations">location</a> that this
3483+
* transaction's reader is assigned to.
3484+
*/
3485+
@SerializedName("location")
3486+
String location;
3487+
34803488
/** The payer details for this transaction. */
34813489
@SerializedName("payer_details")
34823490
PayerDetails payerDetails;
@@ -3502,6 +3510,13 @@ public static class Klarna extends StripeObject {
35023510
@SerializedName("preferred_locale")
35033511
String preferredLocale;
35043512

3513+
/**
3514+
* ID of the <a href="https://docs.stripe.com/api/terminal/readers">reader</a> this
3515+
* transaction was made on.
3516+
*/
3517+
@SerializedName("reader")
3518+
String reader;
3519+
35053520
/**
35063521
* For more details about PayerDetails, please refer to the <a
35073522
* href="https://docs.stripe.com/api">API Reference.</a>
@@ -4336,6 +4351,19 @@ public static class StripeBalance extends StripeObject {
43364351
String account;
43374352
}
43384353

4354+
/**
4355+
* For more details about Sunbit, please refer to the <a href="https://docs.stripe.com/api">API
4356+
* Reference.</a>
4357+
*/
4358+
@Getter
4359+
@Setter
4360+
@EqualsAndHashCode(callSuper = false)
4361+
public static class Sunbit extends StripeObject {
4362+
/** The Sunbit transaction ID associated with this payment. */
4363+
@SerializedName("transaction_id")
4364+
String transactionId;
4365+
}
4366+
43394367
/**
43404368
* For more details about Swish, please refer to the <a href="https://docs.stripe.com/api">API
43414369
* Reference.</a>

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

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,9 @@ public static class PaymentMethodPreview extends StripeObject {
455455
@SerializedName("stripe_balance")
456456
StripeBalance stripeBalance;
457457

458+
@SerializedName("sunbit")
459+
Sunbit sunbit;
460+
458461
@SerializedName("swish")
459462
Swish swish;
460463

@@ -477,8 +480,8 @@ public static class PaymentMethodPreview extends StripeObject {
477480
* pay_by_bank}, {@code payco}, {@code paynow}, {@code paypal}, {@code paypay}, {@code payto},
478481
* {@code pix}, {@code promptpay}, {@code qris}, {@code rechnung}, {@code revolut_pay}, {@code
479482
* samsung_pay}, {@code satispay}, {@code sepa_debit}, {@code shopeepay}, {@code sofort}, {@code
480-
* stripe_balance}, {@code swish}, {@code twint}, {@code upi}, {@code us_bank_account}, {@code
481-
* wechat_pay}, or {@code zip}.
483+
* stripe_balance}, {@code sunbit}, {@code swish}, {@code twint}, {@code upi}, {@code
484+
* us_bank_account}, {@code wechat_pay}, or {@code zip}.
482485
*/
483486
@SerializedName("type")
484487
String type;
@@ -2491,6 +2494,15 @@ public static class StripeBalance extends StripeObject {
24912494
String account;
24922495
}
24932496

2497+
/**
2498+
* For more details about Sunbit, please refer to the <a href="https://docs.stripe.com/api">API
2499+
* Reference.</a>
2500+
*/
2501+
@Getter
2502+
@Setter
2503+
@EqualsAndHashCode(callSuper = false)
2504+
public static class Sunbit extends StripeObject {}
2505+
24942506
/**
24952507
* For more details about Swish, please refer to the <a href="https://docs.stripe.com/api">API
24962508
* Reference.</a>

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

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,27 @@ public static class TotalTax extends StripeObject {
949949
public static class TaxRateDetails extends StripeObject {
950950
/** ID of the tax rate. */
951951
@SerializedName("tax_rate")
952-
String taxRate;
952+
@Getter(lombok.AccessLevel.NONE)
953+
@Setter(lombok.AccessLevel.NONE)
954+
ExpandableField<TaxRate> taxRate;
955+
956+
/** Get ID of expandable {@code taxRate} object. */
957+
public String getTaxRate() {
958+
return (this.taxRate != null) ? this.taxRate.getId() : null;
959+
}
960+
961+
public void setTaxRate(String id) {
962+
this.taxRate = ApiResource.setExpandableFieldId(id, this.taxRate);
963+
}
964+
965+
/** Get expanded {@code taxRate}. */
966+
public TaxRate getTaxRateObject() {
967+
return (this.taxRate != null) ? this.taxRate.getExpanded() : null;
968+
}
969+
970+
public void setTaxRateObject(TaxRate expandableObject) {
971+
this.taxRate = new ExpandableField<TaxRate>(expandableObject.getId(), expandableObject);
972+
}
953973
}
954974
}
955975

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

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,27 @@ public static class Tax extends StripeObject {
280280
public static class TaxRateDetails extends StripeObject {
281281
/** ID of the tax rate. */
282282
@SerializedName("tax_rate")
283-
String taxRate;
283+
@Getter(lombok.AccessLevel.NONE)
284+
@Setter(lombok.AccessLevel.NONE)
285+
ExpandableField<TaxRate> taxRate;
286+
287+
/** Get ID of expandable {@code taxRate} object. */
288+
public String getTaxRate() {
289+
return (this.taxRate != null) ? this.taxRate.getId() : null;
290+
}
291+
292+
public void setTaxRate(String id) {
293+
this.taxRate = ApiResource.setExpandableFieldId(id, this.taxRate);
294+
}
295+
296+
/** Get expanded {@code taxRate}. */
297+
public TaxRate getTaxRateObject() {
298+
return (this.taxRate != null) ? this.taxRate.getExpanded() : null;
299+
}
300+
301+
public void setTaxRateObject(TaxRate expandableObject) {
302+
this.taxRate = new ExpandableField<TaxRate>(expandableObject.getId(), expandableObject);
303+
}
284304
}
285305
}
286306

0 commit comments

Comments
 (0)