gotrip-fx-transaction-form 1.0.286-dev → 1.0.288-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.286-dev",
3
+ "version": "1.0.288-dev",
4
4
  "description": "FX Transaction Form ES6 module",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",
@@ -22,5 +22,4 @@ export declare const useConfirmTransaction: () => {
22
22
  confirmTransaction: () => Promise<void>;
23
23
  customerCode: string | undefined;
24
24
  transactionPublicId: string | undefined;
25
- couponCode: string | null;
26
25
  };
@@ -0,0 +1,5 @@
1
+ export declare const useCreateAutoCoupon: () => {
2
+ createAutoCoupon: (publicId: string) => Promise<{
3
+ couponCode: string | null;
4
+ }>;
5
+ };
@@ -1,4 +1,7 @@
1
1
  import { EOrderPaymentType } from '../types/enum';
2
+ import { EApprovalStatus } from '../types/insurance';
3
+ export declare function getPaymentTypeLabel(paymentType?: EOrderPaymentType | string): string;
4
+ export declare function getApprovalStatusLabel(approvalBypassed?: boolean, approvalStatus?: EApprovalStatus | string | null): string;
2
5
  export declare function getOrderPaymentStatusShortLabel(params: {
3
6
  paymentTypeApplied?: EOrderPaymentType;
4
7
  paidAmount?: number;
@@ -1,4 +1,5 @@
1
1
  import { ESimPackageDataLimitTimeframe, ESimPackageDataLimitUnit, ESimPackageValidityType, ETransactionType } from '../types/response.dto';
2
+ export declare const getTransactionStatusLabel: (status?: string) => string;
2
3
  export declare const getTransactionType: (type: ETransactionType) => ETransactionType.STUDY | "Du học" | "Kinh doanh" | "Du lịch" | "Du lịch (Nhóm)" | "Di trú";
3
4
  export declare const formatDataLimit: (dataLimit: number, dataLimitUnit: ESimPackageDataLimitUnit, dataLimitTimeframe: ESimPackageDataLimitTimeframe) => string;
4
5
  export declare const formatValidity: (validityPeriod: number, validityType: ESimPackageValidityType) => string;