View Javadoc
1   /*
2    * MoneyWise: Finance Application
3    * Copyright 2026. Tony Washer
4    *
5    * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6    * use this file except in compliance with the License.  You may obtain a copy
7    * of the License at
8    *
9    *   http://www.apache.org/licenses/LICENSE-2.0
10   *
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
14   * License for the specific language governing permissions and limitations under
15   * the License.
16   */
17  
18  package io.github.tonywasher.joceanus.moneywise.quicken.file;
19  
20  import io.github.tonywasher.joceanus.moneywise.data.basic.MoneyWiseTransAsset;
21  import io.github.tonywasher.joceanus.moneywise.data.basic.MoneyWiseTransaction;
22  
23  import java.util.List;
24  
25  /**
26   * Builder Helper.
27   */
28  public interface MoneyWiseQIFHelper {
29      /**
30       * Obtain the register.
31       *
32       * @return the register
33       */
34      MoneyWiseQIFRegister getRegister();
35  
36      /**
37       * Obtain classes for transaction.
38       *
39       * @param pTrans the transaction
40       * @return the class list (or null)
41       */
42      List<MoneyWiseQIFClass> getTransactionClasses(MoneyWiseTransaction pTrans);
43  
44      /**
45       * Obtain the tax category.
46       *
47       * @return the category
48       */
49      MoneyWiseQIFEventCategory getTaxCategory();
50  
51      /**
52       * Obtain the tax payee.
53       *
54       * @return the payee
55       */
56      MoneyWiseQIFPayee getTaxMan();
57  
58      /**
59       * Build xferFrom payee line.
60       *
61       * @param pPartner the Transfer Partner
62       * @return the line
63       */
64      String buildXferFromPayee(MoneyWiseTransAsset pPartner);
65  
66      /**
67       * Build xferFrom payee line.
68       *
69       * @param pPartner the Transfer Partner
70       * @return the line
71       */
72      String buildXferToPayee(MoneyWiseTransAsset pPartner);
73  }