OneTimeInvoiceLineItem Class

public class OneTimeInvoiceLineItem extends InvoiceLineItem

Represents an invoice billing line item for OneTime purchases.

Constructor Summary

Constructor Description
OneTimeInvoiceLineItem()

Method Summary

Modifier and Type Method and Description
java.lang.String getAlternateId()

Gets the alternate identifier (quote identifier).

java.lang.String getAvailabilityId()

Gets the availability unique identifier.

double getBillableQuantity()

Gets the number of units purchased.

java.lang.String getBillingFrequency()

Gets the billing frequency.

BillingProvider getBillingProvider()

Gets the billing provider

org.joda.time.DateTime getChargeEndDate()

Gets the charge end date associated with this purchase.

org.joda.time.DateTime getChargeStartDate()

Gets the charge start date associated with this purchase.

java.lang.String getChargeType()

Gets the type of charge.

java.lang.String getCurrency()

Gets the currency used for this line item.

java.lang.String getCustomerCountry()

Gets the country for the customer.

java.lang.String getCustomerDomainName()

Gets the customer domain name.

java.lang.String getCustomerId()

Gets the customer identifier.

java.lang.String getCustomerName()

Gets the name for the customer.

java.lang.String getDiscountDetails()

Gets the discount details associated with this purchase.

InvoiceLineItemType getInvoiceLineItemType()

Gets the type of invoice line item

java.lang.String getInvoiceNumber()

Gets the invoice number.

java.lang.String getMeterDescription()

Gets the meter description for the consumption line item.

java.lang.String getMpnId()

Gets the MPN identifier associated to this line item.

org.joda.time.DateTime getOrderDate()

Gets the date when the order was created.

java.lang.String getOrderId()

Gets the order unique identifier.

double getPCToBCExchangeRate()

Gets the pricing currency to billing currency exchange rate.

org.joda.time.DateTime getPCToBCExchangeRateDate()

Gets the exchange rate date at which the pricing currency to billing currency exchange rate was determined.

java.lang.String getPartnerId()

Gets the partner commerce account identifier.

java.lang.String getPriceAdjustmentDescription()

Gets the description for the pricing adjustment.

java.lang.String getPricingCurrency()

Gets the pricing currency.

java.lang.String getProductId()

Gets the product unique identifier.

java.lang.String getProductName()

Gets the name for the product.

java.lang.String getPublisherId()

Gets the publisher identifier associated with this purchase.

java.lang.String getPublisherName()

Gets the publisher name associated with this purchase.

int getQuantity()

Gets the number of units associated with this line item.

java.lang.String getResellerMpnId()

Gets the reseller MPN identifier of the indirect reseller associated with this line item.

java.lang.String getReservationOrderId()

Gets the reservation order identifier for an Azure Reserved Instance purchase.

java.lang.String getSkuId()

Gets the SKU unique identifier.

java.lang.String getSkuName()

Gets the name for the SKU.

java.lang.String getSubscriptionDescription()

Gets the subscription description associated with this purchase.

java.lang.String getSubscriptionId()

Gets the subscription identifier associated with this purchase.

double getSubtotal()

Gets the amount after discount.

double getTaxTotal()

Gets the taxes charged.

java.lang.String getTermAndBillingCycle()

Gets the term and billing cycle associated with this purchase.

double getTotalForCustomer()

Gets the total amount after discount and tax.

double getUnitPrice()

Gets the unit price for the line item.

java.lang.String getUnitType()

Gets the type of unit.

void setAlternateId(String value)

Sets the alternate identifier (quote identifier).

void setAvailabilityId(String value)

Sets the availability unique identifier.

void setBillableQuantity(double value)

Sets the number of units purchased.

void setBillingFrequency(String value)

Sets the billing frequency.

void setChargeEndDate(DateTime value)

Sets the charge end date associated with this purchase.

void setChargeStartDate(DateTime value)

Sets the charge start date associated with this purchase.

void setChargeType(String value)

Sets the type of charge.

void setCurrency(String value)

Sets the currency used for this line item.

void setCustomerCountry(String value)

Sets the country for the customer.

void setCustomerDomainName(String value)

Sets the customer domain name.

void setCustomerId(String value)

Sets the customer identifier.

void setCustomerName(String value)

Sets the name for the customer.

void setDiscountDetails(String value)

