import { DaffTestingCartPaymentService } from '@daffodil/cart/driver/testing'
@Injectable()
class DaffTestingCartPaymentService implements DaffCartPaymentServiceInterface {
get(cartId: string): any
update(
cartId: string
payment: Partial<DaffCartPaymentMethod>
): any
updateWithBilling(
cartId: string
payment: Partial<DaffCartPaymentMethod>
address: Partial<DaffCartAddress>
): any
remove(cartId: string): any
}
anyGet the currently applied payment method of a cart.
| Parameter | cartId: string |
|---|---|
| Description |
anyUpdate 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 |
any| Parameter | cartId: string |
|---|---|
| Description |
| Parameter | payment: Partial<DaffCartPaymentMethod> |
|---|---|
| Description |
| Parameter | address: Partial<DaffCartAddress> |
|---|---|
| Description |
anyRemove the payment method applied to a cart.
| Parameter | cartId: string |
|---|---|
| Description |