Package com.moesif.api.models
Class SubscriptionBuilder
java.lang.Object
com.moesif.api.models.SubscriptionBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the instance with the given valuesUser's company_id stringcurrentPeriodEnd(Date currentPeriodEnd) End date of the current subscription periodcurrentPeriodStart(Date currentPeriodStart) Start date of the current subscription periodCustom user metadata as a JSON objectSubscription statussubscriptionId(String subscriptionId) Subscription Id
-
Constructor Details
-
SubscriptionBuilder
public SubscriptionBuilder()Default constructor to initialize the instance
-
-
Method Details
-
subscriptionId
Subscription Id- Parameters:
subscriptionId- the field to set- Returns:
- itself
-
companyId
User's company_id string- Parameters:
companyId- the field to set- Returns:
- itself
-
currentPeriodStart
Start date of the current subscription period- Parameters:
currentPeriodStart- the field to set- Returns:
- itself
-
currentPeriodEnd
End date of the current subscription period- Parameters:
currentPeriodEnd- the field to set- Returns:
- itself
-
status
Subscription status- Parameters:
status- the field to set- Returns:
- itself
-
metadata
Custom user metadata as a JSON object- Parameters:
metadata- the field to set- Returns:
- itself
-
build
Build the instance with the given values- Returns:
- The built UserModel
-