Sets the discount details associated with this purchase.

void setInvoiceNumber(String value)

Sets the invoice number.

void setMeterDescription(String value)

Sets the meter description for the consumption line item.

void setMpnId(String value)

Sets the MPN identifier associated to this line item.

void setOrderDate(DateTime value)

Sets the date when the order was created.

void setOrderId(String value)

Sets the order unique identifier.

void setPCToBCExchangeRate(double value)

Sets the pricing currency to billing currency exchange rate.

void setPCToBCExchangeRateDate(DateTime value)

Sets the exchange rate date at which the pricing currency to billing currency exchange rate was determined.

void setPartnerId(String value)

Sets the partner commerce account identifier.

void setPriceAdjustmentDescription(String value)

Sets the description for the pricing adjustment.

void setPricingCurrency(String value)

Sets the pricing currency.

void setProductId(String value)

Gets the product unique identifier.

void setProductName(String value)

Sets the name for the product.

void setPublisherId(String value)

Sets the publisher identifier associated with this purchase.

void setPublisherName(String value)

Sets the publisher name associated with this purchase.

void setQuantity(int value)

Sets the number of units associated with this line item.

void setResellerMpnId(String value)

Sets the reseller MPN identifier of the indirect reseller associated with this line item.

void setReservationOrderId(String value)

Sets the reservation order identifier for an Azure Reserved Instance purchase.

void setSkuId(String value)

Sets the SKU unique identifier.

void setSkuName(String value)

Sets the name for the SKU.

void setSubscriptionDescription(String value)

Sets the subscription description associated with this purchase.

void setSubscriptionId(String value)

Sets the subscription identifier associated with this purchase.

void setSubtotal(double value)

Sets the amount after discount.

void setTaxTotal(double value)

Sets the taxes charged.

void setTermAndBillingCycle(String value)

Sets term and billing cycle associated with this purchase.

void setTotalForCustomer(double value)

Sets the total amount after discount and tax.

void setUnitPrice(double value)

Sets the unit price for the line item.

void setUnitType(String value)

Sets type of unit.

Inherited Members

ResourceBase.getAttributes() InvoiceLineItem.getBillingProvider() InvoiceLineItem.getInvoiceLineItemType() java.lang.Object.clone() java.lang.Object.equals(java.lang.Object) java.lang.Object.finalize() java.lang.Object.getClass() java.lang.Object.hashCode() java.lang.Object.notify() java.lang.Object.notifyAll() java.lang.Object.toString() java.lang.Object.wait() java.lang.Object.wait(long) java.lang.Object.wait(long,int)

Constructor Details

OneTimeInvoiceLineItem

public OneTimeInvoiceLineItem()

Method Details

getAlternateId

public String getAlternateId()

Gets the alternate identifier (quote identifier).

Returns:

The alternate identifier (quote identifier).

getAvailabilityId

public String getAvailabilityId()

Gets the availability unique identifier.

Returns:

The availability unique identifier.

getBillableQuantity

public double getBillableQuantity()

Gets the number of units purchased.

Returns:

The number of units purchased.

getBillingFrequency

public String getBillingFrequency()

Gets the billing frequency.

Returns:

The billing frequency for the line item.

getBillingProvider

public BillingProvider getBillingProvider()

Gets the billing provider

Overrides:

OneTimeInvoiceLineItem.getBillingProvider()

Returns:

The billing provider.

getChargeEndDate

public DateTime getChargeEndDate()

Gets the charge end date associated with this purchase.

Returns:

The charge end date associated with this purchase.

getChargeStartDate

public DateTime getChargeStartDate()

Gets the charge start date associated with this purchase.

Returns:

The charge start date associated with this purchase.

getChargeType

public String getChargeType()

Gets the type of charge.

Returns:

The type of charge.

getCurrency

public String getCurrency()

Gets the currency used for this line item.

Returns:

The currency used for this line item.

getCustomerCountry

public String getCustomerCountry()

Gets the country for the customer.

Returns:

Sets the country for the customer.

getCustomerDomainName

public String getCustomerDomainName()

Gets the customer domain name.

Returns:

The customer domain name.

getCustomerId

public String getCustomerId()

Gets the customer identifier.

Returns:

The customer identifier.

getCustomerName

public String getCustomerName()

Gets the name for the customer.

Returns:

The name for the customer.

