@medusajs/types
Version:
Medusa Types definition
41 lines • 1.02 kB
TypeScript
export interface AdminCapturePayment {
/**
* Custom amount to capture. If not specified, the
* payment's amount is captured.
*/
amount?: number;
}
export interface AdminRefundPayment {
/**
* Custom amount to refund. If not specified, the
* payment's amount is refunded.
*/
amount?: number;
/**
* The ID of the refund's reason.
*/
refund_reason_id?: string | null;
/**
* A note to attach to the refund.
*/
note?: string | null;
}
export interface AdminCreateRefundReason {
label: string;
description?: string;
}
export interface AdminCreatePaymentCollection {
/**
* The ID of the order this payment collection belongs to.
*/
order_id: string;
/**
* The payment collection's amount. If not specified,
* the order's total is used as the amount instead.
*/
amount?: number;
}
export interface AdminMarkPaymentCollectionAsPaid {
order_id: string;
}
//# sourceMappingURL=payloads.d.ts.map