@Generated(value="OracleSDKGenerator", comments="API Version: 20191001") public final class SubscriptionSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Subscription object which contains the common subscription data.
Note: Objects should always be created or deserialized using the SubscriptionSummary.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 SubscriptionSummary.Builder
, which maintain a
set of all explicitly set fields called SubscriptionSummary.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 |
SubscriptionSummary.AccountType
Account type.
|
static class |
SubscriptionSummary.Builder |
static class |
SubscriptionSummary.PlanType
Subscription plan type.
|
static class |
SubscriptionSummary.UpgradeState
Status of the upgrade.
|
static class |
SubscriptionSummary.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 |
---|
SubscriptionSummary(String id,
String subscriptionPlanNumber,
SubscriptionSummary.PlanType planType,
Date timeStart,
String shipToCustAcctSiteId,
String shipToCustAcctRoleId,
String billToCustAccountId,
Boolean isIntentToPay,
String currencyCode,
String gsiOrgCode,
String languageCode,
String organizationId,
SubscriptionSummary.UpgradeState upgradeState,
SubscriptionSummary.UpgradeStateDetails upgradeStateDetails,
SubscriptionSummary.AccountType accountType,
TaxInfo taxInfo,
List<PaymentOption> paymentOptions,
PaymentGateway paymentGateway,
Address billingAddress,
Date timePlanUpgrade,
Date timePersonalToCorporateConv)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static SubscriptionSummary.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
SubscriptionSummary.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.
|
SubscriptionSummary.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.
|
SubscriptionSummary.UpgradeState |
getUpgradeState()
Status of the upgrade.
|
SubscriptionSummary.UpgradeStateDetails |
getUpgradeStateDetails()
This field is used to describe the Upgrade State in case of error (E.g.
|
int |
hashCode() |
SubscriptionSummary.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 SubscriptionSummary(String id, String subscriptionPlanNumber, SubscriptionSummary.PlanType planType, Date timeStart, String shipToCustAcctSiteId, String shipToCustAcctRoleId, String billToCustAccountId, Boolean isIntentToPay, String currencyCode, String gsiOrgCode, String languageCode, String organizationId, SubscriptionSummary.UpgradeState upgradeState, SubscriptionSummary.UpgradeStateDetails upgradeStateDetails, SubscriptionSummary.AccountType accountType, TaxInfo taxInfo, List<PaymentOption> paymentOptions, PaymentGateway paymentGateway, Address billingAddress, Date timePlanUpgrade, Date timePersonalToCorporateConv)
public static SubscriptionSummary.Builder builder()
Create a new builder.
public SubscriptionSummary.Builder toBuilder()
public String getId()
Subscription id identifier (OCID).
public String getSubscriptionPlanNumber()
Subscription plan number.
public SubscriptionSummary.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 SubscriptionSummary.UpgradeState getUpgradeState()
Status of the upgrade.
public SubscriptionSummary.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 SubscriptionSummary.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.