getDiscountDetails

@Deprecated public String getDiscountDetails()

Gets the discount details associated with this purchase.

Returns:

The discount details associated with this purchase.

getInvoiceLineItemType

public InvoiceLineItemType getInvoiceLineItemType()

Gets the type of invoice line item

Overrides:

OneTimeInvoiceLineItem.getInvoiceLineItemType()

Returns:

The type of invoice line item.

getInvoiceNumber

public String getInvoiceNumber()

Gets the invoice number.

Returns:

The invoice number.

getMeterDescription

public String getMeterDescription()

Gets the meter description for the consumption line item.

Returns:

The meter description for the consumption line item.

getMpnId

public String getMpnId()

Gets the MPN identifier associated to this line item.

Returns:

The MPN identifier associated to this line item.

getOrderDate

public DateTime getOrderDate()

Gets the date when the order was created.

Returns:

The date when the order was created.

getOrderId

public String getOrderId()

Gets the order unique identifier.

Returns:

The order unique identifier.

getPCToBCExchangeRate

public double getPCToBCExchangeRate()

Gets the pricing currency to billing currency exchange rate.

Returns:

The pricing currency to billing currency exchange rate.

getPCToBCExchangeRateDate

public 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.

getPartnerId

public String getPartnerId()

Gets the partner commerce account identifier.

Returns:

The partner commerce account identifier.

getPriceAdjustmentDescription

public String getPriceAdjustmentDescription()

Gets the description for the pricing adjustment.

Returns:

The description for the pricing adjustment.

getPricingCurrency

public String getPricingCurrency()

Gets the pricing currency.

Returns:

The pricing currency.

getProductId

public String getProductId()

Gets the product unique identifier.

Returns:

The product unique identifier.

getProductName

public String getProductName()

Gets the name for the product.

Returns:

The name for the product.

getPublisherId

public String getPublisherId()

Gets the publisher identifier associated with this purchase.

Returns:

The publisher identifier associated with this purchase.

getPublisherName

public String getPublisherName()

Gets the publisher name associated with this purchase.

Returns:

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.

getResellerMpnId

public String 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.

getReservationOrderId

public String getReservationOrderId()

Gets the reservation order identifier for an Azure Reserved Instance purchase.

Returns:

The reservation order identifier for an Azure Reserved Instance purchase.

getSkuId

public String getSkuId()

Gets the SKU unique identifier.

Returns:

The SKU unique identifier.

getSkuName

public String getSkuName()

Gets the name for the SKU.

Returns:

The name for the SKU.

getSubscriptionDescription

public String getSubscriptionDescription()

Gets the subscription description associated with this purchase.

Returns:

The subscription description associated with this purchase.

getSubscriptionId

public String getSubscriptionId()

Gets the subscription identifier associated with this purchase.

Returns:

The subscription identifier associated with this purchase.

getSubtotal

public double getSubtotal()

Gets the amount after discount.

Returns:

The amount after discount.

getTaxTotal

public double getTaxTotal()

Gets the taxes charged.

Returns:

The taxes charged.

getTermAndBillingCycle

public String getTermAndBillingCycle()

Gets the term and billing cycle associated with this purchase.

Returns:

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.

getUnitPrice

public double getUnitPrice()

Gets the unit price for the line item.

Returns:

The unit price for the line item.

getUnitType

public String getUnitType()

Gets the type of unit.

Returns:

The type of unit.

setAlternateId

public void setAlternateId(String value)

Sets the alternate identifier (quote identifier).

Parameters:

value - The alternate identifier (quote identifier).

setAvailabilityId

public void setAvailabilityId(String value)

Sets the availability unique identifier.

Parameters:

value - The availability unique identifier.

setBillableQuantity

public void setBillableQuantity(double value)

Sets the number of units purchased.

Parameters:

value - The number of units purchased.

setBillingFrequency

public void setBillingFrequency(String value)

Sets the billing frequency.

Parameters:

value - The billing frequency for the line item.

setChargeEndDate

public void setChargeEndDate(DateTime value)

Sets the charge end date associated with this purchase.

Parameters:

value - The charge end date associated with this purchase.

setChargeStartDate

public void setChargeStartDate(DateTime value)

Sets the charge start date associated with this purchase.

Parameters:

value - The charge start date associated with this purchase.

setChargeType

