public static class SubscriptionSummary.Builder extends Object
Constructor and Description |
---|
Builder() |
public SubscriptionSummary.Builder id(String id)
Subscription id identifier (OCID).
id
- the value to setpublic SubscriptionSummary.Builder subscriptionPlanNumber(String subscriptionPlanNumber)
Subscription plan number.
subscriptionPlanNumber
- the value to setpublic SubscriptionSummary.Builder planType(SubscriptionSummary.PlanType planType)
Subscription plan type.
planType
- the value to setpublic SubscriptionSummary.Builder timeStart(Date timeStart)
Start date of the subscription.
timeStart
- the value to setpublic SubscriptionSummary.Builder shipToCustAcctSiteId(String shipToCustAcctSiteId)
Ship to customer account site address id.
shipToCustAcctSiteId
- the value to setpublic SubscriptionSummary.Builder shipToCustAcctRoleId(String shipToCustAcctRoleId)
Ship to customer account role.
shipToCustAcctRoleId
- the value to setpublic SubscriptionSummary.Builder billToCustAccountId(String billToCustAccountId)
Bill to customer Account id.
billToCustAccountId
- the value to setpublic SubscriptionSummary.Builder isIntentToPay(Boolean isIntentToPay)
Payment intension.
isIntentToPay
- the value to setpublic SubscriptionSummary.Builder currencyCode(String currencyCode)
Currency code
currencyCode
- the value to setpublic SubscriptionSummary.Builder gsiOrgCode(String gsiOrgCode)
GSI Subscription external code.
gsiOrgCode
- the value to setpublic SubscriptionSummary.Builder languageCode(String languageCode)
Language short code (en, de, hu, etc)
languageCode
- the value to setpublic SubscriptionSummary.Builder organizationId(String organizationId)
GSI organization external identifier.
organizationId
- the value to setpublic SubscriptionSummary.Builder upgradeState(SubscriptionSummary.UpgradeState upgradeState)
Status of the upgrade.
upgradeState
- the value to setpublic SubscriptionSummary.Builder upgradeStateDetails(SubscriptionSummary.UpgradeStateDetails upgradeStateDetails)
This field is used to describe the Upgrade State in case of error (E.g. Upgrade failure caused by interfacing Tax details- TaxError)
upgradeStateDetails
- the value to setpublic SubscriptionSummary.Builder accountType(SubscriptionSummary.AccountType accountType)
Account type.
accountType
- the value to setpublic SubscriptionSummary.Builder taxInfo(TaxInfo taxInfo)
public SubscriptionSummary.Builder paymentOptions(List<PaymentOption> paymentOptions)
Payment option list of a subscription.
paymentOptions
- the value to setpublic SubscriptionSummary.Builder paymentGateway(PaymentGateway paymentGateway)
public SubscriptionSummary.Builder billingAddress(Address billingAddress)
public SubscriptionSummary.Builder timePlanUpgrade(Date timePlanUpgrade)
Date of upgrade/conversion when planType changed from FREE_TIER to PAYG
timePlanUpgrade
- the value to setpublic SubscriptionSummary.Builder timePersonalToCorporateConv(Date timePersonalToCorporateConv)
Date of upgrade/conversion when account type changed from PERSONAL to CORPORATE
timePersonalToCorporateConv
- the value to setpublic SubscriptionSummary build()
public SubscriptionSummary.Builder copy(SubscriptionSummary model)
Copyright © 2016–2024. All rights reserved.