feat(fulfillment): 增加统一结算与多渠道人工履约
This commit is contained in:
@@ -10,6 +10,7 @@ export const VOUCHER_CONSUME_CHANNELS = [
|
||||
'work_order',
|
||||
'manual',
|
||||
'third_party_voucher',
|
||||
'on_account',
|
||||
] as const
|
||||
export type VoucherConsumeChannel = (typeof VOUCHER_CONSUME_CHANNELS)[number]
|
||||
|
||||
@@ -150,6 +151,11 @@ function createDefaultPlatformPolicy(): VoucherPlatformConsumePolicy {
|
||||
mode: 'after_order_received',
|
||||
delaySeconds: 5,
|
||||
},
|
||||
on_account: {
|
||||
enabled: false,
|
||||
mode: 'manual',
|
||||
delaySeconds: 0,
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -189,6 +195,10 @@ function normalizePlatformPolicy(
|
||||
fallback.channels.third_party_voucher,
|
||||
['manual', 'after_order_received'],
|
||||
),
|
||||
on_account: normalizeChannelPolicy(rawChannels.on_account, fallback.channels.on_account, [
|
||||
'manual',
|
||||
'after_order_received',
|
||||
]),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user