gotrip-fx-transaction-form 1.0.295-dev → 1.0.297-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gotrip-fx-transaction-form",
3
- "version": "1.0.295-dev",
3
+ "version": "1.0.297-dev",
4
4
  "description": "FX Transaction Form ES6 module",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ import { DebtPaymentQrResponse } from '../../types/response.dto';
3
+ interface DebtPaymentQrButtonProps {
4
+ transactionPublicId: string;
5
+ fetchQr: (publicId: string) => Promise<DebtPaymentQrResponse>;
6
+ }
7
+ export declare const DebtPaymentQrButton: React.FC<DebtPaymentQrButtonProps>;
8
+ export default DebtPaymentQrButton;
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ import { BankTransferInfo } from '../../types/response.dto';
3
+ interface DebtSettlementQrModalProps {
4
+ open: boolean;
5
+ onClose: () => void;
6
+ qrCodeUrl: string;
7
+ amount: number;
8
+ bankTransferInfo?: BankTransferInfo;
9
+ }
10
+ declare const DebtSettlementQrModal: React.FC<DebtSettlementQrModalProps>;
11
+ export default DebtSettlementQrModal;
@@ -244,6 +244,7 @@ export declare const ApiUrls: {
244
244
  createCarTransaction: (provider: string) => string;
245
245
  transactionList: string;
246
246
  transactionDetail: (publicId: string) => string;
247
+ debtPaymentQr: (publicId: string) => string;
247
248
  retryProviderPolicy: (publicId: string) => string;
248
249
  approveTransaction: (publicId: string) => string;
249
250
  rejectTransaction: (publicId: string) => string;
@@ -253,6 +254,7 @@ export declare const ApiUrls: {
253
254
  providers: string;
254
255
  coveragePlans: (provider: string) => string;
255
256
  transactionDetail: (publicId: string) => string;
257
+ debtPaymentQr: (publicId: string) => string;
256
258
  retryProviderPolicy: (publicId: string) => string;
257
259
  approveTransaction: (publicId: string) => string;
258
260
  rejectTransaction: (publicId: string) => string;
@@ -1,4 +1,5 @@
1
1
  import { InsuranceTransaction } from '../types/insurance-transaction.dto';
2
+ import { DebtPaymentQrResponse } from '../types/response.dto';
2
3
  import { EPaymentMethod, EOrderPaymentType, TransactionStatus } from '../types/enum';
3
4
  import { EApprovalStatus, ETravelScope } from '../types/insurance';
4
5
  export interface GetInsuranceTransactionListReqDto {
@@ -110,6 +111,7 @@ export declare const useInsuranceTransaction: (options?: {
110
111
  updateTransaction: (publicId: string, payload: CreateTransactionPayload) => Promise<InsuranceTransaction>;
111
112
  isCreatingTransaction: boolean;
112
113
  checkTransactionStatus: (publicId: string) => Promise<InsuranceTransaction>;
114
+ fetchDebtPaymentQr: (publicId: string) => Promise<DebtPaymentQrResponse>;
113
115
  approveTransaction: (publicId: string, payload: {
114
116
  paymentMode?: EPaymentMethod;
115
117
  paymentType: EOrderPaymentType;
@@ -1,5 +1,6 @@
1
1
  import { EPaymentMethod, EOrderPaymentType, TransactionStatus } from '../types/enum';
2
2
  import { EMotorProvider, EMotorVehicleType } from '../components/MotorInsurance/motor-insurance.types';
3
+ import { DebtPaymentQrResponse } from '../types/response.dto';
3
4
  export interface MotorInsuranceTransactionDetail {
4
5
  id: number;
5
6
  transactionPublicId: string;
@@ -85,6 +86,7 @@ export declare const useMotorInsuranceTransactionDetail: (publicId: string | und
85
86
  }) => Promise<void>;
86
87
  retryProviderLoading: boolean;
87
88
  retryProviderPolicy: () => Promise<void>;
89
+ fetchDebtPaymentQr: (targetPublicId: string) => Promise<DebtPaymentQrResponse>;
88
90
  };
89
91
  export declare const useMotorInsuranceTransaction: (options?: {
90
92
  defaultLimit?: number;
@@ -113,8 +115,10 @@ export declare const useMotorInsuranceTransaction: (options?: {
113
115
  }) => Promise<void>;
114
116
  retryProviderLoading: boolean;
115
117
  retryProviderPolicy: () => Promise<void>;
118
+ fetchDebtPaymentQr: (targetPublicId: string) => Promise<DebtPaymentQrResponse>;
116
119
  };
117
120
  checkTransactionStatus: (publicId: string) => Promise<MotorInsuranceTransactionDetail | null>;
121
+ fetchDebtPaymentQr: (publicId: string) => Promise<DebtPaymentQrResponse>;
118
122
  approveTransaction: (publicId: string, payload?: {
119
123
  paymentMode?: EPaymentMethod;
120
124
  paymentType?: EOrderPaymentType;
@@ -308,6 +308,12 @@ export type CreateEsimTransactionBankTransferResponse = {
308
308
  totalAmount: number;
309
309
  bankTransferInfo?: BankTransferInfo;
310
310
  };
311
+ export type DebtPaymentQrResponse = {
312
+ qrCodeUrl: string;
313
+ transactionPublicId: string;
314
+ totalAmount: number;
315
+ bankTransferInfo?: BankTransferInfo;
316
+ };
311
317
  export type GetUserListRespDto = {
312
318
  users: IUser[];
313
319
  total: number;