@yuno-payments/sdk-web-types 4.4.0 → 4.6.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 CHANGED
@@ -855,7 +855,11 @@ interface YunoConfig {
855
855
  }): void;
856
856
  deviceFingerprints?: ExternalProviderId[];
857
857
  }
858
- type StartCheckoutArgs = Omit<YunoConfig, "yunoEnrollmentStatus" | "customerSession" | "publicApiKey">;
858
+ type StartCheckoutArgs = Omit<YunoConfig, "yunoEnrollmentStatus" | "customerSession" | "publicApiKey" | "card"> & {
859
+ card?: CardConfig & {
860
+ onChange?(args: OnChangeArgs): void;
861
+ };
862
+ };
859
863
  type MountEnrollmentLiteArgs = Pick<YunoConfig, "language" | "countryCode" | "renderMode" | "yunoEnrollmentStatus" | "yunoError" | "showLoading" | "onRendered" | "onOneTimeTokenCreationStart" | "onLoading" | "customerSession">;
860
864
  type mountFraudArgs = Pick<YunoConfig, "yunoCreatePayment" | "yunoError" | "language" | "checkoutSession">;
861
865
  interface MountCheckoutLiteArgs {
package/dist/index.d.ts CHANGED
@@ -855,7 +855,11 @@ interface YunoConfig {
855
855
  }): void;
856
856
  deviceFingerprints?: ExternalProviderId[];
857
857
  }
858
- type StartCheckoutArgs = Omit<YunoConfig, "yunoEnrollmentStatus" | "customerSession" | "publicApiKey">;
858
+ type StartCheckoutArgs = Omit<YunoConfig, "yunoEnrollmentStatus" | "customerSession" | "publicApiKey" | "card"> & {
859
+ card?: CardConfig & {
860
+ onChange?(args: OnChangeArgs): void;
861
+ };
862
+ };
859
863
  type MountEnrollmentLiteArgs = Pick<YunoConfig, "language" | "countryCode" | "renderMode" | "yunoEnrollmentStatus" | "yunoError" | "showLoading" | "onRendered" | "onOneTimeTokenCreationStart" | "onLoading" | "customerSession">;
860
864
  type mountFraudArgs = Pick<YunoConfig, "yunoCreatePayment" | "yunoError" | "language" | "checkoutSession">;
861
865
  interface MountCheckoutLiteArgs {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuno-payments/sdk-web-types",
3
- "version": "4.4.0",
3
+ "version": "4.6.0",
4
4
  "types": "dist/index.d.ts",
5
5
  "type": "module",
6
6
  "publishConfig": {