Actions
GetProposals » 이력 » 개정판 7
« 뒤로 |
개정판 7/19
(비교(diff))
| 다음 »
이름없음, 2021/06/03 05:11
GetProposals¶
신규 등록 포함 변경된(활성화, 폐기) 제안서를 조회합니다.
ProposalListRequest
field | field | description |
did | String | |
command | String | |
lowerBound | String | 조회 범위(시작) |
upperBound | String | 조회 범위(끝) |
index | String | 목록 조회 기준(UpdatedAt 만 가능) |
ProposalListResponse
field | type | description |
command | String | |
proposals | List<ProposalBase> |
ProposalBase
field | type | description |
status | int | |
purpose | int | |
maxIssuable | int | |
category | int[] | |
disAllowMultiIssue | boolean | |
condition | String | |
content | String | |
createdAt | String | |
revokedAt | String | |
updatedAt | String | |
deposit | String | |
duration | String | |
filter | String | |
notAfter | String | |
notBefore | String | |
owner | String | |
proposalId | String | |
ticketValidFrom | String | |
description | String[] | |
imageurl | String[] | |
consumePolicy | ProposalConsumePolicy | |
rewardPolicy | ProposalRewardPolicy |
ProposalConsumePolicy
field | type | description |
type | int | |
count | int | |
maxDataCount | int |
ProposalRewardPolicy
field | type | description |
type | int | |
amount | int |
Request Example
query {
getProposals(param: {
command: "listProposal"
index:"UpdatedAt"
lowerBound: "2021-06-02T14:40:23+09:00"
upperBound: "2021-06-03T00:36:12.148Z"
did: "G5rw9qAMbozGxySHkMaztD"
}) {
proposals {
category
condition
content
createdAt
deposit
description
disAllowMultiIssue
duration
filter
imageurl
maxIssuable
notAfter
notBefore
owner
proposalId
purpose
revokedAt
status
ticketValidFrom
updatedAt
consumePolicy {
count
maxDataCount
type
}
rewardPolicy {
amount
type
}
}
}
}
Response Example
{
"data": {
"getProposals": {
"proposals": [
{
"category": [
3,
10,
8
],
"condition": "*",
"content": "{\"Target\":\"\\\"Name\\\": \\\"order-month\\\", \\\"Property\\\": \\\"Order.orderDate\\\", \\\"BinType\\\": \\\"RANGE\\\", \\\"Bins\\\": [ [\\\"2020-01-01T00:00:00+09:00\\\", \\\"2020-04-01T00:00:00+09:00\\\"], [\\\"2020-04-01T00:00:00+09:00\\\", \\\"2020-07-01T00:00:00+09:00\\\"], [\\\"2020-07-01T00:00:00+09:00\\\", \\\"2020-10-01T00:00:00+09:00\\\"], [\\\"2020-09-01T00:00:00+09:00\\\", \\\"2020-12-01T00:00:00+09:00\\\"] ]\",\"Advertisement\":{\"Banner\":\"https://test.snplab.io/ad_sample/test004.png\",\"Title\":\"간편결제 이용 고객님을 위한 입출식 특화상품\",\"Landing\":\"https://test.snplab.io/ad_sample/test004.html\",\"MoreInfo\":\"https://www.nhcapital.co.kr/home/homemain.nh\",\"Disclaimer\":\"https://test.snplab.io/ad_sample/Disclaimer_004.txt\"},\"LdpConfig\":{\"Formula\":1,\"PrivacyBudget\":4}}",
"createdAt": "2021-06-02T23:47:27Z",
"deposit": null,
"description": [
"CompanyName=NH농협은행",
"Title=NH농협은행 컨소시엄",
"Disclaimer=한글지원 테스트입니다",
"PrivacyPolicy=개인정보 처리방침"
],
"disAllowMultiIssue": false,
"duration": "3w",
"filter": "*",
"imageurl": [
"Icon=https://cdn.myd.world/images/snplab.png",
"Banner=https://cdn.myd.world/images/commonwallpaper.png",
"Landing=https://cdn.myd.world/images/commonwallpaper.png"
],
"maxIssuable": 40000,
"notAfter": "2021-06-10T23:45:57.440Z",
"notBefore": "2021-06-02T23:45:57.440Z",
"owner": "NfoPEFaG1adkCpijR85L66",
"proposalId": "orPxmv15e2oSPufT3Tm5ky1rnh4Bh1spR2NVefDnkGCAX6AnBap9UQ3k5QiSU6h5rgjv6ZSwZ5kKrTayqBZ9AYSeRX2pRSaSjLsbgtJ6aaEawfz8b",
"purpose": 1000,
"revokedAt": null,
"status": 1,
"ticketValidFrom": null,
"updatedAt": "2021-06-02T23:47:27Z",
"consumePolicy": {
"count": 1,
"maxDataCount": 0,
"type": 2
},
"rewardPolicy": {
"amount": 1000,
"type": 1
}
},
{
"category": [
3,
10,
8
],
"condition": "*",
"content": "{\"Target\":\"\\\"Name\\\": \\\"order-month\\\", \\\"Property\\\": \\\"Order.orderDate\\\", \\\"BinType\\\": \\\"RANGE\\\", \\\"Bins\\\": [ [\\\"2020-01-01T00:00:00+09:00\\\", \\\"2020-04-01T00:00:00+09:00\\\"], [\\\"2020-04-01T00:00:00+09:00\\\", \\\"2020-07-01T00:00:00+09:00\\\"], [\\\"2020-07-01T00:00:00+09:00\\\", \\\"2020-10-01T00:00:00+09:00\\\"], [\\\"2020-09-01T00:00:00+09:00\\\", \\\"2020-12-01T00:00:00+09:00\\\"] ]\",\"Advertisement\":{\"Banner\":\"https://test.snplab.io/ad_sample/test004.png\",\"Title\":\"간편결제 이용 고객님을 위한 입출식 특화상품\",\"Landing\":\"https://test.snplab.io/ad_sample/test004.html\",\"MoreInfo\":\"https://www.nhcapital.co.kr/home/homemain.nh\",\"Disclaimer\":\"https://test.snplab.io/ad_sample/Disclaimer_004.txt\"},\"LdpConfig\":{\"Formula\":1,\"PrivacyBudget\":4}}",
"createdAt": "2021-06-02T23:49:33Z",
"deposit": null,
"description": [
"CompanyName=NH농협은행",
"Title=NH농협은행 컨소시엄",
"Disclaimer=한글지원 테스트입니다",
"PrivacyPolicy=개인정보 처리방침"
],
"disAllowMultiIssue": false,
"duration": "3w",
"filter": "*",
"imageurl": [
"Icon=https://cdn.myd.world/images/snplab.png",
"Banner=https://cdn.myd.world/images/commonwallpaper.png",
"Landing=https://cdn.myd.world/images/commonwallpaper.png"
],
"maxIssuable": 40000,
"notAfter": "2021-06-10T23:45:57.440Z",
"notBefore": "2021-06-02T23:45:57.440Z",
"owner": "NfoPEFaG1adkCpijR85L66",
"proposalId": "orPxmv15e2oSPufT3TkbZmEzXQg7Xt7q4YyABBFJce5w39SMj2QV4d9inG44xkryd36uAgaXFXDNGn9cXYFXYwPdy4C5135JrRQaZFsgvRAPUt6CG",
"purpose": 1000,
"revokedAt": null,
"status": 1,
"ticketValidFrom": null,
"updatedAt": "2021-06-02T23:49:33Z",
"consumePolicy": {
"count": 1,
"maxDataCount": 0,
"type": 2
},
"rewardPolicy": {
"amount": 1000,
"type": 1
}
}
]
}
}
}
이름없음이(가) 약 4년 전에 변경 · 7 revisions