@npm-zenwork/tax-remittance-ui 0.1.8 → 0.1.9
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/paymentTransactions.d.ts +2 -0
- package/dist/embedded/EmbeddedContext.d.ts +4 -1
- package/dist/embedded/EmbeddedWidgetBase.d.ts +3 -2
- package/dist/embedded/TaxRemittanceEmbedded.d.ts +26 -0
- package/dist/index.cjs +32 -32
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +3628 -3557
- package/dist/index.mjs.map +1 -1
- package/dist/types/api.d.ts +3 -1
- package/dist/types/paymentHistory.d.ts +15 -0
- package/package.json +1 -1
package/dist/types/api.d.ts
CHANGED
|
@@ -14,5 +14,7 @@ export declare class ApiError extends Error {
|
|
|
14
14
|
readonly status: number;
|
|
15
15
|
readonly title: string;
|
|
16
16
|
readonly details?: Record<string, string[]>;
|
|
17
|
-
|
|
17
|
+
/** Full parsed JSON body — present when the server returns a non-ProblemDetails body (e.g. 402 Payment Required). */
|
|
18
|
+
readonly extensions?: Record<string, unknown>;
|
|
19
|
+
constructor(status: number, title: string, detail?: string, details?: Record<string, string[]>, extensions?: Record<string, unknown>);
|
|
18
20
|
}
|
|
@@ -9,3 +9,18 @@ export interface PaymentHistoryResponse {
|
|
|
9
9
|
accountName: string;
|
|
10
10
|
reference: string;
|
|
11
11
|
}
|
|
12
|
+
/** Raw shape returned by GET /portal/payments/transactions */
|
|
13
|
+
export interface GovPayTransaction {
|
|
14
|
+
govPayTransactionId: number;
|
|
15
|
+
paymentType: 'federal' | 'state';
|
|
16
|
+
paymentId: number;
|
|
17
|
+
stripePaymentIntentId: string;
|
|
18
|
+
amount: number;
|
|
19
|
+
currency: string;
|
|
20
|
+
cardLast4: string | null;
|
|
21
|
+
cardBrand: string | null;
|
|
22
|
+
cardholderName: string | null;
|
|
23
|
+
status: string;
|
|
24
|
+
createdAt: string;
|
|
25
|
+
}
|
|
26
|
+
export declare function mapGovPayTransaction(t: GovPayTransaction): PaymentHistoryResponse;
|