Package com.chargebee.models
Class Subscription
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic enumstatic classstatic enumstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic enumstatic classstatic classstatic classstatic classstatic class -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactiveId()addons()arr()Deprecated.static Subscription.CancelRequestcancelForItems(String id) changeTermEnd(String id) channel()coupon()Deprecated.coupons()static Subscription.CreateRequestcreate()static Requestdeleted()dueSince()giftId()id()importForItems(String id) list()static ListRequestlistDiscounts(String id) org.json.JSONObjectmetadata()Deprecated.org.json.JSONObjectmetaData()static Subscription.MoveRequestmrr()static Subscription.PauseRequestplanId()poNumber()reactivate(String id) removeCoupons(String id) static Requeststatic Requeststatic Requeststatic Subscription.ResumeRequeststatic Requeststatic Requeststatic RequestsetupFee()status()static ListRequestDeprecated.trialEnd()static Subscription.UpdateRequestupdateForItems(String id) Methods inherited from class com.chargebee.internal.Resource
apiVersionCheck, nullCheck, nullCheckWithoutEncoding, optBigDecimal, optBoolean, optDouble, optEnum, optInteger, optJSONArray, optJSONObject, optList, optLong, optMap, optString, optSubResource, optTimestamp, reqBigDecimal, reqBoolean, reqDouble, reqEnum, reqInteger, reqJSONArray, reqJSONObject, reqList, reqLong, reqMap, reqString, reqSubResource, reqTimestamp, toJson, toString, uri
-
Constructor Details
-
Subscription
-
Subscription
public Subscription(org.json.JSONObject jsonObj)
-
-
Method Details
-
id
-
currencyCode
-
planId
-
planQuantity
-
planUnitPrice
-
setupFee
-
billingPeriod
-
billingPeriodUnit
-
startDate
-
trialEnd
-
remainingBillingCycles
-
poNumber
-
autoCollection
-
planQuantityInDecimal
-
planUnitPriceInDecimal
-
customerId
-
planAmount
-
planFreeQuantity
-
status
-
trialStart
-
trialEndAction
-
currentTermStart
-
currentTermEnd
-
nextBillingAt
-
createdAt
-
startedAt
-
activatedAt
-
giftId
-
contractTermBillingCycleOnRenewal
-
overrideRelationship
-
pauseDate
-
resumeDate
-
cancelledAt
-
cancelReason
-
affiliateToken
-
createdFromIp
-
resourceVersion
-
updatedAt
-
hasScheduledAdvanceInvoices
-
hasScheduledChanges
-
paymentSourceId
-
planFreeQuantityInDecimal
-
planAmountInDecimal
-
cancelScheduleCreatedAt
-
offlinePaymentMethod
-
channel
-
netTermDays
-
activeId
-
subscriptionItems
-
itemTiers
-
chargedItems
-
dueInvoicesCount
-
dueSince
-
totalDues
-
mrr
-
arr
Deprecated. -
exchangeRate
-
baseCurrencyCode
-
addons
-
eventBasedAddons
-
chargedEventBasedAddons
-
coupon
Deprecated. -
coupons
-
shippingAddress
-
referralInfo
-
billingOverride
-
invoiceNotes
-
metaData
public org.json.JSONObject metaData() -
deleted
-
changesScheduledAt
-
contractTerm
-
cancelReasonCode
-
freePeriod
-
freePeriodUnit
-
createPendingInvoices
-
autoCloseInvoices
-
discounts
-
businessEntityId
-
metadata
Deprecated. -
create
-
createForCustomer
-
createWithItems
-
list
-
subscriptionsForCustomer
Deprecated. -
contractTermsForSubscription
public static Subscription.SubscriptionContractTermsForSubscriptionRequest contractTermsForSubscription(String id) -
listDiscounts
-
retrieve
-
retrieveWithScheduledChanges
-
removeScheduledChanges
-
removeScheduledCancellation
public static Subscription.RemoveScheduledCancellationRequest removeScheduledCancellation(String id) -
removeCoupons
-
update
-
updateForItems
-
changeTermEnd
-
reactivate
-
addChargeAtTermEnd
-
chargeAddonAtTermEnd
-
chargeFutureRenewals
-
editAdvanceInvoiceSchedule
-
retrieveAdvanceInvoiceSchedule
-
removeAdvanceInvoiceSchedule
public static Subscription.RemoveAdvanceInvoiceScheduleRequest removeAdvanceInvoiceSchedule(String id) -
regenerateInvoice
-
importSubscription
-
importForCustomer
-
importContractTerm
-
importUnbilledCharges
-
importForItems
-
overrideBillingProfile
-
delete
-
pause
-
cancel
-
cancelForItems
-
resume
-
removeScheduledPause
-
removeScheduledResumption
-
move
-