Skip to content

Commit 406010d

Browse files
Update generated code for v2127 and
1 parent ac0a498 commit 406010d

23 files changed

+1850
-89
lines changed

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
91ef4c6abe8dcdab3a855d81aa624693a6a4da9f
1+
5a4dfc50ddb97c7c9752d0fb45f598bd3f356e9b

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2125
1+
v2127

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

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

44
import com.google.gson.annotations.SerializedName;
55
import com.stripe.model.StripeObject;
6-
import com.stripe.v2.Amount;
76
import java.util.List;
87
import lombok.EqualsAndHashCode;
98
import lombok.Getter;
@@ -15,7 +14,7 @@
1514
public class FinancialAddressGeneratedMicrodeposits extends StripeObject {
1615
/** The amounts of the microdeposits that were generated. */
1716
@SerializedName("amounts")
18-
List<Amount> amounts;
17+
List<FinancialAddressGeneratedMicrodeposits.Amount> amounts;
1918

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

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

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import com.google.gson.annotations.SerializedName;
55
import com.stripe.model.HasId;
66
import com.stripe.model.StripeObject;
7-
import com.stripe.v2.Amount;
87
import java.time.Instant;
98
import java.util.List;
109
import java.util.Map;
@@ -5413,6 +5412,27 @@ public static class AnnualRevenue extends StripeObject {
54135412
*/
54145413
@SerializedName("fiscal_year_end")
54155414
String fiscalYearEnd;
5415+
5416+
/** A non-negative integer representing the amount in the smallest currency unit. */
5417+
@Getter
5418+
@Setter
5419+
@EqualsAndHashCode(callSuper = false)
5420+
public static class Amount extends StripeObject {
5421+
/**
5422+
* Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
5423+
* code</a>, in lowercase. Must be a <a
5424+
* href="https://stripe.com/docs/currencies">supported currency</a>.
5425+
*/
5426+
@SerializedName("currency")
5427+
String currency;
5428+
5429+
/**
5430+
* A non-negative integer representing how much to charge in the <a
5431+
* href="https://docs.stripe.com/currencies#minor-units">smallest currency unit</a>.
5432+
*/
5433+
@SerializedName("value")
5434+
Long value;
5435+
}
54165436
}
54175437

54185438
/** Documents that may be submitted to satisfy various informational requests. */
@@ -5777,6 +5797,27 @@ public static class MonthlyEstimatedRevenue extends StripeObject {
57775797
/** A non-negative integer representing the amount in the smallest currency unit. */
57785798
@SerializedName("amount")
57795799
Amount amount;
5800+
5801+
/** A non-negative integer representing the amount in the smallest currency unit. */
5802+
@Getter
5803+
@Setter
5804+
@EqualsAndHashCode(callSuper = false)
5805+
public static class Amount extends StripeObject {
5806+
/**
5807+
* Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
5808+
* code</a>, in lowercase. Must be a <a
5809+
* href="https://stripe.com/docs/currencies">supported currency</a>.
5810+
*/
5811+
@SerializedName("currency")
5812+
String currency;
5813+
5814+
/**
5815+
* A non-negative integer representing how much to charge in the <a
5816+
* href="https://docs.stripe.com/currencies#minor-units">smallest currency unit</a>.
5817+
*/
5818+
@SerializedName("value")
5819+
Long value;
5820+
}
57805821
}
57815822

57825823
/** The business registration address of the business entity in non latin script. */

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

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import com.google.gson.annotations.SerializedName;
55
import com.stripe.model.HasId;
66
import com.stripe.model.StripeObject;
7-
import com.stripe.v2.Amount;
87
import java.time.Instant;
98
import lombok.EqualsAndHashCode;
109
import lombok.Getter;
@@ -111,4 +110,25 @@ public static class AdjustedFlow extends StripeObject {
111110
@SerializedName("type")
112111
String type;
113112
}
113+
114+
/** The amount of the Adjustment. */
115+
@Getter
116+
@Setter
117+
@EqualsAndHashCode(callSuper = false)
118+
public static class Amount extends StripeObject {
119+
/**
120+
* Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
121+
* code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
122+
* currency</a>.
123+
*/
124+
@SerializedName("currency")
125+
String currency;
126+
127+
/**
128+
* A non-negative integer representing how much to charge in the <a
129+
* href="https://docs.stripe.com/currencies#minor-units">smallest currency unit</a>.
130+
*/
131+
@SerializedName("value")
132+
Long value;
133+
}
114134
}

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

