@miden-npm/vue 2.0.0 → 2.0.2
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/dist/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1576 -1542
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/index.umd.js.map +1 -1
- package/dist/types/apis/checkout.api.d.ts +2 -4
- package/dist/types/buzapay-checkout/checkout-card.vue.d.ts +0 -1
- package/dist/types/components/base/success.vue.d.ts +1 -1
- package/dist/types/components/pay-by-card.vue.d.ts +3 -1
- package/dist/types/types/checkout.type.d.ts +28 -0
- package/dist/types/utils/object.util.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IGeneratePaymentAccountPayload, IGenerateStableCoinAddress, IPaymentObject } from "../types/checkout.type";
|
|
2
2
|
export declare function createPaymentLink(paymentObject: IPaymentObject, environment: string, secretKey: string, caller: "buzapay" | "miden"): Promise<any>;
|
|
3
|
-
export declare function authorizeCardPayment(environment: string, { merchantId, ...rest }:
|
|
4
|
-
merchantId: string;
|
|
5
|
-
}, caller: "buzapay" | "miden"): Promise<any>;
|
|
3
|
+
export declare function authorizeCardPayment(environment: string, { merchantId, ...rest }: any, caller: "buzapay" | "miden"): Promise<any>;
|
|
6
4
|
export declare function generatePaymentAccount(environment: string, { merchantId, ...rest }: IGeneratePaymentAccountPayload, caller: "buzapay" | "miden"): Promise<any>;
|
|
7
5
|
export declare function getPaymentReferenceDetails(environment: string, paymentReference: string, caller: "buzapay" | "miden"): Promise<any>;
|
|
8
6
|
export declare function generateStableCoinAddress(environment: string, { merchantId, ...rest }: IGenerateStableCoinAddress, caller: "buzapay" | "miden"): Promise<any>;
|
|
@@ -8,8 +8,8 @@ interface IBaseSuccessProps {
|
|
|
8
8
|
}
|
|
9
9
|
declare const _default: import("vue").DefineComponent<IBaseSuccessProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IBaseSuccessProps> & Readonly<{}>, {
|
|
10
10
|
caller: "buzapay" | "miden";
|
|
11
|
-
amount: number;
|
|
12
11
|
currency: string;
|
|
12
|
+
amount: number;
|
|
13
13
|
redirectUrl: string;
|
|
14
14
|
successObject: ISuccessObject;
|
|
15
15
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -12,5 +12,7 @@ type __VLS_Props = {
|
|
|
12
12
|
onError?: (error: IErrorObject) => void;
|
|
13
13
|
caller?: "buzapay" | "miden";
|
|
14
14
|
};
|
|
15
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
15
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
16
|
+
caller: "buzapay" | "miden";
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
18
|
export default _default;
|
|
@@ -6,6 +6,7 @@ export interface IPaymentObject {
|
|
|
6
6
|
phoneNumber: string;
|
|
7
7
|
narration: string;
|
|
8
8
|
redirectUrl?: string;
|
|
9
|
+
logoUrl?: string;
|
|
9
10
|
}
|
|
10
11
|
export interface ICardDetails {
|
|
11
12
|
pan: string;
|
|
@@ -42,6 +43,33 @@ export interface IAuthorizeCardPaymentPayload {
|
|
|
42
43
|
paymentReference: string;
|
|
43
44
|
isCheckout: boolean;
|
|
44
45
|
}
|
|
46
|
+
export interface IDeviceInformation {
|
|
47
|
+
httpBrowserLanguage: string;
|
|
48
|
+
httpBrowserJavaEnabled: boolean;
|
|
49
|
+
httpBrowserJavaScriptEnabled: boolean;
|
|
50
|
+
httpBrowserColorDepth: string;
|
|
51
|
+
httpBrowserScreenHeight: string;
|
|
52
|
+
httpBrowserScreenWidth: string;
|
|
53
|
+
httpBrowserTimeDifference: string;
|
|
54
|
+
userAgentBrowserValue: string;
|
|
55
|
+
deviceChannel: "BROWSER" | "MOBILE" | "API";
|
|
56
|
+
deviceIpAddress: string;
|
|
57
|
+
httpAcceptContent: string;
|
|
58
|
+
}
|
|
59
|
+
export interface IAuthorizeCardPaymentPayloadMiden {
|
|
60
|
+
customerId: string;
|
|
61
|
+
amount: string;
|
|
62
|
+
currency: string;
|
|
63
|
+
narration: string;
|
|
64
|
+
encryptedCardDetails: string;
|
|
65
|
+
billingDetails: IBillingDetails;
|
|
66
|
+
redirectUrl: string;
|
|
67
|
+
paymentReference: string;
|
|
68
|
+
isCheckout: boolean;
|
|
69
|
+
postBackUrl: string;
|
|
70
|
+
saveCard: boolean;
|
|
71
|
+
deviceInformation: IDeviceInformation;
|
|
72
|
+
}
|
|
45
73
|
export interface ISuccessObject {
|
|
46
74
|
paymentDate: string | null;
|
|
47
75
|
paymentId: string;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
+
import { IDeviceInformation } from "../types/checkout.type";
|
|
1
2
|
export declare const checkObjectTruthy: <T extends object>(obj: T) => boolean;
|
|
2
3
|
export declare const getQueryParams: (url: string) => Record<string, string>;
|
|
4
|
+
export declare function buildDeviceInformation(partial?: Partial<IDeviceInformation>): IDeviceInformation;
|