-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
certifications, vbank api feature add
- Loading branch information
1 parent
868ab59
commit f253a62
Showing
7 changed files
with
122 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/*! | ||
* iamport | ||
* MIT Licensed | ||
*/ | ||
|
||
'use strict'; | ||
|
||
var resource = require('../resource'), | ||
iamportMethod = resource.iamportMethod; | ||
|
||
/** | ||
* Module exports. | ||
* @public | ||
*/ | ||
module.exports = resource.extend({ | ||
|
||
path: 'certifications', | ||
|
||
/** method 생성 | ||
* SMS본인인증 결과정보를 아임포트에서 완전히 삭제하고 싶을 때 요청합니다. | ||
* @see {@link https://api.iamport.kr/#!/certifications/deleteCertification} | ||
* | ||
* @returns {promise} json 결제 정보 | ||
* @public | ||
*/ | ||
delete: iamportMethod({ | ||
method: 'DELETE', | ||
command: null , | ||
urlParam: 'imp_uid' | ||
}), | ||
|
||
|
||
/** method 생성 | ||
* SMS본인인증된 결과를 조회할 때 사용합니다. | ||
* | ||
* @see {@link https://api.iamport.kr/#!/certifications/getCertification} | ||
* | ||
* @param {Object} | ||
* @returns {promise} | ||
* @public | ||
*/ | ||
get: iamportMethod({ | ||
method: 'GET', | ||
command: null, | ||
urlParam: 'imp_uid' | ||
}) | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/*! | ||
* iamport | ||
* MIT Licensed | ||
*/ | ||
|
||
'use strict'; | ||
|
||
var resource = require('../resource'), | ||
iamportMethod = resource.iamportMethod; | ||
|
||
/** | ||
* Module exports. | ||
* @public | ||
*/ | ||
module.exports = resource.extend({ | ||
|
||
path: 'vbanks', | ||
|
||
/** method 생성 | ||
* 희망하시는 은행, 예금주명으로 입금이 가능한 가상계좌를 생성할 수 있습니다. | ||
* @see {@link https://api.iamport.kr/#!/vbanks/createVbank} | ||
* | ||
* @returns {promise} json 결제 정보 | ||
* @public | ||
*/ | ||
create: iamportMethod({ | ||
method: 'POST', | ||
command: null , | ||
urlParam: null, | ||
require: ['merchant_uid','amount','vbank_code','vbank_due','vbank_holder'] | ||
}) | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters