extend type Query {
    getPaymentIntent(tracking_number: ID!): PaymentIntent
        @field(resolver: "Marvel\\GraphQL\\Queries\\PaymentIntentQuery@getPaymentIntent")
}

type PaymentIntent {
    id: ID
    order_id: ID
    payment_gateway: String
    tracking_number: String
    payment_intent_info: PaymentIntentInfo
}

input SavePaymentMethodInput{
    method_key: String!
    payment_intent: String
    save_card: Boolean
    tracking_number: String
}

extend type Mutation {
    savePaymentMethod(input: SavePaymentMethodInput! @spread): Card
        @field(resolver: "PaymentIntentMutator@savePaymentMethod")
}
