sfcc-cip-analytics-client
Version:
SFCC Commerce Intelligence Platform Analytics Client
21 lines (20 loc) • 950 B
TypeScript
import { SiteSpecificQueryTemplateParams, EnhancedQueryFunction } from "../helpers";
export interface PaymentMethodPerformance {
payment_method: string;
total_payments: number;
orders_with_payment: number;
std_captured_amount: number;
std_refunded_amount: number;
std_transaction_amount: number;
avg_payment_amount: number;
}
/**
* Query payment method performance metrics to track adoption and optimize processing costs
* Business Question: Which payment methods are customers using and how do they perform?
* Primary users: Operations teams
* @param client The Avatica client instance (must have an open connection)
* @param siteId The natural site ID to filter by
* @param dateRange Date range to filter results
* @param batchSize Size of each batch to yield (default: 100)
*/
export declare const queryPaymentMethodPerformance: EnhancedQueryFunction<PaymentMethodPerformance, SiteSpecificQueryTemplateParams>;