mutation PartialCaptureTransaction($input: PartialCaptureTransactionInput!) {
    partialCaptureTransaction(input: $input) {
        capture {
            id
            legacyId
            status
            statusHistory {
                __typename
                status
                source
                ... on FailedEvent {
                    processorResponse {
                        message
                        legacyCode
                    }
                }
                ... on GatewayRejectedEvent {
                    processorResponse {
                        message
                        legacyCode
                    }
                }
                ... on ProcessorDeclinedEvent {
                    processorResponse {
                        message
                        legacyCode
                    }
                }
                ... on SettlementDeclinedEvent {
                    processorResponse {
                        message
                        legacyCode
                    }
                }
            }
            merchantAccountId
            createdAt
            paymentMethodSnapshot {
                __typename
                ... on CreditCardTransactionDetails {
                    creditCard {
                        origin {
                            type
                        }
                    }
                }
                ... on CreditCardDetails {
                    origin {
                        type
                    }
                }
                ... on PayPalTransactionDetails {
                    captureId
                }
            }
            amount {
                value
                currencyCode
            }
        }
    }
}
