gotrip-fx-transaction-form 1.0.289-dev → 1.0.291-dev
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/index.js +33242 -31356
- package/package.json +1 -1
- package/types/components/ApprovalLinkDropdown/ApprovalLinkDropdown.d.ts +6 -0
- package/types/components/Insurance/InsuranceApprovalContent.d.ts +10 -0
- package/types/components/Insurance/InsuranceApprovalPageSDK.d.ts +5 -0
- package/types/components/Insurance/InsuranceApprovalPaymentStep.d.ts +2 -1
- package/types/components/Insurance/MotorInsuranceApprovalContent.d.ts +10 -0
- package/types/components/Insurance/MotorInsuranceApprovalPageSDK.d.ts +5 -0
- package/types/components/MotorInsurance/Bike/BikeStepThreePayment.d.ts +16 -1
- package/types/components/MotorInsurance/Car/CarStepFourPayment.d.ts +16 -1
- package/types/components/MotorInsurance/MotorInsuranceApprovalPaymentStep.d.ts +3 -2
- package/types/constants/approval-link.enum.d.ts +4 -0
- package/types/embeded-main.d.ts +1 -0
- package/types/pages/agency/insurance/motor-transaction-approval/MotorInsuranceTransactionApprovalPage.d.ts +2 -0
- package/types/pages/agency/insurance/transaction-approval/InsuranceTransactionApprovalPage.d.ts +2 -0
- package/types/pages/guest/insurance-approval.d.ts +1 -0
- package/types/pages/guest/motor-insurance-approval.d.ts +1 -0
- package/types/store/useApprovalStore.d.ts +6 -0
- package/types/types/sdk.d.ts +4 -1
package/package.json
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { EApprovalLinkType } from '../../constants/approval-link.enum';
|
|
2
|
+
interface ApprovalLinkDropdownProps {
|
|
3
|
+
onSelectLink: (linkType: EApprovalLinkType) => void;
|
|
4
|
+
}
|
|
5
|
+
export declare const ApprovalLinkDropdown: ({ onSelectLink }: ApprovalLinkDropdownProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface InsuranceApprovalContentProps {
|
|
2
|
+
publicId: string;
|
|
3
|
+
backLink?: {
|
|
4
|
+
label: string;
|
|
5
|
+
path: string;
|
|
6
|
+
};
|
|
7
|
+
isGuest?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const InsuranceApprovalContent: ({ publicId, backLink, isGuest, }: InsuranceApprovalContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -23,5 +23,6 @@ export interface InsuranceApprovalPaymentStepProps {
|
|
|
23
23
|
startDate?: string | Date;
|
|
24
24
|
travelScope?: string;
|
|
25
25
|
planName?: string;
|
|
26
|
+
isGuest?: boolean;
|
|
26
27
|
}
|
|
27
|
-
export declare const InsuranceApprovalPaymentStep: ({ user, amount, discountAmount, couponCode, couponDescription, isApproving, isRejecting, onApprove, onReject, insuranceType, adultsCount, teenagerCount, childrenCount, freeTeenagerCount, freeChildrenCount, premiumPerPerson, isLoadingPremium, termsDetailsHtml, termsAgreeHtml, startDate,
|
|
28
|
+
export declare const InsuranceApprovalPaymentStep: ({ user, amount, discountAmount, couponCode, couponDescription, isApproving, isRejecting, onApprove, onReject, insuranceType, adultsCount, teenagerCount, childrenCount, freeTeenagerCount, freeChildrenCount, premiumPerPerson, isLoadingPremium, termsDetailsHtml, termsAgreeHtml, startDate, isGuest, }: InsuranceApprovalPaymentStepProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface MotorInsuranceApprovalContentProps {
|
|
2
|
+
publicId: string;
|
|
3
|
+
backLink?: {
|
|
4
|
+
label: string;
|
|
5
|
+
path: string;
|
|
6
|
+
};
|
|
7
|
+
isGuest?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const MotorInsuranceApprovalContent: ({ publicId, backLink, isGuest, }: MotorInsuranceApprovalContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -22,5 +22,20 @@ export interface BikeStepThreePaymentProps {
|
|
|
22
22
|
waitForApproval?: boolean;
|
|
23
23
|
onWaitForApprovalChange?: (value: boolean) => void;
|
|
24
24
|
mode?: 'create' | 'edit';
|
|
25
|
+
appliedCoupon?: {
|
|
26
|
+
code: string;
|
|
27
|
+
discountAmount: number;
|
|
28
|
+
finalAmount: number;
|
|
29
|
+
} | null;
|
|
30
|
+
onCouponChange?: (coupon: {
|
|
31
|
+
code: string;
|
|
32
|
+
discountAmount: number;
|
|
33
|
+
finalAmount: number;
|
|
34
|
+
} | null) => void;
|
|
35
|
+
initialCoupon?: {
|
|
36
|
+
code: string;
|
|
37
|
+
discountAmount: number;
|
|
38
|
+
finalAmount: number;
|
|
39
|
+
} | null;
|
|
25
40
|
}
|
|
26
|
-
export declare const BikeStepThreePayment: ({ planValues, premiumSummary, vehicleInfo, isLoading, paymentMode, onPaymentModeChange, isTermsAgreed, onTermsAgreedChange, isPersonalDataConsentAgreed, onPersonalDataConsentChange, onPayment, isProcessing, isGuest, onBack, paymentType, isAdminMode, selectedUser, waitForApproval, onWaitForApprovalChange, mode, }: BikeStepThreePaymentProps) => import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
export declare const BikeStepThreePayment: ({ planValues, premiumSummary, vehicleInfo, isLoading, paymentMode, onPaymentModeChange, isTermsAgreed, onTermsAgreedChange, isPersonalDataConsentAgreed, onPersonalDataConsentChange, onPayment, isProcessing, isGuest, onBack, paymentType, isAdminMode, selectedUser, waitForApproval, onWaitForApprovalChange, mode, appliedCoupon, onCouponChange, initialCoupon, }: BikeStepThreePaymentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -25,6 +25,21 @@ interface CarStepFourPaymentProps {
|
|
|
25
25
|
waitForApproval?: boolean;
|
|
26
26
|
onWaitForApprovalChange?: (value: boolean) => void;
|
|
27
27
|
mode?: 'create' | 'edit';
|
|
28
|
+
appliedCoupon?: {
|
|
29
|
+
code: string;
|
|
30
|
+
discountAmount: number;
|
|
31
|
+
finalAmount: number;
|
|
32
|
+
} | null;
|
|
33
|
+
onCouponChange?: (coupon: {
|
|
34
|
+
code: string;
|
|
35
|
+
discountAmount: number;
|
|
36
|
+
finalAmount: number;
|
|
37
|
+
} | null) => void;
|
|
38
|
+
initialCoupon?: {
|
|
39
|
+
code: string;
|
|
40
|
+
discountAmount: number;
|
|
41
|
+
finalAmount: number;
|
|
42
|
+
} | null;
|
|
28
43
|
}
|
|
29
|
-
export declare const CarStepFourPayment: ({ planValues, premiumSummary, vehicleInfo, buyerCertificateInfo, isLoading, paymentMode, onPaymentModeChange, isTermsAgreed, onTermsAgreedChange, isPersonalDataConsentAgreed, onPersonalDataConsentChange, onPayment, isProcessing, isGuest, onBack, getProviderLogoUrl, getTermsAgreeHtml, paymentType, isAdminMode, selectedUser, waitForApproval, onWaitForApprovalChange, mode, }: CarStepFourPaymentProps) => import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export declare const CarStepFourPayment: ({ planValues, premiumSummary, vehicleInfo, buyerCertificateInfo, isLoading, paymentMode, onPaymentModeChange, isTermsAgreed, onTermsAgreedChange, isPersonalDataConsentAgreed, onPersonalDataConsentChange, onPayment, isProcessing, isGuest, onBack, getProviderLogoUrl, getTermsAgreeHtml, paymentType, isAdminMode, selectedUser, waitForApproval, onWaitForApprovalChange, mode, appliedCoupon, onCouponChange, initialCoupon, }: CarStepFourPaymentProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
45
|
export {};
|
|
@@ -4,6 +4,7 @@ export interface MotorInsuranceApprovalPaymentStepProps {
|
|
|
4
4
|
amount: number;
|
|
5
5
|
premiumBeforeDiscount?: number;
|
|
6
6
|
discountAmount?: number;
|
|
7
|
+
couponCode?: string;
|
|
7
8
|
isApproving?: boolean;
|
|
8
9
|
isRejecting?: boolean;
|
|
9
10
|
onApprove?: (paymentMode: EPaymentMethod | undefined, paymentType: EOrderPaymentType) => void;
|
|
@@ -11,9 +12,9 @@ export interface MotorInsuranceApprovalPaymentStepProps {
|
|
|
11
12
|
termsDetailsHtml?: string;
|
|
12
13
|
termsAgreeHtml?: string;
|
|
13
14
|
startDate?: string | Date;
|
|
14
|
-
planName?: string;
|
|
15
15
|
tax?: number;
|
|
16
16
|
mandatoryPremium?: number;
|
|
17
17
|
passengerAccidentPremium?: number;
|
|
18
|
+
isGuest?: boolean;
|
|
18
19
|
}
|
|
19
|
-
export declare const MotorInsuranceApprovalPaymentStep: ({ user, amount, premiumBeforeDiscount, discountAmount, isApproving, isRejecting, onApprove, onReject,
|
|
20
|
+
export declare const MotorInsuranceApprovalPaymentStep: ({ user, amount, premiumBeforeDiscount, discountAmount, couponCode, isApproving, isRejecting, onApprove, onReject, termsAgreeHtml, startDate, tax, mandatoryPremium, passengerAccidentPremium, isGuest, }: MotorInsuranceApprovalPaymentStepProps) => import("react/jsx-runtime").JSX.Element;
|
package/types/embeded-main.d.ts
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
+
import { MotorInsuranceApprovalContent } from '../../../../components/Insurance/MotorInsuranceApprovalContent';
|
|
1
2
|
export declare const MotorInsuranceTransactionApprovalPage: () => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { MotorInsuranceApprovalContent as MotorInsuranceTransactionApprovalPageContent };
|
package/types/pages/agency/insurance/transaction-approval/InsuranceTransactionApprovalPage.d.ts
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
+
import { InsuranceApprovalContent } from '../../../../components/Insurance/InsuranceApprovalContent';
|
|
1
2
|
export declare const InsuranceTransactionApprovalPage: () => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { InsuranceApprovalContent as InsuranceTransactionApprovalPageContent };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const InsuranceApprovalPage: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MotorInsuranceApprovalPage: () => import("react/jsx-runtime").JSX.Element;
|
package/types/types/sdk.d.ts
CHANGED
|
@@ -4,5 +4,8 @@ export declare enum ESdkFormType {
|
|
|
4
4
|
DOMESTIC_INSURANCE = "domestic_insurance",
|
|
5
5
|
MOTOR_INSURANCE_CAR = "motor_insurance_car",
|
|
6
6
|
MOTOR_INSURANCE_BIKE = "motor_insurance_bike",
|
|
7
|
-
EXCHANGE_RATE_TABLE = "exchange_rate_table"
|
|
7
|
+
EXCHANGE_RATE_TABLE = "exchange_rate_table",
|
|
8
|
+
INSURANCE_APPROVAL = "insurance_approval",
|
|
9
|
+
MOTOR_INSURANCE_CAR_APPROVAL = "motor_insurance_car_approval",
|
|
10
|
+
MOTOR_INSURANCE_BIKE_APPROVAL = "motor_insurance_bike_approval"
|
|
8
11
|
}
|