import { DaffCartBillingAddressServiceInterface } from '@daffodil/cart/driver'
The interface responsible for managing the billing address of a cart.
interface DaffCartBillingAddressServiceInterface<T extends DaffCart = DaffCart> {
get(cartId: T["id"]): Observable<T['billing_address']>
update(
cartId: T["id"]
address: Partial<T["billing_address"]>
): Observable<Partial<T>>
}
Observable<T['billing_address']>
Retrieve the billing address of a cart
Parameter | cartId: T["id"] |
---|---|
Description |
Observable<Partial<T>>
Update the billing address of a cart
Parameter | cartId: T["id"] |
---|---|
Description |
Parameter | address: Partial |
---|---|
Description |