Class Conversion
java.lang.Object
com.microsoft.store.partnercenter.models.ResourceBase
com.microsoft.store.partnercenter.models.subscriptions.Conversion
public class Conversion extends ResourceBase
Represents the conversion for a subscription from a trial offer to a paid offer.
-
Constructor Summary
Constructors Constructor Description Conversion() -
Method Summary
Modifier and Type Method Description BillingCycleTypegetBillingCycle()Gets the billing cycle that defines how often the partner is billed for this subscription.StringgetOfferId()Gets the original offer identifier.StringgetOrderId()Gets the order identifier.intgetQuantity()Gets the quantity to be purchased.StringgetTargetOfferId()Gets the target offer identifier.voidsetBillingCycle(BillingCycleType value)Sets the billing cycle that defines how often the partner is billed for this subscription.voidsetOfferId(String value)Sets the original offer identifier.voidsetOrderId(String value)Sets the order identifier.voidsetQuantity(int value)Sets the quantity to be purchased.voidsetTargetOfferId(String value)Sets the target offer identifier.
-
Constructor Details
-
Conversion
public Conversion()
-
-
Method Details
-
getBillingCycle
Gets the billing cycle that defines how often the partner is billed for this subscription.- Returns:
- The billing cycle that defines how often the partner is billed for this subscription.
-
setBillingCycle
Sets the billing cycle that defines how often the partner is billed for this subscription.- Parameters:
value- The billing cycle that defines how often the partner is billed for this subscription.
-
getOfferId
Gets the original offer identifier.- Returns:
- The original offer identifier.
-
setOfferId
Sets the original offer identifier.- Parameters:
value- The original offer identifier.
-
getOrderId
Gets the order identifier.- Returns:
- The order identifier.
-
setOrderId
Sets the order identifier.- Parameters:
value- The order identifier.
-
getQuantity
public int getQuantity()Gets the quantity to be purchased. Defaults to the source subscription quantity.- Returns:
- The quantity to be purchased. Defaults to the source subscription quantity.
-
setQuantity
public void setQuantity(int value)Sets the quantity to be purchased. Defaults to the source subscription quantity.- Parameters:
value- The quantity to be purchased. Defaults to the source subscription quantity.
-
getTargetOfferId
Gets the target offer identifier.- Returns:
- The target offer identifier.
-
setTargetOfferId
Sets the target offer identifier.- Parameters:
value- The target offer identifier.
-