UNPKG

@lomi./sdk

Version:

Official TypeScript SDK for the lomi. API

1,062 lines (1,061 loc) 119 kB
/** * API Types * AUTO-GENERATED - Do not edit manually * * Re-exports types from the API module */ /** * API Types * * This file contains only the types exposed through the API. * * Generated from database.types.ts - only includes: * - Exposed enums (35 enums) * - Exposed tables (15 tables) * - Exposed functions (52 functions) * * DO NOT EDIT MANUALLY - This file is auto-generated * Run: npm run generate:api-types */ export type Json = string | number | boolean | null | { [key: string]: Json | undefined; } | Json[]; export type Database = { public: { Tables: { accounts: { Row: { account_id: string; balance: number; created_at: string; currency_code: APIEnums["currency_code"]; is_spi_account: boolean; organization_id: string; spi_account_balance: number | null; spi_account_balance_sync_error: string | null; spi_account_balance_synced_at: string | null; spi_account_number: string | null; spi_account_status: APIEnums["spi_account_status"] | null; spi_account_type: APIEnums["spi_account_type"] | null; updated_at: string; }; Insert: { account_id?: string; balance?: number; created_at?: string; currency_code?: APIEnums["currency_code"]; is_spi_account?: boolean; organization_id: string; spi_account_balance?: number | null; spi_account_balance_sync_error?: string | null; spi_account_balance_synced_at?: string | null; spi_account_number?: string | null; spi_account_status?: APIEnums["spi_account_status"] | null; spi_account_type?: APIEnums["spi_account_type"] | null; updated_at?: string; }; Update: { account_id?: string; balance?: number; created_at?: string; currency_code?: APIEnums["currency_code"]; is_spi_account?: boolean; organization_id?: string; spi_account_balance?: number | null; spi_account_balance_sync_error?: string | null; spi_account_balance_synced_at?: string | null; spi_account_number?: string | null; spi_account_status?: APIEnums["spi_account_status"] | null; spi_account_type?: APIEnums["spi_account_type"] | null; updated_at?: string; }; Relationships: [ { foreignKeyName: "accounts_currency_code_fkey"; columns: ["currency_code"]; isOneToOne: false; referencedRelation: "currencies"; referencedColumns: ["code"]; }, { foreignKeyName: "merchant_accounts_organization_id_fkey"; columns: ["organization_id"]; isOneToOne: false; referencedRelation: "organizations"; referencedColumns: ["organization_id"]; } ]; }; organizations: { Row: { arr: number; created_at: string; default_currency: APIEnums["currency_code"]; deleted_at: string | null; email: string; employee_number: string | null; industry: string | null; is_deleted: boolean; is_starter_business: boolean; logo_url: string | null; merchant_lifetime_value: number; metadata: Json | null; mrr: number; name: string; organization_id: string; phone_number: string; pin_code: string | null; slug: string | null; status: APIEnums["organization_status"]; storefront_enabled: boolean; total_customers: number | null; total_merchants: number | null; total_revenue: number | null; total_transactions: number | null; updated_at: string; verification_status: APIEnums["organization_verification_status"]; website_url: string | null; }; Insert: { arr?: number; created_at?: string; default_currency?: APIEnums["currency_code"]; deleted_at?: string | null; email: string; employee_number?: string | null; industry?: string | null; is_deleted?: boolean; is_starter_business?: boolean; logo_url?: string | null; merchant_lifetime_value?: number; metadata?: Json | null; mrr?: number; name: string; organization_id?: string; phone_number: string; pin_code?: string | null; slug?: string | null; status?: APIEnums["organization_status"]; storefront_enabled?: boolean; total_customers?: number | null; total_merchants?: number | null; total_revenue?: number | null; total_transactions?: number | null; updated_at?: string; verification_status?: APIEnums["organization_verification_status"]; website_url?: string | null; }; Update: { arr?: number; created_at?: string; default_currency?: APIEnums["currency_code"]; deleted_at?: string | null; email?: string; employee_number?: string | null; industry?: string | null; is_deleted?: boolean; is_starter_business?: boolean; logo_url?: string | null; merchant_lifetime_value?: number; metadata?: Json | null; mrr?: number; name?: string; organization_id?: string; phone_number?: string; pin_code?: string | null; slug?: string | null; status?: APIEnums["organization_status"]; storefront_enabled?: boolean; total_customers?: number | null; total_merchants?: number | null; total_revenue?: number | null; total_transactions?: number | null; updated_at?: string; verification_status?: APIEnums["organization_verification_status"]; website_url?: string | null; }; Relationships: []; }; customers: { Row: { address: string | null; city: string | null; country: string | null; created_at: string; created_by: string | null; customer_id: string; deleted_at: string | null; email: string | null; environment: string; is_business: boolean; is_deleted: boolean; metadata: Json | null; name: string; organization_id: string; phone_number: string | null; postal_code: string | null; spi_alias_mbno: string | null; spi_alias_shid: string | null; spi_primary_alias: string | null; updated_at: string; whatsapp_number: string | null; }; Insert: { address?: string | null; city?: string | null; country?: string | null; created_at?: string; created_by?: string | null; customer_id?: string; deleted_at?: string | null; email?: string | null; environment?: string; is_business?: boolean; is_deleted?: boolean; metadata?: Json | null; name: string; organization_id: string; phone_number?: string | null; postal_code?: string | null; spi_alias_mbno?: string | null; spi_alias_shid?: string | null; spi_primary_alias?: string | null; updated_at?: string; whatsapp_number?: string | null; }; Update: { address?: string | null; city?: string | null; country?: string | null; created_at?: string; created_by?: string | null; customer_id?: string; deleted_at?: string | null; email?: string | null; environment?: string; is_business?: boolean; is_deleted?: boolean; metadata?: Json | null; name?: string; organization_id?: string; phone_number?: string | null; postal_code?: string | null; spi_alias_mbno?: string | null; spi_alias_shid?: string | null; spi_primary_alias?: string | null; updated_at?: string; whatsapp_number?: string | null; }; Relationships: [ { foreignKeyName: "customers_created_by_fkey"; columns: ["created_by"]; isOneToOne: false; referencedRelation: "merchants"; referencedColumns: ["merchant_id"]; }, { foreignKeyName: "customers_organization_id_fkey"; columns: ["organization_id"]; isOneToOne: false; referencedRelation: "organizations"; referencedColumns: ["organization_id"]; }, { foreignKeyName: "fk_customers_spi_alias_shid"; columns: ["spi_alias_shid"]; isOneToOne: false; referencedRelation: "spi_account_aliases"; referencedColumns: ["alias_id"]; } ]; }; payment_requests: { Row: { amount: number; created_at: string; created_by: string | null; currency_code: APIEnums["currency_code"]; customer_id: string | null; description: string | null; environment: string; expiry_date: string; organization_id: string; payment_link: string | null; payment_reference: string | null; request_id: string; spi_account_number: string | null; spi_bulk_instruction_id: string | null; spi_confirmation: boolean; spi_date_envoi: string | null; spi_date_irrevocabilite: string | null; spi_date_limite_paiement: string | null; spi_date_limite_reponse: string | null; spi_date_rejet: string | null; spi_debit_differe: boolean; spi_end2end_id: string | null; spi_payeur_alias: string | null; spi_payeur_nom: string | null; spi_payeur_pays: string | null; spi_payment_request_category: APIEnums["spi_payment_request_category"] | null; spi_payment_status: APIEnums["spi_payment_status"] | null; spi_ref_doc_numero: string | null; spi_ref_doc_type: APIEnums["spi_document_type"] | null; spi_rejection_reason: APIEnums["spi_rejection_reason"] | null; spi_remise_amount: number | null; spi_remise_rate: number | null; spi_tx_id: string | null; status: APIEnums["transaction_status"]; updated_at: string; }; Insert: { amount: number; created_at?: string; created_by?: string | null; currency_code: APIEnums["currency_code"]; customer_id?: string | null; description?: string | null; environment?: string; expiry_date: string; organization_id: string; payment_link?: string | null; payment_reference?: string | null; request_id?: string; spi_account_number?: string | null; spi_bulk_instruction_id?: string | null; spi_confirmation?: boolean; spi_date_envoi?: string | null; spi_date_irrevocabilite?: string | null; spi_date_limite_paiement?: string | null; spi_date_limite_reponse?: string | null; spi_date_rejet?: string | null; spi_debit_differe?: boolean; spi_end2end_id?: string | null; spi_payeur_alias?: string | null; spi_payeur_nom?: string | null; spi_payeur_pays?: string | null; spi_payment_request_category?: APIEnums["spi_payment_request_category"] | null; spi_payment_status?: APIEnums["spi_payment_status"] | null; spi_ref_doc_numero?: string | null; spi_ref_doc_type?: APIEnums["spi_document_type"] | null; spi_rejection_reason?: APIEnums["spi_rejection_reason"] | null; spi_remise_amount?: number | null; spi_remise_rate?: number | null; spi_tx_id?: string | null; status?: APIEnums["transaction_status"]; updated_at?: string; }; Update: { amount?: number; created_at?: string; created_by?: string | null; currency_code?: APIEnums["currency_code"]; customer_id?: string | null; description?: string | null; environment?: string; expiry_date?: string; organization_id?: string; payment_link?: string | null; payment_reference?: string | null; request_id?: string; spi_account_number?: string | null; spi_bulk_instruction_id?: string | null; spi_confirmation?: boolean; spi_date_envoi?: string | null; spi_date_irrevocabilite?: string | null; spi_date_limite_paiement?: string | null; spi_date_limite_reponse?: string | null; spi_date_rejet?: string | null; spi_debit_differe?: boolean; spi_end2end_id?: string | null; spi_payeur_alias?: string | null; spi_payeur_nom?: string | null; spi_payeur_pays?: string | null; spi_payment_request_category?: APIEnums["spi_payment_request_category"] | null; spi_payment_status?: APIEnums["spi_payment_status"] | null; spi_ref_doc_numero?: string | null; spi_ref_doc_type?: APIEnums["spi_document_type"] | null; spi_rejection_reason?: APIEnums["spi_rejection_reason"] | null; spi_remise_amount?: number | null; spi_remise_rate?: number | null; spi_tx_id?: string | null; status?: APIEnums["transaction_status"]; updated_at?: string; }; Relationships: [ { foreignKeyName: "payment_requests_created_by_fkey"; columns: ["created_by"]; isOneToOne: false; referencedRelation: "merchants"; referencedColumns: ["merchant_id"]; }, { foreignKeyName: "payment_requests_currency_code_fkey"; columns: ["currency_code"]; isOneToOne: false; referencedRelation: "currencies"; referencedColumns: ["code"]; }, { foreignKeyName: "payment_requests_customer_id_fkey"; columns: ["customer_id"]; isOneToOne: false; referencedRelation: "customers"; referencedColumns: ["customer_id"]; }, { foreignKeyName: "payment_requests_organization_id_fkey"; columns: ["organization_id"]; isOneToOne: false; referencedRelation: "organizations"; referencedColumns: ["organization_id"]; } ]; }; transactions: { Row: { checkout_session_id: string | null; created_at: string; currency_code: APIEnums["currency_code"]; customer_id: string; description: string | null; discount_amount: number; environment: string; fee_amount: number; fee_structure_id: string | null; gross_amount: number; is_bnpl: boolean; is_pos: boolean; metadata: Json | null; net_amount: number; organization_id: string; payment_method_code: APIEnums["payment_method_code"]; price_id: string | null; product_id: string | null; provider_code: APIEnums["provider_code"]; quantity: number; spi_account_number: string | null; spi_bulk_instruction_id: string | null; spi_date_envoi: string | null; spi_date_irrevocabilite: string | null; spi_discount_amount: number | null; spi_discount_rate: number | null; spi_end2end_id: string | null; spi_payment_category: APIEnums["spi_payment_category"] | null; spi_payment_flow_type: APIEnums["spi_payment_flow_type"] | null; spi_payment_status: APIEnums["spi_payment_status"] | null; spi_rejection_reason: APIEnums["spi_rejection_reason"] | null; spi_tx_id: string | null; status: APIEnums["transaction_status"]; stripe_payment_intent_id: string | null; subscription_id: string | null; transaction_id: string; transaction_type: APIEnums["transaction_type"]; updated_at: string; }; Insert: { checkout_session_id?: string | null; created_at?: string; currency_code?: APIEnums["currency_code"]; customer_id: string; description?: string | null; discount_amount?: number; environment?: string; fee_amount: number; fee_structure_id?: string | null; gross_amount: number; is_bnpl?: boolean; is_pos?: boolean; metadata?: Json | null; net_amount: number; organization_id: string; payment_method_code: APIEnums["payment_method_code"]; price_id?: string | null; product_id?: string | null; provider_code: APIEnums["provider_code"]; quantity?: number; spi_account_number?: string | null; spi_bulk_instruction_id?: string | null; spi_date_envoi?: string | null; spi_date_irrevocabilite?: string | null; spi_discount_amount?: number | null; spi_discount_rate?: number | null; spi_end2end_id?: string | null; spi_payment_category?: APIEnums["spi_payment_category"] | null; spi_payment_flow_type?: APIEnums["spi_payment_flow_type"] | null; spi_payment_status?: APIEnums["spi_payment_status"] | null; spi_rejection_reason?: APIEnums["spi_rejection_reason"] | null; spi_tx_id?: string | null; status?: APIEnums["transaction_status"]; stripe_payment_intent_id?: string | null; subscription_id?: string | null; transaction_id?: string; transaction_type: APIEnums["transaction_type"]; updated_at?: string; }; Update: { checkout_session_id?: string | null; created_at?: string; currency_code?: APIEnums["currency_code"]; customer_id?: string; description?: string | null; discount_amount?: number; environment?: string; fee_amount?: number; fee_structure_id?: string | null; gross_amount?: number; is_bnpl?: boolean; is_pos?: boolean; metadata?: Json | null; net_amount?: number; organization_id?: string; payment_method_code?: APIEnums["payment_method_code"]; price_id?: string | null; product_id?: string | null; provider_code?: APIEnums["provider_code"]; quantity?: number; spi_account_number?: string | null; spi_bulk_instruction_id?: string | null; spi_date_envoi?: string | null; spi_date_irrevocabilite?: string | null; spi_discount_amount?: number | null; spi_discount_rate?: number | null; spi_end2end_id?: string | null; spi_payment_category?: APIEnums["spi_payment_category"] | null; spi_payment_flow_type?: APIEnums["spi_payment_flow_type"] | null; spi_payment_status?: APIEnums["spi_payment_status"] | null; spi_rejection_reason?: APIEnums["spi_rejection_reason"] | null; spi_tx_id?: string | null; status?: APIEnums["transaction_status"]; stripe_payment_intent_id?: string | null; subscription_id?: string | null; transaction_id?: string; transaction_type?: APIEnums["transaction_type"]; updated_at?: string; }; Relationships: [ { foreignKeyName: "fk_transactions_checkout_session"; columns: ["checkout_session_id"]; isOneToOne: false; referencedRelation: "checkout_sessions"; referencedColumns: ["checkout_session_id"]; }, { foreignKeyName: "transactions_currency_code_fkey"; columns: ["currency_code"]; isOneToOne: false; referencedRelation: "currencies"; referencedColumns: ["code"]; }, { foreignKeyName: "transactions_customer_id_fkey"; columns: ["customer_id"]; isOneToOne: false; referencedRelation: "customers"; referencedColumns: ["customer_id"]; }, { foreignKeyName: "transactions_fee_structure_id_fkey"; columns: ["fee_structure_id"]; isOneToOne: false; referencedRelation: "organization_fee_structure"; referencedColumns: ["fee_structure_id"]; }, { foreignKeyName: "transactions_organization_id_fkey"; columns: ["organization_id"]; isOneToOne: false; referencedRelation: "organizations"; referencedColumns: ["organization_id"]; }, { foreignKeyName: "transactions_payment_method_code_provider_code_fkey"; columns: ["payment_method_code", "provider_code"]; isOneToOne: false; referencedRelation: "payment_methods"; referencedColumns: ["payment_method_code", "provider_code"]; }, { foreignKeyName: "transactions_price_id_fkey"; columns: ["price_id"]; isOneToOne: false; referencedRelation: "prices"; referencedColumns: ["price_id"]; }, { foreignKeyName: "transactions_product_id_fkey"; columns: ["product_id"]; isOneToOne: false; referencedRelation: "products"; referencedColumns: ["product_id"]; }, { foreignKeyName: "transactions_provider_code_fkey"; columns: ["provider_code"]; isOneToOne: false; referencedRelation: "providers"; referencedColumns: ["code"]; }, { foreignKeyName: "transactions_subscription_id_fkey"; columns: ["subscription_id"]; isOneToOne: false; referencedRelation: "subscriptions"; referencedColumns: ["subscription_id"]; } ]; }; refunds: { Row: { amount: number; created_at: string; environment: string; fee_amount: number; metadata: Json | null; reason: string | null; refund_id: string; refunded_amount: number; spi_account_number: string | null; spi_end2end_id: string | null; spi_fund_return_status: APIEnums["spi_payment_status"] | null; spi_motif_code: APIEnums["spi_rejection_reason"] | null; spi_rejection_reason: APIEnums["spi_rejection_reason"] | null; spi_retour_date_demande: string | null; spi_retour_date_irrevocabilite: string | null; spi_tx_id: string | null; status: APIEnums["refund_status"]; transaction_id: string; updated_at: string; }; Insert: { amount: number; created_at?: string; environment?: string; fee_amount?: number; metadata?: Json | null; reason?: string | null; refund_id?: string; refunded_amount: number; spi_account_number?: string | null; spi_end2end_id?: string | null; spi_fund_return_status?: APIEnums["spi_payment_status"] | null; spi_motif_code?: APIEnums["spi_rejection_reason"] | null; spi_rejection_reason?: APIEnums["spi_rejection_reason"] | null; spi_retour_date_demande?: string | null; spi_retour_date_irrevocabilite?: string | null; spi_tx_id?: string | null; status?: APIEnums["refund_status"]; transaction_id: string; updated_at?: string; }; Update: { amount?: number; created_at?: string; environment?: string; fee_amount?: number; metadata?: Json | null; reason?: string | null; refund_id?: string; refunded_amount?: number; spi_account_number?: string | null; spi_end2end_id?: string | null; spi_fund_return_status?: APIEnums["spi_payment_status"] | null; spi_motif_code?: APIEnums["spi_rejection_reason"] | null; spi_rejection_reason?: APIEnums["spi_rejection_reason"] | null; spi_retour_date_demande?: string | null; spi_retour_date_irrevocabilite?: string | null; spi_tx_id?: string | null; status?: APIEnums["refund_status"]; transaction_id?: string; updated_at?: string; }; Relationships: [ { foreignKeyName: "refunds_transaction_id_fkey"; columns: ["transaction_id"]; isOneToOne: false; referencedRelation: "transactions"; referencedColumns: ["transaction_id"]; } ]; }; products: { Row: { charge_day: number | null; created_at: string; created_by: string | null; description: string | null; display_on_storefront: boolean; environment: string; failed_payment_action: APIEnums["failed_payment_action"] | null; first_payment_type: APIEnums["first_payment_type"] | null; image_url: string | null; is_active: boolean; metadata: Json | null; name: string; organization_id: string; product_id: string; product_type: APIEnums["product_type"]; trial_enabled: boolean; trial_period_days: number | null; updated_at: string; usage_aggregation: APIEnums["usage_aggregation"] | null; usage_unit: string | null; }; Insert: { charge_day?: number | null; created_at?: string; created_by?: string | null; description?: string | null; display_on_storefront?: boolean; environment?: string; failed_payment_action?: APIEnums["failed_payment_action"] | null; first_payment_type?: APIEnums["first_payment_type"] | null; image_url?: string | null; is_active?: boolean; metadata?: Json | null; name: string; organization_id: string; product_id?: string; product_type?: APIEnums["product_type"]; trial_enabled?: boolean; trial_period_days?: number | null; updated_at?: string; usage_aggregation?: APIEnums["usage_aggregation"] | null; usage_unit?: string | null; }; Update: { charge_day?: number | null; created_at?: string; created_by?: string | null; description?: string | null; display_on_storefront?: boolean; environment?: string; failed_payment_action?: APIEnums["failed_payment_action"] | null; first_payment_type?: APIEnums["first_payment_type"] | null; image_url?: string | null; is_active?: boolean; metadata?: Json | null; name?: string; organization_id?: string; product_id?: string; product_type?: APIEnums["product_type"]; trial_enabled?: boolean; trial_period_days?: number | null; updated_at?: string; usage_aggregation?: APIEnums["usage_aggregation"] | null; usage_unit?: string | null; }; Relationships: [ { foreignKeyName: "merchant_products_organization_id_fkey"; columns: ["organization_id"]; isOneToOne: false; referencedRelation: "organizations"; referencedColumns: ["organization_id"]; }, { foreignKeyName: "products_created_by_fkey"; columns: ["created_by"]; isOneToOne: false; referencedRelation: "merchants"; referencedColumns: ["merchant_id"]; } ]; }; subscriptions: { Row: { created_at: string; created_by: string | null; customer_id: string; end_date: string | null; environment: string; metadata: Json | null; next_billing_date: string | null; organization_id: string; price_id: string | null; product_id: string; start_date: string; status: APIEnums["subscription_status"]; subscription_id: string; updated_at: string; }; Insert: { created_at?: string; created_by?: string | null; customer_id: string; end_date?: string | null; environment?: string; metadata?: Json | null; next_billing_date?: string | null; organization_id: string; price_id?: string | null; product_id: string; start_date: string; status?: APIEnums["subscription_status"]; subscription_id?: string; updated_at?: string; }; Update: { created_at?: string; created_by?: string | null; customer_id?: string; end_date?: string | null; environment?: string; metadata?: Json | null; next_billing_date?: string | null; organization_id?: string; price_id?: string | null; product_id?: string; start_date?: string; status?: APIEnums["subscription_status"]; subscription_id?: string; updated_at?: string; }; Relationships: [ { foreignKeyName: "merchant_subscriptions_customer_id_fkey"; columns: ["customer_id"]; isOneToOne: false; referencedRelation: "customers"; referencedColumns: ["customer_id"]; }, { foreignKeyName: "merchant_subscriptions_organization_id_fkey"; columns: ["organization_id"]; isOneToOne: false; referencedRelation: "organizations"; referencedColumns: ["organization_id"]; }, { foreignKeyName: "subscriptions_created_by_fkey"; columns: ["created_by"]; isOneToOne: false; referencedRelation: "merchants"; referencedColumns: ["merchant_id"]; }, { foreignKeyName: "subscriptions_price_id_fkey"; columns: ["price_id"]; isOneToOne: false; referencedRelation: "prices"; referencedColumns: ["price_id"]; }, { foreignKeyName: "subscriptions_product_id_fkey"; columns: ["product_id"]; isOneToOne: false; referencedRelation: "products"; referencedColumns: ["product_id"]; } ]; }; discount_coupons: { Row: { applies_to_product_types: APIEnums["product_type"][] | null; code: string; coupon_id: string; created_at: string; current_uses: number; customer_type: APIEnums["customer_type"]; description: string | null; discount_fixed_amount: number | null; discount_percentage: number | null; discount_type: APIEnums["discount_type"]; environment: string; expires_at: string | null; is_active: boolean; max_quantity_per_use: number | null; max_uses: number | null; organization_id: string; scope_type: string; updated_at: string; usage_frequency_limit: APIEnums["usage_frequency"]; usage_limit_value: number | null; valid_from: string | null; }; Insert: { applies_to_product_types?: APIEnums["product_type"][] | null; code: string; coupon_id?: string; created_at?: string; current_uses?: number; customer_type?: APIEnums["customer_type"]; description?: string | null; discount_fixed_amount?: number | null; discount_percentage?: number | null; discount_type?: APIEnums["discount_type"]; environment?: string; expires_at?: string | null; is_active?: boolean; max_quantity_per_use?: number | null; max_uses?: number | null; organization_id: string; scope_type?: string; updated_at?: string; usage_frequency_limit?: APIEnums["usage_frequency"]; usage_limit_value?: number | null; valid_from?: string | null; }; Update: { applies_to_product_types?: APIEnums["product_type"][] | null; code?: string; coupon_id?: string; created_at?: string; current_uses?: number; customer_type?: APIEnums["customer_type"]; description?: string | null; discount_fixed_amount?: number | null; discount_percentage?: number | null; discount_type?: APIEnums["discount_type"]; environment?: string; expires_at?: string | null; is_active?: boolean; max_quantity_per_use?: number | null; max_uses?: number | null; organization_id?: string; scope_type?: string; updated_at?: string; usage_frequency_limit?: APIEnums["usage_frequency"]; usage_limit_value?: number | null; valid_from?: string | null; }; Relationships: [ { foreignKeyName: "discount_coupons_organization_id_fkey"; columns: ["organization_id"]; isOneToOne: false; referencedRelation: "organizations"; referencedColumns: ["organization_id"]; } ]; }; checkout_sessions: { Row: { allow_coupon_code: boolean; allow_quantity: boolean; amount: number; cancel_url: string | null; checkout_session_id: string; created_at: string; created_by: string | null; currency_code: APIEnums["currency_code"]; customer_email: string | null; customer_id: string | null; customer_name: string | null; customer_phone: string | null; description: string | null; environment: string; expires_at: string; installment_plan_id: string | null; is_pos: boolean; is_spi: boolean; metadata: Json | null; organization_id: string; payment_link_id: string | null; payment_request_id: string | null; price_id: string | null; product_id: string | null; qr_code_data: Json | null; qr_code_type: APIEnums["qr_code_type"] | null; quantity: number; require_billing_address: boolean; spi_account_number: string | null; spi_qr_code_id: string | null; status: APIEnums["checkout_session_status"]; subscription_id: string | null; success_url: string | null; title: string | null; updated_at: string; }; Insert: { allow_coupon_code?: boolean; allow_quantity?: boolean; amount: number; cancel_url?: string | null; checkout_session_id?: string; created_at?: string; created_by?: string | null; currency_code: APIEnums["currency_code"]; customer_email?: string | null; customer_id?: string | null; customer_name?: string | null; customer_phone?: string | null; description?: string | null; environment?: string; expires_at: string; installment_plan_id?: string | null; is_pos?: boolean; is_spi?: boolean; metadata?: Json | null; organization_id: string; payment_link_id?: string | null; payment_request_id?: string | null; price_id?: string | null; product_id?: string | null; qr_code_data?: Json | null; qr_code_type?: APIEnums["qr_code_type"] | null; quantity?: number; require_billing_address?: boolean; spi_account_number?: string | null; spi_qr_code_id?: string | null; status?: APIEnums["checkout_session_status"]; subscription_id?: string | null; success_url?: string | null; title?: string | null; updated_at?: string; }; Update: { allow_coupon_code?: boolean; allow_quantity?: boolean; amount?: number; cancel_url?: string | null; checkout_session_id?: string; created_at?: string; created_by?: string | null; currency_code?: APIEnums["currency_code"]; customer_email?: string | null; customer_id?: string | null; customer_name?: string | null; customer_phone?: string | null; description?: string | null; environment?: string; expires_at?: string; installment_plan_id?: string | null; is_pos?: boolean; is_spi?: boolean; metadata?: Json | null; organization_id?: string; payment_link_id?: string | null; payment_request_id?: string | null; price_id?: string | null; product_id?: string | null; qr_code_data?: Json | null; qr_code_type?: APIEnums["qr_code_type"] | null; quantity?: number; require_billing_address?: boolean; spi_account_number?: string | null; spi_qr_code_id?: string | null; status?: APIEnums["checkout_session_status"]; subscription_id?: string | null; success_url?: string | null; title?: string | null; updated_at?: string; }; Relationships: [ { foreignKeyName: "checkout_sessions_created_by_fkey"; columns: ["created_by"]; isOneToOne: false; referencedRelation: "merchants"; referencedColumns: ["merchant_id"]; }, { foreignKeyName: "checkout_sessions_currency_code_fkey"; columns: ["currency_code"]; isOneToOne: false; referencedRelation: "currencies"; referencedColumns: ["code"]; },