@insure-os/client 0.0.21 → 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/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
- /** Signed URL for payment link (required when mode is 'payment') */
639
- signedUrl: string;
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: {