Loading
メールアドレスがデフォルトのログイン方式となります 続きを読む
Insurance
InsProductJSONService:getAttributes

InsProductJSONService:getAttributes

このサービスを使用して、ProductJSON の属性ノードを取得します。

クラス: InsProductJSONService

方法: getAttributes

操作手順

  1. サービスはinputKeyを使用して、1 つのルート商品を入力 JSON として標準商品 JSON を識別します。
  2. 次のリモートオプションに基づいて属性を絞り込みます。
    • instanceKey
    • productCode
    • attributeCode
  3. ステップ 2 の設定に従って絞り込まれた属性ノードを返します。
    • flatten = true の場合、サービスは属性の対応付けを形式 (attributeCode, attributeDetails) で返します。
    • flatten = false の場合、サービスは属性のリストを形式 (attributeDetails) で返します。
    • flatten = true および valueOnly = true の場合、サービスは属性を形式 (attributeCode, userValues) で返します。

リモートオプション

オプション

説明

inputKey

サービスが入力 JSON からproductJSONResultを取得するために使用するキー。

デフォルト値は inputKey です。

productCode

ルート商品コードまたは子仕様商品コード。

サービスは、productCode値セットに直接関連付けられた属性を抽出します。

attributeCode

attributeCode値に一致する属性を返します。

instanceKey

このinstanceKeyを持つ商品に直接関連付けられている属性と、このinstanceKeyで指定された商品の下位にある子商品の属性を抽出します。

flatten

属性を (attributeCode, attributeDetails) 形式のマップとして返します。

valueOnly

flatten = true と一緒に使用すると、属性が (attributeCode, userValues) 形式で返されます。

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"
}
 
読み込み中
Salesforce Help | Article