|
| 1 | +import { |
| 2 | + Argent, |
| 3 | + GetPatrimoinePossessions200Response, |
| 4 | + Materiel, |
| 5 | +} from '@harena-com/typescript-client'; |
| 6 | + |
| 7 | +const ordinateur: Materiel = { |
| 8 | + nom: 'Mon materiel', |
| 9 | + devise: { |
| 10 | + code: 'MGA', |
| 11 | + nom: 'Ariary', |
| 12 | + }, |
| 13 | + t: '2024-07-15T00:00:00Z', |
| 14 | + valeur_comptable: 100, |
| 15 | + date_d_acquisition: '2024-07-15T00:00:00Z', |
| 16 | + taux_dappreciation_annuel: 50, |
| 17 | +}; |
| 18 | + |
| 19 | +const monArgentDette: Argent = { |
| 20 | + type: 'DETTE', |
| 21 | + nom: 'Mon Argent Dette', |
| 22 | + valeur_comptable: 100, |
| 23 | + t: '2024-07-15T00:00:00Z', |
| 24 | + devise: { |
| 25 | + code: 'MGA', |
| 26 | + nom: 'Ariary', |
| 27 | + }, |
| 28 | + date_d_ouverture: '2024-07-15T00:00:00Z', |
| 29 | +}; |
| 30 | + |
| 31 | +export const possessionMocks: Required<GetPatrimoinePossessions200Response> = { |
| 32 | + data: [ |
| 33 | + { |
| 34 | + type: 'ARGENT', |
| 35 | + argent: monArgentDette, |
| 36 | + }, |
| 37 | + { |
| 38 | + type: 'ARGENT', |
| 39 | + argent: { |
| 40 | + type: 'CREANCE', |
| 41 | + nom: 'Mon Argent Creance', |
| 42 | + valeur_comptable: 1500, |
| 43 | + t: '2024-07-15T00:00:00Z', |
| 44 | + devise: { |
| 45 | + code: 'EUR', |
| 46 | + nom: 'Euro', |
| 47 | + }, |
| 48 | + date_d_ouverture: '2024-07-15T00:00:00Z', |
| 49 | + }, |
| 50 | + }, |
| 51 | + { |
| 52 | + type: 'MATERIEL', |
| 53 | + materiel: ordinateur, |
| 54 | + }, |
| 55 | + { |
| 56 | + type: 'ARGENT', |
| 57 | + argent: monArgentDette, |
| 58 | + }, |
| 59 | + { |
| 60 | + type: 'FLUXARGENT', |
| 61 | + flux_argent: { |
| 62 | + argent: monArgentDette, |
| 63 | + valeur_comptable: 500, |
| 64 | + nom: 'Mon Argent Creance', |
| 65 | + t: '2024-07-15T00:00:00Z', |
| 66 | + fin: '2024-07-15T00:00:00Z', |
| 67 | + debut: '2024-07-18T00:00:00Z', |
| 68 | + flux_mensuel: 500, |
| 69 | + date_d_operation: 21, |
| 70 | + devise: { |
| 71 | + code: 'EUR', |
| 72 | + nom: 'Euro', |
| 73 | + }, |
| 74 | + }, |
| 75 | + }, |
| 76 | + ], |
| 77 | +}; |
0 commit comments