/** * @example * { * id: "id" * } */ export interface UpdateDisputesRequest { /** The dispute ID (`dspt_` tag). */ id: string; /** The evidence packet to send to the processor. Only the fields you provide are changed. */ evidence?: UpdateDisputesRequest.Evidence; } export declare namespace UpdateDisputesRequest { /** * The evidence packet to send to the processor. Only the fields you provide are changed. */ interface Evidence { /** Log of the customer's access to the product, such as sign-in or download activity. */ access_activity_log?: (string | null) | undefined; /** The billing address the customer provided at checkout. */ billing_address?: (string | null) | undefined; /** The cancellation policy document. Defaults to the account's cancellation policy, then its terms of service, when not set. */ cancellation_policy_attachment?: (Evidence.CancellationPolicyAttachment | null) | undefined; /** How the cancellation policy was shown to the customer before purchase. */ cancellation_policy_disclosure?: (string | null) | undefined; /** Correspondence with the customer, or proof they used the product. */ customer_communication_attachment?: (Evidence.CustomerCommunicationAttachment | null) | undefined; /** The email address the customer used at checkout. */ customer_email_address?: (string | null) | undefined; /** The customer's name as given at checkout. */ customer_name?: (string | null) | undefined; /** 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?: Evidence.Documents.Item[] | undefined; /** Any additional context for the processor reviewing the dispute. */ notes?: (string | null) | undefined; /** What the customer purchased, in the seller's own words. */ product_description?: (string | null) | undefined; /** The refund policy document. Defaults to the account's return policy when not set. */ refund_policy_attachment?: (Evidence.RefundPolicyAttachment | null) | undefined; /** How the refund policy was shown to the customer before purchase. */ refund_policy_disclosure?: (string | null) | undefined; /** Why a refund was refused, when one was requested and denied. */ refund_refusal_explanation?: (string | null) | undefined; /** When the product or service was delivered. */ service_date?: (string | null) | undefined; /** Supporting evidence that does not fit the other categories. */ uncategorized_attachment?: (Evidence.UncategorizedAttachment | null) | undefined; } namespace Evidence { /** * The cancellation policy document. Defaults to the account's cancellation policy, then its terms of service, when not set. */ interface CancellationPolicyAttachment { /** The ID returned by a direct upload. */ direct_upload_id?: string | undefined; /** The ID of an already-uploaded file. */ id?: string | undefined; } /** * Correspondence with the customer, or proof they used the product. */ interface CustomerCommunicationAttachment { /** The ID returned by a direct upload. */ direct_upload_id?: string | undefined; /** The ID of an already-uploaded file. */ id?: string | undefined; } 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]; } } /** * The refund policy document. Defaults to the account's return policy when not set. */ interface RefundPolicyAttachment { /** The ID returned by a direct upload. */ direct_upload_id?: string | undefined; /** The ID of an already-uploaded file. */ id?: string | undefined; } /** * Supporting evidence that does not fit the other categories. */ interface UncategorizedAttachment { /** The ID returned by a direct upload. */ direct_upload_id?: string | undefined; /** The ID of an already-uploaded file. */ id?: string | undefined; } } }