UNPKG

declastruct-stripe-sdk

Version:

declarative control of stripe constructs, via declastruct

17 lines (16 loc) 735 B
import { RefByPrimary, RefByUnique } from 'domain-objects'; import { PickOne } from 'type-fns'; import { VisualogicContext } from 'visualogic'; import { StripeApiContext } from '../../domain/constants'; import { DeclaredStripeInvoice } from '../../domain/objects/DeclaredStripeInvoice'; /** * .what = set the status of an invoice to "void" * .what.intent * - marks the invoice as one that does not have to be paid */ export declare const setInvoiceVoided: (input: { by: PickOne<{ unique: RefByUnique<typeof DeclaredStripeInvoice>; primary: RefByPrimary<typeof DeclaredStripeInvoice>; }>; }, context: StripeApiContext & VisualogicContext) => Promise<import("type-fns").HasMetadata<DeclaredStripeInvoice>>;