tax_rule-meta.xml 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <operations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  9. xsi:noNamespaceSchemaLocation="urn:magento:mftf:DataGenerator/etc/dataOperation.xsd">
  10. <operation name="CreateTaxRule" dataType="taxRule" type="create" auth="adminOauth" url="/V1/taxRules" method="POST">
  11. <contentType>application/json</contentType>
  12. <object key="rule" dataType="taxRule">
  13. <field key="id">integer</field>
  14. <field key="code" required="true">string</field>
  15. <field key="priority">integer</field>
  16. <field key="position">integer</field>
  17. <array key="customer_tax_class_ids">
  18. <value>integer</value>
  19. </array>
  20. <array key="product_tax_class_ids">
  21. <value>integer</value>
  22. </array>
  23. <array key="tax_rate_ids">
  24. <value>integer</value>
  25. </array>
  26. <field key="calculate_subtotal">boolean</field>
  27. <field key="extension_attributes">empty_extension_attribute</field>
  28. </object>
  29. </operation>
  30. <operation name="DeleteTaxRule" dataType="taxRule" type="delete" auth="adminOauth" url="/V1/taxRules/{id}" method="DELETE">
  31. <contentType>application/json</contentType>
  32. </operation>
  33. </operations>