Created
January 27, 2023 14:29
-
-
Save ms314006/da51e721abc14438090509dbfc433467 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Transaction from './Transaction'; | |
class FailTransaction extends Transaction { | |
constructor(transaction) { | |
super(transaction); | |
this.statusString = '失敗'; | |
this.isNonRefundable = true; | |
} | |
} | |
export default FailTransaction; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Transaction from './Transaction'; | |
class PendingTransaction extends Transaction { | |
constructor(transaction) { | |
super(transaction); | |
this.statusString = '處理中'; | |
this.isNonRefundable = true; | |
} | |
} | |
export default PendingTransaction; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Transaction from './Transaction'; | |
class SuccessTransaction extends Transaction { | |
constructor(transaction) { | |
super(transaction); | |
this.statusString = '成功'; | |
this.isNonRefundable = false; | |
} | |
} | |
export default SuccessTransaction; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Transaction { | |
constructor(transaction) { | |
this.id = transaction.id; | |
} | |
} | |
export default Transaction; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment