Interface CreateBillingPortalSessionRequest.Builder

  • Method Details

    • appId

      The ID of the app the portal is for.

      Parameters:
      appId - The ID of the app the portal is for.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • userId

      The ID of the end user the portal is for. Do not include personally identifiable or otherwise sensitive data in this value.

      Parameters:
      userId - The ID of the end user the portal is for. Do not include personally identifiable or otherwise sensitive data in this value.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • returnUrl

      A URL in your app. A plan checkout started from the portal doesn't redirect here: after payment, the buyer returns to the portal's My subscription page. Bound into the session and reused for every checkout the buyer launches from the portal.

      Parameters:
      returnUrl - A URL in your app. A plan checkout started from the portal doesn't redirect here: after payment, the buyer returns to the portal's My subscription page. Bound into the session and reused for every checkout the buyer launches from the portal.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • refreshUrl

      A URL in your app. A plan checkout started from the portal doesn't redirect here: if the buyer cancels, they return to the portal's plans page. Bound into the session alongside returnUrl.

      Parameters:
      refreshUrl - A URL in your app. A plan checkout started from the portal doesn't redirect here: if the buyer cancels, they return to the portal's plans page. Bound into the session alongside returnUrl.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sessionDurationSeconds

      CreateBillingPortalSessionRequest.Builder sessionDurationSeconds(Integer sessionDurationSeconds)

      The lifetime of the hosted session, in seconds, counted from this call. Omit to use the service default. It does not set how long billingPortalUrl works; see expiresAt.

      Parameters:
      sessionDurationSeconds - The lifetime of the hosted session, in seconds, counted from this call. Omit to use the service default. It does not set how long billingPortalUrl works; see expiresAt.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • clientToken

      A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, the service ignores the request but does not return an error.

      Parameters:
      clientToken - A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, the service ignores the request but does not return an error.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scope

      Required. The environment: live or sandbox.

      Parameters:
      scope - Required. The environment: live or sandbox.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • scope

      Required. The environment: live or sandbox.

      Parameters:
      scope - Required. The environment: live or sandbox.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

      CreateBillingPortalSessionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.