@npm-zenwork/tax-remittance-ui 0.5.1 → 0.5.2

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.
@@ -0,0 +1,12 @@
1
+ import { EntityDetailsResponse } from '../types/entity';
2
+ export declare const ENTITY_STATUS_ACTIVE = "Active";
3
+ export declare const ENTITY_STATUS_INACTIVE = "Inactive";
4
+ /**
5
+ * Anything that isn't "Active" reads as inactive — the backend also uses
6
+ * "Pending" (pre-activation) and "Suspended", and the list's Active/Inactive
7
+ * tabs split on exactly this rule.
8
+ */
9
+ export declare function isActiveEntity(entity: Pick<EntityDetailsResponse, 'status'>): boolean;
10
+ export declare function getNextEntityStatus(entity: Pick<EntityDetailsResponse, 'status'>): string;
11
+ /** Menu label for the status toggle — named for the state it moves the entity into. */
12
+ export declare function getEntityStatusActionLabel(entity: Pick<EntityDetailsResponse, 'status'>): string;
@@ -22,7 +22,7 @@ export interface CreateStatePaymentRequest {
22
22
  taxPeriod?: string | null;
23
23
  taxAmount?: number | null;
24
24
  paymentDate?: string | null;
25
- bankAccountDetailId: number;
25
+ bankAccountDetailId?: number | null;
26
26
  isRecurring?: boolean;
27
27
  frequency?: string | null;
28
28
  recurringEndDate?: string | null;
@@ -39,9 +39,9 @@ export interface UpdateStatePaymentRequest {
39
39
  taxYear: string;
40
40
  /** Optional for bill payment; required for every other payment reason. */
41
41
  taxPeriod?: string | null;
42
- taxAmount: number;
43
- paymentDate: string;
44
- bankAccountDetailId: number;
42
+ taxAmount?: number;
43
+ paymentDate?: string;
44
+ bankAccountDetailId?: number | null;
45
45
  formName?: string | null;
46
46
  depositFrequency?: string | null;
47
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm-zenwork/tax-remittance-ui",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Embeddable Tax Remittance portal — React component library",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",