feat(M08-D): 补支付退款与分账运营
This commit is contained in:
@@ -151,6 +151,61 @@ export interface OrderHistoryItem {
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
export type PaymentAuthorizationStatus = 'UNAUTHORIZED' | 'PENDING' | 'AUTHORIZED' | 'REVOKED';
|
||||
|
||||
export interface CollectionAccount {
|
||||
id: string;
|
||||
platformAppId: string;
|
||||
storeId: string | null;
|
||||
provider: string;
|
||||
merchantId: string;
|
||||
authorizationStatus: PaymentAuthorizationStatus;
|
||||
profitSharingEnabled: boolean | number;
|
||||
enabled: boolean | number;
|
||||
}
|
||||
|
||||
export interface ProfitShareReceiver {
|
||||
id: string;
|
||||
collectionAccountId: string;
|
||||
receiverType: 'MERCHANT_ID' | 'PERSONAL_OPENID';
|
||||
receiverMasked: string;
|
||||
relationType: string;
|
||||
name: string;
|
||||
authorizationStatus: PaymentAuthorizationStatus;
|
||||
enabled: boolean | number;
|
||||
}
|
||||
|
||||
export interface ProfitSharePolicy {
|
||||
id: string;
|
||||
collectionAccountId: string;
|
||||
storeId: string | null;
|
||||
receiverId: string;
|
||||
percentageBps: number;
|
||||
enabled: boolean | number;
|
||||
}
|
||||
|
||||
export interface ProfitShareRecord {
|
||||
id: string;
|
||||
paymentId: string;
|
||||
orderId: string;
|
||||
storeId: string;
|
||||
shareNo: string;
|
||||
receiverType: string;
|
||||
receiverMasked: string;
|
||||
percentageBps: number;
|
||||
amountCents: number;
|
||||
status: string;
|
||||
failureCode: string;
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
export interface ProfitSharingSnapshot {
|
||||
accounts: CollectionAccount[];
|
||||
receivers: ProfitShareReceiver[];
|
||||
policies: ProfitSharePolicy[];
|
||||
shares: ProfitShareRecord[];
|
||||
}
|
||||
|
||||
export interface BusinessStatistics {
|
||||
storeId: string;
|
||||
from: string;
|
||||
|
||||
Reference in New Issue
Block a user