Skip to content

Commit 29b0cbf

Browse files
committed
patch
1 parent 701d295 commit 29b0cbf

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

src/index.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -319,24 +319,26 @@ settle.merchant = settle.merchant || {
319319
},
320320
},
321321
shortlink: {
322-
create(content) {
323-
return requestPromise('POST', 'shortlink/', content)
322+
create(callbackUri) {
323+
return requestPromise('PUT', 'shortlink/$', {
324+
callback_uri: callbackUri,
325+
})
324326
.then((result) => result, (error) => error);
325327
},
326328
list() {
327329
return requestPromise('GET', 'shortlink/')
328330
.then((result) => result, (error) => error);
329331
},
330-
get(shortlinkId) {
331-
return requestPromise('GET', `shortlink/${shortlinkId}/`)
332+
get(shortLinkId) {
333+
return requestPromise('GET', `shortlink/${shortLinkId}/`)
332334
.then((result) => result, (error) => error);
333335
},
334-
update(shortlinkId, content) {
335-
return requestPromise('PUT', `shortlink/${shortlinkId}/`, content)
336+
update(shortLinkId, content) {
337+
return requestPromise('PUT', `shortlink/${shortLinkId}/`, content)
336338
.then((result) => result, (error) => error);
337339
},
338-
delete(shortlinkId) {
339-
return requestPromise('DELETE', `shortlink/${shortlinkId}/`)
340+
delete(shortLinkId) {
341+
return requestPromise('DELETE', `shortlink/${shortLinkId}/`)
340342
.then((result) => result, (error) => error);
341343
},
342344
},

0 commit comments

Comments
 (0)