@@ -38,21 +38,21 @@ public class Balance extends ApiResource {
3838 * currency and payment type can be found in the {@code source_types} property.
3939 */
4040 @ SerializedName ("available" )
41- List <Balance .Money > available ;
41+ List <Balance .Available > available ;
4242
4343 /**
4444 * Funds held due to negative balances on connected Custom accounts. The connect reserve balance
4545 * for each currency and payment type can be found in the {@code source_types} property.
4646 */
4747 @ SerializedName ("connect_reserved" )
48- List <Balance .Money > connectReserved ;
48+ List <Balance .ConnectReserved > connectReserved ;
4949
5050 /** Funds that can be paid out using Instant Payouts. */
5151 @ SerializedName ("instant_available" )
52- List <Balance .Money > instantAvailable ;
52+ List <Balance .InstantAvailable > instantAvailable ;
5353
5454 @ SerializedName ("issuing" )
55- Details issuing ;
55+ Issuing issuing ;
5656
5757 /**
5858 * Has the value {@code true} if the object exists in live mode or the value {@code false} if the
@@ -75,7 +75,7 @@ public class Balance extends ApiResource {
7575 * source_types} property.
7676 */
7777 @ SerializedName ("pending" )
78- List <Balance .Money > pending ;
78+ List <Balance .Pending > pending ;
7979
8080 /**
8181 * Retrieves the current account balance, based on the authentication that was used to make the
@@ -124,16 +124,164 @@ public static Balance retrieve(BalanceRetrieveParams params, RequestOptions opti
124124 @ Getter
125125 @ Setter
126126 @ EqualsAndHashCode (callSuper = false )
127- public static class Details extends StripeObject {
127+ public static class Available extends StripeObject {
128+ /** Balance amount. */
129+ @ SerializedName ("amount" )
130+ Long amount ;
131+
132+ /**
133+ * Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
134+ * code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
135+ * currency</a>.
136+ */
137+ @ SerializedName ("currency" )
138+ String currency ;
139+
140+ @ SerializedName ("source_types" )
141+ SourceTypes sourceTypes ;
142+
143+ @ Getter
144+ @ Setter
145+ @ EqualsAndHashCode (callSuper = false )
146+ public static class SourceTypes extends StripeObject {
147+ /** Amount for bank account. */
148+ @ SerializedName ("bank_account" )
149+ Long bankAccount ;
150+
151+ /** Amount for card. */
152+ @ SerializedName ("card" )
153+ Long card ;
154+
155+ /** Amount for FPX. */
156+ @ SerializedName ("fpx" )
157+ Long fpx ;
158+ }
159+ }
160+
161+ @ Getter
162+ @ Setter
163+ @ EqualsAndHashCode (callSuper = false )
164+ public static class ConnectReserved extends StripeObject {
165+ /** Balance amount. */
166+ @ SerializedName ("amount" )
167+ Long amount ;
168+
169+ /**
170+ * Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
171+ * code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
172+ * currency</a>.
173+ */
174+ @ SerializedName ("currency" )
175+ String currency ;
176+
177+ @ SerializedName ("source_types" )
178+ SourceTypes sourceTypes ;
179+
180+ @ Getter
181+ @ Setter
182+ @ EqualsAndHashCode (callSuper = false )
183+ public static class SourceTypes extends StripeObject {
184+ /** Amount for bank account. */
185+ @ SerializedName ("bank_account" )
186+ Long bankAccount ;
187+
188+ /** Amount for card. */
189+ @ SerializedName ("card" )
190+ Long card ;
191+
192+ /** Amount for FPX. */
193+ @ SerializedName ("fpx" )
194+ Long fpx ;
195+ }
196+ }
197+
198+ @ Getter
199+ @ Setter
200+ @ EqualsAndHashCode (callSuper = false )
201+ public static class InstantAvailable extends StripeObject {
202+ /** Balance amount. */
203+ @ SerializedName ("amount" )
204+ Long amount ;
205+
206+ /**
207+ * Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
208+ * code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
209+ * currency</a>.
210+ */
211+ @ SerializedName ("currency" )
212+ String currency ;
213+
214+ @ SerializedName ("source_types" )
215+ SourceTypes sourceTypes ;
216+
217+ @ Getter
218+ @ Setter
219+ @ EqualsAndHashCode (callSuper = false )
220+ public static class SourceTypes extends StripeObject {
221+ /** Amount for bank account. */
222+ @ SerializedName ("bank_account" )
223+ Long bankAccount ;
224+
225+ /** Amount for card. */
226+ @ SerializedName ("card" )
227+ Long card ;
228+
229+ /** Amount for FPX. */
230+ @ SerializedName ("fpx" )
231+ Long fpx ;
232+ }
233+ }
234+
235+ @ Getter
236+ @ Setter
237+ @ EqualsAndHashCode (callSuper = false )
238+ public static class Issuing extends StripeObject {
128239 /** Funds that are available for use. */
129240 @ SerializedName ("available" )
130- List <Balance .Money > available ;
241+ List <Balance .Issuing .Available > available ;
242+
243+ @ Getter
244+ @ Setter
245+ @ EqualsAndHashCode (callSuper = false )
246+ public static class Available extends StripeObject {
247+ /** Balance amount. */
248+ @ SerializedName ("amount" )
249+ Long amount ;
250+
251+ /**
252+ * Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
253+ * code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
254+ * currency</a>.
255+ */
256+ @ SerializedName ("currency" )
257+ String currency ;
258+
259+ @ SerializedName ("source_types" )
260+ SourceTypes sourceTypes ;
261+
262+ @ Getter
263+ @ Setter
264+ @ EqualsAndHashCode (callSuper = false )
265+ public static class SourceTypes extends StripeObject {
266+ /** Amount for bank account. */
267+ @ SerializedName ("bank_account" )
268+ Long bankAccount ;
269+
270+ /** Amount for card. */
271+ @ SerializedName ("card" )
272+ Long card ;
273+
274+ /** Amount for FPX. */
275+ @ SerializedName ("fpx" )
276+ Long fpx ;
277+ }
278+ }
131279 }
132280
133281 @ Getter
134282 @ Setter
135283 @ EqualsAndHashCode (callSuper = false )
136- public static class Money extends StripeObject {
284+ public static class Pending extends StripeObject {
137285 /** Balance amount. */
138286 @ SerializedName ("amount" )
139287 Long amount ;
0 commit comments