Skip to content

Commit b91d091

Browse files
Merge pull request #2171 from stripe/latest-codegen-private-preview
Update generated code for private-preview
2 parents 446fffd + 02bd834 commit b91d091

20 files changed

Lines changed: 32505 additions & 19816 deletions

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
49b1e23eef1a5004ed00987c41d5ec8447a19e27
1+
2feaeea9e3c2b01dd5b7e4092d8364af4bf1e740

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2189
1+
v2190

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ public static final class EventData {
2323
* Open Enum. The capability which had its status updated.
2424
*
2525
* <p>One of {@code commercial.celtic.charge_card}, {@code commercial.celtic.spend_card}, {@code
26-
* commercial.cross_river_bank.charge_card}, {@code commercial.cross_river_bank.spend_card},
27-
* {@code commercial.lead.prepaid_card}, {@code commercial.stripe.charge_card}, or {@code
28-
* commercial.stripe.prepaid_card}.
26+
* commercial.cross_river_bank.charge_card}, {@code commercial.cross_river_bank.prepaid_card},
27+
* {@code commercial.cross_river_bank.spend_card}, {@code commercial.fifth_third.charge_card},
28+
* {@code commercial.lead.prepaid_card}, {@code commercial.stripe.charge_card}, {@code
29+
* commercial.stripe.prepaid_card}, {@code consumer.celtic.revolving_credit_card}, {@code
30+
* consumer.cross_river_bank.prepaid_card}, or {@code consumer.lead.prepaid_card}.
2931
*/
3032
@SerializedName("updated_capability")
3133
String updatedCapability;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ public class BalanceTransaction extends ApiResource implements HasId {
4343
/**
4444
* The balance that this transaction impacts.
4545
*
46-
* <p>One of {@code issuing}, {@code payments}, {@code refund_and_dispute_prefunding}, {@code
47-
* risk_reserved}, or {@code transit}.
46+
* <p>One of {@code fee_credits}, {@code issuing}, {@code payments}, {@code
47+
* refund_and_dispute_prefunding}, {@code risk_reserved}, or {@code transit}.
4848
*/
4949
@SerializedName("balance_type")
5050
String balanceType;

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ public class Dispute extends ApiResource
3838
@SerializedName("amount")
3939
Long amount;
4040

41+
/**
42+
* The amount you want to contest, in the dispute's currency. Setting this to less than the full
43+
* dispute amount means accepting the loss on the remaining amount. If not specified, the entire
44+
* disputed amount is contested.
45+
*/
46+
@SerializedName("amount_to_counter")
47+
Long amountToCounter;
48+
4149
/**
4250
* List of zero, one, or two balance transactions that show funds withdrawn and reinstated to your
4351
* Stripe account as a result of this dispute.

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,9 @@ public final class EventDataClassLookup {
226226

227227
classLookup.put("radar.account_evaluation", com.stripe.model.radar.AccountEvaluation.class);
228228
classLookup.put("radar.early_fraud_warning", com.stripe.model.radar.EarlyFraudWarning.class);
229+
classLookup.put(
230+
"radar.issuing_authorization_evaluation",
231+
com.stripe.model.radar.IssuingAuthorizationEvaluation.class);
229232
classLookup.put("radar.payment_evaluation", com.stripe.model.radar.PaymentEvaluation.class);
230233
classLookup.put("radar.value_list", com.stripe.model.radar.ValueList.class);
231234
classLookup.put("radar.value_list_item", com.stripe.model.radar.ValueListItem.class);

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@ public class InvoiceItem extends ApiResource implements HasId, MetadataStore<Inv
9292
@SerializedName("discounts")
9393
List<ExpandableField<Discount>> discounts;
9494

95+
/**
96+
* Array of field names that can't be modified. Attempting to update a frozen field returns an
97+
* error.
98+
*/
99+
@SerializedName("frozen_fields")
100+
List<String> frozenFields;
101+
95102
/** Unique identifier for the object. */
96103
@Getter(onMethod_ = {@Override})
97104
@SerializedName("id")

0 commit comments

Comments
 (0)