@zeniai/client-epic-state 5.3.4 → 5.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -128,7 +128,6 @@ export const prepareCreateTransactionPayload = (state, localData) => {
128
128
  if (transactionType === 'journal_entry') {
129
129
  return {
130
130
  ...base,
131
- document_id: localData.documentId,
132
131
  lines,
133
132
  };
134
133
  }
@@ -12,8 +12,8 @@ import { CreateTransactionLocalData } from './createTransactionState';
12
12
  * 1. `line_detail_type` is snake_case. The PascalCase strings in the backend are Python
13
13
  * constant NAMES; ZENI_LINE_DETAIL_TYPE_TO_QBO_LINE_DETAIL_TYPE_MAP converts them for the
14
14
  * body the backend sends on to QuickBooks, never for ours.
15
- * 2. The reference number uses two different keys depending on the QBO entity. check and
16
- * expense are Purchases and take `document_number`; everything else takes `document_id`.
15
+ * 2. Only the QBO Purchases (check, credit_card_credit) send a reference number, as
16
+ * `document_number`. A journal entry sends none.
17
17
  */
18
18
  export interface CreateTransactionAccountPayload {
19
19
  qbo_id: ID;
@@ -51,8 +51,6 @@ export interface CreateTransactionRemitToAddressPayload {
51
51
  export interface CreateTransactionRequest extends Record<string, unknown> {
52
52
  transaction_date: string;
53
53
  transaction_type: string;
54
- /** journal_entry reference number. */
55
- document_id?: string;
56
54
  /** check / credit_card_credit reference number (QBO Purchase). */
57
55
  document_number?: string;
58
56
  from_account_id?: ID;
@@ -132,7 +132,6 @@ const prepareCreateTransactionPayload = (state, localData) => {
132
132
  if (transactionType === 'journal_entry') {
133
133
  return {
134
134
  ...base,
135
- document_id: localData.documentId,
136
135
  lines,
137
136
  };
138
137
  }
@@ -54,8 +54,6 @@ export interface CreateTransactionLocalData {
54
54
  /** Empty for transfer, which has no lines at all. */
55
55
  lines: CreateTransactionLineLocalData[];
56
56
  transactionType: CreatableTransactionType;
57
- /** journal_entry reference number. */
58
- documentId?: string;
59
57
  /** check / credit_card_credit reference number. */
60
58
  documentNumber?: string;
61
59
  /** transfer */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "5.3.4",
3
+ "version": "5.3.5",
4
4
  "description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/esm/index.js",