{"version":3,"sources":["webpack:///./src/enums/FundOperations.ts","webpack:///../../../src/components/VDataTable/VSimpleTable.ts","webpack:///./src/views/funds/FundDashboard.vue?41bb","webpack:///./src/views/funds/FundDashboard.vue?d635","webpack:///./src/views/funds/FundDashboard.vue","webpack:///./src/views/funds/FundDashboard.vue?c612","webpack:///./src/views/funds/FundDashboard.vue?68ee","webpack:///./src/models/funds/FundDashboardResponseModel.ts","webpack:///./src/models/funds/FundLogResponseModel.ts","webpack:///./src/models/funds/FundTransactionResponseModel.ts","webpack:///./src/apis/FundsApi.ts"],"names":["FundOperations","name","props","dense","fixedHeader","height","Number","String","computed","classes","this","themeClasses","methods","genWrapper","$slots","wrapper","$createElement","staticClass","style","render","h","class","_vm","_h","_c","_self","attrs","_v","params","bankAccountId","_e","_s","dashboard","fundName","on","$event","showSection","scopedSlots","_u","key","fn","ref","_g","authorizedOperations","directives","rawName","value","showOperation","opTypes","PAYMENT","expression","fundId","TRANSFER","VIEW_TRANSACTIONS","CHANGE_NAME","CHANGE_NOTES","VIEW_LOGS","DELETE","_f","credits","debits","balance","bankAccountName","notes","createdDateTimeUtc","createdBy","staticRenderFns","showOverview","showDetails","id","operationId","show","resetInitializationValues","api","FundsApi","getFundDashBoardAsync","$store","state","member","jwt","response","commit","handleInitializationErrorAsync","initializing","selectedBankAccount","selectedFund","initializationError","ViewBase","default","required","component","VAlert","VBtn","VCard","VCardText","VCardTitle","VCol","VContainer","VDivider","VIcon","VList","VListItem","VListItemContent","VListItemSubtitle","VListItemTitle","VMenu","VProgressCircular","VRow","VSimpleTable","VSpacer","VToolbar","VTooltip","isDepositFund","fieldName","oldValue","newValue","transactionId","debit","credit","transactionDescription","httpClient","CashTamerHttpClient","url","secureGetAsync","httpResponse","fund","data","handleApiError","request","securePutAsync","secureDeleteAsync","values","Array","len","length","i","push","transactionDate","securePostAsync","CashTamerApiBase"],"mappings":"kHACA,IAAYA,EAAZ,2CAAYA,GACR,sBACA,oCACA,sCACA,gCACA,gDACA,6B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AAOK,KAAK1F,G,yBAGTqF,G,8DAGAzH,KAAKqH,eAAL,O,sNAIWlG,EAAuBsB,EAAgB4B,EAAaiD,G,yGAGhER,EAAa,IAAIC,EAAA,KAEjBC,EAAc,uBAAyB7F,EAAgB,UAAYsB,EAAS,W,SAC5EqE,EAAWkB,gBAAgBhB,EAAKM,EAASjD,G,mFAGxCrE,KAAKqH,eAAL,O,wNAIYlG,EAAuBsB,EAAgB4B,EAAaiD,G,yGAGjER,EAAa,IAAIC,EAAA,KAEjBC,EAAc,uBAAyB7F,EAAgB,UAAYsB,EAAS,Y,SAC5EqE,EAAWkB,gBAAgBhB,EAAKM,EAASjD,G,mFAGxCrE,KAAKqH,eAAL,O,8HAtJmBY,EAAA","file":"js/chunk-deb78b80.f6f7ef3c.js","sourcesContent":["\r\nexport enum FundOperations {\r\n NONE = 0,\r\n CHANGE_NAME = 1,\r\n CHANGE_NOTES = 2,\r\n VIEW_LOGS = 4,\r\n VIEW_TRANSACTIONS = 8,\r\n PAYMENT = 16,\r\n TRANSFER = 32,\r\n DELETE = 64,\r\n}\r\n","import './VSimpleTable.sass'\n\nimport { convertToUnit } from '../../util/helpers'\nimport Themeable from '../../mixins/themeable'\nimport mixins from '../../util/mixins'\nimport { VNode } from 'vue'\n\nexport default mixins(Themeable).extend({\n name: 'v-simple-table',\n\n props: {\n dense: Boolean,\n fixedHeader: Boolean,\n height: [Number, String],\n },\n\n computed: {\n classes (): Record {\n return {\n 'v-data-table--dense': this.dense,\n 'v-data-table--fixed-height': !!this.height && !this.fixedHeader,\n 'v-data-table--fixed-header': this.fixedHeader,\n ...this.themeClasses,\n }\n },\n },\n\n methods: {\n genWrapper () {\n return this.$slots.wrapper || this.$createElement('div', {\n staticClass: 'v-data-table__wrapper',\n style: {\n height: convertToUnit(this.height),\n },\n }, [\n this.$createElement('table', this.$slots.default),\n ])\n },\n },\n\n render (h): VNode {\n return h('div', {\n staticClass: 'v-data-table',\n class: this.classes,\n }, [\n this.$slots.top,\n this.genWrapper(),\n this.$slots.bottom,\n ])\n },\n})\n","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FundDashboard.vue?vue&type=style&index=0&id=8573fff8&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FundDashboard.vue?vue&type=style&index=0&id=8573fff8&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',[_c('v-row',{attrs:{\"justify\":\"center\"}},[_c('v-col',{attrs:{\"cols\":\"12\",\"xs\":\"12\",\"md\":\"9\",\"lg\":\"8\"}},[_c('router-link',{staticClass:\"mr-2\",attrs:{\"to\":{name: 'memberbankaccounts'}}},[_vm._v(\"Bank Accounts\")]),_c('v-icon',{attrs:{\"small\":\"\"}},[_vm._v(\"mdi-forward\")]),_c('router-link',{staticClass:\"ml-2\",attrs:{\"to\":{name: 'bankaccountdashboard', params:{bankAccountId: _vm.bankAccountId}}}},[_vm._v(\"Bank Account\")])],1)],1),_c('v-row',{attrs:{\"justify\":\"center\"}},[_c('v-col',{attrs:{\"cols\":\"12\",\"xs\":\"12\",\"md\":\"9\",\"lg\":\"8\"}},[_c('v-card',[_c('v-card-title',{staticClass:\"headline justify-center\"},[_vm._v(\"FUND\")]),_c('v-card-text',{staticClass:\"mt-2 black--text\"},[(_vm.initializing)?_c('div',{staticClass:\"text-center\"},[_c('v-progress-circular',{attrs:{\"indeterminate\":\"\",\"color\":\"primary\"}})],1):_vm._e(),(_vm.initializationError)?_c('div',{staticClass:\"text-center\"},[_c('v-alert',{attrs:{\"type\":\"error\",\"outlined\":\"\"}},[_vm._v(\"An error occurred while processing the request.\")])],1):_vm._e(),(_vm.showDashboard)?_c('div',[_c('div',{staticClass:\"title text-center\"},[_vm._v(_vm._s(_vm.dashboard.fundName))]),_c('v-row',{attrs:{\"justify\":\"center\"}},[_c('v-col',{staticClass:\"pa-0\",attrs:{\"cols\":\"12\",\"xs\":\"12\",\"md\":\"9\",\"lg\":\"12\"}},[_c('v-toolbar',{staticClass:\"pa-0 ma-0\",attrs:{\"dense\":\"\",\"flat\":\"\"}},[_c('v-spacer'),_c('v-btn',{attrs:{\"text\":\"\",\"icon\":\"\",\"color\":\"primary\"},on:{\"click\":function($event){return _vm.showSection(1)}}},[_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('v-icon',_vm._g({},on),[_vm._v(\"mdi-view-dashboard\")])]}}],null,false,3732345415)},[_c('span',[_vm._v(\"Overview\")])])],1),_c('v-btn',{attrs:{\"text\":\"\",\"icon\":\"\",\"color\":\"primary\"},on:{\"click\":function($event){return _vm.showSection(2)}}},[_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('v-icon',_vm._g({},on),[_vm._v(\"mdi-more\")])]}}],null,false,3883883606)},[_c('span',[_vm._v(\"Details\")])])],1),(_vm.dashboard.authorizedOperations > 0)?_c('v-menu',{attrs:{\"offset-x\":\"\",\"left\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('v-btn',_vm._g({attrs:{\"text\":\"\",\"icon\":\"\",\"color\":\"primary\"}},on),[_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('v-icon',_vm._g({},on),[_vm._v(\"mdi-menu-open\")])]}}],null,true)},[_c('span',[_vm._v(\"Options\")])])],1)]}}],null,false,1352972215)},[_c('v-list',{attrs:{\"dense\":\"\"}},[_c('v-list-item',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showOperation(_vm.opTypes.PAYMENT)),expression:\"showOperation(opTypes.PAYMENT)\"}],attrs:{\"to\":{name: 'fundpayment', params: { bankAccountId: _vm.bankAccountId, fundId: _vm.fundId}},\"exact\":\"\"}},[_c('v-list-item-title',[_vm._v(\"Payment\")])],1),_c('v-list-item',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showOperation(_vm.opTypes.TRANSFER)),expression:\"showOperation(opTypes.TRANSFER)\"}],attrs:{\"to\":{name: 'fundtransfer', params: { bankAccountId: _vm.bankAccountId, fundId: _vm.fundId}},\"exact\":\"\"}},[_c('v-list-item-title',[_vm._v(\"Transfer\")])],1),_c('v-list-item',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showOperation(_vm.opTypes.VIEW_TRANSACTIONS)),expression:\"showOperation(opTypes.VIEW_TRANSACTIONS)\"}],attrs:{\"to\":{name: 'fundtransactions', params: { bankAccountId: _vm.bankAccountId, fundId: _vm.fundId}},\"exact\":\"\"}},[_c('v-list-item-title',[_vm._v(\"Transactions\")])],1),_c('v-list-item',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showOperation(_vm.opTypes.CHANGE_NAME)),expression:\"showOperation(opTypes.CHANGE_NAME)\"}],attrs:{\"to\":{name: 'fundchangename', params: { bankAccountId: _vm.bankAccountId, fundId: _vm.fundId}},\"exact\":\"\"}},[_c('v-list-item-title',[_vm._v(\"Change Name\")])],1),_c('v-list-item',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showOperation(_vm.opTypes.CHANGE_NOTES)),expression:\"showOperation(opTypes.CHANGE_NOTES)\"}],attrs:{\"to\":{name: 'fundchangenotes', params: { bankAccountId: _vm.bankAccountId, fundId: _vm.fundId}},\"exact\":\"\"}},[_c('v-list-item-title',[_vm._v(\"Change Notes\")])],1),_c('v-list-item',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showOperation(_vm.opTypes.VIEW_LOGS)),expression:\"showOperation(opTypes.VIEW_LOGS)\"}],attrs:{\"to\":{name: 'fundlogs', params: { bankAccountId: _vm.bankAccountId, fundId: _vm.fundId}},\"exact\":\"\"}},[_c('v-list-item-title',[_vm._v(\"Logs\")])],1),_c('v-list-item',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showOperation(_vm.opTypes.DELETE)),expression:\"showOperation(opTypes.DELETE)\"}],attrs:{\"to\":{name: 'funddelete', params: { bankAccountId: _vm.bankAccountId, fundId: _vm.fundId}},\"exact\":\"\"}},[_c('v-list-item-title',[_vm._v(\"Delete\")])],1)],1)],1):_vm._e(),_c('v-spacer')],1),_c('v-divider')],1)],1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showOverview),expression:\"showOverview\"}]},[_c('v-row',{attrs:{\"justify\":\"center\"}},[_c('v-col',{staticClass:\"pt-0\",attrs:{\"cols\":\"12\",\"xs\":\"12\",\"md\":\"7\",\"lg\":\"8\"}},[_c('v-simple-table',[_c('tbody',[_c('tr',[_c('td',{staticClass:\"text-left col-60\"},[_vm._v(\"Credits\")]),_c('td',{staticClass:\"text-right col-40\"},[_vm._v(_vm._s(_vm._f(\"formatCurrency\")(_vm.dashboard.credits)))])]),_c('tr',[_c('td',{staticClass:\"text-left col-60\"},[_vm._v(\"Debits\")]),_c('td',{staticClass:\"text-right col-40\"},[_vm._v(_vm._s(_vm._f(\"formatCurrency\")(_vm.dashboard.debits)))])]),_c('tr',[_c('td',{staticClass:\"text-left col-60 font-weight-bold\"},[_vm._v(\"Balance\")]),_c('td',{staticClass:\"text-right col-40 font-weight-bold\"},[_vm._v(_vm._s(_vm._f(\"formatCurrency\")(_vm.dashboard.balance)))])])])])],1)],1)],1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showDetails),expression:\"showDetails\"}]},[_c('v-row',{attrs:{\"justify\":\"center\"}},[_c('v-col',{attrs:{\"cols\":\"12\",\"xs\":\"12\",\"md\":\"9\",\"lg\":\"9\"}},[_c('v-list',{staticClass:\"mt-0 pa-0\"},[_c('v-list-item',{staticClass:\"mb-2\"},[_c('v-list-item-content',[_c('v-list-item-title',{staticClass:\"mb-4\"},[_vm._v(\"Fund Name\")]),_c('v-list-item-subtitle',{staticClass:\"ml-2\"},[_vm._v(_vm._s(_vm.dashboard.fundName))])],1)],1),_c('v-list-item',{staticClass:\"mb-2\"},[_c('v-list-item-content',[_c('v-list-item-title',{staticClass:\"mb-4\"},[_vm._v(\"Bank Account Name\")]),_c('v-list-item-subtitle',{staticClass:\"ml-2\"},[_vm._v(_vm._s(_vm.bankAccountName))])],1)],1),_c('v-list-item',{staticClass:\"mb-2\"},[_c('v-list-item-content',[_c('v-list-item-title',{staticClass:\"mb-4\"},[_vm._v(\"Notes\")]),_c('v-list-item-subtitle',{staticClass:\"ml-2\"},[_vm._v(_vm._s(_vm.dashboard.notes))])],1)],1),_c('v-list-item',{staticClass:\"mb-2\"},[_c('v-list-item-content',[_c('v-list-item-title',{staticClass:\"mb-4\"},[_vm._v(\"Created Date\")]),_c('v-list-item-subtitle',{staticClass:\"ml-2\"},[_vm._v(_vm._s(_vm._f(\"formatDateTime\")(_vm.dashboard.createdDateTimeUtc)))])],1)],1),_c('v-list-item',{staticClass:\"mb-2\"},[_c('v-list-item-content',[_c('v-list-item-title',{staticClass:\"mb-4\"},[_vm._v(\"Created By\")]),_c('v-list-item-subtitle',{staticClass:\"ml-2\"},[_vm._v(_vm._s(_vm.dashboard.createdBy))])],1)],1)],1)],1)],1)],1)],1):_vm._e()])],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport {Component, Prop, Vue} from 'vue-property-decorator';\r\nimport ViewBase from '@/views/ViewBase';\r\nimport {FundOperations} from '@/enums/FundOperations';\r\nimport FundsApi from '@/apis/FundsApi';\r\nimport FundDashboardResponseModel from '@/models/funds/FundDashboardResponseModel';\r\n\r\n@Component({\r\n name: 'FundDashboard',\r\n },\r\n)\r\nexport default class FundDashboard extends ViewBase {\r\n @Prop({default: 0, required: true})\r\n public fundId!: number;\r\n @Prop({default: 0, required: true})\r\n public bankAccountId!: number;\r\n public showOverview: boolean = true;\r\n public showDetails: boolean = false;\r\n\r\n public get bankAccountName(): string {\r\n return this.$store.state.selectedBankAccount.bankAccountName;\r\n }\r\n\r\n public get dashboard(): FundDashboardResponseModel {\r\n return this.$store.state.selectedFund;\r\n }\r\n\r\n public get showDashboard(): boolean {\r\n if ( !this.initializing && !this.initializationError ) {\r\n return true;\r\n }\r\n\r\n return false;\r\n }\r\n\r\n public get opTypes(): any {\r\n return FundOperations;\r\n }\r\n\r\n public showSection(id: number): void {\r\n this.showOverview = false;\r\n this.showDetails = false;\r\n\r\n switch ( id )\r\n {\r\n case 1:\r\n this.showOverview = true;\r\n break;\r\n case 2:\r\n this.showDetails = true;\r\n break;\r\n }\r\n }\r\n\r\n public showOperation(operationId: number): boolean {\r\n let show: boolean = false;\r\n\r\n if ( this.dashboard.authorizedOperations & operationId )\r\n {\r\n show = true;\r\n }\r\n\r\n return show;\r\n }\r\n\r\n public async created() {\r\n\r\n try {\r\n this.resetInitializationValues();\r\n\r\n const api = new FundsApi();\r\n const response = await api.getFundDashBoardAsync(this.bankAccountId, this.fundId, this.$store.state.member.jwt);\r\n this.$store.commit('mutateSelectedFund', response);\r\n }\r\n catch ( err ) {\r\n await this.handleInitializationErrorAsync(err);\r\n }\r\n finally {\r\n this.initializing = false;\r\n }\r\n }\r\n}\r\n\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FundDashboard.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FundDashboard.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./FundDashboard.vue?vue&type=template&id=8573fff8&scoped=true&\"\nimport script from \"./FundDashboard.vue?vue&type=script&lang=ts&\"\nexport * from \"./FundDashboard.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./FundDashboard.vue?vue&type=style&index=0&id=8573fff8&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"8573fff8\",\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VAlert } from 'vuetify/lib/components/VAlert';\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VCardTitle } from 'vuetify/lib/components/VCard';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VList } from 'vuetify/lib/components/VList';\nimport { VListItem } from 'vuetify/lib/components/VList';\nimport { VListItemContent } from 'vuetify/lib/components/VList';\nimport { VListItemSubtitle } from 'vuetify/lib/components/VList';\nimport { VListItemTitle } from 'vuetify/lib/components/VList';\nimport { VMenu } from 'vuetify/lib/components/VMenu';\nimport { VProgressCircular } from 'vuetify/lib/components/VProgressCircular';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSimpleTable } from 'vuetify/lib/components/VDataTable';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VToolbar } from 'vuetify/lib/components/VToolbar';\nimport { VTooltip } from 'vuetify/lib/components/VTooltip';\ninstallComponents(component, {VAlert,VBtn,VCard,VCardText,VCardTitle,VCol,VContainer,VDivider,VIcon,VList,VListItem,VListItemContent,VListItemSubtitle,VListItemTitle,VMenu,VProgressCircular,VRow,VSimpleTable,VSpacer,VToolbar,VTooltip})\n","export default class FundDashboardResponseModel {\r\n public authorizedOperations: number = 0;\r\n public fundId: number = 0;\r\n public fundName: string = '';\r\n public bankAccountId: number = 0;\r\n public notes: string = '';\r\n public isDepositFund: boolean = false;\r\n public debits: number = 0;\r\n public credits: number = 0;\r\n public balance: number = 0;\r\n public createdDateTimeUtc?: Date;\r\n public createdBy: string = '';\r\n}\r\n","\r\nexport default class FundLogResponseModel {\r\n public fieldName: string = '';\r\n public oldValue: string = '';\r\n public newValue: string = '';\r\n public createdDateTimeUtc?: Date;\r\n public createdBy: string = '';\r\n}\r\n","\r\nexport default class FundTransactionResponseModel {\r\n public transactionId: number = 0;\r\n public debit: number = 0;\r\n public credit: number = 0;\r\n public transactionDate?: Date;\r\n public transactionDescription: string = '';\r\n}\r\n","import CashTamerHttpClient from './CashTamerHttpClient';\r\nimport CashTamerApiBase from './CashTamerApiBase';\r\nimport FundDashboardResponseModel from '@/models/funds/FundDashboardResponseModel';\r\nimport FundChangeNameRequestModel from '@/models/funds/FundChangeNameRequestModel';\r\nimport FundChangeNotesRequestModel from '@/models/funds/FundChangeNotesRequestModel';\r\nimport FundLogResponseModel from '@/models/funds/FundLogResponseModel';\r\nimport FundTransactionResponseModel from '@/models/funds/FundTransactionResponseModel';\r\nimport FundPaymentRequestModel from '@/models/funds/FundPaymentRequestModel';\r\nimport FundTransferRequestModel from '@/models/funds/FundTransferRequestModel';\r\n\r\nexport default class FundsApi extends CashTamerApiBase {\r\n public async getFundDashBoardAsync(bankAccountId: number, fundId: number, jwt: string): Promise {\r\n\r\n try {\r\n const httpClient = new CashTamerHttpClient();\r\n\r\n const url: string = 'member/bankaccounts/' + bankAccountId + '/funds/' + fundId;\r\n const httpResponse = await httpClient.secureGetAsync(url, jwt);\r\n\r\n const fund = new FundDashboardResponseModel();\r\n fund.authorizedOperations = httpResponse.data.authorizedOperations;\r\n fund.fundId = httpResponse.data.fundId;\r\n fund.fundName = httpResponse.data.fundName;\r\n fund.bankAccountId = httpResponse.data.bankAccountId;\r\n fund.notes = httpResponse.data.notes;\r\n fund.isDepositFund = httpResponse.data.isDepositFund;\r\n fund.debits = httpResponse.data.debits;\r\n fund.credits = httpResponse.data.credits;\r\n fund.balance = httpResponse.data.balance;\r\n fund.createdBy = httpResponse.data.createdBy;\r\n fund.createdDateTimeUtc = httpResponse.data.createdDateTimeUtc;\r\n\r\n return fund;\r\n }\r\n catch (err) {\r\n return this.handleApiError(err);\r\n }\r\n }\r\n\r\n public async changeNameAsync(bankAccountId: number, fundId: number, jwt: string, request: FundChangeNameRequestModel): Promise {\r\n\r\n try {\r\n const httpClient = new CashTamerHttpClient();\r\n\r\n const url: string = 'member/bankaccounts/' + bankAccountId + '/funds/' + fundId + '/name';\r\n await httpClient.securePutAsync(url, request, jwt);\r\n }\r\n catch ( err ) {\r\n return this.handleApiError(err);\r\n }\r\n }\r\n\r\n public async changeNotesAsync(bankAccountId: number, fundId: number, jwt: string, request: FundChangeNotesRequestModel): Promise {\r\n\r\n try {\r\n const httpClient = new CashTamerHttpClient();\r\n\r\n const url: string = 'member/bankaccounts/' + bankAccountId + '/funds/' + fundId + '/notes';\r\n await httpClient.securePutAsync(url, request, jwt);\r\n }\r\n catch ( err ) {\r\n return this.handleApiError(err);\r\n }\r\n }\r\n\r\n public async deleteAsync(bankAccountId: number, fundId: number, jwt: string): Promise {\r\n\r\n try {\r\n const httpClient = new CashTamerHttpClient();\r\n\r\n const url: string = 'member/bankaccounts/' + bankAccountId + '/funds/' + fundId;\r\n await httpClient.secureDeleteAsync(url, jwt);\r\n }\r\n catch ( err ) {\r\n return this.handleApiError(err);\r\n }\r\n }\r\n\r\n public async getLogsAsync(bankAccountId: number, fundId: number, jwt: string): Promise {\r\n\r\n try {\r\n const httpClient = new CashTamerHttpClient();\r\n\r\n const url: string = 'member/bankaccounts/' + bankAccountId + '/funds/' + fundId + '/logs';\r\n const httpResponse = await httpClient.secureGetAsync(url, jwt);\r\n\r\n const values = new Array();\r\n\r\n const len: number = httpResponse.data.length - 1;\r\n\r\n for ( let i = 0; i <= len; i++ ) {\r\n const value: FundLogResponseModel = new FundLogResponseModel();\r\n value.fieldName = httpResponse.data[i].fieldName;\r\n value.oldValue = httpResponse.data[i].oldValue;\r\n value.newValue = httpResponse.data[i].newValue;\r\n value.createdDateTimeUtc = httpResponse.data[i].createdDateTimeUtc;\r\n value.createdBy = httpResponse.data[i].createdBy;\r\n\r\n values.push(value);\r\n }\r\n\r\n return values;\r\n }\r\n catch (err) {\r\n return this.handleApiError(err);\r\n }\r\n }\r\n\r\n public async getTransactionsAsync(bankAccountId: number, fundId: number, jwt: string): Promise {\r\n\r\n try {\r\n const httpClient = new CashTamerHttpClient();\r\n\r\n const url: string = 'member/bankaccounts/' + bankAccountId + '/funds/' + fundId + '/transactions';\r\n const httpResponse = await httpClient.secureGetAsync(url, jwt);\r\n\r\n const values = new Array();\r\n\r\n const len: number = httpResponse.data.length - 1;\r\n\r\n for ( let i = 0; i <= len; i++ ) {\r\n const value: FundTransactionResponseModel = new FundTransactionResponseModel();\r\n value.transactionId = httpResponse.data[i].transactionId;\r\n value.debit = httpResponse.data[i].debit;\r\n value.credit = httpResponse.data[i].credit;\r\n value.transactionDate = httpResponse.data[i].transactionDate;\r\n value.transactionDescription = httpResponse.data[i].transactionDescription;\r\n\r\n values.push(value);\r\n }\r\n\r\n return values;\r\n }\r\n catch (err) {\r\n return this.handleApiError(err);\r\n }\r\n }\r\n\r\n public async paymentAsync(bankAccountId: number, fundId: number, jwt: string, request: FundPaymentRequestModel): Promise {\r\n\r\n try {\r\n const httpClient = new CashTamerHttpClient();\r\n\r\n const url: string = 'member/bankaccounts/' + bankAccountId + '/funds/' + fundId + '/payment';\r\n await httpClient.securePostAsync(url, request, jwt);\r\n }\r\n catch ( err ) {\r\n return this.handleApiError(err);\r\n }\r\n }\r\n\r\n public async transferAsync(bankAccountId: number, fundId: number, jwt: string, request: FundTransferRequestModel): Promise {\r\n\r\n try {\r\n const httpClient = new CashTamerHttpClient();\r\n\r\n const url: string = 'member/bankaccounts/' + bankAccountId + '/funds/' + fundId + '/transfer';\r\n await httpClient.securePostAsync(url, request, jwt);\r\n }\r\n catch ( err ) {\r\n return this.handleApiError(err);\r\n }\r\n }\r\n}\r\n"],"sourceRoot":""}