alipay-cloud-sdk-test
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -21,5 +21,22 @@ import * as $CloudKernel from 'alipay-cloud-sdk-kernel'; | ||
} | ||
export declare class AlipayOpenAppQrcodeCreateResponse extends $tea.Model { | ||
code: string; | ||
msg: string; | ||
subCode: string; | ||
subMsg: string; | ||
qrCodeUrl: string; | ||
static names(): { | ||
[key: string]: string; | ||
}; | ||
static types(): { | ||
[key: string]: any; | ||
}; | ||
constructor(map?: { | ||
[key: string]: any; | ||
}); | ||
} | ||
export default class Client { | ||
constructor(config: $CloudKernel.Config); | ||
detectContent(content: string): Promise<AlipaySecurityRiskContentDetectResponse>; | ||
createQrcode(urlParam: string, queryParam: string, describe: string): Promise<AlipayOpenAppQrcodeCreateResponse>; | ||
} |
@@ -44,2 +44,26 @@ "use strict"; | ||
exports.AlipaySecurityRiskContentDetectResponse = AlipaySecurityRiskContentDetectResponse; | ||
class AlipayOpenAppQrcodeCreateResponse extends $tea.Model { | ||
constructor(map) { | ||
super(map); | ||
} | ||
static names() { | ||
return { | ||
code: 'code', | ||
msg: 'msg', | ||
subCode: 'sub_code', | ||
subMsg: 'sub_msg', | ||
qrCodeUrl: 'qr_code_url', | ||
}; | ||
} | ||
static types() { | ||
return { | ||
code: 'string', | ||
msg: 'string', | ||
subCode: 'string', | ||
subMsg: 'string', | ||
qrCodeUrl: 'string', | ||
}; | ||
} | ||
} | ||
exports.AlipayOpenAppQrcodeCreateResponse = AlipayOpenAppQrcodeCreateResponse; | ||
class Client { | ||
@@ -55,4 +79,12 @@ constructor(config) { | ||
} | ||
async createQrcode(urlParam, queryParam, describe) { | ||
let params = { | ||
url_param: urlParam, | ||
query_param: queryParam, | ||
describe: describe, | ||
}; | ||
return $tea.cast(await alipay_cloud_sdk_kernel_1.default.invokeFunction("alipay.open.app.qrcode.create", params), new AlipayOpenAppQrcodeCreateResponse({})); | ||
} | ||
} | ||
exports.default = Client; | ||
//# sourceMappingURL=client.js.map |
{ | ||
"name": "alipay-cloud-sdk-test", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Alipay Cloud SDK for Test", | ||
@@ -5,0 +5,0 @@ "main": "dist/client.js", |
@@ -43,3 +43,34 @@ // This file is auto-generated, don't edit it | ||
export class AlipayOpenAppQrcodeCreateResponse extends $tea.Model { | ||
code: string; | ||
msg: string; | ||
subCode: string; | ||
subMsg: string; | ||
qrCodeUrl: string; | ||
static names(): { [key: string]: string } { | ||
return { | ||
code: 'code', | ||
msg: 'msg', | ||
subCode: 'sub_code', | ||
subMsg: 'sub_msg', | ||
qrCodeUrl: 'qr_code_url', | ||
}; | ||
} | ||
static types(): { [key: string]: any } { | ||
return { | ||
code: 'string', | ||
msg: 'string', | ||
subCode: 'string', | ||
subMsg: 'string', | ||
qrCodeUrl: 'string', | ||
}; | ||
} | ||
constructor(map?: { [key: string]: any }) { | ||
super(map); | ||
} | ||
} | ||
export default class Client { | ||
@@ -59,2 +90,11 @@ | ||
async createQrcode(urlParam: string, queryParam: string, describe: string): Promise<AlipayOpenAppQrcodeCreateResponse> { | ||
let params : {[key: string ]: any} = { | ||
url_param: urlParam, | ||
query_param: queryParam, | ||
describe: describe, | ||
}; | ||
return $tea.cast<AlipayOpenAppQrcodeCreateResponse>(await CloudKernel.invokeFunction("alipay.open.app.qrcode.create", params), new AlipayOpenAppQrcodeCreateResponse({})); | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
16813
213