위치:
InsProductJSONService:getAttributes
이 서비스를 사용하여 ProductJSON의 특성 노드를 가져옵니다.
방법: getAttributes
작동 방법
-
서비스는
inputKey을 사용하여 하나의 루트 제품이 입력 JSON인 표준 제품 JSON을 식별합니다. -
다음 원격 옵션을 기반으로 특성을 필터링합니다.
instanceKeyproductCodeattributeCode
-
2단계의 설정에 따라 필터링된 특성 노드를 반환합니다.
-
flatten = true이면 서비스에서 (attributeCode, attributeDetails) 형식의 특성 맵을 반환합니다. -
flatten = false인 경우 서비스에서 (attributeDetails) 형식의 특성 목록을 반환합니다. -
flatten = true및valueOnly = true인 경우 서비스에서 (attributeCode, userValues) 형식의 특성을 반환합니다.
-
원격 옵션
옵션 |
설명 |
|---|---|
|
서비스가 입력 JSON에서 기본값은 |
|
루트 제품 코드 또는 하위 사양 제품 코드입니다. 서비스는 |
|
|
|
이 |
|
( |
|
|
입력 JSON
이 서비스는 instanceKey를 사용하여 식별하는 일반적인 제품 JSON을 가져와 하나의 루트 제품을 입력합니다.
제품 JSON이 구조화되는 방법을 알아보려면 제품 JSON 구조 모델을 참조하십시오.
출력 JSON
출력 JSON은 inputKey = configureProduct 옵션을 사용하여 찾은 제품 JSON의 속성 노드를 반환하고 instanceKey = Jack Kirkland 및 attributeCode =
lifeCoverageAmt의 속성을 찾습니다. flatten = true와 valueOnly = true이 모두므로 서비스는 attributeCode:userValues 형식으로 속성을 반환합니다.
{
"Jack Kirkland": {
"InsLife": {
"lifeCoveageAmt": "500000"
}
},
"error": "OK"
}다음 예에서는 이전 예와 동일한 inputKey을 사용합니다. 그러나 설정된 필터가 없으므로 서비스는 각 productCode 및 instanceKey 아래의 모든 속성을 반환합니다.
{
"CFACTCLONED": {
"termLimit": 123
},
"Maria Kirkland": {
"ABR": {
"Limit-Agg": null,
"Limit-PerOcc": "50",
"ATTRIBUTE-074": 1200000
},
"ADDCOV": {
"covBenefit": "2"
},
"WOP": {
"claimWait": "90"
},
"InsLife": {
"lifeCoveageAmt": "500000",
"persSalutation": null,
"persPhone": null,
"persEmail": null,
"persCountry": null,
"persCity": null,
"persState": null,
"persPostalCode": null,
"persStreet": null,
"persAddress": null,
"persGender": "Female",
"persIncome": null,
"persBMI": null,
"persHeight": null,
"persLastName": null,
"persMiddleName": null,
"persFirstName": null,
"persWeight": null,
"persSmoke": "N",
"persName": null,
"persBirthdate": "1970-09-09"
}
},
"Jack Kirkland": {
"ABR": {
"Limit-Agg": null,
"Limit-PerOcc": "50",
"ATTRIBUTE-074": 1200000
},
"ADDCOV": {
"covBenefit": "2"
},
"WOP": {
"claimWait": "90"
},
"InsLife": {
"lifeCoveageAmt": "500000",
"persSalutation": null,
"persPhone": null,
"persEmail": null,
"persCountry": null,
"persCity": null,
"persState": null,
"persPostalCode": null,
"persStreet": null,
"persAddress": null,
"persGender": "Male",
"persIncome": null,
"persBMI": null,
"persHeight": null,
"persLastName": null,
"persMiddleName": null,
"persFirstName": null,
"persWeight": null,
"persSmoke": "N",
"persName": null,
"persBirthdate": "1965-09-09"
}
},
"WL-Base": {
"covType": "10",
"ProductCode": "WL",
"termPayment": "check",
"PART": "Participating",
"termDivMeth": "reinvest",
"payFrequency": "month",
"featCashDividends": true,
"featLevelPremium": true,
"featGuaranteedBenefit": true,
"featPolicyLoan": true,
"featAccumCVLI": true
},
"error": "OK"
}