Stripe Charge
Stripe Charge with amount, payment status, refund state, and receipt.
stripe
Install
$ npx shadcn@latest add @open-types/stripe-charge
Dependencies
Source
import type { StripeMetadata } from "./stripe-shared";
export type StripeChargeStatus = "succeeded" | "pending" | "failed";
export interface StripeCharge {
id: string;
object: "charge";
amount: number;
currency: string;
customer: string | null;
description: string | null;
paid: boolean;
refunded: boolean;
status: StripeChargeStatus;
payment_intent: string | null;
receipt_url: string | null;
metadata: StripeMetadata;
created: number;
livemode: boolean;
}
import type { StripeMetadata } from "./stripe-shared";
export type StripeChargeStatus = "succeeded" | "pending" | "failed";
export interface StripeCharge {
id: string;
object: "charge";
amount: number;
currency: string;
customer: string | null;
description: string | null;
paid: boolean;
refunded: boolean;
status: StripeChargeStatus;
payment_intent: string | null;
receipt_url: string | null;
metadata: StripeMetadata;
created: number;
livemode: boolean;
}