詳細情報:
InsProductJSONService:getAttributes
このサービスを使用して、ProductJSON の属性ノードを取得します。
方法: getAttributes
操作手順
-
サービスは
inputKeyを使用して、1 つのルート商品を入力 JSON として標準商品 JSON を識別します。 -
次のリモートオプションに基づいて属性を絞り込みます。
instanceKeyproductCodeattributeCode
-
ステップ 2 の設定に従って絞り込まれた属性ノードを返します。
-
flatten = trueの場合、サービスは属性の対応付けを形式 (attributeCode, attributeDetails) で返します。 -
flatten = falseの場合、サービスは属性のリストを形式 (attributeDetails) で返します。 -
flatten = trueおよびvalueOnly = trueの場合、サービスは属性を形式 (attributeCode, userValues) で返します。
-
リモートオプション
オプション |
説明 |
|---|---|
|
サービスが入力 JSON から デフォルト値は |
|
ルート商品コードまたは子仕様商品コード。 サービスは、 |
|
|
|
この |
|
属性を ( |
|
|
Input JSON
このサービスは、instanceKey を使用して識別される典型的な商品 JSON を取得し、1 つのルート商品を入力として使用します。
商品 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"
}