Skip to content

Commit 26c7670

Browse files
Update generated code for v2204 and
1 parent fd83c3e commit 26c7670

38 files changed

Lines changed: 162 additions & 3177 deletions

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
359a73f6c36d82031889fe905480eb840c882be1
1+
273184f052dd3c191b1993098365d0c2437d2cb4

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

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import com.google.gson.annotations.SerializedName;
55
import com.stripe.model.v2.core.Event;
6+
import com.stripe.v2.Amount;
67
import java.time.Instant;
78
import lombok.Getter;
89
import lombok.Setter;
@@ -48,23 +49,7 @@ public static final class Impact {
4849
Long impactedRequests;
4950
/** Estimated aggregated amount for the impacted requests. */
5051
@SerializedName("realized_fraud_amount")
51-
RealizedFraudAmount realizedFraudAmount;
52-
53-
public static final class RealizedFraudAmount {
54-
/**
55-
* Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
56-
* code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
57-
* currency</a>.
58-
*/
59-
@SerializedName("currency")
60-
String currency;
61-
/**
62-
* A non-negative integer representing how much to charge in the <a
63-
* href="https://docs.stripe.com/currencies#minor-units">smallest currency unit</a>.
64-
*/
65-
@SerializedName("value")
66-
Long value;
67-
}
52+
Amount realizedFraudAmount;
6853
}
6954
}
7055
}

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

Lines changed: 3 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import com.google.gson.annotations.SerializedName;
55
import com.stripe.model.v2.core.Event;
6+
import com.stripe.v2.Amount;
67
import java.time.Instant;
78
import lombok.Getter;
89
import lombok.Setter;
@@ -32,48 +33,16 @@ public static final class EventData {
3233
public static final class Impact {
3334
/** Estimated aggregated amount for the approved requests. */
3435
@SerializedName("approved_amount")
35-
ApprovedAmount approvedAmount;
36+
Amount approvedAmount;
3637
/** The number of approved requests which are impacted. */
3738
@SerializedName("approved_impacted_requests")
3839
Long approvedImpactedRequests;
3940
/** Estimated aggregated amount for the declined requests. */
4041
@SerializedName("declined_amount")
41-
DeclinedAmount declinedAmount;
42+
Amount declinedAmount;
4243
/** The number of declined requests which are impacted. */
4344
@SerializedName("declined_impacted_requests")
4445
Long declinedImpactedRequests;
45-
46-
public static final class ApprovedAmount {
47-
/**
48-
* Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
49-
* code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
50-
* currency</a>.
51-
*/
52-
@SerializedName("currency")
53-
String currency;
54-
/**
55-
* A non-negative integer representing how much to charge in the <a
56-
* href="https://docs.stripe.com/currencies#minor-units">smallest currency unit</a>.
57-
*/
58-
@SerializedName("value")
59-
Long value;
60-
}
61-
62-
public static final class DeclinedAmount {
63-
/**
64-
* Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
65-
* code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
66-
* currency</a>.
67-
*/
68-
@SerializedName("currency")
69-
String currency;
70-
/**
71-
* A non-negative integer representing how much to charge in the <a
72-
* href="https://docs.stripe.com/currencies#minor-units">smallest currency unit</a>.
73-
*/
74-
@SerializedName("value")
75-
Long value;
76-
}
7746
}
7847
}
7948
}

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

Lines changed: 3 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import com.google.gson.annotations.SerializedName;
55
import com.stripe.model.v2.core.Event;
6+
import com.stripe.v2.Amount;
67
import java.time.Instant;
78
import lombok.Getter;
89
import lombok.Setter;
@@ -35,48 +36,16 @@ public static final class EventData {
3536
public static final class Impact {
3637
/** Estimated aggregated amount for the approved requests. */
3738
@SerializedName("approved_amount")
38-
ApprovedAmount approvedAmount;
39+
Amount approvedAmount;
3940
/** The number of approved requests which are impacted. */
4041
@SerializedName("approved_impacted_requests")
4142
Long approvedImpactedRequests;
4243
/** Estimated aggregated amount for the declined requests. */
4344
@SerializedName("declined_amount")
44-
DeclinedAmount declinedAmount;
45+
Amount declinedAmount;
4546
/** The number of declined requests which are impacted. */
4647
@SerializedName("declined_impacted_requests")
4748
Long declinedImpactedRequests;
48-
49-
public static final class ApprovedAmount {
50-
/**
51-
* Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
52-
* code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
53-
* currency</a>.
54-
*/
55-
@SerializedName("currency")
56-
String currency;
57-
/**
58-
* A non-negative integer representing how much to charge in the <a
59-
* href="https://docs.stripe.com/currencies#minor-units">smallest currency unit</a>.
60-
*/
61-
@SerializedName("value")
62-
Long value;
63-
}
64-
65-
public static final class DeclinedAmount {
66-
/**
67-
* Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
68-
* code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
69-
* currency</a>.
70-
*/
71-
@SerializedName("currency")
72-
String currency;
73-
/**
74-
* A non-negative integer representing how much to charge in the <a
75-
* href="https://docs.stripe.com/currencies#minor-units">smallest currency unit</a>.
76-
*/
77-
@SerializedName("value")
78-
Long value;
79-
}
8049
}
8150
}
8251
}

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

