@commercelayer/react-components
Version:
The Official Commerce Layer React Components
9 lines (8 loc) • 488 B
TypeScript
import type { PaymentResource } from '../reducers/PaymentMethodReducer';
import type { CommerceLayerClient, Order } from '@commercelayer/sdk';
/**
* Check if a given `order` has a linked `order_subscription` to replace its `customer_payment_source` with the `order`'s `payment_source`.
* @param order Order
* @returns void
*/
export declare function updateOrderSubscriptionCustomerPaymentSource(order: Order, paymentType: PaymentResource | undefined, sdk: CommerceLayerClient): void;