All files / libs/kernel/testing/server/bed/src/test-utils/fixtures/amalia payments.ts

100% Statements 113/113
100% Branches 0/0
100% Functions 0/0
100% Lines 113/113

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 1141x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
import { type Payment } from '@amalia/core/models';
import { PaymentType } from '@amalia/core/types';
import { CurrencySymbolsEnum } from '@amalia/ext/iso-4217';
 
import { company } from './company';
import { periods } from './periods';
import { plans } from './plans';
import { rules } from './rules';
import { statements } from './statements';
import { users } from './users';
 
export const payments = [
  {
    id: '970ad5cb-7ad5-488e-a6a0-cc875012a5ff',
    periodId: periods.october2019.id,
    statementId: statements.october2019Employee1.id,
    planId: plans.planWithRule.id,
    ruleId: rules.amaliaRule.id,
    userId: users.employee1.id,
    paymentPeriodId: periods.october2019.id,
    type: PaymentType.RULE_PAYOUT,
    value: 1000,
    totalValue: 1000,
    rate: 1,
    currency: CurrencySymbolsEnum.EUR,
    masterPaymentId: undefined,
    period: periods.october2019,
    plan: plans.planWithRule,
    company,
    companyId: company.id,
    user: users.employee1,
    statement: statements.october2019Employee1,
    adjustmentId: null,
    createdAt: new Date(),
    updatedAt: new Date(),
  },
  {
    id: '9754f61b-728d-42c1-a87b-8729aefd88ac',
    periodId: periods.september2019.id,
    statementId: statements.october2019Manager.id,
    planId: plans.planWithRule.id,
    ruleId: rules.amaliaRule.id,
    userId: users.employee1.id,
    type: PaymentType.RULE_PAYOUT,
    value: 5000,
    totalValue: 5000,
    rate: 1,
    currency: CurrencySymbolsEnum.EUR,
    masterPayment: undefined,
    masterPaymentId: undefined,
    company,
    companyId: company.id,
    user: users.employee1,
    statement: statements.october2019Manager,
    adjustmentId: null,
    createdAt: new Date(),
    updatedAt: new Date(),
    period: periods.september2019,
    plan: plans.planWithRule,
    paymentPeriodId: null,
  },
  {
    id: '762b1023-a124-46b4-acdd-ca4b34341fdf',
    periodId: periods.november2019.id,
    statementId: statements.october2019Employee2.id,
    planId: plans.planWithRule.id,
    ruleId: rules.amaliaRule.id,
    userId: users.employee1.id,
    type: PaymentType.RULE_PAYOUT,
    value: 500,
    totalValue: 500,
    rate: 1,
    currency: CurrencySymbolsEnum.EUR,
    masterPayment: undefined,
    masterPaymentId: undefined,
    company,
    companyId: company.id,
    user: users.employee1,
    statement: statements.october2019Employee2,
    adjustmentId: null,
    createdAt: new Date(),
    updatedAt: new Date(),
    period: periods.november2019,
    plan: plans.planWithRule,
    paymentPeriodId: null,
  },
  {
    id: '1b53fb3c-0337-4aaf-8dd5-2531b1e1c0ce',
    periodId: periods.november2019.id,
    statementId: statements.october2019Employee2.id,
    planId: plans.planWithoutRules.id,
    ruleId: rules.amaliaRule.id,
    userId: users.employee2.id,
    type: PaymentType.LINE_HOLD,
    value: 500,
    totalValue: 500,
    rate: 1,
    currency: CurrencySymbolsEnum.EUR,
    dealExternalId: '0175p00022x3xmvAAA',
    paymentPeriodId: periods.november2019.id,
    masterPayment: undefined,
    masterPaymentId: undefined,
    company,
    companyId: company.id,
    user: users.employee2,
    statement: statements.october2019Employee2,
    adjustmentId: null,
    createdAt: new Date(),
    updatedAt: new Date(),
    period: periods.november2019,
    plan: plans.planWithoutRules,
  },
] as const satisfies Payment[];