🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@bootpay/backend-js

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bootpay/backend-js - npm Package Compare versions

Comparing version
2.1.4
to
2.1.6
+19
-1
bootpay.d.ts
import { BootpayBackendNodejsResource } from './lib/resource';
import { AccessTokenResponseParameters, CancelPaymentParameters, CertificateResponseParameters, DestroySubscribeResponseParameters, ReceiptResponseParameters, SubscriptionBillingRequestParameters, SubscriptionBillingResponseParameters, SubscriptionCardPaymentRequestParameters, UserTokenRequestParameters, UserTokenResponseParameters, SubscribePaymentReserveParameters, SubscribePaymentReserveResponse, CancelSubscribeReserveResponse, ShippingRequestParameters, CashReceiptPublishOnReceiptParameters, CashReceiptCancelOnReceiptParameters, RequestCashReceiptParameters, CancelCashReceiptParameters } from './lib/response';
import { AccessTokenResponseParameters, CancelPaymentParameters, CertificateResponseParameters, DestroySubscribeResponseParameters, ReceiptResponseParameters, SubscriptionBillingRequestParameters, SubscriptionBillingResponseParameters, SubscriptionCardPaymentRequestParameters, UserTokenRequestParameters, UserTokenResponseParameters, SubscribePaymentReserveParameters, SubscribePaymentReserveResponse, CancelSubscribeReserveResponse, ShippingRequestParameters, CashReceiptPublishOnReceiptParameters, CashReceiptCancelOnReceiptParameters, RequestCashReceiptParameters, CancelCashReceiptParameters, RequestAuthenticateParameters } from './lib/response';
declare class BootpayBackendNodejs extends BootpayBackendNodejsResource {

@@ -117,2 +117,20 @@ constructor();

cancelCashReceipt(cancelCashReceiptRequest: CancelCashReceiptParameters): Promise<ReceiptResponseParameters>;
/**
* 본인인증 REST API 요청
* Comment by GOSOMI
* @date: 2022-11-07
*/
requestAuthentication(authenticateRequest: RequestAuthenticateParameters): Promise<CertificateResponseParameters>;
/**
* 본인인증 승인하기
* Comment by GOSOMI
* @date: 2022-11-07
*/
confirmAuthentication(receipt_id: string, otp?: null | string): Promise<CertificateResponseParameters>;
/**
* 본인인증 SMS 재전송
* Comment by GOSOMI
* @date: 2022-11-07
*/
realarmAuthentication(receipt_id: string): Promise<CertificateResponseParameters>;
}

@@ -119,0 +137,0 @@ declare const Bootpay: BootpayBackendNodejs;

@@ -312,2 +312,55 @@ "use strict";

}
/**
* 본인인증 REST API 요청
* Comment by GOSOMI
* @date: 2022-11-07
*/
requestAuthentication(authenticateRequest) {
return __awaiter(this, void 0, void 0, function* () {
try {
const response = yield this.post('request/authentication', authenticateRequest);
return Promise.resolve(response);
}
catch (e) {
return Promise.reject(e);
}
});
}
/**
* 본인인증 승인하기
* Comment by GOSOMI
* @date: 2022-11-07
*/
confirmAuthentication(receipt_id, otp = null) {
return __awaiter(this, void 0, void 0, function* () {
try {
const response = yield this.post('authenticate/confirm', {
receipt_id,
otp
});
return Promise.resolve(response);
}
catch (e) {
return Promise.reject(e);
}
});
}
/**
* 본인인증 SMS 재전송
* Comment by GOSOMI
* @date: 2022-11-07
*/
realarmAuthentication(receipt_id) {
return __awaiter(this, void 0, void 0, function* () {
try {
const response = yield this.post('authenticate/realarm', {
receipt_id
});
return Promise.resolve(response);
}
catch (e) {
return Promise.reject(e);
}
});
}
}

@@ -314,0 +367,0 @@ const Bootpay = new BootpayBackendNodejs();

+2
-2

@@ -19,4 +19,4 @@ "use strict";

constructor() {
this.apiVersion = '4.2.2';
this.sdkVersion = '2.1.2';
this.apiVersion = '4.2.5';
this.sdkVersion = '2.1.5';
this.mode = 'production';

@@ -23,0 +23,0 @@ this.$http = axios_1.default.create({

@@ -142,13 +142,21 @@ export interface AccessTokenResponseParameters {

authenticate_id: string;
pg: string;
method: string;
method_origin: string;
method_origin_symbol: string;
authenticated_at: Date;
requested_at: Date;
status: number;
status_locale: string;
authenticate_data: AuthenticateData;
}
export interface AuthenticateData {
name?: string;
phone?: string;
unique: string;
birth: Date;
gender: number;
unique?: string;
birth?: Date;
gender?: number;
foreigner?: number;
carrier?: string;
number_of_realarms?: number;
tid: string;

@@ -278,1 +286,16 @@ }

}
export interface RequestAuthenticateParameters {
authentication_id: string;
pg: string;
method: string;
username: string;
identity_no: string;
carrier: string;
phone: string;
site_url?: string;
authenticate_type?: 'sms' | 'pass';
order_name: string;
extra?: ExtraModel;
user?: UserModel;
metadata?: object;
}
{
"name": "@bootpay/backend-js",
"version": "2.1.4",
"version": "2.1.6",
"description": "Bootpay Server Side Package for Node.js",

@@ -5,0 +5,0 @@ "types": "dist/bootpay.d.ts",