/** * @example * { * id: "id", * documents: [{ * document_type: "return_policy" * }] * } */ export interface UploadEvidenceDisputesRequest { /** The dispute ID (`dspt_` tag). */ id: string; /** The full set of evidence documents the dispute should carry, beyond the four fixed evidence slots. Replaces all previously uploaded documents; an empty list removes them all. Send up to 10, 10MB each and 25MB in total. Accepted content types: application/pdf, application/json, image/jpeg, image/png, image/webp — any other type is rejected. Upload files through `POST /files` and reference them by `id`, or send the files as multipart file parts to upload and attach in one call. Policy documents (`return_policy`, `shipping_policy`, `cancellation_policy`, `terms_of_service`) default from the account's own documents; uploading one here replaces the account copy for this dispute, and a `cancellation_policy` or `return_policy` upload also takes precedence over the matching fixed evidence slot. */ documents: UploadEvidenceDisputesRequest.Documents.Item[]; } export declare namespace UploadEvidenceDisputesRequest { type Documents = Documents.Item[]; namespace Documents { interface Item { /** The ID returned by a direct upload. */ direct_upload_id?: string | undefined; /** What this document proves, in the processor's own evidence vocabulary. `return_policy`, `cancellation_policy`, and `terms_of_service` are the seller's policy documents — uploading one overrides the account's copy for this dispute (`return_policy`, `cancellation_policy`, and `customer_communication` also override the matching fixed evidence slot). `shipping_policy` is the seller's shipping terms. `customer_communication` is correspondence with the buyer — a support thread or chat log. `product_image` is a photo of the product or service the buyer received. `physical_fulfillment` is proof a physical order shipped and arrived; `digital_fulfillment` is proof the buyer accessed a digital product. `customer_order_history` is the buyer's past orders with this seller; `prior_transactions` is their broader payment history across the platform, for a fraud defense. `customer_session` is checkout forensics — IP, device fingerprint, AVS/CVV, 3D Secure result. `subscription` is membership lifecycle evidence — renewals, cancellation, reminders sent. */ document_type: Item.DocumentType; /** The file itself. Send it as a file part to upload and attach in one call, or use `id`/`direct_upload_id` for a file that is already stored. */ file?: string | undefined; /** The ID of a file already stored on Whop, prefixed `file_`. */ id?: string | undefined; } namespace Item { /** What this document proves, in the processor's own evidence vocabulary. `return_policy`, `cancellation_policy`, and `terms_of_service` are the seller's policy documents — uploading one overrides the account's copy for this dispute (`return_policy`, `cancellation_policy`, and `customer_communication` also override the matching fixed evidence slot). `shipping_policy` is the seller's shipping terms. `customer_communication` is correspondence with the buyer — a support thread or chat log. `product_image` is a photo of the product or service the buyer received. `physical_fulfillment` is proof a physical order shipped and arrived; `digital_fulfillment` is proof the buyer accessed a digital product. `customer_order_history` is the buyer's past orders with this seller; `prior_transactions` is their broader payment history across the platform, for a fraud defense. `customer_session` is checkout forensics — IP, device fingerprint, AVS/CVV, 3D Secure result. `subscription` is membership lifecycle evidence — renewals, cancellation, reminders sent. */ const DocumentType: { readonly ReturnPolicy: "return_policy"; readonly ShippingPolicy: "shipping_policy"; readonly CancellationPolicy: "cancellation_policy"; readonly TermsOfService: "terms_of_service"; readonly PhysicalFulfillment: "physical_fulfillment"; readonly CustomerOrderHistory: "customer_order_history"; readonly ProductImage: "product_image"; readonly PriorTransactions: "prior_transactions"; readonly CustomerSession: "customer_session"; readonly DigitalFulfillment: "digital_fulfillment"; readonly Subscription: "subscription"; readonly CustomerCommunication: "customer_communication"; }; type DocumentType = (typeof DocumentType)[keyof typeof DocumentType]; } } }