Interface Quote.Service
- All Superinterfaces:
Maskable
,ResultLimitable
,Service
- All Known Subinterfaces:
Cart.Service
- Enclosing class:
- Quote
@ApiService("SoftLayer_Billing_Order_Quote") public static interface Quote.Service extends Service
The SoftLayer_Billing_Order_Quote service controls the quoted orders that are created whenever a SoftLayer customer's places a purchase. Quotes exist in several states. The ones of concern are:
*'''PENDING''': Quotes which have not been paid yet. Quotes pending approval from a Softlayer customer.
Once an order is placed from a quote it moves from PENDING to EXPIRED state 2 days after its creation and it is removed from the system after 5 days unless otherwise the SoftLayer customer saved the quote.
Quotes could are created with contact information duplicated from the [[SoftLayer_Account (type)|SoftLayer_Account data type]] or by manual entry. We do this in order to maintain a history of an account's contact information as quotes are generated.
Query the [[SoftLayer_Account]] service to get a list of quotes for your account.
*'''PENDING''': Quotes which have not been paid yet. Quotes pending approval from a Softlayer customer.
Once an order is placed from a quote it moves from PENDING to EXPIRED state 2 days after its creation and it is removed from the system after 5 days unless otherwise the SoftLayer customer saved the quote.
Quotes could are created with contact information duplicated from the [[SoftLayer_Account (type)|SoftLayer_Account data type]] or by manual entry. We do this in order to maintain a history of an account's contact information as quotes are generated.
Query the [[SoftLayer_Account]] service to get a list of quotes for your account.
- See Also:
- SoftLayer_Billing_Order_Quote
-
Method Summary
Modifier and Type Method Description Quote.ServiceAsync
asAsync()
Get an async version of this serviceQuote
claim(String quoteKey, Long quoteId)
This method is used to transfer an anonymous quote to the active user and associated account.Quote
deleteQuote()
Account master users and sub-users in the SoftLayer customer portal can delete the quote of an order.Account
getAccount()
A quote's corresponding account.Boolean
getDoNotContactFlag()
Indicates whether the owner of the quote chosen to no longer be contacted.Quote
getObject()
getObject retrieves the SoftLayer_Billing_Order_Quote object whose ID number corresponds to the ID number of the init parameter passed to the SoftLayer_Billing_Order_Quote service.Order
getOrder()
This order contains the records for which products were selected for this quote.List<Order>
getOrdersFromQuote()
These are all the orders that were created from this quote.byte[]
getPdf()
Retrieve a PDF record of a SoftLayer quoted order.Quote
getQuoteByQuoteKey(String quoteKey)
This method will return a [[SoftLayer_Billing_Order_Quote]] that is identified by the quote key specified.Order
getRecalculatedOrderContainer(Order userOrderData, Boolean orderBeingPlacedFlag)
Generate an [[SoftLayer_Container_Product_Order|order container]] from the previously-created quote.Receipt
placeOrder(Order orderData)
Use this method for placing server orders and additional services orders.Order
placeQuote(Order orderData)
Use this method for placing server quotes and additional services quotes.Quote
saveQuote()
Account master users and sub-users in the SoftLayer customer portal can save the quote of an order to avoid its deletion after 5 days or its expiration after 2 days.void
setMask(Quote.Mask mask)
Order
verifyOrder(Order orderData)
Use this method for placing server orders and additional services orders.Void
withdrawGdprAcceptance()
Withdraws the users acceptance of the GDPR terms.Quote.Mask
withMask()
Use the existing mask on this service or create it if not presentQuote.Mask
withNewMask()
Overwrite the existing mask on this service with a new one and return itMethods inherited from interface com.softlayer.api.ResultLimitable
getLastResponseTotalItemCount, getResultLimit, setResultLimit
-
Method Details
-
asAsync
Quote.ServiceAsync asAsync()Description copied from interface:Service
Get an async version of this service -
withNewMask
Quote.Mask withNewMask()Description copied from interface:Maskable
Overwrite the existing mask on this service with a new one and return it- Specified by:
withNewMask
in interfaceMaskable
-
withMask
Quote.Mask withMask()Description copied from interface:Maskable
Use the existing mask on this service or create it if not present -
setMask
-
claim
This method is used to transfer an anonymous quote to the active user and associated account. An anonymous quote is one that was created by a user without being authenticated. If a quote was created anonymously and then the customer attempts to access that anonymous quote via the API (which requires authentication), the customer will be unable to retrieve the quote due to the security restrictions in place. By providing the ability for a customer to claim a quote, s/he will be able to pull the anonymous quote onto his/her account and successfully view the quote.
To claim a quote, both the quote id and the quote key (the 32-character random string) must be provided.- See Also:
- SoftLayer_Billing_Order_Quote::claim
-
deleteQuote
Account master users and sub-users in the SoftLayer customer portal can delete the quote of an order. -
getObject
getObject retrieves the SoftLayer_Billing_Order_Quote object whose ID number corresponds to the ID number of the init parameter passed to the SoftLayer_Billing_Order_Quote service. You can only retrieve quotes that are assigned to your portal user's account.- See Also:
- SoftLayer_Billing_Order_Quote::getObject
-
getPdf
Retrieve a PDF record of a SoftLayer quoted order. SoftLayer keeps PDF records of all quoted orders for customer retrieval from the portal and API. You must have a PDF reader installed in order to view these quoted order files.- See Also:
- SoftLayer_Billing_Order_Quote::getPdf
-
getQuoteByQuoteKey
This method will return a [[SoftLayer_Billing_Order_Quote]] that is identified by the quote key specified. If you do not have access to the quote or it does not exist, an exception will be thrown indicating so. -
getRecalculatedOrderContainer
@ApiMethod(instanceRequired=true) Order getRecalculatedOrderContainer(Order userOrderData, Boolean orderBeingPlacedFlag)Generate an [[SoftLayer_Container_Product_Order|order container]] from the previously-created quote. This will take into account promotions, reseller status, estimated taxes and all other standard order verification processes. -
placeOrder
Use this method for placing server orders and additional services orders. The same applies for this as with verifyOrder. Send in the SoftLayer_Container_Product_Order_Hardware_Server for server orders. In addition to verifying the order, placeOrder() also makes an initial authorization on the SoftLayer_Account tied to this order, if a credit card is on file. If the account tied to this order is a paypal customer, an URL will also be returned to the customer. After placing the order, you must go to this URL to finish the authorization process. This tells paypal that you indeed want to place the order. After going to this URL, it will direct you back to a SoftLayer webpage that tells us you have finished the process. After this, it will go to sales for final approval. -
placeQuote
Use this method for placing server quotes and additional services quotes. The same applies for this as with verifyOrder. Send in the SoftLayer_Container_Product_Order_Hardware_Server for server quotes. In addition to verifying the quote, placeQuote() also makes an initial authorization on the SoftLayer_Account tied to this order, if a credit card is on file. If the account tied to this order is a paypal customer, an URL will also be returned to the customer. After placing the order, you must go to this URL to finish the authorization process. This tells paypal that you indeed want to place the order. After going to this URL, it will direct you back to a SoftLayer webpage that tells us you have finished the process. -
saveQuote
Account master users and sub-users in the SoftLayer customer portal can save the quote of an order to avoid its deletion after 5 days or its expiration after 2 days.- See Also:
- SoftLayer_Billing_Order_Quote::saveQuote
-
verifyOrder
Use this method for placing server orders and additional services orders. The same applies for this as with verifyOrder. Send in the SoftLayer_Container_Product_Order_Hardware_Server for server orders. In addition to verifying the order, placeOrder() also makes an initial authorization on the SoftLayer_Account tied to this order, if a credit card is on file. If the account tied to this order is a paypal customer, an URL will also be returned to the customer. After placing the order, you must go to this URL to finish the authorization process. This tells paypal that you indeed want to place the order. After going to this URL, it will direct you back to a SoftLayer webpage that tells us you have finished the process. After this, it will go to sales for final approval. -
withdrawGdprAcceptance
Withdraws the users acceptance of the GDPR terms. -
getAccount
A quote's corresponding account. -
getDoNotContactFlag
Indicates whether the owner of the quote chosen to no longer be contacted. -
getOrder
This order contains the records for which products were selected for this quote.- See Also:
- SoftLayer_Billing_Order_Quote::getOrder
-
getOrdersFromQuote
These are all the orders that were created from this quote.
-