query Search($input: CustomerSearchInput!, $after: String) {
    search {
        customers(input: $input, after: $after) {
            pageInfo {
                hasNextPage
                startCursor
                endCursor
            }
            edges {
                node {
                    id
                    legacyId
                    firstName
                    lastName
                    email
                    company
                    createdAt
                    phoneNumber
                    paymentMethods {
                        edges {
                            node {
                                id
                                legacyId
                                createdAt
                                customer {
                                    id
                                    legacyId
                                }
                                details {
                                    __typename
                                    ... on PayPalAccountDetails {
                                        email
                                    }
                                    ... on CreditCardDetails {
                                        brandCode
                                        last4
                                        expirationMonth
                                        expirationYear
                                        cardholderName
                                        origin {
                                            type
                                        }
                                        billingAddress {
                                            countryCode
                                            adminArea1
                                            addressLine1
                                            addressLine2
                                            company
                                            fullName
                                            adminArea2
                                            postalCode
                                        }
                                    }
                                    ... on UsBankAccountDetails {
                                        accountholderName
                                        accountType
                                        bankName
                                        last4
                                        routingNumber
                                        verified
                                        achMandate {
                                            acceptedAt
                                            acceptanceText
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
