Type Alias BaseTransaction

BaseTransaction: {
    chainId: number;
    createdAt: string;
    currency: Currency;
    email?: string | null;
    error?: Error;
    fees: string;
    firstName?: string | null;
    fullPrice: string;
    id: string;
    lastName?: string | null;
    metadata?: CheckoutSessionMetadata;
    parameters?: CheckoutSessionParameters;
    price: Price;
    productId: number;
    pspIdentifier: string;
    pspPublicInfos: {
        [key: string]: unknown;
    };
    pspType: "Lydia" | "Stripe" | "Crypto";
    status:
        | "initiated"
        | "cashed"
        | "relayed"
        | "reverted"
        | "cancelled"
        | "completed"
        | "preauth-cancelled"
        | "refunded";
    taxCalculationId: string | null;
    txHash: string | null;
    userAddress: UserAddress;
    vatPrice: string;
    webhookNotified?: boolean;
}

Type declaration

  • ReadonlychainId: number
  • ReadonlycreatedAt: string

    Date of creation of the transaction

  • Readonlycurrency: Currency
  • Optional Readonlyemail?: string | null

    Email address of the user making the purchase

  • Optionalerror?: Error
  • Readonlyfees: string

    Fees of the transaction in cents of the fiat currency.

  • Optional ReadonlyfirstName?: string | null

    First name of the buyer

  • ReadonlyfullPrice: string

    Full price of the transaction in cents of the fiat currency. Equal to the sum of the fiat price and the fees.

  • Readonlyid: string
  • Optional ReadonlylastName?: string | null

    Last name of the buyer

  • Optional Readonlymetadata?: CheckoutSessionMetadata

    Extra parameters given back as-is

  • Optional Readonlyparameters?: CheckoutSessionParameters

    Dynamic parameters as given when creating the checkout session

  • Readonlyprice: Price
  • ReadonlyproductId: number
  • ReadonlypspIdentifier: string

    Identifier specific to the PSP

  • ReadonlypspPublicInfos: {
        [key: string]: unknown;
    }

    Any public data specific to the checkout session for this PSP

    • [key: string]: unknown
  • ReadonlypspType: "Lydia" | "Stripe" | "Crypto"
  • status:
        | "initiated"
        | "cashed"
        | "relayed"
        | "reverted"
        | "cancelled"
        | "completed"
        | "preauth-cancelled"
        | "refunded"

    Status of the transaction

  • ReadonlytaxCalculationId: string | null

    ID of the Stripe tax calculation used for this transaction.

  • ReadonlytxHash: string | null

    Hash of the transaction on the blockchain

  • ReadonlyuserAddress: UserAddress

    Wallet which would receive the purchased NFT

  • ReadonlyvatPrice: string

    VAT of the transaction in cents of the fiat currency.

  • OptionalwebhookNotified?: boolean

    Wether or not the webhook was notified about mint