extension_attributes.xml 2.1 KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0"?>
  2. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Api/etc/extension_attributes.xsd">
  3. <!-- Additional attributes pushed to the salesShipOrderV1 M2 API -->
  4. <extension_attributes for="Magento\Sales\Api\Data\ShipmentCreationArgumentsInterface">
  5. <attribute code="shipping_label" type="string" />
  6. <attribute code="ext_shipment_id" type="string" />
  7. <attribute code="ext_return_shipment_id" type="string" />
  8. <attribute code="ext_location_id" type="string" />
  9. <attribute code="ext_tracking_url" type="string" />
  10. <attribute code="ext_tracking_reference" type="string" />
  11. </extension_attributes>
  12. <!-- Additional attributes fetched from the salesOrderRepositoryV1 M2 API -->
  13. <extension_attributes for="Magento\Sales\Api\Data\ShippingInterface">
  14. <attribute code="ext_order_id" type="string" />
  15. <attribute code="shipping_experience" type="Temando\Shipping\Api\Data\Order\ShippingExperienceInterface" />
  16. <attribute code="collection_point" type="Temando\Shipping\Api\Data\Delivery\OrderCollectionPointInterface" />
  17. </extension_attributes>
  18. <!-- Additional attributes for the shipment view page -->
  19. <extension_attributes for="Magento\Sales\Api\Data\ShipmentInterface">
  20. <attribute code="ext_shipment_id" type="string" />
  21. <attribute code="ext_return_shipment_id" type="string" />
  22. <attribute code="ext_location_id" type="string" />
  23. <attribute code="ext_tracking_url" type="string" />
  24. <attribute code="ext_tracking_reference" type="string" />
  25. </extension_attributes>
  26. <!-- Additional attributes used during rates requests -->
  27. <extension_attributes for="Magento\Quote\Api\Data\AddressInterface">
  28. <attribute code="checkout_fields" type="Magento\Framework\Api\AttributeInterface[]" />
  29. </extension_attributes>
  30. <extension_attributes for="Magento\Sales\Api\Data\OrderAddressInterface">
  31. <attribute code="checkout_fields" type="Magento\Framework\Api\AttributeInterface[]" />
  32. </extension_attributes>
  33. </config>