import type { ApiClient } from "@promobase/sdk-runtime"; import { Cursor } from "@promobase/sdk-runtime"; import type { BusinessFields } from "./business.ts"; import type { CRMAddressFields } from "./crm-address.ts"; import type { CurrencyAmountFields } from "./currency-amount.ts"; import type { ExtendedCreditAllocationConfigFields } from "./extended-credit-allocation-config.ts"; import type { ExtendedCreditInvoiceGroupFields } from "./extended-credit-invoice-group.ts"; export interface ExtendedCreditFields { allocated_amount: CurrencyAmountFields; balance: CurrencyAmountFields; credit_available: CurrencyAmountFields; credit_type: string; id: string; is_access_revoked: boolean; is_automated_experience: boolean; legal_entity_name: string; liable_address: CRMAddressFields; liable_biz_name: string; max_balance: CurrencyAmountFields; online_max_balance: CurrencyAmountFields; owner_business: BusinessFields; owner_business_name: string; partition_from: string; receiving_credit_allocation_config: ExtendedCreditAllocationConfigFields; send_bill_to_address: CRMAddressFields; send_bill_to_biz_name: string; sold_to_address: CRMAddressFields; } export interface ExtendedCreditCreateExtendedCreditInvoiceGroupsParams { emails: string[]; name: string; [key: string]: unknown; } export interface ExtendedCreditListOwningCreditAllocationConfigsParams { receiving_business_id?: string; [key: string]: unknown; } export interface ExtendedCreditCreateOwningCreditAllocationConfigsParams { amount?: Record; liability_type?: string; partition_type?: string; receiving_business_id: string; send_bill_to?: string; [key: string]: unknown; } export interface ExtendedCreditCreateWhatsappCreditAttachParams { waba_currency: string; waba_id: string; [key: string]: unknown; } export interface ExtendedCreditCreateWhatsappCreditSharingParams { receiving_business_id: string; [key: string]: unknown; } export interface ExtendedCreditCreateWhatsappCreditSharingAndAttachParams { waba_currency: string; waba_id: string; [key: string]: unknown; } export declare function extendedCreditNode(client: ApiClient, id: string): { __path: string; __brand: ExtendedCreditFields; get: (opts: { fields: F; params?: Record; }) => Promise>; extendedCreditInvoiceGroups: { __path: string; __brand: ExtendedCreditInvoiceGroupFields; list: (opts: { fields: F; params?: Record; }) => Cursor>; create: (params: ExtendedCreditCreateExtendedCreditInvoiceGroupsParams) => Promise; }; owningCreditAllocationConfigs: { __path: string; __brand: ExtendedCreditAllocationConfigFields; list: (opts: { fields: F; params?: ExtendedCreditListOwningCreditAllocationConfigsParams; }) => Cursor>; create: (params: ExtendedCreditCreateOwningCreditAllocationConfigsParams) => Promise; }; createWhatsappCreditAttach: (params: ExtendedCreditCreateWhatsappCreditAttachParams) => Promise>; createWhatsappCreditSharing: (params: ExtendedCreditCreateWhatsappCreditSharingParams) => Promise>; createWhatsappCreditSharingAndAttach: (params: ExtendedCreditCreateWhatsappCreditSharingAndAttachParams) => Promise; }; //# sourceMappingURL=extended-credit.d.ts.map