Class BulkTransferConsentBuilder


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

      • BulkTransferConsentBuilder

        public BulkTransferConsentBuilder​(GatewayClient gatewayClient,
                                          java.lang.String userMemberId,
                                          java.lang.String consentRequestId)
        Creates an instance of BulkTransferConsentBuilder.
        Parameters:
        gatewayClient - the bank client
        userMemberId - the user member id
        consentRequestId - the consent request id
    • Method Detail

      • withConsentRequestId

        public BulkTransferConsentBuilder withConsentRequestId​(java.lang.String consentRequestId)
        Adds a consent request id.
        Parameters:
        consentRequestId - the consent request id
        Returns:
        builder
      • forAccountIdentifier

        public BulkTransferConsentBuilder forAccountIdentifier​(java.lang.String accountIdentifier)
        Adds a bank's source account identifier. The account Identifier is opaque to Token. In Token's Bank Integration SDK, the account identifier can be found in the AccountProtos.BankAccount's AccountProtos.BankAccount.Custom payload. For example: String accountIdentifier = bankAccount.getCustom().getPayload();
        Parameters:
        accountIdentifier - a bank's account Identifier
        Returns:
        builder
      • setExpiresAtMs

        public BulkTransferConsentBuilder setExpiresAtMs​(long expiresAtMs)
        Sets the expiration date.
        Parameters:
        expiresAtMs - expiration date in ms.
        Returns:
        builder
      • setEffectiveAtMs

        public BulkTransferConsentBuilder setEffectiveAtMs​(long effectiveAtMs)
        Sets the effective date.
        Parameters:
        effectiveAtMs - effective date in ms.
        Returns:
        builder
      • setEndorseUntilMs

        public BulkTransferConsentBuilder setEndorseUntilMs​(long endorseUntilMs)
        Sets the time after which endorse is no longer possible.
        Parameters:
        endorseUntilMs - endorse until, in milliseconds.
        Returns:
        builder
      • build

        public io.reactivex.Observable<io.token.proto.common.consent.ConsentProtos.Consent> build()
        Builds the ConsentProtos.Consent with all specified settings.
        Returns:
        the consent