Interface SubscriptionSummary.Builder

  • Method Details

    • appId

      The ID of the app that the subscription belongs to.

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

      The opaque end-user identifier that the subscription belongs to.

      Parameters:
      userId - The opaque end-user identifier that the subscription belongs to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • planId

      The ID of the plan on the user's latest subscription record. If a plan change is scheduled, this is the plan the subscription moves to; if a cancellation is scheduled or has taken effect, it is absent. Call GetSubscription for the plan in effect.

      Parameters:
      planId - The ID of the plan on the user's latest subscription record. If a plan change is scheduled, this is the plan the subscription moves to; if a cancellation is scheduled or has taken effect, it is absent. Call GetSubscription for the plan in effect.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • effectiveAt

      SubscriptionSummary.Builder effectiveAt(Instant effectiveAt)

      The time when the subscription took effect.

      Parameters:
      effectiveAt - The time when the subscription took effect.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • billingAnchorDate

      SubscriptionSummary.Builder billingAnchorDate(Instant billingAnchorDate)

      The fixed reference instant the recurring billing cycle is measured from. It is set when the subscription first takes effect and stays fixed as periods roll forward, so it is normally an older date than the current period — not the start of the current period. The resolved current-period end ( currentPeriodEndsAt) is available on GetSubscription for a single user; this summary carries only the anchor.

      Parameters:
      billingAnchorDate - The fixed reference instant the recurring billing cycle is measured from. It is set when the subscription first takes effect and stays fixed as periods roll forward, so it is normally an older date than the current period — not the start of the current period. The resolved current-period end ( currentPeriodEndsAt) is available on GetSubscription for a single user; this summary carries only the anchor.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • billingCycle

      SubscriptionSummary.Builder billingCycle(String billingCycle)

      The billing cycle of the subscription, such as monthly or annual.

      Parameters:
      billingCycle - The billing cycle of the subscription, such as monthly or annual.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • billingCycle

      SubscriptionSummary.Builder billingCycle(BillingCycle billingCycle)

      The billing cycle of the subscription, such as monthly or annual.

      Parameters:
      billingCycle - The billing cycle of the subscription, such as monthly or annual.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: