As proposed in this issue (#1218), the objective of this MR is to improve the query checkoutSessionDetails so that it complies with graphQl standards.
In order not to break the applications with the old query, I made a new query: checkoutSessionDetailsV2,
The query checkoutSessionDetails is deprecated.
I also add an exception if no Amazon session is found.
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
}
}
}
As proposed in this issue (#1218), the objective of this MR is to improve the query
checkoutSessionDetails
so that it complies with graphQl standards.checkoutSessionDetailsV2
,checkoutSessionDetails
is deprecated.