@bootpay/bp-commerce-sdk
Advanced tools
@@ -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; |
@@ -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 | ||
| } | ||
| } |
+1
-1
| { | ||
| "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
464244
0.18%8827
0.28%