Package com.oracle.bmc.ospgateway.model
Class Subscription
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.ospgateway.model.Subscription
-
@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 theSubscription.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 calledSubscription.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 Summary
Nested Classes Modifier and Type Class 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.
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 codeString
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 CORPORATEDate
getTimePlanUpgrade()
Date of upgrade/conversion when planType changed from FREE_TIER to PAYGDate
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.
-
-
-
Constructor Detail
-
Subscription
@Deprecated @ConstructorProperties({"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)
Deprecated.
-
-
Method Detail
-
builder
public static Subscription.Builder builder()
Create a new builder.
-
toBuilder
public Subscription.Builder toBuilder()
-
getId
public String getId()
Subscription id identifier (OCID).- Returns:
- the value
-
getSubscriptionPlanNumber
public String getSubscriptionPlanNumber()
Subscription plan number.- Returns:
- the value
-
getPlanType
public Subscription.PlanType getPlanType()
Subscription plan type.- Returns:
- the value
-
getTimeStart
public Date getTimeStart()
Start date of the subscription.- Returns:
- the value
-
getShipToCustAcctSiteId
public String getShipToCustAcctSiteId()
Ship to customer account site address id.- Returns:
- the value
-
getShipToCustAcctRoleId
public String getShipToCustAcctRoleId()
Ship to customer account role.- Returns:
- the value
-
getBillToCustAccountId
public String getBillToCustAccountId()
Bill to customer Account id.- Returns:
- the value
-
getIsIntentToPay
public Boolean getIsIntentToPay()
Payment intension.- Returns:
- the value
-
getCurrencyCode
public String getCurrencyCode()
Currency code- Returns:
- the value
-
getGsiOrgCode
public String getGsiOrgCode()
GSI Subscription external code.- Returns:
- the value
-
getLanguageCode
public String getLanguageCode()
Language short code (en, de, hu, etc)- Returns:
- the value
-
getOrganizationId
public String getOrganizationId()
GSI organization external identifier.- Returns:
- the value
-
getUpgradeState
public Subscription.UpgradeState getUpgradeState()
Status of the upgrade.- Returns:
- the value
-
getUpgradeStateDetails
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)
- Returns:
- the value
-
getAccountType
public Subscription.AccountType getAccountType()
Account type.- Returns:
- the value
-
getTaxInfo
public TaxInfo getTaxInfo()
-
getPaymentOptions
public List<PaymentOption> getPaymentOptions()
Payment option list of a subscription.- Returns:
- the value
-
getPaymentGateway
public PaymentGateway getPaymentGateway()
-
getBillingAddress
public Address getBillingAddress()
-
getTimePlanUpgrade
public Date getTimePlanUpgrade()
Date of upgrade/conversion when planType changed from FREE_TIER to PAYG- Returns:
- the value
-
getTimePersonalToCorporateConv
public Date getTimePersonalToCorporateConv()
Date of upgrade/conversion when account type changed from PERSONAL to CORPORATE- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public 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
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-