Class ListPaymentMethodsRequest


  • public class ListPaymentMethodsRequest
    extends java.lang.Object
    • Constructor Detail

      • ListPaymentMethodsRequest

        public ListPaymentMethodsRequest​(java.util.Optional<java.lang.String> xMoovVersion,
                                         java.lang.String accountID,
                                         java.util.Optional<java.lang.String> sourceID,
                                         java.util.Optional<? extends PaymentMethodType> paymentMethodType)
      • ListPaymentMethodsRequest

        public ListPaymentMethodsRequest​(java.lang.String accountID)
    • Method Detail

      • xMoovVersion

        public java.util.Optional<java.lang.String> xMoovVersion()
        Specify an API version.

        API versioning follows the format `vYYYY.QQ.BB`, where - `YYYY` is the year - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10) - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter. - For example, `v2024.01.00` is the initial release of the first quarter of 2024.

        The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.

      • accountID

        public java.lang.String accountID()
      • sourceID

        public java.util.Optional<java.lang.String> sourceID()
        Optional parameter to filter the account's payment methods by source ID.

        A source ID can be a [walletID](https://docs.moov.io/api/sources/wallets/list/), [cardID](https://docs.moov.io/api/sources/cards/list/), or [bankAccountID](https://docs.moov.io/api/sources/bank-accounts/list/).

      • paymentMethodType

        public java.util.Optional<PaymentMethodType> paymentMethodType()
        Optional parameter to filter the account's payment methods by payment method type.
      • withXMoovVersion

        public ListPaymentMethodsRequest withXMoovVersion​(java.lang.String xMoovVersion)
        Specify an API version.

        API versioning follows the format `vYYYY.QQ.BB`, where - `YYYY` is the year - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10) - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter. - For example, `v2024.01.00` is the initial release of the first quarter of 2024.

        The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.

      • withXMoovVersion

        public ListPaymentMethodsRequest withXMoovVersion​(java.util.Optional<java.lang.String> xMoovVersion)
        Specify an API version.

        API versioning follows the format `vYYYY.QQ.BB`, where - `YYYY` is the year - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10) - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter. - For example, `v2024.01.00` is the initial release of the first quarter of 2024.

        The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.

      • withSourceID

        public ListPaymentMethodsRequest withSourceID​(java.lang.String sourceID)
        Optional parameter to filter the account's payment methods by source ID.

        A source ID can be a [walletID](https://docs.moov.io/api/sources/wallets/list/), [cardID](https://docs.moov.io/api/sources/cards/list/), or [bankAccountID](https://docs.moov.io/api/sources/bank-accounts/list/).

      • withSourceID

        public ListPaymentMethodsRequest withSourceID​(java.util.Optional<java.lang.String> sourceID)
        Optional parameter to filter the account's payment methods by source ID.

        A source ID can be a [walletID](https://docs.moov.io/api/sources/wallets/list/), [cardID](https://docs.moov.io/api/sources/cards/list/), or [bankAccountID](https://docs.moov.io/api/sources/bank-accounts/list/).

      • withPaymentMethodType

        public ListPaymentMethodsRequest withPaymentMethodType​(java.util.Optional<? extends PaymentMethodType> paymentMethodType)
        Optional parameter to filter the account's payment methods by payment method type.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object