extension_attributes.xml 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!--
  3. @copyright Vertex. All rights reserved. https://www.vertexinc.com/
  4. @author Mediotype https://www.mediotype.com/
  5. -->
  6. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  7. xsi:noNamespaceSchemaLocation="urn:magento:framework:Api/etc/extension_attributes.xsd">
  8. <extension_attributes for="Magento\Customer\Api\Data\CustomerInterface">
  9. <attribute code="vertex_customer_code" type="string"/>
  10. </extension_attributes>
  11. <extension_attributes for="Magento\Tax\Api\Data\QuoteDetailsItemInterface">
  12. <attribute code="vertex_product_code" type="string"/>
  13. <attribute code="vertex_is_configurable" type="bool"/>
  14. </extension_attributes>
  15. <extension_attributes for="Magento\Sales\Api\Data\OrderItemInterface">
  16. <attribute code="vertex_tax_codes" type="string[]"/>
  17. <attribute code="invoice_text_codes" type="string[]"/>
  18. <attribute code="tax_codes" type="string[]"/>
  19. </extension_attributes>
  20. <extension_attributes for="Magento\Sales\Api\Data\CreditmemoItemInterface">
  21. <attribute code="vertex_tax_codes" type="string[]"/>
  22. <attribute code="invoice_text_codes" type="string[]"/>
  23. <attribute code="tax_codes" type="string[]"/>
  24. </extension_attributes>
  25. <extension_attributes for="Magento\Sales\Api\Data\InvoiceItemInterface">
  26. <attribute code="vertex_tax_codes" type="string[]"/>
  27. <attribute code="invoice_text_codes" type="string[]"/>
  28. <attribute code="tax_codes" type="string[]"/>
  29. </extension_attributes>
  30. <extension_attributes for="Magento\Sales\Api\Data\InvoiceItemInterface">
  31. <attribute code="vertex_tax_codes" type="string[]" />
  32. <attribute code="invoice_text_codes" type="string[]" />
  33. <attribute code="tax_codes" type="string[]" />
  34. </extension_attributes>
  35. <extension_attributes for="Magento\Quote\Api\Data\TotalSegmentInterface">
  36. <attribute code="vertex_tax_calculation_messages" type="string[]"/>
  37. </extension_attributes>
  38. <!-- Passes data to InvoiceProcessors during invoice save event -->
  39. <extension_attributes for="Magento\Sales\Api\Data\InvoiceInterface">
  40. <attribute code="vertex_tax_calculation_shipping_address" type="Magento\Sales\Api\Data\OrderAddressInterface"/>
  41. <attribute code="vertex_tax_calculation_billing_address" type="Magento\Sales\Api\Data\OrderAddressInterface"/>
  42. <attribute code="vertex_tax_calculation_order" type="Magento\Sales\Api\Data\OrderInterface"/>
  43. </extension_attributes>
  44. <!-- For compatibility with Magento 2.1 -->
  45. <extension_attributes for="Magento\Sales\Api\Data\InvoiceInterface">
  46. <attribute code="gw_base_price" type="string"/>
  47. <attribute code="gw_price" type="string"/>
  48. <attribute code="gw_items_base_price" type="string"/>
  49. <attribute code="gw_items_price" type="string"/>
  50. <attribute code="gw_card_base_price" type="string"/>
  51. <attribute code="gw_card_price" type="string"/>
  52. <attribute code="gw_base_tax_amount" type="string"/>
  53. <attribute code="gw_tax_amount" type="string"/>
  54. <attribute code="gw_items_base_tax_amount" type="string"/>
  55. <attribute code="gw_items_tax_amount" type="string"/>
  56. <attribute code="gw_card_base_tax_amount" type="string"/>
  57. <attribute code="gw_card_tax_amount" type="string"/>
  58. </extension_attributes>
  59. <extension_attributes for="Magento\Sales\Api\Data\CreditmemoInterface">
  60. <attribute code="gw_base_price" type="string"/>
  61. <attribute code="gw_price" type="string"/>
  62. <attribute code="gw_items_base_price" type="string"/>
  63. <attribute code="gw_items_price" type="string"/>
  64. <attribute code="gw_card_base_price" type="string"/>
  65. <attribute code="gw_card_price" type="string"/>
  66. <attribute code="gw_base_tax_amount" type="string"/>
  67. <attribute code="gw_tax_amount" type="string"/>
  68. <attribute code="gw_items_base_tax_amount" type="string"/>
  69. <attribute code="gw_items_tax_amount" type="string"/>
  70. <attribute code="gw_card_base_tax_amount" type="string"/>
  71. <attribute code="gw_card_tax_amount" type="string"/>
  72. </extension_attributes>
  73. <!-- End Compatibility -->
  74. </config>