Lines changed: 3 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import com.google.gson.annotations.SerializedName;
55
import com.stripe.model.v2.core.Event;
6+
import com.stripe.v2.Amount;
67
import java.time.Instant;
78
import lombok.Getter;
89
import lombok.Setter;
@@ -35,48 +36,16 @@ public static final class EventData {
3536
public static final class Impact {
3637
/** Estimated aggregated amount for the approved requests. */
3738
@SerializedName("approved_amount")
38-
ApprovedAmount approvedAmount;
39+
Amount approvedAmount;
3940
/** The number of approved requests which are impacted. */
4041
@SerializedName("approved_impacted_requests")
4142
Long approvedImpactedRequests;
4243
/** Estimated aggregated amount for the declined requests. */
4344
@SerializedName("declined_amount")
44-
DeclinedAmount declinedAmount;
45+
Amount declinedAmount;
4546
/** The number of declined requests which are impacted. */
4647
@SerializedName("declined_impacted_requests")
4748
Long declinedImpactedRequests;
48-
49-
public static final class ApprovedAmount {
50-
/**
51-
* Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
52-
* code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
53-
* currency</a>.
54-
*/
55-
@SerializedName("currency")
56-
String currency;
57-
/**
58-
* A non-negative integer representing how much to charge in the <a
59-
* href="https://docs.stripe.com/currencies#minor-units">smallest currency unit</a>.
60-
*/
61-
@SerializedName("value")
62-
Long value;
63-
}
64-
65-
public static final class DeclinedAmount {
66-
/**
67-
* Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
68-
* code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
69-
* currency</a>.
70-
*/
71-
@SerializedName("currency")
72-
String currency;
73-
/**
74-
* A non-negative integer representing how much to charge in the <a
75-
* href="https://docs.stripe.com/currencies#minor-units">smallest currency unit</a>.
76-
*/
77-
@SerializedName("value")
78-
Long value;
79-
}
8049
}
8150
}
8251
}

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

Lines changed: 3 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import com.google.gson.annotations.SerializedName;
55
import com.stripe.model.v2.core.Event;
6+
import com.stripe.v2.Amount;
67
import java.time.Instant;
78
import lombok.Getter;
89
import lombok.Setter;
@@ -35,48 +36,16 @@ public static final class EventData {
3536
public static final class Impact {
3637
/** Estimated aggregated amount for the approved requests. */
3738
@SerializedName("approved_amount")
38-
ApprovedAmount approvedAmount;
39+
Amount approvedAmount;
3940
/** The number of approved requests which are impacted. */
4041
@SerializedName("approved_impacted_requests")
4142
Long approvedImpactedRequests;
4243
/** Estimated aggregated amount for the declined requests. */
4344
@SerializedName("declined_amount")
44-
DeclinedAmount declinedAmount;
45+
Amount declinedAmount;
4546
/** The number of declined requests which are impacted. */
4647
@SerializedName("declined_impacted_requests")
4748
Long declinedImpactedRequests;
48-
49-
public static final class ApprovedAmount {
50-
/**
51-
* Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
52-
* code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
53-
* currency</a>.
54-
*/
55-
@SerializedName("currency")
56-
String currency;
57-
/**
58-
* A non-negative integer representing how much to charge in the <a
59-
* href="https://docs.stripe.com/currencies#minor-units">smallest currency unit</a>.
60-
*/
61-
@SerializedName("value")
62-
Long value;
63-
}
64-
65-
public static final class DeclinedAmount {
66-
/**
67-
* Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
68-
* code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
69-
* currency</a>.
70-
*/
71-
@SerializedName("currency")
72-
String currency;
73-
/**
74-
* A non-negative integer representing how much to charge in the <a
75-
* href="https://docs.stripe.com/currencies#minor-units">smallest currency unit</a>.
76-
*/
77-
@SerializedName("value")
78-
Long value;
79-
}
8049
}
8150
}
8251
}

src/main/java/com/stripe/model/v2/FinancialAddressGeneratedMicrodeposits.java

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import com.google.gson.annotations.SerializedName;
55
import com.stripe.model.StripeObject;
6+
import com.stripe.v2.Amount;
67
import java.util.List;
78
import lombok.EqualsAndHashCode;
89
import lombok.Getter;
@@ -18,7 +19,7 @@
1819
public class FinancialAddressGeneratedMicrodeposits extends StripeObject {
1920
/** The amounts of the microdeposits that were generated. */
2021
@SerializedName("amounts")
21-
List<FinancialAddressGeneratedMicrodeposits.Amount> amounts;
22+
List<Amount> amounts;
2223

2324
/**
2425
* Has the value {@code true} if the object exists in live mode or the value {@code false} if the
@@ -43,28 +44,4 @@ public class FinancialAddressGeneratedMicrodeposits extends StripeObject {
4344
*/
4445
@SerializedName("status")
4546
String status;
46-
47-
/**
48-
* For more details about Amount, please refer to the <a href="https://docs.stripe.com/api">API
49-
* Reference.</a>
50-
*/
51-
@Getter
52-
@Setter
53-
@EqualsAndHashCode(callSuper = false)
54-
public static class Amount extends StripeObject {
55-
/**
56-
* Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
57-
* code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
58-
* currency</a>.
59-
*/
60-
@SerializedName("currency")
61-
String currency;
62-
63-
/**
64-
* A non-negative integer representing how much to charge in the <a
65-
* href="https://docs.stripe.com/currencies#minor-units">smallest currency unit</a>.
66-
*/
67-
@SerializedName("value")
68-
Long value;
69-
}
7047
}

0 commit comments

Comments
 (0)