@rebilly/framepay 3.2.1 → 3.2.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +7 -16
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import type { coreComponents } from 'rebilly-js-sdk/types';
2
2
  import EventEmitter from 'eventemitter3';
3
3
  import type { reportsComponents } from 'rebilly-js-sdk/types';
4
+ import type { RiskMetadata } from '@rebilly/risk-data-collector';
4
5
 
5
6
  export declare interface AddressData {
6
7
  countryCode?: string;
@@ -910,21 +911,7 @@ export declare interface ReadyToPayObject {
910
911
  feature?: Record<string, string>;
911
912
  }
912
913
 
913
- export declare interface RiskMetadata {
914
- browserData?: {
915
- colorDepth: string;
916
- isJavaEnabled: string;
917
- language: string;
918
- screenHeight: string;
919
- screenWidth: string;
920
- timeZoneOffset: string;
921
- };
922
- extraData?: {
923
- kountFraudSessionId?: string;
924
- payPalMerchantSessionId?: string;
925
- };
926
- fingerprint?: string;
927
- }
914
+ export { RiskMetadata }
928
915
 
929
916
  export declare type RuntimeDelegate<T> = (externalPayload: ExternalPayload) => T | Promise<T>;
930
917
 
@@ -1067,7 +1054,11 @@ export declare interface TokenRequestPayload {
1067
1054
  cvv?: string;
1068
1055
  };
1069
1056
  billingAddress?: reportsComponents['schemas']['ContactObject'];
1070
- riskMetadata?: RiskMetadata;
1057
+ riskMetadata?: Partial<RiskMetadata> & {
1058
+ extraData?: {
1059
+ payPalMerchantSessionId?: string;
1060
+ };
1061
+ };
1071
1062
  leadSource?: LeadSource;
1072
1063
  cardExpiry?: {
1073
1064
  expMonth?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebilly/framepay",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "description": "A wrapper to load Rebilly's FramePay library and provide TypeScript types",
5
5
  "type": "module",
6
6
  "license": "MIT",