feat(MED-97): update cart flow for using benefits

This commit is contained in:
2025-09-26 13:24:09 +03:00
parent 56f84a003c
commit db38e602aa
15 changed files with 419 additions and 81 deletions

View File

@@ -337,6 +337,51 @@ export type Database = {
}
medreport: {
Tables: {
account_balance_entries: {
Row: {
id: string
account_id: string
amount: number
entry_type: string
description: string
source_company_id: string
reference_id: string
created_at: string
created_by: string
expires_at: string
is_active: boolean
is_analysis_order: boolean
is_analysis_package_order: boolean
}
Insert: {
account_id: string
amount: number
entry_type: string
description: string
source_company_id: string
reference_id: string
created_at: string
created_by: string
expires_at: string
is_active: boolean
is_analysis_order?: boolean
is_analysis_package_order?: boolean
}
Update: {
account_id?: string
amount?: number
entry_type?: string
description?: string
source_company_id?: string
reference_id?: string
created_at?: string
created_by?: string
expires_at?: string
is_active?: boolean
is_analysis_order?: boolean
is_analysis_package_order?: boolean
}
}
account_params: {
Row: {
account_id: string
@@ -2148,6 +2193,10 @@ export type Database = {
Args: { medusa_order_id: string }
Returns: boolean
}
process_periodic_benefit_distributions: {
Args: {}
Returns: void
}
revoke_nonce: {
Args: { p_id: string; p_reason?: string }
Returns: boolean