public void setChargeType(String value)

Sets the type of charge.

Parameters:

value - The type of charge.

setCurrency

public void setCurrency(String value)

Sets the currency used for this line item.

Parameters:

value - The currency used for this line item.

setCustomerCountry

public void setCustomerCountry(String value)

Sets the country for the customer.

Parameters:

value - The country for the customer.

setCustomerDomainName

public void setCustomerDomainName(String value)

Sets the customer domain name.

Parameters:

value - The customer domain name.

setCustomerId

public void setCustomerId(String value)

Sets the customer identifier.

Parameters:

value - The customer identifier.

setCustomerName

public void setCustomerName(String value)

Sets the name for the customer.

Parameters:

value - The name of the customer.

setDiscountDetails

@Deprecated public void setDiscountDetails(String value)

Sets the discount details associated with this purchase.

Parameters:

value - The discount details associated with this purchase.

setInvoiceNumber

public void setInvoiceNumber(String value)

Sets the invoice number.

Parameters:

value - The invoice number.

setMeterDescription

public void setMeterDescription(String value)

Sets the meter description for the consumption line item.

Parameters:

value - The meter description for the consumption line item.

setMpnId

public void setMpnId(String value)

Sets the MPN identifier associated to this line item.

Parameters:

value - The MPN identifier associated to this line item.

setOrderDate

public void setOrderDate(DateTime value)

Sets the date when the order was created.

Parameters:

value - The date when the order was created.

setOrderId

public void setOrderId(String value)

Sets the order unique identifier.

Parameters:

value - The order unique identifier.

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.

setPCToBCExchangeRateDate

public void setPCToBCExchangeRateDate(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.

setPartnerId

public void setPartnerId(String value)

Sets the partner commerce account identifier.

Parameters:

value - The partner commerce account identifier.

setPriceAdjustmentDescription

public void setPriceAdjustmentDescription(String value)

Sets the description for the pricing adjustment.

Parameters:

value - The description for the pricing adjustment.

setPricingCurrency

public void setPricingCurrency(String value)

Sets the pricing currency.

Parameters:

value - The pricing currency.

setProductId

public void setProductId(String value)

Gets the product unique identifier.

Parameters:

value - The product unique identifier.

setProductName

public void setProductName(String value)

Sets the name for the product.

Parameters:

value - The name for the product.

setPublisherId

public void setPublisherId(String value)

Sets the publisher identifier associated with this purchase.

Parameters:

value - The publisher identifier associated with this purchase.

setPublisherName

public void setPublisherName(String value)

Sets the publisher name associated with this purchase.

Parameters:

value - The publisher name associated with this purchase.

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.

setResellerMpnId

public void setResellerMpnId(String value)

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.

setReservationOrderId

public void setReservationOrderId(String value)

Sets the reservation order identifier for an Azure Reserved Instance purchase.

Parameters:

value - The reservation order identifier for an Azure Reserved Instance purchase.

setSkuId

public void setSkuId(String value)

Sets the SKU unique identifier.

Parameters:

value - The SKU unique identifier.

setSkuName

public void setSkuName(String value)

Sets the name for the SKU.

Parameters:

value - The name for the SKU.

setSubscriptionDescription

public void setSubscriptionDescription(String value)

Sets the subscription description associated with this purchase.

Parameters:

value - The subscription description associated with this purchase.

setSubscriptionId

public void setSubscriptionId(String value)

Sets the subscription identifier associated with this purchase.

Parameters:

value - The subscription identifier associated with this purchase.

setSubtotal

public void setSubtotal(double value)

Sets the amount after discount.

Parameters:

value - The amount after discount.

setTaxTotal

public void setTaxTotal(double value)

Sets the taxes charged.

Parameters:

value - The taxes charged.

setTermAndBillingCycle

public void setTermAndBillingCycle(String value)

Sets term and billing cycle associated with this purchase.

Parameters:

value - The term and billing cycle associated with this purchase.

setTotalForCustomer

public void setTotalForCustomer(double value)

Sets the total amount after discount and tax.

Parameters:

value - The total amount after discount and tax.

setUnitPrice

public void setUnitPrice(double value)

Sets the unit price for the line item.

Parameters:

value - The unit price for the line item.

setUnitType

public void setUnitType(String value)

Sets type of unit.

Parameters:

value - The type of unit.

Applies to