Interface PaymentInstrument.Builder

  • Method Details

    • paymentInstrumentId

      PaymentInstrument.Builder paymentInstrumentId(String paymentInstrumentId)

      The unique identifier for this payment instrument.

      Parameters:
      paymentInstrumentId - The unique identifier for this payment instrument.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • paymentManagerArn

      PaymentInstrument.Builder paymentManagerArn(String paymentManagerArn)

      The ARN of the payment manager that owns this payment instrument.

      Parameters:
      paymentManagerArn - The ARN of the payment manager that owns this payment instrument.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • paymentConnectorId

      PaymentInstrument.Builder paymentConnectorId(String paymentConnectorId)

      The ID of the payment connector associated with this instrument.

      Parameters:
      paymentConnectorId - The ID of the payment connector associated with this instrument.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • userId

      The user ID associated with this payment instrument.

      Parameters:
      userId - The user ID associated with this payment instrument.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • paymentInstrumentType

      PaymentInstrument.Builder paymentInstrumentType(String paymentInstrumentType)

      The type of payment instrument (e.g., EMBEDDED_CRYPTO_WALLET).

      Parameters:
      paymentInstrumentType - The type of payment instrument (e.g., EMBEDDED_CRYPTO_WALLET).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • paymentInstrumentType

      PaymentInstrument.Builder paymentInstrumentType(PaymentInstrumentType paymentInstrumentType)

      The type of payment instrument (e.g., EMBEDDED_CRYPTO_WALLET).

      Parameters:
      paymentInstrumentType - The type of payment instrument (e.g., EMBEDDED_CRYPTO_WALLET).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • paymentInstrumentDetails

      PaymentInstrument.Builder paymentInstrumentDetails(PaymentInstrumentDetails paymentInstrumentDetails)

      The details specific to the payment instrument type.

      Parameters:
      paymentInstrumentDetails - The details specific to the payment instrument type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • paymentInstrumentDetails

      default PaymentInstrument.Builder paymentInstrumentDetails(Consumer<PaymentInstrumentDetails.Builder> paymentInstrumentDetails)

      The details specific to the payment instrument type.

      This is a convenience method that creates an instance of the PaymentInstrumentDetails.Builder avoiding the need to create one manually via PaymentInstrumentDetails.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to paymentInstrumentDetails(PaymentInstrumentDetails).

      Parameters:
      paymentInstrumentDetails - a consumer that will call methods on PaymentInstrumentDetails.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • createdAt

      PaymentInstrument.Builder createdAt(Instant createdAt)

      The timestamp when this payment instrument was created.

      Parameters:
      createdAt - The timestamp when this payment instrument was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      The current status of this payment instrument.

      Parameters:
      status - The current status of this payment instrument.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The current status of this payment instrument.

      Parameters:
      status - The current status of this payment instrument.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • updatedAt

      PaymentInstrument.Builder updatedAt(Instant updatedAt)

      The timestamp when this payment instrument was last updated.

      Parameters:
      updatedAt - The timestamp when this payment instrument was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.