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