extension_attributes.xml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  5. *
  6. * Licensed under the Apache License, Version 2.0 (the "License").
  7. * You may not use this file except in compliance with the License.
  8. * A copy of the License is located at
  9. *
  10. * http://aws.amazon.com/apache2.0
  11. *
  12. * or in the "license" file accompanying this file. This file is distributed
  13. * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  14. * express or implied. See the License for the specific language governing
  15. * permissions and limitations under the License.
  16. */
  17. -->
  18. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Api/etc/extension_attributes.xsd">
  19. <extension_attributes for="Magento\Quote\Api\Data\CartInterface">
  20. <attribute code="amazon_order_reference_id" type="Amazon\Payment\Api\Data\QuoteLinkInterface">
  21. <join reference_table="amazon_quote" reference_field="quote_id" join_on_field="entity_id">
  22. <field>amazon_order_reference_id</field>
  23. <field>quote_id</field>
  24. <field>sandbox_simulation_reference</field>
  25. <field>confirmed</field>
  26. </join>
  27. </attribute>
  28. </extension_attributes>
  29. <extension_attributes for="Magento\Sales\Api\Data\OrderInterface">
  30. <attribute code="amazon_order_reference_id" type="Amazon\Payment\Api\Data\OrderLinkInterface">
  31. <join reference_table="amazon_sales_order" reference_field="order_id" join_on_field="entity_id">
  32. <field>amazon_order_reference_id</field>
  33. <field>order_id</field>
  34. </join>
  35. </attribute>
  36. </extension_attributes>
  37. </config>