@yuno-payments/sdk-web-types 4.6.0 → 5.0.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 +16 -2
- package/dist/index.d.ts +16 -2
- package/package.json +1 -1
package/dist/global.d.ts
CHANGED
|
@@ -718,6 +718,20 @@ interface SecureFields {
|
|
|
718
718
|
unmountSync(): void;
|
|
719
719
|
}
|
|
720
720
|
|
|
721
|
+
declare namespace ExternalButtonsNameSpace {
|
|
722
|
+
type ExternalButton = {
|
|
723
|
+
elementSelector: string;
|
|
724
|
+
paymentMethodType: string;
|
|
725
|
+
checkoutSession?: string;
|
|
726
|
+
};
|
|
727
|
+
type MountExternalButtonsArgs = ExternalButton[];
|
|
728
|
+
interface ExternalButtonMethods {
|
|
729
|
+
mountExternalButtons(args: MountExternalButtonsArgs): Promise<void>;
|
|
730
|
+
unmountExternalButton(paymentMethodType: string): Promise<void>;
|
|
731
|
+
unmountAllExternalButtons(): Promise<void>;
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
|
|
721
735
|
interface ButtonTextCard {
|
|
722
736
|
cardForm?: {
|
|
723
737
|
enrollmentSubmitButton?: string;
|
|
@@ -860,7 +874,7 @@ type StartCheckoutArgs = Omit<YunoConfig, "yunoEnrollmentStatus" | "customerSess
|
|
|
860
874
|
onChange?(args: OnChangeArgs): void;
|
|
861
875
|
};
|
|
862
876
|
};
|
|
863
|
-
type MountEnrollmentLiteArgs = Pick<YunoConfig, "language" | "countryCode" | "renderMode" | "yunoEnrollmentStatus" | "yunoError" | "showLoading" | "onRendered" | "onOneTimeTokenCreationStart" | "onLoading" | "customerSession">;
|
|
877
|
+
type MountEnrollmentLiteArgs = Pick<YunoConfig, "language" | "countryCode" | "renderMode" | "yunoEnrollmentStatus" | "yunoError" | "showLoading" | "onRendered" | "onOneTimeTokenCreationStart" | "onLoading" | "customerSession" | "showPaymentStatus">;
|
|
864
878
|
type mountFraudArgs = Pick<YunoConfig, "yunoCreatePayment" | "yunoError" | "language" | "checkoutSession">;
|
|
865
879
|
interface MountCheckoutLiteArgs {
|
|
866
880
|
paymentMethodType: string;
|
|
@@ -913,7 +927,7 @@ type ExternalButton = {
|
|
|
913
927
|
checkoutSession?: string;
|
|
914
928
|
};
|
|
915
929
|
type MountSeamlessExternalButtonsArgs = ExternalButton[];
|
|
916
|
-
interface YunoInstance {
|
|
930
|
+
interface YunoInstance extends ExternalButtonsNameSpace.ExternalButtonMethods {
|
|
917
931
|
startCheckout(args: StartCheckoutArgs): Promise<void>;
|
|
918
932
|
startSeamlessCheckout(args: StartSeamlessCheckoutArgs): Promise<void>;
|
|
919
933
|
mountCheckout(): Promise<void>;
|
package/dist/index.d.ts
CHANGED
|
@@ -718,6 +718,20 @@ interface SecureFields {
|
|
|
718
718
|
unmountSync(): void;
|
|
719
719
|
}
|
|
720
720
|
|
|
721
|
+
declare namespace ExternalButtonsNameSpace {
|
|
722
|
+
type ExternalButton = {
|
|
723
|
+
elementSelector: string;
|
|
724
|
+
paymentMethodType: string;
|
|
725
|
+
checkoutSession?: string;
|
|
726
|
+
};
|
|
727
|
+
type MountExternalButtonsArgs = ExternalButton[];
|
|
728
|
+
interface ExternalButtonMethods {
|
|
729
|
+
mountExternalButtons(args: MountExternalButtonsArgs): Promise<void>;
|
|
730
|
+
unmountExternalButton(paymentMethodType: string): Promise<void>;
|
|
731
|
+
unmountAllExternalButtons(): Promise<void>;
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
|
|
721
735
|
interface ButtonTextCard {
|
|
722
736
|
cardForm?: {
|
|
723
737
|
enrollmentSubmitButton?: string;
|
|
@@ -860,7 +874,7 @@ type StartCheckoutArgs = Omit<YunoConfig, "yunoEnrollmentStatus" | "customerSess
|
|
|
860
874
|
onChange?(args: OnChangeArgs): void;
|
|
861
875
|
};
|
|
862
876
|
};
|
|
863
|
-
type MountEnrollmentLiteArgs = Pick<YunoConfig, "language" | "countryCode" | "renderMode" | "yunoEnrollmentStatus" | "yunoError" | "showLoading" | "onRendered" | "onOneTimeTokenCreationStart" | "onLoading" | "customerSession">;
|
|
877
|
+
type MountEnrollmentLiteArgs = Pick<YunoConfig, "language" | "countryCode" | "renderMode" | "yunoEnrollmentStatus" | "yunoError" | "showLoading" | "onRendered" | "onOneTimeTokenCreationStart" | "onLoading" | "customerSession" | "showPaymentStatus">;
|
|
864
878
|
type mountFraudArgs = Pick<YunoConfig, "yunoCreatePayment" | "yunoError" | "language" | "checkoutSession">;
|
|
865
879
|
interface MountCheckoutLiteArgs {
|
|
866
880
|
paymentMethodType: string;
|
|
@@ -913,7 +927,7 @@ type ExternalButton = {
|
|
|
913
927
|
checkoutSession?: string;
|
|
914
928
|
};
|
|
915
929
|
type MountSeamlessExternalButtonsArgs = ExternalButton[];
|
|
916
|
-
interface YunoInstance {
|
|
930
|
+
interface YunoInstance extends ExternalButtonsNameSpace.ExternalButtonMethods {
|
|
917
931
|
startCheckout(args: StartCheckoutArgs): Promise<void>;
|
|
918
932
|
startSeamlessCheckout(args: StartSeamlessCheckoutArgs): Promise<void>;
|
|
919
933
|
mountCheckout(): Promise<void>;
|