Class TokenRequest.StandingOrderBuilder

    • Method Detail

      • setAmount

        public TokenRequest.StandingOrderBuilder setAmount​(double amount)
        Sets the amount per charge of the standing order.
        Parameters:
        amount - amount per individual charge
        Returns:
        builder
      • setCurrency

        public TokenRequest.StandingOrderBuilder setCurrency​(java.lang.String currency)
        Sets the currency for each charge in the standing order.
        Parameters:
        currency - currency
        Returns:
        builder
      • setFrequency

        public TokenRequest.StandingOrderBuilder setFrequency​(java.lang.String frequency)
        Sets the frequency of the standing order. ISO 20022: DAIL, WEEK, TOWK, MNTH, TOMN, QUTR, SEMI, YEAR
        Parameters:
        frequency - frequency of the standing order
        Returns:
        builder
      • setStartDate

        public TokenRequest.StandingOrderBuilder setStartDate​(java.lang.String startDate)
        Sets the start date of the standing order. ISO 8601: YYYY-MM-DD or YYYYMMDD.
        Parameters:
        startDate - start date of the standing order
        Returns:
        builder
      • setEndDate

        public TokenRequest.StandingOrderBuilder setEndDate​(java.lang.String endDate)
        Sets the end date of the standing order. ISO 8601: YYYY-MM-DD or YYYYMMDD. If not specified, the standing order will occur indefinitely.
        Parameters:
        endDate - end date of the standing order
        Returns:
        builder
      • addDestination

        public TokenRequest.StandingOrderBuilder addDestination​(io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferDestination destination)
        Adds a destination account to a standing order token request.
        Parameters:
        destination - destination
        Returns:
        builder
      • setDestinationCountry

        public TokenRequest.StandingOrderBuilder setDestinationCountry​(java.lang.String destinationCountry)
        Optional. Sets the destination country in order to narrow down the country selection in the web-app UI.
        Parameters:
        destinationCountry - destination country
        Returns:
        builder
      • setSource

        public TokenRequest.StandingOrderBuilder setSource​(io.token.proto.common.transferinstructions.TransferInstructionsProtos.TransferEndpoint source)
        Optional. Sets the source account to bypass account selection.
        Parameters:
        source - source
        Returns:
        builder
      • setProviderTransferMetadata

        public TokenRequest.StandingOrderBuilder setProviderTransferMetadata​(io.token.proto.common.providerspecific.ProviderSpecific.ProviderTransferMetadata metadata)
        Optional. Adds metadata for a specific provider.
        Parameters:
        metadata - provider-specific metadata
        Returns:
        builder
      • setUltimateCreditor

        public TokenRequest.StandingOrderBuilder setUltimateCreditor​(java.lang.String ultimateCreditor)
        Optional. Sets the ultimate party to which the money is due.
        Parameters:
        ultimateCreditor - the ultimate creditor
        Returns:
        builder
      • setUltimateDebtor

        public TokenRequest.StandingOrderBuilder setUltimateDebtor​(java.lang.String ultimateDebtor)
        Optional. Sets ultimate party that owes the money to the (ultimate) creditor.
        Parameters:
        ultimateDebtor - the ultimate debtor
        Returns:
        builder
      • setPurposeCode

        public TokenRequest.StandingOrderBuilder setPurposeCode​(java.lang.String purposeCode)
        Optional. Sets the purpose code. Refer to ISO 20022 external code sets.
        Parameters:
        purposeCode - the purpose code
        Returns:
        builder