@npm-zenwork/tax-remittance-ui 0.4.2 → 0.4.3
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.
- package/dist/api/remittancePayments.d.ts +3 -0
- package/dist/api/statePayments.d.ts +2 -2
- package/dist/components/payments/remittancePaymentMappers.d.ts +4 -0
- package/dist/index.cjs +22 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +6277 -7707
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/dashboard.d.ts +5 -6
- package/dist/types/statePayment.d.ts +17 -0
- package/dist/types/statePaymentFlow.d.ts +4 -0
- package/dist/types/taxAccountDetails.d.ts +1 -0
- package/package.json +1 -1
|
@@ -14,6 +14,9 @@ export interface RemittancePaymentResponse {
|
|
|
14
14
|
/** Federal IRS form type, or the state agency form actually chosen for the payment
|
|
15
15
|
* (falls back to Reason for Payment when no form applies, e.g. Bill Payment). */
|
|
16
16
|
formType?: string | null;
|
|
17
|
+
/** Always true for federal (authorized at enrollment). For state, true only once the
|
|
18
|
+
* per-payment Review & Authorize step has been completed — see StatePaymentResponse.isAuthorized. */
|
|
19
|
+
isAuthorized: boolean;
|
|
17
20
|
}
|
|
18
21
|
export interface RemittancePaymentStatusCounts {
|
|
19
22
|
drafts: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateStatePaymentRequest, StatePaymentFormMetadata, StatePaymentFormReferences, StatePaymentOption, StatePaymentReasonOption, StatePaymentResponse, StatePaymentStateOption, UpdateStatePaymentRequest } from '../types/statePayment';
|
|
1
|
+
import { CreateStatePaymentRequest, StatePaymentAuthorizationRequest, StatePaymentFormMetadata, StatePaymentFormReferences, StatePaymentOption, StatePaymentReasonOption, StatePaymentResponse, StatePaymentStateOption, UpdateStatePaymentRequest } from '../types/statePayment';
|
|
2
2
|
import { PagedResult } from '../types/pagination';
|
|
3
3
|
import { PaymentStatus } from '../components/payments/paymentsTableConfig';
|
|
4
4
|
export interface StatePaymentStatusCounts {
|
|
@@ -40,4 +40,4 @@ export declare function getStatePaymentStatusCounts(entityId: number): Promise<S
|
|
|
40
40
|
export declare function getStatePaymentById(statePaymentDetailId: number): Promise<StatePaymentResponse>;
|
|
41
41
|
export declare function createStatePayment(request: CreateStatePaymentRequest): Promise<StatePaymentResponse>;
|
|
42
42
|
export declare function updateStatePayment(statePaymentDetailId: number, request: UpdateStatePaymentRequest): Promise<StatePaymentResponse>;
|
|
43
|
-
export declare function submitStatePayment(statePaymentDetailId: number): Promise<StatePaymentResponse>;
|
|
43
|
+
export declare function submitStatePayment(statePaymentDetailId: number, authorization?: StatePaymentAuthorizationRequest): Promise<StatePaymentResponse>;
|
|
@@ -14,6 +14,9 @@ export interface RemittancePaymentRow {
|
|
|
14
14
|
/** Federal tax form / state reason for payment. `—` when unknown. */
|
|
15
15
|
formType: string;
|
|
16
16
|
tab: PaymentStatus;
|
|
17
|
+
/** Always true for federal. For state, true only once Review & Authorize is complete —
|
|
18
|
+
* gates whether the list's row-level "Submit & Pay" may submit directly (see PaymentsPage). */
|
|
19
|
+
isAuthorized: boolean;
|
|
17
20
|
}
|
|
18
21
|
export declare function formatTaxPeriod(taxPeriod: string | null | undefined): string;
|
|
19
22
|
export declare function mapRemittancePaymentToRow(payment: {
|
|
@@ -27,6 +30,7 @@ export declare function mapRemittancePaymentToRow(payment: {
|
|
|
27
30
|
status: string | null;
|
|
28
31
|
reason: string | null;
|
|
29
32
|
formType?: string | null;
|
|
33
|
+
isAuthorized: boolean;
|
|
30
34
|
}): RemittancePaymentRow;
|
|
31
35
|
export declare function mapFederalPaymentToRemittanceRow(payment: FederalPaymentResponse): RemittancePaymentRow;
|
|
32
36
|
export declare function mapStatePaymentToRemittanceRow(payment: StatePaymentResponse): RemittancePaymentRow;
|