@Generated(value="OracleSDKGenerator", comments="API Version: 20191001") public final class Subscription extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Subscription details object which extends the SubscriptionSummary
Note: Objects should always be created or deserialized using the Subscription.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the Subscription.Builder
, which maintain a
set of all explicitly set fields called Subscription.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
Subscription.AccountType
Account type.
|
static class |
Subscription.Builder |
static class |
Subscription.PlanType
Subscription plan type.
|
static class |
Subscription.UpgradeState
Status of the upgrade.
|
static class |
Subscription.UpgradeStateDetails
This field is used to describe the Upgrade State in case of error (E.g.
|
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
Subscription(String id,
String subscriptionPlanNumber,
Subscription.PlanType planType,
Date timeStart,
String shipToCustAcctSiteId,
String shipToCustAcctRoleId,
String billToCustAccountId,
Boolean isIntentToPay,
String currencyCode,
String gsiOrgCode,
String languageCode,
String organizationId,
Subscription.UpgradeState upgradeState,
Subscription.UpgradeStateDetails upgradeStateDetails,
Subscription.AccountType accountType,
TaxInfo taxInfo,
List<PaymentOption> paymentOptions,
PaymentGateway paymentGateway,
Address billingAddress,
Date timePlanUpgrade,
Date timePersonalToCorporateConv)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Subscription.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Subscription.AccountType |
getAccountType()
Account type.
|
Address |
getBillingAddress() |
String |
getBillToCustAccountId()
Bill to customer Account id.
|
String |
getCurrencyCode()
Currency code
|
String |
getGsiOrgCode()
GSI Subscription external code.
|
String |
getId()
Subscription id identifier (OCID).
|
Boolean |
getIsIntentToPay()
Payment intension.
|
String |
getLanguageCode()
Language short code (en, de, hu, etc)
|
String |
getOrganizationId()
GSI organization external identifier.
|
PaymentGateway |
getPaymentGateway() |
List<PaymentOption> |
getPaymentOptions()
Payment option list of a subscription.
|
Subscription.PlanType |
getPlanType()
Subscription plan type.
|
String |
getShipToCustAcctRoleId()
Ship to customer account role.
|
String |
getShipToCustAcctSiteId()
Ship to customer account site address id.
|
String |
getSubscriptionPlanNumber()
Subscription plan number.
|
TaxInfo |
getTaxInfo() |
Date |
getTimePersonalToCorporateConv()
Date of upgrade/conversion when account type changed from PERSONAL to CORPORATE
|
Date |
getTimePlanUpgrade()
Date of upgrade/conversion when planType changed from FREE_TIER to PAYG
|
Date |
getTimeStart()
Start date of the subscription.
|
Subscription.UpgradeState |
getUpgradeState()
Status of the upgrade.
|
Subscription.UpgradeStateDetails |
getUpgradeStateDetails()
This field is used to describe the Upgrade State in case of error (E.g.
|
int |
hashCode() |
Subscription.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"id","subscriptionPlanNumber","planType","timeStart","shipToCustAcctSiteId","shipToCustAcctRoleId","billToCustAccountId","isIntentToPay","currencyCode","gsiOrgCode","languageCode","organizationId","upgradeState","upgradeStateDetails","accountType","taxInfo","paymentOptions","paymentGateway","billingAddress","timePlanUpgrade","timePersonalToCorporateConv"}) public Subscription(String id, String subscriptionPlanNumber, Subscription.PlanType planType, Date timeStart, String shipToCustAcctSiteId, String shipToCustAcctRoleId, String billToCustAccountId, Boolean isIntentToPay, String currencyCode, String gsiOrgCode, String languageCode, String organizationId, Subscription.UpgradeState upgradeState, Subscription.UpgradeStateDetails upgradeStateDetails, Subscription.AccountType accountType, TaxInfo taxInfo, List<PaymentOption> paymentOptions, PaymentGateway paymentGateway, Address billingAddress, Date timePlanUpgrade, Date timePersonalToCorporateConv)
public static Subscription.Builder builder()
Create a new builder.
public Subscription.Builder toBuilder()
public String getId()
Subscription id identifier (OCID).
public String getSubscriptionPlanNumber()
Subscription plan number.
public Subscription.PlanType getPlanType()
Subscription plan type.
public Date getTimeStart()
Start date of the subscription.
public String getShipToCustAcctSiteId()
Ship to customer account site address id.
public String getShipToCustAcctRoleId()
Ship to customer account role.
public String getBillToCustAccountId()
Bill to customer Account id.
public Boolean getIsIntentToPay()
Payment intension.
public String getCurrencyCode()
Currency code
public String getGsiOrgCode()
GSI Subscription external code.
public String getLanguageCode()
Language short code (en, de, hu, etc)
public String getOrganizationId()
GSI organization external identifier.
public Subscription.UpgradeState getUpgradeState()
Status of the upgrade.
public Subscription.UpgradeStateDetails getUpgradeStateDetails()
This field is used to describe the Upgrade State in case of error (E.g. Upgrade failure caused by interfacing Tax details- TaxError)
public Subscription.AccountType getAccountType()
Account type.
public TaxInfo getTaxInfo()
public List<PaymentOption> getPaymentOptions()
Payment option list of a subscription.
public PaymentGateway getPaymentGateway()
public Address getBillingAddress()
public Date getTimePlanUpgrade()
Date of upgrade/conversion when planType changed from FREE_TIER to PAYG
public Date getTimePersonalToCorporateConv()
Date of upgrade/conversion when account type changed from PERSONAL to CORPORATE
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.