Skip to content

Commit 562c8cb

Browse files
Merge pull request #1926 from stripe/latest-codegen-beta
Update generated code for beta
2 parents 8bb622a + c56f325 commit 562c8cb

Some content is hidden

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

44 files changed

+1085
-165
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1370
1+
v1384

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -914,6 +914,14 @@ public static class Capabilities extends StripeObject {
914914
@SerializedName("au_becs_debit_payments")
915915
String auBecsDebitPayments;
916916

917+
/**
918+
* The status of the automatic_indirect_tax capability of the account.
919+
*
920+
* <p>One of {@code active}, {@code inactive}, or {@code pending}.
921+
*/
922+
@SerializedName("automatic_indirect_tax")
923+
String automaticIndirectTax;
924+
917925
/**
918926
* The status of the Bacs Direct Debits payments capability of the account, or whether the
919927
* account can directly process Bacs Direct Debits charges.

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,13 @@ public class BalanceTransaction extends ApiResource implements HasId {
128128
* payment_failure_refund}, {@code payment_network_reserve_hold}, {@code
129129
* payment_network_reserve_release}, {@code payment_refund}, {@code payment_reversal}, {@code
130130
* payment_unreconciled}, {@code payout}, {@code payout_cancel}, {@code payout_failure}, {@code
131-
* refund}, {@code refund_failure}, {@code reserve_transaction}, {@code reserved_funds}, {@code
132-
* stripe_fee}, {@code stripe_fx_fee}, {@code tax_fee}, {@code topup}, {@code topup_reversal},
133-
* {@code transfer}, {@code transfer_cancel}, {@code transfer_failure}, or {@code
134-
* transfer_refund}. Learn more about <a
135-
* href="https://stripe.com/docs/reports/balance-transaction-types">balance transaction types and
136-
* what they represent</a>. To classify transactions for accounting purposes, consider {@code
137-
* reporting_category} instead.
131+
* payout_minimum_balance_hold}, {@code payout_minimum_balance_release}, {@code refund}, {@code
132+
* refund_failure}, {@code reserve_transaction}, {@code reserved_funds}, {@code stripe_fee},
133+
* {@code stripe_fx_fee}, {@code tax_fee}, {@code topup}, {@code topup_reversal}, {@code
134+
* transfer}, {@code transfer_cancel}, {@code transfer_failure}, or {@code transfer_refund}. Learn
135+
* more about <a href="https://stripe.com/docs/reports/balance-transaction-types">balance
136+
* transaction types and what they represent</a>. To classify transactions for accounting
137+
* purposes, consider {@code reporting_category} instead.
138138
*
139139
* <p>One of {@code adjustment}, {@code advance}, {@code advance_funding}, {@code
140140
* anticipation_repayment}, {@code application_fee}, {@code application_fee_refund}, {@code
@@ -145,10 +145,10 @@ public class BalanceTransaction extends ApiResource implements HasId {
145145
* payment_failure_refund}, {@code payment_network_reserve_hold}, {@code
146146
* payment_network_reserve_release}, {@code payment_refund}, {@code payment_reversal}, {@code
147147
* payment_unreconciled}, {@code payout}, {@code payout_cancel}, {@code payout_failure}, {@code
148-
* refund}, {@code refund_failure}, {@code reserve_transaction}, {@code reserved_funds}, {@code
149-
* stripe_fee}, {@code stripe_fx_fee}, {@code tax_fee}, {@code topup}, {@code topup_reversal},
150-
* {@code transfer}, {@code transfer_cancel}, {@code transfer_failure}, or {@code
151-
* transfer_refund}.
148+
* payout_minimum_balance_hold}, {@code payout_minimum_balance_release}, {@code refund}, {@code
149+
* refund_failure}, {@code reserve_transaction}, {@code reserved_funds}, {@code stripe_fee},
150+
* {@code stripe_fx_fee}, {@code tax_fee}, {@code topup}, {@code topup_reversal}, {@code
151+
* transfer}, {@code transfer_cancel}, {@code transfer_failure}, or {@code transfer_refund}.
152152
*/
153153
@SerializedName("type")
154154
String type;

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2516,6 +2516,15 @@ public static class AmountsDue extends StripeObject {
25162516
@Setter
25172517
@EqualsAndHashCode(callSuper = false)
25182518
public static class AutomaticTax extends StripeObject {
2519+
/**
2520+
* If Stripe disabled automatic tax, this enum describes why.
2521+
*
2522+
* <p>One of {@code finalization_requires_location_inputs}, or {@code
2523+
* finalization_system_error}.
2524+
*/
2525+
@SerializedName("disabled_reason")
2526+
String disabledReason;
2527+
25192528
/**
25202529
* Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice
25212530
* items (invoice items with manually specified <a

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1637,7 +1637,15 @@ public static class SepaDebit extends StripeObject {
16371637
@Getter
16381638
@Setter
16391639
@EqualsAndHashCode(callSuper = false)
1640-
public static class MandateOptions extends StripeObject {}
1640+
public static class MandateOptions extends StripeObject {
1641+
/**
1642+
* Prefix used to generate the Mandate reference. Must be at most 12 characters long.
1643+
* Must consist of only uppercase letters, numbers, spaces, or the following special
1644+
* characters: '/', '_', '-', '&amp;', '.'. Cannot begin with 'STRIPE'.
1645+
*/
1646+
@SerializedName("reference_prefix")
1647+
String referencePrefix;
1648+
}
16411649
}
16421650

16431651
/**

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

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3535,7 +3535,15 @@ public static class BacsDebit extends StripeObject {
35353535
@Getter
35363536
@Setter
35373537
@EqualsAndHashCode(callSuper = false)
3538-
public static class MandateOptions extends StripeObject {}
3538+
public static class MandateOptions extends StripeObject {
3539+
/**
3540+
* Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
3541+
* consist of only uppercase letters, numbers, spaces, or the following special characters:
3542+
* '/', '_', '-', '&amp;', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
3543+
*/
3544+
@SerializedName("reference_prefix")
3545+
String referencePrefix;
3546+
}
35393547
}
35403548

