Loading
保险
InsEnrollmentServiceStd:getMemberEnrollments

InsEnrollmentServiceStd:getMemberEnrollments

使用此服务检索成员的当前注册。此服务获取一个或多个普查成员 ID,并返回成员和相关受抚养人的注册计划。

类:InsEnrollmentServiceStd​​ ​

方法:getMemberEnrollments​​

工作原理

当 ​isFsc 的值为真时,保险单流适用:

  1. 如果未在输入中提供“effectiveDate”,服务将使用“contractId​​”参数检索合同注册开始日期。有关更多信息,请查看远程选项部分中的 effectiveDate和 ​contractId 参数。

  2. 将保单返回为InsurancePolicy记录。对于保险单,该服务支持个人客户流和非个人客户流,解释如下:

    1. ​​个人客户流​​

      此流适用于人口普查成员与个人客户关联的情况。

      1. 如果输入为“groupAccountId”,服务会使用 ACR 检索与​groupAccountId​​关联的普查成员的“personAccountIds”。它返回所有保险单,其中 nameInsuredId​ 匹配给定的 personAccountIds,​effectiveDate 匹配effectiveDate​​输入中提供的 。

      2. 如果输入为 censusMemberIds​​,服务将检索 GroupCensusMember记录。有关更多信息,请查看远程选项部分中的“censusMemberIds”参数。如果填充了普查成员的 字段AccountId​​,我们使用这些 personAccountIds(GroupCensusMember.AccountId)。它返回“nameInsuredId​​匹配”personAccountIds​和“effectiveDate匹配”输入中提供的​effectiveDate的所有保险单。

    2. 非个人客户流​​

      此流适用于人口普查成员与联系人关联的情况。

      1. 该服务使用 accountId 检索普查成员的 ​InsurancePolicy 对象。这是非个人客户流的强制参数。

      2. 如果在输入中提供了 censusMemberIds​​,服务将检索 GroupCensusMember​ 记录。如果未填充普查成员的“AccountId”字段,服务将使用“GroupCensusMember.ContactId”、“accountId​​”和“effectiveDate”检索成员的策略。

  3. 该服务检索当事人和InsurancePolicyParticipantInsurancePolicy记录。InsurancePolicyParticipant记录包含主要成员及其受抚养人。

  4. 如果“omitChildProducts”字段为“假”,服务将检索保单的承保范围 (“InsurancePolicyCoverage”) 及其相应的产品元数据。有关更多信息,请查看远程选项部分中的 omitChildProducts参数。

  5. 然后,每个策略按主要成员分组。

远程选项

服务使用 contractId 来获取 ​effectiveDateenrollmentStartDate,或者直接使用 effectiveDate​,如果同时使用 ​contractId,则优先级高于 。

选项

说明

censusMemberIds

主要人口普查成员 ID 列表。

accountId

此成员所属的组 ID。

groupAccountId

要检索其策略的普查成员的组 ID。

effectiveDate

如果未使用 contractId,则需要此项。

保单的生效日期。

此日期必须始终是保单生效日期的 GMT 日期。

contractId

如果未使用 effectiveDate,则需要此项。

检索注册开始日期作为策略的生效日期。

includeOptionalCoverages

如果为真,服务将检索注册的可选覆盖范围。

omitChildProducts

如果为假,服务将检索注册的覆盖范围。

输入 JSON

此服务不需要输入 JSON。

输出 JSON

输出 JSON 是普查成员列表,其中包含名字、姓氏、普查成员 ID 和联系人 ID,以及登记。

“注册”节点包含产品详细信息,在存在依赖项时包含“依赖项”节点。它还包括子产品和承保范围详细信息。

“依赖项”节点由“名字”、“姓氏”、“ID”、“关系类型”、“联系人 ID”和“相关方 ID”组成。

以下是输出 JSON 的格式:

{
  "totalSize": numberOfPrimaryMembersRetrievedWithEnrollments,
  "records": [
    {
      "FirstName": "primaryMemberFirstName",
      "LastName": "primaryMemberLastName",
      "Id": "primaryMemberGroupCensusMemberId",
      "contactId": "primaryMemberContactId",
      "enrollments": {
        "totalSize": primary member's number of enrollments,
        "records": [
          {
            "policyNumber": "policy number",
            "Id": "policy Id",
            "productId": "policy's product id",
            "accountId": "policy's account id",
            "primaryMemberContactId": "primaryMemberContactId",
            "productName": "policy's product name",
            "Name": "policy's product name",
            "EffectiveStart": "policy effective date",
            "EffectiveEnd": "policy expiration date",
            "Price": 0,
            "planId": "policy product's plan id",
            "contractId": "contract id",
            "ProductCode": "product code",
            "RecordTypeName__c": "Product",
            "attributeCategories": {},
            "Term": "policy term",
            "attributeSelectedValues": "{}",
            "childProducts": {
              "totalSize": numberOfChildProductsOfThePolicyProduct,
              "records": [
                {
                  "productId": "productIdOfTheChildProduct",
                  "productName": "productNameOfTheChildProduct",
                  "ProductCode": "productCodeOfTheChildProduct",
                  "Name": "productNameOfTheChildProduct",
                  "pciId": "productChildItemIdOfTheChildProduct",
                  "isOptional": ifThisIsAnOptionalCoverage,
                  "attributeSelectedValues": "{}",
                  "isSelected": true,
                  "Id": "coverageId",
                  "PricingSource": "pricingSource",
                  "attributeCategories": {}
                }
              ]
            },
            "dependents": {
              "totalSize": primary member's number of dependents,
              "records": [
                {
                  "Id": "record id",
                  "FirstName": "dependentsFirstName",
                  "LastName": "dependentsLastName",
                  "relationshipType": "relationshipType",
                  "partyId": "contact's party id",
                  "contactId": "dependent's contact Id"
                }
              ]
            }
          }
        ]
      }
    }
  ]
}
 
正在加载
Salesforce Help | Article