amzn / amazon-payments-magento-2-plugin

Extension to enable Amazon Pay on Magento 2
https://amzn.github.io/amazon-payments-magento-2-plugin/
Apache License 2.0
106 stars 76 forks source link

[GRAPHQL] query checkoutSessionDetails doesn't adhere to GraphQl best practices #1221

Closed dimitriBouteille closed 4 months ago

dimitriBouteille commented 9 months ago

As proposed in this issue (#1218), the objective of this MR is to improve the query checkoutSessionDetails so that it complies with graphQl standards.


query CheckoutSessionDetails($amazonSessionId: String!) {
    checkoutSessionDetailsV2(amazonSessionId: $amazonSessionId) {
        payment
        shipping {
            city
            firstname
            lastname
            street
            company
            telephone
            region
            region_id
            region_code
            email
            postcode
        }
        billing {
            city
            firstname
            lastname
            street
            company
            telephone
            region
            region_id
            region_code
            email
        }
    }
}
akshitaWaldia commented 4 months ago

Added in as part of 5.17.0, closing this out