ecpay-einvoice-ts
Version:
ECPay e-invoice SDK for TypeScript
31 lines (29 loc) • 738 B
TypeScript
export type InvoiceNotifyInput = {
MerchantID: string,
InvoiceNo: string,
AllowanceNo: string,
Phone: string,
NotifyMail: string,
/**
* 通知類別
* S:簡訊
* E:電子郵件
* A:皆通知
*/
Notify: "S" | "E" | "A"
InvoiceTag: "I" // 發票開立
| "II" // 發票作廢
| "A" // 折讓開立
| "AI" // 折讓作廢
| "AW" // 發票中獎
| "OA" // 線上折讓
// 發送對象
Notified: |"C" // 發送通知給客戶
| "M" // 發送通知給特店
| "A" // 發送通知給特店與客a
}
export type InvoiceNotifyOutput = {
MerchantID: string,
RtnCode: number,
RtnMsg: string,
}