New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@basis-theory/basis-theory-js

Package Overview
Dependencies
Maintainers
0
Versions
180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@basis-theory/basis-theory-js - npm Package Compare versions

Comparing version 4.9.0 to 4.10.0

2

package.json
{
"name": "@basis-theory/basis-theory-js",
"version": "4.9.0",
"version": "4.10.0",
"repository": "https://github.com/Basis-Theory/basis-theory-js",

@@ -5,0 +5,0 @@ "license": "Apache-2.0",

import { BasisTheoryService } from '../service';
import { AuthenticateThreeDSSessionRequest, ThreeDSAuthentication, ThreeDSSession } from '../types/models/threeds';
import { AuthenticateThreeDSSessionRequest, CreateThreeDSSessionRequest, CreateThreeDSSessionResponse, ThreeDSAuthentication, ThreeDSSession } from '../types/models/threeds';
import { ThreeDS } from '../types/sdk/services/threeds';
export declare class BasisTheoryThreeDS extends BasisTheoryService implements ThreeDS {
createSession(createRequest: CreateThreeDSSessionRequest): Promise<CreateThreeDSSessionResponse>;
getSessionById(sessionId: string): Promise<ThreeDSSession>;

@@ -6,0 +7,0 @@ authenticateSession(sessionId: string, authenticateRequest: AuthenticateThreeDSSessionRequest): Promise<ThreeDSAuthentication>;

@@ -13,2 +13,6 @@ "use strict";

class BasisTheoryThreeDS extends _service.BasisTheoryService {
createSession(createRequest) {
return this.client.post('/sessions', createRequest).then(_common.dataExtractor);
}
getSessionById(sessionId) {

@@ -15,0 +19,0 @@ return this.client.get(`/sessions/${sessionId}`).then(_common.dataExtractor);

@@ -0,1 +1,16 @@

interface CreateThreeDSSessionRequest {
pan: string;
type: 'customer' | 'merchant';
device?: string;
deviceInfo?: ThreeDSDeviceInfo;
}
interface CreateThreeDSSessionResponse {
id: string;
type: 'customer' | 'merchant';
cardBrand?: string;
methodUrl?: string;
methodNotificationUrl?: string;
directoryServerId?: string;
recommendedVersion?: string;
}
interface AuthenticateThreeDSSessionRequest {

@@ -110,2 +125,3 @@ authenticationCategory: string;

id: string;
type?: 'customer' | 'merchant';
tenantId: string;

@@ -126,23 +142,23 @@ panTokenId: string;

interface ThreeDSDeviceInfo {
browserAcceptHeader: string;
browserIpAddress: string;
browserJavascriptEnabled: boolean | null;
browserJavaEnabled: boolean | null;
browserLanguage: string;
browserColorDepth: string;
browserScreenHeight: string;
browserScreenWidth: string;
browserTimezone: string;
browserUserAgent: string;
sdkTransactionId: string;
sdkApplicationId: string;
sdkEncryptionData: string;
sdkEphemeralPublicKey: string;
sdkMaxTimeout: string;
sdkReferenceNumber: string;
sdkRenderOptions: ThreeDSMobileSdkRenderOptions;
browserAcceptHeader?: string;
browserIpAddress?: string;
browserJavascriptEnabled?: boolean | null;
browserJavaEnabled?: boolean | null;
browserLanguage?: string;
browserColorDepth?: string;
browserScreenHeight?: string;
browserScreenWidth?: string;
browserTimezone?: string;
browserUserAgent?: string;
sdkTransactionId?: string;
sdkApplicationId?: string;
sdkEncryptionData?: string;
sdkEphemeralPublicKey?: string;
sdkMaxTimeout?: string;
sdkReferenceNumber?: string;
sdkRenderOptions?: ThreeDSMobileSdkRenderOptions;
}
interface ThreeDSMobileSdkRenderOptions {
sdkInterface: string;
sdkUiType: string;
sdkInterface?: string;
sdkUiType?: string;
}

@@ -190,2 +206,2 @@ interface ThreeDSVersion {

}
export type { AuthenticateThreeDSSessionRequest, ThreeDSPurchaseInfo, ThreeDSMerchantInfo, ThreeDSMerchantRiskInfo, ThreeDSRequestorInfo, ThreeDSCardholderInfo, ThreeDSCardholderAccountInfo, ThreeDSCardholderAuthenticationInfo, ThreeDSPriorAuthenticationInfo, ThreeDSCardholderPhoneNumber, ThreeDSAddress, ThreeDSMessageExtension, ThreeDSSession, ThreeDSDeviceInfo, ThreeDSMobileSdkRenderOptions, ThreeDSVersion, ThreeDSMethod, ThreeDSAuthentication, ThreeDSAcsRenderingType, };
export type { CreateThreeDSSessionRequest, CreateThreeDSSessionResponse, AuthenticateThreeDSSessionRequest, ThreeDSPurchaseInfo, ThreeDSMerchantInfo, ThreeDSMerchantRiskInfo, ThreeDSRequestorInfo, ThreeDSCardholderInfo, ThreeDSCardholderAccountInfo, ThreeDSCardholderAuthenticationInfo, ThreeDSPriorAuthenticationInfo, ThreeDSCardholderPhoneNumber, ThreeDSAddress, ThreeDSMessageExtension, ThreeDSSession, ThreeDSDeviceInfo, ThreeDSMobileSdkRenderOptions, ThreeDSVersion, ThreeDSMethod, ThreeDSAuthentication, ThreeDSAcsRenderingType, };

@@ -1,3 +0,4 @@

import { AuthenticateThreeDSSessionRequest, ThreeDSAuthentication, ThreeDSSession } from '../../../types/models/threeds';
import { AuthenticateThreeDSSessionRequest, CreateThreeDSSessionRequest, CreateThreeDSSessionResponse, ThreeDSAuthentication, ThreeDSSession } from '../../../types/models/threeds';
interface ThreeDS {
createSession(createRequest: CreateThreeDSSessionRequest): Promise<CreateThreeDSSessionResponse>;
getSessionById(sessionId: string): Promise<ThreeDSSession>;

@@ -4,0 +5,0 @@ authenticateSession(sessionId: string, authenticateRequest: AuthenticateThreeDSSessionRequest): Promise<ThreeDSAuthentication>;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc