query Node($id: ID!) {
    node(id: $id) {
        __typename
        ... on PaymentMethod {
            id
            legacyId
            usage
            details {
                __typename
                ... on CreditCardDetails {
                    brandCode
                    last4
                    expirationMonth
                    expirationYear
                    cardholderName
                    origin {
                        type
                    }
                }
            }
        }
        ... on Customer {
            id
            legacyId
            email
            firstName
            lastName
            paymentMethods {
                edges {
                    node {
                        id
                        legacyId
                        details {
                            __typename
                            ... on PayPalAccountDetails {
                                email
                                billingAddress {
                                    countryCode
                                    adminArea1
                                    addressLine1
                                    addressLine2
                                    company
                                    fullName
                                    adminArea2
                                    postalCode
                                }
                            }
                            ... 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
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
