export type UtmCampaign = {utm_source?: string | undefined, utm_medium?: string | undefined, utm_campaign?: string | undefined, utm_term?: string | undefined, utm_content?: string | undefined}; export type Address = {address_line: string, address_line_2?: string | undefined, postal_code?: string | undefined, postal_place: string, country: unknown}; export type AccountCompanyTerms = {type?: ('all' | 'sales' | 'cookies' | 'privacy') | undefined, href?: string | undefined}; export type AccountCompanyContact = {phone_number?: string | undefined, email?: string | undefined, website?: string | undefined, type?: ('support' | 'disputes') | undefined}; export type AccountCompany = {business_name: string, display_name?: string | undefined, organization_number?: string | undefined, industry?: string | undefined, website?: string | undefined, terms_url?: string | undefined, bank_name?: string | undefined, account_number?: string | undefined, address: Address, email?: string | undefined, technical_email?: string | undefined, phone_number?: string | undefined, branding?: ({icon_url?: string | undefined, logo_url?: string | undefined}) | undefined, merchant_category_code?: unknown | undefined, average_transaction_value?: string | undefined, most_expensive_product_price?: string | undefined, projected_sales?: string | undefined, terms?: Array | undefined, contacts?: Array | undefined, public_business_name?: string | undefined}; export type AccountBillingStatement = {name?: string | undefined, phone_number?: string | undefined}; export type AccountBilling = {business_name: string, organization_number?: string | undefined, address: Address, email?: string | undefined, reference?: string | undefined, phone_number?: string | undefined, billing_statement?: AccountBillingStatement | undefined}; export type Subscription = {interval: 'month' | 'year', plan: 'transaction_fee' | 'per_customer_fee', support?: ('office_hours' | '24_7_extended') | undefined, metadata?: Record | undefined}; export type Attachment = {ref: string, href: string}; export type ReportedVolume = {type: 'monthly' | 'weekly', period: unknown, currency: unknown, volume: number, count: number}; export type ServiceFeatureStatus = 'declined' | 'disabled' | 'enabled' | 'pending'; export type ServiceFeature = {created_by?: string | undefined, created_at?: unknown | undefined, updated_by?: string | undefined, updated_at?: unknown | undefined, requested: 'enable' | 'disable', status: ServiceFeatureStatus}; export type CheckoutServiceFeatures = {applepay?: ServiceFeature | undefined, billie?: ServiceFeature | undefined, clicktopay?: ServiceFeature | undefined, collector?: ServiceFeature | undefined, creditcard?: ServiceFeature | undefined, googlepay?: ServiceFeature | undefined, instabank?: ServiceFeature | undefined, klarna?: ServiceFeature | undefined, mobilepay?: ServiceFeature | undefined, santander?: ServiceFeature | undefined, swish?: ServiceFeature | undefined, vipps?: ServiceFeature | undefined, kravia?: ServiceFeature | undefined, two?: ServiceFeature | undefined, ipp?: ({created_by?: string | undefined, created_at?: unknown | undefined, updated_by?: string | undefined, updated_at?: unknown | undefined, requested: 'enable' | 'disable', status: ServiceFeatureStatus, sandbox_requested?: ('enable' | 'disable') | undefined, sandbox_status?: ServiceFeatureStatus | undefined}) | undefined}; export type AccountCheckoutGateway = {created_at?: string | undefined, created_by?: string | undefined, progression?: ('not_applied' | 'waiting_for_dintero' | 'waiting_for_gateway' | 'waiting_for_merchant' | 'rejected' | 'live' | 'frozen' | 'deactivated') | undefined}; export type PayoutServiceFeatures = {split_payment?: ServiceFeature | undefined, daily_payouts?: ServiceFeature | undefined}; export type AccountService = {created_at?: string | undefined, created_by?: string | undefined, updated_at?: string | undefined, updated_by?: string | undefined, status?: ('enabled' | 'disabled') | undefined, progression?: ('not_applied' | 'applied' | 'live' | 'frozen' | 'deactivated') | undefined, metadata?: Record | undefined}; export type AccountConnectionEvent = {id?: string | undefined, created_at?: string | undefined, created_by?: string | undefined, status: 'pending' | 'enabled' | 'failed' | 'declined', event: string, description?: string | undefined, metadata: unknown}; export type ApplePayPaymentOptions = Array<{currencies: Array, type: 'dintero_psp.applepay', details?: ({domain_names?: Array | undefined}) | undefined}>; export type ApplePayConnection = {created_at?: string | undefined, created_by?: string | undefined, updated_at?: string | undefined, metadata?: Record | undefined, status?: ('pending' | 'enabled' | 'failed' | 'declined') | undefined, events?: Array | undefined, schema?: number | undefined, configuration: {payment_options: Array<{currencies: Array, type: 'dintero_psp.applepay', details?: ({domain_names?: Array | undefined}) | undefined}>, merchant_id: string}, signups: Array<{case_id: string, payment_options: ApplePayPaymentOptions, domain_names?: Array | undefined, created_at: string}>}; export type BamboraPaymentOptions = Array<{currencies: Array, type: 'bambora.creditcard' | 'bambora.mobilepay' | 'bambora.vipps' | 'bambora.applepay'}>; export type BamboraConnection = {created_at?: string | undefined, created_by?: string | undefined, updated_at?: string | undefined, metadata?: Record | undefined, status?: ('pending' | 'enabled' | 'failed' | 'declined') | undefined, events?: Array | undefined, schema?: number | undefined, configuration?: ({payment_options: Array<{currencies: Array, type: string}>, merchant_number: string, md5_key: string, access_token?: number | undefined, secret_token?: string | undefined, token_scope?: string | undefined}) | undefined, direct_signups?: (Array<{case_id: string, merchant_number: string, md5_key: string, payment_options: BamboraPaymentOptions, signup_id: string, created_at: string, callback_at?: string | undefined}>) | undefined, signup?: ({payment_options: BamboraPaymentOptions, store_type?: (Array<'online' | 'instore' | 'remote'>) | undefined, revenue: {currency?: unknown | undefined, yearly_revenue?: string | undefined, highest_transaction_amount?: string | undefined, average_amount?: string | undefined, accept_prepaid?: boolean | undefined, subscriptions_or_memberships?: boolean | undefined, gift_cards?: boolean | undefined}, bank_name: string, account_number: string, ownership?: ({ownership_structure?: ('owners_with_more_than_25' | 'no_owners_with_more_than_25' | 'complex') | undefined, owners?: (Array<{name?: string | undefined, legal_name?: string | undefined, date_of_birth?: string | undefined, percentage?: number | undefined}>) | undefined}) | undefined, verifications?: ({terms_and_conditions?: boolean | undefined, terms_and_conditions_url?: string | undefined, contact_information?: boolean | undefined, payment_site?: boolean | undefined, clear_pricing?: boolean | undefined, payment_product_logos?: boolean | undefined}) | undefined, signature?: ({signatures?: (Array<{name?: string | undefined, email?: string | undefined}>) | undefined, politically_exposed_person?: boolean | undefined, politically_exposed_associated?: boolean | undefined}) | undefined, applicant?: ({phone_number?: unknown | undefined}) | undefined, created_at: string, callback_at?: string | undefined}) | undefined, submerchant_signups?: (Array<{case_id: string, merchant_number?: string | undefined, md5_key?: string | undefined, payment_options: BamboraPaymentOptions, mcc?: unknown | undefined, created_at: string, callback_at?: string | undefined}>) | undefined}; export type CollectorConnection = {created_at?: string | undefined, created_by?: string | undefined, updated_at?: string | undefined, metadata?: Record | undefined, status?: ('pending' | 'enabled' | 'failed' | 'declined') | undefined, events?: Array | undefined, schema?: number | undefined, configuration?: ({payment_options: Array<{currencies: Array, type: 'collector.invoice' | 'collector.invoice_b2b' | 'collector.installment'}>, username?: string | undefined, store_id?: number | undefined, country?: unknown | undefined}) | undefined, signup: {business_name?: string | undefined, legal_name: string, organization_number: string, bank_name: string, account_number: string, website: string, payment_options: Array<{currencies: Array, type: 'collector.invoice' | 'collector.installment'}>, created_at: string, url: string, callback_at?: string | undefined}}; export type PaymentOptions = Array<{currencies?: Array | undefined, type?: ('dintero.zero' | 'swish.swish' | 'payex.creditcard' | 'payex.vipps' | 'payex.mobilepay' | 'collector.invoice' | 'collector.installment' | 'collector.invoice_b2b' | 'instabank.finance' | 'instabank.invoice' | 'instabank.postponement' | 'instabank.installment' | 'vipps' | 'bambora.creditcard' | 'bambora.mobilepay' | 'bambora.vipps' | 'klarna.klarna' | 'klarna.billie') | undefined}>; export type CommonConnection = {created_at?: string | undefined, created_by?: string | undefined, updated_at?: string | undefined, metadata?: Record | undefined, status?: ('pending' | 'enabled' | 'failed' | 'declined') | undefined, events?: Array | undefined, schema?: number | undefined, signup: {payment_options: PaymentOptions, store_type: Array<'online' | 'instore' | 'remote'>, package?: string | undefined, revenue?: ({currency?: unknown | undefined, yearly_revenue?: string | undefined, highest_transaction_amount?: string | undefined, average_amount?: string | undefined, accept_prepaid?: boolean | undefined, subscriptions_or_memberships?: boolean | undefined, gift_cards?: boolean | undefined, estimated_percentage_per_payment_type?: (Array<{percentage?: number | undefined, type?: ('swish.swish' | 'payex.creditcard' | 'payex.vipps' | 'payex.mobilepay' | 'collector.invoice' | 'collector.installment' | 'collector.invoice_b2b' | 'instabank.finance' | 'instabank.invoice' | 'instabank.postponement' | 'instabank.installment' | 'vipps' | 'bambora.creditcard' | 'bambora.mobilepay' | 'bambora.vipps') | undefined}>) | undefined}) | undefined, bank_accounts?: (Array<{account_number?: string | undefined, account_number_type?: ('iban' | 'mod11') | undefined, bank_name?: string | undefined, account_statement_url?: string | undefined}>) | undefined, ownership?: ({ownership_structure?: ('owners_with_more_than_25' | 'no_owners_with_more_than_25' | 'complex') | undefined, owners?: (Array<{name?: string | undefined, legal_name?: string | undefined, date_of_birth?: string | undefined, social_security_number?: string | undefined, percentage?: number | undefined, address?: Address | undefined}>) | undefined}) | undefined, verifications?: ({terms_and_conditions?: boolean | undefined, terms_and_conditions_url?: string | undefined, contact_information?: boolean | undefined, payment_site?: boolean | undefined, payment_site_url?: string | undefined, demo_site_url?: string | undefined, clear_pricing?: boolean | undefined, payment_product_logos?: boolean | undefined}) | undefined, signature?: ({signatures?: (Array<{name?: string | undefined, email?: string | undefined}>) | undefined, politically_exposed_person?: boolean | undefined, politically_exposed_associated?: boolean | undefined}) | undefined, applicant?: ({first_name?: string | undefined, last_name?: string | undefined, email?: string | undefined, phone_number?: unknown | undefined, social_security_number?: string | undefined}) | undefined, company_information?: ({industry?: ('goods' | 'services' | 'subscriptions_or_memberships' | 'charity' | 'travel_and_entertainment' | 'food_and_beverages' | 'other') | undefined, company_category?: ('4722' | '5021' | '5045' | '5122' | '5211' | '5399' | '5499' | '5691' | '5699' | '5712' | '5719' | '5732' | '5811' | '5812' | '5813' | '5814' | '5816' | '5817' | '5932' | '5941' | '5944' | '5945' | '5971' | '5977' | '5993' | '5999' | '7011' | '7033' | '7298' | '7299' | '7392' | '7399' | '7512' | '7922' | '7929' | '7991' | '7997' | '7999' | '8299' | '8398' | '8641' | '8699' | '8999') | undefined, mcc?: ({mcc?: string | undefined, range?: ({start?: string | undefined, end?: string | undefined, description?: string | undefined, reserved?: boolean | undefined}) | undefined, iso_description?: string | undefined, usda_description?: string | undefined, stripe_description?: string | undefined, stripe_code?: string | undefined, visa_description?: string | undefined, visa_req_clearing_name?: string | undefined}) | undefined, company_description?: string | undefined}) | undefined, payment_method_specific?: ({payex?: ({signup_url?: string | undefined}) | undefined, instabank?: {total_number_of_transactions: string, total_volume_of_transactions: string, finance_number_of_transactions: string, finance_volume_of_transactions: string} | undefined, vipps?: ({signup_url?: string | undefined}) | undefined}) | undefined, created_at: string}}; export type DinteroPspPaymentOptions = Array<{currencies: Array, type: 'dintero_psp.creditcard'}>; export type DinteroPspConnection = {created_at?: string | undefined, created_by?: string | undefined, updated_at?: string | undefined, metadata?: Record | undefined, status?: ('pending' | 'enabled' | 'failed' | 'declined') | undefined, events?: Array | undefined, schema?: number | undefined, configuration?: ({payment_options: Array<{currencies: Array, type: string}>, visa_net_client_id?: string | undefined, acquirer_merchant_id?: string | undefined, vipps_merchant_serial_number?: string | undefined, visa_token_client_app_id?: string | undefined, visa_token_relationship_id?: string | undefined, mastercard_token_src_dpa_id?: string | undefined, mastercard_token_service_id?: string | undefined, google_pay_merchant_gateway_id?: string | undefined}) | undefined, signups: Array<{case_id: string, payment_options: DinteroPspPaymentOptions, created_at: string}>}; export type InstabankConnection = {created_at?: string | undefined, created_by?: string | undefined, updated_at?: string | undefined, metadata?: Record | undefined, status?: ('pending' | 'enabled' | 'failed' | 'declined') | undefined, events?: Array | undefined, schema?: number | undefined, configuration?: ({payment_options: Array<{currencies: Array, type: 'instabank.invoice' | 'instabank.finance'}>, payment_product_codes?: {'instabank.finance': string, 'instabank.invoice': string} | undefined, organization_number?: string | undefined}) | undefined, signup: {email: string, phone_number: unknown, total_number_of_transactions: string, total_volume_of_transactions: string, finance_number_of_transactions: string, finance_volume_of_transactions: string, industry: string, account_number: unknown, payment_options: Array<{type: 'instabank.invoice' | 'instabank.finance'}>, created_at: string, callback_at?: string | undefined}}; export type KlarnaPaymentOptions = Array<{currencies: Array, type: 'klarna.klarna' | 'klarna.billie'}>; export type KlarnaConnection = {created_at?: string | undefined, created_by?: string | undefined, updated_at?: string | undefined, metadata?: Record | undefined, status?: ('pending' | 'enabled' | 'failed' | 'declined') | undefined, events?: Array | undefined, schema?: number | undefined, configuration?: ({payment_options: Array<{currencies: Array, type: 'klarna.klarna' | 'klarna.billie'}>, credentials?: Array<{case_id: string, merchant_id: string, username: string}> | undefined}) | undefined, signups: Array<{case_id: string, payment_options: KlarnaPaymentOptions, price_package?: string | undefined, mcc?: unknown | undefined, created_at: string, callback_at?: string | undefined}>}; export type KraviaConnectionSettlementType = 'direct' | 'via_dintero'; export type KraviaPaymentOptions = Array<{currencies: Array, type: 'kravia.invoice_b2b' | 'kravia.invoice_b2c' | 'kravia.invoice_b2b_grouped'}>; export type InvoiceChannel = 'merchant' | 'kravia'; export type KraviaConnectionConfiguration = {credentials?: (Array<{case_id: string, merchant_id: string, settlement_type?: KraviaConnectionSettlementType | undefined}>) | undefined, payment_options?: KraviaPaymentOptions | undefined, supported_invoice_channels?: Array | undefined}; export type KraviaConnection = {configuration?: KraviaConnectionConfiguration | undefined, signups: Array<{case_id: string, payment_options: KraviaPaymentOptions, settlement_type?: KraviaConnectionSettlementType | undefined, created_at: string}>, created_at?: string | undefined, created_by?: string | undefined, updated_at?: string | undefined, metadata?: Record | undefined, status?: ('pending' | 'enabled' | 'failed' | 'declined') | undefined, events?: Array | undefined, schema?: number | undefined}; export type Mastercard3DSConnection = {configuration?: ({status: 'enabled' | 'failed' | 'pending' | 'declined'}) | undefined, events?: (Array<{id?: string | undefined, created_at: string, created_by?: string | undefined, status: 'pending' | 'enabled' | 'failed' | 'declined', event: string, description?: string | undefined, metadata: unknown}>) | undefined, signups: Array<{case_id: string, created_at: string}>, created_at?: string | undefined, created_by?: string | undefined, updated_at?: string | undefined, metadata?: Record | undefined, status?: ('pending' | 'enabled' | 'failed' | 'declined') | undefined, schema?: number | undefined}; export type MastercardTokenizationConnectionConfiguration = {token_src_dpa_id: string, token_service_id: string}; export type MastercardTokenizationConnection = {configuration?: MastercardTokenizationConnectionConfiguration | undefined, signups: Array<{case_id: string, created_at: string}>, created_at?: string | undefined, created_by?: string | undefined, updated_at?: string | undefined, metadata?: Record | undefined, status?: ('pending' | 'enabled' | 'failed' | 'declined') | undefined, events?: Array | undefined, schema?: number | undefined}; export type PayExConnectionSignupContact = {name: string, phone_number: unknown, email: string}; export type PayExConnection = {created_at?: string | undefined, created_by?: string | undefined, updated_at?: string | undefined, metadata?: Record | undefined, status?: ('pending' | 'enabled' | 'failed' | 'declined') | undefined, events?: Array | undefined, schema?: number | undefined, configuration?: ({payment_options: Array<{currencies: Array, type: 'payex.creditcard'}>, payee_id?: string | undefined, subsite?: string | undefined}) | undefined, signup: {business_name?: string | undefined, legal_name?: string | undefined, organization_number?: string | undefined, applicant_contact?: PayExConnectionSignupContact | undefined, accounting_contact?: PayExConnectionSignupContact | undefined, bank_name?: string | undefined, account_number?: string | undefined, website?: string | undefined, payment_options: Array<{currencies: Array, type: 'payex.creditcard'}>, created_at: string, url: string, callback_at?: string | undefined}}; export type PayExConnectionV2 = {created_at?: string | undefined, created_by?: string | undefined, updated_at?: string | undefined, metadata?: Record | undefined, status?: ('pending' | 'enabled' | 'failed' | 'declined') | undefined, events?: Array | undefined, schema?: number | undefined, configuration?: ({payment_options: Array<{currencies: Array, type: 'payex.creditcard' | 'payex.swish' | 'payex.vipps'}>, payee_id?: string | undefined, subsite?: string | undefined}) | undefined, creditcard?: PayExConnection | undefined, signup: {business_name?: string | undefined, legal_name?: string | undefined, organization_number?: string | undefined, applicant_contact?: PayExConnectionSignupContact | undefined, accounting_contact?: PayExConnectionSignupContact | undefined, bank_name?: string | undefined, account_number?: string | undefined, website?: string | undefined, payment_options: Array<{currencies: Array, type: 'payex.creditcard'}>, created_at: string, url: string, callback_at?: string | undefined}}; export type SwishConnection = {created_at?: string | undefined, created_by?: string | undefined, updated_at?: string | undefined, metadata?: Record | undefined, status?: ('pending' | 'enabled' | 'failed' | 'declined') | undefined, events?: Array | undefined, schema?: number | undefined, configuration?: ({payment_options: Array<{currencies: Array, type: 'swish.swish'}>, swish_number?: string | undefined}) | undefined, signups?: (Array<{type?: ('direct' | 'payfac') | undefined, created_at?: string | undefined, callback_at?: string | undefined, data?: ({business_name?: string | undefined, legal_name?: string | undefined, organization_number?: string | undefined, bank_name?: string | undefined, account_number?: string | undefined, website?: string | undefined, case_id?: string | undefined, swish_number?: string | undefined, payment_options?: (Array<{currencies?: Array | undefined, type?: 'swish.swish' | undefined}>) | undefined}) | undefined}>) | undefined, signup?: ({business_name?: string | undefined, legal_name: string, organization_number: string, bank_name?: string | undefined, account_number?: string | undefined, website: string, payment_options: Array<{currencies: Array, type: 'swish.swish'}>, created_at: string, callback_at?: string | undefined}) | undefined}; export type TwoPaymentOptions = Array<{currencies: Array, type: 'two.invoice_b2b'}>; export type TwoConnection = {created_at?: string | undefined, created_by?: string | undefined, updated_at?: string | undefined, metadata?: Record | undefined, status?: ('pending' | 'enabled' | 'failed' | 'declined') | undefined, events?: Array | undefined, schema?: number | undefined, configuration?: ({payment_options: Array<{currencies: Array, type: 'two.invoice_b2b'}>, merchant_id?: string | undefined}) | undefined, signups: Array<{case_id: string, payment_options: TwoPaymentOptions, created_at: string}>}; export type VippsConnection = {created_at?: string | undefined, created_by?: string | undefined, updated_at?: string | undefined, metadata?: Record | undefined, status?: ('pending' | 'enabled' | 'failed' | 'declined') | undefined, events?: Array | undefined, schema?: number | undefined, configuration?: ({payment_options: Array<{currencies: Array, type: 'vipps'}>, merchant_name?: string | undefined, created_time?: string | undefined, merchant_serial_number?: string | undefined, client_id?: string | undefined, subscription_keys?: (Array<{product?: string | undefined, ocp_apim_subscription_key?: string | undefined}>) | undefined}) | undefined, signup: {created_at: string, id?: string | undefined, url?: string | undefined, callback_at?: string | undefined, expires_at?: string | undefined}}; export type VippsPspPaymentOptions = Array<{currencies: Array, type: 'dintero_psp.vipps'}>; export type VippsPspConnection = {created_at?: string | undefined, created_by?: string | undefined, updated_at?: string | undefined, metadata?: Record | undefined, status?: ('pending' | 'enabled' | 'failed' | 'declined') | undefined, events?: Array | undefined, schema?: number | undefined, configuration?: {payment_options: Array<{currencies: Array, type: 'dintero_psp.vipps'}>, merchant_serial_number: string} | undefined, signups: Array<{case_id: string, payment_options: VippsPspPaymentOptions, logo: string, created_at: string}>}; export type VisaTokenizationConnectionConfiguration = {client_app_id: string, relationship_id: string}; export type VisaTokenizationConnection = {configuration?: VisaTokenizationConnectionConfiguration | undefined, signups: Array<{case_id: string, created_at: string}>, created_at?: string | undefined, created_by?: string | undefined, updated_at?: string | undefined, metadata?: Record | undefined, status?: ('pending' | 'enabled' | 'failed' | 'declined') | undefined, events?: Array | undefined, schema?: number | undefined}; export type SeitatechPaymentOptions = Array<{currencies: Array, type: 'seitatech.in_person'}>; export type SeitatechConnection = {created_at?: string | undefined, created_by?: string | undefined, updated_at?: string | undefined, metadata?: Record | undefined, status?: ('pending' | 'enabled' | 'failed' | 'declined') | undefined, events?: Array | undefined, schema?: number | undefined, configuration?: {payment_options: Array<{currencies: Array, type: string}>} | undefined, signups: Array<{case_id: string, payment_options: SeitatechPaymentOptions, created_at: string}>}; export type PartnerConfiguration = {default_price_package?: string | undefined}; export type ExtendedAccount = {id?: string | undefined, created_at?: string | undefined, created_by?: string | undefined, updated_at?: string | undefined, deleted_by?: string | undefined, deleted_at?: string | undefined, jwks?: {name: string, uri: string} | undefined, payment_case_status?: ('ACTIVE' | 'DECLINED' | 'UNDER_MANUAL_REVIEW' | 'AUTOMATIC_REVIEW' | 'WAITING_FOR_SIGNATURE' | 'WAITING_FOR_DECLARATION' | 'ERROR' | 'ARCHIVED' | 'WAITING_FOR_DETAILS' | 'TERMINATED') | undefined, projected_sales?: string | undefined, average_transaction_value?: string | undefined, merchant_category_code?: unknown | undefined, delivery_timeline?: ('P0W' | 'P1D' | 'P2D' | 'P5D' | 'P2W' | 'P4W' | 'P12W' | 'P1Y') | undefined, most_expensive_product_price?: string | undefined, gift_card_revenue_percentage?: string | undefined, credit_rating?: string | undefined, prev_credit_rating?: string | undefined, currency?: ('NOK' | 'SEK' | 'DKK' | 'EUR') | undefined, applicant: {first_name?: string | undefined, last_name?: string | undefined, email: string, phone_number?: unknown | undefined, agreement: {name?: string | undefined, version?: string | undefined, personal_guarantee_accepted?: boolean | undefined, attachments?: (Array<{name?: string | undefined, version?: string | undefined}>) | undefined, accepted_at?: string | undefined}, recaptcha_sitekey?: string | undefined, recaptcha_response?: string | undefined, promo_code?: string | undefined, signup_reference?: string | undefined, utm?: UtmCampaign | undefined}, company: AccountCompany, billing: AccountBilling, subscription?: Subscription | undefined, attachments?: Array | undefined, account_id?: string | undefined, partner_id?: unknown | undefined, livemode?: boolean | undefined, active?: boolean | undefined, language_code?: string | undefined, platform_type?: ('marketplace' | 'aggregator') | undefined, allowed_merchant_category_codes?: Array | undefined, progression?: ('applied' | 'live' | 'frozen' | 'deactivated') | undefined, reseller_id?: string | undefined, account_manager?: {email: string} | undefined, permissions?: (Array<{effect: 'allow' | 'deny', action: Array<'checkout:auto_capture' | 'notifications:publish'>}>) | undefined, sale_channel?: ('DIRECT' | 'INBOUND' | 'PARTNER' | 'REFERRAL') | undefined, price_package?: string | undefined, statistics?: ({checkout_captures?: Array | undefined, metrics?: ({'checkout:transaction:first_capture_at'?: unknown | undefined, 'checkout:transaction:last_capture_at'?: unknown | undefined}) | undefined}) | undefined, services?: ({checkout?: ({features: CheckoutServiceFeatures, created_at?: string | undefined, created_by?: string | undefined, updated_at?: string | undefined, updated_by?: string | undefined, status?: ('enabled' | 'disabled') | undefined, progression?: ('not_applied' | 'applied' | 'live' | 'frozen' | 'deactivated') | undefined, metadata?: Record | undefined, gateways?: ({santander?: AccountCheckoutGateway | undefined, collector?: AccountCheckoutGateway | undefined, instabank?: AccountCheckoutGateway | undefined, vipps?: AccountCheckoutGateway | undefined, swish?: AccountCheckoutGateway | undefined, bambora?: AccountCheckoutGateway | undefined, payex?: ({creditcard?: AccountCheckoutGateway | undefined, swish?: AccountCheckoutGateway | undefined}) | undefined, klarna?: AccountCheckoutGateway | undefined, dintero_psp?: AccountCheckoutGateway | undefined, kravia?: AccountCheckoutGateway | undefined, two?: AccountCheckoutGateway | undefined, seitatech?: AccountCheckoutGateway | undefined}) | undefined}) | undefined, payout?: ({features: {created_at?: string | undefined, created_by?: string | undefined, updated_at?: string | undefined, updated_by?: string | undefined, status?: ('enabled' | 'disabled') | undefined, progression?: ('not_applied' | 'applied' | 'live' | 'frozen' | 'deactivated') | undefined, metadata?: Record | undefined, features?: PayoutServiceFeatures | undefined, split_payment?: ServiceFeature | undefined, daily_payouts?: ServiceFeature | undefined}, created_at?: string | undefined, created_by?: string | undefined, updated_at?: string | undefined, updated_by?: string | undefined, status?: ('enabled' | 'disabled') | undefined, progression?: ('not_applied' | 'applied' | 'live' | 'frozen' | 'deactivated') | undefined, metadata?: Record | undefined}) | undefined, customers?: AccountService | undefined, discounts?: AccountService | undefined, shopping?: AccountService | undefined, receipts?: AccountService | undefined, wallets?: AccountService | undefined, ledger?: AccountService | undefined}) | undefined, connections?: ({applepay?: ApplePayConnection | undefined, bambora?: BamboraConnection | undefined, collector?: CollectorConnection | undefined, common?: CommonConnection | undefined, dintero_psp?: DinteroPspConnection | undefined, instabank?: InstabankConnection | undefined, klarna?: KlarnaConnection | undefined, kravia?: KraviaConnection | undefined, mastercard_3ds?: Mastercard3DSConnection | undefined, mastercard_tokenization?: MastercardTokenizationConnection | undefined, payex?: PayExConnectionV2 | undefined, swish?: SwishConnection | undefined, two?: TwoConnection | undefined, vipps?: VippsConnection | undefined, vipps_psp?: VippsPspConnection | undefined, visa_tokenization?: VisaTokenizationConnection | undefined, seitatech?: SeitatechConnection | undefined}) | undefined, approvals_payments_statuses?: ({ACTIVE?: number | undefined, DECLINED?: number | undefined, UNDER_MANUAL_REVIEW?: number | undefined, AUTOMATIC_REVIEW?: number | undefined, WAITING_FOR_SIGNATURE?: number | undefined, WAITING_FOR_DECLARATION?: number | undefined, WAITING_FOR_DETAILS?: number | undefined, ERROR?: number | undefined, ARCHIVED?: number | undefined, TERMINATED?: number | undefined}) | undefined, approvals_payout_destinations_statuses?: ({ACTIVE?: number | undefined, DECLINED?: number | undefined, UNDER_MANUAL_REVIEW?: number | undefined, AUTOMATIC_REVIEW?: number | undefined, WAITING_FOR_SIGNATURE?: number | undefined, WAITING_FOR_DECLARATION?: number | undefined, WAITING_FOR_DETAILS?: number | undefined, ERROR?: number | undefined, ARCHIVED?: number | undefined, TERMINATED?: number | undefined}) | undefined, configuration?: PartnerConfiguration | undefined}; export type ApprovalsPaymentProduct = 'checkout' | 'split_payment'; export type CddCaseUpdateEvent = {account_id: string, event: 'cdd_case_update', event_delivery: string, account: ExtendedAccount, payout_case?: ({id: string, created_at: string, created_by?: string | undefined, updated_at: string, deleted_at?: string | undefined, deleted_by?: string | undefined, payout_reference: string, organization_number: string, case_status?: ('ACTIVE' | 'DECLINED' | 'UNDER_MANUAL_REVIEW' | 'AUTOMATIC_REVIEW' | 'WAITING_FOR_SIGNATURE' | 'WAITING_FOR_DECLARATION' | 'ERROR' | 'ARCHIVED' | 'WAITING_FOR_DETAILS') | undefined, previous_case_status?: ('ACTIVE' | 'DECLINED' | 'UNDER_MANUAL_REVIEW' | 'AUTOMATIC_REVIEW' | 'WAITING_FOR_SIGNATURE' | 'WAITING_FOR_DECLARATION' | 'ERROR' | 'ARCHIVED' | 'WAITING_FOR_DETAILS') | undefined, products: Array<{product: ApprovalsPaymentProduct}>, payment_methods?: (Array<{payment_method: 'creditcard' | 'applepay' | 'clicktopay' | 'vipps' | 'swish' | 'mobilepay' | 'klarna' | 'walley' | 'santander' | 'netaxept' | 'instabank' | 'googlepay' | 'billie'}>) | undefined}) | undefined, payout_destination_case?: ({id: string, created_at: string, created_by?: string | undefined, updated_at: string, payout_destination_id: string, payout_destination_name?: string | undefined, payout_destination_description?: string | undefined, payout_reference: string, organization_number: string, case_status: 'ACTIVE' | 'DECLINED' | 'UNDER_MANUAL_REVIEW' | 'AUTOMATIC_REVIEW' | 'WAITING_FOR_SIGNATURE' | 'WAITING_FOR_DECLARATION' | 'ERROR', deleted_at?: string | undefined, deleted_by?: string | undefined, previous_case_status?: ('ARCHIVED' | 'ACTIVE' | 'DECLINED' | 'UNDER_MANUAL_REVIEW' | 'AUTOMATIC_REVIEW' | 'WAITING_FOR_SIGNATURE' | 'WAITING_FOR_DECLARATION' | 'ERROR' | 'WAITING_FOR_DETAILS') | undefined}) | undefined}; export type CreateApiExamplesCddCaseUpdateArgs = {event: string, 'event-delivery': string, 'event-signature'?: string | undefined, 'content-type': string, body: CddCaseUpdateEvent}; export type CreateApiExamplesCddCaseUpdateOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * example_cdd_case_update_event * * POST /examples/cdd_case_update */ export const createApiExamplesCddCaseUpdate = async (args: CreateApiExamplesCddCaseUpdateArgs, options?: CreateApiExamplesCddCaseUpdateOptions) => { const {baseUrl = "https://api.dintero.com/v1", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") if (args.event != null) headers.set("event", String(args.event)) if (args['event-delivery'] != null) headers.set("event-delivery", String(args['event-delivery'])) if (args['event-signature'] != null) headers.set("event-signature", String(args['event-signature'])) if (args['content-type'] != null) headers.set("content-type", String(args['content-type'])) const url = `${baseUrl.replace(/\/+$/, '')}/examples/cdd_case_update${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "POST", headers, body: JSON.stringify(args.body)}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return undefined };