// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from '../core/resource'; import { APIPromise } from '../core/api-promise'; import { RequestOptions } from '../internal/request-options'; import { path } from '../internal/utils/path'; export class Transactions extends APIResource { /** * Get a single transaction by ID */ get(transactionID: string, options?: RequestOptions): APIPromise { return this._client.get(path`/transactions/${transactionID}`, options); } } export interface TransactionGetResponse { data?: TransactionGetResponse.Data; message?: string; status?: string; } export namespace TransactionGetResponse { export interface Data { id?: string; fan?: Data.Fan; product?: Data.Product; refunds?: Array; service?: Data.Service; servicePayment?: Data.ServicePayment; transaction_date?: string; } export namespace Data { export interface Fan { id?: string; country_code?: string; email?: string; name?: string; phone?: string; } export interface Product { id?: string; description?: string; payment_link?: string; price?: number; title?: string; } export interface Refund { id?: string; amount?: number; created_at?: string; payment_id?: string; } export interface Service { id?: string; description?: string; payment_link?: string; price?: number; title?: string; } export interface ServicePayment { id?: string; fund_release_on?: string; fund_released?: boolean; payment_type?: string; } } } export declare namespace Transactions { export { type TransactionGetResponse as TransactionGetResponse }; }