Lines changed: 75 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import com.google.gson.annotations.SerializedName;
55
import com.stripe.model.HasId;
66
import com.stripe.model.StripeObject;
7-
import com.stripe.v2.Amount;
87
import java.time.Instant;
98
import java.util.List;
109
import java.util.Map;
@@ -118,15 +117,87 @@ public class FinancialAccount extends StripeObject implements HasId {
118117
public static class Balance extends StripeObject {
119118
/** Balance that can be used for money movement. */
120119
@SerializedName("available")
121-
Map<String, Amount> available;
120+
Map<String, FinancialAccount.Balance.Available> available;
122121

123122
/** Balance of inbound funds that will later transition to the {@code available} balance. */
124123
@SerializedName("inbound_pending")
125-
Map<String, Amount> inboundPending;
124+
Map<String, FinancialAccount.Balance.InboundPending> inboundPending;
126125

127126
/** Balance of funds that are being used for a pending outbound money movement. */
128127
@SerializedName("outbound_pending")
129-
Map<String, Amount> outboundPending;
128+
Map<String, FinancialAccount.Balance.OutboundPending> outboundPending;
129+
130+
/**
131+
* For more details about Available, please refer to the <a
132+
* href="https://docs.stripe.com/api">API Reference.</a>
133+
*/
134+
@Getter
135+
@Setter
136+
@EqualsAndHashCode(callSuper = false)
137+
public static class Available extends StripeObject {
138+
/**
139+
* Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
140+
* code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
141+
* currency</a>.
142+
*/
143+
@SerializedName("currency")
144+
String currency;
145+
146+
/**
147+
* A non-negative integer representing how much to charge in the <a
148+
* href="https://docs.stripe.com/currencies#minor-units">smallest currency unit</a>.
149+
*/
150+
@SerializedName("value")
151+
Long value;
152+
}
153+
154+
/**
155+
* For more details about InboundPending, please refer to the <a
156+
* href="https://docs.stripe.com/api">API Reference.</a>
157+
*/
158+
@Getter
159+
@Setter
160+
@EqualsAndHashCode(callSuper = false)
161+
public static class InboundPending extends StripeObject {
162+
/**
163+
* Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
164+
* code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
165+
* currency</a>.
166+
*/
167+
@SerializedName("currency")
168+
String currency;
169+
170+
/**
171+
* A non-negative integer representing how much to charge in the <a
172+
* href="https://docs.stripe.com/currencies#minor-units">smallest currency unit</a>.
173+
*/
174+
@SerializedName("value")
175+
Long value;
176+
}
177+
178+
/**
179+
* For more details about OutboundPending, please refer to the <a
180+
* href="https://docs.stripe.com/api">API Reference.</a>
181+
*/
182+
@Getter
183+
@Setter
184+
@EqualsAndHashCode(callSuper = false)
185+
public static class OutboundPending extends StripeObject {
186+
/**
187+
* Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
188+
* code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
189+
* currency</a>.
190+
*/
191+
@SerializedName("currency")
192+
String currency;
193+
194+
/**
195+
* A non-negative integer representing how much to charge in the <a
196+
* href="https://docs.stripe.com/currencies#minor-units">smallest currency unit</a>.
197+
*/
198+
@SerializedName("value")
199+
Long value;
200+
}
130201
}
131202

132203
/**

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

Lines changed: 65 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import com.google.gson.annotations.SerializedName;
55
import com.stripe.model.HasId;
66
import com.stripe.model.StripeObject;
7-
import com.stripe.v2.Amount;
87
import java.time.Instant;
98
import java.util.List;
109
import java.util.Map;
@@ -75,19 +74,61 @@ public class InboundTransfer extends StripeObject implements HasId {
7574
@SerializedName("transfer_history")
7675
List<InboundTransfer.TransferHistory> transferHistory;
7776

77+
/** The amount in specified currency that will land in the FinancialAccount balance. */
78+
@Getter
79+
@Setter
80+
@EqualsAndHashCode(callSuper = false)
81+
public static class Amount extends StripeObject {
82+
/**
83+
* Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
84+
* code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
85+
* currency</a>.
86+
*/
87+
@SerializedName("currency")
88+
String currency;
89+
90+
/**
91+
* A non-negative integer representing how much to charge in the <a
92+
* href="https://docs.stripe.com/currencies#minor-units">smallest currency unit</a>.
93+
*/
94+
@SerializedName("value")
95+
Long value;
96+
}
97+
7898
/** A nested object containing information about the origin of the InboundTransfer. */
7999
@Getter
80100
@Setter
81101
@EqualsAndHashCode(callSuper = false)
82102
public static class From extends StripeObject {
83103
/** The amount in specified currency that was debited from the Payment Method. */
84104
@SerializedName("debited")
85-
Amount debited;
105+
Debited debited;
86106

87107
/** The Payment Method object used to create the InboundTransfer. */
88108
@SerializedName("payment_method")
89109
PaymentMethod paymentMethod;
90110

111+
/** The amount in specified currency that was debited from the Payment Method. */
112+
@Getter
113+
@Setter
114+
@EqualsAndHashCode(callSuper = false)
115+
public static class Debited extends StripeObject {
116+
/**
117+
* Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
118+
* code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
119+
* currency</a>.
120+
*/
121+
@SerializedName("currency")
122+
String currency;
123+
124+
/**
125+
* A non-negative integer representing how much to charge in the <a
126+
* href="https://docs.stripe.com/currencies#minor-units">smallest currency unit</a>.
127+
*/
128+
@SerializedName("value")
129+
Long value;
130+
}
131+
91132
/** The Payment Method object used to create the InboundTransfer. */
92133
@Getter
93134
@Setter
@@ -113,11 +154,32 @@ public static class PaymentMethod extends StripeObject {
113154
public static class To extends StripeObject {
114155
/** The amount by which the FinancialAccount balance is credited. */
115156
@SerializedName("credited")
116-
Amount credited;
157+
Credited credited;
117158

118159
/** The FinancialAccount that funds will land in. */
119160
@SerializedName("financial_account")
120161
String financialAccount;
162+
163+
/** The amount by which the FinancialAccount balance is credited. */
164+
@Getter
165+
@Setter
166+
@EqualsAndHashCode(callSuper = false)
167+
public static class Credited extends StripeObject {
168+
/**
169+
* Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
170+
* code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
171+
* currency</a>.
172+
*/
173+
@SerializedName("currency")
174+
String currency;
175+
176+
/**
177+
* A non-negative integer representing how much to charge in the <a
178+
* href="https://docs.stripe.com/currencies#minor-units">smallest currency unit</a>.
179+
*/
180+
@SerializedName("value")
181+
Long value;
182+
}
121183
}
122184

123185
/**

0 commit comments

Comments
 (0)