extension_attributes.xml 700 B

12345678910111213141516171819
  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Api/etc/extension_attributes.xsd">
  9. <extension_attributes for="Magento\Customer\Api\Data\AddressInterface">
  10. <attribute code="test_customer_group_id" type="int">
  11. <join reference_table="customer_entity"
  12. reference_field="entity_id"
  13. join_on_field="parent_id"
  14. >
  15. <field>group_id</field>
  16. </join>
  17. </attribute>
  18. </extension_attributes>
  19. </config>