gotrip-fx-transaction-form 1.0.288-dev → 1.0.290-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 +31499 -29870
- 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 +28 -0
- package/types/components/Insurance/MotorInsuranceApprovalContent.d.ts +10 -0
- package/types/components/Insurance/MotorInsuranceApprovalPageSDK.d.ts +5 -0
- package/types/components/MotorInsurance/MotorInsuranceApprovalPaymentStep.d.ts +19 -0
- package/types/constants/approval-link.enum.d.ts +4 -0
- package/types/embeded-main.d.ts +1 -0
- package/types/hooks/useInsuranceTransaction.d.ts +4 -1
- package/types/hooks/useMotorInsuranceTransaction.d.ts +7 -2
- 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 {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { EPaymentMethod, EOrderPaymentType } from '../../types/enum';
|
|
2
|
+
import { EInsuranceType } from '../../types/insurance';
|
|
3
|
+
export interface InsuranceApprovalPaymentStepProps {
|
|
4
|
+
user?: any;
|
|
5
|
+
amount: number;
|
|
6
|
+
discountAmount?: number;
|
|
7
|
+
couponCode?: string;
|
|
8
|
+
couponDescription?: string;
|
|
9
|
+
isApproving?: boolean;
|
|
10
|
+
isRejecting?: boolean;
|
|
11
|
+
onApprove?: (paymentMode: EPaymentMethod | undefined, paymentType: EOrderPaymentType) => void;
|
|
12
|
+
onReject?: (reason: string, text?: string) => void;
|
|
13
|
+
insuranceType?: EInsuranceType;
|
|
14
|
+
adultsCount?: number;
|
|
15
|
+
teenagerCount?: number;
|
|
16
|
+
childrenCount?: number;
|
|
17
|
+
freeTeenagerCount?: number;
|
|
18
|
+
freeChildrenCount?: number;
|
|
19
|
+
premiumPerPerson?: number;
|
|
20
|
+
isLoadingPremium?: boolean;
|
|
21
|
+
termsDetailsHtml?: string;
|
|
22
|
+
termsAgreeHtml?: string;
|
|
23
|
+
startDate?: string | Date;
|
|
24
|
+
travelScope?: string;
|
|
25
|
+
planName?: string;
|
|
26
|
+
isGuest?: boolean;
|
|
27
|
+
}
|
|
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 {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EPaymentMethod, EOrderPaymentType } from '../../types/enum';
|
|
2
|
+
export interface MotorInsuranceApprovalPaymentStepProps {
|
|
3
|
+
user?: any;
|
|
4
|
+
amount: number;
|
|
5
|
+
premiumBeforeDiscount?: number;
|
|
6
|
+
discountAmount?: number;
|
|
7
|
+
isApproving?: boolean;
|
|
8
|
+
isRejecting?: boolean;
|
|
9
|
+
onApprove?: (paymentMode: EPaymentMethod | undefined, paymentType: EOrderPaymentType) => void;
|
|
10
|
+
onReject?: (reason: string, text?: string) => void;
|
|
11
|
+
termsDetailsHtml?: string;
|
|
12
|
+
termsAgreeHtml?: string;
|
|
13
|
+
startDate?: string | Date;
|
|
14
|
+
tax?: number;
|
|
15
|
+
mandatoryPremium?: number;
|
|
16
|
+
passengerAccidentPremium?: number;
|
|
17
|
+
isGuest?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare const MotorInsuranceApprovalPaymentStep: ({ user, amount, premiumBeforeDiscount, discountAmount, isApproving, isRejecting, onApprove, onReject, termsAgreeHtml, startDate, tax, mandatoryPremium, passengerAccidentPremium, isGuest, }: MotorInsuranceApprovalPaymentStepProps) => import("react/jsx-runtime").JSX.Element;
|
package/types/embeded-main.d.ts
CHANGED
|
@@ -110,7 +110,10 @@ export declare const useInsuranceTransaction: (options?: {
|
|
|
110
110
|
updateTransaction: (publicId: string, payload: CreateTransactionPayload) => Promise<InsuranceTransaction>;
|
|
111
111
|
isCreatingTransaction: boolean;
|
|
112
112
|
checkTransactionStatus: (publicId: string) => Promise<InsuranceTransaction>;
|
|
113
|
-
approveTransaction: (publicId: string
|
|
113
|
+
approveTransaction: (publicId: string, payload: {
|
|
114
|
+
paymentMode?: EPaymentMethod;
|
|
115
|
+
paymentType: EOrderPaymentType;
|
|
116
|
+
}) => Promise<any>;
|
|
114
117
|
isApprovingTransaction: boolean;
|
|
115
118
|
rejectTransaction: (publicId: string, payload: {
|
|
116
119
|
code: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EOrderPaymentType, TransactionStatus } from '../types/enum';
|
|
1
|
+
import { EPaymentMethod, EOrderPaymentType, TransactionStatus } from '../types/enum';
|
|
2
2
|
import { EMotorProvider, EMotorVehicleType } from '../components/MotorInsurance/motor-insurance.types';
|
|
3
3
|
export interface MotorInsuranceTransactionDetail {
|
|
4
4
|
id: number;
|
|
@@ -115,10 +115,15 @@ export declare const useMotorInsuranceTransaction: (options?: {
|
|
|
115
115
|
retryProviderPolicy: () => Promise<void>;
|
|
116
116
|
};
|
|
117
117
|
checkTransactionStatus: (publicId: string) => Promise<MotorInsuranceTransactionDetail | null>;
|
|
118
|
-
approveTransaction: (publicId: string
|
|
118
|
+
approveTransaction: (publicId: string, payload?: {
|
|
119
|
+
paymentMode?: EPaymentMethod;
|
|
120
|
+
paymentType?: EOrderPaymentType;
|
|
121
|
+
}) => Promise<any>;
|
|
122
|
+
isApprovingTransaction: boolean;
|
|
119
123
|
rejectTransaction: (publicId: string, payload: {
|
|
120
124
|
code: string;
|
|
121
125
|
text?: string;
|
|
122
126
|
}) => Promise<void>;
|
|
127
|
+
isRejectingTransaction: boolean;
|
|
123
128
|
updateTransaction: (publicId: string, payload: Record<string, unknown>) => Promise<MotorInsuranceTransactionDetail>;
|
|
124
129
|
};
|
|
@@ -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
|
}
|