Package com.oracle.bmc.ospgateway.model
Class SubscriptionSummary
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.ospgateway.model.SubscriptionSummary
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20191001") public final class SubscriptionSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelSubscription object which contains the common subscription data.
 Note: Objects should always be created or deserialized using theSubscriptionSummary.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 theSubscriptionSummary.Builder, which maintain a set of all explicitly set fields calledSubscriptionSummary.Builder.__explicitlySet__. ThehashCode()andequals(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).
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSubscriptionSummary.AccountTypeAccount type.static classSubscriptionSummary.Builderstatic classSubscriptionSummary.PlanTypeSubscription plan type.static classSubscriptionSummary.UpgradeStateStatus of the upgrade.static classSubscriptionSummary.UpgradeStateDetailsThis field is used to describe the Upgrade State in case of error (E.g.
 - 
Constructor SummaryConstructors Constructor Description SubscriptionSummary(String id, String subscriptionPlanNumber, SubscriptionSummary.PlanType planType, Date timeStart, String shipToCustAcctSiteId, String shipToCustAcctRoleId, String billToCustAccountId, Boolean isIntentToPay, Boolean isCorporateConversionAllowed, 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.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SubscriptionSummary.Builderbuilder()Create a new builder.booleanequals(Object o)SubscriptionSummary.AccountTypegetAccountType()Account type.AddressgetBillingAddress()StringgetBillToCustAccountId()Bill to customer Account id.StringgetCurrencyCode()Currency codeStringgetGsiOrgCode()GSI Subscription external code.StringgetId()Subscription id identifier (OCID).BooleangetIsCorporateConversionAllowed()Corporate conversion allowed statusBooleangetIsIntentToPay()Payment intension.StringgetLanguageCode()Language short code (en, de, hu, etc)StringgetOrganizationId()GSI organization external identifier.PaymentGatewaygetPaymentGateway()List<PaymentOption>getPaymentOptions()Payment option list of a subscription.SubscriptionSummary.PlanTypegetPlanType()Subscription plan type.StringgetShipToCustAcctRoleId()Ship to customer account role.StringgetShipToCustAcctSiteId()Ship to customer account site address id.StringgetSubscriptionPlanNumber()Subscription plan number.TaxInfogetTaxInfo()DategetTimePersonalToCorporateConv()Date of upgrade/conversion when account type changed from PERSONAL to CORPORATEDategetTimePlanUpgrade()Date of upgrade/conversion when planType changed from FREE_TIER to PAYGDategetTimeStart()Start date of the subscription.SubscriptionSummary.UpgradeStategetUpgradeState()Status of the upgrade.SubscriptionSummary.UpgradeStateDetailsgetUpgradeStateDetails()This field is used to describe the Upgrade State in case of error (E.g.inthashCode()SubscriptionSummary.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
Constructor Detail- 
SubscriptionSummary@Deprecated @ConstructorProperties({"id","subscriptionPlanNumber","planType","timeStart","shipToCustAcctSiteId","shipToCustAcctRoleId","billToCustAccountId","isIntentToPay","isCorporateConversionAllowed","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, Boolean isCorporateConversionAllowed, 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.
 
- 
 - 
Method Detail- 
builderpublic static SubscriptionSummary.Builder builder() Create a new builder.
 - 
toBuilderpublic SubscriptionSummary.Builder toBuilder() 
 - 
getIdpublic String getId() Subscription id identifier (OCID).- Returns:
- the value
 
 - 
getSubscriptionPlanNumberpublic String getSubscriptionPlanNumber() Subscription plan number.- Returns:
- the value
 
 - 
getPlanTypepublic SubscriptionSummary.PlanType getPlanType() Subscription plan type.- Returns:
- the value
 
 - 
getTimeStartpublic Date getTimeStart() Start date of the subscription.- Returns:
- the value
 
 - 
getShipToCustAcctSiteIdpublic String getShipToCustAcctSiteId() Ship to customer account site address id.- Returns:
- the value
 
 - 
getShipToCustAcctRoleIdpublic String getShipToCustAcctRoleId() Ship to customer account role.- Returns:
- the value
 
 - 
getBillToCustAccountIdpublic String getBillToCustAccountId() Bill to customer Account id.- Returns:
- the value
 
 - 
getIsIntentToPaypublic Boolean getIsIntentToPay() Payment intension.- Returns:
- the value
 
 - 
getIsCorporateConversionAllowedpublic Boolean getIsCorporateConversionAllowed() Corporate conversion allowed status- Returns:
- the value
 
 - 
getCurrencyCodepublic String getCurrencyCode() Currency code- Returns:
- the value
 
 - 
getGsiOrgCodepublic String getGsiOrgCode() GSI Subscription external code.- Returns:
- the value
 
 - 
getLanguageCodepublic String getLanguageCode() Language short code (en, de, hu, etc)- Returns:
- the value
 
 - 
getOrganizationIdpublic String getOrganizationId() GSI organization external identifier.- Returns:
- the value
 
 - 
getUpgradeStatepublic SubscriptionSummary.UpgradeState getUpgradeState() Status of the upgrade.- Returns:
- the value
 
 - 
getUpgradeStateDetailspublic 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) - Returns:
- the value
 
 - 
getAccountTypepublic SubscriptionSummary.AccountType getAccountType() Account type.- Returns:
- the value
 
 - 
getTaxInfopublic TaxInfo getTaxInfo() 
 - 
getPaymentOptionspublic List<PaymentOption> getPaymentOptions() Payment option list of a subscription.- Returns:
- the value
 
 - 
getPaymentGatewaypublic PaymentGateway getPaymentGateway() 
 - 
getBillingAddresspublic Address getBillingAddress() 
 - 
getTimePlanUpgradepublic Date getTimePlanUpgrade() Date of upgrade/conversion when planType changed from FREE_TIER to PAYG- Returns:
- the value
 
 - 
getTimePersonalToCorporateConvpublic Date getTimePersonalToCorporateConv() Date of upgrade/conversion when account type changed from PERSONAL to CORPORATE- Returns:
- the value
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
toStringpublic String toString(boolean includeByteArrayContents) Return a string representation of the object.- Parameters:
- includeByteArrayContents- true to include the full contents of byte arrays
- Returns:
- string representation
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 
- 
 
-