import { DaffMagentoCartCustomerPaymentService } from '@daffodil/cart-customer/driver/magento'
A service for making Magento GraphQL queries for carts.
@Injectable()
class DaffMagentoCartCustomerPaymentService implements DaffCartPaymentServiceInterface {
get(cartId: string): Observable<DaffCartPaymentMethod>
remove(cartId: string): Observable<void>
update(
cartId: string
payment: Partial<DaffCartPaymentMethod>
billingAddress?: Partial<DaffCartAddress>
): Observable<Partial<DaffCart>>
updateWithBilling(
cartId: string
payment: Partial<DaffCartPaymentMethod>
address: Partial<DaffCartAddress>
): Observable<Partial<DaffCart>>
}
Observable<DaffCartPaymentMethod>
Get the currently applied payment method of a cart.
Parameter | cartId: string |
---|---|
Description |
Observable<void>
Remove the payment method applied to a cart.
Parameter | cartId: string |
---|---|
Description |
Observable<Partial<DaffCart>>
Update the payment method applied to a cart.
If a billing address is provided, the driver will update that simultaneously.
Parameter | cartId: string |
---|---|
Description |
Parameter | payment: Partial<DaffCartPaymentMethod> |
---|---|
Description |
Parameter | billingAddress: Partial<DaffCartAddress> |
---|---|
Description |
Observable<Partial<DaffCart>>
Parameter | cartId: string |
---|---|
Description |
Parameter | payment: Partial<DaffCartPaymentMethod> |
---|---|
Description |
Parameter | address: Partial<DaffCartAddress> |
---|---|
Description |