shopee-client
Version:
Shoppe Open API Client
94 lines (93 loc) • 2.2 kB
TypeScript
export declare enum TransactionStatus {
FAILED = "FAILED",
COMPLETED = "COMPLETED",
PENDING = "PENDING",
INITIAL = "INITIAL"
}
export declare enum WalletType {
ShopeePay = "shopee pay",
JKOPay = "jko pay"
}
export interface PayOrder {
/**
* Shopee's unique identifier for an order.
*/
ordersn: string;
/**
* Name of the shop.
*/
shop_name: string;
}
export interface Transaction {
/**
* The ID of transaction.
*/
transaction_id: number;
/**
* The status of the transaction,available values: FAILED,COMPLETED,PENDING,INITIAL.
*/
status: TransactionStatus;
/**
* The type of wallet, available values: shopee pay, jko pay.
*/
wallet_type: WalletType;
/**
* The type of transaction.
*/
transaction_type: string;
/**
* The amount of transaction.
*/
amount: number;
/**
* The current balance of this account.
*/
current_balance: number;
/**
* The create time of the transaction.
*/
create_time: number;
/**
* Shopee's unique identifier for an order.
*/
ordersn: string;
/**
* The serial number of return.
*/
refund_sn: string;
/**
* The type of withdrawal.
*/
withdrawal_type: string;
/**
* This field indicates the transaction fee.
*/
transaction_fee: number;
/**
* The detailed description of TOPUP SUCCESS and TOPUP FAILED.
*/
description: string;
/**
* The name of buyer.
*/
buyer_name: string;
/**
* List of ordersn included in the transaction.
*/
pay_order_list: PayOrder[];
/**
* Name of the shop.
*/
shop_name: string;
/**
* Withdraw ID when transaction type is withdraw_created, withdrawal_completed, withdrawal_cancelled.
*/
withdraw_id: number;
}
export default interface GetTransactionListResponse {
/**
* This is to indicate whether the transaction list is more than one page. If this value is true, you may want to continue to check next page to retrieve orders.
*/
has_more: boolean;
transaction_list: Transaction[];
}