gotrip-fx-transaction-form 1.0.296-dev → 1.0.298-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.296-dev",
3
+ "version": "1.0.298-dev",
4
4
  "description": "FX Transaction Form ES6 module",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",
@@ -5,6 +5,13 @@ interface FxInsuranceCouponBoxProps {
5
5
  countryNameDes?: string | null;
6
6
  discountPercent?: number;
7
7
  maxDiscountAmount?: number;
8
+ /**
9
+ * Code of the tenant that sold the FX order. Becomes the `utm_source` of the
10
+ * cross-sell links so an insurance order can be traced back to the exact
11
+ * tenant that referred it, not just to "an FX order". Falls back to `fx`
12
+ * when the backend could not resolve the tenant.
13
+ */
14
+ tenantCode?: string | null;
8
15
  }
9
- export declare const FxInsuranceCouponBox: ({ couponCode, transactionPublicId, countryCodeDes, countryNameDes, discountPercent, maxDiscountAmount, }: FxInsuranceCouponBoxProps) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const FxInsuranceCouponBox: ({ couponCode, transactionPublicId, countryCodeDes, countryNameDes, discountPercent, maxDiscountAmount, tenantCode, }: FxInsuranceCouponBoxProps) => import("react/jsx-runtime").JSX.Element;
10
17
  export {};
@@ -13,6 +13,7 @@ export type ConfirmTransactionData = {
13
13
  customerCode: string;
14
14
  countryCodeDes: string;
15
15
  countryNameDes: string;
16
+ fxCrossSellEnabled?: boolean;
16
17
  };
17
18
  export declare const useConfirmTransaction: () => {
18
19
  transaction: ConfirmTransactionData | null;
@@ -1,5 +1,7 @@
1
+ export type AutoCouponResult = {
2
+ couponCode: string | null;
3
+ tenantCode: string | null;
4
+ };
1
5
  export declare const useCreateAutoCoupon: () => {
2
- createAutoCoupon: (publicId: string) => Promise<{
3
- couponCode: string | null;
4
- }>;
6
+ createAutoCoupon: (publicId: string) => Promise<AutoCouponResult>;
5
7
  };
@@ -0,0 +1 @@
1
+ export declare const useFxCrossSellEnabled: () => boolean;
@@ -254,6 +254,7 @@ export interface ITravelAgencyTenantSettings {
254
254
  };
255
255
  fx: {
256
256
  useCases: EUseCaseses[];
257
+ crossSell?: boolean;
257
258
  };
258
259
  esimOutbound: Record<string, any>;
259
260
  esimInbound: Record<string, any>;
@@ -62,6 +62,7 @@ export declare enum EPermissionKey {
62
62
  SEND_EMAILS_TO_CUSTOMER = "SEND_EMAILS_TO_CUSTOMER",
63
63
  VIEW_SENT_EMAIL_HISTORY = "VIEW_SENT_EMAIL_HISTORY",
64
64
  SEND_EMAIL = "SEND_EMAIL",
65
+ CHAT_SUPPORT = "CHAT_SUPPORT",
65
66
  VIEW_DEBT_REPORT_LIST = "VIEW_DEBT_REPORT_LIST",
66
67
  VIEW_DEBT_REPORT_DETAIL = "VIEW_DEBT_REPORT_DETAIL",
67
68
  UPDATE_DEBT_REPORT = "UPDATE_DEBT_REPORT",