{"data":{"id":"ACSD-45143","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes the issue where the setShippingAddressesOnCart mutation doesn't allow setting numeric region code as 'region'.","categories":["GraphQL","Order/Checkout"],"components":["magento/module-customer","magento/module-quote-graph-ql"],"origin":"adobe-commerce-support","documentation":{"url":"https://experienceleague.adobe.com/en/docs/commerce-operations/tools/quality-patches-tool/patches-available-in-qpt/v1-1-17/acsd-45143-setshippingaddressoncart-mutation-doesnt-allow-setting-numeric-region-code","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-17/acsd-45143-setshippingaddressoncart-mutation-doesnt-allow-setting-numeric-region-code.md","blobSha":"f9497c92b587a1d9ee9fefd453ae897652017e6b","description":"The setShippingAddressesOnCart mutation doesn't allow setting numeric region code as \"region\".","stepsToReproduce":"1. Create a cart using the below query. <pre> <code class=\"language-graphql\"> mutation { createEmptyCart } </code> </pre> 1. Send a request to set the shipping address to the cart. <pre> <code class=\"language-graphql\"> mutation ($cartId: String!) { setShippingAddressesOnCart( input: { cart_id: $cartId shipping_addresses: { address: { firstname: \"Tomek\" lastname: \"Nowak\" company: \"Company Name\" street: [\"234 Rue de Rivoli\"] region: \"58\" city: \"Lille\" postcode: \"59800\" country_code: \"FR\" telephone: \"123-456-0000\" save_in_address_book: false } } } ) { cart { shipping_addresses { firstname lastname company street city region { code label } postcode telephone country { code label } } } } } </code> </pre> Note: country code is set to \"FR\" and the region code to \"58\" in this example. According to the directory_country_region Db table, region code 58 is \"Nièvre\". 1. Check the response that is returned.","introducedInQpt":"1.1.17","createdFor":["2.4.2-p2"],"documentedRange":"2.3.0 - 2.4.4","scheduledFixRelease":"2.4.6"},"files":[{"package":"magento/magento2-base","constraint":">=2.4.0 <2.4.5","path":"patches/os/ACSD-45143_2.4.2-p2_v2.patch","blobSha":"ec23bd0a9b583aa07fd147098e567f209c53012d","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/ACSD-45143_2.4.2-p2_v2.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-customer/Model/Address/AbstractAddress.php","change":"modified","package":"magento/module-customer"},{"path":"vendor/magento/module-quote-graph-ql/Model/Cart/QuoteAddressFactory.php","change":"modified","package":"magento/module-quote-graph-ql"}],"packages":["magento/module-customer","magento/module-quote-graph-ql"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.4-p18","2.4.4-p17","2.4.4-p16","2.4.4-p15","2.4.4-p14","2.4.4-p13","2.4.4-p12","2.4.4-p11","2.4.4-p10","2.4.4-p9","2.4.4-p8","2.4.4-p7","2.4.4-p6","2.4.4-p5","2.4.4-p4","2.4.4-p3","2.4.4-p2","2.4.4-p1","2.4.4","2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3","2.4.2-p2","2.4.2-p1","2.4.2","2.4.1-p1","2.4.1","2.4.0-p1","2.4.0"],"magento-commerce":["2.4.4-p18","2.4.4-p17","2.4.4-p16","2.4.4-p15","2.4.4-p14","2.4.4-p13","2.4.4-p12","2.4.4-p11","2.4.4-p10","2.4.4-p9","2.4.4-p8","2.4.4-p7","2.4.4-p6","2.4.4-p5","2.4.4-p4","2.4.4-p3","2.4.4-p2","2.4.4-p1","2.4.4","2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3","2.4.2-p2","2.4.2-p1","2.4.2","2.4.1-p1","2.4.1","2.4.0-p1","2.4.0"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false},{"package":"magento/magento2-base","constraint":">=2.4.5 <2.4.6","path":"patches/os/ACSD-47546_2.4.5.patch","blobSha":"d73b76c730e0d71fbe7a1a3da739313eaa5b902a","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/ACSD-47546_2.4.5.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-customer/Model/Address/AbstractAddress.php","change":"modified","package":"magento/module-customer"},{"path":"vendor/magento/module-quote-graph-ql/Model/Cart/QuoteAddressFactory.php","change":"modified","package":"magento/module-quote-graph-ql"}],"packages":["magento/module-customer","magento/module-quote-graph-ql"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.5-p17","2.4.5-p16","2.4.5-p15","2.4.5-p14","2.4.5-p13","2.4.5-p12","2.4.5-p11","2.4.5-p10","2.4.5-p9","2.4.5-p8","2.4.5-p7","2.4.5-p6","2.4.5-p5","2.4.5-p4","2.4.5-p3","2.4.5-p2","2.4.5-p1","2.4.5"],"magento-commerce":["2.4.5-p17","2.4.5-p16","2.4.5-p15","2.4.5-p14","2.4.5-p13","2.4.5-p12","2.4.5-p11","2.4.5-p10","2.4.5-p9","2.4.5-p8","2.4.5-p7","2.4.5-p6","2.4.5-p5","2.4.5-p4","2.4.5-p3","2.4.5-p2","2.4.5-p1","2.4.5"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false}],"applicableVersions":{"magento-community":["2.4.5-p17","2.4.5-p16","2.4.5-p15","2.4.5-p14","2.4.5-p13","2.4.5-p12","2.4.5-p11","2.4.5-p10","2.4.5-p9","2.4.5-p8","2.4.5-p7","2.4.5-p6","2.4.5-p5","2.4.5-p4","2.4.5-p3","2.4.5-p2","2.4.5-p1","2.4.5","2.4.4-p18","2.4.4-p17","2.4.4-p16","2.4.4-p15","2.4.4-p14","2.4.4-p13","2.4.4-p12","2.4.4-p11","2.4.4-p10","2.4.4-p9","2.4.4-p8","2.4.4-p7","2.4.4-p6","2.4.4-p5","2.4.4-p4","2.4.4-p3","2.4.4-p2","2.4.4-p1","2.4.4","2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3","2.4.2-p2","2.4.2-p1","2.4.2","2.4.1-p1","2.4.1","2.4.0-p1","2.4.0"],"magento-commerce":["2.4.5-p17","2.4.5-p16","2.4.5-p15","2.4.5-p14","2.4.5-p13","2.4.5-p12","2.4.5-p11","2.4.5-p10","2.4.5-p9","2.4.5-p8","2.4.5-p7","2.4.5-p6","2.4.5-p5","2.4.5-p4","2.4.5-p3","2.4.5-p2","2.4.5-p1","2.4.5","2.4.4-p18","2.4.4-p17","2.4.4-p16","2.4.4-p15","2.4.4-p14","2.4.4-p13","2.4.4-p12","2.4.4-p11","2.4.4-p10","2.4.4-p9","2.4.4-p8","2.4.4-p7","2.4.4-p6","2.4.4-p5","2.4.4-p4","2.4.4-p3","2.4.4-p2","2.4.4-p1","2.4.4","2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3","2.4.2-p2","2.4.2-p1","2.4.2","2.4.1-p1","2.4.1","2.4.0-p1","2.4.0"],"mage-os":[]},"conditions":null,"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch ACSD-45143 details"}