query ($id: ID!, $input: AuthenticationInsightInput!) {
  node(id: $id) {
    __typename
    ... on PaymentMethod {
      id
      legacyId
      usage
      createdAt
      details {
        __typename
        ... on CreditCardDetails {
          brandCode
          last4
          bin
          binData{
            prepaid
            healthcare
            debit
            durbinRegulated
            commercial
            payroll
            issuingBank
            countryOfIssuance
            productId
          }
          expirationMonth
          expirationYear
          cardholderName
          uniqueNumberIdentifier
          origin {
            type
          }
          billingAddress {
            company
            addressLine1
            addressLine2
            fullName
            adminArea2
            adminArea1
            postalCode
            countryCode
            phoneNumber
          }
          threeDSecure {
            authentication {
              cavv
              directoryServerTransactionId
              eciFlag
              liabilityShifted
              liabilityShiftPossible
              authenticationStatus
              version
              xId
              threeDSecureServerTransactionId
              acsTransactionId
              paresStatus
              transactionStatus
              transactionStatusReason
            }
            authenticationInsight(input: $input){
              merchantAccountId
              customerAuthenticationRegulationEnvironment
              customerAuthenticationIndicator
            }
          }
          cardOnFileNetworkTokenized
        }
        ... on PayPalAccountDetails {
          billingAgreementId
          billingAddress {
            company
            addressLine1
            addressLine2
            fullName
            adminArea2
            adminArea1
            postalCode
            countryCode
            phoneNumber
          }
          shippingAddress {
            company
            addressLine1
            addressLine2
            fullName
            adminArea2
            adminArea1
            postalCode
            countryCode
            phoneNumber
          }
          email
          phone
          payerId
          firstName
          lastName
          cobrandedCardLabel
          origin {
            type
          }
          limitedUseOrderId
        }
        ... on VenmoAccountDetails {
          username
          venmoUserId
        }
        ... on UsBankAccountDetails {
          accountholderName
          accountType
          ownershipType
          bankName
          routingNumber
          verified
          achMandate {
            acceptanceText
            acceptedAt
          }
        }
      }
    }
  }
}