Class OneTimeInvoiceLineItem
java.lang.Object
com.microsoft.store.partnercenter.models.ResourceBase
com.microsoft.store.partnercenter.models.invoices.InvoiceLineItem
com.microsoft.store.partnercenter.models.invoices.OneTimeInvoiceLineItem
public class OneTimeInvoiceLineItem extends InvoiceLineItem
Represents an invoice billing line item for OneTime purchases.
-
Constructor Summary
Constructors Constructor Description OneTimeInvoiceLineItem() -
Method Summary
Modifier and Type Method Description StringgetAlternateId()Gets the alternate identifier (quote identifier).StringgetAvailabilityId()Gets the availability unique identifier.doublegetBillableQuantity()Gets the number of units purchased.StringgetBillingFrequency()Gets the billing frequency.BillingProvidergetBillingProvider()Gets the billing providerorg.joda.time.DateTimegetChargeEndDate()Gets the charge end date associated with this purchase.org.joda.time.DateTimegetChargeStartDate()Gets the charge start date associated with this purchase.StringgetChargeType()Gets the type of charge.StringgetCurrency()Gets the currency used for this line item.StringgetCustomerCountry()Gets the country for the customer.StringgetCustomerDomainName()Gets the customer domain name.StringgetCustomerId()Gets the customer identifier.StringgetCustomerName()Gets the name for the customer.StringgetDiscountDetails()Deprecated.InvoiceLineItemTypegetInvoiceLineItemType()Gets the type of invoice line itemStringgetInvoiceNumber()Gets the invoice number.StringgetMeterDescription()Gets the meter description for the consumption line item.StringgetMpnId()Gets the MPN identifier associated to this line item.org.joda.time.DateTimegetOrderDate()Gets the date when the order was created.StringgetOrderId()Gets the order unique identifier.StringgetPartnerId()Gets the partner commerce account identifier.doublegetPCToBCExchangeRate()Gets the pricing currency to billing currency exchange rate.org.joda.time.DateTimegetPCToBCExchangeRateDate()Gets the exchange rate date at which the pricing currency to billing currency exchange rate was determined.StringgetPriceAdjustmentDescription()Gets the description for the pricing adjustment.StringgetPricingCurrency()Gets the pricing currency.StringgetProductId()Gets the product unique identifier.StringgetProductName()Gets the name for the product.StringgetPublisherId()Gets the publisher identifier associated with this purchase.StringgetPublisherName()Gets the publisher name associated with this purchase.intgetQuantity()Gets the number of units associated with this line item.StringgetResellerMpnId()Gets the reseller MPN identifier of the indirect reseller associated with this line item.StringgetSkuId()Gets the SKU unique identifier.StringgetSkuName()Gets the name for the SKU.StringgetSubscriptionDescription()Gets the subscription description associated with this purchase.StringgetSubscriptionId()Gets the subscription identifier associated with this purchase.doublegetSubtotal()Gets the amount after discount.doublegetTaxTotal()Gets the taxes charged.StringgetTermAndBillingCycle()Gets the term and billing cycle associated with this purchase.doublegetTotalForCustomer()Gets the total amount after discount and tax.doublegetUnitPrice()Gets the unit price for the line item.StringgetUnitType()Gets the type of unit.voidsetAlternateId(String value)Sets the alternate identifier (quote identifier).voidsetAvailabilityId(String value)Sets the availability unique identifier.voidsetBillableQuantity(double value)Sets the number of units purchased.voidsetBillingFrequency(String value)Sets the billing frequency.voidsetChargeEndDate(org.joda.time.DateTime value)Sets the charge end date associated with this purchase.voidsetChargeStartDate(org.joda.time.DateTime value)Sets the charge start date associated with this purchase.voidsetChargeType(String value)Sets the type of charge.voidsetCurrency(String value)Sets the currency used for this line item.voidsetCustomerCountry(String value)Sets the country for the customer.voidsetCustomerDomainName(String value)Sets the customer domain name.voidsetCustomerId(String value)Sets the customer identifier.voidsetCustomerName(String value)Sets the name for the customer.voidsetDiscountDetails(String value)Deprecated.voidsetInvoiceNumber(String value)Sets the invoice number.voidsetMeterDescription(String value)Sets the meter description for the consumption line item.voidsetMpnId(String value)Sets the MPN identifier associated to this line item.voidsetOrderDate(org.joda.time.DateTime value)Sets the date when the order was created.voidsetOrderId(String value)Sets the order unique identifier.voidsetPartnerId(String value)Sets the partner commerce account identifier.voidsetPCToBCExchangeRate(double value)Sets the pricing currency to billing currency exchange rate.voidsetPCToBCExchangeRateDate(org.joda.time.DateTime value)Sets the exchange rate date at which the pricing currency to billing currency exchange rate was determined.voidsetPriceAdjustmentDescription(String value)Sets the description for the pricing adjustment.voidsetPricingCurrency(String value)Sets the pricing currency.voidsetProductId(String value)Gets the product unique identifier.voidsetProductName(String value)Sets the name for the product.voidsetPublisherId(String value)Sets the publisher identifier associated with this purchase.voidsetPublisherName(String value)Sets the publisher name associated with this purchase.voidsetQuantity(int value)Sets the number of units associated with this line item.voidsetResellerMpnId(String value)Sets the reseller MPN identifier of the indirect reseller associated with this line item.voidsetSkuId(String value)Sets the SKU unique identifier.voidsetSkuName(String value)Sets the name for the SKU.voidsetSubscriptionDescription(String value)Sets the subscription description associated with this purchase.voidsetSubscriptionId(String value)Sets the subscription identifier associated with this purchase.voidsetSubtotal(double value)Sets the amount after discount.voidsetTaxTotal(double value)Sets the taxes charged.voidsetTermAndBillingCycle(String value)Sets term and billing cycle associated with this purchase.voidsetTotalForCustomer(double value)Sets the total amount after discount and tax.voidsetUnitPrice(double value)Sets the unit price for the line item.voidsetUnitType(String value)Sets type of unit.
-
Constructor Details
-
OneTimeInvoiceLineItem
public OneTimeInvoiceLineItem()
-
-
Method Details
-
getAlternateId
Gets the alternate identifier (quote identifier).- Returns:
- The alternate identifier (quote identifier).
-
setAlternateId
Sets the alternate identifier (quote identifier).- Parameters:
value- The alternate identifier (quote identifier).
-
getAvailabilityId
Gets the availability unique identifier.- Returns:
- The availability unique identifier.
-
setAvailabilityId
Sets the availability unique identifier.- Parameters:
value- The availability unique identifier.
-
getBillingFrequency
Gets the billing frequency.- Returns:
- The billing frequency for the line item.
-
setBillingFrequency
Sets the billing frequency.- Parameters:
value- The billing frequency for the line item.
-
getBillingProvider
Gets the billing provider- Specified by:
getBillingProviderin classInvoiceLineItem- Returns:
- The billing provider.
-
getBillableQuantity
public double getBillableQuantity()Gets the number of units purchased.- Returns:
- The number of units purchased.
-
setBillableQuantity
public void setBillableQuantity(double value)Sets the number of units purchased.- Parameters:
value- The number of units purchased.
-
getChargeEndDate
public org.joda.time.DateTime getChargeEndDate()Gets the charge end date associated with this purchase.- Returns:
- The charge end date associated with this purchase.
-
setChargeEndDate
public void setChargeEndDate(org.joda.time.DateTime value)Sets the charge end date associated with this purchase.- Parameters:
value- The charge end date associated with this purchase.
-
getChargeStartDate
public org.joda.time.DateTime getChargeStartDate()Gets the charge start date associated with this purchase.- Returns:
- The charge start date associated with this purchase.
-
setChargeStartDate
public void setChargeStartDate(org.joda.time.DateTime value)Sets the charge start date associated with this purchase.- Parameters:
value- The charge start date associated with this purchase.
-
getChargeType
Gets the type of charge.- Returns:
- The type of charge.
-
setChargeType
Sets the type of charge.- Parameters:
value- The type of charge.
-
getCurrency
Gets the currency used for this line item.- Returns:
- The currency used for this line item.
-
setCurrency
Sets the currency used for this line item.- Parameters:
value- The currency used for this line item.
-
getCustomerCountry
Gets the country for the customer.- Returns:
- Sets the country for the customer.
-
setCustomerCountry
Sets the country for the customer.- Parameters:
value- The country for the customer.
-
getCustomerDomainName
Gets the customer domain name.- Returns:
- The customer domain name.
-
setCustomerDomainName
Sets the customer domain name.- Parameters:
value- The customer domain name.
-
getCustomerId
Gets the customer identifier.- Returns:
- The customer identifier.
-
getCustomerName
Gets the name for the customer.- Returns:
- The name for the customer.
-
setCustomerName
Sets the name for the customer.- Parameters:
value- The name of the customer.
-
setCustomerId
Sets the customer identifier.- Parameters:
value- The customer identifier.
-
getDiscountDetails
Deprecated.Gets the discount details associated with this purchase.- Returns:
- The discount details associated with this purchase.
-
setDiscountDetails
Deprecated.Sets the discount details associated with this purchase.- Parameters:
value- The discount details associated with this purchase.
-
getInvoiceLineItemType
Gets the type of invoice line item- Specified by:
getInvoiceLineItemTypein classInvoiceLineItem- Returns:
- The type of invoice line item.
-
getInvoiceNumber
Gets the invoice number.- Returns:
- The invoice number.
-
setInvoiceNumber
Sets the invoice number.- Parameters:
value- The invoice number.
-
getMeterDescription
Gets the meter description for the consumption line item.- Returns:
- The meter description for the consumption line item.
-
setMeterDescription
Sets the meter description for the consumption line item.- Parameters:
value- The meter description for the consumption line item.
-
getMpnId
Gets the MPN identifier associated to this line item.- Returns:
- The MPN identifier associated to this line item.
-
setMpnId
Sets the MPN identifier associated to this line item.- Parameters:
value- The MPN identifier associated to this line item.
-
getOrderDate
public org.joda.time.DateTime getOrderDate()Gets the date when the order was created.- Returns:
- The date when the order was created.
-
setOrderDate
public void setOrderDate(org.joda.time.DateTime value)Sets the date when the order was created.- Parameters:
value- The date when the order was created.
-
getOrderId
Gets the order unique identifier.- Returns:
- The order unique identifier.
-
setOrderId
Sets the order unique identifier.- Parameters:
value- The order unique identifier.
-
getPartnerId
Gets the partner commerce account identifier.- Returns:
- The partner commerce account identifier.
-
setPartnerId
Sets the partner commerce account identifier.- Parameters:
value- The partner commerce account identifier.
-
getPCToBCExchangeRate
public double getPCToBCExchangeRate()Gets the pricing currency to billing currency exchange rate.- Returns:
- The pricing currency to billing currency exchange rate.
-
setPCToBCExchangeRate
public void setPCToBCExchangeRate(double value)Sets the pricing currency to billing currency exchange rate.- Parameters:
value- The pricing currency to billing currency exchange rate.
-
getPCToBCExchangeRateDate
public org.joda.time.DateTime getPCToBCExchangeRateDate()Gets the exchange rate date at which the pricing currency to billing currency exchange rate was determined.- Returns:
- The exchange rate date at which the pricing currency to billing currency exchange rate was determined.
-
setPCToBCExchangeRateDate
public void setPCToBCExchangeRateDate(org.joda.time.DateTime value)Sets the exchange rate date at which the pricing currency to billing currency exchange rate was determined.- Parameters:
value- The exchange rate date at which the pricing currency to billing currency exchange rate was determined.
-
getPriceAdjustmentDescription
Gets the description for the pricing adjustment.- Returns:
- The description for the pricing adjustment.
-
setPriceAdjustmentDescription
Sets the description for the pricing adjustment.- Parameters:
value- The description for the pricing adjustment.
-
getPricingCurrency
Gets the pricing currency.- Returns:
- The pricing currency.
-
setPricingCurrency
Sets the pricing currency.- Parameters:
value- The pricing currency.
-
getProductId
Gets the product unique identifier.- Returns:
- The product unique identifier.
-
setProductId
Gets the product unique identifier.- Parameters:
value- The product unique identifier.
-
getProductName
Gets the name for the product.- Returns:
- The name for the product.
-
setProductName
Sets the name for the product.- Parameters:
value- The name for the product.
-
getPublisherId
Gets the publisher identifier associated with this purchase.- Returns:
- The publisher identifier associated with this purchase.
-
setPublisherId
Sets the publisher identifier associated with this purchase.- Parameters:
value- The publisher identifier associated with this purchase.
-
getPublisherName
Gets the publisher name associated with this purchase.- Returns:
- The publisher name associated with this purchase.
-
setPublisherName
Sets the publisher name associated with this purchase.- Parameters:
value- The publisher name associated with this purchase.
-
getQuantity
public int getQuantity()Gets the number of units associated with this line item.- Returns:
- The number of units associated with this line item.
-
setQuantity
public void setQuantity(int value)Sets the number of units associated with this line item.- Parameters:
value- The number of units associated with this line item.
-
getResellerMpnId
Gets the reseller MPN identifier of the indirect reseller associated with this line item.- Returns:
- The reseller MPN identifier of the indirect reseller associated with this line item.
-
setResellerMpnId
Sets the reseller MPN identifier of the indirect reseller associated with this line item.- Parameters:
value- The reseller MPN identifier of the indirect reseller associated with this line item.
-
getSkuId
Gets the SKU unique identifier.- Returns:
- The SKU unique identifier.
-
setSkuId
Sets the SKU unique identifier.- Parameters:
value- The SKU unique identifier.
-
getSkuName
Gets the name for the SKU.- Returns:
- The name for the SKU.
-
setSkuName
Sets the name for the SKU.- Parameters:
value- The name for the SKU.
-
getSubscriptionDescription
Gets the subscription description associated with this purchase.- Returns:
- The subscription description associated with this purchase.
-
setSubscriptionDescription
Sets the subscription description associated with this purchase.- Parameters:
value- The subscription description associated with this purchase.
-
getSubscriptionId
Gets the subscription identifier associated with this purchase.- Returns:
- The subscription identifier associated with this purchase.
-
setSubscriptionId
Sets the subscription identifier associated with this purchase.- Parameters:
value- The subscription identifier associated with this purchase.
-
getSubtotal
public double getSubtotal()Gets the amount after discount.- Returns:
- The amount after discount.
-
setSubtotal
public void setSubtotal(double value)Sets the amount after discount.- Parameters:
value- The amount after discount.
-
getTaxTotal
public double getTaxTotal()Gets the taxes charged.- Returns:
- The taxes charged.
-
setTaxTotal
public void setTaxTotal(double value)Sets the taxes charged.- Parameters:
value- The taxes charged.
-
getTermAndBillingCycle
Gets the term and billing cycle associated with this purchase.- Returns:
- The term and billing cycle associated with this purchase.
-
setTermAndBillingCycle
Sets term and billing cycle associated with this purchase.- Parameters:
value- The term and billing cycle associated with this purchase.
-
getTotalForCustomer
public double getTotalForCustomer()Gets the total amount after discount and tax.- Returns:
- The total amount after discount and tax.
-
setTotalForCustomer
public void setTotalForCustomer(double value)Sets the total amount after discount and tax.- Parameters:
value- The total amount after discount and tax.
-
getUnitPrice
public double getUnitPrice()Gets the unit price for the line item.- Returns:
- The unit price for the line item.
-
setUnitPrice
public void setUnitPrice(double value)Sets the unit price for the line item.- Parameters:
value- The unit price for the line item.
-
getUnitType
Gets the type of unit.- Returns:
- The type of unit.
-
setUnitType
Sets type of unit.- Parameters:
value- The type of unit.
-