Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@bootpay/bp-commerce-sdk

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bootpay/bp-commerce-sdk - npm Package Compare versions

Comparing version
1.0.4
to
1.0.5
+1
-4
dist/src/lib/bootpay-commerce.d.ts

@@ -9,6 +9,3 @@ import { BootpayManager } from '../vendor/mixins/bootpay-manager';

requestCheckoutUrl(url: string): Promise<any>;
launchBrandpayManager(el: string, requestData: {
clientKey: string;
loginToken: string;
}): void;
launchBrandpayManager(el: string, requestData: CommerceLaunchBrandpay): void;
hideAlert(eventName?: string): void;

@@ -15,0 +12,0 @@ sendEvent(eventName: string, data: any): void;

@@ -11,10 +11,4 @@ import { TemplateManager } from '../../vendor/mixins/template-manager';

constructor();
render(el: string, requestData: {
clientKey: string;
loginToken: string;
}): void;
templateRender({ clientKey, loginToken }: {
clientKey: string;
loginToken: string;
}): void;
render(el: string, requestData: CommerceLaunchBrandpay): void;
templateRender({ client_key, login_token }: CommerceLaunchBrandpay): void;
resize(resizeData: any): void;

@@ -21,0 +15,0 @@ postMessage(event: string, data: any): void;

+1
-1

@@ -16,3 +16,3 @@ interface BootpayCommerceInterface {

launchBrandpayManager(el: string, requestData: { client_key: string, login_token: string }): void
launchBrandpayManager(el: string, requestData: CommerceLaunchBrandpay): void
}

@@ -19,0 +19,0 @@

@@ -188,2 +188,36 @@ interface CheckoutConfirmData {

}
}
interface CommerceLaunchBrandpay {
client_key: string
login_token: string
hooks?: LaunchBrandpayHooks
}
interface LaunchBrandpayHooks {
brandpayWalletUpdated?: (data: WidgetBrandpayWalletModel[]) => void
brandpayManagerWindowClosed?: () => void
brandpayManagerWindowReady?: (data: WidgetBrandpayWalletModel[]) => void
}
interface WidgetBrandpayWalletModel {
wallet_id: string
type: number
payment_status: number
sandbox: boolean
order: number
name: string
card_code?: string
expired_at: string
latest_purchased_at: string
batch_data: {
bank_code?: string
bank_account?: string
bank_username?: string
card_company?: string
card_hash?: string
card_company_code?: string
card_no?: string
card_type?: number
}
}
{
"name": "@bootpay/bp-commerce-sdk",
"version": "1.0.4",
"version": "1.0.5",
"main": "dist/index.mjs",

@@ -5,0 +5,0 @@ "exports": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display