export interface MerchantOrderInfoResponse { /** Same as request. */ merchantOrderID: string; /** * The status of original LinkPay order. * Paid: The LinkPay order has been paid. Closed: The LinkPay order has been closed. Pending: The LinkPay order is waiting for paying. Refunding: The LinkPay order is refunding. Refunded: The LinkPay order has been refunded. Partial Refunded: The LinkPay order has been partial refunded. */ status: string; } export interface MerchantTransInfoResponse { /** The transaction ID created by EVO Cloud. The merchant can use it to query refund API to refund. */ merchantTransID: string; /** * The transaction time submitted. Format: RFC3339. Return when the status is “Paid”. For example: 2006-01-02T15:04:05+07:00 */ merchantTransTime: string; merchantOrderReference?: string; } export interface EvoTransInfoResponse { /** The internal transaction ID of EVO Cloud. */ evoTransID: string; /** The internal transaction time of EVO Cloud. */ evoTransTime: string; /** The system trace number which will be notified in card transaction. */ traceNum?: string; /** The retrieval reference number which will be notified in card transaction. */ retrievalReferenceNum?: string; } export interface PspTransInfoResponse { /** Notify when the PSP provides this parameter. */ pspTransID?: string; pspTransTime?: string; /** The authorization code which will be returned in card transaction. */ authorizationCode?: string; } export interface Refund { /** * The status of the refund transaction. * Success: Refund success Failed: Refund failed Received: Refund in processing */ status: string; /** Merchant refund transaction information object. */ merchantTransInfo: MerchantTransInfoResponse; /** EVO Cloud refund transaction information object */ evoTransInfo?: EvoTransInfoResponse; /** PSP refund transaction information object. */ pspTransInfo?: PspTransInfoResponse; /** The refund transaction amount. */ transAmount?: TransAmount; /** Reserved */ convertTransAmount?: ConvertTransAmount; /** Reserved */ convertTransFXRate?: ConvertTransFXRate; } export interface TransAmount { /** The three-character currency code as defined in ISO-4217. For example: CNY. */ currency: string; /** The amount with a major unit. For example: 123.45. */ value: string; } export interface ConvertTransAmount { /** Reserved */ currency: string; /** Reserved */ value: string; } export interface ConvertTransFXRate { /** Reserved */ value: string; /** Reserved */ baseCurrency: string; /** Reserved */ quoteCurrency: string; /** Reserved */ source?: string; /** Reserved */ date?: string; } export interface TradeInfo { /** * The trade type, below 4 types are supported: “Hotel”, “Airline”, “Sale of goods”, “Others” For example: Hotel */ tradeType?: string; /** Mandatory when the tradeType is Hotel. */ hotelName?: string; /** * The check-in time submitted by the merchant. Format: RFC3339. Mandatory when the tradeType is Hotel. For example: 2006-01-02T15:04:05+07:00 */ checkInTime?: string; /** * The check-out time submitted by the merchant. Format: RFC3339. Mandatory when the tradeType is Hotel. For example: 2006-01-02T15:04:05+07:00 */ checkOutTime?: string; /** * Mandatory when the tradeType is Airline. If multiple parameters are sent, separate them with commas. For example: CZ689,MU5910 */ flightNumber?: string; /** The departure time submitted by the merchant. Format: RFC3339. Mandatory when the tradeType is Airline. For example: 2006-01-02T15:04:05+07:00 */ departureTime?: string; /** The name of the goods. Mandatory when the tradeType is Sale of goods. For example: iPhone XR */ goodsName?: string; /** * The description of the order to be shown on the LinkPay Payment Page. If multiple parameters are sent, separate them with commas. Mandatory when the tradeType is Sale of goods. For example: iPhone XR 512G Gold, iPad 12.9 256G */ goodsDescription?: string; /** The total quantities of all goods in one order. For example: 2 */ totalQuantity?: number; } export interface PayerInfo { /** The customer name which will be displayed on the LinkPay page. */ customerName?: string; /** The LinkPay order will be sent to this email address (Coming soon). */ mail?: string; /** The LinkPay order will be sent to this phone number (Coming soon). */ mobilePhone?: MobilePhone; } export interface MobilePhone { /** The area code. For example: +852 */ areaCode?: string; /** The phone number. For example: 123451234 */ phoneNumber?: string; } export interface DeliveryAddress { /** The number or name of the house. Alphabetic and numeric characters are accepted. */ houseNumberOrName?: string; /** The name of the street. Alphabetic and numeric characters are accepted. */ street?: string; /** The name of the city. Alphabetic and numeric characters are accepted. */ city?: string; /** * The state or province codes as defined in ISO 3166-2. Mandatory for the U.S. and Canada. Alphabetic and numeric characters are accepted. */ stateOrProvince?: string; /** The three-character country code as defined in ISO-3166-1 alpha-3. For example, CHN. Alphabetic and numeric characters are accepted. */ country?: string; /** The postal code of the address. Alphabetic and numeric characters are accepted. */ postalCode?: string; } export interface Result { /** Refer to Result Code list. */ code?: string; /** The result detail. */ message?: string; } export declare enum HttpMethod { POST = "POST", GET = "GET", PUT = "PUT", DELETE = "DELETE" }