Contents

requestCustomerInfo(for:fields:message:)

Opens a form so that the customer can share the contact information.

Declaration

final func requestCustomerInfo(for purpose: CustomerEngagementSession.Purpose? = nil, fields: [CustomerEngagementSession.Field], message: String? = nil) async throws -> CustomerEngagement.CustomerInfo

Parameters

  • purpose:

    An optional enum of pre-defined purpose of the form, for example .checkIn. The purpose`` parameter supports .checkInand.receipt`.

  • fields:

    An array of contact field types on the form.

  • message:

    A multi-line message text below the title.

Mentioned in

Return Value

CustomerEngagement.CustomerInfo contact information shared by the customer.

Discussion

If the fields array contains pass and a matching passTypeIdentifier , it displays the Wallet pass in full screen for the customer to confirm.

See Also

Requesting and getting customer information