@yuno-payments/sdk-web-types 3.0.0 → 3.1.0
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/global.d.ts +10 -1
- package/dist/index.d.ts +11 -2
- package/package.json +1 -1
package/dist/global.d.ts
CHANGED
|
@@ -605,6 +605,15 @@ interface MountStatusPaymentArgs {
|
|
|
605
605
|
yunoPaymentResult?: YunoConfig['yunoPaymentResult'];
|
|
606
606
|
yunoError?: YunoConfig['yunoError'];
|
|
607
607
|
}
|
|
608
|
+
type ContinuePaymentResponse = {
|
|
609
|
+
action: 'REDIRECT_URL';
|
|
610
|
+
type: string;
|
|
611
|
+
redirect: {
|
|
612
|
+
init_url: string;
|
|
613
|
+
success_url: string;
|
|
614
|
+
error_url: string;
|
|
615
|
+
};
|
|
616
|
+
} | null;
|
|
608
617
|
interface YunoInstance {
|
|
609
618
|
startCheckout(args: StartCheckoutArgs): Promise<void>;
|
|
610
619
|
mountCheckout(args: MountCheckoutArgs): Promise<void>;
|
|
@@ -613,7 +622,7 @@ interface YunoInstance {
|
|
|
613
622
|
updateCheckoutSession(checkout: string): Promise<void>;
|
|
614
623
|
submitOneTimeTokenForm(): Promise<void>;
|
|
615
624
|
startPayment(): Promise<void>;
|
|
616
|
-
continuePayment(): Promise<
|
|
625
|
+
continuePayment(): Promise<ContinuePaymentResponse>;
|
|
617
626
|
notifyError(): Promise<void>;
|
|
618
627
|
mountEnrollmentLite(args: MountEnrollmentLiteArgs): Promise<void>;
|
|
619
628
|
showLoader(): Promise<void>;
|
package/dist/index.d.ts
CHANGED
|
@@ -605,6 +605,15 @@ interface MountStatusPaymentArgs {
|
|
|
605
605
|
yunoPaymentResult?: YunoConfig['yunoPaymentResult'];
|
|
606
606
|
yunoError?: YunoConfig['yunoError'];
|
|
607
607
|
}
|
|
608
|
+
type ContinuePaymentResponse = {
|
|
609
|
+
action: 'REDIRECT_URL';
|
|
610
|
+
type: string;
|
|
611
|
+
redirect: {
|
|
612
|
+
init_url: string;
|
|
613
|
+
success_url: string;
|
|
614
|
+
error_url: string;
|
|
615
|
+
};
|
|
616
|
+
} | null;
|
|
608
617
|
interface YunoInstance {
|
|
609
618
|
startCheckout(args: StartCheckoutArgs): Promise<void>;
|
|
610
619
|
mountCheckout(args: MountCheckoutArgs): Promise<void>;
|
|
@@ -613,7 +622,7 @@ interface YunoInstance {
|
|
|
613
622
|
updateCheckoutSession(checkout: string): Promise<void>;
|
|
614
623
|
submitOneTimeTokenForm(): Promise<void>;
|
|
615
624
|
startPayment(): Promise<void>;
|
|
616
|
-
continuePayment(): Promise<
|
|
625
|
+
continuePayment(): Promise<ContinuePaymentResponse>;
|
|
617
626
|
notifyError(): Promise<void>;
|
|
618
627
|
mountEnrollmentLite(args: MountEnrollmentLiteArgs): Promise<void>;
|
|
619
628
|
showLoader(): Promise<void>;
|
|
@@ -629,4 +638,4 @@ interface Yuno {
|
|
|
629
638
|
initialize(publicApiKey: string): Promise<YunoInstance>;
|
|
630
639
|
}
|
|
631
640
|
|
|
632
|
-
export { type ButtonTextCard, type CardConfig, type CreateArgsSF, type ExternalPaymentButtons, ExternalPaymentButtonsTypes, type Font, type FormElementSelector, type Language, type LoadingType, type MountCheckoutArgs, type MountCheckoutLiteArgs, type MountEnrollmentLiteArgs, type MountSeamlessCheckoutLiteArgs, type MountStatusPaymentArgs, type OnChangeDataSF, type RenderMode, type SecureFieldInstance, type SecureFieldsArgs, type StartCheckoutArgs, type TextsCustom, type Yuno, type YunoConfig, type YunoInstance, type mountFraudArgs };
|
|
641
|
+
export { type ButtonTextCard, type CardConfig, type ContinuePaymentResponse, type CreateArgsSF, type ExternalPaymentButtons, ExternalPaymentButtonsTypes, type Font, type FormElementSelector, type Language, type LoadingType, type MountCheckoutArgs, type MountCheckoutLiteArgs, type MountEnrollmentLiteArgs, type MountSeamlessCheckoutLiteArgs, type MountStatusPaymentArgs, type OnChangeDataSF, type RenderMode, type SecureFieldInstance, type SecureFieldsArgs, type StartCheckoutArgs, type TextsCustom, type Yuno, type YunoConfig, type YunoInstance, type mountFraudArgs };
|