Interface EndTimeBehavior.Builder

  • Method Details

    • type

      The behavior of the agreement when it reaches its end date.

      Types include:

      • RENEW – A new agreement is created from the accepted terms of this agreement.

      • REPLACE – A new agreement is created from a different offer than the one this agreement was created from. This happens, for example, when a private offer reaches its end date and the acceptor transitions to the public offer for the product.

      • EXPIRE – The agreement ends and isn't renewed or replaced.

      Parameters:
      type - The behavior of the agreement when it reaches its end date.

      Types include:

      • RENEW – A new agreement is created from the accepted terms of this agreement.

      • REPLACE – A new agreement is created from a different offer than the one this agreement was created from. This happens, for example, when a private offer reaches its end date and the acceptor transitions to the public offer for the product.

      • EXPIRE – The agreement ends and isn't renewed or replaced.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • type

      The behavior of the agreement when it reaches its end date.

      Types include:

      • RENEW – A new agreement is created from the accepted terms of this agreement.

      • REPLACE – A new agreement is created from a different offer than the one this agreement was created from. This happens, for example, when a private offer reaches its end date and the acceptor transitions to the public offer for the product.

      • EXPIRE – The agreement ends and isn't renewed or replaced.

      Parameters:
      type - The behavior of the agreement when it reaches its end date.

      Types include:

      • RENEW – A new agreement is created from the accepted terms of this agreement.

      • REPLACE – A new agreement is created from a different offer than the one this agreement was created from. This happens, for example, when a private offer reaches its end date and the acceptor transitions to the public offer for the product.

      • EXPIRE – The agreement ends and isn't renewed or replaced.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • reasonCode

      EndTimeBehavior.Builder reasonCode(String reasonCode)

      The reason why the agreement doesn't renew at its end date. The field is null when the agreement renews.

      More than one reason can apply to the same agreement. When that happens, the operation returns only one reason code, and PROPOSER_RENEW_OPTED_OUT takes precedence over all others.

      The EnableAutoRenew field reflects only the acceptor's preference, and doesn't reflect the other reasons an agreement might not renew.

      Reason codes include:

      • PROPOSER_RENEW_OPTED_OUT – The proposer opted out of renewing the agreement.

      • ACCEPTOR_RENEW_OPTED_OUT – The acceptor opted out of renewing the agreement.

      • NO_RENEWAL_TERM – The accepted terms of the agreement don't include a renewal term, which is required for an agreement to renew.

      • RENEWAL_LIMIT_EXHAUSTED – The agreement reached the maximum number of renewals allowed by its renewal term.

      Parameters:
      reasonCode - The reason why the agreement doesn't renew at its end date. The field is null when the agreement renews.

      More than one reason can apply to the same agreement. When that happens, the operation returns only one reason code, and PROPOSER_RENEW_OPTED_OUT takes precedence over all others.

      The EnableAutoRenew field reflects only the acceptor's preference, and doesn't reflect the other reasons an agreement might not renew.

      Reason codes include:

      • PROPOSER_RENEW_OPTED_OUT – The proposer opted out of renewing the agreement.

      • ACCEPTOR_RENEW_OPTED_OUT – The acceptor opted out of renewing the agreement.

      • NO_RENEWAL_TERM – The accepted terms of the agreement don't include a renewal term, which is required for an agreement to renew.

      • RENEWAL_LIMIT_EXHAUSTED – The agreement reached the maximum number of renewals allowed by its renewal term.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • reasonCode

      The reason why the agreement doesn't renew at its end date. The field is null when the agreement renews.

      More than one reason can apply to the same agreement. When that happens, the operation returns only one reason code, and PROPOSER_RENEW_OPTED_OUT takes precedence over all others.

      The EnableAutoRenew field reflects only the acceptor's preference, and doesn't reflect the other reasons an agreement might not renew.

      Reason codes include:

      • PROPOSER_RENEW_OPTED_OUT – The proposer opted out of renewing the agreement.

      • ACCEPTOR_RENEW_OPTED_OUT – The acceptor opted out of renewing the agreement.

      • NO_RENEWAL_TERM – The accepted terms of the agreement don't include a renewal term, which is required for an agreement to renew.

      • RENEWAL_LIMIT_EXHAUSTED – The agreement reached the maximum number of renewals allowed by its renewal term.

      Parameters:
      reasonCode - The reason why the agreement doesn't renew at its end date. The field is null when the agreement renews.

      More than one reason can apply to the same agreement. When that happens, the operation returns only one reason code, and PROPOSER_RENEW_OPTED_OUT takes precedence over all others.

      The EnableAutoRenew field reflects only the acceptor's preference, and doesn't reflect the other reasons an agreement might not renew.

      Reason codes include:

      • PROPOSER_RENEW_OPTED_OUT – The proposer opted out of renewing the agreement.

      • ACCEPTOR_RENEW_OPTED_OUT – The acceptor opted out of renewing the agreement.

      • NO_RENEWAL_TERM – The accepted terms of the agreement don't include a renewal term, which is required for an agreement to renew.

      • RENEWAL_LIMIT_EXHAUSTED – The agreement reached the maximum number of renewals allowed by its renewal term.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • renewalSummary

      EndTimeBehavior.Builder renewalSummary(RenewalSummary renewalSummary)

      The details of the renewal that applies at the end date of the agreement. This field is present when Type is RENEW. It is also present when ReasonCode is PROPOSER_RENEW_OPTED_OUT or ACCEPTOR_RENEW_OPTED_OUT. In those cases, it identifies the offer that the agreement would otherwise have renewed from. The field is null in all other cases.

      Parameters:
      renewalSummary - The details of the renewal that applies at the end date of the agreement. This field is present when Type is RENEW. It is also present when ReasonCode is PROPOSER_RENEW_OPTED_OUT or ACCEPTOR_RENEW_OPTED_OUT. In those cases, it identifies the offer that the agreement would otherwise have renewed from. The field is null in all other cases.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • renewalSummary

      default EndTimeBehavior.Builder renewalSummary(Consumer<RenewalSummary.Builder> renewalSummary)

      The details of the renewal that applies at the end date of the agreement. This field is present when Type is RENEW. It is also present when ReasonCode is PROPOSER_RENEW_OPTED_OUT or ACCEPTOR_RENEW_OPTED_OUT. In those cases, it identifies the offer that the agreement would otherwise have renewed from. The field is null in all other cases.

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

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

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