linkpay-api
Version:
LinkPay JS/TS API SDK
29 lines (28 loc) • 1.07 kB
TypeScript
import type { TransAmount } from './base';
/**
* Request message for {@link LinkPayAPI.refund} API
*/
export declare class RefundRequest {
/** The webhook URL provided by merchant host to receive the refund result notification after the refund success. */
webhook?: string;
/** The refund transaction information */
merchantTransInfo: MerchantTransInfo;
/** Refund amount object */
transAmount: TransAmount;
}
export interface MerchantTransInfo {
/**
* The unique transaction ID generated by the merchant for refund. After
the refund succeeds, the merchant can use this field to match the
original refund transaction in notification message or retrieve the
refund transaction. Alphabetic and numeric characters are accepted.
*/
merchantTransID: string;
/**
* Time when the refund is initiated, submitted by the merchant.
Format: RFC3339.
For example: 2006-01-02T15:04:05+07:00.
*/
merchantTransTime: string;
}
export default RefundRequest;