@insure-os/client 0.0.20 → 0.0.25
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/bundle-sizes.json +11 -11
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +21 -3
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -42,10 +42,27 @@ declare class EnhancedHttpClient {
|
|
|
42
42
|
deleteCalculations(deleteCalculationsUrl: string): Promise<{
|
|
43
43
|
message: string;
|
|
44
44
|
}>;
|
|
45
|
-
initiatePayment(request: PaymentInitiationRequest, gateway: PaymentGateway): Promise<any>;
|
|
45
|
+
initiatePayment(request: PaymentInitiationRequest, gateway: PaymentGateway | string): Promise<any>;
|
|
46
46
|
getPaymentStatus(transactionId: string, gateway: PaymentGateway): Promise<any>;
|
|
47
47
|
createPaymentLink(request: CreatePaymentLinkRequest): Promise<CreatePaymentLinkResponse>;
|
|
48
48
|
getPaymentLinkDetails(signedUrl: string): Promise<PaymentLink>;
|
|
49
|
+
/**
|
|
50
|
+
* Get payment link details by UUID
|
|
51
|
+
* Requires organisation ID header for tenant context
|
|
52
|
+
*/
|
|
53
|
+
getPaymentLinkById(paymentLinkId: string): Promise<PaymentLink>;
|
|
54
|
+
/**
|
|
55
|
+
* Initiate payment for a fixed-amount payment link
|
|
56
|
+
* Returns a gateway URL to redirect the user to
|
|
57
|
+
*/
|
|
58
|
+
initiateFixedPayment(paymentLinkId: string, gatewayCode: string, clientName?: string): Promise<{
|
|
59
|
+
success: boolean;
|
|
60
|
+
payment_link_id: string;
|
|
61
|
+
transaction_id?: string;
|
|
62
|
+
gateway_acceptance_url?: string;
|
|
63
|
+
status: string;
|
|
64
|
+
message: string;
|
|
65
|
+
}>;
|
|
49
66
|
private executeWithRetry;
|
|
50
67
|
private handleApiError;
|
|
51
68
|
/**
|
|
@@ -635,8 +652,8 @@ type PaymentLinkMountConfig = BaseMountConfig & {
|
|
|
635
652
|
mode: 'payment';
|
|
636
653
|
/** Payment link ID (required when mode is 'payment') */
|
|
637
654
|
paymentLinkId: string;
|
|
638
|
-
/**
|
|
639
|
-
signedUrl
|
|
655
|
+
/** Optional signed URL - if not provided, UUID-based public access is used */
|
|
656
|
+
signedUrl?: string;
|
|
640
657
|
};
|
|
641
658
|
type MountConfig = QuoteMountConfig | PaymentLinkMountConfig;
|
|
642
659
|
type QuoteIntentState = {
|
|
@@ -660,6 +677,7 @@ type QuoteIntentState = {
|
|
|
660
677
|
deleted_at: string | null;
|
|
661
678
|
name: string;
|
|
662
679
|
slug: string;
|
|
680
|
+
timezone?: string;
|
|
663
681
|
admin_email?: string | null;
|
|
664
682
|
phone?: string | null;
|
|
665
683
|
theme: {
|