export interface IBuySubscriptionRequest {
  planId: number;
  priceId: number;
}

export interface IBuySubscriptionResponse {
  paymentIntent: string;
  paymentUrl: string | null;
}

export interface IVerifyPaymentRequest {
  razorpayPaymentId: string;
  // One of these is set depending on the payment type: `razorpayOrderId` for
  // one-off orders, `razorpaySubscriptionId` for recurring subscriptions.
  razorpayOrderId?: string;
  razorpaySubscriptionId?: string;
  razorpaySignature: string;
}

export interface IVerifyPaymentResponse {
  isValid: boolean;
}
