useB2bQuoteManagement ​
Category:
B2B
Composable to manage quotes in the B2BQuote module.
With this composable you can:
- Get list of quotes
- Get quote details
- Create and delete a storefront draft version of the quote
- Decline quote, with or without a line item comment
- Request change of the quote
- Change shipping method
- Change payment method
- Create order from quote
- Request quote
Types ​
ts
export function useB2bQuoteManagement(): UseB2bQuoteManagementts
export type DeclineQuoteParams = {
/** Message content */
comment: string;
/** Identifier of the quote line item that owns the new comment */
lineItemId: string;
/**
* Draft version identifier of the quote currently shown in storefront,
* as returned by `createDraftQuoteVersion`. This is not the `versionId`
* property of the quote entity.
*/
versionId: string;
};ts
export type ChangePaymentShippingMethodParams = {
quoteId: string;
paymentMethodId?: string;
shippingMethodId?: string;
};