35413549
/**
@@ -5388,7 +5396,15 @@ public static class SepaDebit extends StripeObject {
53885396
@Getter
53895397
@Setter
53905398
@EqualsAndHashCode(callSuper = false)
5391-
public static class MandateOptions extends StripeObject {}
5399+
public static class MandateOptions extends StripeObject {
5400+
/**
5401+
* Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
5402+
* consist of only uppercase letters, numbers, spaces, or the following special characters:
5403+
* '/', '_', '-', '&amp;', '.'. Cannot begin with 'STRIPE'.
5404+
*/
5405+
@SerializedName("reference_prefix")
5406+
String referencePrefix;
5407+
}
53925408
}
53935409

53945410
/**

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,6 +1032,15 @@ public static class AppliesTo extends StripeObject {
10321032
@Setter
10331033
@EqualsAndHashCode(callSuper = false)
10341034
public static class AutomaticTax extends StripeObject {
1035+
/**
1036+
* If Stripe disabled automatic tax, this enum describes why.
1037+
*
1038+
* <p>One of {@code finalization_requires_location_inputs}, or {@code
1039+
* finalization_system_error}.
1040+
*/
1041+
@SerializedName("disabled_reason")
1042+
String disabledReason;
1043+
10351044
/**
10361045
* Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice
10371046
* items (invoice items with manually specified <a

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,14 @@ public void setOnBehalfOfObject(Account expandableObject) {
455455
@Setter
456456
@EqualsAndHashCode(callSuper = false)
457457
public static class AutomaticTax extends StripeObject {
458+
/**
459+
* If Stripe disabled automatic tax, this enum describes why.
460+
*
461+
* <p>Equal to {@code requires_location_inputs}.
462+
*/
463+
@SerializedName("disabled_reason")
464+
String disabledReason;
465+
458466
/** Whether Stripe automatically computes tax on invoices created during this phase. */
459467
@SerializedName("enabled")
460468
Boolean enabled;
@@ -1130,6 +1138,14 @@ public static class DiscountEnd extends StripeObject {
11301138
@Setter
11311139
@EqualsAndHashCode(callSuper = false)
11321140
public static class AutomaticTax extends StripeObject {
1141+
/**
1142+
* If Stripe disabled automatic tax, this enum describes why.
1143+
*
1144+
* <p>Equal to {@code requires_location_inputs}.
1145+
*/
1146+
@SerializedName("disabled_reason")
1147+
String disabledReason;
1148+
11331149
/** Whether Stripe automatically computes tax on invoices created during this phase. */
11341150
@SerializedName("enabled")
11351151
Boolean enabled;

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

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,7 +1127,15 @@ public static class BacsDebit extends StripeObject {
11271127
@Getter
11281128
@Setter
11291129
@EqualsAndHashCode(callSuper = false)
1130-
public static class MandateOptions extends StripeObject {}
1130+
public static class MandateOptions extends StripeObject {
1131+
/**
1132+
* Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
1133+
* consist of only uppercase letters, numbers, spaces, or the following special characters:
1134+
* '/', '_', '-', '&amp;', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
1135+
*/
1136+
@SerializedName("reference_prefix")
1137+
String referencePrefix;
1138+
}
11311139
}
11321140

11331141
/**
@@ -1391,7 +1399,15 @@ public static class SepaDebit extends StripeObject {
13911399
@Getter
13921400
@Setter
13931401
@EqualsAndHashCode(callSuper = false)
1394-
public static class MandateOptions extends StripeObject {}
1402+
public static class MandateOptions extends StripeObject {
1403+
/**
1404+
* Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
1405+
* consist of only uppercase letters, numbers, spaces, or the following special characters:
1406+
* '/', '_', '-', '&amp;', '.'. Cannot begin with 'STRIPE'.
1407+
*/
1408+
@SerializedName("reference_prefix")
1409+
String referencePrefix;
1410+
}
13951411
}
13961412

13971413
/**

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,6 +1285,14 @@ public Subscription update(SubscriptionUpdateParams params, RequestOptions optio
12851285
@Setter
12861286
@EqualsAndHashCode(callSuper = false)
12871287
public static class AutomaticTax extends StripeObject {
1288+
/**
1289+
* If Stripe disabled automatic tax, this enum describes why.
1290+
*
1291+
* <p>Equal to {@code requires_location_inputs}.
1292+
*/
1293+
@SerializedName("disabled_reason")
1294+
String disabledReason;
1295+
12881296
/** Whether Stripe automatically computes tax on this subscription. */
12891297
@SerializedName("enabled")
12901298
Boolean enabled;

0 commit comments

Comments
 (0)