@@ -81,6 +81,9 @@ public class Balance extends ApiResource {
8181 @ SerializedName ("refund_and_dispute_prefunding" )
8282 RefundAndDisputePrefunding refundAndDisputePrefunding ;
8383
84+ @ SerializedName ("transit_balances_total" )
85+ TransitBalancesTotal transitBalancesTotal ;
86+
8487 /**
8588 * Retrieves the current account balance, based on the authentication that was used to make the
8689 * request. For a sample request, see <a
@@ -597,10 +600,136 @@ public static class SourceTypes extends StripeObject {
597600 }
598601 }
599602
603+ /**
604+ * For more details about TransitBalancesTotal, please refer to the <a
605+ * href="https://docs.stripe.com/api">API Reference.</a>
606+ */
607+ @ Getter
608+ @ Setter
609+ @ EqualsAndHashCode (callSuper = false )
610+ public static class TransitBalancesTotal extends StripeObject {
611+ /** Funds that are available for use. */
612+ @ SerializedName ("available" )
613+ List <Balance .TransitBalancesTotal .Available > available ;
614+
615+ /** Funds that are pending. */
616+ @ SerializedName ("pending" )
617+ List <Balance .TransitBalancesTotal .Pending > pending ;
618+
619+ /**
620+ * For more details about Available, please refer to the <a
621+ * href="https://docs.stripe.com/api">API Reference.</a>
622+ */
623+ @ Getter
624+ @ Setter
625+ @ EqualsAndHashCode (callSuper = false )
626+ public static class Available extends StripeObject {
627+ /** Balance amount. */
628+ @ SerializedName ("amount" )
629+ Long amount ;
630+
631+ /**
632+ * Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
633+ * code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
634+ * currency</a>.
635+ */
636+ @ SerializedName ("currency" )
637+ String currency ;
638+
639+ @ SerializedName ("source_types" )
640+ SourceTypes sourceTypes ;
641+
642+ /**
643+ * For more details about SourceTypes, please refer to the <a
644+ * href="https://docs.stripe.com/api">API Reference.</a>
645+ */
646+ @ Getter
647+ @ Setter
648+ @ EqualsAndHashCode (callSuper = false )
649+ public static class SourceTypes extends StripeObject {
650+ /**
651+ * Amount coming from <a href="https://docs.stripe.com/ach-deprecated">legacy US ACH
652+ * payments</a>.
653+ */
654+ @ SerializedName ("bank_account" )
655+ Long bankAccount ;
656+
657+ /**
658+ * Amount coming from most payment methods, including cards as well as <a
659+ * href="https://docs.stripe.com/payments/bank-debits">non-legacy bank debits</a>.
660+ */
661+ @ SerializedName ("card" )
662+ Long card ;
663+
664+ /**
665+ * Amount coming from <a href="https://docs.stripe.com/payments/fpx">FPX</a>, a Malaysian
666+ * payment method.
667+ */
668+ @ SerializedName ("fpx" )
669+ Long fpx ;
670+ }
671+ }
672+
673+ /**
674+ * For more details about Pending, please refer to the <a href="https://docs.stripe.com/api">API
675+ * Reference.</a>
676+ */
677+ @ Getter
678+ @ Setter
679+ @ EqualsAndHashCode (callSuper = false )
680+ public static class Pending extends StripeObject {
681+ /** Balance amount. */
682+ @ SerializedName ("amount" )
683+ Long amount ;
684+
685+ /**
686+ * Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
687+ * code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
688+ * currency</a>.
689+ */
690+ @ SerializedName ("currency" )
691+ String currency ;
692+
693+ @ SerializedName ("source_types" )
694+ SourceTypes sourceTypes ;
695+
696+ /**
697+ * For more details about SourceTypes, please refer to the <a
698+ * href="https://docs.stripe.com/api">API Reference.</a>
699+ */
700+ @ Getter
701+ @ Setter
702+ @ EqualsAndHashCode (callSuper = false )
703+ public static class SourceTypes extends StripeObject {
704+ /**
705+ * Amount coming from <a href="https://docs.stripe.com/ach-deprecated">legacy US ACH
706+ * payments</a>.
707+ */
708+ @ SerializedName ("bank_account" )
709+ Long bankAccount ;
710+
711+ /**
712+ * Amount coming from most payment methods, including cards as well as <a
713+ * href="https://docs.stripe.com/payments/bank-debits">non-legacy bank debits</a>.
714+ */
715+ @ SerializedName ("card" )
716+ Long card ;
717+
718+ /**
719+ * Amount coming from <a href="https://docs.stripe.com/payments/fpx">FPX</a>, a Malaysian
720+ * payment method.
721+ */
722+ @ SerializedName ("fpx" )
723+ Long fpx ;
724+ }
725+ }
726+ }
727+
600728 @ Override
601729 public void setResponseGetter (StripeResponseGetter responseGetter ) {
602730 super .setResponseGetter (responseGetter );
603731 trySetResponseGetter (issuing , responseGetter );
604732 trySetResponseGetter (refundAndDisputePrefunding , responseGetter );
733+ trySetResponseGetter (transitBalancesTotal , responseGetter );
605734 }
606735}
0 commit comments