major claude changes
This commit is contained in:
@@ -170,6 +170,7 @@ import authHeader from '../../../services/auth.header'
|
||||
import Header from '../../../layouts/headers/headerauth.vue'
|
||||
import SideBar from '../../../layouts/sidebar/sidebar.vue'
|
||||
import Footer from '../../../layouts/footers/footer.vue'
|
||||
import {AuthorizeTransaction} from '../../../types/models'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'transactionsAuthorize',
|
||||
@@ -182,7 +183,7 @@ export default defineComponent({
|
||||
|
||||
data() {
|
||||
return {
|
||||
transactions: [] as any[],
|
||||
transactions: [] as AuthorizeTransaction[],
|
||||
}
|
||||
},
|
||||
|
||||
@@ -208,7 +209,7 @@ export default defineComponent({
|
||||
getStatusText(status: number) {
|
||||
return status === 0 ? 'Approved' : 'Declined'
|
||||
},
|
||||
getSourceText(transaction: any) {
|
||||
getSourceText(transaction: AuthorizeTransaction) {
|
||||
if (transaction.auto_id) {
|
||||
return 'Automatic'
|
||||
} else if (transaction.delivery_id) {
|
||||
@@ -222,7 +223,7 @@ export default defineComponent({
|
||||
formatDate(dateStr: string) {
|
||||
return dateStr.split('T')[0]; // YYYY-MM-DD
|
||||
},
|
||||
getCaptureRoute(transaction: any) {
|
||||
getCaptureRoute(transaction: AuthorizeTransaction) {
|
||||
if (transaction.service_id) {
|
||||
return { name: 'chargeServiceAuthorize', params: { id: transaction.service_id } };
|
||||
} else if (transaction.delivery_id) {
|
||||
@@ -230,7 +231,7 @@ export default defineComponent({
|
||||
}
|
||||
return {}; // fallback, though condition should prevent this
|
||||
},
|
||||
getPreauthRoute(transaction: any) {
|
||||
getPreauthRoute(transaction: AuthorizeTransaction) {
|
||||
if (transaction.service_id) {
|
||||
return { name: 'chargeServiceAuthorize', params: { id: transaction.service_id } };
|
||||
} else if (transaction.delivery_id) {
|
||||
|
||||
Reference in New Issue
Block a user